* tree-ssa-dom.c (record_edge_info): Fix memory leak.
[official-gcc.git] / gcc / ChangeLog
blobc5e3705883c89a7aaaf1fde3ee8b46d2308d304b
1 2004-12-13  Kazu Hirata  <kazu@cs.umass.edu>
3         * c-common.c (fname_as_string): Free namep if we are returning
4         cstr.text.
6         * tree-ssa-dom.c (record_edge_info): Fix memory leak.
8 2004-12-13  Andrew Pinski  <pinskia@physics.uc.edu>
10         * tree-cfg.c (remove_useless_stmts_cond): Call fold on COND_EXPR_COND.
12 2004-12-13  Kazu Hirata  <kazu@cs.umass.edu>
14         * tree-ssa-dom.c (record_equivalences_from_phis): Speed up by
15         doing a pointer comparison.
17         * tree-ssa-dom.c (record_equivalences_from_phis): Add a
18         comment.
20         * defaults.h, stmt.c, tree-cfg.c, tree-ssa-dce.c: Fix comment
21         typos.
23 2004-12-13  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
25         * config/m32r/t-linux (SHLIB_MAPFILES): Add libgcc-glibc.ver to
26         the list rather than replacing the existing value.
28 2004-12-13  Richard Henderson  <rth@redhat.com>
30         * cfg.c (dump_flow_info): Don't dump pseudo info after reload.
32 2004-12-13  Richard Henderson  <rth@redhat.com>
34         * Makefile.in (insn-preds.o): Depend on REGS_H.
35         * genpreds.c (write_insn_preds_c): Include regs.h.
36         * config/i386/predicates.md (index_register_operand): Use
37         REG_OK_FOR_INDEX_STRICT_P and REG_OK_FOR_INDEX_NONSTRICT_P.
39         * config/i386/i386.h (REG_CLASS_FROM_LETTER): Add 'l'.
40         * config/i386/i386.md (lea_general_1, lea_general_1_zext,
41         lea_general_2, lea_general_2_zext, lea_general_3, lea_general_3_zext,
42         adddi_1_rex64, addsi_1, addsi_1_zext, addhi_1_lea, addqi_1_lea,
43         ashldi3_1_rex64, ashlsi3_1, ashlsi3_1_zext, ashlhi3_1_lea,
44         ashlqi3_1_lea): Use 'l' for index register operand.
45         (ashldi3_1_rex64 splitter): Use index_register_operand.
46         (ashlsi3_1 splitter): Be more careful with modes.
48 2004-12-13  Danny Smith  <dannysmith@users.sourceforge.net>
50         PR target/18459
51         * defaults.h (TARGET_USE_JCR_SECTION): New macro.
52         * doc/tm.texi (TARGET_USE_JCR_SECTION): Document it.
53         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Override
54         default.
56 2004-12-13 Uros Bizjak <uros@kss-loka.si>
58         PR target/14941
59         PR target/18503
60         * config/i386/i386.md (sse_movss, sse2_movsd, sse2_movhpd):
61         Fix wrong vec_merge selector bitmask.
63 2004-12-12  Richard Henderson  <rth@redhat.com>
65         PR rtl-opt/17186
66         * reg-stack.c (move_nan_for_stack_reg): New.
67         (subst_stack_regs_pat): Use it.
68         (move_for_stack_reg): Handle source register not live with a nan.
70 2004-12-12  Richard Henderson  <rth@redhat.com>
72         * config/i386/i386.c (ix86_gimplify_va_arg): Fix type mismatch
73         errors across operations.
75 2004-12-12  Di-an Jan  <dianj@freeshell.org>  
77         * doc/passes.texi (Pass Manager): Correct list of source files.
79 2004-12-12  Richard Henderson  <rth@redhat.com>
81         * expr.c (emit_move_change_mode): New.
82         (emit_move_via_alt_mode): Use it.
84 2004-12-12  Nathanael Nerode  <neroden@gcc.gnu.org>
85             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
87         PR middle-end/17564
88         * dojump.c (do_compare_and_jump): Only canonicalize function pointers
89         in a comparison if both sides are function pointers.
91 2004-12-12  Richard Henderson  <rth@redhat.com>
93         PR target/18932
94         * config/i386/i386.md (all splits and peepholes): Use flags_reg_operand
95         and compare_operator to propagate the input CC mode to the output.
96         * config/i386/predicates.md (compare_operator): New.
98 2004-12-12  Andrew Pinski  <pinskia@physics.uc.edu>
100         PR tree-opt/18040
101         * expr.c (get_inner_reference): Remove NON_LVALUE_EXPR, NOP_EXPR,
102         CONVERT_EXPR cases.
103         (handled_component_p): Likewise.
105 2004-12-12  Kazu Hirata  <kazu@cs.umass.edu>
107         * reg-stack.c (convert_regs_2): Free stack.
109         * tree-ssa-dom.c (thread_across_edge, dom_opt_finalize_block): Fix
110         comment typos.
112 2004-12-12  Daniel Berlin  <dberlin@dberlin.org>
114         * tree-ssa-loop-ch.c (copy_loop_headers): Loop can be null.
115         * tree-ssa-loop-im.c (determine_lsm): tree_root may not have a real
116         inner loop.
118 2004-12-12  Diego Novillo  <dnovillo@redhat.com>
120         * tree-gimple.c (get_base_address): Update documentation.
122 2004-12-12  Kazu Hirata  <kazu@cs.umass.edu>
124         * lcm.c (optimize_mode_switching): Free ptr even when mode_set
125         is NULL_RTX.
127 2004-12-12  Roger Sayle  <roger@eyesopen.com>
129         * reg-stack.c (change_stack): Avoid placing the new top-of-stack in
130         its correct location during popping if we need to permute the stack
131         afterwards.  Attempt to preserve the original stack ordering.
133 2004-12-12  Kazu Hirata  <kazu@cs.umass.edu>
135         * lcm.c (optimize_mode_switching): Free insert and delete in
136         the "for" loop.
138 2004-12-11  David Edelsohn  <edelsohn@gnu.org>
139             Ulrich Weigand  <uweigand@de.ibm.com>
141         PR target/18641
142         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Reload all
143         constants into all register classes intersecting with FLOAT_REGS
144         via memory.
145         * config/rs6000/rs6000.h (PREFERRED_RELOAD_CLASS): Same.
146         * config/rs6000/rs6000.md (movdi_internal32): Ignore FPRs when
147         choosing register preferences.
148         (movdi_internal64): Same.
150 2004-12-11  Kazu Hirata  <kazu@cs.umass.edu>
152         * tree-into-ssa.c (rewrite_ssa_into_ssa): Free SSA_NAME_AUX
153         before we release an SSA_NAME.
155 2004-12-11  Roger Sayle  <roger@eyesopen.com>
157         PR middle-end/18921
158         * fold-const.c (fold_unwidened_comparison): Use omit_one_operand
159         instead of constant_boolean_node as arg0 may have side-effects.
161 2004-12-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
163         * pa-host.c (pa_gt_pch_use_address): Use lseek and read to copy PCH
164         file to anonymous private map.
166 2004-12-10  Roger Sayle  <roger@eyesopen.com>
168         PR target/18002
169         PR middle-end/18424
170         * dojump.c (do_jump): When attempting to reverse the effects of
171         fold_single_bit_test, we need to STRIP_NOPS and narrowing type
172         conversions, and handle BIT_XOR_EXPR that's used to invert the
173         sense of the single bit test.
175 2004-12-10  Devang Patel  <dpatel@apple.com>
177         PR 18732
178         * gcc.c (main): Do not break out of loop when error is reported while
179         processing one source file.
180         
181 2004-12-10  Diego Novillo  <dnovillo@redhat.com>
183         * tree-into-ssa.c (REWRITE_THIS_STMT): Define.
184         (mark_def_sites): Clear REWRITE_THIS_STMT for statements that
185         don't need any operands rewritten.
186         (rewrite_stmt): Ignore statements that don't need to be
187         rewritten.
188         (rewrite_operand): Validate that an existing SSA_NAME is
189         identical to the current reaching definition of the operand.
191 2004-12-10  Diego Novillo  <dnovillo@redhat.com>
193         * tree-dfa.c (mark_call_clobbered_vars_to_rename): New function.
194         * tree-vectorizer.c (vectorizable_load): Call it.
195         * tree-flow.h (mark_call_clobbered_vars_to_rename): Declare.
196         * tree-sra.c (mark_all_v_defs): Also mark VUSEs for renaming.
198 2004-12-10  Kazu Hirata  <kazu@cs.umass.edu>
200         * regmove.c (combine_stack_adjustments_for_block): Free
201         memlist if it hasn't been freed.
203 2004-12-10  Ziemowit Laski  <zlaski@apple.com>
205         * c-typeck.c (lookup_field): Check if a TYPE_LANG_SPECIFIC
206         pointer field is set before dereferencing it.
208 2004-12-10  Andrew Pinski  <pinskia@physics.uc.edu>
210         PR middle-end/18903
211         * tree-cfg.c (remove_bb): Put the moved label at the beginning
212         of the basic block.
214 2004-12-10  Kazu Hirata  <kazu@cs.umass.edu>
216         * tree-data-ref.c (free_data_refs): Free each data_reference
217         object.
219         * tree-ssa-dom.c (thread_across_edge): Speed up by avoiding a
220         call to is_gimple_min_invariant if we know the result.
222 2004-12-10  Jeff Law  <law@redhat.com>
224         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
225         redundant test of v_ann->mem_tag_kind.
227         * tree-ssa-operands.c (get_indirect_ref_operands): Remove
228         redundant conditional clearing opf_kill_def.
230 2004-12-10  Richard Sandiford  <rsandifo@redhat.com>
232         * config/frv/frv-modes.def: Fix comment typos.
233         (CC_NZ): Define new mode.
234         * config/frv/frv-protos.h (frv_select_cc_mode): Declare.
235         (condexec_intop_cmp_operator): Delete.
236         * config/frv/frv.c (comparison_string): New function.
237         (frv_print_operand): Use it to handle 'c' and 'C'.
238         (relational_operator): Redefine in terms of integer_relational_operator
239         and float_relational_operator.
240         (signed_relational_operator, unsigned_relational_operator): Delete.
241         (integer_relational_operator): New predicate, combining the above.
242         Check the mode of the first operand but leave frv.md to check the rest.
243         (float_relational_operator): Just check the mode of the first operand
244         and leave frv.md to check the rest.
245         (intop_compare_operator): Assume the result is compared with zero
246         in mode CC_NZmode.  Allow PLUS and MINUS.  Leave frv.md to check
247         the operand predicates.
248         (condexec_intop_cmp_operator): Delete.
249         (frv_ifcvt_modify_tests, frv_ifcvt_modify_multiple_tests)
250         (frv_hard_regno_mode_ok): Handle CC_NZmode.
251         (frv_select_cc_mode): New function.
252         * config/frv/frv.h (SELECT_CC_MODE): Use frv_select_cc_mode.
253         (REVERSIBLE_CC_MODE): Include CC_NZmode.
254         (PREDICATE_CODES): Replace entries for signed_relational_operand and
255         unsigned_relational_operator with one for integer_relational_operator.
256         Delete entry for condexec_intop_cmp_operator.
257         * config/frv/frv.md (movcc_nz, *internal_movcc_nz, reload_incc_nz)
258         (reload_outcc_nz, *cmpsi_cc_nz, *cond_exec_cmpsi_cc_nz): New patterns.
259         (*combo_intop_compare2, *combo_intop_compare4): Delete.
260         (*combo_intop_compare1): Change mode to CC_NZ.
261         (*combo_intop_compare2): Likewise.  Renamed from *combo_intop_compare3.
262         (branch_{un,}signed_true, branch_{un,}signed_false)
263         (*scc_{un,}signed, *scc_neg1_{un,}signed, *ck_{un,}signed)
264         (*movqicc_internal1_{un,}signed, *movqicc_internal2_{un,}signed)
265         (*movhicc_internal1_{un,}signed, *movhicc_internal2_{un,}signed)
266         (*movsicc_internal1_{un,}signed, *movsicc_internal2_{un,}signed)
267         (*movsfcc_has_fprs_{un,}signed, *movsfcc_no_fprs_{un,}signed)
268         (*return_{unsigned_,}true, *return_{unsigned_,}false): Merge these
269         pattern pairs.  Use integer_relational_operator.  Remove mode from
270         icc_operand.
272 2004-12-10  Mark Dettinger  <dettinge@de.ibm.com>
274         * config/s390/s390.c (struct processor_costs): New fields ml,
275         sqdbr, sqebr.
276         (s390_rtx_costs): Added the missing handling of multiply & add,
277         square root, and umulsidi.
279 2004-12-10  Kazu Hirata  <kazu@cs.umass.edu>
281         * expmed.c (synth_mult): Initialize new_limit.latency before
282         making a recursive call.
284 2004-12-10  Nick Clifton  <nickc@redhat.com>
286         * config/mn10300/mn10300.c (legitimate_address_p): Reject address
287         whose index is itself the sum of two other parts.
289 2004-12-10  Alan Modra  <amodra@bigpond.net.au>
291         * config/t-slibgcc-sld (SHLIB_LINK): Correct symlink.
293 2004-12-10  Uros Bizjak  <uros@kss-loka.si>
295         * config/i386/i386.md (*cmpfp_sf): Change type attribute to "multi".
297 2004-12-09  Richard Henderson  <rth@redhat.com>
299         PR c/18282
300         * attribs.c (decl_attributes): Use relayout_decl.
301         * c-common.c (handle_mode_attribute): Copy all relevant type
302         parameters from the new underlying integral type.
304 2004-12-09  Richard Henderson  <rth@redhat.com>
306         * c-common.c (shorten_compare): Don't special-case min/maxval
307         for C enumerations.
309 2004-12-09  Richard Sandiford  <rsandifo@redhat.com>
311         * simplify-rtx.c (simplify_subreg): In the CONCAT case, check whether
312         the request subreg is entirely contained in the requested component.
313         (simplify_gen_subreg): Return null for CONCATs that are rejected
314         by simplify_subreg.
315         * expmed.c (store_bit_field): Create a temporary when changing the
316         value to an integer mode.
318 2004-12-09  David Edelsohn  <edelsohn@gnu.org>
320         * real.c (ibm_extended): Correct comment.
322 2004-12-09  Stan Shebs  <shebs@apple.com>
324         * config/rs6000/darwin-asm.h: New file, 32/64-bit assembly macros
325         formerly in darwin-tramp.asm.
326         * config/rs6000/darwin-tramp.asm: Include darwin-asm.h.
327         * config/rs6000/darwin-fpsave.asm: Use 32/64-bit macros.
328         * config/rs6000/t-darwin: Add dependencies.
330 2004-12-09  Richard Henderson  <rth@redhat.com>
332         PR target/17025
333         * config/i386/i386.md (testqi_1_maybe_si, andqi_2_maybe_si): New.
334         (test_qi_1, andqi_2): Do not promote to simode.
336 2004-12-09  Andrew Pinski  <pinskia@physics.uc.edu>
338         PR tree-opt/18904
339         * tree-chrec.c (chrec_convert): Use fold_convert
340         instead of convert.
342 2004-12-09  Matt Rice  <ratmice@yahoo.com>
344         PR preprocessor/18102
345         * c-incpath.c (remove_duplicates): Check for construct
346         equality.
348 2004-12-09  Dorit Naishlos  <dorit@il.ibm.com>
350         * genopinit.c (vec_realign_store_optab): Initialization removed.
351         * optabs.c (optab_for_tree_code): REALIGN_STORE_EXPR case removed.
352         * optabs.h (optab_index): OTI_vec_realign_store Removed.
353         (vec_realign_store_optab): Removed.
354         * target-def.h (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Removed.
355         * target.h (builtin_mask_for_store): Removed.
356         * tree.def (REALIGN_STORE_EXPR): Removed.
357         * config/rs6000/rs6000.c (rs6000_builtin_mask_for_store): Removed.
358         (altivec_builtin_mask_for_store): Removed.
359         (altivec_init_builtins): Removed initialization of
360         altivec_builtin_mask_for_store.
362         * doc/tm.texi (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
363         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): New.
365 2004-12-09  Nathan Sidwell  <nathan@codesourcery.com>
367         * tree.def (SET_TYPE): Remove.
368         (CONSTRUCTOR): Update description.
369         * builtins.c (type_to_class) Remove SET_TYPE case.
370         * dbxout.c (dbxout_type): Likewise.
371         * dwarf2out.c (is_base_type): Likewise.
372         (gen_set_type_die): Remove.
373         (gen_type_die): Remove SET_TYPE case.
374         * expr.c (count_type_elements): Likewise.
375         (mostly_zeroes_p): Likewise.
376         (store_constructor): Likewise.
377         * print_tree.c (print_node): Likewise.
378         * stor-layout.c (layout_type): Likewise.
379         * tree-browser.c (browse_tree): Likewise.
380         * tree-inline.c (remap_type): Likewise.
381         * tree-pretty-print.c (dump_generic_node): Likewise.
382         * tree.c (type_contains_plaeholder_1, type_hash_eq,
383         variably_modified_type_p, initializer_zerop): Likewise.
384         * tree.h (SET_OR_ARRAY_CHECK): Remove.
385         (AGGREGATE_TYPE_P): Remove SET_TYPE check.
386         (TYPE_DOMAIN): Use ARRAY_TYPE_CHECK.
387         * typeclass.h (enum type_class): Remove set_type_class.
388         * varasm.c (const_hash_1): Remove SET_TYPE case.
389         (compare_constant, copy_constant, output_constant): Likewise.
390         * config/i386/i386.c (classify_argument): Likewise.
391         * config/ia64/ia64.c (hfa_element_mode): Likewise.
392         * config/sparc/sparc.c (sparc_type_code): Likewise.
394         PR c++/16681
395         * tree-inline.c (estimate_num_insns_1): Add RANGE_EXPR case.
397 2004-12-08  Richard Henderson  <rth@redhat.com>
399         * config/i386/i386.md: Use FLAGS_REG everywhere.
401 2004-12-08  Eric Christopher  <echristo@redhat.com>
403         * config/mips/mips.c (mips_scalar_mode_supported_p): Rewrite
404         to avoid call to default function.
406 2004-12-08  Zack Weinberg  <zack@codesourcery.com>
408         PR 17982
409         * varasm.c (pending_assemble_externals): New static.
410         (assemble_external_real): Meat of assemble_external split out
411         to this new function.
412         (process_pending_assemble_externals): New function.
413         (assemble_external): Use gcc_assert.  If flag_unit_at_a_time
414         is true and the basic test passes, merely cons the decl onto
415         the pending list to be handled later.
416         * tree.h: Declare process_pending_assemble_externals.
417         * cgraphunit.c (cgraph_optimize): Call it.
419         * config/h8300/h8300.h: Do not define ASM_OUTPUT_EXTERNAL.
421 2004-12-08  Kazu Hirata  <kazu@cs.umass.edu>
423         * cfgloopmanip.c (create_preheader): Speed up by "unrolling"
424         and simplifying FOR_EACH_EDGE.
426 2004-12-08  Richard Sandiford  <rsandifo@redhat.com>
428         * config/frv/frv.c (frv_sort_insn_group): Always initialize
429         packet_group->nop.
431 2004-12-08  Nathan Sidwell  <nathan@codesourcery.com>
433         PR c++/18672
434         * gimplify.c (canonicalize_addr_expr): Cope with array of
435         incomplete type.
436         (gimplify_conversion): Remove redundant checks.
438         * doc/trouble.texi (Non-bugs): Clarify empty loop removal.
440 2004-12-08  Uros Bizjak  <uros@kss-loka.si>
442         * config/i386/i386.c (output_387_binary_op,
443         ix86_prepare_fp_compare_args): Fix is_sse condition.
445 2004-12-07  Uros Bizjak  <uros@kss-loka.si>
447         * config/i386/i386-protos.h (ix86_split_fp_branch): New rtx
448         argument.
450         * config/i386/i386.c (output_fp_compare): Fix is_sse condition.
451         Use EFLAGS_P only when fcomi insn should be used. Fix handling
452         of eflags_p variable. Change alt table accordingly. For non-fcomi
453         compare insn always use trailing fnstsw insn. Fix intmode
454         calculation for ficom insn.
455         (ix86_split_fp_branch): Add "rtx pushed" as new parameter. Call
456         ix86_free_from_memory when "pushed" is specified.
457         (ix86_expand_branch): Change call to ix86_split_fp_branch.
459         * config/i386/i386.md (*cmpfp_0_sf, *cmpfp_0_df, *cmpfp_0_xf):
460         Change eflags_p parameter in call to output_fp_compare.
461         (*cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf): Remove.
462         (*cmpfp_2_sf_1, *cmpfp_2_df_1, *cmpfp_2_xf_1): Rename to
463         *cmpfp_2_sf, *cmpfp_2_df, *cmpfp_2_xf.  Change eflags_p
464         parameter in call to output_fp_compare.
465         (*cmpfp_2_u): Remove.
466         (*cmpfp_2_u_1): Rename to *cmpfp_2_u. Change eflags_p parameter
467         in call to output_fp_compare.
468         (*ficom_1): Remove insn definition and corresponding define_split.
469         (*cmpfp_si): New insn definition.
470         (*fp_jcc_8): New insn definition. Add new splitters for
471         "memory_operand" and "register_operand".
472         (define_split): Add new parameter in call to ix86_split_fp_branch.
474         config/i386/predicates.md (float_operator): New predicate.
476 2004-12-08  Kazu Hirata  <kazu@cs.umass.edu>
478         * c-common.c (verify_tree): Don't check code length if we know
479         we are handling tcc_unary.
480         * print_tree.c (print_node): Remove code to handle RTL
481         appearing as a part of a tree node.
482         * tree-gimple.c (recalculate_side_effects): Rename fro as len.
483         * tree.c (build1_stat): Don't check TREE_CODE_LENGTH.
484         (PROCESS_ARG): Don't refer to fro.
485         (build2_stat, build3_stat, build4_stat): Don't compute fro.
487 2004-12-07  Roger Sayle  <roger@eyesopen.com>
489         PR middle-end/18293
490         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Move definition earlier.
491         (expand_mult): Special case powers of two to avoid synth_mult.
492         * loop.c (product_cheap_p): Handle case where expand_mult does
493         require/generate any instructions (i.e. multiplication by zero).
495 2004-12-07  Richard Henderson  <rth@redhat.com>
497         * tree-pretty-print.c (dump_array_domain): Split out from
498         dump_generic_node; fix off-by-one error on zero-based array bounds.
499         (dump_generic_node): Use it.
500         (print_declaration): Likewise.
502 2004-12-08  Richard Guenther <richard.guenther@uni-tuebingen.de>
504         * doc/invoke.texi: Adjust default values for
505         large-function-growth and inline-unit-growth to match
506         params.def.  Clarify used algorithm.
508 2004-12-07  David Mosberger  <davidm@hpl.hp.com>
510         PR target/18443
511         * config/ia64/ia64.c (ia64_assemble_integer): Add support for
512         emitting unaligned pointer-sized integers.
514 2004-12-07  Steven Bosscher  <stevenb@suse.de>
516         PR c/18867
517         * c-typeck.c (c_start_case): Set orig_type to error_mark_node
518         when the type of the controlling expression is not a valid type.
520 2004-12-07  Steven Bosscher  <stevenb@suse.de>
522         PR tree-optimization/17340
523         * tree-ssa-pre.c (compute_antic): Fix comment.
524         (compute_avail): Do not recurse, instead do a DFS using a stack
525         and a loop.
526         (execute_pre): Adjust.
528 2004-12-07  Ziemowit Laski  <zlaski@apple.com>
530         * c-tree.h (struct lang_type): Rename 'objc_protocols' field
531         to 'objc_info'.
533 2004-12-07  Eric Christopher  <echristo@redhat.com>
535         PR target/16317
536         * config/netbsd.h (NO_IMPLICIT_EXTERN_C): Define.
538 2004-12-07  Eric Christopher  <echristo@redhat.com>
540         * config/mips/mips-protos.h (mips_valid_pointer_mode): Move
541         prototype...
542         * config/mips/mips.c: ... here. Make static.
544 2004-12-07  Eric Christopher  <echristo@redhat.com>
546         PR target/18442
547         * config/mips/mips.c (mips_vector_mode_supported_p): New function.
548         (TARGET_SCALAR_MODE_SUPPORTED_P): Define to above.
550 2004-12-07  Kazu Hirata  <kazu@cs.umass.edu>
552         * c-common.c, expr.c, fold-const.c, print-tree.c,
553         tree-gimple.c, tree-inline.c, tree-pretty-print.c,
554         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c: Replace uses of
555         first_rtl_op with TREE_CODE_LENGTH.
556         * tree.c (first_rtl_op): Remove.
557         Replace uses of first_rtl_op with TREE_CODE_LENGTH.
558         * tree.h: Remove the prototype for first_rtl_op.
560 2004-12-07  David Edelsohn  <edelsohn@gnu.org>
562         * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
563         Revert 2004-12-01 change.
565 2004-12-06  Ziemowit Laski  <zlaski@apple.com>
567         * c-tree.h (struct lang_type): Add 'objc_protocols' field.
569 2004-12-06  DJ Delorie  <dj@redhat.com>
571         * reload.c (find_valid_class): Fix logic to test inner mode as well.
572         (push_reload): Pass inner mode.
574 2004-12-06  Eric Christopher  <echristo@redhat.com>
576         * doc/tm.texi (TARGET_VALID_POINTER_MODE): Document.
578 2004-12-06  Aldy Hernandez  <aldyh@redhat.com>
580         * config/rs6000/sysv4.h: Define RELOCATABLE_NEEDS_FIXUP to 1.
582 2004-12-06  Zdenek Dvorak  <dvorakz@suse.cz>
583             Kazu Hirata  <kazu@cs.umass.edu>
585         PR tree-optimization/18601
586         * tree-cfg.c (thread_jumps, thread_jumps_from_bb): Removed.
587         (tree_forwarder_block_p): Do not consider blocks that are its own
588         successors forwarders.
589         (cleanup_forwarder_blocks, remove_forwarder_block): New functions.
590         (cleanup_tree_cfg): Use cleanup_forwarder_blocks instead of
591         thread_jumps.
592         * tree-flow.h (bb_ann_d): Remove forwardable.
594 2004-12-06  Kazu Hirata  <kazu@cs.umass.edu>
596         * expr.c (expand_expr_real_1): Remove an "if" whose condition
597         is always false.
599 2004-12-06  Roger Sayle  <roger@eyesopen.com>
601         * c-gimplify.c (gimplify_c_loop): Improve initial implementations
602         for loops whose conditions are known at compile-time.
603         * gimplify.c (append_to_statement_list_1): Remove side_effects
604         parameter, this function should never be called if its false.
605         (append_to_statement_list): Only call append_to_statement_list_1
606         if t is non-NULL tree with side-effects.
607         (append_to_statement_list_force):  Likewise, if t is not NULL.
609 2004-12-06  J"orn Rennecke <joern.rennecke@st.com>
611         * bt-load.c (btr_def_s): New member own_end;
612         (add_btr_to_live_range): Add second parameter.  Changed caller.
613         (clear_btr_from_live_range): Clear btrs_live_at_end bit
614         for the register its definition basic block if own_end is set.
615         (augment_live_range): Also take btrs_live_at_end into account.
616         (combine_btr_defs): Don't bother with
617         other_def->other_btr_uses_after_use if it pertains to a different
618         register.
619         (move_btr_def): Set def->other_btr_uses_before_def after
620         calling combine_btr_defs."
622         * bt-load.c (augment_live_range): New argument full_range.
623         Changed all callers.
625         * bt-load.c (move_tr_def): Set other_tr_uses_before_def
626         taking new btr assignment into account.
628 2004-12-05  Daniel Berlin <dberlin@dberlin.org>
630         * tree-ssa-alias.c (create_global_var): Use void_type_node,
631         not size_type_node.
633 2004-12-05  Kazu Hirata  <kazu@cs.umass.edu>
635         * expr.c (expand_expr_real_1): Abort on COND_EXPR of
636         VOID_TYPE.
638 2004-12-05  Richard Henderson  <rth@redhat.com>
640         PR target/18841
641         * config/alpha/alpha.md (UNSPECV_SETJMPR_ER): New.
642         (builtin_setjmp_receiver_er_sl_1): Use it.
643         (builtin_setjmp_receiver_er_1): Likewise.
644         (builtin_setjmp_receiver_er, exception_receiver_er): Remove.
645         (builtin_setjmp_receiver): Don't split for explicit relocs until
646         after reload.
647         (exception_receiver): Likewise.
649 2004-12-05  Andrew Pinski  <pinskia@physics.uc.edu>
651         * mklibgcc.in (vis_hide): Add the prototype for the test.
653 2004-12-05  Roger Sayle  <roger@eyesopen.com>
655         * c-typeck.c (c_finish_loop): Improve initial implementations
656         for loops whose conditions are known at compile-time.
658 2004-12-05  Kazu Hirata  <kazu@cs.umass.edu>
660         * builtins.c: Fix comment typos.
662 2004-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
664         PR middle-end/18730
665         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): When
666         the first/last insn is a sequence, return the first/last insn of the
667         sequence.
669         PR bootstrap/18804
670         * mklibgcc.in (vis_hide): Use implementation instead of declaration
671         for test function.
673 2004-12-04  Richard Henderson  <rth@redhat.com>
675         * config/alpha/alpha.c (alpha_expand_unaligned_load): Don't forget to
676         use ofs in BWX two byte special case.
677         (alpha_expand_unaligned_store): Likewise.
679 2004-12-04  Kazu Hirata  <kazu@cs.umass.edu>
681         * gcse.c (gcse_main): Add a comment.
683 2004-12-04  Andrew  Pinski  <pinskia@physics.uc.edu>
685         PR middle-end/17909
686         * builtins.c (fold_builtin_next_arg): Export and return true
687         when there is a warning or an error.
688         (expand_builtin_va_start): When fold_builtin_next_arg returns true,
689         return const0_rtx.
690         (expand_builtin): Likewise.
691         * gimplify.c (gimplify_call_expr): Error out if there is not
692         enough arguments to va_start. Call fold_builtin_next_arg also
693         on the second argument.
694         * tree.h (fold_builtin_next_arg): Prototype.
696 2004-12-04  Alan Modra  <amodra@bigpond.net.au>
698         * mklibgcc.in: Build shared libgcc and shared libunwind in gcc/.
699         Don't subst shlib_dir for SHLIB_LINK, SHLIBUNWIND_LINK,
700         SHLIB_INSTALL, and SHLIBUNWIND_INSTALL.
701         * config/i386/t-nwld (SHLIB_NAME): Use shlib_base_name in place of
702         shlib_dir and shlib_so_name.
703         * config/mips/t-slibgcc-irix (SHLIB_NAME): Likewise.
704         * config/t-libunwind-elf (SHLIB_NAME): Likewise.
705         * config/t-slibgcc-darwin (SHLIB_NAME): Likewise.
706         * config/t-slibgcc-elf-ver (SHLIB_NAME): Likewise.
707         * config/t-slibgcc-sld (SHLIB_NAME): Likewise.
708         (SHLIB_LINK): Don't use shlib_dir when creating symlink.
710 2004-12-03  Roger Sayle  <roger@eyesopen.com>
712         * doc/tm.texi (TARGET_DELEGITIMIZE_ADDRESS): Document target hook.
714 2004-12-03  Richard Henderson  <rth@redhat.com>
716         * alias.c (component_uses_parent_alias_set): Rename from
717         can_address_p.  Return bool.  Reverse the sense of the result.
718         Reinstate the check for alias set zero.
719         (get_alias_set): Update to match.
720         * alias.h (component_uses_parent_alias_set): Likewise.
721         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
722         * expr.c (expand_assignment): Likewise.
723         * expr.h: Remove commented out prototypes that were moved to alias.h.
725 2004-12-03  Richard Henderson  <rth@redhat.com>
727         * doc/tm.texi (TARGET_BUILD_BUILTIN_VA_LIST): New.
728         (TARGET_CANNOT_FORCE_CONST_MEM): New.
730 2004-12-04  Alan Modra  <amodra@bigpond.net.au>
732         PR middle end/18718
733         * sched-rgn.c (schedule_region): Don't assume REG_SAVE_NOTEs are
734         in pairs.
735         * sched-ebb.c (schedule_ebb): Likewise.
737 2004-12-03  Andreas Schwab  <schwab@suse.de>
739         * Makefile.in (HOSTHOOKS_DEF_H): Define.
740         (ggc-common.o): Depend on $(HOSTHOOKS_DEF_H).
741         (host-default.o): Likewise.
743 2004-12-03  Eric Christopher  <echristo@redhat.com>
745         * config/stormy16/stormy16.md (pushqi, popqi, pushhi,
746         pophi): Add number of arguments to name so that the
747         pattern is recognized as a named pattern.
749 2004-12-03  Janis Johnson  <janis187@us.ibm.com>
751         * doc/extend.texi (AltiVec Builtins): Fix info about signedness.
753 2004-12-03  Andreas Tobler  <a.tobler@schweiz.ch>
755         * config/rs6000/rs6000.c (rs6000_override_options): Protect
756         darwin_one_byte_bool with #if.
758 2004-12-03  Paolo Bonzini  <bonzini@gnu.org>
760         * doc/tm.texi (Misc): Document TARGET_FOLD_BUILTIN.
762 2004-12-03  H.J. Lu  <hongjiu.lu@intel.com>
764         * mklibgcc.in: Put back the default set of EXTRA_MULTILIB_PART.
766 2004-12-03  Richard Sandiford  <rsandifo@redhat.com>
768         * configure.ac: Move TL_AC_GCC_VERSION into initialization section.
769         Set libstdcxx_incdir directly.
770         * configure: Regenerate.
772 2004-12-03  Kazu Hirata  <kazu@cs.umass.edu>
774         * tree-ssa-dom.c (record_equivalences_from_phis): Remove an
775         "if" whose condition is always true.
777         * cfgrtl.c (rtl_verify_flow_info_1): Use JUMP_P instead of
778         INSN_P.
780 2004-12-02  Stan Shebs  <shebs@apple.com>
782         * config/rs6000/rs6000.c (rs6000_override_options): Make 64-bit
783         Darwin default to one-byte bools.
785 2004-12-02  Richard Henderson  <rth@redhat.com>
787         PR 18774
788         * simplify-rtx.c (simplify_immed_subreg): Fail complex modes.
790 2004-12-03  Ben Elliston  <bje@au.ibm.com>
792         * doc/cfg.texi (Edges): Update. Document the edge_iterator data
793         type and its methods.
795 2004-12-02  Richard Henderson  <rth@redhat.com>
797         * expr.c (write_complex_part): Use simplify_gen_subreg when the
798         submode is at least as large as a word.
799         (read_complex_part): Likewise.
801 2004-12-02  H.J. Lu  <hongjiu.lu@intel.com>
803         PR bootstrap/18532
804         * mklibgcc.in: Build one set of EXTRA_MULTILIB_PARTS for
805         multilib at a time. Don't build the default set. Don't add
806         EXTRA_MULTILIB_PARTS to shared libunwind nor libgcc. Remove
807         filter for shared libunwind and libgcc.
809 2004-12-02  Roger Sayle  <roger@eyesopen.com>
811         PR target/18759
812         * config/i386/i386.c (override_options): If -fomit-frame-pointer has
813         already been specified, ignore the -momit-leaf-frame-pointer option.
815 2004-12-02  H.J. Lu  <hongjiu.lu@intel.com>
817         * varasm.c (make_decl_rtl): Add the missing `;'.
819 2004-12-02  Andrew Pinski  <pinskia@physics.uc.edu>
821         * tree.c (is_attribute_p): Split out to ..
822         (is_attribute_with_length_p): Here.  Use IDENTIFIER_LENGTH instead
823         of strlen and compare the string lengths before calling strcmp.
824         (lookup_attribute): Call is_attribute_with_length_p instead of
825         is_attribute_p.
827 2004-12-02  Devang Patel  <dpatel@apple.com>
829         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -gfull and -gused.
830         * config/rs6000/darwin.h (CC1_SPEC): Do not handle -gfull and -gused.
831         * config/i386/darwin.h (CC1_SPEC): Same.
833 2004-12-02  Richard Henderson  <rth@redhat.com>
835         * optabs.c (lowpart_subreg_maybe_copy): New.
836         (expand_unop, expand_abs_nojump): Use it.
838 2004-12-02  J"orn Rennecke <joern.rennecke@st.com>
840         * sh.md (extv, extzv): Add pattern predicate.
842 2004-12-02  Kazu Hirata  <kazu@cs.umass.edu>
844         * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
845         is not null.
847         * tree-cfg.c (phi_alternatives_equal): Check that PHI_ARG_DEF
848         is not null.
850         * tree-cfg.c (thread_jumps): Reduce the size of WORKLIST.
852 2004-12-02  Jeff Law  <law@redhat.com>
854         * tree-eh.c: Revert yesterday's change.
856 2004-12-02  Andrew Pinski  <pinskia@physics.uc.edu>
858         * varasm.c (decode_reg_name): Revert change to check for zero
859         length strings.
860         (make_decl_rtl): Make sure that we call decode_reg_name only
861         when needed.
863 2004-12-02  Dorit Naishlos  <dorit@il.ibm.com>
865         PR tree-opt/18716
866         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Properly set
867         then and else labels.
869 2004-12-02  Andreas Schwab  <schwab@suse.de>
871         * Makefile.in (WERROR_FLAGS): Renamed from WERROR.
872         (STRICT2_WARN): Use $(WERROR_FLAGS) instead of $(WERROR).
873         (STAGE2_FLAGS_TO_PASS): Likewise.
875         * config/i386/x-mingw32: Set WERROR_FLAGS instead of WERROR.
877 2004-12-02  Richard Sandiford  <rsandifo@redhat.com>
879         * configure.ac: Use TL_AC_GCC_VERSION to set gcc_version.  Remove
880         now-redundant AC_SUBSTs.
881         * aclocal.m4: Include ../config/gcc-version.m4.
882         * configure: Regenerate.
884 2004-12-02  Alan Modra  <amodra@bigpond.net.au>
886         * config/rs6000/rs6000.c (rs6000_assemble_integer): Put back the
887         #ifdef RELOCATABLE_NEEDS_FIXUP.
889 2004-12-01  Roger Sayle  <roger@eyesopen.com>
891         PR target/9908
892         * config/i386/i386.md (*call_value_1, *sibcall_value_1): Correct
893         Intel assembler syntax by using %A1 instead of %*%1.
895 2004-12-01  Richard Henderson  <rth@redhat.com>
897         * expr.c (expand_assignment): Handle CONCAT both as a final
898         destination and as a middle point.
900 2004-12-01  Jeff Law  <law@redhat.com>
902         * tree-eh.c (save_eptr, save_filt): Now file scoped statics.
903         (honor_protect_cleanup_actions): Only create save_eptr and
904         save_filt if they do not already exist.
905         (lower_eh_constructs): Wipe all knowledge of save_eptr and
906         save_filt before returning.
908 2004-12-02  Kazu Hirata  <kazu@cs.umass.edu>
910         * tree-phinodes.c (remove_phi_arg_num): Fix a comment.
912 2004-12-02  Alan Modra  <amodra@bigpond.net.au>
914         PR target/16952
915         * config/rs6000/rs6000.c (rs6000_assemble_integer): Replace
916         #ifdef RELOCATABLE_NEEDS_FIXUP with if.
917         * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Define in terms
918         of target_flags_explicit.
919         * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Ditto for biarch
920         case.  Define as 0 for non-biarch.
922 2004-12-01  Zack Weinberg  <zack@codesourcery.com>
924         * config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
925         Change temporary file tag from a prefix to an infix.
927 2004-12-02  Andreas Schwab  <schwab@suse.de>
929         * gcc.c (struct option_map): Add entry for "--pass-exit-codes".
931 2004-12-01  Andrew Pinski  <pinskia@physics.uc.edu>
933         PR tree-opt/18763
934         PR tree-opt/18746
935         * tree-ssa-alias.c (init_alias_info): Get statement operands for all
936         the statements if aliases_computed_p is true.
938 2004-12-01  Mark Mitchell  <mark@codesourcery.com>
940         * Makefile.in (WERROR): New variable.
941         (STRICT2_WARN): Use it.
942         (STAGE2_FLAGS_TO_PASS): Likewise.
943         * config/i386/x-mingw32 (WERROR): Add -Wno-format.
945 2004-12-01  Richard Henderson  <rth@redhat.com>
947         * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
948         offsetting.
950 2004-12-01  Diego Novillo  <dnovillo@redhat.com>
952         PR tree-optimization/18291
953         * tree-ssa-copy.c (merge_alias_info): Fix merging of
954         flow-sensitive alias information.  If the new pointer has no
955         name tag, copy it from the original pointer.  Otherwise, make
956         sure that the pointed-to sets have a common intersection.
958 2004-12-01  Richard Henderson  <rth@redhat.com>
960         PR rtl-opt/15289
961         * emit-rtl.c (gen_complex_constant_part): Remove.
962         (gen_realpart, gen_imagpart): Remove.
963         * rtl.h (gen_realpart, gen_imagpart): Remove.
964         * expmed.c (extract_bit_field): Remove CONCAT hack catering to
965         gen_realpart/gen_imagpart.
966         * expr.c (write_complex_part, read_complex_part): New.
967         (emit_move_via_alt_mode, emit_move_via_integer, emit_move_resolve_push,
968         emit_move_complex_push, emit_move_complex, emit_move_ccmode,
969         emit_move_multi_word): Split out from ...
970         (emit_move_insn_1): ... here.
971         (expand_expr_real_1) <COMPLEX_EXPR>: Use write_complex_part.
972         <REALPART_EXPR, IMAGPART_EXPR>: Use read_complex_part.
973         * function.c (assign_parm_setup_reg): Hard-code transformations
974         instead of using gen_realpart/gen_imagpart.
976         * expr.c (optimize_bitfield_assignment_op): Split out from ...
977         (expand_assignment): ... here.  Use handled_component_p to gate
978         get_inner_reference code.  Simplify MEM handling.  Special case
979         CONCAT destinations.
981         * expmed.c (store_bit_field): Use simplify_gen_subreg instead
982         of gen_rtx_SUBREG directly.
984 2004-12-01  David Edelsohn  <edelsohn@gnu.org>
985             Nathan Sidwell  <nathan@codesourcery.com>
987         PR target/17107
988         * config/rs6000/rs6000.md (sge): Enable for non-TARGET_POWER.
989         (sgt): Same.
990         (sle): Same.
991         (slt): Same.
993 2004-12-01  Nathan Sidwell  <nathan@codesourcery.com>
995         PR middle-end/18667
996         * params.c (set_param_value): Add range check.
997         * params.def: Add min and max values. Reformat long strings.
998         * params.h (struct param_info): Add min and max fields.
999         (enum compiler_param): Adjust DEFPARAM.
1000         * toplev.c (lang_independent_params): Likewise.
1002 2004-12-01  Alan Modra  <amodra@bigpond.net.au>
1004         PR target/12817
1005         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use r0 for vrsave.
1007 2004-12-01  Joseph S. Myers  <joseph@codesourcery.com>
1009         * doc/standards.texi: Update for C99 TC2.
1011 2004-11-30  Jeff Law  <law@redhat.com>
1013         * sbitmap.c (sbitmap_any_common_bits): New function.
1014         * sbitmap.h (sbitmap_any_common_bits): Prototype.
1015         * modulo-sched.c (sms_schedule_by_order): Use sbitmap_any_common_bits
1016         No longer allocate/free "psp", "pss" sbitmaps.
1017         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Similarly for
1018         the "res" sbitmap.
1019         (group_aliases): Similarly.
1021 2004-11-30  Nathan Sidwell  <nathan@codesourcery.com>
1023         * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
1024         uninitialized variable.
1026 2004-11-30  Eric Christopher  <echristo@redhat.com>
1028         * fold-const.c (fold_widened_comparison): Make sure that we're
1029         passing an INTEGER_TYPE to int_fits_type_p.
1030         (fold): Clean up comment.
1032 2004-11-30  Zack Weinberg  <zack@codesourcery.com>
1034         * mklibgcc.in: Correct calculation of libgcc_s_soname and
1035         libunwind_soname.  Use $out, not $outS, in commands for
1036         no-shared-library case.  Move EXTRA_MULTILIB_PARTS rules above
1037         library build rules, make $libunwind_so and $libgcc_s_so
1038         depend on them in the normal fashion, and filter those objects
1039         out of @shlib_objs@.
1041 2004-11-30  Janis Johnson  <janis187@us.ibm.com>
1043         * config/rs6000/altivec.h (vec_step_help): Support const vector types.
1045 2004-11-30  Andrew Pinski  <pinskia@physics.uc.edu>
1047         PR tree-opt/18298
1048         * tree-optimize.c (init_tree_optimization_passes): Add a may_alias
1049         pass right after fold builtins.
1051 2004-11-30  Andreas Krebbel  <krebbel1@de.ibm.com>
1053         * config/s390/s390-modes.def: Added cc modes documentation.
1054         * config/s390/s390.c: (s390_tm_ccmode, s390_select_ccmode,
1055         s390_expand_addcc): Added cc mode comments.
1056         * config/s390/s390.md: Removed old cc mode documentation.
1058 2004-11-30  Mark Dettinger  <dettinge@de.ibm.com>
1060         * config/s390/s390.c (struct processor_costs): New data type.
1061         (s390_cost, z900_cost, z990_cost): New global variables.
1062         (override_options): Initialize s390_cost.
1063         (s390_rtx_costs): Reimplement.
1065 2004-11-29  Daniel Berlin  <dberlin@dberlin.org>
1067         Fix PR tree-optimization/18673
1069         * tree-ssa-pre.c: Remove splay-tree.h include.
1070         (bitmap_value_replace_in_set): Fix to add if it does not exist.
1071         (find_or_generate_expression): Remove now-wrong condition.
1072         (create_expression_by_pieces): Fix condition and comment reason
1073         for it.
1074         (insert_aux): Fix condition and comment reasons for it.
1075         Factor insertion code from here.
1076         (insert_into_preds_of_block): To here.  Fix conditions in factored
1077         function and comment reasons for them.
1079 2004-11-30  Ira Rosen  <irar@il.ibm.com>
1081         PR tree-opt/18607
1082         * tree-vectorizer.c (vect_analyze_data_refs): Use temporary
1083         variable for data_reference when looking for memtag.
1085 2004-11-30  Jakub Jelinek  <jakub@redhat.com>
1087         * c-opts.c (check_deps_environment_vars): If spec != NULL, set
1088         deps_seen.
1090 2004-11-30  Dorit Naishlos  <dorit@il.ibm.com>
1092         * tree-vectorizer.c (vect_gen_niters_for_prolog_loop): Use
1093         tree_low_cst instead of TREE_INT_CST_LOW.
1095 2004-11-30  Dorit Naishlos  <dorit@il.ibm.com>
1097         PR target/18173
1098         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Return false for
1099         decls that are assembled before vectorization takes place.
1100         (vect_compute_data_ref_alignment): Set DECL_USER_ALIGN to 1.
1102 2004-11-30  Ulrich Weigand  <uweigand@de.ibm.com>
1104         * passes.c (rest_of_handle_old_regalloc): Delete unreachable blocks
1105         if local_alloc modified jumps.
1107 2004-11-30  Alan Modra  <amodra@bigpond.net.au>
1109         * varasm.c (default_encode_section_info): Don't set SYMBOL_FLAG_SMALL
1110         on TLS symbols.
1111         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Remove TLS
1112         check.
1114 2004-11-30  Zack Weinberg  <zack@codesourcery.com>
1116         * gthr-gnat.c, gthr-gnat.h, gthr.h, libgcc2.h, unwind-dw2-fde.h
1117         * unwind.h: Surround all visibility pragmas with #ifndef HIDE_EXPORTS.
1119         * mklibgcc.in: Drastic restructure for comprehensibility.
1120         Remove the old hidden-directive hack.
1121         Eliminate support for .txt files in LIB2ADD etc (never used).
1122         Eliminate support for assembly source files in LIB2ADDEH* and
1123         LIBUNWIND (also never used).
1124         Build up dependency lists for libraries incrementally.
1125         If we have SHLIB_LINK, compile each file twice, once for the
1126         static and once for the shared library; also probe for
1127         -fvisibility=hidden in the generated libgcc.mk.  If found,
1128         pass that and -DHIDE_EXPORTS to the compilation of every C
1129         source file going into the static library.  If found, generate
1130         hidden-directive lists for every assembly source file going
1131         into the static library, but incorporate them with -include
1132         instead of ld -r.
1133         Write comments into generated libgcc.mk to facilitate debugging.
1134         * Makefile.in: Pass ASM_HIDDEN_OP to mklibgcc.
1135         * config/t-slibgcc-darwin: Define ASM_HIDDEN_OP.
1137         * config/darwin.h (REAL_LIBGCC_SPEC): Put -lgcc back in
1138         -Zdynamiclib case.
1140 2004-11-29  Richard Henderson  <rth@redhat.com>
1142         * expr.c (get_inner_reference): Handle REAL/IMAGPART_EXPR.
1143         (handled_component_p): Likewise.
1144         * alias.c (can_address_p): Reformat and simplify.  Handle
1145         REAL/IMAGPART_EXPR.  Do not disable addressability based on
1146         alias set zero.
1147         * fold-const.c (build_fold_addr_expr_with_type): Remove duplicate
1148         check for REAL/IMAGPART_EXPR.
1149         * gimplify.c (gimplify_compound_lval): Likewise.
1150         * tree-cfg.c (verify_expr): Likewise.
1151         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
1152         * tree-nested.c (build_addr, convert_nonlocal_reference): Likewise.
1153         (convert_local_reference): Likewise.
1154         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Likewise.
1156 2004-11-30  Alan Modra  <amodra@bigpond.net.au>
1158         * expr.c (emit_group_load_1): Don't die on const_int orig_src.
1160 2004-11-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1162         PR pch/14940
1163         * config/pa/pa-host.c, config/pa/x-hpux, config/pa/x-linux: New files.
1164         * config.host (hppa*-*-hpux*, hppa*-*-linux): Define out_host_hook_obj
1165         and host_xmake_file using new host configuration files.
1167 2004-11-29  Roger Sayle  <roger@eyesopen.com>
1169         * reg-stack.c (change_stack): Improve algorithm used to pop regs
1170         off the stack to maximize ffreep usage and reduce fxch count.
1172 2004-11-30  James A. Morrison  <phython@gcc.gnu.org>
1174         PR middle-end/18596
1175         * c-decl.c (grokdeclarator): Reset DECL_INTIAL to error_mark_node
1176         on errors.
1178 2004-11-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1180         * expr.c (expand_expr_real_1, case NOP_EXPR): Properly handle
1181         REDUCE_BIT_FIELD by applying it to result, not input, of conversion.
1183 2004-11-30  Ben Elliston  <bje@au.ibm.com>
1185         * Makefile.in (REGS_H): Depend on $(BASIC_BLOCK_H).
1187 2004-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
1189         PR c/18479
1190         * c-common.c (handle_visibility_attribute): When the type decl
1191         is really a identifier node, warn about being ignored and return.
1193 2004-11-29  Richard Henderson  <rth@redhat.com>
1195         * tree-cfg.c (tree_node_can_be_shared): Fix typo'd error_mark_node.
1197 2004-11-29  Steven Bosscher  <stevenb@suse.de>
1199         * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge):
1200         Remove CASE_DROPS_THROUGH checks, it is never defined.
1201         * cfglyout.c (fixup_reorder_chain): Likewise.
1202         * cfgrtl.c (rtl_verify_flow_info): Likewise.
1203         * stmt.c (expand_case): Likewise.
1204         * cfgbuild.c (make_edges): Likewise.  Also remove force_fallthru,
1205         it is now always 0.
1206         * system.h (CASE_DROPS_THROUGH): Poison.
1207         * doc/md.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1208         * doc/tm.texi (casesi): Remove documentation of CASE_DROPS_THROUGH.
1210         * config/v850/v850.h: Remove commented out CASE_DROPS_THROUGH.
1212 2004-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
1214         PR middle-end/18725
1215         * tree-cfg.c (tree_node_can_be_shared): Error_mark_node can be
1216         shared always.
1218 2004-11-29  Diego Novillo  <dnovillo@redhat.com>
1220         PR tree-optimization/18712
1221         * tree-into-ssa.c (insert_phi_nodes_for): Pass argument
1222         WORK_STACK by reference.
1223         Call VEC_safe_push instead of VEC_quick_push.
1224         Update all users.
1226 2004-11-29  Daniel Jacobowitz  <dan@codesourcery.com>
1228         PR c/7544
1229         * Makefile.in (c-lang.o): Update dependencies.
1230         * c-lang.c: Include "c-pragma.h".
1231         (finish_file): Call maybe_apply_pending_pragma_weaks.
1232         * c-pragma.c (maybe_apply_pending_pragma_weaks): New function.
1233         * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype.
1235 2004-11-29  Richard Henderson  <rth@redhat.com>
1237         PR target/17224
1238         * config/ia64/predicates.md (sdata_symbolic_operand): Deny offsets
1239         outside the referenced object.
1241 2004-11-29  Kazu Hirata  <kazu@cs.umass.edu>
1243         * tree-if-conv.c (replace_phi_with_cond_modify_expr): Use
1244         EDGE_PRED instead of PHI_ARG_EDGE.
1245         * tree-ssa-live.c: Likewise.
1246         * tree-ssa-loop-manip.c: Likewise.
1247         * tree-ssa.c: Likewise.
1249         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Speed up by
1250         simplifying edge manipulation.
1252         * cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
1253         EDGE_COUNT.
1255         * tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
1256         only when needed.
1258         * cfg.c (flow_obstack): Remove.
1259         (flow_firstobj): Likewise.
1260         (init_flow): Remove all uses of flow_obstack.
1262 2004-11-29  Alan Modra  <amodra@bigpond.net.au>
1264         * varasm.c (default_elf_select_section_1): Only pass DECL_P decl
1265         to named_section.
1267 2004-11-29  Nathan Sidwell  <nathan@codesourcery.com>
1269         * opts.c (decode_options): Do not set max-inline-insns-rtl.
1270         (common_handle_option): Likewise.
1271         * params.def (PARAM_MAX_INLINE_INSNS_RTL): Remove.
1272         * params.h (MAX_INLINE_INSNS_RTL): Remove.
1273         * doc/invoke.texi (max-inline-insns-rtl): Remove.
1275 2004-11-29  Alan Modra  <amodra@bigpond.net.au>
1277         PR target/9571
1278         * varasm.c (default_elf_select_section_1): Pass decl to named_section.
1280 2004-11-28  Andrew Pinski  <pinskia@physics.uc.edu>
1282         PR middle-end/18164
1283         * gimplify.c (gimplify_asm_expr): If the length of an output operand
1284         is zero, do not process it, just let it go through.
1286 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1287             Diego Novillo  <dnovillo@redhat.com>
1289         PR/18662, also backported from tree-cleanup-branch.
1290         * tree-ssa-ccp.c (substitute_and_fold): If replaced anything,
1291         always call maybe_clean_eh_stmt and modify_stmt.
1293 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1295         PR/18664
1296         * tree-ssa-operands.c (build_ssa_operands, case MODIFY_EXPR):
1297         Ignore a VIEW_CONVERT_EXPR on LHS when deciding if must or may def.
1298         * tree-ssa-ccp.c (visit_assignment): If LHS is a VIEW_CONVERT_EXPR,
1299         add an inverse VIEW_CONVERT_EXPR to const_val.
1301         PR/18657
1302         * tree-nested.c (check_for_nested_with_variably_modified): New.
1303         (create_nesting_tree): Call it.
1305         * tree-ssa-alias.c (compute_points_to_and_addr_escapes): Remove
1306         special code for assigning to non-pointer.
1307         (is_escape_site): If RHS is a conversion between pointer and integer
1308         types,  this is an escape site.
1310         * gcse.c (insert_store): Error if try to insert store on abnormal edge.
1311         (store_motion): Don't move store if any edge we'd want to move it
1312         to is abnormal.
1314         * expr.c (expand_expr_real_1, case ARRAY_REF): Properly fold with
1315         non-zero lower bound.
1317         * expr.c (categorize_ctor_elements_1, case STRING_CST): New case.
1319 2004-11-28  Matt Kraai  <kraai@alumni.cmu.edu>
1321         PR diagnostic/17594
1322         * opts.c (find_opt): Require that the input match a switch exactly
1323         or that the switch take a joined option to be interpreted as a
1324         match for another language.
1326 2004-11-28  Andrew Pinski  <pinskia@physics.uc.edu>
1328         * timevar.def (TV_TREE_REDPHI): New timevar.
1329         * tree-ssa.c (pass_redundant_phi): Use TV_TREE_REDPHI for the tv id.
1331 2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>
1333         PR preprocessor/17651
1334         * c-opts.c (sanitize_cpp_opts): Make flag_no_output imply
1335         flag_no_line_commands.
1336         * c-ppoutput.c (pp_file_change): Remove now-redundant check of
1337         flag_no_output.
1339 2004-11-28  Theodore A. Roth  <troth@openavr.org>
1341         * config/avr/avr.c (avr_handle_fndecl_attribute): Generate a
1342         warning if the function name does not begin with "__vector" and the
1343         function has either the 'signal' or 'interrupt' attribute.
1345 2004-11-28  Theodore A. Roth  <troth@openavr.org>
1347         * config/avr/avr.c (avr_mcu_types): Add entries for atmega48,
1348         atmega88, atmega168, attiny13, attiny2313, at90can128, atmega165,
1349         atmega325, atmega3250, atmega645 and atmega6450.
1350         * config/avr/avr.h (LINK_SPEC): Ditto.
1351         (LIB_SPEC): Ditto.
1352         (LIBGCC_SPEC): Ditto.
1353         (CRT_BINUTILS_SPECS): Ditto.
1354         * config/avr/t-avr (MULTILIB_MATCHES): Ditto.
1356 2004-11-28  Nathanael Nerode  <neroden@gcc.gnu.org>
1358         PR preprocessor/17610
1359         * testsuite/gcc.dg/cpp/empty-include.c: New testcase.
1361 2004-11-28  Jeff Law  <law@redhat.com>
1363         * tree-ssa-alias.c (count_calls_and_maybe_create_global_var): New.
1364         (pass_maybe_create_global_var): New.
1365         * tree-pass.h (pass_maybe_create_global_var): Declare.
1366         * tree-optimize.c (init_tree_optimization_passes): Link in
1367         pass_maybe_create_global_var.
1369 2004-11-28  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1371         * tree-inline.c (inline_forbidden_p_1, case RECORD_TYPE): Add comment.
1373 2004-11-28  Ulrich Weigand  <uweigand@de.ibm.com>
1375         PR rtl-optimization/18420
1376         * simplify-rtx.c (simplify_gen_subreg): Revert 2004-10-28 change.
1378 2004-11-28  Steven Bosscher  <stevenb@suse.de>
1379             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1381         * config/vax/vax.h (CASE_DROPS_THROUGH): Don't define.
1382         * config/vax/vax.md (casesi): Emit a test-and-branch to make sure
1383         that the case is in range, to make sure the casesi insn is always
1384         in range and never falls through.
1385         (casesi1): Add comment to explain why casesi never falls through.
1386         Remove the unnamed special case casesi pattern.
1388 2004-11-28  Hans-Peter Nilsson  <hp@bitrange.com>
1390         PR target/18331
1391         * config/mmix/mmix.md ("*movdicc_real_reversible"): Rename from
1392         "*movdicc_real".  Only match reversible comparisons.
1393         ("*movdicc_real_nonreversible"): New pattern, split from
1394         "*movdicc_real".  Match only nonreversible comparisons.  Exclude
1395         reversed alternatives.
1396         ("*movdfcc_real_reversible", "*movdfcc_real_nonreversible"):
1397         Similar.
1399 2004-11-27  Richard Henderson  <rth@redhat.com>
1401         * config/ia64/ia64.md: Move all define_predicate's ...
1402         * config/ia64/predicates.md: ... here.  New file.
1404 2004-11-27  Per Bothner  <per@bothner.com>
1406         PR bootstrap/18142
1407         Re-applied following, with two modifications: add a URL for the
1408         fixed cctools; only exit if $build = $target.
1410         2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
1411         * configure.ac (powerpc-*-darwin*): Require assembler to support
1412         .machine directive.
1413         * configure: Regenerate.
1415 2004-11-28  David Edelsohn  <edelsohn@gnu.org>
1417         PR target/16800
1418         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve accuracy of
1419         EQ, GTU, and LTU costs.  Add costs for GT, LT, and UNORDERED.
1420         Distinguish between SImode and DImode CONST_INT.
1422 2004-11-28  Andreas Fischer <a_fisch@gmx.de>
1423             Alan Modra  <amodra@bigpond.net.au>
1425         PR target/16343
1426         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Disallow
1427         functions, strings and thread-local vars.
1429 2004-11-28  Alan Modra  <amodra@bigpond.net.au>
1431         * config/rs6000/rs6000.h (WORLD_SAVE_P): Define.
1432         * config/rs6000/darwin.h (WORLD_SAVE_P): Define.
1433         * config/rs6000/rs6000.c (compute_save_world_info): Use WORLD_SAVE_P
1434         to allow non-darwin ABIs to optimize away code.
1435         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
1437 2004-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1439         * tree.c (operand_equal_for_phi_arg_p): New.
1440         * tree.h: Add a prototype for operand_equal_for_phi_arg_p.
1441         * tree-cfg.c, tree-ssa-dom.c, tree-ssa-phiopt.c, tree-ssa.c:
1442         Replace operand_equal_p with operand_for_phi_arg_p
1443         appropriately.
1445         * bb-reorder.c (find_traces_1_round): Speed up by using
1446         EDGE_COUNT instead of FOR_EACH_EDGE.
1448         * fold-const.c, config/i386/linux64.h: Fix comment typos.
1450 2004-11-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1452         PR pch/14940
1453         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Revert 2004-11-22 change.
1455 2004-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1457         * config/i386/linux.h: Fix a comment typo.
1458         * doc/extend.texi: Fix a typo.
1460 2004-11-27  Jeff Law  <law@redhat.com>
1462         * tree-cfg.c (cleanup_tree_cfg): Also return true if blocks
1463         are merged.
1465 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
1467         * config/i386/linux64.h (REG_NAME): Define.
1469 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
1471         * fold-const.c (extract_muldiv_1) <case ABS_EXPR>: If ctype is
1472         unsigned and type signed, build ABS_EXPR with signed_type (ctype)
1473         and only afterwards convert to ctype.
1475 2004-11-27  Richard Sandiford  <rsandifo@redhat.com>
1477         * config/mips/mips-protos.h (function_arg_boundary): Declare.
1478         * config/mips/mips.h (PARM_BOUNDARY): Simplify definition.
1479         (STACK_BOUNDARY, MIPS_STACK_ALIGN): Likewise.
1480         (FUNCTION_ARG_BOUNDARY): Use new function_arg_boundary function.
1481         * config/mips/mips.c (function_arg_boundary): New function.
1482         Impose a maximum alignment of STACK_BOUNDARY.
1484 2004-11-27  Jakub Jelinek  <jakub@redhat.com>
1486         PR rtl-optimization/17825
1487         * combine.c (subst): Ignore STRICT_LOW_PART no matter if REG_P (new)
1488         or not.
1490 2004-11-27  Alan Modra  <amodra@bigpond.net.au>
1492         PR target/12769
1493         * config/rs6000/rs6000.c (init_cumulative_args): Set call_cookie
1494         from rs6000_default_long_calls for libcalls.
1496 2004-11-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1498         * expmed.c (extract_bit_field): When extracting from non-integer mode,
1499         force a SUBREG into a register because we may be taking a further
1500         SUBREG of it.
1502 2004-11-27  Di-an Jan  <dianj@freeshell.org>
1504         * doc/contrib.texi (Tim Josling): Remove nesting quotation marks.
1506 2004-11-26  Robert Millan  <robertmh@gnu.org>
1508         Changes for k*bsd-gnu support.
1509         * config/i386/linux.h: Define REG_NAME to allow overriding of
1510         register names in sc structure.
1511         * config/i386/linux-unwind.h: Refer to sc->REG_NAME(reg) instead
1512         of sc->reg.
1513         * config.gcc: Detect x86_64-k*bsd-gnu systems.
1515 2004-11-26  Jeff Law  <law@redhat.com>
1517         * tree-ssa.c (verify_flow_sensitive_alias_info): Don't
1518         retrieve annotations or pointer info before it's necessary.
1519         Reorder tests for early continue of the loop.  Manually CSE
1520         SSA_NAME_VAR.
1522 2004-11-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
1524         * target.h (struct gcc_target): New field 'dwarf_handle_frame_unspec'.
1525         * target_def.h (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to 0.
1526         (TARGET_INITIALIZER): Add TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1527         * dwarf2out.c (dwarf2out_frame_debug_expr): Allow REG->REG move
1528         to a fixed reg if the source is the Return Address register.
1529         Implement new Rule 15.
1530         * doc/tm.texi (Frame Layout): Document TARGET_DWARF_HANDLE_FRAME_UNSPEC.
1531         * config/sparc/sparc.c (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define to
1532         sparc_dwarf_handle_frame_unspec.
1533         (gen_save_register_window): New function.
1534         (emit_stack_pointer_increment): Rename into gen_stack_pointer_inc.
1535         (emit_stack_pointer_decrement): Rename into gen_stack_pointer_dec.
1536         (expand_prologue): Adjust calls to emit_stack_pointer_{in,de}crement.
1537         Set RTX_FRAME_RELATED_P on the appropriate insns and members of insns.
1538         (sparc_asm_function_prologue): Do not emit call frame debugging info.
1539         (emit_and_preserve): Adjust calls to emit_stack_pointer_{in,de}crement.
1540         (sparc_expand_epilogue): Likewise.
1541         (sparc_dwarf_handle_frame_unspec): New function.
1542         * config/sparc/sparc.md (save_register_window): Remove.
1543         (save_register_windowdi): Rewrite modelled on the callframe debug info.
1544         (save_register_windowsi): Likewise.
1546 2004-11-26  Alexandre Oliva  <aoliva@redhat.com>
1548         * config/frv/frv-protos.h: Guard ifcvt functions declarations with
1549         BB_HEAD, not BLOCK_HEAD.
1551 2004-11-26  Alexandre Oliva  <aoliva@redhat.com>
1553         * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
1554         scratch insns that set a register live at the join point.
1556 2004-11-26  Kazu Hirata  <kazu@cs.umass.edu>
1558         * cse.c, tree-ssa-operands.c: Fix comment typos.
1560         * tree-cfg.c (tree_split_edge): Speed up by using find_edge.
1562 2004-11-26  James A. Morrison  <phython@gcc.gnu.org>
1564         PR target/18510
1565         * doc/extend.texi (SPARC VIS Built-in Functions): New section.
1567 2004-11-26  Kazu Hirata  <kazu@cs.umass.edu>
1569         * cfgrtl.c (try_redirect_by_replacing_jump): Speed up the
1570         check that tests if all edges go to the same destination.
1572         * bitmap.c (bitmap_find_bit): Speed up by traversing from
1573         head->first if that seems profitable.
1575 2004-11-25  Jeff Law  <law@redhat.com>
1577         * timevar.def (TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI): New timevars.
1578         * tree-ssa-loop.c (pass_loop_init): Use TV_TREE_LOOP_INIT.
1579         (pass_loop_done): Use TV_TREE_LOOP_FINI.
1581 2004-11-26  Alan Modra  <amodra@bigpond.net.au>
1583         PR rtl-optimization/16356
1584         * config/rs6000/rs6000.md (floatdisf2_internal2): Rewrite with
1585         separate output register and one less jump.  Enable for powerpc64.
1586         (floatdisf2): Adjust for above.
1588 2004-11-25  Bob Wilson  <bob.wilson@acm.org>
1590         * config/xtensa/xtensa.h (STARTFILE_SPEC): Add crt0.
1591         (GCC_DRIVER_HOST_INITIALIZATION): Define.
1593 2004-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
1595         PR middle-end/17957
1596         * tree-complex.c (vector_inner_type): New variable moved from
1597         build_word_mode_vector_type.
1598         (vector_last_type): Likewise.
1599         (vector_last_nunits): Likewise.
1600         (build_word_mode_vector_type): Use the new variables.
1601         * Makefile.in (tree-complex.o): Add gt-tree-complex.h $(GGC_H).
1602         (GTFILES): Add tree-complex.c.
1603         (gt-tree-complex.h): New rule, add it to the rest of the gt-* rules.
1605 2004-11-25  Bob Wilson  <bob.wilson@acm.org>
1607         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define
1608         __XTENSA_WINDOWED_ABI__.
1610 2004-11-25  Richard Henderson  <rth@redhat.com>
1612         * dwarf2out.c (dwarf2out_stack_adjust): Add after_p argument.  Save
1613         args_size adjustments for calls even with cfa as stack pointer.
1614         Search calls for stack adjustments after the insn is issued.
1615         (dwarf2out_frame_debug): Add after_p argument; pass it on.
1616         * dwarf2out.h (dwarf2out_frame_debug): Update to match.
1617         * final.c (final_start_function, final_scan_insn): Likewise.
1619 2004-11-25  Richard Henderson  <rth@redhat.com>
1621         PR c++/6764
1622         * reload1.c (set_initial_eh_label_offset): New.
1623         (set_initial_label_offsets): Use it.
1625 2004-11-25  Kaz Kojima  <kkojima@gcc.gnu.org>
1627         * config/sh/sh.c (sh_output_mi_thunk): Initialize bitmap obstacks
1628         before calling life_analysis and release them after.
1630 2004-11-25  Kazu Hirata  <kazu@cs.umass.edu>
1632         * tree-ssa-forwprop.c (substitute_single_use_vars): Remove
1633         duplicate code.
1635 2004-11-25  Andrew Pinski <pinskia@physics.uc.edu>
1637         * bitmap.h (BITMAP_XMALLOC): Use BITMAP_ALLOC and not
1638         BITMAP_OBSTACK_ALLOC.
1639         (BITMAP_XFREE): Use BITMAP_FREE and not BITMAP_OBSTACK_FREE.
1641 2004-11-25  Andrew Pinski <pinskia@physics.uc.edu>
1643         parts of PR rtl-opt/18463, rtl-opt/17647
1644         * cse.c (canon_for_address): New function.
1645         (find_best_addr): Call canon_for_address before getting the
1646         address's cost when checking if we should take that address.
1648 2004-11-25  Kazu Hirata  <kazu@cs.umass.edu>
1650         * tree-phinodes.c (add_phi_arg): Take "tree" instead of
1651         "tree *" as the first argument.
1652         * tree-flow.h: Update the prototype of add_phi_arg.
1653         * lambda-code.c, tree-cfg.c, tree-into-ssa.c,
1654         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1655         tree-ssa-threadupdate.c, tree-ssa.c, tree-tailcall.c,
1656         tree-vectorizer.c: Update all call sites of add_phi_arg.
1658 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
1660         * bitmap.c (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1661         * bitmap.h (bitmap_malloc_alloc, bitmap_malloc_free): Remove.
1662         (BITMAP_XMALLOC): Forward to BITMAP_OBSTACK_ALLOC.
1663         (BITMAP_XFREE): Forward to BITMAP_OBSTACK_FREE.
1665 2004-11-25  Andrew MacLeod  <amacleod@redhat.com>
1667         PR tree-optimization/18587
1668         * tree-flow-inline.h (mark_call_clobbered, mark_non_addressable): Flag
1669         call clobbered caches as invalid.
1670         * tree-ssa-operands.c (ssa_call_clobbered_cache_valid): New.  Flag
1671         indicating whether the call clobbered operand cache is valid.
1672         (ssa_ro_call_cache_valid): New.  Flag indicating whether the
1673         pure/const call operand cache is valid.
1674         (clobbered_v_may_defs, clobbered_vuses, ro_call_vuses): New.  Cached
1675         list of operands for cached call virtual operands.
1676         (clobbered_aliased_loads, clobbered_aliased_stores,
1677         ro_call_aliased_load): New.  flags caching whether alias bits are
1678         to be set in call stmt's.
1679         (fini_ssa_operands): Remove call operand caches if present.
1680         (get_expr_operands, get_asm_expr_operands,
1681         get_indirect_ref_operands): Pass stmt annotation to add_stmt_operand.
1682         (get_call_expr_operands): Add call clobbered variables first.
1683         (add_stmt_operand): Take stmt annotation rather than stmt as a param.
1684         (add_call_clobber_ops, add_call_read_ops): Use the call operand cache
1685         if it is valid, otherise fill the cache.
1686         * tree-ssa-operands.h (ssa_clobbered_cache_valid): Declare extern.
1687         * tree-flow.h (struct var_ann_d): Add in_vuse_list and
1688         in_v_may_def_list bits.
1689         * tree-ssa-operands.c (cleanup_v_may_defs): New.  Clear the
1690         in_list bits for the v_may_def elements and empty the operand
1691         build array
1692         (finalize_ssa_vuses): Use cleanup_v_may_defs and remove redundant
1693         VUSES by checking the in_v_may_def_list bit.
1694         (append_v_may_def, append_vuse): Use the in_list bit rather than
1695         scanning the array for duplicates.
1697 2004-11-25  Ulrich Weigand  <uweigand@de.ibm.com>
1699         * config/s390/s390.c (s390_short_displacement): UNSPEC_GOTNTPOFF
1700         displacements are not short.
1702 2004-11-25  Ulrich Weigand  <uweigand@de.ibm.com>
1704         * config/s390/s390.c (legitimize_pic_address): Use s390_load_address
1705         to load addresses.
1707 2004-11-25  Mark Mitchell  <mark@codesourcery.com>
1709         PR c++/18001
1710         * c-common.h (lvalue_use): Move here from c-ctypeck.c.
1711         (lvalue_or_else): Declare.
1712         * c-common.c (lvalue_or_else): Move here from c-typeck.c.
1713         * c-typeck.c (lvalue_use): Remove.
1714         (lvalue_or_else): Remove.
1716         PR c++/18556
1717         * toplev.c (check_global_declarations): Set DECL_IGNORED_P on
1718         unemitted variables with static storage duration.
1720 2004-11-25  Gerald Pfeifer  <gerald@pfeifer.com>
1722         * tree-cfg.c (tree_verify_flow_info): Do not terminate error()
1723         message with \n.
1725 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
1727         * config/rs6000/altivec.md (VIshort): New mode macro.
1728         (altivec_vaddubs, altivec_vadduhs, altivec_vadduws): Replace
1729         with ...
1730         (altivec_vaddu<VI_char>s): ... this.
1731         (altivec_vaddsbs, altivec_vaddshs, altivec_vaddsws): Replace
1732         with ...
1733         (altivec_vadds<VI_char>s): ... this.
1734         (altivec_vsububs, altivec_vsubuhs, altivec_vsubuws): Replace
1735         with ...
1736         (altivec_vsubu<VI_char>s): ... this.
1737         (altivec_vsubsbs, altivec_vsubshs, altivec_vsubsws): Replace
1738         with ...
1739         (altivec_vsubs<VI_char>s): ... this.
1740         (altivec_vavgub, altivec_vavguh, altivec_vavguw): Replace
1741         with ...
1742         (altivec_vavgu<VI_char>): ... this.
1743         (altivec_vavgsb, altivec_vavgsh, altivec_vavgsw): Replace
1744         with ...
1745         (altivec_vavgs<VI_char>): ... this.
1746         (altivec_vmsumubm, altivec_vmsumuhm): Replace with ...
1747         (altivec_vmsumu<VI_char>m): ... this.
1748         (altivec_vmsummbm, altivec_vmsummhm): Replace
1749         with ...
1750         (altivec_vmsumm<VI_char>m): ... this.
1751         (altivec_vandc): Remove.
1752         (*andc<mode>3): Renamed to ...
1753         (andc<mode>3): ... here. Swap operand 1 and 2 numbering.
1754         (altivec_vrlb, altivec_vrlh, altivec_vrlw): Replace
1755         with ...
1756         (altivec_vrl<VI_char>): ... this.
1757         (altivec_vslb, altivec_vslh, altivec_vslw): Replace
1758         with ...
1759         (altivec_vsl<VI_char>): ... this.
1760         (altivec_vsrb, altivec_vsrh, altivec_vsrw): Replace
1761         with ...
1762         (altivec_vsr<VI_char>): ... this.
1763         (altivec_vsrab, altivec_vsrah, altivec_vsraw): Replace
1764         with ...
1765         (altivec_vsra<VI_char>): ... this.
1766         (altivec_vsum4sbs, altivec_vsum4shs): Replace with ...
1767         (altivec_vsum4s<VI_char>s): ... this.
1768         (altivec_vperm_4si, altivec_vperm_8hi, altivec_vperm_16qi): Replace
1769         with ...
1770         (altivec_vperm_<mode>): ... this.
1771         (altivec_vsel_4sf): Rename to ...
1772         (altivec_vsel_v4sf): ... here.
1773         (altivec_vsel_4si, altivec_vsel_8hi, altivec_vsel_16qi): Replace
1774         with ...
1775         (altivec_vsel_<mode>): ... this.
1776         (altivec_vsldoi_4si, altivec_vsldoi_8hi,
1777         altivec_vsldoi_16qi): Rename to ...
1778         (altivec_vsldoi_v4si, altivec_vsldoi_v8hi,
1779         altivec_vsldoi_v16qi): ... here.
1780         (altivec_vsldoi_4sf): Rename to ...
1781         (altivec_vsldoi_v4sf): ... here.
1782         (altivec_predicate_v4si, altivec_predicate_v8hi,
1783         altivec_predicate_v16qi): Replace with ...
1784         (altivec_predicate_<mode>): ... this.
1785         (altivec_lvebx, altivec_lvehx, altivec_lvewx): Replace
1786         with ...
1787         (altivec_lve<VI_char>x): ... this.
1788         (altivec_stvebx, altivec_stvehx, altivec_stvewx): Replace
1789         with ...
1790         (altivec_stve<VI_char>x): ... this.
1791         (absv16qi2, absv8hi2, absv4si2): Replace
1792         with ...
1793         (abs<mode>2): ... this.
1794         (altivec_abss_v16qi, altivec_abss_v8hi, altivec_abss_v4si): Replace
1795         with ...
1796         (altivec_abss_<mode>): ... this.
1797         (vec_realign_load_v16qi, vec_realign_load_v8hi,
1798         vec_realign_load_v4si): Replace with ...
1799         (vec_realign_load_<mode>): ... this.
1800         * config/rs6000/rs6000.c (bdesc_3arg, bdesc_2arg): Update tweaked
1801         insn names.
1802         (rs6000_expand_ternop_builtin): Likewise.
1804 2004-11-25  Andrew Haley  <aph@redhat.com>
1806         * gcc.c (process_command): Don't supply -v to linker.
1808 2004-11-25  Joseph S. Myers  <joseph@codesourcery.com>
1810         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Use %qs
1811         instead of `%s' in diagnostic.
1813 2004-11-25  Nathan Sidwell  <nathan@codesourcery.com>
1815         * basic-block.h (OBSTACK_ALLOC_REG_SET): Adjust.
1816         (FREE_REG_SET): Adjust.
1817         * bitmap.c (bitmap_obstack_free): Cope with NULL bitmap.
1818         * bitmap.h (BITMAP_OBSTACK_ALLOC): Rename to ...
1819         (BITMAP_ALLOC): ... here.
1820         (BITMAP_OBSTACK_FREE): Rename to ...
1821         (BITMAP_FREE): Don't check for NULL bitmap here.
1822         * tree-ssa-pre.c (value_insert_into_set_bitmap,
1823         bitmap_set_new): Use new names.
1825         * bt-load.c (migrate_btr_defs): Remove unneeded NULL check.
1826         * df.c (df_free): Likewise.
1827         * ra-build.c (ra_build_free, ra_build_free_all): Likewise.
1828         * tree-ssa-loop-ivopts.c (set_use_iv_cost): Likewise.
1830         * basic-block.h (OBSTACK_ALLOC_REG_SET): Rename to ...
1831         (ALLOC_REG_SET): ... here.
1832         (FREE_REG_SET): Adjust.
1833         (XMALLOC_REG_SET, XFREE_REG_SET): Remove.
1834         * bb-reorder.c (fix_crossing_conditional_branches): Adjust.
1835         * cfglayout.c (cfg_layout_duplicate_bb): Adjust.
1836         * cfgrtl.c (rtl_split_block, rtl_split_edge,
1837         safe_insert_insn_on_edge, cfg_layout_split_edge): Adjust.
1838         * flow.c (update_life_info, calculate_global_regs_live,
1839         allocate_bb_life_data, init_propagate_block_info): Adjust.
1840         * global.c (build_insn_chain): Adjust.
1841         * ifcvt.c (dead_or_predicable): Adjust.
1842         * loop-iv.c (simplify_using_initial_values): Adjust.
1843         * recog.c (peephole2_optimize): Adjust.
1844         * sched-deps.c (init_deps_global): Adjust.
1846 2004-11-25  Ralf Corsepius <ralf.corsepius@rtems.org>
1848         * config.gcc (avr-*-rtems*): Fix typo.
1850 2004-11-25  J"orn Rennecke <joern.rennecke@st.com>
1852         * sh.c (sh_output_mi_thunk): Do not call regset_release_memory.
1854 2004-11-24  Jeff Law  <law@redhat.com>
1856         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Reduce
1857         the number of queries to random elements in the ai->written_vars
1858         bitmap.
1860 2004-11-24  Roger Sayle  <roger@eyesopen.com>
1862         * config/i386/i386.c (override_options): Disable x87 fancy math
1863         intrinsics if -mfpmath= doesn't include 387 (default on x86_64).
1865 2004-11-24  Roger Sayle  <roger@eyesopen.com>
1867         * configure.ac: Tweak test for HAVE_DECL_LDGETNAME to avoid a
1868         system header conflict on AIX 5.2.
1869         * configure: Regenerate.
1871 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1873         * tree-outof-ssa.c (coalesce_abnormal_edges): Use e->dest_idx
1874         instead of calling phi_arg_from_edge.
1876         * tree-phinodes.c (remove_phi_args): Replace phi_arg_from_edge
1877         with e->dest_idx.
1879 2004-11-24  Ben Elliston  <bje@au.ibm.com>
1881         * config/i386/i386.h (ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
1882         * config/i386/i386.c (i386_dwarf_output_addr_const): Likewise.
1883         * config/i386/i386-protos.h (i386_dwarf_output_addr_const):
1884         Likewise.
1886 2004-11-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1888         * tree-sra.c (sra_walk_modify_expr): Handle RHS first, then LHS.
1890         * tree-inline.c (copy_body_r): Explicitly copy a constant if the
1891         type will be remapped.
1893 2004-11-24  Steven Bosscher  <stevenb@suse.de>
1895         * c-opts.c (c_common_post_options): Don't clear
1896         flag_inline_functions.
1897         * dojump.c (clear_pending_stack_adjust): Remove check on
1898         flag_inline_functions, it's always true.
1899         * config/alpha/alpha.md (movdi_er_maybe_g): Remove splitter
1900         that can never trigger.
1901         * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Don't look at
1902         flag_inline_trees, now that flag_inline_functions is never
1903         cleared.
1904         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Don't set
1905         flag_inline_functions at optimization levels greater than
1906         or equal to 3.  This is already done by default.
1908 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1910         * tree-outof-ssa.c (eliminate_build): Use g->e->dest_idx
1911         instead to find the PHI argument.  Do not take I as an
1912         argument.
1913         (eliminate_phi): Adjust the call to eliminate_build.  Do not
1914         take I as an argument.
1915         (rewrite_trees): Adjust the call to eliminate_phi.
1917 2004-11-24  Richard Sandiford  <rsandifo@redhat.com>
1919         * optabs.h (force_expand_binop): Declare.
1920         * optabs.c (force_expand_binop): Export.
1921         * stmt.c (shift_return_value): Delete.
1922         (expand_return): Don't call it.
1923         * expr.h (shift_return_value): Declare.
1924         * calls.c (shift_returned_value): Delete in favor of...
1925         (shift_return_value): ...this new function.  Leave the caller to check
1926         for non-BLKmode values passed in the msb of a register.  Take said mode
1927         and a shift direction as argument.  Operate on the hard function value,
1928         not a pseudo.
1929         (expand_call): Adjust accordingly.
1930         * function.c (expand_function_start): If a non-BLKmode return value
1931         is padded at the last significant end of the return register, use the
1932         return value's natural mode for the DECL_RESULT, not the mode of the
1933         padded register.
1934         (expand_function_end): Shift the same sort of return values left by
1935         the appropriate amount.
1937 2004-11-24  Matt Austern  <austern@apple.com>
1939         * recog.c (recog_memoized_1): Remove.
1940         * recog.h (recog_memoized_1): Remove declaration.
1941         (recog_memoized): Change from macro to inline function.
1943 2004-11-24  Devang Patel  <dpatel@apple.com>
1945         PR/18555
1946         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add isysroot.
1947         * config/darwin-c.c (darwin_register_frameworks): Use sysroot.
1949 2004-11-24  Devang Patel  <dpatel@apple.com>
1951         * gcc.c (process_command): Supply -v to linker.
1953 2004-11-24  David Edelsohn  <edelsohn@gnu.org>
1954             Paolo Bonzini  <bonzini@gnu.org>
1956         * config/rs6000/rs6000.c (rs6000_return_in_memory): Allow Altivec
1957         vector modes without ALTIVEC_ABI.  Use GCC vector instead of
1958         synthetic vector.
1959         (rs6000_pass_by_reference): Split conditional into pieces.  Use
1960         GCC vector instead of synthetic vector.
1962 2004-11-24  Aldy Hernandez  <aldyh@redhat.com>
1964         * tree.c (recompute_tree_invarant_for_addr_expr): The address of a
1965         thread-local variable is invariant.
1967 2004-11-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1969         * tree-pretty-print.c (dump_generic_node, case POINTER_TYPE):
1970         Handle TYPE_REF_CAN_ALIAS_ALL.
1971         (print_declaration): Print array dimensions like dump_generic_node.
1973         * fold-const.c (operand_equal_p): Remove kludge allowing ARG0 and
1974         ARG1 to be null; instead define OP_SAME and OP_SAME_NULL and use them.
1976 2004-11-24  Nathan Sidwell  <nathan@codesourcery.com>
1978         * bitmap.c (INLINE): Do not define.
1979         (bitmap_elem_to_freelist, bitmap_element_free,
1980         bitmap_element_allocate, bitmap_clear, bitmap_element_zerop,
1981         bitmap_element_link, bitmap_find_bit): Use inline keyword/macro.
1983 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1985         * tree-ssa-dom.c (cprop_into_successor_phis): Remove code to
1986         find the index of a PHI argument.  Use e->dest_idx instead.
1987         Replace hint with index.
1989         * tree-ssa-dom.c (cprop_into_successor_phis): Replace index
1990         with indx.
1992 2004-11-24  Diego Novillo  <dnovillo@redhat.com>
1994         * tree-ssa-alias.c (merge_pointed_to_info): Fix comment
1995         regarding PT_MALLOC.
1997 2004-11-24  Joseph Myers  <joseph@codesourcery.com>
1999         * config/i386/i386.c (optimization_options): Use
2000         SUBTARGET_OPTIMIZATION_OPTIONS.
2001         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define.
2002         (TARGET_SUBTARGET_DEFAULT): Don't include
2003         MASK_OMIT_LEAF_FRAME_POINTER.
2005 2004-11-24  Mark Mitchell  <mark@codesourcery.com>
2007         * config/i386/sol2.h (X86_FILE_START_VERSION_DIRECTIVE):
2008         Define to false.
2010 2004-11-24  Joseph Myers  <joseph@codesourcery.com>
2012         * config/i386/t-sol2-10 (MULTILIB_DIRNAMES, MULTILIB_OSDIRNAMES):
2013         Use amd64 instead of 64.
2015 2004-11-24  Mark Mitchell  <mark@codesourcery.com>
2016             Joseph Myers  <joseph@codesourcery.com>
2018         * crtstuff.c (IN_LIBGCC2): Define it.
2019         (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY
2020         instead of HAVE_LD_RO_RW_SECTION_MIXING.
2021         * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro.
2022         * dwarf2out.c (named_section_eh_frame_section): Check
2023         EH_TABLES_CAN_BE_READ_ONLY.
2024         * except.c (default_exception_section): Likewise.
2025         * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define.
2026         * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document.
2028 2004-11-24  Kazu Hirata  <kazu@cs.umass.edu>
2030         * tree-ssa-pre.c (phi_translate): Use find_edge to find the
2031         index of a PHI argument.
2033         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi): Use
2034         find_edge to find the index of a PHI argument.
2036 2004-11-24  Steven Bosscher  <stevenb@suse.de>
2038         * expr.c (expand_expr_real_1): Remove cases for EXIT_BLOCK_EXPR
2039         and LABELED_BLOCK_EXPR.
2040         * gimplify.c (gimplify_labeled_block_expr): Remove.
2041         (gimplify_exit_block_expr): Remove.
2042         (gimplify_expr): Don't call them.
2043         * tree-inline.c (copy_body_r): Don't handle EXIT_BLOCK_EXPR
2044         and LABELED_BLOCK_EXPR.
2045         (estimate_num_insns_1): Likewise.
2046         (walk_tree): Likewise.
2047         * tree-pretty-print.c (dump_generic_node): Don't handle
2048         EXIT_BLOCK_EXPR and LABELED_BLOCK_EXPR.
2049         * tree.def (EXIT_BLOCK_EXPR): Moved to java-tree.def.
2050         (LABELED_BLOCK_EXPR): Likewise.
2051         * tree.h (LABELED_BLOCK_LABEL): Moved to java-tree.h.
2052         (LABELED_BLOCK_BODY): Likewise.
2053         (EXIT_BLOCK_LABELED_BLOCK): Likewise.
2054         (EXIT_BLOCK_RETURN): Removed.
2056 2004-11-24  Steven Bosscher  <stevenb@suse.de>
2058         * cfgrtl.c (rtl_delete_block): Fix comment.
2059         * emit-rtl.c (remove_unnecessary_notes): Die if we see BLOCK_BEG
2060         or BLOCK_END insn notes.
2061         * jump.c (squeeze_notes): Likewise.
2062         * haifa-sched.c (reemit_notes): Don't "re-emit" EH_REGION_BEG and
2063         EH_REGION_END notes, we never have them to begin with.
2064         * sched-deps.c (sched_analyze_insn): When updating loop notes,
2065         verify that we have indeed only recorded loop notes.
2066         (sched_analyze): Die if we see EH_REGION_BEG or EH_REGION_END notes.
2067         Only record loop notes.
2069         * cfgexpand.c (tree_expand_cfg): Fix comment.
2071         * passes.c (rest_of_compilation): Don't do a second call to
2072         convert_from_eh_region_ranges from here, it's already called
2073         from cfgexpand.c.
2074         * except.c (resolve_fixup_regions): Remove.
2075         (remove_fixup_regions): Remove.
2076         (convert_from_eh_region_ranges_1): Remove.
2077         (convert_from_eh_region_ranges): Remove the case where EH is
2078         not already lowered at the tree level.  We always lower there.
2080 2004-11-24  Paolo Bonzini  <bonzini@gnu.org>
2082         PR c++/16882
2083         * tree.c (make_vector_type): Move qualifiers to the vector type,
2084         use the inner type's main variant and build a main variant for
2085         the vector type if necessary.
2086         (type_hash_eq): Check a vector type's TYPE_VECTOR_SUBPARTS.
2088 2004-11-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
2090         * target.h (late_rtl_prologue_epilogue): Remove.
2091         * target-def.h (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2092         * system.h: Poison TARGET_LATE_RTL_PROLOGUE_EPILOGUE.
2093         * passes.c (rest_of_handle_prologue_epilogue): Remove and move
2094         remaining bits to...
2095         (rest_of_handle_flow2): ...here.
2096         (rest_of_compilation): Remove call to rest_of_handle_prologue_epilogue.
2097         * doc/tm.texi (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Remove.
2099 2004-11-23  Mark Mitchell  <mark@codesourcery.com>
2101         * hwint.h (HOST_LONG_LONG_FORMAT): New macro.  Use it throughout.
2102         * config/i386/xm-mingw32.h (HOST_LONG_LONG_FORMAT): Define.
2103         * doc/hostconfig.texi (HOST_LONG_LONG_FORMAT): Document.
2105 2004-11-24  Daniel Jacobowitz  <dan@codesourcery.com>
2107         * config/i386/i386.c (override_options): Move
2108         SUBTARGET_OVERRIDE_OPTIONS before defaulting
2109         flag_omit_frame_pointer.
2111 2004-11-23  Richard Henderson  <rth@redhat.com>
2113         * rtl.h (validate_subreg): Declare.
2114         * emit-rtl.c (validate_subreg): New.
2115         (gen_rtx_SUBREG): Use it.
2116         * simplify-rtx.c (simplify_subreg): Likewise.
2117         (simplify_gen_subreg): Likewise.  Remove duplicate asserts.
2118         * expr.c (emit_move_insn_1): Tidy complex move code.  Use memory
2119         fallback whenever gen_realpart/gen_imagpart would not be able to
2120         create SUBREGs.
2122 2004-11-23  Richard Henderson  <rth@redhat.com>
2124         * expmed.c (extract_bit_field): Use simplify_gen_subreg instead of
2125         hard-coding avoiding calls to gen_rtx_SUBREG.  Split complex return
2126         modes to CONCAT.
2128 2004-11-23  Diego Novillo  <dnovillo@redhat.com>
2130         PR tree-optimization/18618
2131         * tree-into-ssa.c (DEF_VEC_MALLOC_P(basic_block)): Declare.
2132         (insert_phi_nodes_for): Change third argument to VEC(basic_block).
2133         * tree-ssa-dom.c (avail_exprs_stack): Change type to VEC(tree_on_heap).
2134         Update all users.
2135         (stmts_to_rescan): Likewise.
2136         (const_and_copies_stack): Likewise.
2137         (nonzero_vars_stack): Likewise.
2138         (vrp_variables_stack): Likewise.
2140 2004-11-23  Richard Henderson  <rth@redhat.com>
2142         * cse.c (record_jump_cond_subreg): New.
2143         (record_jump_cond): Use it instead of gen_lowpart.
2145 2004-11-23  Daniel Jacobowitz  <dan@codesourcery.com>
2146             Joseph Myers  <joseph@codesourcery.com>
2148         * config/sol2-c.c (solaris_register_pragmas): Use
2149         c_register_pragma_with_expansion.
2150         * config/sol2.h (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Define.
2151         * c-pragma.c (c_register_pragma): Update call to
2152         cpp_register_pragma.
2153         (c_register_pragma_with_expansion): New function.
2154         (init_pragma): Honor HANDLE_PRAGMA_PACK_WITH_EXPANSION.
2155         * c-pragma.h (c_register_pragma_with_expansion): New prototype.
2156         * doc/extend.texi (Solaris Pragmas): Mention macro expansion for
2157         #pragma align.
2158         * doc/tm.texi (c_register_pragma_with_expansion,
2159         HANDLE_PRAGMA_PACK_WITH_EXPANSION): Document.
2161 2004-11-23  Richard Henderson  <rth@redhat.com>
2163         * combine.c (gen_lowpart_for_combine): Factor out mode of x as well
2164         as mode sizes into local temporaries.  Unify failure path.
2166 2004-11-23  Richard Henderson  <rth@redhat.com>
2168         * emit-rtl.c, rtl.h (subreg_hard_regno): Remove.
2169         * caller-save.c (mark_set_regs): Use subreg_regno instead.
2170         * final.c (alter_subreg): Likewise.
2171         * local-alloc.c (reg_is_born): Likewise.
2173 2004-11-23  Richard Henderson  <rth@redhat.com>
2175         * simplify-rtx.c (simplify_subreg): Use subreg_regno_offset directly
2176         instead of using a SUBREG temporary.
2178 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
2180         * tree-cfg.c (tree_forwarder_block_p): Speed up by reordering
2181         two checks.
2183 2004-11-23  Zack Weinberg  <zack@codesourcery.com>
2185         * function.h (struct function): Remove calls_longjmp.
2186         (current_function_calls_longjmp): Delete.
2187         * tree.h (ECF_LONGJMP): Delete.
2188         (ECF_SIBCALL, ECF_PURE, ECF_SP_DEPRESSED, ECF_ALWAYS_RETURN)
2189         (ECF_LIBCALL_BLOCK): Everybody slide down one.
2190         (ECF_CONST, ECF_NORETURN, ECF_SIBCALL): Clarify comments.
2191         * builtins.c (expand_builtin_longjmp): Don't set
2192         current_function_calls_longjmp.
2193         * calls.c (special_function_p): Mark longjmp and siglongjmp
2194         with ECF_NORETURN, not ECF_LONGJMP.
2195         (emit_call_1, expand_call, emit_library_call_value_1):
2196         Don't check for ECF_LONGJMP.
2197         * tree-cfg.c (make_exit_edges, is_ctrl_altering_stmt)
2198         (need_fake_edge_p): Likewise.
2200         * config/avr/avr.h, config/ip2k/ip2k.h: Don't define NON_SAVING_SETJMP.
2201         * system.h: Poison NON_SAVING_SETJMP.
2202         * function.c (use_register_for_decl)
2203         * gcse.c (compute_hash_table_work, compute_store_table)
2204         * postreload-gcse.c (record_opr_changes)
2205         * reload.c (find_equiv_reg)
2206         * reload1.c (reload)
2207         * config/i386/i386.c (ix86_can_use_return_insn_p):
2208         Remove code conditional on NON_SAVING_SETJMP.
2209         * doc/tm.texi: Delete documentation of NON_SAVING_SETJMP.
2211         * config/i386/sysv3.h: Delete file.
2212         * config/i386/i386.c (ix86_svr3_asm_out_constructor): Delete.
2214 2004-11-23  Dorit Naishlos  <dorit@il.ibm.com>
2216         * tree-vectorizer.c (vect_analyze_operations): Don't vectorize if
2217         the vectorization factor is greater than the iteration count.
2218         (vect_gen_niters_for_prolog_loop): No need to calculate min if the
2219         iteration count is known.
2221         (vect_build_symbol_bound): Removed. Its functionality moved to
2222         vect_generate_tmps_on_preheader.
2223         (vect_generate_tmps_on_preheader): Moved content of
2224         vect_build_symbol_bound here instead of calling it.  Changed some
2225         variables names.
2227         (vect_build_loop_niters): We don't expect a new_bb to be generated -
2228         use gcc_assert.
2229         (vect_gen_niters_for_prolog_loop): Likewise.
2230         (vect_gen_niters_for_prolog_loo): Likewise.
2232         (slpeel_make_loop_iterate_ntimes): Use buildN instead of build.
2233         (slpeel_add_loop_guard): Likewise.
2234         (slpeel_tree_peel_loop_to_edge): Likewise.
2235         (vect_do_peeling_for_alignment): Likewise.
2237         (vect_get_first_index): Missing space.
2239 2004-11-23  Ulrich Weigand  <uweigand@de.ibm.com>
2241         * config/s390/s390.md ("*iordi3"): Mark commutative.
2242         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
2244 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
2246         * tree-phinode.c (resize_phi_node): Abort when LEN is strictly
2247         greater than PHI_ARG_CAPACITY.
2248         (reserve_phi_args_for_new_edge): Initialize the new PHI
2249         argument to NULL_TREE.  Increment PHI_NUM_ARGS.
2250         (add_phi_arg): Add a PHI argument to the slot given by
2251         E->dest_idx.
2252         (remove_phi_arg_num): Do not write to PHI_ARG_EDGE.
2253         * tree-flow-inline (phi_arg_from_edge): Return E->dest_idx.
2254         * tree-ssa.c (ssa_redirect_edge): Check for a missing PHI
2255         argument by looking at PHI_ARG_DEF.
2256         (verify_phi_args): Check for a missing PHI argument.  Remove
2257         the check for duplicate PHI arguments.
2258         * tree.h (PHI_ARG_EDGE): Redefine in terms of EDGE_PRED.
2259         (phi_arg_d): Remove e.
2261         * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
2262         by restricting to the case with two outgoing edges.
2264 2004-11-23  Andreas Krebbel  <krebbel1@de.ibm.com>
2266         * config/s390/s390.c (s390_backchain_string): Removed.
2267         (s390_return_addr_rtx, s390_back_chain_rtx, s390_frame_info)
2268         (s390_emit_prologue, s390_va_start, s390_gimplify_va_arg):
2269         Changed users of TARGET_BACKCHAIN, TARGET_NO_BACKCHAIN and
2270         TARGET_KERNEL_BACKCHAIN to reflect the new options.
2271         * config/s390/s390.h (MASK_BACKCHAIN, MASK_PACKED_STACK): New macros.
2272         (TARGET_KERNEL_BACKCHAIN): Removed.
2273         (TARGET_BACKCHAIN): Former triple state option change to a target flag.
2274         (TARGET_PACKED_STACK): New macro.
2275         (TARGET_SWITCHES): New switches added.
2276         (TARGET_OPTIONS): "backchain", "no-backchain" and "kernel-backchain"
2277         removed.
2278         (DYNAMIC_CHAIN_ADDRESS): Use TARGET_PACKED_STACK.
2279         * config/s390/s390.md ("allocate_stack", "restore_stack_block")
2280         ("save_stack_nonlocal", "restore_stack_nonlocal"): Modified to reflect
2281         the change in target switch semantics.
2282         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Removed.
2283         (TARGET_DEFAULT): MASK_BACKCHAIN added.
2284         * doc/invoke.texi: Added documentation for the new/changed options.
2286 2004-11-23  Uros Bizjak  <uros@kss-loka.si>
2288         PR rtl-optimization/18614
2289         * simplify-rtx.c (simplify_binary_operation): Do not
2290         simplify inner elements of constant arguments of
2291         VEC_CONCAT insn.
2293 2004-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2295         * gthr-solaris.h (__gthread_recursive_mutex_init_function): Use
2296         0 instead of NULL.
2298 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
2300         * tree-phinode.c (make_phi_node): Use a new variable,
2301         capacity, to receive the return value of ideal_phi_node_len.
2303 2004-11-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2305         * gthr-solaris.h (__gthread_recursive_mutex_t): New type.
2306         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
2307         __gthread_recursive_mutex_init_function.
2308         (__gthread_key_create): Properly cast -1.
2309         (__gthread_recursive_mutex_init_function): New function.
2310         (__gthread_recursive_mutex_lock): Rewrite.
2311         (__gthread_recursive_mutex_trylock): Likewise.
2312         (__gthread_recursive_mutex_unlock): Likewise.
2314 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2316         * config/c4x/t-rtems: New.
2317         * config.gcc: Reflect having added c4x/t-rtems.
2319 2004-11-23  Dorit Naishlos <dorit@il.ibm.com>
2321         PR tree-opt/18403
2322         PR tree-opt/18505
2323         * tree-vectorizer.c (vect_create_data_ref_ptr): Use
2324         lang_hooks.types.type_for_size instead of integer_type_node for the
2325         type of ptr_update.
2327 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2329         * config.gcc (h8300-*-rtems*): Use h8300/t-rtems.
2331 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2333         * config/arm/t-rtems: New.
2334         * config.gcc: Reflect having added arm/t-rtems.
2336 2004-11-23  Kazu Hirata  <kazu@cs.umass.edu>
2338         * tree-cfg.c (tree_execute_on_growing_pred): New.
2339         (tree_cfg_hooks): Add tree_execute_on_growing_pred.
2340         * tree-flow.h: Add a prototype for
2341         reserve_phi_args_for_new_edge.
2342         * tree-phinodes.c (reserve_phi_args_for_new_edge): New.
2343         (add_phi_arg): Don't resize a PHI array.
2345 2004-11-23  Ralf Corsepius <ralf.corsepius@rtems.org>
2347         * config.gcc: Add avr-*-rtems*.
2348         * config/avr/t-rtems: New.
2349         * config/avr/rtems.h: New.
2351 2004-11-22  Daniel Berlin  <dberlin@dberlin.org>
2353         * df.c (dataflow_set_a_op_b): Remove reslt parameter, since it's
2354         always the same as op1.  Use bitmap_ior_into and bitmap_and_into.
2355         Add comment to function.
2357 2004-11-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2359         PR pch/14940
2360         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __hppa__.
2362         PR rtl-optimization/14838
2363         * emit-rtl.c (get_first_nonnote_insn): Don't assume first insn is a
2364         note.
2365         (get_last_nonnote_insn): Don't assume last insn is a note.
2367 2004-11-22  Roger Sayle  <roger@eyesopen.com>
2369         * fold-const.c (nondestructive_fold_binary_to_constant): Rename
2370         to fold_binary_to_constant.
2371         (nondestructive_fold_unary_to_constant): Likewise, rename to
2372         fold_unary_to_constant.
2373         (fold_relational_hi_lo): Update call to fold_binary_to_constant.
2374         * tree.h (nondestructive_fold_binary_to_constant): Update prototype.
2375         (nondestructive_fold_unary_to_constant): Likewise.
2376         * tree-ssa-ccp.c (ccp_fold): Update calls to fold_unary_to_constant
2377         and fold_binary_to_constant.
2378         * tree-ssa-loop-niter.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2379         (inverse, number_of_iterations_cond): Replace uses of EXEC_BINARY
2380         and EXEC_UNARY with calls to fold_*nary_to_constant.
2381         * tree-ssa-loop-ivopts.c (EXEC_BINARY, EXEC_UNARY): Delete macros.
2382         (idx_find_step): Replace uses of EXEC_BINARY with calls to
2383         fold_binary_to_constant.
2385 2004-11-22  Nick Clifton  <nickc@redhat.com>
2387         * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2388         initialisation of 'e'.
2390 2004-11-22  Roger Sayle  <roger@eyesopen.com>
2392         * config/i386/i386.h (TARGET_USE_FANCY_MATH_387): New macro.
2393         * config/i386/i386.c (override_options):  Set MASK_NO_FANCY_MATH_387
2394         automatically for targets without TARGET_80387.
2395         * config/i386/i386.md (sqrtsf2, sqrtsf2_1, sqrtsf2_i387, sqrtdf2,
2396         sqrtdf2_1, sqrtdf2_i387, *sqrtextendsfdf2, sqrtxf2,
2397         *sqrtextenddfxf2, *sqrtextendsfxf2, fpremxf4, fmodsf3, fmoddf3,
2398         fmodxf3, fprem1xf4, dremsf3, dremdf3, dremxf3, *sindf2, *sinsf2,
2399         *sinextendsfdf2, *sinxf2, *cosdf2, *cossf2, *cosextendsfdf2,
2400         *cosxf2, sincosdf3, sincossf3, *sincosextendsfdf3, sincosxf3,
2401         *tandf3_1, tandf2, *tansf3_1, tansf2, *tanxf3_1, tanxf2,
2402         atan2df3_1, atan2df3, atandf2, atan2sf3_1, atan2sf3, atansf2,
2403         atan2xf3_1, atan2xf3, atanxf2, asindf2, asinsf2, asinxf2,
2404         acosdf2, acossf2, acosxf2, fyl2x_xf3, logsf2, logdf2, logxf2,
2405         log10sf2, log10df2, log10xf2, log2sf2, log2df2, log2xf2,
2406         fyl2xp1_xf3, log1psf2, log1pdf2, log1pxf2, *fxtractxf3, logbsf2,
2407         logbdf2, logbxf2, ilogbsi2, *f2xm1xf2, *fscalexf4, expsf2,
2408         expdf2, expxf2, exp10sf2, exp10df2, exp10xf2, exp2sf2, exp2df2,
2409         exp2xf2, expm1df2, expm1sf2, expm1xf2, frndintxf2, rintdf2,
2410         rintsf2, rintxf2, frndintxf2_floor, floordf2, floorsf2,
2411         floorxf2, frndintxf2_ceil, ceildf2, ceilsf2, ceilxf2,
2412         frndintxf2_trunc, btruncdf2, btruncsf2, btruncxf2,
2413         frndintxf2_mask_pm, nearbyintdf2, nearbyintsf2, nearbyintxf2):
2414         Simplify conditionals using TARGET_USE_FANCY_MATH_387.
2416 2004-11-22  Dale Johannesen  <dalej@apple.com>
2418         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION):  Conditionalize
2419         properly and comment.
2421 2004-11-22  James A. Morrison  <phython@gcc.gnu.org
2423         * config/sparc/sparc.c: Include insn-codes.h and langhooks.h.
2424         (sparc_init_builtins): New function.
2425         (sparc_init_vis_builtins): Create builtin functions for VIS
2426         instructions.
2427         (sparc_expand_builtin): Expand builtin functions for VIS instructions.
2428         (TARGET_INIT_BUILTINS): Define to sparc_init_builtins.
2429         (TARGET_EXPAND_BUILTIN): Define to sparc_expand_builtin.
2430         (def_builtin): New macro for creating builtin functions.
2431         (P): New mode macro for pointer types.
2432         (UNSPEC_FPACK16, UNSPEC_FPACK32, UNSPEC_FPACKFIX, UNSPEC_FEXPAND,
2433         UNSPEC_FPMERGE, UNSPEC_MUL16AL, UNSPEC_MUL8UL, UNSPEC_MULDUL,
2434         UNSPEC_ALIGNDATA, UNSPEC_ALIGNADDR, UNSPEC_PDIST): New constants.
2435         (fpack16_vis, fpackfix_vis, fpack32_vis, fexpand_vis, fpmerge_vis,
2436         fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
2437         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis, pdist_vis,
2438         faligndata<V64:mode>_vis, alignaddr<P:mode>_vis): New patterns.
2440 2004-11-22  Devang Patel  <dpatel@apple.com>
2442         * tree-if-conv.c (clean_predicate_lists): Clean all basic blocks.
2444 2004-11-22  Devang Patel  <dpatel@apple.com>
2446         * tree-if-conv.c (if_convertable_phi_p): Rename to ...
2447         (if_convertible_phi_p): ... new name.
2448         (if_convertable_modify_expr_p): Rename to ...
2449         (if_convertible_modify_expr_p): ... new name.
2450         (if_convertable_stmt_p): Rename to ...
2451         (if_convertible_stmt_p): ... new name.
2452         (if_convertable_bb_p): Rename to ...
2453         (if_convertible_bb_p): ... new name.
2454         (if_convertable_loop_p): Rename to ...
2455         (if_convertible_loop_p): ... new name.
2457 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2459         PR target/18444
2460         * configure.ac (threading): Accept 'posix95'.
2461         * configure: Regenerate.
2462         * config.gcc (i[34567]86-*-solaris2*): On Solaris up to 2.6,
2463         include sol26.h and default to posix95 threads if have_pthread_h.
2464         (sparc-*-solaris2*): Likewise.
2465         * gthr.h: Include gthr-posix95.h if _PTHREADS95 is defined.
2466         * gthr-posix95.h: New file.
2467         * config/sol26.h: New file.
2468         * doc/install.texi (--enable-threads): Document 'posix95'.
2470 2004-11-23  Ben Elliston  <bje@au.ibm.com>
2472         * pointer-set.h (pointer_set_contains): Remove.
2473         * pointer-set.c (pointer_set_contains): Likewise.
2475 2004-11-22  Dale Johannesen  <dalej@apple.com>
2477         * calls.c (expand_call): Do not call preserve_temp_slots.
2479 2004-11-22  Kazu Hirata  <kazu@cs.umass.edu>
2481         * tree-flow.h: Remove the prototype for remove_phi_arg.
2482         Add a prototype for remove_phi_args.
2483         * tree-phinodes.c (remove_phi_arg): Remove.
2484         (remove_phi_args): New.
2485         * tree-ssa.c (ssa_remove_edge): Call remove_phi_args instead
2486         of remove_phi_arg.
2488         * cfg.c (unchecked_make_edge): Call execute_on_growing_pred
2489         after making an edge.
2490         (remove_edge): Call execute_on_shrinking_pred before removing
2491         an edge.
2492         (redirect_edge_succ): Call execute_on_growing_pred and
2493         execute_on_shrinking_pred.
2494         * cfghooks.c (execute_on_growing_pred): New.
2495         (execute_on_shrinking_pred): Likewise.
2496         * cfghooks.h (cfg_hooks): Add execute_on_growing_pred and
2497         execute_on_shrinking_pred.
2498         Add prototypes for execute_on_growing_pred and
2499         execute_on_shrinking_pred.
2500         * cfgrtl.c (rtl_cfg_hooks): Add NULL hooks to
2501         execute_on_growing_pred and execute_on_shrinking_pred.
2502         (cfg_layout_rtl_cfg_hook): Likewise.
2503         * tree-cfg.c (tree_cfg_hooks): Likewise.
2505         * tree-cfg.c (tree_execute_on_shrinking_pred): New.
2506         (tree_cfg_hooks): Use it.
2507         * tree-ssa.c (ssa_remove_edge): Don't call remove_phi_args.
2508         (ssa_redirect_edge): Don't call remove_phi_arg_num.
2510         * tree-phinodes.c (remove_phi_arg_num): Make it static.
2511         * tree-flow.h: Remove the corresponding prototype.
2513         * tree-ssa.c (ssa_remove_edge): Remove.
2514         * tree-flow.h: Remove the corresponding prototype.
2515         * tree-cfg.c: Replace ssa_remove_edge with remove_edge.
2516         * basic-block.h: Likewise.
2517         * tree-if-conv.c: Likewise.
2518         * tree-ssa-threadupdate.c: Likewise.
2520 2004-11-23  Ben Elliston  <bje@au.ibm.com>
2522         * doc/cfg.texi (Maintaining the CFG): Use @ftable instead of
2523         @table to list the BSI methods.  Use individual @findex directives
2524         instead of one with a comma-separated list of index entries.
2526 2004-11-22  Zdenek Dvorak  <dvorakz@suse.cz>
2528         PR tree-optimization/18529
2529         * fold-const.c (fold_to_nonsharp_ineq_using_bound): New function.
2530         (simple_operand_p): Use STRIP_NOPS.  Consider SSA names simple.
2531         (fold): Call fold_to_nonsharp_ineq_using_bound.
2532         * tree-ssa-loop-niter.c (simplify_replace_tree): New function.
2533         (number_of_iterations_cond): Fold the expressions before futher
2534         processing.
2535         (tree_simplify_using_condition): Handle case when cond or expr is
2536         an EQ_EXPR specially.
2538 2004-11-22 Daniel Berlin  <dberlin@dberlin.org>
2540         * tree-ssa.c (verify_ssa): SSA_OP_ALL_USES should be
2541         SSA_OP_ALL_USES | SSA_OP_ALL_KILLS for verification purposes.
2543 2004-11-22  David Edelsohn  <edelsohn@gnu.org>
2544             Fariborz Jahanian  <fjahanian@apple.com>
2546         * config/rs6000/rs6000.c (rs6000_return_in_memory): Test
2547         TARGET_ALTIVEC_ABI.
2548         (function_arg_boundary): Align 8 to 16 byte vectors like SPE.
2549         Align 16 byte and larger vectors like Altivec.
2550         (function_arg_advance): Pass any 16 byte vector like Altivec vector.
2551         (function_arg): Same.
2552         (rs6000_pass_by_references): Test TARGET_ALTIVEC_ABI.
2554 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2556         PR tree-opt/18572
2557         * tree-sra.c (scalarize_init): Unshare the rhs before gimplifying
2558         it.
2560 2004-11-22  Richard Henderson  <rth@redhat.com>
2562         * function.c (assign_parm_setup_block): Revert 11-13 change to
2563         forcably re-mode a (possibly BLKmode) hard register.
2565 2004-11-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2567         * config/sparc/sparc.c (mem_min_alignment): Check MEM_ALIGN.
2569 2004-11-22  David Edelsohn  <edelsohn@gnu.org>
2571         * config/rs6000/power4.md: Remove delay between dispatch and issue
2572         associated with dispatch group slots 3 and 4.
2573         * config/rs6000/power5.md: Same.
2575 2004-11-21  Jeff Law  <law@redhat.com>
2577         * cfg.c (cached_make_edge): Use find_edge rather than an inlined
2578         variant.
2579         * cfgbuild.c (make_edges): Likewise.
2580         * cfghooks.c (can_duplicate_block_p): Likewise.
2581         * cfgloop.c (loop_latch_edge): Likewise.
2582         * cfgloopmanip.c (force_single_succ_latches): Likewise.
2583         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2584         * predict.c (predict_loops, propagate_freq): Likewise.
2585         * tracer.c (tail_duplicate): Likewise.
2586         * tree-cfg.c (disband_implicit_edges): Likewise.
2587         (tree_forwarder_block_p, tree_flow_call_edges_add): Likewise.
2589 2004-11-22  Nick Clifton  <nickc@redhat.com>
2591         * sbitmap.c (sbitmap_union_of_preds): Remove redundant
2592         initialisation of 'e'.
2594 2004-11-22  Kazu Hirata  <kazu@cs.umass.edu>
2596         PR rtl-optimization/18599
2597         * regrename.c (copyprop_hardreg_forward): Speed up by putting
2598         BB_VISITED flags on basic blocks as we process them.
2600 2004-11-22  Nathan Sidwell  <nathan@codesourcery.com>
2602         PR target/18531
2603         * config/rs6000/altivec.md (VI_char): New mode attribute.
2604         (addv16qi3, addv8hi3, addv4ai3): Replace with ...
2605         (add<mode>3): ... this.
2606         (subv16qi3, subv8hi3, subv4ai3): Replace with ...
2607         (sub<mode>3): ... this.
2608         (smaxv16qi3, smaxv8hi3, smaxv4ai3): Replace with ...
2609         (smax<mode>3): ... this.
2610         (sminv16qi3, sminv8hi3, sminv4ai3): Replace with ...
2611         (smin<mode>3): ... this.
2612         (umaxv16qi3, umaxv8hi3, umaxv4ai3): Replace with ...
2613         (umax<mode>3): ... this.
2614         (uminv16qi3, uminv8hi3, uminv4ai3): Replace with ...
2615         (umin<mode>3): ... this.
2616         (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2617         (and<mode>3): ... this.
2618         (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2619         (ior<mode>3): ... this.
2620         (xorv16qi3, xorv8hi3, xorv4ai3): Replace with ...
2621         (xor<mode>3): ... this.
2622         (andv16qi3, andv8hi3, andv4ai3): Replace with ...
2623         (and<mode>3): ... this.
2624         (iorv16qi3, iorv8hi3, iorv4ai3): Replace with ...
2625         (ior<mode>3): ... this.
2626         (altivec_vnor): Replace with ...
2627         (altivec_nor<mode>): ... this.
2628         (one_cmplv16qi2, one_cmplv8hi2, one_complv4ai2): Replace with ...
2629         (one_cmpl<mode>2): ... this.
2630         (altivec_vandc): New expander.
2631         (*andc<mode>3): New insn.
2632         * config/rs6000/rs6000.c (bdesc_2arg): Adjust for new insn names.
2634 2004-11-22  Dorit Naishlos  <dorit@il.ibm.com>
2636         PR tree-opt/18536
2637         * tree-vectorizer.c (make_loop_iterate_ntimes): Use type of niters when
2638         creating iv instead of integer_type.
2639         (vect_build_loop_niters): Remove redundant code.
2640         (vect_transform_loop_bound): Removed (duplicates functionality of
2641         make_loop_iterate_ntimes.
2642         (vect_gen_niters_for_prolog_loop): Add documentation. Call
2643         lang_hooks.types.type_for_size to create a type of the required size.
2644         Use that type instead of integer_type. Remove redundant code.
2645         (vect_update_niters_after_peeling): Use type of niters instead of
2646         integer_type.
2647         (vect_transform_loop): Unify handling of known and unknown loop bound
2648         cases. Call make_loop_iterate_ntimes instead of
2649         vect_transform_loop_bound.
2651 2004-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2653         PR target/18217
2654         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Move darwin-fallback.c to
2655         (LIB2ADDEH): Here.
2657 2004-11-22  Dorit Naishlos  <dorit@il.ibm.com>
2659         PR tree-opt/18544
2660         * tree-vectorizer.c (vect_analyze_data_refs): Fail if memtag not found.
2662 2004-11-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2664         * config.gcc: Use t-slibgcc-elf to build libgcc_s.so on
2665         m32r*linux.
2666         * config/m32r/t-linux (SHLIB_MAPFILES): Override to use
2667         m32r/libgcc-glibc.ver.
2668         * config/m32r/libgcc-glibc.ver: Add New file.
2670 2004-11-22  Nathan Sidwell  <nathan@codesourcery.com>
2672         * bitmap.h (struct bitmap_obstack): New obstack type.
2673         (struct bitmap_head_def): Replace using_obstack with obstack
2674         pointer.
2675         (bitmap_default_obstack): New.
2676         (bitmap_initialize): Make inline, does not do allocation.
2677         (bitmap_release_memory): Remove.
2678         (bitmap_obstack_initialize, bitmap_obstack_release): Declare.
2679         (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2680         bitmap_obstack_free, bitmap_malloc_free): Declare.
2681         (BITMAP_OBSTACK_ALLOC, BITMAP_GGC_ALLOC, BITMAP_XMALLOC): Adjust.
2682         (BITMAP_FREE): Replace with ...
2683         (BITMAP_OBSTACK_FREE): ... this.
2684         (BITMAP_XFREE): Adjust.
2685         (BITMAP_INIT_ONCE): Remove.
2686         * bitmap.c (bitmap_obstack, bitmap_obstack_init, bitmap_free: Remove.
2687         (bitmap_default_obstack): New.
2688         (bitmap_elem_to_freelist): Adjust.
2689         (bitmap_element_allocate): Adjust. Break initialization into ...
2690         (bitmap_obstack_initialize): ... here.
2691         (bitmap_release_memory): Replace with ...
2692         (bitmap_obstack_release): ... this.
2693         (bitmap_obstack_alloc, bitmap_malloc_alloc, bitmap_gc_alloc,
2694         bitmap_obstack_free, bitmap_malloc_free): New.
2695         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Use
2696         bitmap_initialize.
2697         (bitmap_initialize): Move to bitmap.h.
2698         * gengtype.c (open_base_files): Add obstack.h to ifiles.
2699         * Makefile.in (BASIC_BLOCK_H, REGS_H): Add obstack.h.
2700         * basic-block.h (INIT_REG_SET): Allocate from reg_obstack.
2701         (INITIALIZE_REG_SET): Remove.
2702         (FREE_REG_SET): Use BITMAP_OBSTACK_FREE.
2703         (INIT_ONCE_REG_SET, MAX_REGNO_REG_SET): Remove.
2704         (flow_obstack): Do not declare.
2705         (reg_obstack): Declare.
2706         * regs.h: Include obstack.h.
2707         * tree-optimize.c (tree_rest_of_compilation): Initialize and
2708         release bitmap obstack here.
2709         * bb-reorder.c: #include regs, not basic-block.
2710         (fix_crossing_conditional_branches): Allocate regsets from
2711         reg_obstack.
2712         * bt-load.c: Do not inlude bitmap.h, sbitmap.h, basic-block.h or
2713         obstack.h.
2714         * caller-save.c: Include regs.h earlier.
2715         * cfg.c: Do not include basic-block.h or obstack.h.
2716         (reg_obstack): Define.
2717         * cfganal.c: Include obstack.h
2718         * cfgcleanyp.c: Do not include basic-block.h. Include regs.h
2719         earlier.
2720         * cfglayout.c: Do not include obstack.h.
2721         (flow_obstack): Remove declaration.
2722         (cfg_layout_duplicate_bb): Use reg_obstack.
2723         * cfgloop.c, cfgloopanal.c, cfgloopmanip.c: Include obstack.h.
2724         * cfgrtl.c (rtl_split_block): Use reg_obstack.
2725         (force_nonfallthru_and_redirect, rtl_split_edge): Likewise.
2726         (safe_insert_insn_on_edge): Use OBSTACK_ALLOC_REG_SET, adjust.
2727         (cfg_layout_split_edge): Use reg_obstack.
2728         * cse.c: Include regs.h earlier.
2729         * ddg.c: Do not include basic-block.h.
2730         * dominance.c: Inlude obstack.h.
2731         * flow.c (update_life_info): Use OBSTACK_ALLOC_REG_SET, adjust.
2732         (calculate_global_regs_live): Likewise.
2733         (allocate_bb_life_data): Use reg_obstack.
2734         (init_propagate_block_info): Use OBSTACK_ALLOC_REGSET.
2735         * global.c: Do not include basic-block.h.
2736         (build_insn_chain): Use OBSTACK_ALLOC_REG_SET, adjust.
2737         * graph.c: Include obstack.h.
2738         * haifa-sched.c: Do not include basic-block.h.
2739         * ifcvt.c: Use OBSTACK_ALLOC_REG_SET, adjust.
2740         * local-alloc.c: Do not include basic-block.h.
2741         * loop-init.c, loop-invariant.c: Include obstack.h.
2742         * loop-iv.c: Likewise.
2743         (simplify_using_initial_values): Use OBSTACK_ALLOC_REG_SET,
2744         adjust.
2745         * loop-unroll.c, loop-unswitch.c: Inlude obstack.h.
2746         * modulo-sched.c: Do not include basic-block.h.
2747         * passes.c (rest_of_handle_final): Do not call
2748         regset_release_memory.
2749         * ra-debug.c: Include regs.h earlier. Do not include
2750         basic-block.h.
2751         * recog.c (peephole2_optimize): Use OBSTACK_ALLOC_REG_SET, adjust.
2752         * regclass.c (init_reg_sets): Do not call INIT_ONCE_REG_SET.
2753         (allocate_reg_info): Do not call MAX_REGNO_REG_SET.
2754         (regset_release_memory): Remove.
2755         * resource.c: Do not include basic-block.h.
2756         * rtlanal.c: Do not include basic-block.h.
2757         * sbitmap.c: Include obstack.h.
2758         * sched-deps.c: Do not include basic-block.h.
2759         (reg_pending_sets_head, reg_pending_clobbers_head,
2760         reg_pending_uses_head): Remove.
2761         (init_deps_global): Use OBSTACK_ALLOC_REG_SET.
2762         * sched-ebb.c: Do not include basic-block.h.
2763         * sched-rgn.c: Likewise.
2764         * tree-if-conv.c (get_loop_body_in_if_conv_order): Use
2765         BITMAP_XFREE.
2766         * tree-outof-ssa.c (perform_edge_inserts): Use BITMAP_XFREE.
2767         * tree-sra.c (decide_instantiations): Adjust bitmap
2768         initialization.
2769         * tree-ssa-dce.c: Include obstack.h.
2770         * tree-ssa-pre.c (grand_bitmap_obstack): Make a bitmap_obstack.
2771         (value_insert_into_set_bitmap): Remove useless bitmap_clear.
2772         (bitmap_set_new): Likewise.
2773         (init_pre): Initialize bitmap obstack.
2774         (fini_pre): Release bitmap obstack.
2775         * tree-ssanames.c (ssa_names_to_rewrite): Make static.
2776         (marked_for_rewrite_p): ssa_names_to_rewrite is never NULL.
2777         (mark_for_rewrite, unmark_for_rewrite): Likewise.
2778         (marked_ssa_names): Likewise.
2779         (init_ssanames): Use BITMAP_XMALLOC.
2780         (fini_ssanames): Use BITMAP_XFREE.
2781         * web.c: Include obstack.h
2783 2004-11-22  Nick Clifton  <nickc@redhat.com>
2785         * sbitmap.c (sbitmap_union_of_preds): Set 'e' to the next edge
2786         predecessor in the first for-loop.
2788 2004-11-21  Stan Shebs  <shebs@apple.com>
2790         * config/rs6000/rs6000.c: (rs6000_darwin64_function_arg): Add
2791         UNION_TYPE case.
2792         (function_arg): Move darwin test up, sniff mode first for
2793         efficiency, test for union type.
2795 2004-11-21  Dale Johannesen  <dalej@apple.com>
2797         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION):  Define.
2799 2004-11-21  Jeff Law  <law@redhat.com>
2801         * tree-ssa.c (verify_use): Fix comment.
2802         (verify_phi_args): Check that the number of incoming edges matches
2803         the number of PHI arguments.  Check that each PHI argument is
2804         either an SSA_NAME or an invariant.  Coalesce tests for PHIs for
2805         dead or duplicated edges.  Clear e->aux earlier and avoid separate
2806         loop to clear e->aux and test for missed edges.
2807         (verify_ssa): Remove first walk over statements.  Move checking
2808         of PHI args into verify_phi_args.  Move checking of statements
2809         with aliased stores and V_MAY_DEFS into the remaining loop over
2810         the statements.  Register defs by walking through the formal
2811         SSA_NAME table.
2813 2004-11-21  Roger Sayle  <roger@eyesopen.com>
2815         PR middle-end/18520
2816         * dojump.c (compare_from_rtx): Clarify mode argument in function
2817         description.  Correct order of mode/cmp_mode arguments in call to
2818         simplify_relational_operation.  Check "tem" for COMPARISON_P.
2820 2004-11-21  Paolo Bonzini  <bonzini@gnu.org>
2821             David Edelsohn  <edelsohn@gnu.org>
2823         PR target/17836
2824         * config/rs6000/rs6000.c (rs6000_return_in_memory): Return
2825         synthetic vectors in memory.
2826         (function_arg_boundary): Align large synthetic vectors.
2827         (rs6000_pass_by_reference): Pass synthetic vectors in memory.
2829 2004-11-21  Jeff Law  <law@redhat.com>
2831         * cfg.c (update_bb_profile_for_threading): Do not rescale the
2832         successor probabilities if they are not going to change.  Pull
2833         division out of loop if we do need to rescale successor probabilities.
2835         * tree-ssa-threadupdate.c (redirection_data_hash): Use the
2836         index of the destination block for the hash value rather than
2837         hashing a pointer.
2839 2004-11-20  Joseph S. Myers  <joseph@codesourcery.com>
2841         * c-typeck.c (build_array_ref): Don't check for index == 0.  Make
2842         checks for neither argument being an array or pointer (swapping
2843         the arguments if necessary), the array argument being a pointer to
2844         or array of functions and for -Wchar-subscripts warnings upfront.
2846 2004-11-20  Jeff Law  <law@redhat.com>
2848         * regrename.c (copyprop_hardreg_forward): Only search for a
2849         previously processed block if the current block only has one
2850         predecessor.
2852 2004-11-20  Kazu Hirata  <kazu@cs.umass.edu>
2854         * tree-ssa-threadupdate.c, tree-vectorizer.c: Fix comment
2855         typos.
2856         * config/arm/arm.c: Follow spelling conventions.
2858 2004-11-20  Richard Earnshaw  <rearnsha@arm.com>
2860         * arm.c (arm_override_options): Use arm_ld_sched rather than testing
2861         a bit in tune_flags.
2862         (const_double_needs_minipool): Likewise.  Split most of the code out
2863         into ...
2864         (arm_const_double_inline_cost): ... new function here.
2865         * arm-protos.h (arm_const_double_inline_cost): Add prototype.
2866         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Add D[abc] constraints for double-
2867         word constants of length 2, 3 and 4 insns respectively.
2868         (CONSTRAINT_LEN): The 'D' prefix is a 2-letter constraint.
2869         * arm.md (arm_movdi, movdf_soft_insn): Add alternatives for D[abc]
2870         constraints.  Set insn lenghts accordingly.
2872 2004-11-19  Jeff Law  <law@redhat.com>
2874         * tree-ssa-threadupdate.c: Replace REDIRECTION_DATA varray with
2875         a hash table.  Extensive modifications throughout to support
2876         that change.
2877         (struct el): New.
2878         (struct local_info): New.
2879         (struct redirection_data): Add new INCOMING_EDGES and DO_NOT_DUPLICATE
2880         fields.
2881         (redirection_data): Now a hashtable.
2882         (redirection_data_hash, redirection_data_eq): New.
2883         (lookup_redirection_data, create_duplicates): New.
2884         (create_edge_and_update_destionation_phis): New.
2885         (fixup_template_block, redirect_edges): New.
2886         (thread_block): Use hash table traversals instead of loops over
2887         varray entries or incoming edge vectors.
2889 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
2891         * basic-block.h (edge_def): Add dest_idx.
2892         * cfg.c (unchecked_make_edge): Initialize dest_idx.
2893         (remove_edge): Simplify the disconnection of an edge from its
2894         destination.
2895         (redirect_edge_succ): Likewise.
2896         * cfghooks.c (verify_flow_info): Check the consistency of
2897         dest_idx for each edge.
2899 2004-11-19  Aldy Hernandez  <aldyh@redhat.com>
2901         * simplify-rtx.c (simplify_ternary_operation): Use
2902         gen_int_mode.
2904 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
2906         * tree-cfg.c (reinstall_phi_args): New.
2907         (tree_split_edge): Use it after redirecting an edge.  Don't
2908         modify PHI_ARG_EDGE.
2910 2004-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
2912         * tree-vectorizer.c (slpeel_verify_cfg_after_peeling): Define only
2913         if checking is enabled.
2915 2004-11-19  Joseph S. Myers  <joseph@codesourcery.com>
2917         * c-decl.c (push_scope): Remove "\n" from end of diagnostic for
2918         too many nested scopes.
2920 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
2922         PR tree-opt/18181
2923         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Peeling scheme
2924         changed to suppoer uses-after-loop and to void creating flow paths
2925         that shouldn't exist.
2926         (slpeel_update_phi_nodes_for_guard): Takes additional two arguments.
2927         Modified to fit the new peeling scheme. Avoid quadratic behavior.
2928         (slpeel_add_loop_guard): Takes additional argument.
2929         (slpeel_verify_cfg_after_peeling): New function.
2930         (vect_update_ivs_after_vectorizer): Takes additional argument. Updated
2931         documentation. Use 'exit-bb' instead of creating 'new-bb'.
2932         (rename_variables_in_bb): Don't update phis for BBs out of loop, to fit
2933         the new peeling scheme.
2934         (copy_phi_nodes): Function removed. Its functionality moved to
2935         update_phis_for_duplicate_loop.
2936         (slpeel_update_phis_for_duplicate_loop): Functionality of copy_phi_nodes
2937         moved here. Added documentation. Modified to fit the new peeling scheme.
2938         (slpeel_make_loop_iterate_ntimes): Setting loop->single_exit not not
2939         needed - done in slpeel_tree_peel_loop_to_edge.
2940         (slpeel_tree_duplicate_loop_to_edge_cfg): Debug printouts compacted.
2941         (vect_do_peeling_for_loop_bound): Add documentation. Call
2942         slpeel_verify_cfg_after_peeling. Call vect_update_ivs_after_vectorizer
2943         with additional argument.
2944         (vect_do_peeling_for_alignment): Call slpeel_verify_cfg_after_peeling.
2946         (vect_finish_stmt_generation): Avoid 80 column oveflow.
2948 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
2950         * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Last two
2951         arguments removed.
2952         (slpeel_tree_peel_loop_to_edge): Call slpeel_make_loop_iterate_ntimes
2953         without last two arguments. Update single_exit of loops.
2954         (vect_update_niters_after_peeling): Removed. Its functionality was
2955         moved to vect_do_peeling_for_alignment.
2956         (vect_do_peeling_for_loop_bound): New name for function previously
2957         called vect_transform_for_unknown_loop_bound.
2958         (vect_transform_loop_bound): Call slpeel_make_loop_iterate_ntimes
2959         instead of code that duplicates the same functionality.
2960         (vect_do_peeling_for_alignment): Functionality of
2961         vect_update_niters_after_peeling moved here.
2962         (vect_transform_loop): Unify call to vect_do_peeling_for_loop_bound -
2963         previously named vect_transform_for_unknown_loop_bound - for both known
2964         and unknown loop bound cases.
2966 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
2968         * tree-vectorizer.c (slpeel_can_duplicate_loop_p): New name for function
2969         previously called verify_loop_for_duplication. All conditions compacted
2970         into one compound condition. Removed debug dumps.
2971         (vect_analyze_loop_with_symbolic_num_of_iters): Removed. Some of the
2972         functionality moved to vect_can_advance_ivs_p, and some to
2973         vect_analyze_loop_form.
2974         (vect_can_advance_ivs_p): New function. Contains functionality that was
2975         taken out of vect_analyze_loop_with_symbolic_num_of_iters.
2976         (slpeel_tree_peel_loop_to_edge): Call slpeel_can_duplicate_loop_p.
2977         (vect_analyze_operations): Call vect_can_advance_ivs_p and
2978         slpeel_can_duplicate_loop_p.
2979         (vect_get_loop_niters): Added documentation.
2980         (vect_analyze_loop_form): Check the loop entry always - not only in case
2981         of unknown loop bound. Create preheader and exit bb if necessary. Apply
2982         a check that used to take place in
2983         vect_analyze_loop_with_symbolic_num_of_iters.
2984         (vectorize_loops): Call verify_loop_closed_ssa under ENABLE_CHECKING.
2985         Remove redundant call to rewrite_into_loop_closed_ssa.
2986         (vect_compute_data_refs_alignment): Removed obsolete comment.
2988 2004-11-19  Dorit Naishlos  <dorit@il.ibm.com>
2990         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): New name for
2991         function previously called tree_duplicate_loop_to_edge.
2992         (slpeel_tree_duplicate_loop_to_edge_cfg): New name for function
2993         previously called tree_duplicate_loop_to_edge_cfg.
2994         (slpeel_update_phis_for_duplicate_loop): Prefix 'slpeel' added to
2995         function name.
2996         (slpeel_update_phi_nodes_for_guard): Likewise.
2997         (slpeel_make_loop_iterate_ntimes): Likewise.
2998         (slpeel_add_loop_guard): Likewise.
2999         (allocate_new_names, free_new_names): Function declaration moved to top
3000         of file.
3001         (rename_use_op, rename_def_op): Likewise.
3002         (rename_variables_in_bb, rename_variables_in_loop): Likewise.
3003         (vect_generate_tmps_on_preheader): Function declaration moved.
3004         (vect_transform_for_unknown_loop_bound): Added missing function
3005         declaration.
3007 2004-11-19  Andrew Pinski  <pinskia@physics.uc.edu>
3009         PR tree-opt/18507
3010         * tree-flow.h (tree_on_heap): Typedef because there is already a VEC(tree).
3011         Define a VEC(tree_on_heap) for head.
3012         (register_new_def): Change second argument to be a VEC(tree_on_heap).
3013         * tree-ssa-dom.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3014         (tree_ssa_dominator_optimize): Initialize block_defs_stack with
3015         the VEC(tree_on_heap) function.  Also free it before returning.
3016         (dom_opt_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3017         for block_defs_stack.
3018         (restore_currdefs_to_original_value): Use VEC_length instead of
3019         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3020         (dom_opt_finalize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3021         for block_defs_stack.
3022         * tree-into-ssa.c (block_defs_stack): Change to be a VEC(tree_on_heap).
3023         (rewrite_initialize_block): Use VEC_safe_push instead of VARRAY_PUSH_TREE
3024         for block_defs_stack.
3025         (ssa_register_new_def): Likewise.
3026         (ssa_rewrite_initialize_block): Likewise.
3027         (rewrite_finalize_block): Use VEC_length instead of
3028         VARRAY_ACTIVE_SIZE. VEC_pop instead of VARRAY_TOP_TREE/VARRAY_POP.
3029         (ssa_rewrite_finalize_block): Likewise.
3030         (register_new_def): Change second argument to be a VEC(tree_on_heap).
3031         Use VEC_safe_push instead of VARRAY_PUSH_TREE.
3032         (rewrite_blocks): Initialize block_defs_stack with
3033         the VEC(tree_on_heap) function.  Also free it before returning.
3034         (rewrite_ssa_into_ssa): Likewise.
3036 2004-11-19  Fariborz Jahanian <fjahanian@apple.com>
3038         * config/darwin.c (machopic_data_defined_p): return 1 for
3039         MACHOPIC_DEFINED_FUNCTION.
3041 2004-11-19  Jeff Law  <law@redhat.com>
3043         * tree-ssa.c (verify_ssa): Remove redundant checking of PHI
3044         arguments.
3046 2004-11-19  Paul Brook  <paul@codesourcery.com>
3048         PR target/17735
3049         * varasm.c (default_assemble_integer): Allow pointer-sized values.
3050         Expand comment.
3052 2004-11-19  Nick Clifton  <nickc@redhat.com>
3054         * config/stormy16/stormy16.c (combine_bnp): Add code to handle
3055         zero_extension and lshiftrt insns.
3056         Replace uses of XEXP(...) with either SET_DEST() or SET_SRC()
3057         where appropriate.
3058         * config/stormy16.stormy16.md (bclrx3, bsetx3): New patterns
3059         to handle bp and bn insn patterns with a zero_extend rtx
3060         inside them.
3062 2004-11-19  Ian Lance Taylor  <ian@wasabisystems.com>
3064         * config/arm/arm.md (generic_sched): Make const.
3066 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
3068         * emit-rtl.c (classify_insn): Make it static.
3069         * rtl.h: Remove the corresponding prototype.
3071         * integrate.c (has_func_hard_reg_initial_val,
3072         get_func_hard_reg_initial_val): Make them static.
3073         * integrate.h: Remove the corresponding prototypes.
3075 2004-11-19  Ben Elliston  <bje@au.ibm.com>
3077         * dwarf2asm.h (dw2_asm_output_pcel): Stub out with #if 0.
3078         (dw2_asm_output_delta_sleb128): Likewise.
3079         * dwarf2asm.c (dw2_asm_output_pcrel): Likewise.
3080         (dw2_asm_output_delta_sleb128): Likewise.
3082 2004-11-19  Adam Nemet  <anemet@lnxw.com>
3084         * tree-ssa-alias.c: Fix comment.
3086 2004-11-19  Kazu Hirata  <kazu@cs.umass.edu>
3088         * tree-outof-ssa.c: Fix a comment typo.
3090 2004-11-19  Ben Elliston  <bje@au.ibm.com>
3092         * predict.h (predict_insn): Remove extern declaration.
3093         * predict.c (predict_insn): Make static.
3095 2004-11-19  Alan Modra  <amodra@bigpond.net.au>
3097         * config/rs6000/rs6000.c (function_arg): Don't return BLKmode regs.
3099 2004-11-18  Nicolas Pitre <nico@cam.org>
3101         * config/arm/arm.c (const_double_needs_minipool): New function to
3102         determine if a CONST_DOUBLE should be pushed to the minipool.
3103         (note_invalid_constants): Use it.
3105 2004-11-18  Paul Brook  <paul@codesourcery.com>
3107         * config/arm/arm.c (target_float_switch): New variable..
3108         (arm_override_options): Use TARGET_DEFAULT_FLOAT_ABI and
3109         target_float_switch.
3110         * config/arm/arm.h (target_float_switch): Declare.
3111         (ARM_FLAG_SOFT_FLOAT): Remove.
3112         (TARGET_SWITCHES): Remove hard-float and soft-float.
3113         (TARGET_OPTIONS): Add hard-float and soft-float.
3114         (TARGET_DEFAULT_FLOAT_ABI): Define.
3115         * config/arm/coff.h (TARGET_DEFAULT_FLOAT_ABI): Define
3116         (TARGET_DEFAULT): Don't use ARM_FLAG_SOFT_FLOAT.
3117         * config/arm/elf.h: Don't use ARM_FLAG_SOFT_FLOAT.
3118         * config/arm/netbsd-elf.h: Ditto.
3119         * config/arm/netbsd.h: Ditto.
3120         * config/arm/pe.h: Ditto.
3121         * config/arm/unknown-elf.h: Ditto.
3122         * config/arm/wince-pe.h: Ditto.
3123         * config/arm/linux-elf.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3124         * config/arm/semi.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3125         * config/arm/semiaof.h (TARGET_DEFAULT_FLOAT_ABI): Define.
3127 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3129         * config/rs6000/altivec.md (VI, VF, V): New mode macros.
3130         (altivec_lvx_4si, altivec_lvx_8hi, altivec_lvx_16qi,
3131         altivec_lvx_4sf): Rename and replace with ...
3132         (altivec_lvx_<mode>): ... mode macro version.
3133         (altivec_stvx_4si, altivec_stvx_8hi, altivec_stvx_16qi,
3134         altivec_stvx_4sf): Rename and replace with ...
3135         (altivec_stvx_<mode>): ... mode macro version.
3136         (movv4si, movv8hi, movv16qi, movv4sf}): Replace with ...
3137         (mov<mode>): ... mode macro version.
3138         (*movv4si_internal, *movv8hi_internal1, *movv16qi_internal1,
3139         *movv4sf_internal1): Replace with ...
3140         (*mov<mode>_internal): ... mode macro version.
3141         (get_vrsave_internal, *set_vrsave_internal, *save_world,
3142         *restore_world): Unquote output statements.
3143         * config/rs6000/rs6000.c (altivec_expand_ld_builtin,
3144         altivec_expand_st_builtin): Adjust insn names.
3146 2004-11-18  Aldy Hernandez  <aldyh@redhat.com>
3148         * config/rs6000/rs6000.c (rs6000_complex_function_value): Revert
3149         previous change.
3150         (rs6000_override_options): Likewise.
3151         (spe_build_register_parallel): Handle complex doubles on e500v2.
3152         (rs6000_spe_function_arg): Likewise.
3153         (function_arg): Likewise.
3154         (rs6000_function_value): Likewise.
3155         (rs6000_libcall_value): Likewise.
3157 2004-11-18  Andrew Pinski  <pinskia@physics.uc.edu>
3159         * ifcvt.c (find_if_block): Move the check for the number of edges
3160         above the loops checking for complex edges.
3161         Remove the counting of edges as we use EDGE_COUNT now.
3163 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3165         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3166         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.3
3168 2004-11-18  Andreas Schwab  <schwab@suse.de>
3170         * config/i386/i386.md (define_peephole2): Revert last change.
3172 2004-11-18  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.comn>
3174         * config/m32r/linux.h (TARGET_ASM_FILE_END): Set
3175         TARGET_ASM_FILE_END to file_end_indicate_exec_stack.
3177 2004-11-18  Diego Novillo  <dnovillo@redhat.com>
3179         * tree-ssa-propagate.c (ssa_prop_init): Use FOR_ALL_BB instead
3180         of FOR_EACH_BB.
3182 2004-11-18  Jon Grimm <jgrimm2@us.ibm.com>
3184         * Makefile.in (macro_list): Depend on s-macro_list.
3185         (s-macro_list): New target.
3187 2004-11-18  Nathan Sidwell  <nathan@codesourcery.com>
3189         PR target/17107
3190         * fold-const.c (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3191         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3192         (fold_range_test): Adjust.
3193         (fold_truthop): Use it.
3194         * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Rename to ...
3195         (LOGICAL_OP_NON_SHORT_CIRCUIT): ... here.
3197 2004-11-18  Uros Bizjak  <uros@kss-loka.si>
3199         * configure/i386/i386.md (*fix_trunch_1): Add "&& 1" to
3200         insn split constraint.
3201         (define_peephole2): Remove unneeded "&& 1" from peephole2
3202         constraints.
3204 2004-11-18  Ben Elliston  <bje@au.ibm.com>
3206         * doc/cfg.texi (Maintaining the CFG): Remove duplicated @item
3207         element for bsi_prev; use @findex instead.
3209 2004-11-18  Ben Elliston  <bje@au.ibm.com>
3211         * opts.h (add_input_filename): Remove extern declaration.
3212         * opts.c (add_input_filename): Make static.
3214 2004-11-17  Mark Mitchell  <mark@codesourcery.com>
3216         * config/i386/i386.c (i386_solaris_elf_named_section): Mark with
3217         ATTRIBUTE_UNUSED.
3219 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
3221         * defaults.h, config/darwin.h: Don't define TARGET_SUPPORTS_HIDDEN.
3222         * system.h: Poison it.
3223         * doc/tm.texi: Delete its documentation.
3225 2004-11-18  Daniel Jacobowitz  <dan@codesourcery.com>
3226             Mark Mitchell  <mark@codesourcery.com>
3228         * config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
3229         * config/i386/i386.c (i386_solaris_elf_named_section): New
3230         function.
3231         * config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
3232         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
3233         64-bit.
3234         (ASM_QUAD): Don't undefine for biarch targets.
3235         * config/i386/t-sol2: Introduce multilib support.
3237 2004-11-18  Ben Elliston  <bje@au.ibm.com>
3239         * cgraphunit.c: Replace "it's" with "its" and fix a typo.
3241 2004-11-18  Ben Elliston  <bje@au.ibm.com>
3243         * cgraph.h: Replace "it's" with "its" throughout.
3245 2004-11-18  Ben Elliston  <bje@au.ibm.com>
3247         * doc/rtl.texi (Flags): Grammar fix.
3249 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
3251         * expmed.c (alg_code): Add alg_unknown.
3252         (alg_hash_entry): New.
3253         (NUM_ALG_HASH_ENTRIES): Likewise.
3254         (alg_hash): Likewise.
3255         (synth_mult): Cache the result into alg_hash.
3257 2004-11-17  Zack Weinberg  <zack@codesourcery.com>
3259         * config/rs6000/t-darwin: Augment SHLIB_MAPFILES with
3260         config/rs6000/libgcc-ppc64.ver.
3262 2004-11-17  Kazu Hirata  <kazu@cs.umass.edu>
3264         * cfgrtl.c (rtl_verify_flow_info): Don't use INSN_P when
3265         checking if an unconditional return is followed by a barrier.
3267         * jump.c (condjump_p): Remove unreachable code.
3269         * basic-block.h, c-common.h, df.h, expr.h, output.h, rtl.h,
3270         tree-chrec.h, tree-flow.h, tree-scalar-evolution.h,
3271         tree-ssa-live.h, tree.h: Remove unused prototypes.
3273 2004-11-17  Jeff Law  <law@redhat.com>
3275         * tree-cfg.c (edge_to_cases): Renamed from edge_to_case_leader.
3276         (edge_to_cases_elt): Renamed from edge_to_case_leader.
3277         (edge_to_cases_hash): Renamed from edge_to_case_leader_hash.
3278         (edge_to_cases_eq): Renamed from edge_to_case_leader_eq.
3279         (edge_to_cases_cleanup, recording_case_labels_p): New functions.
3280         (get_cases_for_edge): New function.
3281         (start_recording_case_labels, end_recording_case_labels): Similarly.
3282         (record_switch_edge): Don't muck with the CASE_LABEL.  Instead
3283         chain equivalent CASE_LABEL_EXPRs together.
3284         (get_case_leader_for_edge, get_case_leader_for_edge_hash): Kill.
3285         (make_switch_expr_edges): Do not record edge/cases here.
3286         (cleanup_tree_cfg): Record cases around the call to thread_jumps.
3287         (split_critical_edges): Record cases around the edge splitting code.
3288         (cleanup_dead_labels): Use CASE_LABEL again.
3289         (tree_redirect_edge_and_branch): If we have a mapping from edge
3290         to cases, use it to handle redirections.  Else do it the slow way.
3291         * tree.h (CASE_LEADER_OR_LABEL): Kill.
3292         (CASE_LABEL): Revert to just looking at the tree's second operand.
3293         * tree.c (get_case_label): Kill.
3295 2004-11-17  Diego Novillo  <dnovillo@redhat.com>
3297         PR tree-optimization/18307
3298         * tree-ssa-alias.c (merge_pointed_to_info): ICE if 'dest' and
3299         'orig' are the same node.
3300         (collect_points_to_info_r): Do not call merge_pointed_to_info
3301         when the PHI argument is identical to the LHS.
3303 2004-11-17  Steven Bosscher  <stevenb@suse.de>
3305         * tree-ssa-propagate.c (cfg_blocks_add): Assert we're not trying
3306         to insert the exit or entry block.
3307         (ssa_prop_init): Use add_control_edge to seed the algorithm.
3309 2004-11-16  Zack Weinberg  <zack@codesourcery.com>
3311         * mkmap-flat.awk, mkmap-symver.awk: If the last version
3312         assigned to a symbol was '%exclude', do not emit it anywhere.
3313         If leading_underscore is true, prefix all symbols from the
3314         version scripts with a leading underscore before comparing
3315         them with nm output or emitting them.  Remove support for dot
3316         symbols.
3317         * config/t-slibgcc-darwin (SHLIB_LINK): Use mkmap-flat.awk.
3318         (SHLIB_MAPFILES): Use libgcc-std.ver.
3319         (SHLIB_MKMAP_OPTS): Enable leading-underscore mode.
3320         (SHLIB_LINK): Add -Wl,-exported_symbols_list,$(SHLIB_MAP).
3321         * config/sh/t-linux: Use the normal libgcc-std.ver, plus
3322         libgcc-excl.ver and libgcc-glibc.ver.
3324         * config/sh/libgcc-excl.ver: New file.
3325         * config/sh/libgcc-std.ver, libgcc-darwin.ver: Delete.
3327 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
3329         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Swap
3330         the test when the edge has the opposite meaning, not when
3331         the first argument is invariant.
3333 2004-11-16  Aldy Hernandez  <aldyh@redhat.com>
3335         * config/rs6000/rs6000.c (rs6000_override_options): Split e500v2
3336         doubles.
3337         (rs6000_complex_function_value): Handle e500 v2 variant.
3339 2004-11-16  Daniel Berlin  <dberlin@dberlin.org>
3341         Fix PR tree-optimization/18519
3343         * tree-optimize (execute_todo): Add case for TODO_cleanup_cfg.
3344         * tree-pass.h: Add TODO_cleanup_cfg.
3345         * tree-ssa-ccp.c (pass_ccp): Use TODO_cleanup_cfg.
3346         (ccp_finalize): Remove call to cleanup_cfg.
3347         * tree-ssa-dce.c (pass_dce): Use TODO_cleanup_cfg and TODO_dump_func.
3348         (pass_cd_dce): Ditto.
3349         (perform_tree_ssa_dce): Remove call to cleanup_cfg,
3350         dump_function_to_file.
3351         * tree-ssa-loop-ch.c (copy_loop_headers): Remove call
3352         to cleanup_cfg.
3353         (pass_ch): Add TODO_cleanup_cfg.
3354         * tree-ssa-loop.c (tree_ssa_loop_done): Remove call to
3355         cleanup_cfg.
3356         (pass_loop_done): Add TODO_cleanup_cfg.
3357         * tree-ssa-phiopt.c (pass_phiopt): Ditto.
3358         (tree_ssa_phiopt): Remove call to cleanup_cfg.
3360 2004-11-16  Devang Patel  <dpatel@apple.com>
3362         * optabs.c (vector_compare_rtx): Fix COMPARISON_CLASS_P use.
3364 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
3366         * expmed.c, ra-colorize.c: Fix comment typos.
3368         * doc/tm.texi: Fix typos.
3370 2004-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3371             Mark Mitchell  <mark@codesourcery.com>
3373         PR target/6123
3374         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __PIC__ and
3375         __pic__ if PIC.
3377 2004-11-16  Ulrich Weigand  <uweigand@de.ibm.com>
3379         * regmove.c (regmove_optimize): Use lowpart_subreg instead of
3380         gen_rtx_SUBREG with incorrect offset to compute SRC_SUBREG.
3382 2004-11-16  Devang Patel  <dpatel@apple.com>
3384         * tree-if-conv.c (clean_predicate_lists): Update gcc_assert check.
3386 2004-11-16  Eric Christopher  <echristo@redhat.com>
3388         * config/mips/mips.c: Use rtl _P predicates.
3389         * config/mips/mips.h: Ditto.
3390         * config/mips/mips.md: Ditto.
3392 2004-11-16  Fariborz Jahanian <fjahanian@apple.com>
3394         * config/rs6000/altivec.md (altivec_vandc): Canonicalize
3395         the pattern.
3397 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
3399         * config/s390/s390.c (s390_cc_modes_compatible): New function.
3400         (TARGET_CC_MODES_COMPATIBLE): Target macro defined.
3402 2004-11-16  Kaz Kojima  <kkojima@gcc.gnu.org>
3404         PR target/18447
3405         * config/sh/sh.c (prepare_move_operands): Emit blockage insns
3406         before and after the insns for getting GOT address in non-PIC
3407         TLS_MODEL_INITIAL_EXEC tls sequence when the first scheduling
3408         is enabled.
3410 2004-11-16  Andreas Krebbel  <krebbel1@de.ibm.com>
3412         * gcc/cse.c (struct change_cc_mode_args): New structure.
3413         (cse_change_cc_mode_insn): New function.
3414         (cse_change_cc_mode): Use validate_change to perfom changes.
3415         (cse_change_cc_mode_insns, cse_condition_code_reg):
3416         Call cse_change_cc_mode_insn.
3418 2004-11-16  Steven Bosscher  <stevenb@suse.de>
3420         * stack.h: Remove.
3422 2004-11-16  Steven Bosscher  <stevenb@suse.de>
3424         * config/i386/i386.c (x86_schedule): Fix typo, m_K6 intead of m_K8.
3426 2004-11-15  Dale Johannesen  <dalej@apple.com>
3428         * tree-flow.h (add_referenced_temp_var):  Remove name from prototype.
3430 2004-11-15  Dale Johannesen  <dalej@apple.com>
3432         * profile.c (compute_branch_probabilities):  Prevent
3433         crash with EH in RTL-based profiling.
3435 2004-11-16  Kazu Hirata  <kazu@cs.umass.edu>
3437         * tree-cfg.c (verify_expr): Replace TREE_OPERAND with
3438         COND_EXPR_COND.
3439         * tree-if-conv.c (tree_if_convert_cond_expr): Likewise.
3440         * tree-ssa-dom.c (thread_across_edge): Likewise.
3441         * tree-vectorizer.c (vect_transform_loop_bound): Replace
3442         TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
3443         COND_EXPR_ELSE.
3445         * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
3446         (tree_flow_call_edges_add): Update the call to
3447         bsi_commit_edge_inserts.
3448         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
3449         * profile.c (branch_prob): Likewise.
3450         * tree-mudflap.c (mf_decl_cache_locals): Likewise.
3451         * tree-sra.c (scalarize_function): Likewise.
3452         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
3453         * tree-ssa-pre.c (fini_pre): Likewise.
3454         * tree-flow.h: Update the prototype for
3455         bsi_commit_edge_inserts.
3457 2004-11-15  Eric Christopher  <echristo@redhat.com>
3459         * sched-deps.c (set_sched_group_p): Delete.
3460         (delete_all_dependencies): New function.
3461         (fixup_sched_groups): Use. New function.
3462         (sched_analyze_insn): Use.
3464 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
3466         * c-common.c (binary_op_error): Don't allow LROTATE_EXPR,
3467         RROTATE_EXPR or unknown code.
3468         * c-typeck.c (build_binary_op): Don't allow RROTATE_EXPR,
3469         LROTATE_EXPR, MAX_EXPR, MIN_EXPR, UNORDERED_EXPR, ORDERED_EXPR,
3470         UNLT_EXPR, UNLE_EXPR, UNGT_EXPR, UNGE_EXPR, UNEQ_EXPR, LTGT_EXPR
3471         or unknown code.
3473 2004-11-15  Joseph S. Myers  <joseph@codesourcery.com>
3475         PR c/18498
3476         * c-decl.c (grokdeclarator): Call check_bitfield_type_and_width
3477         after processing the declarator.
3479 2004-11-15  Aldy Hernandez  <aldyh@redhat.com>
3481         * config/rs6000/altivec.md ("altivec_vsplth"): Rewrite with
3482         vec_duplicate.
3483         (altivec_vspltb): Same.
3484         (altivec_vspltw): Same.
3485         (altivec_vspltisb): Same.
3486         (altivec_vspltish): Same.
3487         (altivec_vspltisw): Same.
3488         (altivec_vspltisw_v4sf): Same.
3489         (define_constants): Remove UNSPEC_VSPLTISB, UNSPEC_VSPLTISW,
3490         UNSPEC_VSPLTISH.
3491         Move "End of vector xor's" comment to the right place.
3493 2004-11-15  Steve Ellcey  <sje@cup.hp.com>
3495         * config/ia64/ia64.md (*movtf_internal):  Use destination_operand
3496         instead of nonimmediate_operand.
3498 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3500         * config/i386/sol2.h (ASM_OUTPUT_CALL): Use print_operand.
3501         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Likewise.
3502         * config/sol2.c (solaris_output_init_fini): Update calls to
3503         ASM_OUTPUT_CALL.  Include "rtl.h".
3505 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3507         * config/sol2-c.c (cmn_err_char_table): Add "p".
3509 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3511         * config/sparc/sol2.h (SUPPORTS_INIT_PRIORITY): Remove.
3512         * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define here.
3514 2004-11-15  Mark Mitchell <mark@codesourcery.com>
3516         * config/t-slibgcc-sld (SHLIB_LINK): Make symlinks entirely
3517         within the multilib directory.
3519 2004-11-15  Nick Clifton  <nickc@redhat.com>
3521         * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Add
3522         builtin assert of cpu=xstormy16.
3524 2004-11-15  Nathan Sidwell  <nathan@codesourcery.com>
3526         * tree-ssa-pre.c (bitmap_print_value_set): Fix uninitialized
3527         variable.
3529 2004-11-14  Richard Henderson  <rth@redhat.com>
3531         PR 18480
3532         * calls.c (struct arg_data): Add parallel_value.
3533         (precompute_register_parameters): Set it.
3534         (load_register_parameters): Use it.
3535         (store_one_arg): Also set it here.
3537 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
3539         PR tree-optimization/18431
3540         * fold-const.c (associate_trees): Do not produce x + 0.
3541         (fold_widened_comparison, fold_sign_changed_comparison): New functions.
3542         (fold): Use them.
3543         * tree-ssa-loop-niter.c (upper_bound_in_type, lower_bound_in_type):
3544         Moved ...
3545         * tree.c (upper_bound_in_type, lower_bound_in_type): Here.
3546         * tree.h (upper_bound_in_type, lower_bound_in_type): Declare.
3548 2004-11-14  Eric Botcazou <ebotcazou@libertysurf.fr>
3550         * doc/rtl.texi (SUBREG): Adjust BYTENUM value in example.
3552 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
3554         * cfgrtl.c, global.c, tree-ssa-copy.c, tree-ssa-loop-ivopts.c,
3555         value-prof.c: Fix comment typos.
3557 2004-11-14  Stan Shebs  <shebs@apple.com>
3559         Basic ABI changes for passing structs by value in 64-bit Darwin.
3560         * config/rs6000/rs6000.c (rs6000_darwin64_abi): New flag.
3561         (rs6000_override_options): Set it for 64-bit Darwin.
3562         (rs6000_parse_abi_options): Add testing options to change it.
3563         (rs6000_return_in_memory): Test whether the type is one
3564         that can be passed in registers.
3565         (darwin64_function_arg_advance): New.
3566         (function_arg_advance): Call it, plus add recursion depth
3567         argument and test when counting off arguments.
3568         (rs6000_darwin64_function_arg): New.
3569         (function_arg): Call it.
3570         (setup_incoming_varargs): Add argument to function_arg_advance.
3571         (rs6000_darwin64_function_value): New.
3572         (rs6000_function_value): Call it.
3573         * config/rs6000/rs6000.h (FUNCTION_ARG_ADVANCE): Pass depth arg.
3574         * config/rs6000/rs6000-protos.h: Update decl of
3575         function_arg_advance.
3577 2004-11-14  Andrew Pinski  <pinskia@physics.uc.edu>
3579         PR c/17279
3580         * c-common.c (c_common_nodes_and_builtins): Ask the back-end if we
3581         support TImode before adding __int128_t and __uint128_t types.
3583 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
3585         PR tree-opt/18400
3586         * tree-vectorizer.c (make_loop_iterate_ntimes): Set loop->nb_iterations.
3587         (vect_transform_loop_bound): Set loop->nb_iterations.
3589 2004-11-14  Dorit Naishlos  <dorit@il.ibm.com>
3590             Andrew Pinski  <pinskia@physics.uc.edu>
3592         PR tree-opt/18425
3593         * tree-vectorize.c (vect_build_loop_niters): Do not insert
3594         NULL into the instruction stream. Initialize new_bb to NULL.
3595         (vect_update_ivs_after_vectorizer): Likewise.
3596         (vect_gen_niters_for_prolog_loop): Likewise.
3598 2004-11-14  Zdenek Dvorak  <dvorakz@suse.cz>
3600         PR tree-optimization/18431
3601         * tree-flow.h (stmt_references_memory_p): Declare.
3602         * tree-ssa-loop-im.c (stmt_cost): Use stmt_references_memory_p.
3603         * tree-ssa.c (stmt_references_memory_p): New function.
3605 2004-11-14  Andreas Schwab  <schwab@suse.de>
3607         * Makefile.in (lambda-code.o, tree-loop-linear.o): Depend on
3608         $(EXPR_H).
3610 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
3612         * c-common.c (walk_stmt_tree): Remove.
3613         * c-common.h: Remove the corresponding prototype.
3615         * emit-rtl.c (push_to_full_sequence): Remove.
3616         * rtl.h: Remove the corresponding prototype.
3618         * cselib.c, expr.c: Fix comment typos.
3620 2004-11-13  Richard Henderson  <rth@redhat.com>
3622         * calls.c (precompute_register_parameters): Force all PARALLELs
3623         into pseudo registers.
3624         (load_register_parameters): Copy PARALLELs into hard registers.
3625         * function.c (assign_parm_setup_block): Copy PARALLELS into
3626         pseudo registers.  Do emit_group_store in conversion_insns.
3627         * expr.c (emit_group_load_1): Rename from emit_group_load, take
3628         tmps as an argument.  Move final copy loop ...
3629         (emit_group_load): ... here.  New function.
3630         (emit_group_load_into_temps, emit_group_move_into_temps): New.
3631         * expr.h: Declare them.
3633 2004-11-14  Kazu Hirata  <kazu@cs.umass.edu>
3635         * tree-cfg.c, tree-if-conv.c, tree-ssa-loop-ivopts.c,
3636         tree-ssa-loop-manip.c, tree-vectorizer.c: Replace TREE_CHAIN
3637         with PHI_CHAIN where appropriate.
3639 2004-11-13  Dale Johannesen  <dalej@apple.com>
3641         * tree-flow.h (bsi_commit_one_edge_insert): Remove name from prototype.
3642         (tree_block_label): Ditto.
3643         (flush_pending_stmts): Ditto.
3644         (insert_edge_copies): Ditto.
3645         (expr_invariant_in_loop_p): Ditto.
3646         (TDF_USE_OPS): Parenthesize definition.
3647         (TDF_USE_VOPS): Ditto.
3649 2004-11-13  David Edelsohn  <edelsohn@gnu.org>
3651         * config/rs6000/aix51.h (ASM_CPU_SPEC): Add 970 and G5.
3652         * config/rs6000/aix52.h (ASM_CPU_SPEC): Same.
3653         (atoll): Declare.
3654         * config/rs6000/t-aix52 (BOOT_LDFLAGS): Define.
3656 2004-11-14  Joseph Myers  <joseph@codesourcery.com>
3658         * config/i386/i386.c (override_options): Move loop to set default
3659         tuning to correct place.
3661 2004-11-13  Zak Kipling  <zak@transversal.com>
3663         PR target/18300
3664         * config/i386/i386.c (classify_argument): Fix infinite loop when
3665         passing object with 3 or more base classes by value.
3667 2004-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3669         * doc/md.texi (constraints) <% modifier>: Mention that it is
3670         useless when the two alternatives are strictly identical.
3672 2004-11-13  Richard Henderson  <rth@redhat.com>
3674         * expmed.c (extract_split_bit_field): Temporarily disable call to
3675         extract_force_align_mem_bit_field.
3677 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
3679         * bitmap.c, bitmap.h, expmed.c, tree-cfg.c: Fix comment
3680         formatting.
3682         * c-cppbuiltin.c, cgraph.c, domwalk.h, except.c, gimplify.c,
3683         lambda-code.c, postreload.c, predict.c, tree-sra.c,
3684         tree-ssa-loop-manip.c, tree.c: Fix comment typos.
3686 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
3688         * doc/install.texi (automake): Correctly document that everything now
3689         will use automake 1.9.3.
3691 2004-11-13  Hans-Peter Nilsson  <hp@bitrange.com>
3693         PR target/18347
3694         * config/mmix/mmix.c (mmix_function_outgoing_value): Handle
3695         TImode.  Sorry for other non-complex larger-than-64-bit modes.
3696         * config/mmix/mmix.h (MIN_UNITS_PER_WORD): Do not define.
3698 2004-11-13  Kelley Cook  <kcook@gcc.gnu.org>
3700         * doc/install.texi (automake): Document that everything now uses 1.9.
3702 2004-11-13  Bernd Schmidt  <bernd.schmidt@analog.com>
3704         * cse.c (cse_insn): Stores in a libcall sequence can invalidate
3705         previous loads.
3707 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
3709         * tree.h: Fix comment typos.
3711 2004-11-13  Steven Bosscher  <stevenb@suse.de>
3713         * cse.c (CHEAP_REGNO): Redefine using REGNO_PTR_FRAME_P and
3714         HARD_REGISTER_NUM_P.
3716         * cselib.c (new_cselib_val): Make comment correct and more detailed.
3717         * flow.c (mark_set_1): Likewise.
3719         * except.c (duplicate_eh_region_1, duplicate_eh_region_2,
3720         duplicate_eh_regions): Remove.
3721         * except.h (duplicate_eh_regions): Remove prototype.
3722         * integrate.c (get_label_from_map, copy_rtx_and_substitute,
3723         global_const_equiv_varray): Remove.
3724         * integrate.h (get_label_from_map, copy_rtx_and_substitute,
3725         global_const_equiv_varray, set_label_in_map): Remove prototypes,
3726         extern declaration, and #define.
3727         (MAYBE_EXTEND_CONST_EQUIV_VARRAY, SET_CONST_EQUIV_DATA): Remove.
3728         (struct inline_remap): Remove.
3729         * varray.c (struct element): Remove entry for const_equiv_data.
3730         * varray.h (struct const_equiv_data): Remove.
3731         (enum varray_data_enum) <VARRAY_DATA_CONST_EQUIV>: Remove.
3732         (union varray_data_tag) <const_equiv>: Remove.
3733         (VARRAY_CONST_EQUIV_INIT, VARRAY_CONST_EQUIV,
3734         VARRAY_PUSH_CONST_EQUIV, VARRAY_TOP_CONST_EQUIV): Remove.
3736         * regstack.c (record_label_references): Remove unused function.
3738         * rtl.def (VALUE): Update comment.
3739         (LABEL_REF): Remove unused operand 2.
3740         * rtl.h (struct rtx_def): Update for removed accessor macros.
3741         (XCADVFLAGS, INSN_DEAD_CODE_P, LINE_NUMBER, CONTAINING_INSN,
3742         REG_LOOP_TEST_P): Remove.
3743         (ADDR_DIFF_VEC_FLAGS, CSELIB_VAL_PTR, LABEL_NEXTREF): Add comments.
3744         * web.c (entry_register): Don't copy REG_LOOP_TEST_P.
3745         * doc/rtl.texi (INSN_DEAD_CODE_P, REG_LOOP_TEST_P): Remove.
3747 2004-11-13  James A. Morrison  <phython@gcc.gnu.org>
3748             Eric Botcazou  <ebotcazou@libertysurf.fr>
3750         PR target/18230
3751         * config/sparc/sparc.c (sparc_rtx_costs): Handle the NAND vector
3752         patterns.
3753         * config/sparc/sparc.md (V64I): New macro for 64-bit modes.
3754         (V32I): New macro for 32-bit modes.
3755         (anddi3, anddi_sp32, anddi_sp64, and_not_di_sp32, and_not_di_sp64,
3756         iordi3, iordi3_sp32, iordi_sp64, or_not_di_sp32, or_not_di_sp64,
3757         xordi3, xordi3_sp32, xordi3_sp64, {AND, IOR, XOR} DI splitter,
3758         xor_not_di_sp32, xordi_not_di_sp64, one_cmpldi2, one_cmpldi_sp32,
3759         one_cmpldi_sp64): Use V64I instead of DI.
3760         (andsi3, andsi_sp32, andsi_sp64, and_not_si, iorsi3, or_not_si,
3761         xorsi3, xor_not_si, one_cmplsi2): Use V32I instead of SI.
3762         (addv2si3, addv4hi3, addv2hi3): Remove % modifier.
3763         (nandv64i_vis, nandv32i_vis): New patterns.
3765 2004-11-12  Mike Stump  <mrs@apple.com>
3767         * Makefile.in: Add html support.
3768         * java/Make-lang.in: Likewise.
3769         * fortran/Make-lang.in: Likewise.
3770         * treelang/Make-lang.in: Likewise.
3771         * doc/install.texi: Likewise.
3772         * doc/makefile.texi: Likewise.
3773         * doc/sourcebuild.texi: Likewise.
3775 2004-11-13  Kazu Hirata  <kazu@cs.umass.edu>
3777         * tree-ssa-loop-manip.c: Fix a comment typo.
3779 2004-11-12  Mike Stump  <mrs@apple.com>
3781         * doc/cppinternals.texi (Index): Fix html generation with makeinfo by
3782         renaming this node to Concept Index.
3783         * doc/gccint.texi (Index): Likewise.  Also minor formatting tweaks
3784         to more closely match gcc.texi.
3786 2004-11-12  Jeff Law  <law@redhat.com>
3788         * tree-cfg.c (hashtab.h): Include.
3789         (struct edge_to_case_leader_elt): New structure.
3790         (edge_to_case_leader): New.
3791         (edge_to_case_leader_hash): New hashtable hasing function.
3792         (edge_to_case_leader_eq): New hashtable equality function.
3793         (record_switch_edge): New function.
3794         (get_case_leader_for_edge, get_case_leader_for_edge): New functions.
3795         (make_switch_expr_edges): Build the edge-to-case-leader
3796         hash table.  Tear down the hash table when we're done.
3797         (cleanup_dead_labels): Use CASE_LEADER_OR_LABEL instead of
3798         CASE_LABEL.
3799         (tree_node_can_be_shared): Allow sharing of CASE_LABEL_EXPR nodes.
3800         (tree_redirect_edge_and_branch, case SWITCH_EXPR): Update
3801         to use new concept of case leaders to reduce overhead of
3802         redirecting outgoing edges from switch statements.
3803         * tree.c (get_case_label): New function.
3804         * tree.h (CASE_LABEL): Define in terms of get_case_label.
3805         (CASE_LEADER_OR_LABEL): Define.
3807 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
3809         * varasm.c (output_addressed_constants): For CONST_DECLs,
3810         output the initializer if present.
3812 2004-11-12  Ziemowit Laski  <zlaski@apple.com>
3814         * config/rs6000/darwin.h: Fix confusing typo in comment.
3816 2004-11-12  Devang Patel  <dpatel@apple.com>
3818         * optabs.c (vector_compare_rtx): Use COMPARISON_CLASS_P.
3820 2004-11-12  Devang Patel  <dpatel@apple.com>
3822         * tree-if-conv.c (clean_predicate_lists): Use loop header
3823         and latch directly.
3825 2004-11-12  Richard Henderson  <rth@redhat.com>
3827         PR 17778
3828         * config/i386/i386.h (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3829         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3830         (TARGET_96_ROUND_53_LONG_DOUBLE): New.
3831         * config/i386/i386-modes.def (XF): Use it.
3833 2004-11-11  Geoffrey Keating  <geoffk@apple.com>
3835         * Makefile.in (macro_list): Use move-if-change to avoid spurious
3836         rebuilds.
3838 2004-11-12  Mark Mitchell  <mark@codesourcery.com>
3840         PR c++/18416
3841         * passes.c (rest_of_decl_compilation): Do not look at DECL_RTL
3842         when deciding whether to pass a variable to
3843         cgraph_varpool_finalize_decl or assemble_variable.
3844         * toplev.c (check_global_declarations): Do not clear DECL_RTL.
3846 2004-11-12  Kazu Hirata  <kazu@cs.umass.edu>
3848         * tree-vectorizer.c: Fix a comment typo.
3850 2004-11-12  Bernd Schmidt  <bernd.schmidt@analog.com>
3852         * genconfig.c (walk_insn_part): Look at match_dups inside a label_ref.
3854 2004-11-12  Diego Novillo  <dnovillo@redhat.com>
3856         * tree-scalar-evolution.c (analyzable_condition): Remove
3857         superfluous TREE_THIS_VOLATILE checks on SSA_NAMEs.
3859 2004-11-12  Ralf Corsepius  <ralf.corsepius@rtems.org>
3861         * config/rs6000/t-rtems (MULTILIB_NEW_EXCEPTIONS_ONLY):
3862         Remove m505/roe multilib variant.
3864 2004-11-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
3866         * expr.c (emit_group_load) <CONCAT>: Use extract_bit_field
3867         to load from the stack.
3869 2004-11-12  Richard Henderson  <rth@redhat.com>
3871         * toplev.c (floor_log2): Rename from floor_log2_wide, use CLZ_HWI.
3872         (exact_log2): Rename from exact_log2_wide, use CTZ_HWI.
3873         * toplev.h (FL2T__): Remove.
3874         (CLZ_HWI): Rename from FL2T_CLZ__.
3875         (CTZ_HWI): New.
3876         (floor_log2): Simplify.
3877         (exact_log2): New.
3879 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
3881         * tree-data-ref.c (analyze_subscript_affine_affine): Correctly
3882         compute the first overlapping iterations.
3884 2004-11-12  Sebastian Pop  <pop@cri.ensmp.fr>
3886         PR middle-end/18005
3887         * tree-data-ref.c (estimate_niter_from_size_of_data): Ensure
3888         that arguments of EXACT_DIV_EXPR are INTEGER_CST.
3890 2004-11-12  Steven Bosscher  <stevenb@suse.de>
3892         PR tree-optimization/18419
3893         * tree-ssa.c (walk_use_def_chains_1): Make the visited map a
3894         pointer set instead of a bitmap.
3895         (walk_use_def_chains): Create, pass and clean up that pointer_set.
3897         * tree-ssa-alias.c (struct alias_info): Make the ssa_names_visited
3898         field an sbitmap.
3899         (init_alias_info): Allocate and zero it here.
3900         (delete_alias_info): Delete it here.
3901         (collect_points_to_info_for): Use it.
3903 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
3905         * alias.c (record_alias_subset, addr_side_effect_eval):
3906         Make them static.
3907         * alias.h: Remove the prototype for record_alias_subset.
3908         * expr.h: Remove the commented-out prototype for
3909         record_alias_subset.
3910         * rtl.h: Remove the prototype for addr_side_effect_eval.
3912         * cfglayout.c (choose_inner_scope): Make it static.
3913         * rtl.h: Remove the corresponding prototype.
3915         * cfgloopmanip.c (update_single_exits_after_duplication,
3916         unloop): Make them static.
3917         * cfgloop.h: Remove the corresponding prototypes.
3919         * c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
3920         Make them static.
3921         * c-tree.h: Remove the corresponding prototypes.
3923         * explow.c (round_push): Make it static.
3924         * expr.h: Remove the corresponding prototype.
3926         * varasm.c (get_named_section_flags, decl_tls_model): Make
3927         them static.
3928         * output.h: Remove the prototype for get_named_section_flags.
3929         * tree.h: Remove the prototype for decl_tls_model.
3931 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
3933         * function.c (expand_function_end): Remove an "if" statement
3934         that always triggers.
3935         * stmt.c (expand_null_return_1): Likewise.
3937 2004-11-11  James E. Wilson  <wilson@specifixinc.com>
3939         * config/ia64/ia64.h (HARD_REGNO_NREGS): Handle XCmode.
3940         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, SECONDARY_MEMORY_NEEDED,
3941         CLASS_MAX_NREGS): Likewise.
3943 2004-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
3945         PR tree-optimization/17742
3946         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Handle
3947         MINUS_EXPR correctly.
3949 2004-11-11  Sebastian Pop  <pop@cri.ensmp.fr>
3951         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
3952         Give up as soon as the evolution is known not computable.
3954 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
3956         PR target/16457
3957         * config/rs6000/rs6000.c (mask64_2_operand): Stub to call
3958         mask64_1or2_operand.
3959         (mask64_1or2_operand): Broken out of mask64_2_operand, add flag
3960         to spot rlwinm opportunities.
3961         (and64_2_operand): Use mask_1or2_operand.
3962         * config/rs6000/rs6000.md (anddi3): Use rlwinm when possible.
3964 2004-11-11  Dorit Naishlos  <dorit@il.ibm.com>
3966         * tree-vectorizer.c (update_phi_nodes_for_guard): Call reverse_phis.
3967         (vect_update_ivs_after_vectorizer): Update function documentation.
3968         Avoid quadratic behavior and direct write to PHI_ARG_DEF.
3970 2004-11-11  Kazu Hirata  <kazu@cs.umass.edu>
3972         * config/arm/arm.c: Fix a comment typo.
3974 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
3976         * bitmap.h (nBITMAP_WORD_BITS): Remove.
3977         (BITMAP_WORD_BITS): Force unsigned by use of 1u.
3978         (BITMAP_ELEMENT_WORDS, BITMAP_ELEMENT_ALL_BITS): Remove
3979         unnecessary casts.
3980         (bitmap_first_set_bit): Return unsigned, use ctzl.
3981         (bitmap_last_set_bit): Remove.
3982         * bitmap.c (bitmap_element_zerop, bitmap_copy): Make iterator
3983         unsigned.
3984         (bitmap_first_set_bit): Return unsigned, require non-empty bitmap,
3985         remove special case code for two word elements.
3986         (bitmap_last_set_bit): Remove.
3987         * ra-build.c (livethrough_conflicts_bb): Replace unnecessary use of
3988         bitmap_first_set_bit with bitmap_empty_p.
3989         * tree-outof-ssa.c (analyze_edges_for_bb): Likewise.
3990         * tree-ssa-pre.c (bitmap_print_value): Use simple flag rather than
3991         bitmap_last_bit_set.
3993 2004-11-11  Nathan Sidwell  <nathan@codesourcery.com>
3995         PR target/16796
3996         * config/rs6000/rs6000.md: Add DF & SF reg move peepholes.
3998         PR target/16458
3999         * config/rs6000/rs6000.c (rs6000_generate_compare): Generate an
4000         unsigned equality compare when we know the operands are unsigned.
4002 2004-11-10  Peter S. Mazinger  <ps.m@gmx.net>
4004         * config/mips/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Define
4005         __PIC__ and __pic__ only if TARGET_ABICALLS.
4006         (SUBTARGET_CPP_SPECS): Don't define or undefine __PIC__ and __pic__.
4007         (SUBTARGET_ASM_SPECS): Don't pass -non_shared to assembler; pass
4008         -KPIC only if not -mno-abicalls.
4010         * config/alpha/linux.h, config/arm/linux-elf.h, config/pa/pa-linux.h
4011         * config/sparc/linux.h, config/sparc/linux64.h
4012         (TARGET_OS_CPP_BUILTINS): Define __PIC__ and __pic__ if flag_pic.
4014         * config/arm/linux-gas.h (CPP_SPEC): Don't define __PIC__ or __pic__.
4015         * config/pa/pa/linux.h (CPP_SPEC): Likewise.
4016         * config/sparc/linux.h (CPP_SUBTARGET_SPEC): Likewise.
4017         * config/sparc/linux64.h (CPP_SUBTARGET_SPEC): Likewise.
4019 2004-11-11  Paul Brook  <paul@codesourcery.com>
4021         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Save PIC
4022         register if current_function_uses_pic_offset_table is set.
4024 2004-11-10  David Edelsohn  <edelsohn@gnu.org>
4026         * config/rs6000/rs6000.md (define_attr "type"): Add two and three.
4027         Change multi-instruction sequences to new attribute.
4028         * config/rs6000/{40x.md,440.md,603.md,6xx.md,
4029         7450.md,7xx.md,8540.md,mpc.md,power4.md,power5.md,
4030         rios1.md,rios2.md,rs64.md}: Add descriptions for two and three.
4032 2004-11-10  Daniel Berlin  <dberlin@dberlin.org>
4034         * tree-data-ref.c (build_classic_dist_vector): If either loop
4035         is outside of the nest we asked about, the dependence can't
4036         matter.
4037         (build_classic_dir_vector): Ditto.
4039 2004-11-10  Zdenek Dvorak  <dvorakz@suse.cz>
4041         * tree-ssa-loop-ivopts.c (get_address_cost): Add address elements in
4042         right order.
4043         (force_var_cost): Determine cost of addition and multiplication more
4044         precisely.
4045         (get_computation_cost_at): Add cost for computing address elements to
4046         the final cost.
4048         * fold-const.c (fold): Attempt to use ptr_difference_const whenever
4049         one of the arguments of MINUS_EXPR is an address.
4050         (split_address_to_core_and_offset): New function.
4051         (ptr_difference_const): Handle case when one of the operands is a
4052         pointer.
4053         * tree-ssa-loop-ivopts.c (determine_base_object): Fold &*addr.
4054         (ptr_difference_cost): Pass addresses instead of objects to
4055         ptr_difference_const.
4057 2004-11-10  Nathan Sidwell  <nathan@codesourcery.com>
4059         * tree.c (tree_check_failed): Emit general error if the list of
4060         node types is empty.
4062 2004-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
4064         * config/sparc/sparc.c (function_arg_union_value): New 'slotno'
4065         argument.  When the union is passed in the 6th slot, build a
4066         PARALLEL with only one element.
4067         (function_arg): Adjust call to function_arg_union_value.
4068         (function_value): Likewise.
4070 2004-11-10  Fariborz Jahanian <fjahanian@apple.com>
4072         PR tree-optimization/17892
4073         * tree-ssa-dom.c (unsafe_associative_fp_binop): Add test for
4074         MINUS_EXPR operator.
4076 2004-11-10  James A. Morrison  <phython@gcc.gnu.org>
4078         PR target/18230
4079         config/sparc/sparc.md (addsi3, subsi3): Set "fptype" attribute.
4080         (addv2si, addv4hi, addv2hi, subv2si, subv4hi, subv2hi): New patterns.
4082 2004-11-10  Steven Bosscher  <stevenb@suse.de>
4084         * basic-block.h (XMALLOC_REG_SET, XFREE_REG_SET): New.
4085         (struct basic_block_def): Remove local_set and cond_local_set
4086         fields.  Update comment for global_live_at_start.
4087         * flow.c (calculate_global_regs_live): Allocate local_sets and
4088         cond_local_sets here as arrays of bitmaps previously stored in
4089         bb->local_set and bb->cond_local_set.  Use xmalloc instead of
4090         obstack allocated bitmaps.
4092 2004-11-09  H.J. Lu  <hongjiu.lu@intel.com>
4094         PR target/18380
4095         * config/ia64/unwind-ia64.h (_Unwind_FindTableEntry): Mark it
4096         hidden.
4098         * unwind-dw2.c (_Unwind_FindTableEntry): Removed.
4100 2004-11-09  Jeff Law  <law@redhat.com>
4102         * cfganal.c (flow_dfs_compute_reverse_execute): Accept new
4103         argument holding last unvisited block.  Start search for
4104         unvisited blocks at LAST_UNVISITED rather than EXIT_BLOCK.
4105         (connect_infinite_loops_to_exit): Supply last unvisited block
4106         to flow_dfs_compute_reverse_execute.
4108 2004-10-22  Aldy Hernandez  <aldyh@redhat.com>
4110         * config/rs6000/rs6000.md (fix_truncdfsi2): Handle e500
4111         doubles.
4112         (floatunssidf2): Same.
4113         (floatsidf2): Same.
4114         ("extendsfdf2"): New expander.
4115         (*extendsfdf2_fpr): Rename.
4116         (*truncdfsf2_fpr): Same.
4117         (*negdf2_fpr): Same.
4118         (*absdf2_fpr): Same.
4119         (*nabsdf2_fpr): Same.
4120         (*adddf3_fpr): Same.
4121         (*subdf3_fpr): Same.
4122         (*muldf3_fpr): Same.
4123         (*divdf3_fpr): Same.
4125         * config/rs6000/spe.md ("spe_extendsfdf2"): Remove FIXME comment.
4126         ("spe_fix_truncdfsi2"): Same.
4127         (spe_floatunssidf2): Same.
4128         (spe_floatsidf2): Same.
4130 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
4132         PR c/18322
4133         * c-common.c (fname_decl): Don't use line number of decl in
4134         diagnostic.
4136 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
4138         * config/s390/s390-protos.h (s390_pool_operand): Remove.
4139         * config/s390/s390.c (s390_pool_operand): Likewise.
4140         (s390_extra_constraint_str): Handle 'B' constraints.
4141         * config/s390/s390.h (CONSTRAINT_LEN): Handle 'B' constraints.
4142         * config/s390/s390.md: Document 'B' constraints.
4143         ("*cmpdi_cct", "*cmpsi_cct"): Use 'B' constraint instead of
4144         s390_pool_operand to prevent insns with two literal pool
4145         references.  Make pattern commutative.
4146         ("*cmpdi_ccu", "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use
4147         'B' constraint instead of s390_pool_operand.
4149 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4151         * tree-cfg.c (create_bb): Remove unnecessary memset.
4153 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4155         * tree-ssa-threadupdate.c (copy_phis_to_block): Remove.
4156         (thread_block): Call flush_pending_stmt instead of
4157         copy_phis_to_block.
4159 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4161         * loop-iv.c (iv_number_of_iterations): Make it static.
4162         * cfgloop.h: Remove the corresponding prototype.
4164 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4166         * function.c (combine_temp_slots, assign_parms,
4167         expand_pending_sizes): Make them static.
4168         * tree.h: Remove the corresponding prototypes.
4170 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4172         * emit-rtl.c (copy_most_rtx): Remove.
4173         * rtl.h: Remove the corresponding prototype.
4175 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4177         * cfgloop.c (flow_loops_update): Remove.
4178         * cfgloop.h: Remove the corresponding prototype.
4180 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4182         * conflict.c (mark_reg, conflict_graph_compute): Remove.
4183         * basic-block.h: Remove the prototype for
4184         conflict_graph_compute.
4186 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4188         * tree-if-conv.c (add_to_dst_predicate_list): Change the
4189         second argument to basic_block.
4190         (tree_if_convert_cond_expr): Update call sites.
4192 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4194         * fold-const.c (pedantic_non_lvalue): Make it static.
4195         * tree.h: Remove the corresponding prototype.
4197 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4199         * optabs.c (prepare_operand): Make it static.
4200         * optabs.h: Remove the corresponding prototype.
4202 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4204         * reload1.c (reloads_conflict, gen_reload): Make them static.
4205         * reload.h: Remove the corresponding prototypes.
4207 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4209         * reload.c (refers_to_mem_for_reload_p,
4210         refers_to_regno_for_reload_p): Make them static.
4211         * reload.h: Remove the corresponding prototypes.
4213 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
4214             Eric Botcazou  <ebotcazou@libertysurf.fr>
4216         PR target/18230
4217         * doc/md.texi (SPARC constraints): Document 'Y' constraint.
4218         * config/sparc/sparc-modes.def: Add vector modes of 4 and 8 bytes.
4219         * config/sparc/sparc.c (sparc_vector_mode_supported_p): New function.
4220         (TARGET_VECTOR_MODE_SUPPORTED_P): Set to sparc_vector_mode_supported_p.
4221         (fp_zero_operand): Accept MODE_VECTOR_INT modes.
4222         (input_operand): Accept CONST_VECTOR with MODE_VECTOR_INT modes.
4223         (sparc_cannot_force_const_mem): Return false for CONST_VECTOR.
4224         (sparc_init_modes): Set sparc_mode_class to SF_MODE or DF_MODE for
4225         MODE_VECTOR_INT modes.
4226         (sparc_extra_constraint_check): Add new constraint 'Y'.
4227         * config/sparc/sparc.h: Define UNITS_PER_SIMD_WORD to 8 for TARGET_VIS.
4228         * config/sparc/sparc.md (V32): New mode macro for 32-bit modes.
4229         (V64): New mode macro for 64-bit modes.
4230         (movsf): Use V32 for mode instead of SF.
4231         (movsf_insn_vis): Use V32 for mode instead of SF.  Add 'Y' constraint
4232         alongside 'G' constraint.
4233         (movdf): Use V64 for mode instead of DF.
4234         (movdf_insn_v9only_vis, modf_insn_sp64_vis): Use V64 for mode instead
4235         of DF.  Add 'Y' constraint alongside 'G' constraint.
4236         (multi-isn and misaligned mems DFmode splitters): Use V64 for mode
4237         instead of DF.
4239 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
4241         * config/s390/s390.c (s390_select_ccmode): Return CCAPmode for
4242         integer NEG and ABS.
4243         * config/s390/s390.md ("*negdi2_64"): Fix op_type attribute.
4244         ("*negdi2_31"): Reimplement using a splitter.
4245         ("*negdi2_cc", "*negdi2_cconly"): New insns.
4246         ("*negdi2_sign", "*negdi2_sign_cc"): Likewise.
4247         ("*negsi2_cc", "*negsi2_cconly"): Likewise.
4248         ("*negdf2_cc", "*negdf2_cconly"): Likewise.
4249         ("*negsf2_cc", "*negsf2_cconly"): Likewise.
4250         ("*absdi2_cc", "*absdi2_cconly"): New insns.
4251         ("*absdi2_sign", "*absdi2_sign_cc"): Likewise.
4252         ("*abssi2_cc", "*abssi2_cconly"): Likewise.
4253         ("*absdf2_cc", "*absdf2_cconly"): Likewise.
4254         ("*abssf2_cc", "*abssf2_cconly"): Likewise.
4255         ("*negabsdi2_cc", "*negabsdi2_cconly"): New insns.
4256         ("*negabsdi2_sign", "*negabsdi2_sign_cc"): Likewise.
4257         ("*negabssi2_cc", "*negabssi2_cconly"): Likewise.
4258         ("*negabsdf2_cc", "*negabsdf2_cconly"): Likewise.
4259         ("*negabssf2_cc", "*negabssf2_cconly"): Likewise.
4261 2004-11-09  Ulrich Weigand  <uweigand@de.ibm.com>
4263         * config/s390/s390.c (s390_canonicalize_comparison): Reverse condition
4264         when eliminating an UNSPEC_CMPINT.
4265         (s390_secondary_input_reload_class): Fix test for CC register reload.
4266         (s390_secondary_output_reload_class): Likewise.
4267         (s390_expand_cmpmem): Swap operands.  Use gen_cmpint.
4268         * config/s390/s390.md ("*cmpint_si", "*cmpint_di"): Remove.
4269         ("cmpint", "*cmpint_cc", "*cmpint_sign", "*cmpint_sign_cc"): New
4270         insn patterns with splitters.
4272 2004-11-09  David Edelsohn  <edelsohn@gnu.org>
4274         * config/rs6000/rs6000.c (rs6000_rtx_costs): Add EQ, GTU, and LTU.
4275         * config/rs6000/rs6000.md (sCC): Split GTU and LTU patterns.
4277 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4279         * tree-phinodes.c (phi_reverse): New.
4280         * tree-cfg.c (tree_make_forwarder_block, tree_duplicate_bb):
4281         Use it.
4282         * tree-flow.h: Add a prototype for phi_reverse.
4284 2004-11-09  Kazu Hirata  <kazu@cs.umass.edu>
4286         * tree-ssa-loop-ivopts.c: Fix a comment typo.
4288 2004-11-09  James A. Morrison  <phython@gcc.gnu.org>
4290         PR pch/14940
4291         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __sparc__
4292         definitions.
4294 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
4296         * builtins.c, c-common.c, c-decl.c, c-format.c: Say "argument"
4297         instead of "arg" in diagnostics.
4299 2004-11-09  Joseph S. Myers  <joseph@codesourcery.com>
4301         * builtins.c, c-common.c, c-decl.c, c-format.c, c-format.h,
4302         c-parse.in, c-pch.c, c-pragma.c, collect2.c, final.c, gcc.c,
4303         gcov.c, opts.c, pretty-print.h, protoize.c, reg-stack.c, rtl.c,
4304         tlink.c, config/alpha/alpha.c, config/arc/arc.c, config/arm/arm.c,
4305         config/avr/avr.c, config/c4x/c4x.c, config/darwin.c,
4306         config/frv/frv.c, config/h8300/h8300.c, config/i386/i386.c,
4307         config/i386/winnt.c, config/ia64/ia64.c, config/ip2k/ip2k.c,
4308         config/iq2000/iq2000.c, config/m32r/m32r.c,
4309         config/m68hc11/m68hc11.c, config/m68k/m68k.c, config/m68k/m68k.h,
4310         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.c,
4311         config/ns32k/ns32k.c, config/rs6000/host-darwin.c,
4312         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
4313         config/sh/symbian.c, config/stormy16/stormy16.c,
4314         config/v850/v850.c: Avoid "`" as left quote, using "'" or %q, %<
4315         and %> as appropriate.  Use %' as apostrophe in diagnostics where
4316         applicable.  Use %< and %> in place of '' quotes where applicable.
4317         Use %qs in place of %<%s%>.  Consistently quote __builtin function
4318         names.
4320 2004-11-09  Hans-Peter Nilsson  <hp@bitrange.com>
4322         * gdbinit.in (pbb, pbm): New macros.
4324 2004-11-08 Jeff Law  <law@redhat.com>
4326         * cfg.c (redirect_edge_succ_nodup): Use find_edge rather than
4327         implementing it inline.
4329         * cfganal.c (find_edge): Search pred->succs or succ->preds,
4330         whichever is shorter.
4332 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4334         * passes.c (rest_of_handle_jump): Remove dead code.
4336 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4338         * tree-cfg.c (thread_jumps): Speed up by keeping a pointer to
4339         the last used element in the worklist.
4341 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4343         * tree-inline.c (remap_save_expr): Make it static.
4344         * tree-inline.h: Remove the corresponding prototype.
4346 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4348         * tree-ssa-loop-niter.c (upper_bound_in_type,
4349         lower_bound_in_type): Make them static.
4350         * tree.h: Remove the corresponding prototypes.
4352 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4354         * tree-ssa-live.c (tpa_init, pop_best_coalesce): Make them
4355         static.
4356         * tree-ssa-live.h: Remove the corresponding prototypes.
4358 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4360         * tree-if-conv.c (tree_if_conversion): Make it static.
4361         * tree-flow.h: Remove the corresponding prototype.
4363 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4365         * tree-ssa-operands.c (build_ssa_operands): Make it static.
4366         * tree-flow.h: Remove the corresponding prototype.
4368 2004-11-08  Andrew Pinski  <pinskia@physics.uc.edu>
4370         PR tree-opt/18299
4371         * tree-inline.c (copy_body_r): Change "t = t" to empty
4372         statement instead of "t".
4374 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4376         * modulo-sched.c (create_partial_schedule,
4377         free_partial_schedule, reset_partial_schedule,
4378         ps_add_node_check_conflicts, rotate_partial_schedule): Make
4379         them static.
4381 2004-11-08  Richard Henderson  <rth@redhat.com>
4383         * expmed.c (extract_force_align_mem_bit_field): Correct handling at
4384         the end of a page.
4386 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4388         * sched-deps.c (add_insn_mem_dependence): Make it static.
4389         * sched-int.h: Remove the corresponding prototypes.
4391 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4393         * flow.c (allocate_bb_life_data): Make it static.
4394         * basic-block.h: Remove the corresponding prototype.
4396 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4398         * calls.c (split_complex_values, split_complex_types): Make
4399         them static.
4400         * expr.h: Remove the corresponding prototypes.
4402 2004-11-08  Richard Earnshaw  <rearnsha@arm.com>
4404         * arm.c (arm_handle_notshared_attribute): Wrap declaration and use
4405         with #if TARGET_DLLIMPORT_DECL_ATTRIBUTES.
4407 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4409         * tree-if-conv.c (tree_if_convert_cond_expr): Remove two "if"
4410         statements that always trigger.
4412 2004-11-08  Kazu Hirata  <kazu@cs.umass.edu>
4414         * tree-cfg.c, tree-if-conv.c, tree-into-ssa.c,
4415         tree-scalar-evolution.c, tree-ssa-loop-im.c,
4416         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa.c,
4417         tree-vectorizer.c: Replace TREE_CHAIN with PHI_CHAIN where
4418         appropriate.
4420 2004-11-08  Ben Elliston  <bje@au.ibm.com>
4422         * cgraph.h (cgraph_calls_p): Remove.
4423         * cgraph.c (cgraph_calls_p): Likewise.
4425         * varray.h (varray_copy): Remove.
4426         * varray.c (varray_copy): Likewise.
4428 2004-11-07  Andrew Pinski  <pinskia@physics.uc.edu>
4430         PR target/18269
4431         * config/darwin.c (machopic_indirect_data_reference):
4432         Call gen_macho_high and gen_macho_low instead of
4433         checking the mode and calling gen_macho_high_di directly.
4434         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
4435         * config/rs6000/rs6000.md: Move most of TARGET_MACHO expand/insns
4436         to darwin.md.
4437         (movdf_low, movsf_low, movsf_low_st, movsi_low, macho_correct_pic,
4438         load_macho_picbase, macho_low, macho_high): Removed.
4439         (builtin_setjmp_receiver): Call gen_macho_high and
4440         gen_macho_low instead of checking the mode and calling
4441         gen_macho_high_di directly.
4442         * config/rs6000/darwin.md (load_macho_picbase_di): Use the MD constant.
4443         (movdf_low_si, movsf_low_si, movsf_low_st_si, movsi_low_st):
4444         Moved from rs6000.md.
4445         (macho_high): New expander.
4446         (macho_high_si): Renamed version of macho_high from rs6000.md.
4447         (macho_low): New expander.
4448         (macho_low_si): Renamed version of macho_low from rs6000.md.
4449         (load_macho_picbase): New expander.
4450         (load_macho_picbase_si): Renamed version of load_macho_picbase
4451         from rs6000.md.
4452         (macho_correct_pic): New expander.
4453         (macho_correct_pic_si): Renamed version of macho_correct_pic
4454         from rs6000.md.
4456 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
4458         * c-decl.c (finish_struct): Use complete sentences for diagnostic
4459         for structures or unions with no members or named members.
4461 2004-11-07  Joseph S. Myers  <joseph@codesourcery.com>
4463         * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
4464         taking address of bit-field by assertion.
4466 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
4468         * config/s390/s390.md (attribute "op_type"): Default to "NN".
4469         (attribute "atype"): Default to "agen".
4470         (attribute "length"): Default to 6.
4471         (define_asm_attibutes): Remove.
4472         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
4473         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf",
4474         "*clc", "*mvc", "*nc", "*oc", "*xc", "*xc_zero"):
4475         Do not set type attribute to "cs" where already default.
4476         ("*cmpint_si", "*cmpint_di", "fix_truncdfsi2_ibm", "floatsidf2_ibm",
4477         "*negdi2_31"):
4478         Do not set type attribute to "other" where already default.
4479         ("movti", "*movdi_64", "*movdi_31", "*movdf_31",
4480         "*strlendi", "*strlensi",
4481         "*movmem_long_64", "*movmem_long_31",
4482         "*clrmem_long_64", "*clrmem_long_31",
4483         "*cmpmem_long_64", "*cmpmem_long_31",
4484         "*cmpint_si", "*cmpint_di",
4485         "addti3", "*adddi3_31z", "*adddi3_31",
4486         "subti3", "*subdi3_31z", "*subdi3_31", "*negdi2_31",
4487         "*sconddi", "*scondsi", "*sconddi_neg", "*scondsi_neg",
4488         "fix_truncdfsi2_ibm", "floatsidf2_ibm", "extendsfdf2_ibm",
4489         "*pool_entry", "pool_align", "pool_section_start",
4490         "pool_section_end", "main_pool", "reload_base_31", "pool"):
4491         Do not set op_type attribute to "NN" where already default.
4492         ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
4493         "*zero_extendqisi2_31", "*zero_extendqihi2_31",
4494         "fix_truncdfsi2_ibm", "floatsidf2_ibm"):
4495         Do not set atype attribute to "agen" where already default.
4496         ("*movmem_short", "*clrmem_short", "*cmpmem_short"): Don't set op_type.
4498 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
4500         * config/mips/t-iris6 (tp-bit.c): Fix target filename.
4502 2004-11-06  Richard Sandiford  <rsandifo@redhat.com>
4504         PR target/16830
4505         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Don't define the
4506         R3000 and R4000 macros on IRIX.
4508 2004-11-06  Andreas Schwab  <schwab@suse.de>
4510         PR target/16286
4511         * config/rs6000/altivec.h: Replace bool by __bool and pixel by
4512         __pixel.
4514 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4516         * tree-ssa-copyrename.c (rename_ssa_copies): Make it static.
4518 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
4520         * config/s390/2064.md ("z_int", "z_agen"): Ensure the condition
4521         matches no insns already matched by other reservations.
4522         * config/s390/2084.md ("x_int", "x_agen"): Ensure the condition
4523         matches no insns already matched by other reservations.
4524         ("x_ss"): Remove, replace by ...
4525         ("x_cs"): ... this new reservation.  Check type instead of op_type.
4526         Update bypasses to use x_cs instead of x_ss.
4527         ("x_nn"): Remove, replace by ...
4528         ("x_other"): ... this new reservation.  Check type instead of op_type.
4529         Add x_other and x_branch to bypasses.
4530         ("x_vs"): New reservation.
4531         * config/s390/s390.md (attribute "type"): Default according to op_type.
4532         ("*execute"): Set type to "cs".
4534 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4536         * fold-const.c (non_lvalue): Don't construct NON_LVALUE_EXPR
4537         if we are in GIMPLE.
4539 2004-11-06  Hans-Peter Nilsson  <hp@bitrange.com>
4541         PR rtl-optimization/17933
4542         * rtlanal.c (dead_or_set_regno_p): Break out common code to...
4543         (covers_regno_p): New function.  Handle SETs of PARALLEL,
4544         and defer the rest to...
4545         (covers_regno_no_parallel_p): New function.
4547 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4549         * config/sparc/sparc.c (function_arg_record_value_1): Skip
4550         fields with zero length.
4551         (function_arg_record_value_2): Likewise.
4552         (function_arg_record_value_3): Use smallest_mode_for_size
4553         instead of mode_for_size.
4554         (function_arg_union_value): Return naked register for unions
4555         with zero length.
4557 2004-11-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
4559         * config/sparc/sparc.c (scan_record_type): Handle vector types.
4560         (function_arg_slotno): Handle vector types specially.
4561         (function_arg_record_value_1): Split fields with vector type and
4562         BLKmode into their subparts.
4563         (function_arg_record_value_2): Likewise.  Be prepared to handle
4564         more than 2 registers per field.
4565         (function_arg_union_value): Increment regno inside the loop.
4566         (function_arg_vector_value): New function.
4567         (function_arg): Use it to split fields with vector type and
4568         BLKmode into their subparts and build a PARALLEL.  Treat
4569         other vector types like floats.
4570         (function_value): Likewise.
4571         (sparc_pass_by_reference): Handle vector types.
4572         (sparc_return_in_memory): Likewise.
4574 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4576         * tree-cfg.c (find_taken_edge_cond_expr): Remove an "if"
4577         statement that never triggers.
4579 2004-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
4581         * config/s390/2064.md ("z_o2", "z_o3"): Remove.
4582         * config/s390/2084.md ("x_o2", "x_o3"): Remove.
4583         ("x_fdivd"): Use also for fsqrtd type.
4584         ("x_fdivs"): Use also for fsqrts type.
4585         * config/s390/s390.md (attribute "type"): Remove "o2" and "o3" types.
4586         ("fix_truncdfsi2_ieee"): Set type to "ftoi".
4587         ("fix_truncdfsi2_ibm"): Set type to "other".
4588         ("floatdidf2", "floatdisf2"): Do not clobber CC.
4589         ("floatsidf2", "floatsidf2_ieee"): Likewise.
4590         ("floatsisf2", "floatsisf2_ieee"): Likewise.
4591         ("truncdfsf2", "truncdfsf2_ieee"): Only allow "register_operand".
4592         ("truncdfsf2_ibm"): Only allow "nonimmediate_operand".  Use LER
4593         instead of LRER.
4594         ("extendsfdf2_ibm"): Do not set atype.  Set type to "floads".
4595         ("sqrtdf2"): Set type to "fsqrtd".
4596         ("sqrtsf2"): Set type to "fsqrts".
4598 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4600         * tree-phinodes.c (remove_all_phi_nodes_for): Speed up using a
4601         pointer to the last PHI node in the new PHI chain.
4603 2004-11-06  Kaz Kojima  <kkojima@gcc.gnu.org>
4605         * config/sh/sh.c (prepare_move_operands): Emit a use of r12
4606         for non-PIC TLS_MODEL_INITIAL_EXEC case.
4608 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4610         * expmed.c: Fix a comment typo.
4612 2004-11-06  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
4614         PR target/18106
4615         * config/i386/cygming.h
4616         [HAVE_GAS_WEAK] (ASM_WEAKEN_LABEL): Macro defined.
4618 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4620         * config/sh/sh4a.md: Fix copyright.
4622 2004-11-06  Kazu Hirata  <kazu@cs.umass.edu>
4624         * config/rs6000/darwin.md, config/sh/sh4a.md: Replace GNU CC
4625         with GCC.
4627 2004-11-05  David Edelsohn  <edelsohn@gnu.org>
4629         * config/rs6000/rs6000.md (scc patterns): Replace subfc with subf
4630         when carry not used.  Suggested by Torbjorn Granlund.
4632         * config/rs6000/rs6000.c (rs6000_emit_move): Don't force_reg
4633         operand[1] unnecessarily.  Suggested by Eric Christopher.
4634         (rs6000_adjust_cost): Increase latency of store to wider load.
4635         (rs6000_rtx_costs): mulli only allows 16-bit constants.
4637 2004-11-05  Stan Shebs  <shebs@apple.com>
4639         * config/rs6000/rs6000.c (machopic_output_stub): Output
4640         ldu instead of lwzu for 64-bit stubs.
4642 2004-11-05  Richard Henderson  <rth@redhat.com>
4644         * config/alpha/alpha.c (alpha_expand_unaligned_load): Special case
4645         size 2 with BWX.
4646         (alpha_expand_unaligned_store): Likewise.
4648 2004-11-05  Richard Henderson  <rth@redhat.com>
4650         * expmed.c (extract_force_align_mem_bit_field): New.
4651         (extract_split_bit_field): Call it.
4653 2004-11-05  Richard Henderson  <rth@redhat.com>
4655         * ia64.md (UNSPEC_SHRP): New.
4656         (dshift_count_operand): New.
4657         (ashrti3, ashrti3_internal, lshrti3, lshrti3_internal, shrp): New.
4658         * ia64.c (rtx_needs_barrier): Handle UNSPEC_SHRP.
4660 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
4662         * c-typeck.c (output_init_element): Return early if value is
4663         error_mark_node.
4665 2004-11-05  James E Wilson  <wilson@specifixinc.com>
4667         * invoke.texi (-fno-guess-branch-probability): Rewrite.
4669         * config/ia64/ia64.c (rtx_needs_barrier, case UNSPEC_GR_SPILL): Change
4670         1 to UNSPEC_GR_SPILL.
4672 2004-11-05  Andreas Krebbel  <krebbel1@de.ibm.com>
4674         * config/s390/s390.c (s390_fixed_condition_code_regs): New function.
4675         (TARGET_FIXED_CONDITION_CODE_REGS): Macro defined.
4677 2004-11-05  Nathan Sidwell  <nathan@codesourcery.com>
4679         * bitmap.h (enum bitmap_bits): Remove.
4680         (bitmap_operation): Remove.
4681         (bitmap_and, bitmap_and_into, bitmap_and_compl,
4682         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
4683         bitmap_xor_into): Prototype.
4684         * bitmap.c (bitmap_elt_insert_after, bitmap_elt_clear_from): New.
4685         (bitmap_operation): Remove.
4686         (bitmap_and, bitmap_and_into, bitmap_and_compl,
4687         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into, bitmap_xor,
4688         bitmap_xor_into): New.
4689         (bitmap_ior_and_compl, bitmap_ior_and_compl_into): Adjust.
4691         PR tree-optimization/18307
4692         * tree-ssa-alias.c (merge_pointed_to_info): Protected against DEST
4693         and ORIG being the same node.
4695 2004-11-04  Geoffrey Keating  <geoffk@apple.com>
4697         * Makefile.in (distclean): Don't delete nonexistent fixinc/ directory.
4698         (install-mkheaders): Install the version built for the
4699         host, not for the build machine.
4700         * configure.ac: Always run fixincludes.
4701         (all_outputs): Remove mkheaders.
4702         * configure: Regenerate.
4703         * fixinc.in: Move to fixincludes/.
4704         * mkfixinc.sh: Likewise.
4705         * mkheaders.in: Likewise.
4706         * README-fixinc: Likewise.
4708 2004-11-05  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
4710         PR target/18263
4711         * config/arc/lib1funcs.asm (___umulsidi3): Change use of cmp to the
4712         equivalent on the A4.
4714 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
4716         * doc/c-tree.texi, doc/cfg.texi, doc/contrib.texi, doc/cpp.texi,
4717         doc/cppopts.texi, doc/extend.texi, doc/fragments.texi,
4718         doc/frontends.texi, doc/gcov.texi, doc/hostconfig.texi,
4719         doc/implement-c.texi, doc/install.texi, doc/invoke.texi,
4720         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
4721         doc/portability.texi, doc/rtl.texi, doc/sourcebuild.texi,
4722         doc/standards.texi, doc/tm.texi, doc/tree-ssa.texi,
4723         doc/trouble.texi: Correct end-of-sentence markup and markup of
4724         "etc.", "e.g." and "i.e.".  Use @code in various places where
4725         appropriate.
4727 2004-11-05  Joseph S. Myers  <joseph@codesourcery.com>
4729         * doc/c-tree.texi, doc/cfg.texi, doc/extend.texi, doc/gty.texi,
4730         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/passes.texi,
4731         doc/rtl.texi, doc/tm.texi, doc/tree-ssa.texi: Remove trailing
4732         whitespace.
4734 2004-11-04  Mark Mitchell  <mark@codesourcery.com>
4736         * config/arm/arm.c (arm_handle_notshared_attribute): New function.
4737         * doc/extend.texi: Document "notshared" attribute.
4739 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4741         * tree-phinodes.c (make_phi_node): Make it static.
4742         * tree.h: Remove the prototypes for make_phi_node.
4744 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4746         * stmt.c (expand_asm, expand_asm_operands): Make them static.
4747         * tree.h: Remove the prototypes for expand_asm and
4748         expand_asm_operands.
4750 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4752         * passes.c (rest_of_compilation): Make it static.
4753         * toplev.h: Remove the prototype for rest_of_compilation.
4755 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4757         * jump.c (cleanup_barriers): Use delete_insn instead of
4758         delete_barrier.
4759         (delete_barrier): Remove.
4760         * rtl.h: Remove the corresponding prototype.
4762 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4764         * expr.c (mostly_zero_p): Make it static.
4765         * tree.h: Remove the prototype for mostly_zeros_p.
4767 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4769         * cfgrtl.c (force_nonfallthru_and_redirect): Make it static.
4771 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4773         * builtins.c (expand_builtin_return_addr,
4774         expand_builtin_longjmp, expand_builtin_trap): Make them static.
4775         * expr.h: Remove the prototypes for expand_builtin_longjmp and
4776         expand_builtin_trap.
4777         * tree.h: Remove the prototype for expand_builtin_return_addr.
4779 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4781         * tree-cfg.c (find_taken_edge): Reject VAL begin NULL.
4782         * tree-ssa-ccp.c (visit_cond_stmt): Don't call find_taken_edge
4783         with VAL being NULL.
4785 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4787         * cfghooks.c (delete_basic_block): Remove code to truncate
4788         edge vectors.
4790 2004-11-04  Andrew Pinski  <pinskia@physics.uc.edu>
4792         * flow.c (init_propagate_block_info): Change the type of i to
4793         unsigned.
4795 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
4797         PR tree-optimization/18184
4798         * c-typeck.c (comptypes): Do not treat pointers of different
4799         modes or alias-all flags as equivalent.
4800         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Likewise.
4802 2004-11-04  Joseph S. Myers  <joseph@codesourcery.com>
4804         * doc/gty.texi, doc/makefile.texi, doc/sourcebuild.texi: Don't
4805         reference specific C parser files in examples.
4807 2004-11-04  Richard Sandiford  <rsandifo@redhat.com>
4809         PR target/15342
4810         * regrename.c (scan_rtx): Treat the destinations of SETs and CLOBBERs
4811         as OP_INOUT if the instruction is predicated.
4813 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4815         * bitmap.h: Fix a comment typo.  Follow spelling conventions.
4816         * tree-vectorizer.c: Fix a comment typo.
4818 2004-11-04  Kazu Hirata  <kazu@cs.umass.edu>
4820         * sdbout.c (SDB_GENERATE_FAKE): Remove.
4821         (gen_fake_label): Don't use SDB_GENERATE_FAKE.
4822         * system.h: Poison SDB_GENERATE_FAKE.
4823         * doc/tm.texi (SDB_GENERATE_FAKE): Remove.
4825 2004-11-04  Ulrich Weigand  <uweigand@de.ibm.com>
4827         * config/s390/s390.md ("*addsi3_sign"): Use canonical RTL.
4829 2004-11-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
4831         PR other/18277
4832         * gthr-posix.h (__gthread_recursive_mutex_init_function): Revert
4833         2004-10-29 patch
4835 2004-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4837         * predict.c (propagate_freq): Make bitno unsigned. Move
4838         npredecessors update out of loop.
4840         * bitmap.h (bitmap_iterator): Remove word_bit and bit
4841         fields. Rename others.
4842         (bmp_iter_common_next_1, bmp_iter_single_next_1,
4843         bmp_iter_single_init, bmp_iter_end_p, bmp_iter_single_next,
4844         bmp_iter_and_not_next_1, bmp_iter_and_not_init,
4845         bmp_iter_and_not_next, bmp_iter_and_next_1, bmp_iter_and_init,
4846         bmp_iter_and_next): Remove.
4847         (bmp_iter_set_init, bmp_iter_and_init, bmp_iter_and_compl_init,
4848         bmp_iter_next, bmp_iter_set, bmp_iter_and, bmp_iter_and_compl):
4849         New.
4850         (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_IN_BITMAP,
4851         EXECUTE_IF_AND_COMPL_IN_BITMAP): Adjust.
4853         * bitmap.h (bitmap_a_or_b, bitmap_a_and_b): Remove.
4854         * df.c (dataflow_set_a_op_b): Use bitmap_and, bitmap_ior,
4855         bitmap_and_into, bitmap_ior_into as appropriate.
4856         * except.c (remove_eh_handler): Likewise.
4857         * global.c (modify_bb_reg_pav, make_accurate_live_analysis): Likewise.
4858         * tree-dfa.c (mark_new_vars_to_rename): Likewise.
4859         * tree-ssa-alias.c (merge_pointed_to_info): Likewise.
4860         * tree-ssa-live.h (live_merge_and_clear): Likewise.
4861         * tree-ssa-loop-ivopts.c (find_best_candidate, try_add_cand_for):
4862         Likewise.
4864         * bitmap.c (bitmap_print): Make bitno unsigned.
4865         * bt-load.c (clear_btr_from_live_range,
4866         btr_def_live_range): Likewise.
4867         * caller-save.c (save_call_clobbered_regs): Likewise.
4868         * cfganal.c (compute_dominance_frontiers_1): Likewise.
4869         * cfgcleanup.c (thread_jump): Likewise.
4870         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
4871         * conflict.c (conflict_graph_compute): Likewise.
4872         * ddg.c (add_deps_for_use): Likewise.
4873         * df.c (df_refs_update): Likewise.
4874         * except.c (remove_eh_handler): Likewise.
4875         * flow.c (verify_local_live_at_start, update_life_info,
4876         initialize_uninitialized_subregs, propagate_one_insn,
4877         free_propagate_block_info, propagate_block, find_use_as_address,
4878         reg_set_to_hard_reg_set): Likewise.
4879         * gcse.c (clear_modify_mem_tables): Likewise.
4880         * global.c (global_conflicts, build_insn_chain): Likewise.
4881         * ifcvt.c (dead_or_predicable): Likewise.
4882         * local-alloc.c (update_equiv_regs): Likewise.
4883         * loop.c (load_mems): Likewise.
4884         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs):
4885         Likewise.
4886         * ra-rewrite.c (reloads_to_loads, rewrite_program2, actual_spill):
4887         Likewise.
4888         * reload1.c (order_regs_for_reload, finish_spills): Likewise.
4889         * sched-deps.c (sched_analyze_insn, free_deps): Likewise.
4890         * sched-rgn.c (propagate_deps
4891         * tree-cfg.c (tree_purge_all_dead_eh_edges): Likewise.
4892         * tree-dfa.c (dump_dfa_stats
4893         tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
4894         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags):
4895         Likewise.
4896         * tree-outof-ssa.c (coalesce_ssa_name, coalesce_vars,
4897         free_temp_expr_table, find_replaceable_exprs): Likewise.
4898         * tree-sra.c (scan_function, scalarize_parms): Likewise.
4899         * tree-ssa-alias.c (init_alias_info,
4900         compute_points_to_and_addr_escape,
4901         compute_flow_sensitive_aliasing, maybe_create_global_var): Likewise.
4902         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Likewise.
4903         * tree-ssa-live.c (new_tree_live_info, live_worklist,
4904         calculate_live_on_entry, calculate_live_on_exit, compare_pairs,
4905         sort_coalesce_list, build_tree_conflict_graph, dump_live_info
4906         tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
4907         tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
4908         add_call_read_ops): Likewise.
4909         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Likewise.
4910         * tree-ssa-live.h (num_var_partitions): Return unsigned.
4912 2004-11-03  Dorit Naishlos  <dorit@il.ibm.com>
4914         PR tree-optimization/18009
4915         * tree-vectorizer.h (enum dr_alignment_support): New type.
4916         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): Removed.
4917         (LOOP_UNALIGNED_DR): replaced with LOOP_VINFO_UNALIGNED_DR and holds a
4918         single data_reference (instead of a varray of references).
4919         * tree-vectorizer.c (new_loop_vec_info): Likewise.
4920         (vect_gen_niters_for_prolog_loop): Likewise.
4921         (vect_update_inits_of_drs): Likewise.
4923         (vect_update_inits_of_drs): Setting of DR_MISALIGNMENT moved to
4924         vect_enhance_data_refs_alignment.
4925         (vect_do_peeling_for_alignment): Likewise.
4926         (vect_enhance_data_refs_alignment): Decide if and by how much to peel;
4927         this functionality used to be in vect_analyze_data_refs_alignment.
4928         Also update DR_MISALIGNMENT due to peeling; this functionality used to
4929         be in vect_update_inits_of_drs and vect_do_peeling_for_alignment).
4930         (vect_analyze_data_refs_alignment): Decision on whether and by how much
4931         to peel moved to vect_enhance_data_refs_alignment. Call
4932         vect_supportable_dr_alignment.
4934         (vect_compute_data_ref_alignment): Set STMT_VINFO_VECTYPE.
4935         (vect_compute_data_refs_alignment): Return bool. Consider return value
4936         of vect_compute_data_ref_alignment and return true/false accordingly.
4937         (vect_enhance_data_refs_alignment): Consider return value of
4938         vect_compute_data_refs_alignment and return true/false accordingly.
4940         (vect_supportable_dr_alignment): New function.
4941         (vectorizable_store): Call vect_supportable_dr_alignment.
4942         (vectorizable_load): Call vect_supportable_dr_alignment. Alignment
4943         support checks moved from here to vect_supportable_dr_alignment.
4945         (vect_transform_loop): Avoid 80 columns overflow.
4947 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
4949         * timevar.c (timevar_enable): Change from
4950         static.
4951         (timevar_push): Rename to ...
4952         (timevar_push_1): this and remove the
4953         enabled check.
4954         (timevar_pop): Rename to ...
4955         (timevar_pop_1): this and remove the
4956         enabled check.
4957         * timevar.h (POP_TIMEVAR_AND_RETURN): Use do/while loops.
4958         (timevar_pop): New macro.
4959         (timevar_push): New macro.
4960         (timevar_enable): Declare.
4962 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
4964         * config/darwin.h (REAL_LIBGCC_SPEC): Define to use shared
4965         libgcc for shared libraries.
4967 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
4969         * config/s390/s390-protos.h (s390_split_access_reg): Add prototype.
4970         * config/s390/s390.c (s390_split_access_reg): New function.
4971         (regclass_map): Add access registers.
4972         (get_thread_pointer): Use access register instead of UNSPEC_TP.
4973         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Set to 38.
4974         (ACCESS_REGNO_P, ACCESS_REG_P): New macros.
4975         (TP_REGNUM): New define.
4976         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
4977         REG_ALLOC_ORDER): Add access registers.
4978         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK, CLASS_MAX_NREGS,
4979         CANNOT_CHANGE_MODE_CLASS): Support access registers.
4980         (enum reg_class): Add ACCESS_REGS.
4981         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Likewise.
4982         (REG_CLASS_FROM_LETTER): Add 't' constraint.
4983         (REGISTER_NAMES): Add access registers.
4984         * config/s390/s390.md (UNSPEC_TP): Remove.
4985         ("*movdi_64"): Add access register alternatives.  Provide splitters
4986         to split DImode access register <-> GPR moves into SImode moves.
4987         ("*movsi_zarch", "*movsi_esa"): Add access register alternatives.
4988         ("movstrictsi"): Likewise.
4989         ("get_tp_64", "get_tp_31"): Reimplement using access registers.
4990         ("set_tp_64", "set_tp_31"): Likewise.
4991         ("*set_tp"): New insn.
4993 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
4995         * tree-phinodes.c (resize_phi_node): Copy only a portion of
4996         the PHI node currently in use.
4998 2004-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
5000         PR tree-opt/18231
5001         * tree.c (staticp) <case FUNCTION_DECL>: Nested functions are static
5002         also.
5004 2004-11-03  Andrew MacLeod  <amacleod@redhat.com>
5006         PR tree-optimization/18270
5007         * tree-outof-ssa.c (analyze_edges_for_bb): If a block has incoming
5008         abnormal edges, commit all pending stmts on incoming edges.
5010 2004-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
5012         * tree-ssa-loop-ivopts.c (get_address_cost): Offset zero does not
5013         cause extra costs.  Generate canonical RTL.
5015 2004-11-02  Daniel Berlin  <dberlin@dberlin.org>
5017         * lambda-code.c (lambda_compute_auxillary_space): Update comments.
5018         (lambda_compute_target_space). Ditto.
5019         * lambda.h (lambda_trans_matrix): Ditto.
5020         (lambda_linear_expression): Ditto.
5021         (lambda_body_vector): Ditto.
5022         (lambda_loopnest): Ditto.
5023         * tree-loop-linear.c (gather_interchange_stats): Combine tests,
5024         update comments, and remove pointless addition of 0.
5025         (linear_transform_loops): Update comments.
5027 2004-11-03  Sebastian Pop  <pop@cri.ensmp.fr>
5029         * tree.c (tree_fold_gcd): Use FLOOR_MOD_EXPR instead of
5030         CEIL_MOD_EXPR.
5032 2004-11-03 Jeff Law  <law@redhat.com>
5034         * predict.c (struct block_info_def): Kill "tovisit" field.
5035         (propagate_freq): Accept new "tovisit" parameter.  Change
5036         read/write access methods for "tovisit" to check the "tovisit"
5037         bitmap instead of a bit in block_info_def.
5038         (estimate_loops_at_level): Allocate "tovisit" bitmap.  Pass
5039         it to propagate_freq.
5041         * stmt.c (expand_case): Speed up code to detect duplicate case
5042         label targets and count unique case label targets.
5044 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
5046         * cppdefault.c, cppdefault.h, timevar.h: Update copyright.
5048 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
5050         * bitmap.h, dbxout.c, tree-mudflap.c: Fix comment formatting.
5052 2004-11-03  Kazu Hirata  <kazu@cs.umass.edu>
5054         * tree-cfg.c (find_taken_edge): Abort if we are given a
5055         statement that is neither COND_EXPR nor SWITCH_EXPR.
5057 2004-11-02  Zdenek Dvorak  <dvorakz@suse.cz>
5059         * fold-const.c (fold): Reassociate also (x - mult) + mult and
5060         (mult - x) + mult.  Cast operands of expression after applying
5061         distributive law to the correct types.  Apply distributive law
5062         to a * c - b * c for all non-float types.
5064 2004-11-02  Geoffrey Keating  <geoffk@apple.com>
5066         * configure.ac: Don't clear STMP_FIXINC or STMP_FIXPROTO just
5067         because we don't want to run them now; instead, set them to
5068         stmp-install-fixproto or stmp-install-fixinc.
5069         * Makefile.in (stmp-install-fixproto): New.
5070         (stmp-install-fixinc): New.
5071         * configure: Regenerate.
5073 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
5075         * flow.c (init_propagate_block_info): Use bitmap_empty_p on result
5076         of bitmap_xor.
5078 2004-11-02  Ziemowit Laski  <zlaski@apple.com>
5080         * c-lang.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Remove.
5081         (c_types_compatible_p): Move function definition...
5082         * c-objc-common.c (c_types_compatible_p): ...here.
5083         * c-objc-common.h (LANG_HOOKS_TYPES_COMPATIBLE_P): Moved here from
5084         c-lang.c.
5086 2004-11-02  Steven Bosscher  <stevenb@suse.de>
5088         * cfgloop.h (struct loop): Update comment.
5089         * cse.c (cse_main): Remove obsolete comment.
5091         * expr.h (gen_cond_trap): Move prototype under functions provided
5092         by optabs.c.
5093         (canonicalize_condition, get_condition): Move to...
5094         * rtl.h (canonicalize_condition, get_condition): ...here.
5095         (branch_target_load_optimize): Add comment that this function is
5096         in bt-load.c.
5097         * loop.c (canonicalize_condition, get_condition): Move to...
5098         * rtlanal.c (canonicalize_condition, get_condition): ...here.
5099         * sched-deps.c (get_condition): Rename to sched_get_condition.
5100         (add_dependence): Update this caller.
5102 2004-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
5104         PR tree-opt/16808
5105         * tree-ssa.c (replace_immediate_uses): If we call fold_stmt, make sure
5106         that the vops get marked for renaming.
5108 2004-11-02  Andreas Krebbel  <krebbel1@de.ibm.com>
5110         * config/s390/s390.md ("movcc"): Set type attribute.
5112 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
5114         * tree-phinodes.c (add_phi_arg): Add an assertion that the
5115         edge already exists.
5117 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
5119         * tree-phinodes.c (remove_phi_arg_num): Do not zero the
5120         element that's being removed.
5122 2004-11-02  Kazu Hirata  <kazu@cs.umass.edu>
5124         * tree-ssa-threadupdate.c (copy_phis_to_block): Install PHI
5125         arguments using PENDING_STMT.
5126         (thread_block): Call copy_phis_to_block after redirecting an
5127         edge.
5129 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
5131         * bitmap.h (bitmap_and, bitmap_and_into, bitmap_and_compl,
5132         bitmap_and_compl_into, bitmap_ior, bitmap_iot_into,
5133         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): Produce void.
5134         (bitmap_ior_and_compl_into): Produce bool.
5135         (bitmap_union_of_diff): Rename to ...
5136         (bitmap_ior_and_compl): ... here. Produce bool.
5137         * bitmap.c (bitmap_ior_and_compl_into): Return bool. Use
5138         bitmap_operation directly.
5139         (bitmap_union_of_diff): Rename to ...
5140         (bitmap_ior_and_compl): ... here. Return bool, use
5141         bitmap_operation directly.
5142         * df.c (df_rd_transfer_function): Use bitmap_ior_and_compl.
5143         (df_ru_transfer_function, df_lr_transfer_function): Likewise.
5144         * global.c (modify_bb_reg_pav): Likewise.
5146         * bitmap.h (bitmap_equal_p): Return bool.
5147         (bitmap_intersect_p, bitmap_intersect_compl_p): Declare.
5148         * bitmap.c (bitmap_equal_p): Return bool. Compare directly.
5149         (bitmap_intersect_p, bitmap_intersect_compl_p): New.
5150         * flow.c (calculate_global_regs_live): Use bitmap_intersect_p and
5151         bitmap_intersect_compl_p.
5152         * ifcvt (dead_or_predicable): Likewise.
5154 2004-11-02  Nathan Sidwell  <nathan@codesourcery.com>
5156         PR rtl-optimization/17104
5157         * config/rs6000/rs6000.c (rs6000_emit_move): Don't wrap small
5158         loads in zero_extend.
5160 2004-11-02  Danny Smith  <dannysmith@users.sourceforge.net>
5162         PR debug/18242
5163         * toplev.c (debug_type_names): Remove "dwarf-1".
5165 2004-11-02  Ben Elliston  <bje@au.ibm.com>
5167         * timevar.h (timevar_get): Remove.
5168         * timevar.c (timevar_get): Remove unused function.
5170 2004-11-02  Joseph S. Myers  <joseph@codesourcery.com>
5172         * doc/include/texinfo.tex: Update from Texinfo CVS.
5174 2004-11-02  Ben Elliston  <bje@au.ibm.com>
5176         * cppdefault.h (cpp_SYSROOT): Remove.
5177         * cppdefault.c (cpp_SYSROOT): Likewise.
5179 2004-11-01  Andrew MacLeod  <amacleod@redhat.com>
5181         PR tree-optimization/16447
5182         * tree-cfg.c (bsi_commit_one_edge_insert): Rename from
5183         bsi_commit_edge_inserts_1, and make funtion external.  Return new block.
5184         (bsi_commit_edge_inserts): Use renamed bsi_commit_one_edge_insert.
5185         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Enable listing.
5186         * tree-flow.h (bsi_commit_one_edge_insert): Extern decl.
5187         * tree-outof-ssa.c (rewrite_trees): Don't commit edges here.
5188         (same_stmt_list_p): New.  Return TRUE if edge is to be forwarded.
5189         (identical_copies_p): New.  Return true is two copies are the same.
5190         (identical_stmt_lists_p): New.  Return true if stmt lists are the same.
5191         (analyze_edges_for_bb): New.  Determine how best to insert edge stmts
5192         for a basic block.
5193         (perform_edge_inserts): New.  Determine what to do with all stmts that
5194         have been inserted on edges.
5195         (remove_ssa_form):  Analyze and commit edges from here.
5197 2004-11-01  Andrew Pinski  <pinskia@physics.uc.edu>
5199         PR bootstrap/18232
5200         * bitmap.h (bmp_iter_end_p): Take a const pointer instead of a struct.
5201         (EXECUTE_IF_SET_IN_BITMAP): Update call to bmp_iter_end_p.
5202         (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
5203         (EXECUTE_IF_AND_IN_BITMAP): Likewise.
5205 2004-11-01  Joseph S. Myers  <joseph@codesourcery.com>
5207         PR c/18239
5208         * c-decl.c (get_parm_info): Allow FUNCTION_DECLs to appear amongst
5209         parameter declarations.
5211 2004-11-01  Andreas Krebbel  <krebbel1@de.ibm.com>
5213         * config/s390/s390.c (regclass_map): Put reg 33 (cc) to CC_REGS group.
5214         (s390_secondary_input_reload_class)
5215         (s390_secondary_output_reload_class): Use GENERAL_REGS to reload a cc
5216         register.
5217         (s390_expand_cmpmem): Enable cmpmem implementation.
5218         * config/s390/s390.h (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS):
5219         Added three new classes: CC_REGS, ADDR_CC_REGS, GENERAL_CC_REGS.
5220         (REG_CLASS_FROM_LETTER): New constraint 'c' added.
5221         * config/s390/s390.md ("movcc"): New insn pattern.
5222         * doc/md.texi: Document 'c' constraint for s390.
5224 2004-11-01  Nathan Sidwell  <nathan@codesourcery.com>
5226         PR c++/18064
5227         * doc/extend.texi (Deprecated Features): Deprecate G++ covariant
5228         extension.
5230 2004-10-16  Daniel Berlin  <dberlin@dberlin.org>
5232         Fix PR tree-optimization/17672
5233         Fix PR tree-optimization/18168
5235         * lambda-code.c (lambda_lattice_compute_base): Fix reversed
5236         assert test.
5237         (gcc_tree_to_linear_expression): Add extra to existing constant.
5238         (depth_of_nest): Factor out function used in various places.
5239         (gcc_loop_to_lambda_loop): Clean up code a little bit. No
5240         functional changes.
5241         (find_induction_var_from_exit_cond): Stop guessing, and just
5242         get the right answer :).
5243         (gcc_loopnest_to_lambda_loopnest): Remove useless pre-allocation.
5244         Print out message about result of attempt to create perfect nest.
5245         (lbv_to_gcc_expression): Add type argument, use it to do math
5246         and induction variable creation.
5247         (lle_to_gcc_expression): Ditto.
5248         (lambda_loopnest_to_gcc_loopnest): Create new iv with same type as
5249         oldiv. Pass type argument to lle_to_gcc_expression and
5250         lbv_to_gcc_expression.
5251         Reset number of iterations after transformation.
5252         (perfect_nestify): Remove useless pre-allocation, and cleanup
5253         a small amount.
5255         * tree-data-ref.c (build_classic_dist_vector): Return false for
5256         dependences completely outside of the loop nest we asked about.
5257         (build_classic_dir_vector): Ditto.
5258         (compute_data_dependences_for_loop): Only add dependence relations
5259         inside the loop we asked about.
5261         * tree-loop-linear.c (linear_transform_loops): Use DDR_SIZE_VECT.
5262         Compute immediate uses.
5264         * tree-optimize.c: Move linear_transform_loops to before ivcanon.
5266 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
5268         * tree-cfg.c (thread_jumps): Fix a comment typo.
5270 2004-11-01  Kazu Hirata  <kazu@cs.umass.edu>
5272         * tree-cfg.c (thread_jumps): Fix a comment typo.
5274 2004-10-31  Nicolas Pitre <nico@cam.org>
5276         * config/arm/ieee754-sf.S (floatdisf): Fix regression with
5277         values smaller than 2^32.
5279 2004-10-31 Jeff Law  <law@redhat.com>
5281         * cfgloop.h (struct loop): Remove unused "nodes" field.
5282         * timevar.def (TV_TREE_LOOP_BOUNDS): New.
5283         * tree-data-ref.c (find_data_references_in_loop): Use get_loop_body
5284         instead of calling flow_bb_inside_loop_p for every basic block
5285         in the function.
5286         * tree-ssa-loop.c (pass_record_bounds): Use TV_TREE_LOOP_BOUNDS.
5288 2004-10-31  Graham Stott <graham.stott@btinternet.com>
5290         * config/pa/pa.md: (prefetch_64, prefetch_32): Fix typo.  Use
5291         INT_5_BITS instead of VAL_5_BITS_P.
5293 2004-10-31  Roger Sayle  <roger@eyesopen.com>
5295         PR middle-end/14521
5296         * tree-inline.c (inline_forbidden_p_1): Use %qF instead of '%F'
5297         for consistent quoting in diagnostic messages.
5298         (expand_call_inline): Likewise.
5299         * tree-optimize.c (tree_rest_of_compilation): Likewise.
5300         * tree-ssa.c (warn_uninitialized_var): Likewise.
5301         (warn_uninitialized_phi): Likewise.
5303 2004-10-31  Richard Sandiford  <rsandifo@redhat.com>
5305         * config/mips/mips.c (mips_cannot_change_mode_class): Use a stricter
5306         mode check.
5308 2004-10-31  Kazu Hirata  <kazu@cs.umass.edu>
5310         * c-common.c: Fix a comment typo.
5312 2004-10-31  Jason Merrill  <jason@redhat.com>
5314         PR middle-end/17526
5315         * tree-gimple.c (is_gimple_mem_rhs): Also require a val for
5316         aggregate types that are not BLKmode.
5318 2004-10-30  Ziemowit Laski  <zlaski@apple.com>
5320         * c-common.h (objc_lookup_ivar): Add second parameter to
5321         prototype.
5322         * c-typeck.c (build_external_ref): After looking up symbol,
5323         pass it to objc_lookup_ivar() to decide whether it or the
5324         ivar should be used, rather than deciding the issue locally.
5325         * stub-objc.c (objc_lookup_ivar): Add an OTHER parameter,
5326         which is simply returned in the non-ObjC case.
5328 2004-10-30  Danny Smith  <dannysmith@users.sourceforge.net>
5330         * sdbout.c (sdbout_symbol): Do not output type .def statements
5331         for builtin types.
5333 2004-10-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5335         * c-common.c (catenate_strings): New.
5336         (c_parse_error): Use it.  Don't over-escape.
5338 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5340         * config/sh/sh.c (calc_live_regs): Declare reg as unsigned and
5341         modify the for loop expressions for it.  Remove unnecessary casts.
5342         (sh_expand_prologue): Declare reg as unsigned.
5343         (sh_gimplify_va_arg_expr): Initinalize lab_over.
5344         (sh_handle_sp_switch_attribute): Add const qualifier appropriately.
5346 2004-10-30  Geoffrey Keating  <geoffk@apple.com>
5348         * doc/invoke.texi (Darwin Options): Improve description of
5349         how the subtype is chosen.
5351 2004-10-30  Roger Sayle  <roger@eyesopen.com>
5353         PR middle-end/18096
5354         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Check that
5355         the stack adjustment, "size", is valid for Pmode.  If the stack
5356         frame is too large, generate a trap insn and issue a warning.
5358 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
5360         * tree-ssa-dom.c: Fix comment typos.
5362 2004-10-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5364         * config/sh/sh.c (prepare_move_operands): Use operands[0]
5365         for the output rtl if no_new_pseudos is set.  Remove redundant
5366         line.
5368 2004-10-30  Joseph S. Myers  <joseph@codesourcery.com>
5370         PR c/16666
5371         * c-decl.c (start_function): Don't check for DECL_BUILT_IN when
5372         determining whether to copy parameter types from a previous
5373         prototype declaration.
5375 2004-10-29  Roger Sayle  <roger@eyesopen.com>
5377         PR rtl-optimization/17581
5378         * cselib.c (cselib_process_insn): The last instruction of a libcall
5379         block, with the REG_RETVAL note, should be considered in the libcall.
5380         * gcse.c (do_local_cprop): Allow constants to be propagated outside
5381         of libcall blocks.
5382         (adjust_libcall_notes): Use simplify_replace_rtx instead of
5383         replace_rtx to avoid creating invalid RTL in REG_RETVAL notes.
5385 2004-10-30  Kazu Hirata  <kazu@cs.umass.edu>
5387         * tree-phinodes.c (create_phi_node): Don't zero PHI_REWRITTEN.
5389 2004-10-29 Jeff Law  <law@redhat.com>
5391         * tree-ssa-dom.c (struct edge_info): New structure holding
5392         edge equivalences and edge redirection information.
5393         (get_eq_expr_value, record_dominating_conditions): Kill.
5394         (propagate_to_outgoing_edges): Renamed from cprop_into_phis.
5395         Call record_edge_info.
5396         (allocate_edge_info, free_edge_info): New.
5397         (tree_ssa_dominator_optimize): Use propagate_to_outgoing_edges
5398         rather than cprop_into_phis.  Free all edge infos before threading
5399         jumps.
5400         (thread_across_edge): Allocate new edge info structures as needed
5401         and store the redirection target into the edge info structure
5402         instead of the edge's AUX field.
5403         (dom_opt_initialize_block): Mark unused argument with ATTRIBUTE_UNUSED.
5404         (record_equivalence_from_incoming_edge): Lose unnecessary argument.
5405         Revamp code which finds and records equivalences associated with
5406         edges to use saved data in the edge_info structure.
5407         (record_equivalencs_from_phis): Similarly.
5408         (dom_opt_finalize_block): Revamp code which finds and records
5409         equivalences associated with edges to use saved data in the
5410         edge_info structure.
5411         (build_and_record_new_cond): New function.
5412         (record_conditions): Use build_and_record_new_cond to record
5413         dominating conditions.
5414         (record_edge_info): New function.
5415         (record_range): Tighten test for conditions which create
5416         useful range records.
5418 2004-10-29  Geoffrey Keating  <geoffk@apple.com>
5420         * config/i386/darwin.h (ASM_SPEC): Simplify.
5421         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
5422         * config/rs6000/darwin.h (DARWIN_SUBARCH_SPEC): New.
5423         (SUBTARGET_EXTRA_SPECS): Add darwin_subarch spec.
5424         * config/darwin.h (LINK_COMMAND_SPEC): Don't pass -arch here.
5425         (LINK_SPEC): Do pass -arch here.  Handle -force_cpusubtype_ALL
5426         in all cases.  Pass the right -arch or -arch_only based on -mcpu.
5427         (ASM_SPEC): Handle -force_cpusubtype_ALL.
5428         * doc/invoke.texi (Darwin Options): Improve documentation for
5429         Darwin linker (and libtool) switches.
5431         * config/rs6000/darwin-fallback.c: Include <mach/thread_status.h>.
5433 2004-10-29  Stan Shebs  <shebs@apple.com>
5435         * config/rs6000/darwin-tramp.asm: Make more 64-bit-friendly.
5437 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
5439         * tree-phinodes.c (allocate_phi_node): New.
5440         (make_phi_node, resize_phi_node): Use it.
5442 2004-10-29  David Edelsohn  <edelsohn@gnu.org>
5444         * config/rs6000/sysv4.h (TARGET_POWER): Define as 0.
5445         * config/rs6000/darwin.h (TARGET_POWER): Define as 0.
5447 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
5449         * tree-phinodes.c (make_phi_node, resize_phi_node): Don't zero
5450         the whole PHI node.
5451         * tree.h (tree_phi_node): Tell the garbage collector to chase
5452         num_args arguments.
5454 2004-10-29  Richard Earnshaw  <rearnsha@arm.com>
5456         * opts.c (decode_options): Lower the crossjump threshold for -Os.
5458 2004-10-29  Diego Novillo  <dnovillo@redhat.com>
5460         * tree.h (struct tree_ssa_name): Remove field 'equiv'.
5462 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5464         * bitmap.h (bitmap_empty_p): New.
5465         (bitmap_and, bitmap_and_into, bitmap_and_compl,
5466         bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
5467         bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
5468         operation macros.
5469         (bitmap_ior_and_compl): Rename to ...
5470         (bitmap_ior_and_compl_into): ... here.
5471         * bitmap.c (bitmap_equal_p): Use bitmap_xor.
5472         (bitmap_ior_and_compl): Rename to ...
5473         (bitmap_ior_and_compl_into): ... here. Adjust. Return changed
5474         flag.
5475         (bitmap_union_of_diff): Use renamed bitmap functions.
5476         * basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
5477         XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
5478         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
5479         * df.c (df_bb_rd_local_compute)
5480         * flow.c (calculate_global_regs_live,
5481         init_propagate_block_info): Likewise.
5482         * ifcvt.c (find_if_case_1, find_if_case_2,
5483         dead_or_predicable): Likewise.
5484         * ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
5485         reset_conflicts, conflicts_between_webs): Likewise.
5486         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
5487         detect_web_parts_to_rebuild): Likewise.
5488         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
5489         * tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
5490         * tree-sra.c (decide_instantiations): Likewise.
5491         * tree-ssa-alias.c (create_name_tags,
5492         merge_pointed_to_info): Likewise.
5493         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
5494         * tree-ssa-loop-im.c (move_computations): Likewise.
5495         * tree-ssa-operands.c (get_call_expr_operands): Likewise.
5496         * tree-ssa-pre.c (fini_pre): Likewise.
5497         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
5498         * tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
5499         * tree-vectorizer.c (vectorize_loops): Likewise.
5501 2004-10-29  Nick Clifton  <nickc@redhat.com>
5503         config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): When
5504         adding the PIC register to the fixed_regs array, also add it
5505         to the call_used_regs array.
5507 2004-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
5509         * gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
5510         with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
5512 2004-10-28  Daniel Berlin  <dberlin@dberlin.org>
5514         * tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
5515         (rewrite_blocks): Modify argument, and use it to decide which
5516         function to call.
5517         (rewrite_def_def_chains): Call rewrite_blocks with true here.
5518         (rewrite_into_ssa): and call it with false here.
5520 2004-10-29  Kazu Hirata  <kazu@cs.umass.edu>
5522         * tree-phinodes.c (add_phi_arg): Turn an "if" that always
5523         triggers into gcc_assert.
5525 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
5527         PR tree-optimization/16728
5528         * tree-flow.h (get_ptr_info): Declare.
5529         * tree-ssa-alias.c (get_ptr_info): Make extern.
5530         * tree-ssa-copy.c (merge_alias_info): Merge flow-sensitive
5531         alias information.
5533 2004-10-28  Stan Shebs  <shebs@apple.com>
5535         * config/rs6000/darwin.h (SUBTARGET_EXTRA_SPECS): Handle -m64.
5536         * config/rs6000/rs6000.c (rs6000_darwin_file_start): Add ppc64
5537         case.
5539 2004-10-28  Frank Ch. Eigler  <fche@redhat.com>
5541         * tree-mudflap.c (mudflap_init): Mark cache-lookup decls to
5542         prevent their later unnecessary registration.
5543         (mf_build_check_statement_for): Remove "addr" argument, and
5544         related "__mf_value" generated code.  Update callers.
5545         (mf_decl_eligible_p): New function, factored from mx_register_decls.
5546         (mx_register_decls): Call it.
5547         (mf_xform_derefs_1): Rewrite COMPONENT_REF and ARRAY_REF cases
5548         to restore support for complex nested expressions.
5549         (mudflap_enqueue_decl): Simplify.  Move registration call emission
5550         out ...
5551         (mudflap_finish_file): ... to here.
5552         (mudflap_enqueue_constant): Remove dump code.
5554 2004-10-28  Zack Weinberg  <zack@codesourcery.com>
5556         PR 18199
5557         * dbxout.c (dbxout_begin_complex_stabs_noforcetext): New function.
5558         (DBX_FINISH_STABS): Add (unused by default) SYM parameter.
5559         (dbxout_finish_complex_stabs): Update to match.
5560         (dbxout_symbol_location): Call emit_pending_bincls_if_required
5561         and FORCE_TEXT before DBX_STATIC_BLOCK_START.  Use
5562         dbxout_begin_complex_stabs_noforcetext.
5563         * xcoffout.h (DBX_FINISH_STABS): Restore special case for
5564         N_GSYM, using new SYM parameter.  Correct logic for special
5565         cases for N_FUN.
5567         * varasm.c (function_section): If DECL is NULL_TREE, don't try
5568         to do anything else.  Do not call get_insns if cfun or
5569         cfun->emit are NULL.
5571 2004-10-28  Adam Nemet  <anemet@lnxw.com>
5573         PR middle-end/18160
5574         * c-typeck.c (c_mark_addressable): Issue error if address of a
5575         register variable is taken.  Use "%qD" to print DECL_NAME.
5577 2004-10-28  Diego Novillo  <dnovillo@redhat.com>
5579         * opts.c (decode_options): Don't run PRE at -Os.
5581 2004-10-28  Richard Henderson  <rth@redhat.com>
5583         * config/alpha/alpha.md (movqicc_internal): Allow exactly one
5584         zero in the conditional.
5585         (movhicc_internal, movsicc_internal, movdicc_internal): Likewise.
5587 2004-10-28  Richard Henderson  <rth@redhat.com>
5589         * cse.c (memory_extend_rtx): Remove.
5590         (cse_main): Don't set it.
5591         (cse_insn): Use a local buffer instead.
5593 2004-10-28  Andreas Krebbel  <krebbel1@de.ibm.com>
5595         * profile.c (branch_prob): Call to init_edge_profiler added.
5596         * rtl-profile.c (rtl_init_edge_profiler): New function.
5597         (rtl_gen_edge_profiler): Replaced call to insert_insn_on_edge with
5598         call to safe_insert_insn_on_edge.
5599         (rtl_profile_hooks): rtl_init_edge_profiler added.
5600         * tree-profile.c (tree_init_edge_profiler): New function.
5601         (tree_profile_hooks): tree_init_edge_profiler added.
5602         * value-prof.h (profile_hooks) init_edge_profiler prototype added.
5604 2004-10-28  Nick Clifton  <nickc@redhat.com>
5606         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Use
5607         emit_jump_insn() to generate the return instruction.
5609 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5611         * tree-phinodes.c: Remove trailing whitespace.
5613 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5615         * tree-ssa-loop-ivopts.c: Fix a comment typo.
5616         * doc/invoke.texi: Fix a typo.
5618 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5620         * Makefile.in (OBJS-common): Remove duplicates.
5622 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5624         * lambda-code.c (nestify_update_pending_stmts): Remove.
5625         (perfect_nestify): Use flush_pending_stmts instead of
5626         nestify_update_pending_stmts.
5627         * tree-cfg.c (tree_make_forwarder_block): Use
5628         flush_pending_stmts.
5629         * tree-flow.h: Add a prototype for flush_pending_stmts.
5630         * tree-ssa-loop-manip.c (tree_duplicate_loop_to_header_edge):
5631         Use flush_pending_stmts.
5632         (lv_update_pending_stmts): Remove.
5633         (tree_ssa_loop_version): Use flush_pending_stmts instead of
5634         lv_update_pending_stmts.
5635         * tree-ssa.c (flush_pending_stmts): New.
5637 2004-10-28  Ulrich Weigand  <uweigand@de.ibm.com>
5639         PR target/15286
5640         * final.c (alter_subreg): Compute correct offset to use with
5641         paradoxical SUBREGs of memory operands.
5642         * recog.c (general_operand): Allow paradoxical SUBREGs of
5643         memory operands after reload.
5644         * simplify-rtx.c (simplify_gen_subreg): Fail if simplify_subreg
5645         has failed when passed a hard register.
5647 2004-10-28  Aldy Hernandez  <aldyh@redhat.com>
5649         * function.c (assign_parm_setup_block): Handle parallels correctly.
5651 2004-10-28  Kaz Kojima  <kkojima@gcc.gnu.org>
5653         * final.c (shorten_branches): Initialize flags structure.
5655 2004-10-28  Nathan Sidwell  <nathan@codesourcery.com>
5657         * tree.c (int_cst_node, int_cst_hash_table): New variables.
5658         (init_ttree): Initialize them.
5659         (int_cst_hash_hash, int_cst_hash_eq): New hashing functions.
5660         (build_int_cst_wide): Use hash table for oversized integers.
5662 2004-10-28  Nick Clifton  <nickc@redhat.com>
5664         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Define
5665         begin_label.
5667 2004-10-27  Richard Henderson  <rth@redhat.com>
5669         PR middle-end/18163
5670         * expr.c (emit_group_load): Don't go force temporary for memory
5671         or concat source.
5672         (emit_group_store): Similarly.
5674 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
5676         PR other/18186
5677         * common.opt (--param): Fix spelling of parameter.
5679 2004-10-27  Andrew Pinski  <pinskia@physics.uc.edu>
5681         PR tree-opt/17529
5682         * tree-cfg.c (remove_useless_stmts_1) <case SWITCH_EXPR>:
5683         Don't fold statement.
5684         <case ASM_EXPR>: Fold the statement.
5686 2004-10-28  Kazu Hirata  <kazu@cs.umass.edu>
5688         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
5689         <COND_EXPR>: Use EDGE_COUNT instead of GOTO_DESTINATION.
5691 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
5693         * doc/contrib.texi, doc/cpp.texi, doc/cppopts.texi,
5694         doc/extend.texi, doc/gcov.texi, doc/install.texi, doc/invoke.texi,
5695         doc/libgcc.texi, doc/md.texi, doc/passes.texi,
5696         doc/sourcebuild.texi, doc/tm.texi: Improve Texinfo formatting.
5698 2004-10-28  Joseph S. Myers  <jsm@polyomino.org.uk>
5700         * doc/c-tree.texi, doc/cpp.texi, doc/implement-c.texi,
5701         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/tm.texi: Put
5702         punctuation outside quotes.
5704 2004-10-27  David Mosberger  <davidm@hpl.hp.com>
5705             James E Wilson  <wilson@specifixinc.com>
5707         PR target/13158
5708         * config/ia64/ia64.c (ia64_expand_epilogue): Set RTX_FRAME_RELATED_P on
5709         sibcall alloc instruction.
5710         (process_set): Handle sibcall alloc instruction.
5712 2004-10-27  Geoffrey Keating  <geoffk@apple.com>
5714         * config/rs6000/rs6000.c (rs6000_attribute_table): Add
5715         SUBTARGET_ATTRIBUTE_TABLE.
5716         * config/darwin.h (ASM_WEAKEN_DECL): Handle weak_import.
5717         (SUBTARGET_ATTRIBUTE_TABLE): Define.
5718         * config/darwin.c (darwin_handle_weak_import_attribute): New.
5719         (HAVE_DEAD_STRIP): Delete.
5720         (no_dead_strip): Don't test HAVE_DEAD_STRIP.
5721         * config/darwin-protos.h (darwin_handle_weak_import_attribute):
5722         Prototype.
5724         * doc/tm.texi (USE_SELECT_SECTION_FOR_FUNCTIONS): Document.
5726         * config/darwin.h (GTHREAD_USE_WEAK): Define.
5728 2004-10-28  Ben Elliston  <bje@au.ibm.com>
5730         * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): New.
5731         (PARAM_SRA_FIELD_STRUCTURE_RATIO): Likewise.
5732         * params.h (SRA_MAX_STRUCTURE_SIZE): New.
5733         (SRA_FIELD_STRUCTURE_RATIO): Likewise.
5734         * tree-sra.c: Include "params.h".
5735         (decide_block_copy): Use new parameters.
5736         * doc/invoke.texi (Optimize Options): Document new SRA pass
5737         parameters sra-max-structure-size and sra-field-structure-ratio.
5739 2004-10-27  Nicolas Pitre <nico@cam.org>
5741         * config/arm/ieee754-df.S (floatdidf): Fix regression with big values.
5743 2004-10-27  Zdenek Dvorak  <dvorakz@suse.cz>
5745         PR tree-optimization/18048
5746         * fold-const.c (try_move_mult_to_index): New function.
5747         (fold): Use try_move_mult_to_index.
5748         * tree-ssa-loop-ivopts.c (try_add_cand_for): Prefer common candidates.
5749         * tree-ssa-loop-niter.c (number_of_iterations_cond): Produce
5750         an all-ones unsigned constant without extra bits.
5751         * tree.c (build_low_bits_mask): New function.
5752         * tree.h (build_low_bits_mask): Declare.
5754 2004-10-27  David Edelsohn  <edelsohn@gnu.org>
5756         PR target/17956
5757         * config/rs6000/rs6000.md (maxsf3): Add !flag_trapping_math to
5758         final condition.
5759         (minsf3): Same.
5760         (maxdf3): Same.
5761         (mindf3): Same.
5763 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
5765         * tree-cfg.c (thread_jumps): Speed up by reordering the two
5766         conditions for entering basic blocks into worklist.
5768 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
5770         * tree-cfg.c (thread_jumps): Speed up by pretending to have
5771         ENTRY_BLOCK_PTR in worklist.
5773 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
5775         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary)
5776         <GOTO_EXPR>: Don't let an explicit GOTO_EXPR slip through.
5778 2004-10-27  Daniel Berlin <dberlin@dberlin.org>
5780         Fix PR tree-optimization/17133
5782         * tree-cfg.c (rewrite_to_new_ssa_names_bb): Also rewrite must
5783         def kill operand.
5785         * tree-flow-inline.h: V_MUST_DEF_OP became V_MUST_DEF_RESULT.
5786         (get_v_must_def_result_ptr): Modify for new structure of
5787         v_must_defs array.
5788         (get_v_must_def_kill_ptr): New.
5789         (op_iter_next_use): Add support for the kill that occurs in V_MUST_DEFs.
5790         (op_iter_next_tree): Ditto. Also V_MAY_DEF_OP became V_MAY_DEF_RESULT.
5791         (op_iter_next_def): V_MAY_DEF_OP became V_MAY_DEF_RESULT.
5792         (op_iter_init): Initialize new mustu members.
5793         (op_iter_next_mustdef): New function.
5794         (op_iter_init_mustdef): Ditto.
5796         * tree-flow.h (rewrite_def_def_chains): New function.
5798         * tree-into-ssa.c (mark_def_sites): Handle mustdefkill operands.
5799         (ssa_mark_def_sites): Ditto.
5800         (rewrite_stmt): Ditto.
5801         (ssa_rewrite_stmt): Ditto.
5802         (rewrite_blocks): Factor out from rewrite_into_ssa.
5803         (mark_def_block_sites): Ditto.
5804         (rewrite_def_def_chains): New function, just rewrites def-def
5805         chains without phi node insertion.
5807         * tree-pass.h (TODO_fix_def_def_chains): New todo flag.
5809         * tree-optimize.c (execute_todo): Handle TODO_fix_def_def_chains.
5811         * tree-pretty-print.c (dump_vops): Print out MUST_DEF's so that
5812         they include the rhs now.
5814         * tree-ssa-ccp.c (visit_assignment): V_MUST_DEF_OP became
5815         V_MUST_DEF_RESULT.
5817         * tree-ssa-dce.c (mark_operand_necessary): Add phionly argument.
5818         Update callers.
5819         (mark_really_necessary_kill_operand_phis): New function.
5820         (perform_tree_ssa_dce): Call it.
5821         (pass_dce): Add TODO_fix_def_def_chains.
5822         (pass_cd_dce): Ditto.
5824         * tree-ssa-loop-im.c (determine_max_movement): Look at kills as
5825         well.
5826         (rewrite_mem_refs): Ditto.
5828         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Look at kills
5829         as well.
5831         * tree-ssa-operands.c (allocate_v_may_def_optype):
5832         v_may_def_operand_type_t became v_def_use_operand_type_t.
5833         (allocate_v_must_def_optype) Ditto.
5834         (finalize_ssa_v_must_defs): Update for new operand type, as well
5835         as setting the use portion as well.
5836         (copy_virtual_operands): Copy the kill operand as well.
5837         (create_ssa_artficial_load_stmt): V_MUST_DEF_OP became
5838         V_MUST_DEF_RESULT.
5840         * tree-ssa-operands.h (v_may_def_operand_type): Renamed to
5841         v_def_use_operand_type.
5842         (v_must_def_optype_d): Use v_def_use_operand_type.
5843         (V_MUST_DEF_OP_*): Renamed to V_MUST_DEF_RESULT_*
5844         (V_MUST_DEF_KILL_*): New macros.
5845         (struct ssa_operand_iterator_d): Add num_v_mustu and v_mustu_i
5846         members.
5847         Rename existing must_i and num_v_must members to mustd_i and
5848         num_v_mustd.
5849         (SSA_OP_VMUSTDEFKILL): New flag.
5850         (SSA_OP_VIRTUAL_KILLS): New flag.
5851         (SSA_OP_ALL_OPERANDS): Add in SSA_OP_ALL_KILLS.
5852         (SSA_OP_ALL_KILLS): New flag.
5853         (FOR_EACH_SSA_MUSTDEF_OPERAND): New macro.
5855         * tree-ssa.c (verify_ssa): Verify virtual kills as well.
5857         * tree-vectorizer.c (vect_create_data_ref_ptr): V_MUST_DEF_OP
5858         became V_MUST_DEF_RESULT.
5859         (rename_variables_in_bb): Rename kill pointer as well.
5861         * tree-dfa.c (compute_immediate_uses_for_stmt): Add kills into the
5862         immediate uses.
5864 2004-10-27  Richard Sandiford  <rsandifo@redhat.com>
5866         * dbxout.c (dbxout_source_line): Move declaration of begin_label to
5867         the block that needs it.
5869 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
5871         * dbxout.c (dbxout_finish_complex_stabs): Mark 'line' variable
5872         ATTRIBUTE_UNUSED.
5874 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
5876         * c-lex.c (cb_def_pragma): Clean up code for making location
5877         palatable to diagnostic.c.
5879 2004-10-27  Steven Bosscher  <stevenb@suse.de>
5881         PR tree-optimization/17757
5882         * tree-phinodes.c (remove_phi_arg_num): Don't remove PHIs
5883         without any PHI arguments left.  Make sure the argument that
5884         we're supposed to remove exists at all.
5886 2004-10-27  Paul Brook  <paul@codesourcery.com>
5888         * configure.ac: Don't test for [build] __cxa_atexit when building a
5889         cross compiler.
5890         * configure: Regenerate.
5892 2004-10-27  Paul Brook  <paul@codeosurcery.com>
5894         * configure.ac: Use build_exeext not host_exeext when lookin for
5895         target tools.
5896         * configure: Regenerate.
5898 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5900         * config/s390/s390.md ("*subdf3_cc"): Replaced plus by minus.
5902 2004-10-27  Andreas Krebbel  <krebbel1@de.ibm.com>
5903             patch originally created by Kelley Cook  <kcook@gcc.gnu.org>
5905         PR middle-end/14684
5906         * opts.c (OPT_fprofile_generate): Default to -funroll-loops
5907         to match -fprofile-use.
5909 2004-10-27  Kazu Hirata  <kazu@cs.umass.edu>
5911         * config/rs6000/rs6000.c: Fix a comment typo.
5913 2004-10-27  Zack Weinberg  <zack@codesourcery.com>
5915         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Increment line
5916         counter.
5918 2004-10-27  Andreas Schwab  <schwab@suse.de>
5920         * varasm.c (default_stabs_asm_out_destructor): Mark symbol as
5921         unused.
5922         (default_stabs_asm_out_constructor): Likewise.
5924 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
5926         * builtins.c (fold_builtin_unordered_cmp): Always bring both
5927         operands to the same type.
5929 2004-10-26  James E Wilson  <wilson@specifixinc.com>
5931         PR target/18010
5932         * emit-rtl.c (emit_copy_of_insn_after): Copy RTX_FRAME_RELATED_P.
5934 2004-10-26  Zack Weinberg  <zack@codesourcery.com>
5936         * dbxout.c: Include obstack.h.
5937         (ASM_STABS_OP): Take XCOFF_DEBUGGING_INFO into account in
5938         default definition.
5939         (ASM_STABD_OP, NO_DBX_MAIN_SOURCE_DIRECTORY, DBX_CONTIN_CHAR):
5940         Default-define here.
5941         (DBX_CONTIN_LENGTH): Move definition with others.
5942         (DBX_FINISH_STABS): New target macro.
5943         (current_sym_code, current_sym_value, current_sym_addr)
5944         (current_sym_nchars, CHARS, dbxout_continue)
5945         (print_int_cst_octal, print_octal, print_wide_int)
5946         (dbxout_prepare_symbol, dbxout_finish_symbol): Delete.
5947         (stabstr_ob, stabstr_last_contin_point): New variables.
5948         (NUMBER_FMT_LOOP): New improper macro.
5949         (dbxout_int, dbxout_stab_value_zero, dbxout_stab_value_label)
5950         (dbxout_stab_value_label_diff, dbxout_stab_value_internal_label)
5951         (dbxout_stab_value_internal_label_diff, dbxout_stabd)
5952         (dbxout_begin_stabn, dbxout_begin_stabn_sline)
5953         (dbxout_begin_simple_stabs, dbxout_begin_simple_stabs_desc)
5954         (dbxout_begin_complex_stabs, dbxout_finish_complex_stabs)
5955         (stabstr_C, stabstr_S, stabstr_I, stabstr_D, stabstr_U, stabstr_O)
5956         (stabstr_continue, DECL_ACCESSIBILITY_CHAR)
5957         New functions and/or proper function-like macros.
5958         (CONTIN): Use stabstr_continue, unconditionally.
5959         (get_lang_number): Define unconditionally, with ATTRIBUTE_UNUSED.
5960         (dbxout_init): Initialize stabstr_ob.  Check
5961         NO_DBX_MAIN_SOURCE_DIRECTORY.  Only write out the Ltext label
5962         if it was used.  Use the new interfaces.
5963         (dbxout_source_file): Remove file argument; always write to
5964         asm_out_file.  Use the new interfaces.
5965         (dbxout_type_method_1): Remove second argument which is always
5966         DECL_ASSEMBLER_NAME of the first argument.  Use the new interfaces.
5967         (dbxout_type_methods): Remove write-only variables.  Use the
5968         new interfaces.
5969         (dbxout_parms): Refactor to remove code duplicated in each of
5970         several successive if-else-if blocks.  Use the new interfaces.
5971         (dbxout_function_end, emit_bincl_stab, dbxout_end_source_file)
5972         (dbxout_source_line, dbxout_finish, dbxout_type_index)
5973         (dbxout_type_fields, dbxout_range_type, dbxout_type, dbxout_type_name)
5974         (dbxout_class_name_qualifiers, dbxout_symbol, dbxout_symbol_location)
5975         (dbxout_symbol_name, dbxout_reg_parms, dbxout_args)
5976         (dbx_output_lbrac, dbx_output_rbrac, dbxout_block):
5977         Use the new interfaces.
5978         * Makefile.in (dbxout.o): Update dependencies.
5980         * defaults.h: Don't define ASM_STABD_OP.
5981         * output.h: Prototype new dbxout_* interfaces.
5982         * system.h: Poison DBX_OUTPUT_GCC_MARKER and DBX_FINISH_SYMBOL.
5983         * varasm.c: Don't define ASM_STABS_OP.
5984         (default_stabs_asm_out_constructor, default_stabs_asm_out_destructor):
5985         Use the new dbxout.c interfaces.  Call sorry if neither
5986         DBX_DEBUGGING_INFO nor XCOFF_DEBUGGING_INFO is defined.
5988         * xcoffout.h: Don't define ASM_STABS_OP.
5989         (DBX_FINISH_SYMBOL): Rewrite and rename DBX_FINISH_STABS.
5990         (DBX_OUTPUT_MAIN_SOURCE_DIRECTORY, DBX_OUTPUT_GCC_MARKER): Delete.
5991         (NO_DBX_MAIN_SOURCE_DIRECTORY, NO_DBX_GCC_MARKER): Define.
5992         (DBX_OUTPUT_MAIN_SOURCE_FILE_END): Change bare block to
5993         do { ... } while (0) idiom.
5995         * config/alpha/alpha.c (num_source_filenames): Export.
5996         * config/alpha/alpha.h (num_source_filenames): Declare.
5997         (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
5998         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
5999         * config/m32r/m32r.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6000         Always use .debugsym.  Update commentary.
6001         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Use new interfaces.
6002         (SDB_OUTPUT_SOURCE_LINE): Add missing newline.
6003         * config/rs6000/linux64.h (DBX_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC):
6004         Use new interfaces.
6005         * config/rs6000/rs6000.c: If TARGET_MACHO, include gstab.h.
6006         (macho_branch_islands): Use new interfaces.
6008         * doc/tm.texi: Update.
6010 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
6012         * expr.c (emit_group_store): Do not treat floats as BLKmode.
6013         (emit_group_load): Same.
6015 2004-10-26  Joseph S. Myers  <jsm@polyomino.org.uk>
6017         * c-parse.in (datadef): Use pedwarn rather than error and warning
6018         for diagnostic in case of no declaration specifiers.
6020 2004-10-26  Richard Sandiford  <rsandifo@redhat.com>
6022         PR bootstrap/15747
6023         * doc/install.texi (mips-sgi-irix5): Document that /bin/sh has been
6024         reported to hang during bootstrap and that CONFIG_SHELL=/bin/ksh
6025         can be used to work around this.
6027 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
6029         * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Adjust for e500
6030         doubles.
6032 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
6034         * stmt.c (expand_case): Update a comment.
6036 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
6038         * stmt.c (expand_case): Put an assertion that index_expr is
6039         never INTEGER_CST.  Don't special case for constant
6040         index_expr.
6042 2004-10-26  Andrew Pinski  <pinskia@physics.uc.edu>
6044         PR 18162
6045         * c-parse.in (designator): Finish with a semi-colon.
6047 2004-10-26  Fariborz Jahanian <fjahanian@apple.com>
6049         * config/rs6000/rs6000.md (andsi3_internal8): Set CR when splitting
6050         into rotlsi3.
6052 2004-10-26  Kazu Hirata  <kazu@cs.umass.edu>
6054         * stmt.c (expand_case): Remove code to handle SWITCH_EXPR with
6055         a default case only.
6057 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
6059         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs): Adjust for
6060         e500 doubles.
6061         (spe_build_register_parallel): New.
6062         (rs6000_spe_function_arg): Handle e500 doubles.
6063         (function_arg): Same.
6064         (spe_func_has_64bit_regs_p): Same.
6065         (rs6000_function_value): Same.
6066         (rs6000_libcall_value): Same.
6067         (legitimate_lo_sum_address_p): Return false for e500 doubles.
6069         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT): Adjust for e500
6070         doubles.
6071         (DATA_ALIGNMENT): Same.
6072         (CANNOT_CHANGE_MODE_CLASS): Same.
6074 2004-10-26  Aldy Hernandez  <aldyh@redhat.com>
6076         * expr.c (emit_group_load): Handle floats.
6077         (emit_group_store): Same.
6079 2004-10-26  Nathan Sidwell  <nathan@codesourcery.com>
6081         * c-lex.c (get_nonpadding_token): Remove.
6082         (c_lex_with_flags): Push timevar and eat padding here.  Improve
6083         stray token diagnostic.
6084         (lex_string): Replace logic with switch statement, eat padding
6085         token here.
6087 2004-10-26  Geoffrey Keating  <geoffk@apple.com>
6089         PR 18149
6090         * config/i386/darwin.h (ASM_SPEC): Undef it before defining.
6092 2004-10-25  Geoffrey Keating  <geoffk@apple.com>
6094         * config/darwin.h (LINK_SPEC): Default weak_reference_mismatches
6095         to 'non-weak'.
6096         (MAKE_DECL_ONE_ONLY): Set DECL_WEAK.
6097         (ASM_MAKE_LABEL_LINKONCE): Delete.
6098         (ASM_WEAKEN_DECL): New.
6099         (ASM_DECLARE_OBJECT_NAME): Look at DECL_WEAK not DECL_ONE_ONLY.
6100         (ASM_DECLARE_FUNCTION_NAME): Likewise.
6101         (TEXT_SECTION_ASM_OP): Add a tab.
6102         (DATA_SECTION_ASM_OP): Likewise.
6103         (SECTION_FUNCTION): Add a tab.  Use fputs.  Don't call
6104         data_section on every section change.
6105         (EXTRA_SECTIONS): Add a bunch of new extra sections.
6106         (EXTRA_SECTION_FUNCTIONS): Likewise.
6107         (USE_SELECT_SECTION_FOR_FUNCTIONS): Define.
6108         (JCR_SECTION_NAME): Define.
6109         (TARGET_SECTION_TYPE_FLAGS): Don't define.
6110         * config/darwin.c (darwin_encode_section_info): A symbol is defined
6111         in this file if it is not weak.
6112         (textcoal_section): Delete.
6113         (datacoal_section): Delete.
6114         (darwin_make_decl_one_only): Delete.
6115         (machopic_select_section): Handle functions.
6116         (darwin_asm_named_section): Add a tab.
6117         (darwin_section_type_flags): Delete.
6118         (darwin_unique_section): Delete contents.
6119         (darwin_emit_unwind_label): Add a tab.  Make decls weak if
6120         DECL_WEAK is set.
6121         * config/darwin-protos.h (darwin_section_type_flags): Delete.
6122         (darwin_make_decl_one_only): Delete.
6123         (text_coal_section): New.
6124         (text_unlikely_section): New.
6125         (text_unlikely_coal_section): New.
6126         (const_coal_section): New.
6127         (data_coal_section): New.
6128         (const_data_coal_section): New.
6129         * varasm.c (function_section): Honour
6130         USE_SELECT_SECTION_FOR_FUNCTIONS.
6131         * dwarf2out.c (output_call_frame_info): Look at DECL_WEAK when
6132         TARGET_USES_WEAK_UNWIND_INFO is in effect.
6133         * dbxout.c (dbxout_source_file): Don't change sections while
6134         a function is being output.
6136 2004-10-25  David Ayers  <d.ayers@inode.at>
6138         * c-common.h: Remove RID_ID.
6139         * c-parse.in: Remove OBJECTNAME and references to RID_ID.
6140         (typespec_reserved_attr): Add rule for TYPENAME
6141         non_empty_protocolrefs.
6142         (yylexname): Remove special handling of RID_ID.
6144 2004-10-25  James E Wilson  <wilson@specifixinc.com>
6146         * doc/invoke.texi (-fcrossjumping): Not enabled at -O.
6148 2004-10-25  Joseph S. Myers  <jsm@polyomino.org.uk>
6150         PR c/16667
6151         * c-parse.in (array_designator): New.
6152         (designator): Use it.
6153         (initelt): Only permit array_designator without '=', not ".foo".
6155 2004-10-25  Kenneth Zadeck <zadeck@naturalbridge.com>
6156         * gcc/Makefile.in: removed ggc for cgraphunit.
6157         * gcc/cgraph.c.dump_cgraph_node: removed static var analysis.
6158         * gcc/cgraph.h: removed static var analysis data structures and calls.
6159         * gcc/cgraphunit.c:
6160         cgraph_mark_local_and_external_functions:changed name to
6161                 cgraph_mark_local_functions
6162         (print_order,convert_UIDs_in_bitmap,new_static_vars_info,
6163         cgraph_reset_static_var_maps,get_global_static_vars_info,
6164         get_global_statics_not_read,get_global_statics_not_written,searchc,
6165         cgraph_reduced_inorder,has_proper_scope_for_analysis,check_rhs_var,
6166         check_lhs_var,get_asm_expr_operands,process_call_for_static_vars,
6167         scan_for_static_refs,cgraph_characterize_statics_local,
6168         clear_static_vars_maps,cgraph_propagate_bits,cgraph_characterize_statics):
6169         removed.
6170         (cgraph_optimize,init_cgraph): removed calls to static vars analysis
6171         * gcc/tree-dfa.c find_referenced_vars: removed call to static vars
6172         analysis
6173         * gcc/tree-flow.h static_vars_info: removed
6174         * gcc/tree-ssa-operands.c (add_call_clobber_ops,add_call_read_ops):
6175         removed calls to static vars analysis.
6176         get_call_expr_operands: removed callee variable.
6178 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
6180         * cfg.c (unchecked_make_edge, redirect_edge_succ,
6181         redirect_edge_pred): Use VEC_safe_push instead of
6182         VEC_safe_insert.
6183         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6185 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
6187         * cfgloopmanip.c (loopify): Take two more arguments true_edge
6188         and false_edge.
6189         * cfgloop.h: Adjust the corresponding prototype.
6190         * loop-unswitch.c (unswitch_loop): Adjust a call to loopify.
6191         * tree-ssa-loop-manip.c (tree_ssa_loop_version): Likewise.
6193 2004-10-25  Jakub Jelinek  <jakub@redhat.com>
6195         * dwarf2out.c (rtl_for_decl_location): Avoid segfault if
6196         DECL_INCOMING_RTL is NULL.
6198 2004-10-25  Steven Bosscher  <stevenb@suse.de>
6200         * timevar.def (TV_FIND_REFERENCED_VARS): New.
6201         * tree-dfa.c (pass_referenced_var): Use it.
6203 2004-10-25  Roger Sayle  <roger@eyesopen.com>
6204             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6206         * cse.c: Change encoding of quantity numbers to avoid undefined
6207         pointer arithmetic on qty_table.
6208         (REGNO_QTY_VALID_P): A quantity is now valid if it isn't negative.
6209         (get_cse_reg_info): Initialize reg_qty to a unique negative value.
6210         (new_basic_block): Assign "real" quantity numbers from zero.
6211         (delete_reg_equiv): Do nothing if quantity is invalid.  Reset the
6212         REG_QTY to its unique negative value.
6213         (merge_equiv_classes): Calculate need_rehash if quantity is valid.
6214         (cse_main): Don't include max_reg when determining max_qty.
6215         (cse_basic_block): Avoid subtracting a large offset from qty_table,
6216         which causes undefined C99 behaviour.  Only allocate needed memory.
6218 2004-10-25  Kazu Hirata  <kazu@cs.umass.edu>
6220         * stmt.c (expand_case): Remove an obsolete comment.
6222 2004-10-25  Andrew Pinski  <pinskia@physics.uc.edu>
6224         PR middle-end/17407
6225         * c-decl.c (grokdeclarator) <case cdk_array>: Remove the call
6226         layout_type as it is already done by build_array_type.
6227         * tree.c (build_array_type): Layout the type even
6229 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
6231         * config/frv/linux.h (TARGET_C99_FUNCTIONS): Define to 0.
6233 2004-10-25  Alexandre Oliva  <aoliva@redhat.com>
6235         * config/frv/frv.md (movdi, movdf): Handle wide-constant splits
6236         with wider-than-32-bit HOST_WIDE_INTs.
6238 2004-10-25  David Billinghurst <David.Billinghurst@riotinto.com>
6240         * config/mips/mips.c(mips_output_filename): Remove unused
6241         array ltext_label_name
6243 2004-10-24  Geoffrey Keating  <geoffk@geoffk.org>
6245         * config/rs6000/darwin.h (BLOCK_REG_PADDING): Define.
6247 2004-10-25  Ben Elliston  <bje@au.ibm.com>
6249         * cfgcleanup.c (outgoing_edges_match): Fix typo in dump output.
6251 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
6253         * predict.c (predict_loops): Call scev_finalize instead of
6254         scev_reset.
6256 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
6258         * config/dbxcoff.h, config/dbxelf.h, config/libgloss.h,
6259         config/openbsd.h, config/mips/r3900.h, config/pdp11/pdp11.md,
6260         config/sh/ushmedia.h, config/sparc/elf.h,
6261         config/sparc/sp64-elf.h: Update copyright.
6263 2004-10-24  Kazu Hirata  <kazu@cs.umass.edu>
6265         * stmt.c (expand_case): Handle the default label outside of
6266         the for loop.  Remove code to handle a missing default label.
6268 2004-10-23  Kazu Hirata  <kazu@cs.umass.edu>
6270         * dbxout.c (dbxout_function_decl): Don't use
6271         DBX_OUTPUT_FUNCTION_END.
6272         * system.h: Poison DBX_OUTPUT_FUNCTION_END.
6273         * doc/tm.texi (DBX_OUTPUT_FUNCTION_END): Remove.
6275 2004-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
6277         PR middle-end/17967
6278         * tree-cfg.c (remove_usless_stmts_cond):  Don't Fold statement.
6280 2004-10-23  Daniel Berlin  <dberlin@dberlin.org>
6282         * tree-ssa-dom.c (record_equality): Use loop depth to determine
6283         which way to record the equality as well.
6284         (loop_depth_of_name): New function.
6286 2004-10-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
6288         PR middle-end/17793
6289         * gimplify.c (gimplify_addr_expr) <VIEW_CONVERT_EXPR>: Look
6290         through the operand if it is a useless type conversion.
6292 2004-10-23  Ben Elliston  <bje@au.ibm.com>
6294         * cfg.c (remove_edge): Use VEC_unordered_remove.
6295         (redirect_edge_succ): Likewise.
6296         (redirect_edge_pred): Likewise.
6297         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
6299 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6301         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Don't access PTR
6302         beyond its end.
6304 2004-10-22  Eric Christopher  <echristo@redhat.com>
6306         * config/rs6000/rs6000.c (setup_incoming_varargs): Align DFmode
6307         saves.
6309 2004-10-22  Aldy Hernandez  <aldyh@redhat.com>
6311         * config/rs6000/spe.md (spe_extendsfdf2): New.
6312         (movdf_e500_double): New.
6313         (spe_truncdfsf2): New.
6314         (spe_absdf2): New.
6315         (spe_nabsdf2): New.
6316         (spe_negdf2): New.
6317         (sub_adddf3): New.
6318         (spe_subdf3): New.
6319         (spe_muldf3): New.
6320         (spe_floatsidf2): New.
6321         (spe_floatunssidf2): New.
6322         (fix_truncdfsi2): New.
6323         (spe_fixuns_truncdfsi2): New.
6325         * config/rs6000/rs6000.md (truncdfsf2): Change to expander.
6326         (fpr_truncdfsf2): New.
6327         (negdf2): Change to expander.
6328         (fpr_negdf2): New.
6329         (fpr_nabsdf2): Name pattern.
6330         (adddf3): Change to expander.
6331         (fpr_adddf3): Nem.
6332         (subdf3): Change to expander.
6333         (fpr_subdf3): New.
6334         (muldf3): Change to expander.
6335         (fpr_muldf3): New.
6336         (divdf3): Change to expander.
6337         (fpr_divdf3): New.
6338         (movdf_softfloat32): Change !TARGET_FPRS to TARGET_E500_SINGLE.
6339         (cmpdf): Allow for TARGET_E500_DOUBLE.
6341 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6343         * c-semantics.c (re_push_stmt_list): Remove.
6344         * c-common.h: Remove the corresponding prototype.
6346 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6348         * stmt.c (asm_op_is_mem_input): Remove.
6349         * tree.h: Remove the corresponding prototype.
6351 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6353         * tree-gimple.c (is_gimple_constructor_elt): Remove.
6354         * tree-gimple.h: Remove the corresponding prototype.
6356 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6358         * varasm.c (get_pool_mode_for_function, get_pool_offset):
6359         Remove.
6360         * rtl.h: Remove the corresponding prototypes.
6362 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6364         * tree-cfg.c (thread_jumps_from_bb): Speed up by extracting
6365         edge information when we commit ourselves to threading a
6366         particular jump.
6368 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6370         * tree-cfg.c (thread_jumps): Speed up by putting basic blocks
6371         into worklist instead of their indexes.
6373 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6375         * alias.c, basic-block.h, cgraphunit.c, combine.c, domwalk.h,
6376         final.c, gengtype.c, genpreds.c, ggc-page.c, insn-notes.def,
6377         lambda-code.c, loop-unroll.c, modulo-sched.c, pointer-set.c,
6378         pretty-print.c, ra-colorize.c, sbitmap.c, tree-complex.c,
6379         tree-data-ref.c, tree-dfa.c, tree-inline.c, tree-into-ssa.c,
6380         tree-scalar-evolution.c, tree-ssa-dom.c,
6381         tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
6382         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-threadupdate.c,
6383         tree-vectorizer.c, vec.h: Fix comment formatting.
6385 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6387         * dwarf.h, gthr-dce.h, gthr-single.h, gthr-solaris.h, gthr.h,
6388         libfuncs.h, libgcc2.h, stab.def, tsystem.h: Update copyright.
6390 2004-10-22  Kazu Hirata  <kazu@cs.umass.edu>
6392         * config/ptx4.h, config/mcore/mcore-pe.h,
6393         config/rs6000/eabi.h, config/vax/elf.h: Update copyright.
6395 2004-10-22  Peter Barada <peter@the-baradas.com>
6397         * config/m68k/m68k.h (HARD_REGNO_RENAME_OK): New macro.
6398         * config/m68k/m68k.c (m68k_hard regno_rename_ok): Disallow
6399         renaming of non-live registers in interrupt functions.
6400         * config/m68k/m68k-protos.h (m68k_hard_regno_rename_ok): Add prototype.
6402 2004-10-22  Zdenek Dvorak  <dvorakz@suse.cz>
6404         * tree-ssa-loop-niter.c (inverse): Count in HOST_WIDE_INT if possible.
6405         Use integer for loop counter.
6406         (num_ending_zeros): New function.
6407         (number_of_iterations_cond): Use num_ending_zeros.
6409 2004-10-21  Aldy Hernandez  <aldyh@redhat.com>
6411         * config.gcc: Add support for --enable-e500_double.
6413         * config/rs6000/e500-double.h: New file.
6415         * config/rs6000/rs6000.h: Define TARGET_E500_SINGLE and
6416         TARGET_E500_DOUBLE.
6418         * config/rs6000/eabi.h: Define TARGET_E500_SINGLE and
6419         TARGET_E500_DOUBLE.
6421         * config/rs6000/linuxspe.h: Same.
6423         * doc/invoke.texi (Option Summary): Document new options for
6424         mfloat-gprs.
6425         (RS/6000 and PowerPC Options): Same.
6427         * config/rs6000/rs6000.c (rs6000_parse_float_gprs_option): New
6428         function.
6429         (rs6000_override_options): Use it.  Use
6430         SUB3TARGET_OVERRIDE_OPTIONS.
6431         Add 8548 to processor_target_table.
6432         (rs6000_legitimate_address): Handle e500 doubles.
6433         (rs6000_legitimize_address): Same.
6434         (rs6000_legitimize_reload_address): Same.
6435         (rs6000_hard_regno_nregs): Same.
6436         (spe_func_has_64bit_regs_p): Same.
6437         (emit_frame_save): Same.
6438         (gen_frame_mem_offset): Same.
6439         (rs6000_dwarf_register_span): Same.
6440         (rs6000_generate_compare): Same.
6441         (easy_fp_constant): Same.
6442         (legitimate_offset_address_p): Same.
6444         * config/rs6000/spe.md: (cmdfeq_gpr): New.
6445         (tstdfeq_gpr): New.
6446         (cmpdfgt_gpr): New.
6447         (tstdfgt_gpr): New.
6448         (tstdfgt_gpr): New.
6449         (cmpdflt_gpr): New.
6450         (tstdflt_gpr): New.
6451         Add new constants.
6453 2004-10-21  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
6455         * config/arc/lib1funcs.asm (___umulsidi3): Fix typo.
6457 2004-10-21  Zack Weinberg  <zack@codesourcery.com>
6459         * dbxout.c: Remove unnecessary #undefs.
6460         (GDB_INV_REF_REGPARM_STABS_LETTER, DBX_MEMPARM_STABS_LETTER)
6461         (FILE_NAME_JOINER, STABS_GCC_MARKER): Remove; fold sole
6462         definition into use sites.
6463         (cwd): Make local to dbxout_init.
6464         (dbxout_init): Restructure cwd-using logic for clarity.  Use
6465         IS_DIR_SEPARATOR.
6466         * xcoffout.h (DBX_OUTPUT_GCC_MARKER): Definition of
6467         STABS_GCC_MARKER folded in here.
6468         * system.h: Poison now-unused macros.
6469         * doc/tm.texi: Remove documentation of now-unused macros.
6471 2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
6473         PR c/17538
6474         * c-opts.c (push_command_line_include): Use the current file
6475         name instead of the main one.
6477 2004-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
6479         PR objc/17923
6480         * tree.c (staticp): A CONST_DECL has static storage if either
6481         TREE_STATIC or DECL_EXTERNAL is set.
6482         * c-decl.c (pushdecl_top_level): Accept CONST_DECLs which can
6483         have null names.
6485 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6487         * expr.c (store_expr): Remove dont_store_target.
6489 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6491         * tree-cfg.c (thread_jumps): Speed up by using a worklist.
6493 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6495         * tree-cfg.c (thread_jumps): Move a part of it to ...
6496         (thread_jumps_from_bb): ... here.
6498 2004-10-21  David Edelsohn  <edelsohn@gnu.org>
6500         * dbxout.c (DBX_FINISH_SYMBOL): Add asm_out_file argument.
6501         * xcoffout.h (DBX_FINISH_SYMBOL): Change asmfile to (ASMFILE).
6503 2004-10-21  Kazu Hirata  <kazu@cs.umass.edu>
6505         * expr.c (store_expr): Clean up by renaming want_value to
6506         call_param_p.
6508 2004-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
6510         * config/sh/linux-unwind.h (sh_fallback_frame_state): Don't
6511         fixup pc here.
6513 2004-10-21  Aldy Hernandez  <aldyh@redhat.com>
6515         PR 18004.
6516         * expmed.c (store_bit_field): Pass original 'value' before
6517         recursing.
6519 2004-10-21  Nicolas Pitre <nico@cam.org>
6521         * config/arm/ieee754-sf.S: Large speed improvements. Fix NAN handling.
6522         * config/arm/ieee754-df.S: Ditto.
6524 2004-10-20  Zack Weinberg  <zack@codesourcery.com>
6526         * dbxout.c (asmfile): Delete.  All uses changed to asm_out_file.
6527         (DBX_BLOCKS_FUNCTION_RELATIVE, DBX_LINES_FUNCTION_RELATIVE):
6528         Default to 0.
6529         (dbxout_source_line): Use DBX_OUTPUT_SOURCE_LINE when defined.
6530         When it is not, but DBX_LINES_FUNCTION_RELATIVE is true, emit
6531         an internal label and an N_SLINE .stabn whose value is the
6532         difference between that label and the function entry label.
6533         (dbxout_finish): If DBX_OUTPUT_MAIN_SOURCE_FILE_END is not defined,
6534         but DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END is, emit a
6535         label and an N_SO stab with an empty string referring to it.
6536         (dbx_output_lbrac, dbx_output_rbrac): Use if statement instead
6537         of #ifdef directive to test DBX_BLOCKS_FUNCTION_RELATIVE.
6538         (dbxout_type_methods, dbxout_symbol): Remove #if 0 block.
6539         (dbxout_prepare_symbol): Remove #ifdef WINNING_GDB block, this
6540         macro is never defined.
6541         * sdbout.c (sdbout_source_line_counter): Delete.
6542         (PUT_SDB_SRC_FILE): Delete.  Uses replaced with sole definition.
6543         (sdbout_source_line): Use SDB_OUTPUT_SOURCE_LINE, which takes
6544         only two arguments.
6545         * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Rename ASM_OUTPUT_LINE.
6547         * config/dbxcoff.h, config/dbxelf.h: Remove unncessary #undefs.
6548         * config/c4x/c4x.h, config/pa/pa.h: Remove unnecessary macro
6549         definitions (identical to default).
6550         * config/darwin.h, config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
6551         * config/h8300/coff.h, config/pa/som.h, config/sh/elf.h:
6552         Define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END, not
6553         DBX_OUTPUT_MAIN_SOURCE_FILE_END.
6554         * config/dbxcoff.h, config/dbxelf.h, config/ptx4.h
6555         * config/mcore/mcore-pe.h, config/pa/som.h, config/sh/elf.h:
6556         Define DBX_LINES_FUNCTION_RELATIVE, not ASM_OUTPUT_SOURCE_LINE.
6557         * config/alpha/alpha-protos.h: Don't prototype alpha_output_lineno.
6558         * config/alpha/alpha.c: Move declaration of num_source_filenames up.
6559         (alpha_start_function): Use SDB_OUTPUT_SOURCE_LINE.
6560         (sym_lineno): Delete.
6561         (alpha_output_filename): Do not emit N_SOL stabs here.  Remove
6562         now-unused variable.
6563         (alpha_output_lineno): Delete.
6564         * config/mips/mips-protos.h: Don't prototype mips_output_lineno.
6565         * config/mips/mips.c (mips_output_filename): Don't use
6566         ASM_OUTPUT_FILENAME. Don't emit N_SOL stabs here.
6567         (mips_output_lineno): Delete.
6568         (mips_output_function_prologue: Use SDB_OUTPUT_SOURCE_LINE.
6569         * config/alpha/alpha.h: Define DBX_OUTPUT_SOURCE_LINE and
6570         SDB_OUTPUT_SOURCE_LINE, not ASM_OUTPUT_SOURCE_LINE.
6571         * config/mips/mips.h: Likewise.  Don't define ASM_OUTPUT_FILENAME.
6572         * config/mips/sdb.h: Use SDB_OUTPUT_SOURCE_LINE.
6573         * config/avr/avr.h: Don't define ASM_OUTPUT_SOURCE_LINE.
6574         * config/mmix/mmix.h: Likewise.
6575         * config/mmix/mmix.c (mmix_asm_output_source_line): Delete.
6576         * config/mmix/mmix-protos.h: Don't prototype it.
6577         * config/alpha/unicosmk.h: Also #undef PREFERRED_DEBUGGING_TYPE;
6578         no need to #undef ASM_OUTPUT_SOURCE_LINE.
6579         * config/arm/aout.h: Remove RISCiX-specific definition of
6580         DBX_OUTPUT_MAIN_SOURCE_FILENAME.
6581         * config/m32r/m32r.h: Define DBX_OUTPUT_SOURCE_LINE, not
6582         ASM_OUTPUT_SOURCE_LINE.
6583         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Rename to
6584         DBX_OUTPUT_SOURCE_LINE.  Don't use current_function_func_begin_label.
6585         * config/vax/elf.h: No need to define DBX_OUTPUT_FUNCTION_END.
6587         * doc/tm.texi: Update.
6589 2004-10-20  Richard Henderson  <rth@redhat.com>
6591         * tree-sra.c (instantiate_element): Copy DECL_IGNORED_P also.
6593 2004-10-20  Kelley Cook  <kcook@gcc.gnu.org>
6595         * configure.ac: Revert my previous patch.
6596         * configure: Regenerate.
6598 2004-10-20  Ben Elliston  <bje@au.ibm.com>
6600         * config/rs6000/rs6000.c
6601         (rs6000_va_start): Use build_va_arg_indirect_ref.
6602         (rs6000_gimplify_va_arg): Likewise.
6604 2004-10-20  Bryce McKinlay  <mckinlay@redhat.com>
6606         PR java/15575
6607         * configure.ac: Declare AM_LANGINFO_CODESET.
6608         * aclocal.m4: Define AM_LANGINFO_CODESET.
6609         * configure, config.in: Rebuilt.
6611 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
6613         * expr.c (store_expr): Remove code that is run when
6614         want_value & 1 is nonzero.
6616 2004-10-20  Mark Mitchell  <mark@codesourcery.com>
6618         * gthr-posix.h (__gthread_active_p): Use __extension__ around cast
6619         from function pointer to void *.
6621 2004-10-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6623         PR target/18032
6624         * config/sh/sh.c (sh_expand_epilogue): Emit a blockage insn before
6625         the frame pointer adjustment when exception handling is enabled.
6627 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
6629         * stor-layout.c: Fix a comment typo.
6631 2004-10-20  Kazu Hirata  <kazu@cs.umass.edu>
6633         * expr.c (store_field): Remove two arguments value_mode and
6634         unsignedp.
6635         (expand_assignment, store_constructor_field,
6636         expand_expr_real_1): Adjust calls to store_field.
6638 2004-10-18  Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
6640         * config/arc/lib1funcs.asm (___umulsidi3): Correct usage of flags.
6642         PR target/17317
6643         * config/arc/arc.h (REGNO_OK_FOR_BASE_P,REGNO_OK_FOR_INDEX_P,
6644         REG_OK_FOR_BASE, REG_OK_FOR_INDEX): Consider blink(r31) as a valid
6645         base and index register for loads.
6647         * config/arc/t-arc: Fix multilib handling.
6649 2004-10-20  Hans-Peter Nilsson  <hp@bitrange.com>
6651         * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
6652         don't inspect BLOCK_FOR_INSN for barriers.
6653         * emit-rtl.c (emit_barrier_before): Revert last change.
6654         (emit_barrier_after, emit_barrier): Ditto.
6656         * doc/extend.texi (Extended Asm): Warn and provide example
6657         solution for using a call-clobbered asm register.
6658         (Local Reg Vars): Similar.  Cross-reference example.
6660 2004-10-19  Andrew Pinski  <pinskia@physics.uc.edu>
6662         * tree-cfg.c (group_case_labels): Look at the second to last
6663         case statement for combing with the default case.
6665 2004-10-19  Richard Hendeson  <rth@redhat.com>
6667         PR 17962
6668         * stor-layout.c (layout_type): Set TYPE_ALIGN for vectors.
6670 2004-10-19  Richard Hendeson  <rth@redhat.com>
6672         * builtins.c (expand_builtin_memmove): If fold_builtin_memmove
6673         succeeds, only expand the result.
6675 2004-10-19  Richard Hendeson  <rth@redhat.com>
6677         PR middle-end/17885
6678         * tree.c (recompute_tree_invarant_for_addr_expr): Always poll address
6679         of INDIRECT_REF.
6681 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
6683         * tree-cfg.c (thread_jumps): Use a do-while loop instead of a
6684         loop with goto.
6686 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
6688         * expr.c (expand_assignment): Remove the last argument.
6689         Change the return type to void.
6690         * expr.h: Update the prototype of expand_assignment.
6691         * function.c (assign_parm_setup_reg): Update a call to
6692         expand_assignment.
6693         * stmt.c (expand_asm_expr): Likewise.
6695 2004-10-19  Kazu Hirata  <kazu@cs.umass.edu>
6697         * expr.c (expand_expr_real_1) <MODIFY_EXPR>: Remove
6698         unnecessary assignments to temp.  Return const0_rtx.
6700 2004-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
6702         * config/sh/sh.c (sh5_schedule_saves): Fix typo.
6704 2004-10-18  Kelley Cook  <kcook@gcc.gnu.org>
6706         * configure.ac (powerpc-*-darwin*): Require assembler to support
6707         .machine directive.
6708         * configure: Regenerate.
6710 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6712         * reload1.c (ior_hard_reg_set): Remove.
6713         (finish_spills): Use IOR_HARD_REG_SET instead of
6714         ior_hard_reg_set.
6716 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6718         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP): Speed up by shifting
6719         the currently visited word to right.
6721 2004-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
6723         PR middle-end/18045
6724         * expmed.c (expand_smod_pow2): Handle modes whose size
6725         is greater than that of HOST_WIDE_INT.
6727 2004-10-18  Ziemowit Laski  <zlaski@apple.com>
6729         * c-parse.in (reservedwords): Add OBJC_TYPE_QUAL as alternative.
6731 2004-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
6732             Roger Sayle  <roger@eyesopen.com>
6734         PR middle-end/17813
6735         * dojump.c (discard_pending_stack_adjust): New function.
6736         (clear_pending_stack_adjust): Call it.
6737         * expr.h (discard_pending_stack_adjust): Declare it.
6738         * explow.c (emit_stack_save): Emit pending stack adjustments
6739         before saving the stack pointer.
6740         (emit_stack_restore): Discard pending stack adjustments before
6741         restoring the stack pointer.
6743 2004-10-18  Richard Henderson  <rth@redhat.com>
6745         * c-common.c (handle_mode_attribute): Allow scalar->vector
6746         type changes yet.
6748 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6750         * expr.c (expand_expr_real_1) [MODIFY_EXPR]: Don't request a
6751         value to expand_assignment.
6753 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6755         * tree-cfg.c (cleanup_tree_cfg): Don't iterate on
6756         thread_jumps.
6757         (thread_jumps): Iterate until no new forwarder block arises.
6759 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6761         * tree-cfg.c (tree_forwarder_block_p): Don't set forwardable.
6762         (thread_jumps): Use forwardable as cache of
6763         tree_forwarder_block_p throughout the function.
6765 2004-10-18  Andreas Krebbel  <krebbel1@de.ibm.com>
6767         * cfg.c (dump_flow_info): Remove redundant dump of reg life info.
6769 2004-10-18  Andrew Pinski  <pinskia@physics.uc.edu>
6771         PR middle-end/15014
6772         PR middle-end/16973
6773         * tree-cfg.c (remove_bb): If we have a label expression in the
6774         basic block and the label we have taken the address, move the
6775         label expression to the basic block which is previous in the
6776         linked list.
6777         (tree_verify_flow_info): Fix printing out the label name of the
6778         problematic label expression.
6780 2004-10-18  Pat Haugen  <pthaugen@us.ibm.com>
6782         PR rtl-optimization/18002
6783         * simplify-rtx.c (mode_signbit_p): Externalize function...
6784         * rtl.h (mode_signbit_p): ... to here.
6785         * combine.c (simplify_shift_const): Recognize PLUS signbit as
6786         canonical form of XOR signbit and move to outer op.
6788 2004-10-18  Diego Novillo  <dnovillo@redhat.com>
6790         * tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
6791         Update all callers.
6792         * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt.
6793         Don't call fold_stmt more than once, use bsi_replace.
6795 2004-10-18  Diego Novillo  <dnovillo@redhat.com>
6797         PR tree-optimization/17656
6798         * tree-ssa.c (replace_immediate_uses): When replacing a
6799         constant, if the call to fold_stmt produced a different
6800         statement, get an appropriate statement pointer by scanning
6801         STMT's basic block.
6803 2004-10-18  Richard Henderson  <rth@redhat.com>
6805         * pointer-set.c (hash1): Don't use libm functions in fallback case.
6807 2004-10-18  H.J. Lu  <hongjiu.lu@intel.com>
6809         PR bootstrap/17684
6810         * Makefile.in (clean): Remove libgcc_s$(SHLIB_EXT).1.stage?.
6811         (stage1-start): Remove and copy libunwind.a and
6812         libunwind*$(SHLIB_EXT) instead of libunwind*.
6813         (stage2-start): Likewise.
6814         (stage3-start): Likewise.
6815         (stage4-start): Likewise.
6816         (stageprofile-start): Likewise.
6817         (stagefeedback-start): Likewise.
6819         * config/alpha/t-osf4 (SHLIB_LINK): Use a temporary file for
6820         the shared library to be created and don't remove the existing
6821         shared library.
6822         * config/arm/t-netbsd (SHLIB_LINK): Likewise.
6823         * config/i386/t-nwld (SHLIB_LINK): Likewise.
6824         * config/mips/t-slibgcc-irix (SHLIB_LINK): Likewise.
6825         * config/pa/t-hpux-shlib (SHLIB_LINK): Likewise.
6826         * config/sh/t-linux (SHLIB_LINK): Likewise.
6827         * config/t-libunwind-elf (SHLIBUNWIND_LINK): Likewise.
6828         * config/t-slibgcc-darwin (SHLIB_LINK): Likewise.
6829         * config/t-slibgcc-elf-ver (SHLIB_LINK): Likewise.
6830         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
6832         * mklibgcc.in (libgcc-stage-start): Also move "*${objext}s"
6833         files.
6835 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6837         * basic-block.h (reg_set_iterator): New.
6838         (EXECUTE_IF_SET_IN_REG_SET): Make it iterator style.
6839         (EXECUTE_IF_AND_COMPL_IN_REG_SET): Likewise.
6840         (EXECUTE_IF_AND_IN_REG_SET): Likewise.
6841         * caller-save.c (save_call_clobbered_regs): Adjust to the new
6842         style.
6843         * cfgcleanup.c (thread_jump): Likewise.
6844         * cfgrtl.c (safe_insert_insn_on_edge): Likewise.
6845         * conflict.c (conflict_graph_compute): Likewise.
6846         * flow.c (verify_local_live_at_start, update_life_info,
6847         initialize_uninitialized_subregs, propagate_one_insn,
6848         init_propagate_block_info, free_propagate_block_info,
6849         propagate_block, dump_regset): Likewise.
6850         * global.c (global_conflicts): Likewise.
6851         * graph.c (start_bb): Likewise.
6852         * local-alloc.c (update_equiv_regs): Likewise.
6853         * loop.c (load_mems): Likewise.
6854         * reload1.c (compute_use_by_pseudos, order_regs_for_reload,
6855         find_reg, finish_spills): Likewise.
6856         * resource.c (mark_target_live_regs): Likewise.
6857         * sched-deps.c (sched_analyze_insn): Likewise.
6858         * sched-rgn.c (sched-rgn.c): Likewise.
6859         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
6861 2004-10-18  Jakub Jelinek  <jakub@redhat.com>
6863         * config/i386/i386.md (addqi_1_slp): Test for incdec_operand
6864         operand 1 instead of 2
6866 2004-10-18  Kazu Hirata  <kazu@cs.umass.edu>
6868         * loop-unroll.c: Fix comment typos.
6870 2004-10-18  Revital Eres  <eres@il.ibm.com>
6872         * Makefile.in (loop-unroll.o): Add VARRAY_H dependency.
6873         * loop-unroll.c: Include varray.h.
6874         (struct var_to_expand, struct opt_info): Rename split_ivs_info to
6875         opt_info and expand it to support variable expansion.
6876         (analyze_insns_in_loop): Rename analyze_ivs_to_split and
6877         expand it to support variable expansion.
6878         (pt_info_start_duplication): Rename si_info_start_duplication.
6879         (apply_opt_in_copies): Rename split_ivs_in_copies and add support
6880         to the variable expansion optimization.
6881         (free_opt_info): Rename free_si_info.
6882         (analyze_insn_to_expand_var, referenced_in_one_insn_in_loop_p,
6883         expand_var_during_unrolling, insert_var_expansion_initialization,
6884         combine_var_copies_in_loop_exit, release_var_copies,
6885         get_expansion): New functions.
6886         (peel_loop_completely, unroll_loop_constant_iterations,
6887         unroll_loop_runtime_iterations, peel_loop_simple,
6888         unroll_loop_stupid): Change uses of struct si_info
6889         to struct opt_info
6890         and add uses of fvariable-expansion-in-unroller flag.
6891         * params.def: Add parameter to restrict the number of expansions.
6892         * params.h: (MAX_VARIABLE_EXPANSIONS): New define to restrict
6893         the number of expansions.
6894         * common.opt: (fvariable-expansion-in-unroller): New flag.
6895         * doc/invoke.texi: (fvariable-expansion-in-unroller): Document.
6897 2004-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
6899         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Define
6900         __GXX_MERGED_TYPEINFO_NAMES to 0.
6902 2004-10-17  Hans-Peter Nilsson  <hp@bitrange.com>
6904         * cfgrtl.c (rtl_verify_flow_info_1): When checking insns in a bb,
6905         handle barriers in a bb by checking that it points to a NULL bb.
6906         * emit-rtl.c (emit_barrier_before): Set BLOCK_FOR_INSN to NULL.
6907         (emit_barrier_after, emit_barrier): Ditto.
6909 2004-10-18  Joseph S. Myers  <jsm@polyomino.org.uk>
6911         * doc/extend.texi (Attribute Syntax): Clarify details of
6912         attributes on parameters.
6914 2004-10-17  Zdenek Dvorak  <dvorakz@suse.cz>
6916         * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Move checking out of
6917         loop.
6919 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
6921         Revert:
6922         2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
6924         * c-typeck.c (default_function_array_conversion): Always create
6925         &a[0] for array types.
6926         (build_unary_op): Do not fold &a[x] into a + x.
6928 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
6930         PR middle-end/17925
6931         * cfgexpand.c (expand_gimple_cond_expr): Emit line notes for next basic
6932         block if there is a goto with a locus.
6934 2004-10-17  Kazu Hirata  <kazu@cs.umass.edu>
6936         * config/elfos.h, config/gofast.h, config/interix.h,
6937         config/netbsd.h, config/svr3.h, config/vxworks.h,
6938         config/alpha/alpha-modes.def, config/alpha/alpha-protos.h,
6939         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
6940         config/alpha/netbsd.h, config/arm/arm-modes.def,
6941         config/arm/unknown-elf.h, config/c4x/c4x-modes.def,
6942         config/cris/aout.h, config/frv/frv-modes.def,
6943         config/i386/beos-elf.h, config/i386/gas.h,
6944         config/i386/i386-coff.h, config/i386/i386-modes.def,
6945         config/i386/linux.h, config/i386/linux64.h,
6946         config/i386/mingw32.h, config/i386/netbsd-elf.h,
6947         config/i386/netbsd64.h, config/i386/sco5.h,
6948         config/i386/sol2.h, config/i386/uwin.h, config/i860/i860.md,
6949         config/ia64/ia64-modes.def, config/ia64/itanium1.md,
6950         config/ia64/itanium2.md, config/m68k/m68k-modes.def,
6951         config/mips/mips-modes.def, config/mips/sdb.h,
6952         config/mips/vr.h, config/mips/vxworks.h,
6953         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h,
6954         config/pa/pa32-linux.h, config/rs6000/40x.md,
6955         config/rs6000/7450.md, config/rs6000/8540.md,
6956         config/rs6000/linuxspe.h, config/rs6000/power4.md,
6957         config/rs6000/rs6000-modes.def, config/rs6000/rtems.h,
6958         config/rs6000/spe.h, config/s390/2064.md, config/s390/linux.h,
6959         config/s390/s390-modes.def, config/sh/elf.h,
6960         config/sh/sh-modes.def, config/sh/sh64.h,
6961         config/sparc/ultra1_2.md, config/sparc/ultra3.md,
6962         config/stormy16/stormy16.md, config/v850/v850-protos.h,
6963         config/vax/vax.md: Update copyright.
6965 2004-10-17  Kazu Hirata  <kazu@cs.umass.edu>
6967         * expr.c (expand_expr_real_1): Remove an obsolete comment.
6969 2004-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
6971         * c-typeck.c (default_function_array_conversion): Always create
6972         &a[0] for array types.
6973         (build_unary_op): Do not fold &a[x] into a + x.
6975 2004-10-17  Jakub Jelinek  <jakub@redhat.com>
6977         * pointer-set.c (hash1): Use integer part of 2^64 / phi
6978         instead 2^32 / phi if long is 64-bit.
6980 2004-10-17  Joseph S. Myers  <jsm@polyomino.org.uk>
6982         * c-common.h (enum rid): Remove RID_PTRBASE, RID_PTREXTENT and
6983         RID_PTRVALUE.
6984         * c-parse.in (PTR_VALUE, PTR_BASE, PTR_EXTENT): Remove %token
6985         declarations.
6986         (reswords): Remove __ptrbase, __ptrbase__, __ptrextent,
6987         __ptrextent__, __ptrvalue and __ptrvalue__.
6988         (rid_to_yy): Remove RID_PTRBASE, RID_PTREXTENT and RID_PTRVALUE
6989         entries.
6991 2004-10-16  Dale Johannesen  <dalej@apple.com>
6993         * c-common.c (c_common_get_alias_set):  Use GGC for type_hash_table.
6995 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
6997         PR tree-optimization/17766
6998         * basic-block.h (enum dom_state): DOM_CONS_OK removed.
6999         (dom_info_available_p): Declare.
7000         * cfghooks.c (split_block, make_forwarder_block): Use
7001         dom_info_available_p.
7002         * dominance.c (compute_dom_fast_query, calculate_dominance_info,
7003         free_dominance_info, verify_dominators): Ditto.
7004         (dom_info_available_p): New function.
7005         * tree-cfg.c (cleanup_control_expr_graph): Free dominance information.
7006         (thread_jumps): Use dom_info_available_p.
7007         * tree-complex.c (expand_complex_div_wide): Ditto.
7008         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
7010 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
7012         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field important_candidates.
7013         (find_best_candidate): Take also important candidates into account.
7014         (find_optimal_iv_set): Initialize important_candidates bitmap.
7016 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
7018         PR tree-optimization/17560
7019         * predict.c (tree_estimate_probability): Mark irreducible
7020         loops.
7022 2004-10-16  Zdenek Dvorak  <dvorakz@suse.cz>
7024         PR rtl-optimization/17723
7025         * cfgcleanup.c (merge_memattrs): Handle case when
7026         MEM_SIZE == NULL_RTX.
7028 2004-10-15  Andrew Pinski  <pinskia@physics.uc.edu>
7030         * toplev.c (dump_file_name): Change type to be const.
7032 2004-10-15  Joseph S. Myers  <jsm@polyomino.org.uk>
7034         * c-typeck.c (build_compound_expr, build_c_cast): Don't try to use
7035         non_lvalue to stop something being a null pointer constant.
7037 2004-10-15  Aldy Hernandez  <aldyh@redhat.com>
7039         * config/rs6000/rs6000.h (FUNCTION_ARG_REGNO_P): FPRs are only
7040         available for TARGET_FPRS.
7041         (FUNCTION_VALUE_REGNO_P): Same.
7043 2004-10-15  Geoffrey Keating  <geoffk@apple.com>
7045         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7046         -maltivec in same style as other ISA options.
7048 2004-10-15  Jon Grimm <jgrimm2@us.ibm.com>
7050         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Add __powerpc__
7051         definition.
7053 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
7055         * bitmap.c, bitmap.h, builtin-attrs.def, cfglayout.h,
7056         collect2.h, conflict.c, coretypes.h, coverage.h, errors.h,
7057         gcc.h, gcov-dump.c, gen-protos.c, gencheck.c, gencodes.c,
7058         genconstants.c, gengenrtl.c, genmodes.c, genpeep.c,
7059         gensupport.h, graph.h, gthr-gnat.c, gthr-gnat.h, gthr-posix.c,
7060         gthr-posix.h, hard-reg-set.h, hwint.h, integrate.h, libgcc2.c,
7061         lists.c, machmode.def, mips-tdump.c, opts.h, params.c,
7062         predict.def, predict.h, protoize.c, reload.h, resource.h,
7063         rtl-error.c, sbitmap.c, sbitmap.h, sreal.c, tlink.c,
7064         tree-dump.h, tree-inline.h, unwind-dw2-fde.c, unwind-dw2.c,
7065         unwind-sjlj.c, value-prof.h: Update copyright.
7067 2004-10-15  Kazu Hirata  <kazu@cs.umass.edu>
7069         * pointer-set.c, tree-vectorizer.c: Fix comment typos.
7071 2004-10-15  Diego Novillo  <dnovillo@redhat.com>
7073         * tree-optimize.c (execute_one_pass): Stop timer right after
7074         executing the pass.
7076 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
7078         Revert:
7079         2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
7080         PR middle-end/17967
7081         Revert:
7082                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
7083                 (remove_useless_stmts_1):  Fold trees we know how to fold.
7085 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
7087         * configure.ac: Add .machine power4 directive when testing for
7088         mfcr field.
7089         * configure: Regenerate.
7091 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
7093         * config/darwin.h (JUMP_TABLES_IN_TEXT_SECTION): Don't define.
7095 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
7097         * tree-vectorizer.c (vect_transform_loop): Declare vectorization_factor
7098         always.
7100 2004-10-14  Daniel Jacobowitz  <dan@codesourcery.com>
7102         * config/rs6000/rs6000.h (REG_CLASS_FROM_LETTER): Return NO_REGS
7103         for 'f' if !TARGET_FPRS.
7105 2004-10-14  Richard Henderson  <rth@redhat.com>
7107         PR debug/14492
7108         * dwarf2out.c (loc_descriptor_from_tree_1): Handle FIX_*_EXPR.
7110 2004-10-14  Richard Henderson  <rth@redhat.com>
7112         PR c/17023
7113         * c-decl.c (store_parm_decls_oldstyle): Care for parameter type
7114         as error_mark_node.
7115         * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null
7116         instaed of current_function_decl non-null.
7118 2004-10-14  Matt Austern  <austern@apple.com>
7120         * pointer-set.c: New file, special-purpose hash table.
7121         * pointer-set.h: New file.
7122         * tree.h (struct pointer_set_t): Declare as opaque type.
7123         (tree_walk): Last argument is pointer_set_t* now.
7124         * tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
7125         (walk_type_fields):
7126         (walk_tree): Convert from htab_t to pointer_set_t for keeping
7127         track of which nodes have already been visited.
7128         (walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
7129         * cgraphunit.c (cgraph_create_edges): Likewise.
7130         (cgraph_characterize_statics_local): Likewise.
7131         * tree-dfa.c (collect_dfa_stats): Likewise.
7132         * langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
7133         pointer_set_t* now.
7134         * langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
7135         * langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
7136         of walk_subtrees is pointer_set_t* now.
7137         * Makefile.in (OBJS-common): add pointer-set.o
7138         (tree-inline.o): Depends on pointer-set.h
7139         (tree-dfa.o): Likewise
7140         (cgraphunit.o): Likewise
7142 2004-10-14  Geoffrey Keating  <geoffk@apple.com>
7144         * config/rs6000/darwin.h (ASM_SPEC): Delete.
7145         (TARGET_ASM_FILE_START): Define.
7146         * config/darwin.h (ASM_SPEC): Define.
7147         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Don't supply
7148         -mlong-double-128, it's the default.  Update comment about reason
7149         for force_cpusubtype_ALL.
7150         * config/rs6000/darwin-vecsave.asm: Supply .machine.
7151         * config/rs6000/darwin-world.asm: Likewise.
7152         * config/rs6000/rs6000.c (rs6000_darwin_file_start): New.
7153         (symbolic_operand): Delete #if 0ed code.
7155 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
7157         * stmt.c (add_case_node): Make sure that we have integer
7158         constant before calling tree_int_cst_compare.
7160 2004-10-14  Andrew Pinski  <pinskia@physics.uc.edu>
7162         PR middle-end/17967
7163         Revert:
7164                 * tree-cfg.c (remove_usless_stmts_cond):  Fold statement.
7165                 (remove_useless_stmts_1):  Fold trees we know how to fold.
7167 2004-10-14  Joseph S. Myers  <joseph@codesourcery.com>
7169         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS),
7170         config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow
7171         -m64.
7173 2004-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
7175         * reload.c (find_reloads): When reloading a PLUS with constant
7176         operand, make sure the constant is pushed to the constant pool
7177         if required.
7178         * config/s390/s390.c (s390_secondary_input_reload_class): Remove
7179         reload bug workaround.
7180         (s390_expand_plus_operand): Likewise.
7182 2004-10-14  David Edelsohn  <edelsohn@gnu.org>
7184         * opts.c (common_handle_option): Do not enable
7185         flag_speculative_prefetching for -fprofile-generate/use.
7187 2004-10-14  Devang Patel  <dpatel@apple.com>
7189         PR 17635
7190         * tree-if-conv.c (process_phi_nodes): Process latch block.
7191         (combine_blocks): Process latch block and update loop structure.
7193 2004-10-14  Olga Golovanevsky  <olga@il.ibm.com>
7195         * tree-vectorizer.c (vect_generate_tmps_on_preheader):
7196         (vect_update_ivs_after_vectorizer):
7197         (vect_transform_for_unknown_loop_bound):
7198         (tree_duplicate_loop_to_edge):
7199         (allocate_new_names):
7200         (rename_use_op):
7201         (rename_def_op):
7202         (rename_variables_in_bb):
7203         (free_new_names):
7204         (rename_variables_in_loop):
7205         (copy_phi_nodes):
7206         (update_phis_for_duplicate_loop):
7207         (update_phi_nodes_for_guard):
7208         (make_loop_iterate_ntimes):
7209         (tree_duplicate_loop_to_edge_cfg):
7210         (add_loop_guard):
7211         (vect_analyze_loop_with_symbolic_num_of_iters):
7212         (verify_loop_for_duplication):
7213         (vect_gen_niters_for_prolog_loop):
7214         (vect_update_niters_after_peeling):
7215         (vect_update_inits_of_dr):
7216         (vect_update_inits_of_drs):
7217         (vect_build_loop_niters):
7218         (vect_do_peeling_for_alignment): New functions.
7219         (vect_transform_loop): Add unknown and known but indivisible loop
7220         bound support; add peeling for unalignment support.
7221         (vect_analyze_loop_form): Support symbolic number of iterations.
7222         (vect_transform_loop_bound): New input parameter.
7223         (vect_get_loop_niters): Change input parameter type.
7224         (new_loop_vec_info): LOOP_VINFO_NITERS is tree now.
7225         (vectorizable_store): Allow unaligned access.
7226         (vectorize_loops): Add rewrite_into_loop_closed_ssa.
7227         (vect_analyze_data_refs_alignment): Allowed one unaligned
7228         store.
7229         * tree-vectorizer.h (LOOP_VINFO_NITERS_KNOWN_P): Redefined
7230         to use tree.
7231         (LOOP_VINFO_INT_NITERS): New macro.
7232         (MAX_NUMBER_OF_UNALIGNED_DATA_REFS): New define.
7233         (do_peeling_for_alignment):
7234         (unaligned_drs): New members of _loop_vec_info.
7235         (LOOP_DO_PEELING_FOR_ALIGNMENT): New macro.
7237 2004-10-14  Ranjit Mathew  <rmathew@hotmail.com>
7239         * tree.h (TREE_STRING_POINTER): Wrap in "const char *".
7240         (struct tree_string): Remove "const" qualifier for "str".
7242 2004-10-14  Ira Rosen  <irar@il.ibm.com>
7244         * tree-vectorizer.c (vect_analyze_data_refs): Call
7245         vect_get_base_and_bit_offset to get memory tag for array ref.
7246         (vect_create_addr_base_for_vector_ref): Remove redundant checks.
7248 2004-10-14  Richard Earnshaw  <rearnsha@arm.com>
7250         * configure.ac: Use $LN_S for creating symlinks (not $LN).
7251         * configure: Regenerate.
7253 2004-10-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7255         * doc/install.texi (*-*-solaris2*): Update with info about kernel
7256         patches to solve spurious testsuite failures.
7258 2004-10-14  Dorit Naishlos  <dorit@il.bim.com>
7260         * tree-vectorizer.c (get_vectype_for_scalar_type): Added debug prinouts.
7261         Added check that vectype is VECTOR_MODE_P, instead of check for BLKmode.
7262         (vect_analyze_operations): Make sure the vectorization factor > 1. Add
7263         gcc_assert under ENABLE_CHECKING.
7264         (vectorizable_operation): Remove check for VECTOR_MODE_P (moved to
7265         get_vectype_for_scalar_type).
7267         (vect_get_vec_def_for_operand): Remove redundant variables.
7268         (vect_transform_loop): Likewise.
7270 2004-10-14  Richard Sandiford  <rsandifo@redhat.com>
7272         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Make r11 fixed and
7273         global for -mcaller-super-interworking.
7274         (CALLER_INTERWORKING_SLOT_SIZE): New macro.
7275         * config/arm/arm.c (thumb_compute_save_reg_mask): Save r11 if
7276         CALLER_INTERWORKING_SLOT_SIZE is nonzero and the function does
7277         not need a frame pointer.
7278         (arm_get_frame_offsets): Add CALLER_INTERWORKING_SLOT_SIZE bytes to
7279         the soft frame pointer offset.
7280         (thumb_expand_prologue): Set up r11 for -mcaller-super-interworking.
7281         * config/arm/arm.md (*call_reg_thumb, *call_value_reg_thumb): Use
7282         _interwork_{r7,r11}_call_via_rN if some arguments are passed on
7283         the stack.  Use frame_pointer_needed to choose between them.
7284         * config/arm/lib1funcs.asm (_arm_return_{r7,r11}): New functions.
7285         (interwork_with_frame): New macro.
7286         (interwork): Add _interwork_{r7,r11}_call_via_rN().
7288 2004-10-14  Ben Elliston  <bje@au.ibm.com>
7290         PR other/17900
7291         * diagnostic.c (trim_filename): Fix logic bug in walking backwards
7292         up the filename looking for a previous directory separator.
7294 2004-10-14  Joseph S. Myers  <jsm@polyomino.org.uk>
7296         * c-tree.h (enum c_typespec_kind, struct c_typespec,
7297         parser_xref_tag): New.
7298         (struct c_declspecs): Add tag_defined_p.  Adjust definition of
7299         typedef_p.
7300         (declspecs_add_type): Adjust prototypes.
7301         * c-parse.in (%union): Add tstype.
7302         (typespec_nonattr, typespec_attr, typespec_reserved_nonattr,
7303         typespec_reserved_attr, typespec_nonreserved_nonattr,
7304         structsp_attr, structsp_nonattr): Change to tstype.  Update
7305         actions.
7306         * c-decl.c (build_null_declspecs): Initialize tag_defined_p.
7307         (declspecs_add_type): Update to take struct c_typespec argument.
7308         Set tag_defined_p and typedef_p as appropriate.
7309         (xref_tag): Rename to parser_xref_tag and replace by wrapper.
7310         Update to return struct c_typespec.
7311         (shadow_tag_warned): Don't let empty declarations with qualifiers
7312         or storage class specifiers redeclare a tag if a previous
7313         declaration is visible.
7315 2004-10-13  Richard Henderson  <rth@redhat.com>
7317         PR debug/15860
7318         * dwarf2out.c (rtl_for_decl_location): Apply big-endian correction
7319         for DECL_INCOMING_RTL.
7321 2004-10-14  Hans-Peter Nilsson  <hp@axis.com>
7323         PR target/17984
7324         * config/cris/cris.md (asrandb, asrandw, lsrandb, lsrandw): Apply
7325         trunc_int_for_mode for constants used in shortened mode.
7327 2004-10-13  Richard Henderson  <rth@redhat.com>
7329         PR c/17384
7330         * c-common.c (handle_mode_attribute): Disallow mode changes that
7331         alter the CODE of the top-level type.
7333         * crtstuff.c (__FRAME_END__): Remove mode attribute.  Find 32-bit
7334         integer from internal limits macros.
7335         * config/i386/mm3dnow.h (__v2sf): Fix base type.
7337 2004-10-13  Richard Henderson  <rth@redhat.com>
7339         PR debug/13841
7340         * function.c (instantiate_decl): Recurse for CONCAT.
7342 2004-10-13  David Edelsohn  <edelsohn@gnu.org>
7344         * config/rs6000/rs6000.md (andsi3): Add attribute "compare" for
7345         andi./andis.
7346         (anddi3): Same.
7347         (extzvdi_internal1): Add attribute "compare".
7348         (extzvdi_internal2): Same.
7350 2004-10-12  Tom Tromey  <tromey@redhat.com>
7352         * doc/md.texi (Insn Canonicalizations): Removed extraneous quote.
7354 2004-10-13  Dale Johannesen  <dalej@apple.com>
7356         * doc/extend.texi (Extended Asm):  Rewrite asm volatile description.
7358 2004-10-13  Frank Ch. Eigler  <fche@redhat.com>
7360         * toplev.c (compile_file): Call mudflap_finish_file from here ...
7361         * c-decl.c (c_write_global_declarations): ... instead of here ...
7362         * cp/decl.c (cp_finish_file): ... and here.
7363         * tree-mudflap.c (mudflap_enqueue_decl): Reword a warning message.
7365 2004-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
7367         * tree-ssa-dom.c (record_range): Free the element if we are not
7368         going to use it.
7370 2004-10-13  Tom Tromey  <tromey@redhat.com>
7372         PR java/15578:
7373         * gcc.c (option_map): Added --extdirs and --encoding.
7375 2004-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
7377         PR target/14454
7378         * config/sparc/sparc.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Set to
7379         sparc_can_output_mi_thunk.
7380         (sparc_output_mi_thunk): Simplify handling of delta offset.  Add
7381         handling of vcall offset.
7382         (sparc_can_output_mi_thunk): New predicate.
7383         * doc/tm.texi (TARGET_ASM_OUTPUT_MI_THUNK): Document VCALL_OFFSET.
7384         (TARGET_ASM_OUTPUT_MI_VCALL_THUNK): Delete.
7385         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): New target hook.
7387         * config/sparc/sparc.c (emit_and_preserve): Preserve stack alignment.
7389         * config/sparc/sparc.md (movdi): Remove redundant test.
7391 2004-10-13  Paolo Bonzini  <bonzini@gnu.org>
7393         * tree-dump.c (dump_options): Remove TDF_TREE, TDF_RTL,
7394         TDF_IPA from -fdump-tree-*-all.
7396 2004-10-13  Paul Brook  <paul@codesourcery.com>
7398         * config/arm/arm-protos.h (arm_load_pic_register): Update prototype.
7399         * config/arm/arm.c (thumb_find_work_register): Update comments.
7400         (arm_load_pic_register): Add argument for scratch register.
7401         (arm_expand_prologue, thumb_expand_prologue): Pass extra argument.
7402         * config/arm/arm.md (builtin_setjmp_receiver): Ditto.
7404 2004-10-13  Kazu Hirata  <kazu@cs.umass.edu>
7406         * tree-data-ref.c: Fix comment typos.
7408 2004-10-13  Jakub Jelinek  <jakub@redhat.com>
7409             Zdenek Dvorak  <dvorakz@suse.cz>
7411         PR tree-optimization/17724
7412         * tree-cfg.c (tree_purge_dead_eh_edges): Free dominance info.
7414 2004-10-13  Dorit Naishlos  <dorit@il.ibm.com>
7416         * rs6000.c (altivec_builtin_mask_for_load): Made static GTY(()).
7417         (altivec_builtin_mask_for_store): Likewise.
7418         (altivec_init_builtins): Use lang_hooks.builtin_function to
7419         create the decls for builtin_altivec_mask_for_load/store.
7421 2004-10-13  Nick Clifton  <nickc@redhat.com>
7423         * config/c4x/c4x.c: Remove inclusion of loop.h.
7425 2004-10-12  Ben Elliston  <bje@au.ibm.com>
7427         * basic-block.h (edge_iterator): Keep the address of VEC(edge) *.
7428         (ei_container): New; renamed.
7429         (ei_start, ei_last): New macros.
7430         (ei_start_1, ei_last_1): Renamed from ei_start.
7431         (ei_last_1, ei_end_p): Use ei_container() where applicable.
7432         (ei_one_before_end_p, ei_next, ei_edge): Likewise.
7433         * gcse.c (remove_reachable_equiv_notes): Use ei_container().
7435 2004-10-11  Sebastian Pop  <pop@cri.ensmp.fr>
7437         * Makefile.in (tree-ssa-loop-niter.o): Depends on tree-data-ref.h.
7438         * cfgloop.c (initialize_loops_parallel_p): New.
7439         (flow_loops_find): Initialize the parallel_p field to true for all
7440         the loops.
7441         * tree-ssa-loop-niter.c: Include "tree-data-ref.h".
7442         (estimate_numbers_of_iterations_loop): Infers the loop bounds from
7443         the size of the data accessed in the loop.
7444         (struct nb_iter_bound): Moved...
7445         * cfgloop.h (struct nb_iter_bound): ... here.
7446         (estimated_nb_iterations, parallel_p): New fields in struct loop.
7447         (record_estimate): Declare extern here.
7448         * tree-chrec.c: Fix comments.
7449         (nb_vars_in_chrec): New function.
7450         * tree-chrec.h (nb_vars_in_chrec): Declared here.
7451         * tree-data-ref.c: Don't include lambda.h, that is already included
7452         in tree-data-ref.h.
7453         (tree_fold_divides_p): Don't check for integer_onep.
7454         (tree_fold_bezout): Removed.
7455         (gcd): New static duplicated function.
7456         (int_divides_p, dump_subscript): New.
7457         (dump_data_dependence_relation): Use dump_subscript.
7458         (dump_dist_dir_vectors, dump_ddrs, compute_estimated_nb_iterations,
7459         estimate_niter_from_size_of_data): New.
7460         (analyze_array_indexes, analyze_array): Call
7461         estimate_niter_from_size_of_data during the detection of array
7462         references.  Pass in a pointer to the statement that contains the
7463         array reference.
7464         (all_chrecs_equal_p): New.
7465         (compute_distance_vector): Renamed compute_subscript_distance.
7466         Deal with multivariate conflict functions.
7467         (initialize_data_dependence_relation): Initialize DDR_AFFINE_P,
7468         DDR_SIZE_VECT, DDR_DIST_VECT, and DDR_DIR_VECT.
7469         (non_affine_dependence_relation): New.
7470         (analyze_ziv_subscript, analyze_siv_subscript_cst_affine,
7471         analyze_siv_subscript, analyze_miv_subscript,
7472         analyze_overlapping_iterations, subscript_dependence_tester):
7473         Initialize and return last_conflicts function.
7474         (initialize_matrix_A, FLOOR, compute_overlap_steps_for_affine_univar,
7475         compute_overlap_steps_for_affine_1_2): New.
7476         (analyze_siv_subscript_affine_cst): Removed.
7477         (analyze_subscript_affine_affine): Disprove dependences based on the
7478         iteration domains.  Solve the univariate dependence case as before,
7479         but use lambda_matrix_right_hermite instead of tree_fold_bezout.
7480         Implement the multivariate case of 2 versus 1 variables.
7481         (build_classic_dist_vector, build_classic_dir_vector): Implement some
7482         unhandled cases.
7483         (find_data_references_in_loop): Compute and initialize
7484         loop->estimated_nb_iterations and loop->parallel_p.
7485         (analyze_all_data_dependences): Modify the debug dump order.
7486         * tree-data-ref.h (SUB_LAST_CONFLICT_IN_A, SUB_LAST_CONFLICT_IN_B,
7487         subscript->last_conflict_in_a, subscript->last_conflict_in_b): Removed.
7488         (SUB_LAST_CONFLICT, subscript->last_conflict,
7489         data_dependence_relation->affine_p, data_dependence_relation->size_vect,
7490         DDR_AFFINE_P, DDR_SIZE_VECT): New.
7491         (find_data_references_in_loop, initialize_data_dependence_relation,
7492         dump_subscript, dump_ddrs, dump_dist_dir_vectors): Declared here.
7494 2004-10-12  Kelley Cook  <kcook@gcc.gnu.org>
7496         * configure: Regenerate.
7498 2004-10-12  Fariborz Jahanian <fjahanian@apple.com>
7500         PR 17892
7501         * tree-ssa-dom.c (unsafe_associative_fp_binop): New function.
7502         (simplify_rhs_and_lookup_avail_expr): Disallow associativity
7503         and constant folding of floating point MULT_EXPR/PLUS_EXPR
7504         expressions.
7506 2004-10-12  Ulrich Weigand  <uweigand@de.ibm.com>
7508         * config/s390/s390.c (s390_va_start): Use build_va_arg_indirect_ref.
7509         (s390_gimplify_va_arg): Likewise.
7511 2004-10-12  Daniel Jacobowitz  <dan@debian.org>
7513         * defaults.h (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P)
7514         (MODE_BASE_REG_REG_CLASS, REGNO_MODE_OK_FOR_REG_BASE_P)
7515         (REG_MODE_OK_FOR_REG_BASE_P): Provide default definitions.
7516         * regclass.c (record_address_regs): Remove ifdef.  Use
7517         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
7518         * regrename.c (REG_MODE_OK_FOR_BASE_P): Remove unnecessary
7519         definition.
7520         (scan_rtx_address, replace_oldest_value_addr): Use
7521         REG_MODE_OK_FOR_REG_BASE_P and MODE_BASE_REG_REG_CLASS.
7522         * reload.c (REGNO_MODE_OK_FOR_BASE_P, REG_MODE_OK_FOR_BASE_P): Remove
7523         unnecessary definitions.
7524         (find_reloads_address_1): Support REG_MODE_OK_FOR_REG_BASE_P
7525         and MODE_BASE_REG_REG_CLASS.
7526         * config/arm/arm.h (MODE_BASE_REG_CLASS): Don't check reload_completed.
7527         (MODE_BASE_REG_REG_CLASS): Define.
7528         (REGNO_MODE_OK_FOR_REG_BASE_P): Define.
7529         (REG_MODE_OK_FOR_REG_BASE_P): Define.
7530         * doc/tm.texi (Register Classes): Document MODE_BASE_REG_REG_CLASS,
7531         REG_MODE_OK_FOR_REG_BASE_P, and REGNO_MODE_OK_FOR_REG_BASE_P.
7533 2004-10-12  Daniel Berlin <dberlin@dberlin.org>
7535         * tree-ssa-alias.c (verify_name_tags): New function.
7536         (verify_flow_sensitive_alias_info): Remove code that used to check name tags.
7537         (verify_alias_info): Call verify_name_tags.
7539 2004-10-12  Kazu Hirata  <kazu@cs.umass.edu>
7541         PR rtl-optimization/17931
7542         * config/i386/i386.c (ix86_rtx_costs): Handle COMPARE with
7543         ZERO_EXTRACT in it.
7545 2004-10-12  Richard Earnshaw  <rearnsha@arm.com>
7547         * arm.c (arm_print_operand): Use output_operand_lossage where possible
7548         rather than aborting.
7550 2004-10-12  Paul Brook  <paul@coudesourcery.com>
7552         * config.gcc: Add armv6{k,z,zk}
7553         * config/arm/arm-cores.def: Add arm1176 and mpcore.
7554         * config/arm/tune.md: Regenerate.
7555         * config/arm/arm.c (FL_FOR_ARCH6K, FL_FOR_ARCH6Z, FL_FOR_ARCH6ZK):
7556         Define.
7557         (all_architectures): Add armv6k, armv6z, armv6zk.
7558         * config/arm/lib1funcs.asm: Recognise new arm arcitectures.
7559         * doc/invoke.texi: Document new arch and cpu values.
7561 2004-10-12  Paul Brook  <paul@coodesourcery.com>
7563         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Change meabi=3 to
7564         meabi=4.
7566 2004-10-12  Paul Brook  <paul@codesourcery.com>
7568         * config/arm/arm.md (addsi3_cbranch_scratch): Correct constraints.
7569         Handle negative constants.
7571 2004-10-12  Joseph S. Myers  <jsm@polyomino.org.uk>
7573         PR c/17301
7574         * c-typeck.c (convert_arguments): Return error_mark_node if there
7575         are too few arguments.
7576         (build_function_call): Handle error_mark_node return from
7577         convert_arguments.
7579 2004-10-06  Paolo Bonzini  <bonzini@gnu.org>
7581         * configure.ac (symbolic_link): Replace with $LN_S.
7582         (Assembler/Linker): Hard link from gas and binutils trees.
7583         * aclocal.m4 (gcc_AC_PROG_LN_S): Try "cp -p" before cp.
7584         * configure: Regenerate.
7586 2004-10-12  Paul Brook  <paul@codesourcery.com>
7588         * configure.ac: Don't look for host assembler when building a canadian
7589         cross.
7590         * configure: Regenerate.
7592 2004-10-11  Roger Sayle  <roger@eyesopen.com>
7594         PR other/17361
7595         * c-opts.c (permit_fortran_options): Delete/obsolete global variable.
7596         (c_common_init_options): Remove #ifdef CL_F77 code.  Scan command
7597         line options for "-lang-asm" and if found allow any of the C-family
7598         front-end options.
7599         (c_common_handle_option): Remove last use of permit_fortran_options.
7601 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
7603         * config/s390/s390.c (print_operand): Support 'S' format flag.
7604         * config/s390/s390.md ("*tmqi_mem"): Use 'S' format flag.
7605         ("*tstsi", "*tstsi_cconly", "*tstsi_cconly2"): Likewise.
7606         ("*tsthiCCT", "*tsthiCCT_cconly", "*tsthi", "*tsthi_cconly"): Likewise.
7607         ("*tstqiCCT", "*tstqiCCT_cconly", "*tstqi", "*tstqi_cconly"): Likewise.
7608         ("*cmphi_ccu", "*cmpqi_ccu", "*clc"): Likewise
7609         ("movti", "*movdi_31", "*movqi", "*movdf_31", "*mvc"): Likewise.
7610         ("*movstricthi"): Likewise.
7611         ("*load_multiple_di", "*load_multiple_si"): Likewise.
7612         ("*store_multiple_di", "*store_multiple_si"): Likewise.
7613         ("*sethiqisi", "*sethihisi"): Likewise.
7614         ("*sethiqidi_64", "*sethiqidi_31"): Likewise.
7615         ("*andqi3_zarch", "*andqi3_esa", "*nc"): Likewise.
7616         ("*iorqi3_zarch", "*iorqi3_esa", "*oc"): Likewise.
7617         ("*xorqi3", "*xc", "*xc_zero"): Likewise.
7618         ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): Likewise.
7620         ("*tmhi_full"): Fix incorrect op_type attribute.
7622         ("*adddi3_alc_cc", "*adddi3_alc"): Remove double backslash.
7623         ("*subdi3_slb_cc", "*subdi3_slb"): Likewise.
7624         ("*addsi3_alc_cc", "*addsi3_alc"): Likewise.
7625         ("*subsi3_slb_cc", "*subsi3_slb"): Likewise.
7627 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu
7629         PR middle-end/16266
7630         * function.c (temp_slots_at_level): Fix typo which creates too
7631         many temp stack slots levels.
7633 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
7635         * config/s390/s390.c (s390_trampoline_template): Generate shorter
7636         trampoline code.
7637         (s390_trampoline_instantiate): Adapt.
7638         * config/s390/s390.h (TRAMPOLINE_SIZE): Adapt to new code.
7640 2004-10-11  Roger Sayle  <roger@eyesopen.com>
7642         PR middle-end/17657
7643         * stmt.c (add_case_node): Add additional type argument.  Declare
7644         as static to match prototype.  Convert the upper and lower bounds
7645         to the specified index type.  Optimize away case ranges/values
7646         that are outside the index type's bounds.  Truncate case ranges
7647         that span the index type's bounds.
7648         (expand_case): Avoid unnessary computation and memory allocation
7649         when index type is error_mark_node.  Pass index_type as required
7650         by change to add_case_node API.  No need to convert case range
7651         bounds to index_type, this is now done by add_case_node.
7653 2004-10-11  Ulrich Weigand  <uweigand@de.ibm.com>
7655         * config/s390/s390-protos.h (s390_offset_p): Add prototype.
7656         * config/s390/s390.c (s390_offset_p): New function.
7657         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccu",
7658         "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu"): Use splitter to
7659         transform Q->Q alternatives to *clc pattern.
7660         ("*clc"): Move.
7661         ("movti", "*movdi_64", "*movdi_31", "*movsi_zarch", "*movsi_esa",
7662         "*movhi", "*movqi", "*movdf_64", "*movdf_31", "movsf"): Use splitter
7663         to transform Q->Q alternatives to *mvc pattern.
7664         ("*mvc"): Move.  Add peephole to merge adjacent MVCs.
7665         ("*anddi3", "*andsi3_zarch", "*andsi3_esa", "*andhi3_zarch",
7666         "*andhi3_esa", "*andqi3_zarch", "*andqi3_esa"): Use splitter to
7667         transform Q->Q alternatives to *nc pattern.
7668         ("*nc"): New insn.  New peephole to merge adjacent NCs.
7669         ("*iordi3", "*iorsi3_zarch", "*iorsi3_esa", "*iorhi3_zarch",
7670         "*iorhi3_esa", "*iorqi3_zarch", "*iorqi3_esa"): Use splitter to
7671         transform Q->Q alternatives to *oc pattern.
7672         ("*oc"): New insn.  New peephole to merge adjacent OCs.
7673         ("*xordi3", "*xorsi3", "*xorhi3", "*xorqi3"): Use splitter to
7674         transform Q->Q alternatives to *xc pattern.
7675         ("*xc"): New insn.  New peephole to merge adjacent XCs.
7676         ("*xc_zero"): Move.  Add peephole to merge adjacent XCs.
7678 2004-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
7680         * gimplify.c (gimple_push_condition): Make sure that we don't
7681         have any saved condition cleanup if we were at the top level.
7683 2004-10-11  Richard Sandiford  <rsandifo@redhat.com>
7685         * config/frv/frv.md (*adddi3_internal): Change name to...
7686         (adddi3): ...replacing the exisiting define_expand.  Combine
7687         alternatives.  Fix the range of the constant constraints ('J' instead
7688         of 'NOP').  Remove bogus operands[2] check.  Use simplify_gen_subreg
7689         to extract the lower and upper halves of the DImode operands.
7690         Always use addi3_lower and adddi3_upper, not the subdi3 forms.
7691         (adddi3_lower): Fix the range of the constant constraints and
7692         remove the bogus operands[2] check.
7693         (adddi3_upper): Use gpr_or_int10_operand as the predicate for
7694         operand 2.  Use addxi to handle constant operands.
7695         (subdi3_lower, subdi3_upper): Don't handle constant operands.
7697 2004-10-11  Nathan Sidwell  <nathan@codesourcery.com>
7699         * gengtype-lex.l: Add commented } & ) characters to unconfuse
7700         editor's paren matching. Allow #define inside a struct.
7702 2004-10-10  Andrew Pinski  <pinskia@physics.uc.edu>
7704         PR middle-end/17703
7705         part of PR c++/17657
7706         * fold-const.c (fold_build_cleanup_point_expr): New function.
7707         * tree.h (fold_build_cleanup_point_expr): Prototype.
7709 2004-10-10  Eric Christopher  <echristo@redhat.com>
7711         * dwarf2out.c: Move attribute to subprogram declaration
7712         instead of subroutine type.
7714 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
7716         * basic-block.h: Remove the prototypes for can_hoist_insn_p,
7717         hoist_insn_after, and hoist_insn_to_edge.
7718         * rtl.h: Remove the prototypes for reg_referenced_between_p,
7719         no_jumps_between_p, and insn_dependent_p.
7720         * rtlanal.c (no_jumps_between_p, reg_referenced_between_p,
7721         insn_dependent_p, insn_dependent_p_1, hoist_test_store,
7722         can_hoist_insn_p, hoist_update_store, hoist_insn_after,
7723         hoist_insn_to_edge): Remove.
7725 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
7727         PR c/17881
7728         * c-decl.c (grokparms): Don't warn for parameters of incomplete
7729         type in declarations that are not definitions except for the case
7730         of parameters of void type.
7732 2004-10-10  Kazu Hirata  <kazu@cs.umass.edu>
7734         * tree-cfg.c: Fix comment typos.
7736 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
7738         PR c/17301
7739         * builtins.c (expand_builtin_va_start): Check for too few
7740         arguments to va_start.
7742 2004-10-10  Joseph S. Myers  <jsm@polyomino.org.uk>
7744         PR c/17189
7745         * c-decl.c (grokfield): Make diagnostic for bad cases of unnamed
7746         fields a pedwarn.  Pedwarn here for unnamed structs/unions if
7747         pedantic.
7748         * c-parse.in (component_decl): Don't pedwarn here for unnamed
7749         fields.
7751 2004-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
7753         PR tree-optimization/17906
7754         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not attempt to
7755         copy non-gimple reg arguments.
7757 2004-10-09  Roger Sayle  <roger@eyesopen.com>
7759         PR rtl-optimization/17853
7760         * simplify-rtx.c (simplify_relational_operation): Correct comment.
7761         Reorganize handling of comparison operations with floating point
7762         results (always return 0.0 even without FLOAT_STORE_FLAG_VALUE).
7763         Likewise, introduce support for comparison operations with vector
7764         result types, introducing a new VECTOR_STORE_FLAG_VALUE target macro.
7766         * doc/rtl.texi: Document new VECTOR_STORE_FLAG_VALUE target macro.
7767         * doc/tm.texi: Likewise.
7769 2004-10-09  Steven Bosscher  <stevenb@suse.de>
7771         * regs.h (struct reg_info_def): Remove the last_node_uid and
7772         changes_mode fields.
7773         (REGNO_LAST_NOTE_UID): Don't define.
7774         * regclass.c (reg_scan_mark_refs): Don't set REGNO_LAST_NOTE_UID.
7775         * regmove.c (copy_src_to_dest): Likewise.
7777 2004-10-09  Roger Sayle  <roger@eyesopen.com>
7779         PR middle-end/17894
7780         * fold-const.c (fold_div_compare): When optimizing X/C1 op C2, the
7781         relational comparison operator op needs to be swapped/reversed when
7782         C1 is negative.  i.e. X/-10 < 1 becomes X >= -9, not X < -9.
7784 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
7786         PR tree-opt/17902
7787         * tree-ssa-phiopt.c (conditional_replacement): Use bsi_after_labels
7788         instead of bsi_start.
7789         (value_replacement): Likewise.
7790         (abs_replacement): Likewise
7792 2004-10-09  Steven Bosscher  <stevenb@suse.de>
7794         * cfgexpand.c (maybe_dump_rtl_for_tree_stmt): New function.
7795         (expand_gimple_cond_expr, expand_gimple_tailcall,
7796         expand_gimple_basic_block): Use it to dump RTL for each stmt.
7797         (tree_expand_cfg): Announce full RTL function dump.
7798         * tree-optimize.c (execute_one_pass): Use normal RTL printing,
7799         not the graph version.
7800         * tree-pretty-print.c (dump_generic_node): Allow empty statements
7801         in the arms of a COND_EXPR for lowered nodes.
7803 2004-10-08  Joseph S. Myers  <joseph@codesourcery.com>
7805         * config/rs6000/spe.h (atosfix16, atosfix32, atosfix64, atoufix16,
7806         atoufix32, atoufix64, strtosfix16, strtosfix32, strtosfix64,
7807         strtoufix16, strtoufix32, strtoufix64): Declare.
7809 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
7811         * c-lex.c (interpret_float): Give a pedwarn rather than a warning
7812         for an out-of-range floating point constant.
7813         * builtins.c (fold_builtin_inf): Give a pedwarn rather than a
7814         warning if the target format does not support infinities.
7816 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7818         * emit-rtl.c (last_label_num, base_label_num): Remove.
7819         (max_label_num): Always return label_num.
7820         (set_new_last_label_num, restore_emit_status): Remove.
7821         (init_emit): Don't initialize last_label_num.
7822         * function.c (pop_function_context_from): Don't call
7823         restore_emit_status.
7824         * function.h: Remove the prototype for restore_emit_status.
7825         * rtl.h: Remove the prototype for set_new_last_label_num.
7827 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7829         * stmt.c (expand_decl_init): Remove.
7830         * tree.h: Remove the corresponding prototype.
7832 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7834         * integrate.c (try_constants, subst_constants, mark_stores):
7835         Remove.
7836         * integrate.h: Remove the prototype for try_constants.
7838 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
7840         * c-typeck.c (enum impl_conv): Add ic_argpass_nonproto.
7841         (convert_for_assignment): Handle ic_argpass_nonproto.  Add
7842         comments about its relevance to errors.
7843         (c_convert_parm_for_inlining): Use ic_argpass_nonproto.
7845 2004-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
7847         PR c/16999
7848         * c-ppoutput.c (cb_ident): Don't quote string as it is already
7849         quoted.
7851 2004-10-08  Diego Novillo  <dnovillo@redhat.com>
7853         * tree-ssa-pre.c (init_pre): Use size of ARRAY_REF to allocate
7854         reference_node_pool.
7856 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7858         * tree-cfg.c: Fix a comment typo.
7860 2004-10-08  Andreas Krebbel  <krebbel1@de.ibm.com>
7862         * config/s390/s390.c (s390_register_info): Don't save fprs for
7863         -msoft-float.
7864         (s390_conditional_register_usage): Make fprs 'fixed' for -msoft-float.
7866 2004-10-08  Ulrich Weigand  <uweigand@de.ibm.com>
7868         * config/s390/s390.h (TARGET_DEFAULT_BACKCHAIN): New define.
7869         (TARGET_DEFAULT): Use symbolic values.
7870         * config/s390/tpf.h (TARGET_DEFAULT_BACKCHAIN): Redefine.
7871         (TARGET_DEFAULT): Use symbolic values.
7872         * config/s390/s390.c (s390_backchain_string): Initialize to
7873         TARGET_DEFAULT_BACKCHAIN.
7875 2004-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7877         * builtins.c (expand_builtin_mempcpy): Move tree handling code to
7878         fold_builtin_mempcpy.  Accept a type parameter.  Delete duplicate
7879         code.
7880         (expand_builtin_strcat): Accept a type parameter.
7881         (fold_builtin_mempcpy): Accept a type and endp parameter.
7883         * builtins.c (expand_builtin_strncpy): Delete duplicate code.
7884         Accept an `exp' instead of an `arglist'.
7886 2004-10-08  Nathan Sidwell  <nathan@codesourcery.com>
7888         * tree-tailcall.c (tree_optimize_tail_calls_1): Use fold_convert,
7889         reverting my 2004-09-07 patch to use build_int_cst.
7891 2004-10-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
7893         PR target/17245
7894         * config/sparc/sparc.c (input_operand): Remove redundant code
7895         for handling LO_SUM.
7896         (legitimate_address_p) <REG+REG>: Do not recheck TARGET_V9.
7897         <LO_SUM>: If LO_SUM is offsettable, accept it for TFmode on V9.
7898         Otherwise only accept it for TFmode if quad move insns are available.
7900 2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>
7902         * tree-cfg.c (tree_forwarder_block_p): Reorder checks so that
7903         common cases will be caught earlier than others.
7905 2004-10-08  Michael Matz  <matz@suse.de>
7907         * loop-doloop.c (doloop_optimize): Extend count.
7909 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7911         * config/sh/sh.md (prefetch_media, prefetch_i4): New insns.
7912         (prefetch): Convert to expander.
7914 2004-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7916         * config/sh/sh.md (tls_global_dynamic): Use MEM pattern for the
7917         first argument of CALL.
7918         (tls_local_dynamic): Likewise.
7920 2004-10-08  Joseph S. Myers  <jsm@polyomino.org.uk>
7922         * c-typeck.c (enum impl_conv): New.
7923         (convert_for_assignment): Use it.  Take tree for function called
7924         instead of its name.  Handle ObjC selectors for diagnostics at
7925         start of function.  Select diagnostic text within the function
7926         using full sentences for diagnsotics.  Use %qE to name functions
7927         in diagnostics.
7928         (convert_arguments, build_modify_expr,
7929         c_convert_parm_for_inlining, digest_init, c_finish_return): Update
7930         callers to convert_for_assignment.
7931         (warn_for_assignment): Remove.
7933 2004-10-08  Nick Clifton  <nickc@redhat.com>
7935         * config/sh/symbian.c (symbian_possibly_export_base_class):
7936         Replace use of deleted TYPE_USES_VIRTUAL_BASECLASSES macro with
7937         TYPE_CONTAINS_VPTR_P.
7939 2004-10-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
7941         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Don't exclude
7942         fixed registers form all_used_regs. Update call_really_used_regs.
7943         (CALL_REALLY_USED_REGISTERS): Define.
7944         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Replace call_used_regs
7945         with call_really_used_regs.
7947 2004-10-08  Alan Modra  <amodra@bigpond.net.au>
7949         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Choose gcrt1.o
7950         for -profile as well as -p and -pg.
7952 2004-10-07  Andrew Pinski  <pinskia@physics.uc.edu>
7954         * libgcc2.c (__moddi3): Cast &w to UDWtype*.
7956 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
7958         * tree-cfg.c (tree_block_forwards_to): Remove.
7959         * tree-flow.h: Remove the corresponding prototype.
7961 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
7963         * tree-flow-inline.h (phi_nodes): Remove an unnecessary check
7964         for ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.
7966 2004-10-07  Geoffrey Keating  <geoffk@apple.com>
7968         Radar 3813796
7969         * config/rs6000/rs6000.c (rs6000_generate_compare): When
7970         flag_trapping_math is in effect, don't generate subtract
7971         instructions.
7973 2004-10-07  Ulrich Weigand  <uweigand@de.ibm.com>
7975         * config/s390/s390-protos.h (s390_narrow_logical_operator): Add.
7976         * config/s390/s390.c (s390_narrow_logical_operator): New function.
7977         (s390_extra_constraint_str): Add 'A' constraints.
7978         (s390_const_ok_for_constraint_p): Add 'Nx' constraints.
7979         * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'A' constraint.
7980         (CONSTRAINT_LEN): Likewise.
7981         * config/s390/s390.md ("*anddi3"): Add NI alternative and splitter.
7982         ("*andsi3_zarch", "*andsi3_esa"): Likewise.
7983         ("*andhi3_zarch", "*andhi3_esa"): Likewise.
7984         ("*iordi3"): Add OI alternative and splitter.
7985         ("*iorsi3_zarch", "*iorsi3_esa"): Likewise.
7986         ("*iorhi3_zarch", "*iorhi3_esa"): Likewise.
7987         ("*xordi3"): Add XI alternative and splitter.
7988         ("*xorsi3", "*xorhi3"): Likewise.
7990 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
7992         * config/mips/mips.c (mips_function_rodata_section): New function.
7993         (TARGET_ASM_FUNCTION_RODATA_SECTION): Use it.
7995 2004-10-07  Devang Patel  <dpatel@apple.com>
7997         * rs6000/altivec.md (UNSPEC_VCMPBFP, UNSPEC_VCMPEQUB, UNSPEC_VCMPEQUH,
7998         UNSPEC_VCMPEQUW, UNSPEC_VCMPGEFP, UNSPEC_VCMPGTUB, UNSPEC_VCMPGTSB,
7999         UNSPEC_VCMPGTUH, UNSPEC_VCMPGTSH, UNSPEC_VCMPGTUW, UNSPEC_VCMPGTSW,
8000         UNSPEC_VCMPGTFP, UNSPEC_VSEL4SI, UNSPEC_VSEL4SF, UNSPEC_VSEL8HI,
8001         UNSPEC_VSEL16QI, UNSPEC_VCOND_V4SI, UNSPEC_VCOND_V4SF, UNSPEC_VCOND_V8HI,
8002         UNSPEC_VCOND_V16QI, UNSPEC_VCONDU_V4SI, UNSPEC_VCONDU_V8HI,
8003         UNSPEC_VCONDU_V16QI): New constant defines.
8004         (vcondv4si, vcondv4sf, vcondv8hi, vcondv16qi, vconduv4si, vconduv8hi,
8005         vconduv16qi): New patterns.
8006         * rs6000/rs6000-protos.h (rs6000_emit_vector_cond_expr): New function.
8007         * rs6000/rs6000.c (rs6000_emit_vector_cond_expr): New function.
8008         (get_vec_cmp_insn): Same.
8009         (get_vsel_insn): Same.
8010         (rs6000_emit_vector_compare): Same.
8011         (rs6000_emit_vector_select): Same.
8012         (INSN_NOT_AVAILABLE): New.
8014 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
8016         PR tree-optimization/17749
8017         * tree-tailcall.c (find_tail_calls): Check that parameter is
8018         a gimple_reg.
8020 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
8022         * config/ia64/ia64.c: Fix a comment typo.
8024 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8026         * doc/install.texi (*-*-solaris2*): Fix marker for URL.
8028 2004-10-07  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
8030         PR c++/17115
8031         * tree-inline.c (expand_call_inline): Do not warn for functions
8032         marked with attribute noinline.
8034 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8036         PR target/17862
8037         * config/sparc/sparc.c (sparc_output_mi_thunk): Set
8038         current_function_uses_only_leaf_regs as well as sparc_leaf_function_p.
8040         * config/sparc/sparc.c (sparc_gimplify_va_arg): Pass 'false' instead
8041         of 0 as 4th argument to pass_by_reference.
8042         Call build_va_arg_indirect_ref instead of build_fold_indirect_ref.
8044 2004-10-06  Eric Christopher  <echristo@redhat.com>
8046         * config/sh/sh.c (sh_dwarf_calling_convention): Fix renesas dwarf
8047         attribute.
8049 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
8051         PR target/17770
8052         * config/mips/mips.md (mov_<load>l): Remove hazard=none attribute.
8054 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
8056         PR rtl-optimization/17791
8057         * loop-doloop.c (doloop_modify): Take number of iterations as
8058         argument.
8059         (doloop_optimize): Extend or shorten the number of iterations
8060         when changing mode of counter register.
8061         * loop-iv.c (lowpart_subreg): Export.
8062         * rtl.h (lowpart_subreg): Declare.
8064 2004-10-07  Zdenek Dvorak  <dvorakz@suse.cz>
8066         PR tree-optimization/17806
8067         * cfghooks.c (split_edge): Update IRREDUCIBLE_LOOP flags.
8068         * cfgloopmanip.c (loop_split_edge_with): Updating of IRREDUCIBLE_LOOP
8069         flags moved to split_edge.
8071 2004-10-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
8073         PR middle-end/17835
8074         * expmed.c (expand_sdiv_pow2): Force a stack adjustment
8075         before tentatively building the conditional move sequence.
8077 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
8079         PR target/16815
8080         * function.c (assign_parm_setup_block_p): Tighten BLOCK_REG_PADDING
8081         check.
8082         * config/pa/pa.h (BLOCK_REG_PADDING): Define in terms of
8083         function_arg_padding.
8085 2004-10-07  Richard Sandiford  <rsandifo@redhat.com>
8087         PR bootstrap/17857
8088         * Makefile.in (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.
8090 2004-10-07  Kazu Hirata  <kazu@cs.umass.edu>
8092         * hooks.c (hook_int_void_1, hook_void_int): Remove.
8093         * hooks.h: Remove the corresponding prototypes.
8095 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
8097         PR middle-end/17849
8098         * tree-nested.c (walk_stmt_info): Add changed field.
8099         (convert_nonlocal_reference): Set changed to when we
8100         change a decl to unnested decl.
8101         <case ADDR_EXPR>: Instead of checking if the immediate part
8102         of the ADDR_EXPR changed, check the field changed.
8103         Use recompute_tree_invarant_for_addr_expr instead of unsetting
8104         TREE_INVARIANT.
8105         (convert_local_reference):  Set changed to when we
8106         change a decl to unnested decl.
8107         <case ADDR_EXPR>: Instead of checking if the immediate part
8108         of the ADDR_EXPR changed, check the field changed.
8109         Also call recompute_tree_invarant_for_addr_expr on the ADDR_EXPR.
8111 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
8113         * defaults.h (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8114         * dwarf2out.c (dwarf2out_init): Remove references to
8115         DWARF2_GENERATE_TEXT_SECTION_LABEL.
8116         * system.h: Poison DWARF2_GENERATE_TEXT_SECTION_LABEL.
8117         * doc/tm.texi (DWARF2_GENERATE_TEXT_SECTION_LABEL): Remove.
8119 2004-10-06  Joseph S. Myers  <jsm@polyomino.org.uk>
8121         * c-typeck.c (convert_arguments): Take expression for called
8122         function rather than its name.  Handle ObjC selectors directly
8123         rather than relying on warn_for_assignment to do so.  Call warning
8124         directly rather than warn_for_assignment.  Use %qE in diagnostics.
8125         Say "argument" rather than "arg" in diagnostics.
8126         (build_function_call): Update call to convert_arguments.
8128 2004-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
8130         PR debug/17787
8131         * dbxout.c (dbxout_symbol): Really handle RECORD, UNION, and
8132         ENUMs specially instead of just saying we do.
8134 2004-10-06  Eric Christopher  <echristo@redhat.com>
8136         * dwarf2.h: Sync with include/elf/dwarf2.h
8138 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
8140         * tree-pretty-print.c (dump_generic_node): Fix printing of BINFO
8141         and TREE_VEC nodes.
8143 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
8145         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Convert
8146         to use FOR_EACH_SSA_USE_OPERAND iterator, and propagate_value.
8148 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
8150         * lambda-code.c (compute_nest_using_fourier_motzkin): New
8151         function.
8152         (lambda_compute_auxillary_space): Split from here.
8154 2004-10-06  Daniel Berlin  <dberlin@dberlin.org>
8156         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop): Make non-static.
8157         * tree-flow.h: Add prototype.
8158         * lambda-code.c (invariant_in_loop_and_outer_loops): Use
8159         expr_invariant_in_loop.
8161 2004-10-06  Kazu Hirata  <kazu@cs.umass.edu>
8163         * tree-cfg.c (thread_jumps): Remove a duplicate check for
8164         EXIT_BLOCK_PTR.
8166 2004-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
8168         * config/s390/s390-protos.h (s_imm_operand): Remove.
8169         (s390_pool_operand): Add prototype.
8170         * config/s390/s390.c (general_s_operand): Remove.
8171         (s_imm_operand): Remove.
8172         (s_operand): Merge contents of general_s_operand.
8173         (s390_pool_operand): New function.
8174         * config/s390/s390.h (PREDICATE_CODES): Remove s_imm_operand.
8175         * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct"): New insns.
8176         ("*cmpdi_ccu"): Merge Q->Q alternative.
8177         ("*cmpsi_ccu", "*cmphi_ccu"): Likewise.
8178         ("*cmpqi_ccu"): Merge Q->Q, n->Q, n->S alternatives.
8179         ("*cli"): Remove.
8180         ("*cmpdi_ccu_mem", "*cmpsi_ccu_mem"): Likewise.
8181         ("*cmphi_ccu_mem", "*cmpqi_ccu_mem"): Likewise.
8182         ("*movstricthi"): Use memory_operand instead of s_imm_operand.
8184 2004-10-06  Steve Ellcey  <sje@cup.hp.com>
8186         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Change macro to
8187         call ia64_function_arg_boundary.
8188         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): New.
8189         * config/ia64/ia64.c (ia64_function_arg_boundary): New.
8190         (ia64_function_arg_advance): Do not put 128 bit floats into
8191         FP registers.
8193 2004-10-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8195         * builtins.c (expand_builtin_strcpy): Delete duplicate code.
8196         Accept an expression instead of an arglist.
8197         (expand_builtin_stpcpy): Accept an expression instead of an
8198         arglist.
8200 2004-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
8202         PR target/16007
8203         * doc/install.texi (*-*-solaris2*): Mention potential problem
8204         with Sun assembler + GNU linker and C++ programs.
8205         Document status of binutils 2.15 release.
8207 2004-10-06  Jan Hubicka  <jh@suse.cz>
8209         * cse.c (cse_main): Kill push/pop context.
8211 2004-10-05  Zack Weinberg  <zack@codesourcery.com>
8213         * pretty-print.c: Include tree.h.
8214         (pp_base_prepare_to_format): New function, logic from
8215         text_specifies_location.
8216         (pp_base_format_text): Use gcc_assert.
8217         * pretty-print.h (pp_prepare_to_format): New macro.
8218         (pp_base_prepare_to_format): Prototype.
8219         * diagnostic.c (text_specifies_location): Delete.
8220         (bug_report_request): Delete.
8221         (diagnostic_set_info): Don't call text_specifies_location.
8222         (diagnostic_action_after_output): Put text from
8223         bug_report_request inline here.  Use gcc_unreachable.
8224         (diagnostic_report_current_function): Fix comment.
8225         (diagnostic_report_diagnostic): Clarify logic for error recursion.
8226         Call pp_prepare_to_format before diagnostic_starter.
8227         (trim_filename): Use IS_DIR_SEPARATOR.
8228         (fatal_error, internal_error): Use gcc_unreachable.
8229         (error_recursion): Call diagnostic_action_after_output to
8230         issue the bug_report_request message and exit.
8231         * Makefile.in (diagnostic.o, pretty-print.o): Update dependencies.
8233         * c-parse.in: Add list of diagnostic messages to insulate
8234         translation template from version of yacc/bison used to
8235         compile the grammar.
8237 2004-10-06  Alan Modra  <amodra@bigpond.net.au>
8239         PR 16406
8240         * doc/tm.texi (USE_LD_AS_NEEDED, LINK_EH_SPEC): Document.
8242 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8244         * basic-block.h: Remove the prototype for
8245         flow_preorder_transversal_compute.
8246         * cfganal.c (dfst_node): Remove.
8247         (flow_preorder_transversal_compute): Likewise.
8248         * rtl.h: Remove the prototype for get_jump_table_offset.
8249         * rtlanal.c (get_jump_table_offset): Remove.
8251 2004-10-05  Richard Henderson  <rth@redhat.com>
8253         PR 17756
8254         * tree-ssa-operands.c (get_expr_operands): Handle CONST_DECL.
8256 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
8258         PR bootstrap/17817
8259         * Makefile.in: Stage the build directory too.
8261 2004-10-05  Aldy Hernandez  <aldyh@redhat.com>
8263         * config/frv/frv.h (LEGITIMIZE_ADDRESS): New.
8265         * config/frv/frv-protos.h (frv_legitimize_address): Protoize.
8266         (frv_emit_move): Same.
8268         * config/frv/frv.c (frv_emit_move): New.
8269         (frv_legitimize_address): New.
8271         * config/frv/frv.md ("movsi"): Call frv_emit_move.
8272         ("movqi"): Same.
8273         ("movhi"): Same.
8274         ("movdi"): Same.
8275         ("movsf"): Same.
8276         ("movdf"): Same.
8278 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
8280         * c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
8281         system headers.
8283 2004-10-05  Joseph S. Myers  <jsm@polyomino.org.uk>
8285         * c-decl.c (pushdecl): When an extern declaration at block scope
8286         refers to a visible entity with internal linkage, use the old DECL
8287         rather than the new one.
8289 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8291         * tree-cfg.c (cleanup_tree_cfg): Remove extra parentheses in
8292         comments.
8294 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8296         * tree-cfg.c (thread_jumps): Remove a duplicate check for
8297         an infinite loop.
8299 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8301         * tree-cfg.c (thread_jumps): Iterate with FOR_EACH_BB instead
8302         of FOR_BB_BETWEEN.  Remove a useless check for unreachable
8303         blocks.
8305 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8307         * tree-cfg.c (cleanup_tree_cfg): Don't call
8308         delete_unreachable_blosk() after thread_jumps().
8309         (thread_jumps): Always remove basic blocks as they become
8310         unreachable.
8312 2004-10-05  Kazu Hirata  <kazu@cs.umass.edu>
8314         * tree-cfg.c (cleanup_tree_cfg): Remove variable
8315         something_changed.  Simplify the while loop.
8317 2004-10-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8319         * builtins.c (expand_builtin_memmove): Delete duplicate code
8320         and accept a tree type for the result.
8321         (expand_builtin_bcopy): Accept a tree type for the result.
8322         (fold_builtin_memmove): Accept an arglist and tree type for
8323         the result.
8325 2004-10-05  Ulrich Weigand  <uweigand@de.ibm.com>
8327         * config/s390/s390.c (s390_dump_pool): Remove return value.
8328         Use gen_pool_align, gen_pool_section_start/end instead of
8329         gen_pool_start/end_31/64.
8330         * config/s390/s390.md (UNSPECV_POOL_START, UNSPECV_POOL_END): Remove.
8331         (UNSPECV_POOL_SECTION, UNSPECV_POOL_ALIGN): New constants.
8332         ("pool_start_31", "pool_end_31"): Remove.
8333         ("pool_start_64", "pool_end_64"): Likewise.
8334         ("pool_align", "pool_section_start", "pool_section_end": New insns.
8336         * config/s390/s390.c (s390_cannot_copy_insn_p): New function.
8337         (TARGET_CANNOT_COPY_INSN_P): Define.
8338         (s390_cannot_force_const_mem): Handle UNSPEC_INSN.
8339         (struct constant_pool): New member 'execute'.
8340         (s390_add_execute, s390_find_execute): New functions.
8341         (s390_execute_label, s390_execute_target): Likewise.
8342         (s390_dump_pool): Output in-pool execute target templates.
8343         (s390_dump_execute): New function.
8344         (s390_alloc_pool, s390_free_pool): Handle execute templates.
8345         (s390_mainpool_start, s390_mainpool_finish): Likewise.
8346         (s390_chunkify_start, s390_chunkify_finish): Likewise.
8347         * config/s390/s390.md (UNSPEC_INSN, UNSPEC_EXECUTE): New constants.
8348         ("*execute"): New insn pattern.
8349         ("movmem_short", "*movmem_short"): Use splitters to generate
8350         explicit execute pattern, remove embedded execute.
8351         ("clrmem_short", "*clrmem_short"): Likewise.
8352         ("cmpmem_short", "*cmpmem_short"): Likewise.
8354 2004-10-05  Daniel Berlin  <dberlin@dberlin.org>
8356         * tree-ssa.c (verify_ssa): Verify phi arguments only
8357         contain renamed names.
8359 2004-10-05  Alan Modra  <amodra@bigpond.net.au>
8361         * config/rs6000/linux.h: Formatting, whitespace.
8362         * config/rs6000/linux64.h: Likewise.
8363         * config/rs6000/rs6000-protos.h: Likewise.
8364         * config/rs6000/rs6000.c: Likewise.
8365         (easy_vector_splat_const): Add fall thru comments.
8366         (output_vec_const_move): Likewise.
8368 2004-10-05  Kelley Cook  <kcook@gcc.gnu.org>
8370         * Makefile.in: Update -Wno-error exceptions for move to build dir.
8372 2004-10-05  Chao-Ying Fu  <fu@mips.com>
8373             Richard Sandiford  <rsandifo@redhat.com>
8375         * doc/invoke.texi (-mpaired-single): Link to the new description of the
8376         built-in functions.  Document dependencies.
8377         (-mips3d): Add link here too.
8378         * doc/extend.texi (MIPS Paired-Single Support): New section.
8380 2004-10-04  Chao-ying Fu  <fu@mips.com>
8382         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Define.
8384 2004-10-04  Diego Novillo  <dnovillo@redhat.com>
8386         * tree-ssa-dom.c (tree_ssa_dominator_optimize):
8387         Initialize OPT_STATS to 0.
8389 2004-10-04  Kazu Hirata  <kazu@cs.umass.edu>
8391         * tree-data-ref.c: Fix comment typos.
8393 2004-10-04  Sebastian Pop  <pop@cri.ensmp.fr>
8395         * tree-data-ref.c (array_base_name_differ_p): Fix comments.  When
8396         the predicate cannot be computed, don't initialize the result to
8397         false.
8399 2004-10-01  Eric Christopher  <echristo@redhat.com>
8401         * dwarf2.h (dwarf_calling_convention): Add GNU prefix to
8402         locally defined enum.
8403         * dwarf2out.c (add_calling_convention_attribute): Don't
8404         emit DW_CC_normal.
8406 2004-10-03  Andrew Pinski  <pinskia@physics.uc.edu>
8408         PR c/17178, PR c/17820
8409         * c-decl.c (pop_scope): Do not warn about unused static
8410         variables as they warned in the middle-end.
8412 2004-10-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8414         * builtins.c (expand_builtin_memcpy): Delete duplicate code
8415         and make the first parameter the expression not the arglist.
8417 2004-10-03  Ulrich Weigand  <uweigand@de.ibm.com>
8419         * expr.c (expand_expr_addr_expr): Only accept Pmode or ptr_mode
8420         as valid modes to expand address expressions.
8422 2004-10-03  Joseph S. Myers  <jsm@polyomino.org.uk>
8424         * c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
8425         c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
8426         c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
8427         code formatting conventions.
8429 2004-10-03  Richard Sandiford  <rsandifo@redhat.com>
8431         * config/mips/mips.md (<u>mulsidi3_32bit_r4000): Fix unsigned case.
8433 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
8435         PR tree-optimization/16632
8436         * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to
8437         fold (A & C) == D into 0, fold ~C.  Similarly, for the case
8438         where | is used instead of &.
8440 2004-10-03  Kazu Hirata  <kazu@cs.umass.edu>
8442         * ginclude/stddef.h: Fix a comment typo.
8444 2004-10-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
8446         PR target/17443
8447         * config.gcc (i?86-*-solaris2*): Restore correct logic
8448         for --enable-threads option.
8449         (sparc64-*-solaris2*): Likewise.
8450         (sparc-*-solaris2*): Likewise.
8452 2004-10-03  Alan Modra  <amodra@bigpond.net.au>
8454         * config/rs6000/linux.h (TARGET_C99_FUNCTIONS): Define.
8455         (OS_MISSING_POWERPC64): Move, and comment.
8456         * config/rs6000/linux64.h (TARGET_C99_FUNCTIONS): Define.
8457         (OS_MISSING_POWERPC64): Move, and comment.
8459 2004-10-02  Ian Lance Taylor  <ian@wasabisystems.com>
8461         * arm.c (output_call_mem): Add missing \t.
8463 2004-10-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8465         * builtins.c (expand_builtin_memcmp, expand_builtin_strcmp,
8466         expand_builtin_strncmp): Delete duplicate code.
8468 2004-10-02  Frank Ch. Eigler  <fche@redhat.com>
8470         * tree-mudflap.c (mf_build_check_statement_for): Reorganize to
8471         take check-base and -limit arguments.
8472         (mf_xform_derefs_1): Reorganize slightly to pass proper base/limit
8473         check ranges for ARRAY_REF and COMPONENT_REF.
8474         (execute_mudflap_fnction_ops, ..._decls): Limit unnecessary
8475         instrumentation.
8477 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
8479         * c-objc-common.c (c_tree_printer): Correct description of %E.
8480         Don't fall through after printing an expression.
8482 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
8484         * tree-cfg.c, config/s390/tpf-unwind.h: Fix comment typos.
8486 2004-10-02  Kazu Hirata  <kazu@cs.umass.edu>
8488         * tree-cfg.c (cleanup_tree_cfg): Speed up by calling
8489         delete_unrechable_blocks() only when necessary.
8491 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
8493         * gthr-tpf.h (__gthread_recursive_mutex_t): New type.
8494         (__GTHREAD_RECURSIVE_MUTEX_INIT): Define.
8495         (__gthread_recursive_mutex_lock, __gthread_recursive_mutex_trylock,
8496         __gthread_recursive_mutex_unlock): New functions.
8498 2004-10-02  P.J. Darcy  <darcypj@us.ibm.com>
8500         * config/s390/t-tpf (LIB2ADDEH): Remove tpf-eh.c.
8501         * config/s390/tpf-eh.c: Remove file.
8502         * config/s390/tpf-unwind.h: New file.
8503         * config/s390/tpf.h (MD_FALLBACK_FRAME_STATE_FOR): Remove.
8504         (MD_UNWIND_SUPPORT): Define.
8506 2004-10-02  Joseph S. Myers  <jsm@polyomino.org.uk>
8508         * c-typeck.c (warn_for_assignment): Don't permit argnum == 0.
8510 2004-10-01  Ulrich Weigand  <uweigand@de.ibm.com>
8512         * config/s390/s390-protos.h (s390_comparison): Add prototype.
8513         * config/s390/s390.c (s390_comparison): New function.
8514         (s390_branch_condition_mask): Return -1 for invalid comparisons.
8515         (s390_branch_condition_mnemonic): Assert valid comparison.
8516         * config/s390/s390.h (PREDICATE_CODES): Add s390_comparison.
8517         * config/s390/s390.md ("*cjump_64", "*cjump_31", "*cjump_long",
8518         "*icjump_64", "*icjump_31", "*icjump_long", "*trap"): Use
8519         s390_comparison instead of comparison_operator.
8521         * config/s390/s390.md (UNSPEC_CMPINT): New constant.
8522         ("cmpmemdi"): Remove.
8523         ("cmpmem_short", "*cmpmem_short"): Use CCUmode instead of CCSmode.
8524         ("cmpmem_long", "*cmpmem_long_64", "*cmpmem_long_31"): Likewise.
8525         ("cmpint_si"): Rename to ...
8526         ("*cmpint_si"): ... this.  Use UNSPEC_CMPINT.
8527         ("cmpint_di", "*cmpint_di"): Likewise.
8528         * config/s390/s390.c (s390_canonicalize_comparison): Remove
8529         redundant UNSPEC_CMPINT conversions.
8530         (s390_expand_cmpmem): Adapt to cmpint pattern changes.
8532 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
8534         * collect2.c (COLLECT_PARSE_FLAG): Remove.
8535         (main): Remove a reference to COLLECT_PARSE_FLAG
8536         * system.h: Poison COLLECT_PARSE_FLAG.
8537         * doc/tm.texi (COLLECT_PARSE_FLAG): Remove.
8539 2004-10-01  Paul Brook  <paul@codesourcery.com>
8541         * config/arm/crti.asm: Give _init and _fini function type.
8543 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
8545         * common.opt (ftree-loop-ivcanon): Enable by default.
8546         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
8547         Enable complete loop unrolling.
8548         (canonicalize_induction_variables, tree_unroll_loops_completely):
8549         Reset scev info.
8551 2004-10-01  Paul Brook  <paul@codesourcery.com>
8553         * config/arm/arm.c (thumb_compute_saved_rag_mask): Or with bitmask,
8554         not register number.
8555         (thumb_find_work_register): Search full register range.
8557 2004-10-01  Andrew Pinski  <pinskia@physics.uc.edu>
8559         PR tree-opt/17343
8560         * tree-cfg.c (group_case_labels): Get the label and not
8561         the case expr for the default case.
8562         When the label we looking at is the default, decrement the
8563         new_size.
8565 2004-10-01  Jan Hubicka  <jh@suse.cz>
8567         * c-decl.c (c_expand_body): Update call tree_rest_of_compilation.
8568         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
8569         * toplev.h (tree_rest_of_compilation): Update prototype.
8570         * tree-optimize.c (tree_rest_of_compilation):  Kill nested_p argument.
8572 2004-10-01  Kazu Hirata  <kazu@cs.umass.edu>
8574         * tree-cfg.c (cleanup_tree_cfg): Pull a call to
8575         cleanup_control_flow() out of the while loop.
8577 2004-10-01  Paolo Bonzini  <bonzini@gnu.org>
8579         * tree-vectorizer.c (vectorizable_operation): Fail unless
8580         the mode for the vector type is indeed a vector mode.
8582 2004-10-01  Zdenek Dvorak  <dvorakz@suse.cz>
8584         * tree-chrec.c (chrec_fold_plus_poly_poly, chrec_fold_plus_1,
8585         chrec_fold_multiply): Use fold_convert or build_int_cst_type instead
8586         of convert.
8587         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
8588         add_to_evolution, set_nb_iterations_in_loop, follow_ssa_edge_in_rhs,
8589         follow_ssa_edge_in_rhs): Ditto.
8590         * tree-ssa-loop-ivopts.c (struct iv): Add base_object field.
8591         (dump_iv): Dump base_object.
8592         (dump_use, dump_cand): Use dump_iv.
8593         (determine_base_object): New function.
8594         (alloc_iv): Initialize base_object field.
8595         (record_use): Clear the ssa_name field of iv.
8596         (get_computation_cost_at): Do not use difference of addresses of
8597         two different objects.
8598         (may_eliminate_iv): Do not require the loop to have just single exit.
8599         * tree-ssa-loop-niter.c (zero_p): Do not check for overflows.
8600         (nonzero_p): New function.
8601         (inverse, number_of_iterations_cond, simplify_using_outer_evolutions,
8602         tree_simplify_using_condition, simplify_using_initial_conditions,
8603         loop_niter_by_eval, find_loop_niter_by_eval,
8604         estimate_numbers_of_iterations_loop, compare_trees,
8605         upper_bound_in_type, lower_bound_in_type,
8606         can_count_iv_in_wider_type_bound): Use buildN instead of build.  Use
8607         fold_convert or build_int_cst_type instead of convert.  Use (non)zero_p
8608         instead of integer_(non)zerop.
8610 2004-10-01  Jakub Jelinek  <jakub@redhat.com>
8612         Revert
8613         2004-09-29  Jakub Jelinek  <jakub@redhat.com>
8615         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
8616         and TI_VA_LIST_FPR_COUNTER_FIELD.
8617         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
8618         * tree-pass.h (pass_stdarg): Add.
8619         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
8620         * tree-stdarg.c: New file.
8621         * Makefile.in (OBJS-common): Add tree-stdarg.o.
8622         (tree-stdarg.o): Add dependencies.
8623         * function.h (struct function): Add va_list_gpr_size and
8624         va_list_fpr_size fields.
8625         * function.c (allocate_struct_function): Initialize them.
8627         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
8628         va_list_{g,f}pr_counter_field.
8629         (ix86_setup_incoming_varargs): Don't do anything if reg_save
8630         area will not be used.  Only save registers that tree-stdarg.c
8631         detected they need saving.
8632         (ix86_va_start): Don't set up fields that won't be used.
8634         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
8635         va_list_{g,f}pr_counter_field.
8636         (setup_incoming_varargs): Don't do anything if reg_save
8637         area will not be used.  Only save registers that tree-stdarg.c
8638         detected they need saving.
8639         (rs6000_va_start): Don't set up fields that won't be used.
8641 2004-09-30  Eric Christopher  <echristo@redhat.com>
8643         * dwarf2.h (dwarf_calling_convention): Add enum for renesas
8644         sh abi.
8645         * dwarf2out.c (add_calling_convention_attribute): New function.
8646         (gen_subroutine_type_die): Use.
8647         * target-def.h (TARGET_DWARF_CALLING_CONVENTION): New hook.
8648         * target.h (gcc_target): Add dwarf_calling_convention.
8649         * hooks.c (hook_int_tree_0): New function.
8650         * hooks.h: Prototype.
8651         * config/sh/sh.c: Include dwarf2.h.
8652         (sh_dwarf_calling_convention): New function.
8653         (TARGET_DWARF_CALLING_CONVENTION): Use.
8654         * doc/tm.texi (TARGET_DWARF_CALLING_CONVENTION): Document.
8656 2004-09-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8658         * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
8659         expand_builtin_strrchr, expand_builtin_strpbrk,
8660         expand_builtin_strncat, expand_builtin_strspn,
8661         expand_builtin_strcspn, expand_builtin_fputs): Eliminate duplicate
8662         code.
8664 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
8666         * config/s390/s390-protos.h (s390_expand_logical_operator): Add
8667         prototype.
8668         (s390_logical_operator_ok_p): Likewise.
8669         * config/s390/s390.c (s390_expand_logical_operator): New function.
8670         (s390_logical_operator_ok_p): Likewise.
8671         * config/s390/s390.md ("anddi3"): New expander.
8672         ("*anddi3"): Rename from old anddi3 pattern, add Q->Q alternative.
8673         ("*anddi3_ss", "*anddi3_ss_inv"): Remove.
8674         ("andsi3"): Use s390_expand_logical_operator.
8675         ("*andsi3_esa", "*andsi3_zarch"): Add Q->Q alternative.
8676         ("*andsi3_ss", "*andsi3_ss_inv"): Remove.
8677         ("andhi3"): New expander.
8678         ("*andhi3_zarch", "*andhi3_esa"): New patterns.
8679         ("andhi3", "*andhi3_ni", "*andhi3_ss", "*andhi3_ss_inv"): Remove.
8680         ("andqi3"): New expander.
8681         ("*andqi3_zarch", "*andqi3_esa"): New patterns.
8682         ("andqi3", "*andqi3_ni", "*andqi3_ss", "*andqi3_ss_inv"): Remove.
8683         ("iordi3"): New expander.
8684         ("*iordi3"): Rename from old iordi3 pattern, add Q->Q alternative.
8685         ("*iordi3_ss", "*iordi3_ss_inv"): Remove.
8686         ("iorsi3"): Use s390_expand_logical_operator.
8687         ("*iorsi3_esa", "*iorsi3_zarch"): Add Q->Q alternative.
8688         ("*iorsi3_ss", "*iorsi3_ss_inv"): Remove.
8689         ("iorhi3"): New expiorer.
8690         ("*iorhi3_zarch", "*iorhi3_esa"): New patterns.
8691         ("iorhi3", "*iorhi3_ni", "*iorhi3_ss", "*iorhi3_ss_inv"): Remove.
8692         ("iorqi3"): New expiorer.
8693         ("*iorqi3_zarch", "*iorqi3_esa"): New patterns.
8694         ("iorqi3", "*iorqi3_ni", "*iorqi3_ss", "*iorqi3_ss_inv"): Remove.
8695         ("xordi3"): New expander.
8696         ("*xordi3"): Rename from old xordi3 pattern, add Q->Q alternative.
8697         ("*xordi3_ss", "*xordi3_ss_inv"): Remove.
8698         ("xorsi3"): New expander.
8699         ("*xorsi3"): Rename from old xorsi3 pattern, add Q->Q alternative.
8700         ("*xorsi3_ss", "*xorsi3_ss_inv"): Remove.
8701         ("xorhi3"): New expander.
8702         ("*xorqi3"): Rename from old xorhi3 pattern, add Q->Q alternative.
8703         ("*xorhi3_ss", "*xorhi3_ss_inv"): Remove.
8704         ("xorqi3"): New expander.
8705         ("*xorqi3"): Rename from old xorqi3 pattern, add Q->Q alternative.
8706         ("*xorqi3_ss", "*xorqi3_ss_inv"): Remove.
8708 2004-09-30  Roger Sayle  <roger@eyesopen.com>
8710         * combine.c (force_to_mode) <NE_EXPR>: Only convert the expression
8711         (AND (NE FOO 0) CONST) into (AND FOO CONST) if FOO has the same
8712         machine mode as the result.
8714 2004-09-30  Ben Elliston  <bje@au.ibm.com>
8716         PR bootstrap/17761
8717         * lcm.c (optimize_mode_switching): Update to use EDGE_SUCC and
8718         FOR_EACH_EDGE macros.
8720 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
8722         * c-tree.h (readonly_error): Remove.
8723         * c-typeck (enum lvalue_use): New.
8724         (lvalue_or_else, readonly_error): Use it.  All callers changed.
8725         (readonly_error): Make static.
8727 2004-09-30  Jan Hubicka  <jh@suse.cz>
8729         PR debug/13974
8730         * cfgrtl.c (try_redirect_by_replacing_jump,
8731         force_nonfallthru_and_redirect, commit_one_edge_insertion,
8732         cfg_layout_merge_blocks):  Do not attach any line number information
8733         to newly inserted instructions.
8734         * emit-rtl.c (emit_insn*_before, emit_insn*_after): Rename to
8735         emit_insn_*_noloc.
8736         (emit_*insn_before, emit_insn*_after): New.
8737         (emit_*insn_before_setloc, emit_*insn_after_setloc): Do not overwrite
8738         existing locators.
8739         * rtl.h (emit_*insn_before_noloc, emit_*insn_after_noloc): Declare.
8740         (emit_*insn_before_sameloc, emit_*insn_after_sameloc): Kill.
8742 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
8744         * config/s390/s390-protos.h (s390_arg_frame_offset): Remove.
8745         (s390_return_address_offset): Remove.
8746         (s390_can_eliminate): Add prototype.
8747         (s390_initial_elimination_offset): Add prototype.
8748         * config/s390/s390.h (CAN_ELIMINATE): Call s390_can_eliminate.
8749         (INITIAL_ELIMINATION_OFFSET): Call s390_initial_elimination_offset.
8750         * config/s390/s390.c (s390_arg_frame_offset): Remove.
8751         (s390_return_address_offset): Remove.
8752         (s390_can_eliminate, s390_initial_elimination_offset): New functions.
8753         (struct machine_function): New member split_branches_pending_p.
8754         (s390_mainpool_start): Allow nonexistant pool insn for empty pool.
8755         (s390_mainpool_finish): Likewise.  Clear base_reg if pool empty.
8756         (s390_optimize_prologue): Remove base_used argument.  Call
8757         s390_update_frame_layout instead of s390_register_info.  Handle
8758         prologue/epilogue insns that touch only RETURN_REGNUM.
8759         (s390_reorg): Remove base_used.  Clear split_branches_pending_p.
8760         (s390_register_info): Remove base_used and return_addr_used
8761         arguments, compute special register usage inline.  Return live
8762         register data to caller.
8763         (s390_frame_info): Remove arguments, do not call s390_register_info.
8764         (s390_init_frame_layout): New function.
8765         (s390_update_frame_layout): Likewise.
8766         (s390_emit_prologue): Call s390_update_frame_layout; some code
8767         move to there.  Do not emit pool placeholder insn if unnecessary.
8769 2004-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
8771         * config/s390/s390.c (legitimate_reload_constant_p): Remove
8772         floating point constant workaround.
8773         (s390_secondary_input_reload_class): Handle PLUS reloads
8774         with too-large constant.
8775         (s390_expand_plus_operand): Likewise.
8776         * config/s390/s390.md ("movdi"): Do not call force_const_mem.
8777         ("movsi"): Likewise.  Also, remove workaround for non-general
8778         operands.
8779         ("movdf"): Do not call force_const_mem.
8780         ("movsf"): Likewise.  Merge expander with *movsf insn.
8781         ("*movsf"): Remove, merge with movsf expander.
8783 2004-09-30  Paul Brook  <paul@codesourcery.com>
8785         * config/arm/symbian.h (STARTFILE_SPEC): Remove crt*.o.
8786         (ENDFILE_SPEC): Define.
8787         * config/arm/t-symbian.h (EXTRA_MULTILIB_PARTS): Set.
8789 2004-09-30  Richard Henderson  <rth@redhat.com>
8791         * config/alpha/qrnnd.asm: Mark for noexecstack.
8793 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
8795         * protoize.c, tree-cfg.c: Fix comment typos.
8797 2004-09-30  Joseph S. Myers  <jsm@polyomino.org.uk>
8799         PR c/17730
8800         * c-typeck.c (lvalue_or_else): Pass msgid directly to error.
8802 2004-09-30  Diego Novillo  <dnovillo@redhat.com>
8804         * tree-ssa-alias.c (collect_points_to_info_r): Move analysis of
8805         expressions...
8806         (add_pointed_to_expr): ... here.
8807         Call add_pointed_to_expr for variables with DECL_INITIAL set.
8808         * tree-dfa.c (add_referenced_var): Scan DECL_INITIAL of any
8809         pointer variable, if set.
8811 2004-09-30  Kazu Hirata  <kazu@cs.umass.edu>
8813         * config/sh/sh.c: Follow spelling conventions.
8815 2004-09-29  Richard Henderson  <rth@redhat.com>
8817         * unwind-dw2.c (_Unwind_GetGR): Honor DWARF_ZERO_REG.
8818         * doc/tm.texi (DWARF_ZERO_REG): New.
8820         * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
8821         alpha_expand_epilogue): Revert 2003-09-30 change to store zero.
8822         * config/alpha/alpha.h (DWARF_ZERO_REG): New.
8824 2004-09-29  Ulrich Weigand  <uweigand@de.ibm.com>
8826         * builtins.c (expand_builtin_strlen): Do not call emit_move_insn
8827         with a PLUS as source operand.
8828         (expand_movstr): Likewise.
8829         (expand_builtin_stpcpy): Likewise.
8831 2004-09-29  Richard Henderson  <rth@redhat.com>
8833         PR 17739
8834         * tree-gimple.c (is_gimple_reg): Reject hard registers.
8835         (is_gimple_asm_val): New.
8836         * tree-gimple.h (is_gimple_asm_val): Declare.
8837         * gimplify.c (gimplify_asm_expr): Use it.
8838         * tree-pretty-print.c (print_declaration): Dump hard regs.
8839         * tree-outof-ssa.c (check_replaceable): Don't check for hard regs.
8840         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
8841         * tree-ssa-pre.c (is_undefined_value): Likewise.
8842         * tree-ssa-copy.c (may_propagate_copy): Likewise.
8843         (may_propagate_copy_into_asm): Protect DECL_HARD_REGISTER.
8844         * tree-ssa.c (warn_uninit): Likewise.
8845         * tree.h (DECL_HARD_REGISTER): Check for VAR_DECL.
8847 2004-09-29  Fariborz Jahanian <fjahanian@apple.com>
8849         * c-decl.c (merge_decls): Use comptype when comparing
8850         types to decide on DECL_SIZE save of olddecl.
8852 2004-09-29  Daniel Berlin  <dberlin@dberlin.org>
8854         * tree.h (INDIRECT_REF_P): New macro.
8855         * alias.c (get_alias_set): Use it
8856         (nonoverlapping_memrefs_p): Ditto.
8857         * emit-rtl.c (mem_expr_equal_p): Ditto.
8858         (set_mem_attributes_minus_bitpos): Ditto.
8859         (is_gimple_addressable): Ditto.
8860         (get_base_address): Ditto.
8861         * tree-ssa-alias.c (find_ptr_derefernece): Ditto.
8862         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Ditto.
8863         * tree-ssa-dom.c (record_equivalences_from_stmt): Ditto.
8864         * tree-ssa-loop-im.c (is_call_clobbered_ref): Ditto.
8865         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Ditto.
8866         (add_address_candidates): Ditto.
8867         (rewrite_address_base): Ditto.
8869 2004-09-30  Ben Elliston  <bje@au.ibm.com>
8871         * tree-flow.h (struct bb_ann_d): Remove num_preds member.
8872         * tree-into-ssa.c (rewrite_into_ssa): Don't set it.
8873         (rewrite_ssa_into_ssa): Likewise.
8874         * tree-phinodes.c (create_phi_node): Access the number of
8875         predecessor edges using EDGE_COUNT() and not num_preds.
8877 2004-09-29  Joseph S. Myers  <jsm@polyomino.org.uk>
8879         PR c/7425
8880         * c-decl.c (merge_decls): Merge TREE_DEPRECATED.
8882 2004-09-29  Eric Christopher  <echristo@redhat.com>
8884         * fold-const.c (tree_swap_operands_p): Remove duplicated code.
8886 2004-09-29  Hans-Peter Nilsson  <hp@axis.com>
8888         * config/cris/cris.md (moverside, movemside): With MEM, make sure
8889         the address is (plus reg mem).
8891 2004-09-29  David Edelsohn  <edelsohn@gnu.org>
8893         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
8895 2004-09-29  Nathan Sidwell  <nathan@codesourcery.com>
8897         * tree.c (make_node_stat): Fix uninitialized warning.  Replace
8898         cascaded if ... else if with a switch.
8900 2004-09-29  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8902         * read-rtl.c (apply_macro_to_string): Replace index with strchr.
8904 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
8906         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
8907         and TI_VA_LIST_FPR_COUNTER_FIELD.
8908         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
8909         * tree-pass.h (pass_stdarg): Add.
8910         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
8911         * tree-stdarg.c: New file.
8912         * Makefile.in (OBJS-common): Add tree-stdarg.o.
8913         (tree-stdarg.o): Add dependencies.
8914         * function.h (struct function): Add va_list_gpr_size and
8915         va_list_fpr_size fields.
8916         * function.c (allocate_struct_function): Initialize them.
8918         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
8919         va_list_{g,f}pr_counter_field.
8920         (ix86_setup_incoming_varargs): Don't do anything if reg_save
8921         area will not be used.  Only save registers that tree-stdarg.c
8922         detected they need saving.
8923         (ix86_va_start): Don't set up fields that won't be used.
8925         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
8926         va_list_{g,f}pr_counter_field.
8927         (setup_incoming_varargs): Don't do anything if reg_save
8928         area will not be used.  Only save registers that tree-stdarg.c
8929         detected they need saving.
8930         (rs6000_va_start): Don't set up fields that won't be used.
8932 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
8934         * builtins.def (BUILT_IN_FPUTC, BUILT_IN_FPUTC_UNLOCKED,
8935         BUILT_IN_FPUTS, BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE,
8936         BUILT_IN_FWRITE_UNLOCKED, BUILT_IN_PUTCHAR, BUILT_IN_PUTCHAR_UNLOCKED,
8937         BUILT_IN_PUTS, BUILT_IN_PUTS_UNLOCKED): Remove nothrow attribute.
8938         * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_1_2,
8939         ATTR_NONNULL_1_4): New.
8941 2004-09-29  Jakub Jelinek  <jakub@redhat.com>
8943         PR tree-optimization/17697
8944         * tree-ssa-ccp.c (execute_fold_all_builtins): Update eh and cleanup
8945         cfg if needed.
8947 2004-09-28  Per Bothner  <per@bothner.com>
8949         * profile.c (branch_prob): Pass correct value to output_location,
8950         even when USE_MAPPED_LOCATION.  Fixes bug from 09-11.
8952 2004-09-28  Richard Henderson  <rth@redhat.com>
8954         PR 15089
8955         * tree-ssa-copy.c (may_propagate_copy_into_asm): New.
8956         * tree-flow.h (may_propagate_copy_into_asm): Declare.
8957         * tree-ssa-ccp.c (replace_uses_in): Use it.
8958         * tree-ssa-dom.c (cprop_operand): Likewise.
8960 2004-09-28 Jeff Law  <law@redhat.com>
8962         * tree-ssa-threadupdate.c (create_block_for_threading):  Request
8963         that no outgoing edges be left in the duplicate block.  Do no
8964         update information on outgoing edges or PHI nodes in target
8965         blocks here.
8966         (remove_ctrl_stmt_and_useless_edges): Renamed from
8967         remove_last_stmt_and_useless_edges.  Handle case where the
8968         block is empty or has no control statements.  Do not update edge
8969         flags here.
8970         (thread_block): Create a template block rather than copying the
8971         original block every time.  Create outgoing edges from the
8972         duplicate blocks and update PHIs at the target of the outgoing
8973         edges here.  Fix edge flags for the original block if necessary.
8974         * cfghooks (duplicate_block): No longer assert that the original
8975         block has incoming edges.
8977 2004-09-29  Hans-Peter Nilsson  <hp@bitrange.com>
8979         * doc/extend.texi (Extended Asm): Add blurb about using Explicit
8980         Reg Vars to enforce register allocation with general constraints.
8981         (Explicit Reg Vars): Clarify relation to asm statements.
8982         (Local Reg Vars): Similar.
8984 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
8986         * sched-rgn.c (haifa_edge, edge_table, NEXT_IN, NEXT_OUT, FROM_BLOCK,
8987         TO_BLOCK, nr_edges, in_edges, out_edges, IN_EDGES, OUT_EDGES,
8988         build_control_flow, new_edge): Remove.
8989         (schedule_insns): Remove edge_table/in_edges/out_edges cleanup.
8990         (bitlst, bitlst_table_last, bitlst_table): Remove.
8991         (bblst): Store basic_block pointer instead of block index.
8992         (bblst_table): Likewise.
8993         (edgelst): Store edge pointer instead of edge index.
8994         (edgelst_table, edgelst_last): New variables.
8995         (extract_bitlst): Rename to ...
8996         (extract_edgelst): ... this.  Return edge pointers, not indices.
8997         (split_edges): Update call.
8998         (rgn_edges): Store edge pointers instead of indices.
8999         (edge_to_bit): Remove.
9000         (EDGE_TO_BIT): Store per-region edge index in edge->aux.
9001         (SET_EDGE_TO_BIT): New macro.
9002         (is_cfg_nonregular): Check for simple cases of unreachable blocks.
9003         (find_rgns): Remove edge_list parameter.  Traverse standard CFG
9004         data structures instead of haifa_edge et al.  Use edge pointers
9005         instead of edge indices everywhere.
9006         (compute_dom_prob_ps): Use standard CFG data structures.  Account
9007         for exit edges.
9008         (compute_trg_info): Likewise.
9009         (propagate_deps): Likewise.
9010         (debug_candidate): Account for bblst data structure change.
9011         (check_live_1, update_live_1, is_pfree): Likewise.
9012         (IS_REACHABLE): Use standard CFG data structures.
9013         (init_ready_list): Update bblst_table/edgelst_table allocation.
9014         (schedule_region): Update alloc/cleanup code to data structure
9015         changes.  Use edge->aux to store per-region edge index.
9016         (init_regions): No longer call build_control_flow.  Do not
9017         create edge list any more.
9019 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
9021         * cse.c (cse_insn): Avoid creating direct non-local jumps.
9022         * combine.c (can_combine_p): Likewise.
9023         * local-alloc. (update_equiv_regs): Likewise.
9025 2004-09-28  Richard Henderson  <rth@redhat.com>
9027         PR 17531
9028         * expr.c (expand_expr_addr_expr_1): Only assemble_external for decls.
9029         Don't check VOIDmode here.  Force PLUS operands to common type.
9030         (expand_expr_addr_expr): Do VOIDmode check earlier.  Force use of
9031         Pmode if given a non pointer type.
9033 2004-09-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9035         PR 17531
9036         * optabs.c (expand_binop): Force constants to the correct mode.
9038 2004-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
9040         * config/s390/s390.c (s390_adjust_cost): Remove.
9041         (TARGET_SCHED_ADJUST_COST): Do not redefine.
9042         (s390_adjust_priority): Handle TYPE_STM like TYPE_STORE.
9043         * config/s390/s390.md ("main_pool"): Use "larl" type
9044         attribute if TARGET_CPU_ZARCH.
9046 2004-09-28  Jakub Jelinek  <jakub@redhat.com>
9048         * config/ia64/ia64.c (ia64_expand_prologue): Declare ei
9049         variable.
9051 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
9053         * tree-ssa-loop.c (pass_record_bounds): Do not assign a
9054         name to the pass.
9056 2004-09-28  Steven Bosscher  <stevenb@suse.de>
9058         * common.opt (flag_gcse_sm): Disable by default.
9059         (flag_gcse_las): Likewise.
9060         (flag_web): Likewise.  Create from this file.
9061         * flags.h: Remove flag_web declaration.
9062         * toplev.c (flag_web): Likewise.
9063         (process_options): Never set flag_web.
9065 2004-09-28  Steven Bosscher  <stevenb@suse.de>
9067         * Makefile.in (tree-ssa-propagate.o): Depend on vec.h.
9068         * tree-ssa-propagate.c: Include vec.h.
9069         (interesting_ssa_edges, varying_ssa_edges): Make these VECs
9070         instead of varrays.
9071         (cfg_blocks_add): Assert the block is not already in the worklist.
9072         Update uses of interesting_ssa_edges and varying_ssa_edges.
9073         (process_ssa_edge_worklist, ssa_prop_init, ssa_prop_fini,
9074         ssa_propagate): Likewise.
9076 2004-09-28  Joseph S. Myers  <jsm@polyomino.org.uk>
9078         PR c/16409
9079         * c-decl.c (start_decl): Check for initializing incomplete array
9080         of VLAs.
9081         (build_compound_literal): Check for TYPE being error_mark_node.
9082         * c-parse.in (primary): Check for VLA compound literals.
9084 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
9086         * tree-ssa-live.c (calculate_live_on_entry): Fix warnings
9087         with --disable-checking.
9089 2004-09-28  Devang Patel  <dpatel@apple.com>
9091         * tree-pretty-print.c (dump_generic_node): Print vector types.
9093 2004-09-28  Nick Clifton  <nickc@redhat.com>
9095         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Replace with an
9096         invocation of the function sh_init_cumulative_args.
9097         (INIT_CUMULATIVE_LIBCALL_ARGS): Likewise.
9098         (INIT_CUMULATIVE_INCOMING_ARGS): Delete.
9099         * config/sh/sh-protos.h: Prototype sh_init_cumulative_args.
9100         * config/sh/sh.c (sh_init_cumulative_args): New function based
9101         on the contents of the old INIT_CUMULATIVE_ARGS macro but with a
9102         heuristic added to determine the setting of force_mem when a
9103         library function is being called.
9105 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
9107         * tree-ssa-loop-im.c (single_reachable_address) <PHI_NODE>:
9108         Skip constant arguments.
9110 2004-09-28  Diego Novillo  <dnovillo@redhat.com>
9112         * tree-ssa-alias.c (create_name_tags): If PTR points to a
9113         volatile type, mark the tag volatile.
9114         (get_tmt_for): If TAG_TYPE is a volatile type, mark the tag
9115         volatile.
9117 2004-09-28  Andrew Pinski  <pinskia@physics.uc.edu>
9119         * tree.def (vec_cond_expr): Fix. Change 'e'
9120         to tcc_expression.
9122 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
9124         * basic-block.h: Fix a comment typo.
9126 2004-09-28  Kazu Hirata  <kazu@cs.umass.edu>
9128         * optabs.c, optabs.h: Fix comment typos.
9130 2004-09-28  Eric Botcazou  <ebotcazou@act-europe.fr>
9132         * config/sparc/sparc.md (call_address_struct_value_sp32):
9133         Properly mask the immediate field of the 'unimp' instruction.
9134         (call_symbolic_struct_value_sp32): Likewise.
9136 2004-09-28  Ben Elliston  <bje@au.ibm.com>
9137             Steven Bosscher  <stevenb@suse.de>
9138             Andrew Pinski  <pinskia@physics.uc.edu>
9140         Merge from edge-vector-branch:
9141         * basic-block.h: Include vec.h, errors.h. Instantiate a VEC(edge).
9142         (struct edge_def): Remove pred_next, succ_next members.
9143         (struct basic_block_def): Remove pred, succ members.  Add preds
9144         and succs members of type VEC(edge).
9145         (FALLTHRU_EDGE): Redefine using EDGE_SUCC.
9146         (BRANCH_EDGE): Likewise.
9147         (EDGE_CRITICAL_P): Redefine using EDGE_COUNT.
9148         (EDGE_COUNT, EDGE_I, EDGE_PRED, EDGE_SUCC): New.
9149         (edge_iterator): New.
9150         (ei_start, ei_last, ei_end_p, ei_one_before_end_p): New.
9151         (ei_next, ei_prev, ei_edge, ei_safe_edge): Likewise.
9152         (FOR_EACH_EDGE): New.
9153         * bb-reorder.c (find_traces): Use FOR_EACH_EDGE and EDGE_* macros
9154         where applicable.
9155         (rotate_loop): Likewise.
9156         (find_traces_1_route): Likewise.
9157         (bb_to_key): Likewise.
9158         (connect_traces): Likewise.
9159         (copy_bb_p): Likewise.
9160         (find_rarely_executed_basic_blocks_and_crossing_edges): Likewise.
9161         (add_labels_and_missing_jumps): Likewise.
9162         (fix_up_fall_thru_edges): Likewise.
9163         (find_jump_block): Likewise.
9164         (fix_crossing_conditional_branches): Likewise.
9165         (fix_crossing_unconditional_branches): Likewise.
9166         (add_reg_crossing_jump_notes): Likewise.
9167         * bt-load.c (augment_live_range): Likewise.
9168         * cfg.c (clear_edges): Likewise.
9169         (unchecked_make_edge): Likewise.
9170         (cached_make_edge): Likewise.
9171         (make_single_succ_edge): Likewise.
9172         (remove_edge): Likewise.
9173         (redirect_edge_succ_nodup): Likewise.
9174         (check_bb_profile): Likewise.
9175         (dump_flow_info): Likewise.
9176         (alloc_aux_for_edges): Likewise.
9177         (clear_aux_for_edges): Likewise.
9178         (dump_cfg_bb_info): Likewise.
9179         * cfganal.c (forwarder_block_p): Likewise.
9180         (can_fallthru): Likewise.
9181         (could_fall_through): Likewise.
9182         (mark_dfs_back_edges): Likewise.
9183         (set_edge_can_fallthru_flag): Likewise.
9184         (find_unreachable_blocks): Likewise.
9185         (create_edge_list): Likewise.
9186         (verify_edge_list): Likewise.
9187         (add_noreturn_fake_exit_edges): Likewise.
9188         (connect_infinite_loops_to_exit): Likewise.
9189         (flow_reverse_top_sort_order_compute): Likewise.
9190         (flow_depth_first_order_compute): Likewise.
9191         (flow_preorder_transversal_compute): Likewise.
9192         (flow_dfs_compute_reverse_execute): Likewise.
9193         (dfs_enumerate_from): Likewise.
9194         (compute_dominance_frontiers_1): Likewise.
9195         * cfgbuild.c (make_edges): Likewise.
9196         (compute_outgoing_frequencies): Likewise.
9197         (find_many_sub_basic_blocks): Likewise.
9198         (find_sub_basic_blocks): Likewise.
9199         * cfgcleanup.c (try_simplify_condjump): Likewise.
9200         (thread_jump): Likewise.
9201         (try_forward_edges): Likewise.
9202         (merge_blocks_move): Likewise.
9203         (outgoing_edges_match): Likewise.
9204         (try_crossjump_to_edge): Likewise.
9205         (try_crossjump_bb): Likewise.
9206         (try_optimize_cfg): Likewise.
9207         (merge_seq_blocks): Likewise.
9208         * cfgexpand.c (expand_gimple_tailcall): Likewise.
9209         (expand_gimple_basic_block): Likewise.
9210         (construct_init_block): Likewise.
9211         (construct_exit_block): Likewise.
9212         * cfghooks.c (verify_flow_info): Likewise.
9213         (dump_bb): Likewise.
9214         (delete_basic_block): Likewise.
9215         (split_edge): Likewise.
9216         (merge_blocks): Likewise.
9217         (make_forwarder_block): Likewise.
9218         (tidy_fallthru_edges): Likewise.
9219         (can_duplicate_block_p): Likewise.
9220         (duplicate_block): Likewise.
9221         * cfglayout.c (fixup_reorder_chain): Likewise.
9222         (fixup_fallthru_exit_predecessor): Likewise.
9223         (can_copy_bbs_p): Likewise.
9224         (copy_bbs): Likewise.
9225         * cfgloop.c (flow_loops_cfg_dump): Likewise.
9226         (flow_loop_entry_edges_find): Likewise.
9227         (flow_loop_exit_edges_find): Likewise.
9228         (flow_loop_nodes_find): Likewise.
9229         (mark_single_exit_loops): Likewise.
9230         (flow_loop_pre_header_scan): Likewise.
9231         (flow_loop_pre_header_find): Likewise.
9232         (update_latch_info): Likewise.
9233         (canonicalize_loop_headers): Likewise.
9234         (flow_loops_find): Likewise.
9235         (get_loop_body_in_bfs_order): Likewise.
9236         (get_loop_exit_edges): Likewise.
9237         (num_loop_branches): Likewise.
9238         (verify_loop_structure): Likewise.
9239         (loop_latch_edge): Likewise.
9240         (loop_preheader_edge): Likewise.
9241         * cfgloopanal.c (mark_irreducible_loops): Likewise.
9242         (expected_loop_iterations): Likewise.
9243         * cfgloopmanip.c (remove_bbs): Likewise.
9244         (fix_bb_placement): Likewise.
9245         (fix_irreducible_loops): Likewise.
9246         (remove_path): Likewise.
9247         (scale_bbs_frequencies): Likewise.
9248         (loopify): Likewise.
9249         (unloop): Likewise.
9250         (fix_loop_placement): Likewise.
9251         (loop_delete_branch_edge): Likewise.
9252         (duplicate_loop_to_header_edge): Likewise.
9253         (mfb_keep_just): Likewise.
9254         (create_preheader): Likewise.
9255         (force_single_succ_latches): Likewise.
9256         (loop_split_edge_with): Likewise.
9257         (create_loop_notes): Likewise.
9258         * cfgrtl.c (rtl_split_block): Likewise.
9259         (rtl_merge_blocks): Likewise.
9260         (rtl_can_merge_blocks): Likewise.
9261         (try_redirect_by_replacing_jump): Likewise.
9262         (force_nonfallthru_and_redirect): Likewise.
9263         (rtl_tidy_fallthru_edge): Likewise.
9264         (commit_one_edge_insertion): Likewise.
9265         (commit_edge_insertions): Likewise.
9266         (commit_edge_insertions_watch_calls): Likewise.
9267         (rtl_verify_flow_info_1): Likewise.
9268         (rtl_verify_flow_info): Likewise.
9269         (purge_dead_edges): Likewise.
9270         (cfg_layout_redirect_edge_and_branch): Likewise.
9271         (cfg_layout_can_merge_blocks_p): Likewise.
9272         (rtl_flow_call_edges_add): Likewise.
9273         * cse.c (cse_cc_succs): Likewise.
9274         * df.c (hybrid_search): Likewise.
9275         * dominance.c (calc_dfs_tree_nonrec): Likewise.
9276         (calc_dfs_tree): Likewise.
9277         (calc_idoms): Likewise.
9278         (recount_dominator): Likewise.
9279         * domwalk.c (walk_dominator_tree): Likewise.
9280         * except.c (emit_to_new_bb_before): Likewise.
9281         (connect_post_landing_pads): Likewise.
9282         (sjlj_emit_function_enter): Likewise.
9283         (sjlj_emit_function_exit): Likewise.
9284         (finish_eh_generation): Likewise.
9285         * final.c (compute_alignments): Likewise.
9286         * flow.c (calculate_global_regs_live): Likewise.
9287         (initialize_uninitialized_subregs): Likewise.
9288         (init_propagate_block_info): Likewise.
9289         * function.c (thread_prologue_and_epilogue_insns): Likewise.
9290         * gcse.c (find_implicit_sets): Likewise.
9291         (bypass_block): Likewise.
9292         (bypass_conditional_jumps): Likewise.
9293         (compute_pre_data): Likewise.
9294         (insert_insn_end_bb): Likewise.
9295         (insert_store): Likewise.
9296         (remove_reachable_equiv_notes): Likewise.
9297         * global.c (global_conflicts): Likewise.
9298         (calculate_reg_pav): Likewise.
9299         * graph.c (print_rtl_graph_with_bb): Likewise.
9300         * ifcvt.c (mark_loop_exit_edges): Likewise.
9301         (merge_if_block): Likewise.
9302         (find_if_header): Likewise.
9303         (block_jumps_and_fallthru_p): Likewise.
9304         (find_if_block): Likewise.
9305         (find_cond_trap): Likewise.
9306         (block_has_only_trap): Likewise.
9307         (find_if_case1): Likewise.
9308         (find_if_case_2): Likewise.
9309         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
9310         (perfect_nestify): Likewise.
9311         * lcm.c (compute_antinout_edge): Likewise.
9312         (compute_laterin): Likewise.
9313         (compute_available): Likewise.
9314         (compute_nearerout): Likewise.
9315         * loop-doloop.c (doloop_modify): Likewise.
9316         * loop-init.c (loop_optimizer_init): Likewise.
9317         * loop-invariant.c (find_exits): Likewise.
9318         * loop-iv.c (simplify_using_initial_values): Likewise.
9319         (check_simple_exit): Likewise.
9320         (find_simple_exit): Likewise.
9321         * loop-unroll.c (peel_loop_completely): Likewise.
9322         (unroll_loop_constant_iterations): Likewise.
9323         (unroll_loop_runtime_iterations): Likewise.
9324         * loop-unswitch.c (may_unswitch_on): Likewise.
9325         (unswitch_loop): Likewise.
9326         * modulo-sched.c (generate_prolog_epilog): Likewise.
9327         (sms_schedule): Likewise.
9328         * postreload-gcse.c (eliminate_partially_redundant_load):
9329         Likewise.
9330         * predict.c (can_predict_insn_p): Likewise.
9331         (set_even_probabilities): Likewise.
9332         (combine_predictions_for_bb): Likewise.
9333         (predict_loops): Likewise.
9334         (estimate_probability): Likewise.
9335         (tree_predict_by_opcode): Likewise.
9336         (tree_estimate_probability): Likewise.
9337         (last_basic_block_p): Likewise.
9338         (propagate_freq): Likewise.
9339         (estimate_loops_at_level): Likewise.
9340         (estimate_bb_frequencies): Likewise.
9341         * profile.c (instrument_edges): Likewise.
9342         (get_exec_counts): Likewise.
9343         (compute_branch_probabilities): Likewise.
9344         (branch_prob): Likewise.
9345         * ra-build.c (live_in): Likewise.
9346         * ra-rewrite.c (rewrite_program2): Likewise.
9347         * ra.c (reg_alloc): Likewise.
9348         * reg-stack.c (reg_to_stack): Likewise.
9349         (convert_regs_entry): Likewise.
9350         (compensate_edge): Likewise.
9351         (convert_regs_1): Likewise,
9352         (convert_regs_2): Likewise.
9353         (convert_regs): Likewise.
9354         * regrename.c (copyprop_hardreg_forward): Likewise.
9355         * reload1.c (fixup_abnormal_edges): Likewise.
9356         * sbitmap.c (sbitmap_intersection_of_succs): Likewise.
9357         (sbitmap_insersection_of_preds): Likewise.
9358         (sbitmap_union_of_succs): Likewise.
9359         (sbitmap_union_of_preds): Likewise.
9360         * sched-ebb.c (compute_jump_reg_dependencies): Likewise.
9361         (fix_basic_block_boundaries): Likewise.
9362         (sched_ebbs): Likewise.
9363         * sched-rgn.c (build_control_flow): Likewise.
9364         (find_rgns): Likewise.
9365         * tracer.c (find_best_successor): Likewise.
9366         (find_best_predecessor): Likewise.
9367         (tail_duplicate): Likewise.
9368         * tree-cfg.c (make_edges): Likewise.
9369         (make_ctrl_stmt_edges): Likewise.
9370         (make_goto_expr_edges): Likewise.
9371         (tree_can_merge_blocks_p): Likewise.
9372         (tree_merge_blocks): Likewise.
9373         (cfg_remove_useless_stmts_bb): Likewise.
9374         (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
9375         (tree_block_forwards_to): Likewise.
9376         (cleanup_control_expr_graph): Likewise.
9377         (find_taken_edge): Likewise.
9378         (dump_cfg_stats): Likewise.
9379         (tree_cfg2vcg): Likewise.
9380         (disband_implicit_edges): Likewise.
9381         (tree_find_edge_insert_loc): Likewise.
9382         (bsi_commit_edge_inserts): Likewise.
9383         (tree_split_edge): Likewise.
9384         (tree_verify_flow_info): Likewise.
9385         (tree_make_forwarder_block): Likewise.
9386         (tree_forwarder_block_p): Likewise.
9387         (thread_jumps): Likewise.
9388         (tree_try_redirect_by_replacing_jump): Likewise.
9389         (tree_split_block): Likewise.
9390         (add_phi_args_after_copy_bb): Likewise.
9391         (rewrite_to_new_ssa_names_bb): Likewise.
9392         (dump_function_to_file): Likewise.
9393         (print_pred_bbs): Likewise.
9394         (print_loop): Likewise.
9395         (tree_flow_call_edges_add): Likewise.
9396         (split_critical_edges): Likewise.
9397         (execute_warn_function_return): Likewise.
9398         (extract_true_false_edges_from_block): Likewise.
9399         * tree-if-conv.c (tree_if_conversion): Likewise.
9400         (if_convertable_bb_p): Likewise.
9401         (find_phi_replacement_condition): Likewise.
9402         (combine_blocks): Likewise.
9403         * tree-into-ssa.c (compute_global_livein): Likewise.
9404         (ssa_mark_phi_uses): Likewise.
9405         (ssa_rewrite_initialize_block): Likewise.
9406         (rewrite_add_phi_arguments): Likewise.
9407         (ssa_rewrite_phi_arguments): Likewise.
9408         (insert_phi_nodes_for): Likewise.
9409         (rewrite_into_ssa): Likewise.
9410         (rewrite_ssa_into_ssa): Likewise.
9411         * tree-mudflap.c (mf_build_check_statement_for): Likewise.
9412         * tree-outof-ssa.c (coalesce_abnormal_edges): Likewise.
9413         (rewrite_trees): Likewise.
9414         * tree-pretty-print.c (dump_bb_header): Likewise.
9415         (dump_implicit_edges): Likewise.
9416         * tree-sra.c (insert_edge_copies): Likewise.
9417         (find_obviously_necessary_stmts): Likewise.
9418         (remove_data_stmt): Likewise.
9419         * tree-ssa-dom.c (thread_across_edge): Likewise.
9420         (dom_opt_finalize_block): Likewise.
9421         (single_incoming_edge_ignoring_loop_edges): Likewise.
9422         (record_equivalences_from_incoming_edges): Likewise.
9423         (cprop_into_successor_phis): Likewise.
9424         * tree-ssa-live.c (live_worklist): Likewise.
9425         (calculate_live_on_entry): Likewise.
9426         (calculate_live_on_exit): Likewise.
9427         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
9428         (copy_loop_headers): Likewise.
9429         * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
9430         (fill_always_executed_in): Likewise.
9431         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Likewise.
9432         * tree-ssa-loop-ivopts.c (find_interesting_uses): Likewise.
9433         (compute_phi_arg_on_exit): Likewise.
9434         * tree-ssa-loop-manip.c (add_exit_phis_edge): Likewise.
9435         (get_loops_exit): Likewise.
9436         (split_loop_exit_edge): Likewise.
9437         (ip_normal_pos): Likewise.
9438         * tree-ssa-loop-niter.c (simplify_using_initial_conditions):
9439         Likewise.
9440         * tree-ssa-phiopt.c (candidate_bb_for_phi_optimization): Likewise.
9441         (replace_phi_with_stmt): Likewise.
9442         (value_replacement): Likewise.
9443         * tree-ssa-pre.c (compute_antic_aux): Likewise.
9444         (insert_aux): Likewise.
9445         (init_pre): Likewise.
9446         * tree-ssa-propagate.c (simulate_stmt): Likewise.
9447         (simulate_block): Likewise.
9448         (ssa_prop_init): Likewise.
9449         * tree-ssa-threadupdate.c (thread_block): Likewise.
9450         (create_block_for_threading): Likewise.
9451         (remove_last_stmt_and_useless_edges): Likewise.
9452         * tree-ssa.c (verify_phi_args): Likewise.
9453         (verify_ssa): Likewise.
9454         * tree_tailcall.c (independent_of_stmt_p): Likewise.
9455         (find_tail_calls): Likewise.
9456         (eliminate_tail_call): Likewise.
9457         (tree_optimize_tail_calls_1): Likewise.
9458         * tree-vectorizer.c (vect_transform_loop): Likewise.
9459         * var-tracking.c (prologue_stack_adjust): Likewise.
9460         (vt_stack_adjustments): Likewise.
9461         (vt_find_locations): Likewise.
9462         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
9463         * config/i386/i386.c (ix86_pad_returns): Likewise.
9464         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9465         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9467 2004-09-28  Eric Botcazou  <ebotcazou@libertysurf.fr>
9469         PR target/16532
9470         * config/sparc/sparc.c (struct machine_function): New field
9471         'leaf_function_p' and 'prologue_data_valid_p'.
9472         (sparc_leaf_function_p, sparc_prologue_data_valid_p): New macro
9473         to conveniently access the above fields.
9474         (TARGET_LATE_RTL_PROLOGUE_EPILOGUE): Delete.
9475         (eligible_for_return_delay): Use 'sparc_leaf_function_p' instead
9476         of the generic flavor 'current_function_uses_only_leaf_regs'.
9477         (eligible_for_sibcall_delay): Likewise.
9478         (sparc_expand_prologue): Compute 'sparc_leaf_function_p' and set
9479         'sparc_prologue_data_valid_p'.  Use 'sparc_leaf_function_p'.
9480         (sparc_asm_function_prologue): Add sanity check for the assumption
9481         made in 'sparc_expand_prologue'.  Use 'sparc_leaf_function_p'.
9482         (sparc_can_use_return_insn_p): New function.
9483         (sparc_expand_epilogue): Use 'sparc_leaf_function_p'.
9484         (output_restore): Likewise.
9485         (output_sibcall): Likewise.
9486         (sparc_output_mi_thunk): Likewise.
9487         * config/sparc/sparc-protos.h (sparc_can_use_return_insn_p): Declare.
9488         * config/sparc/sparc.md (return): New expander.
9490         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Minor tweak.
9492 2004-09-27  Mark Mitchell  <mark@codesourcery.com>
9494         PR c++/17642
9495         * stor-layout.c (layout_decl): Use fold_convert, not convert.
9496         (bit_from_pos): Likewise.
9497         (byte_from_pos): Likewise.
9498         (pos_from_bit): Likewise.
9499         (normalize_offset): Likewise.
9500         (place_field): Likewise.
9501         (finalize_type_size): Likewise.
9502         (layout_type): Likewise.
9503         * tree.c (build_index_type): Likewise.
9505 2004-09-27  Devang Patel  <dpatel@apple.com>
9507         * expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
9508         * genopinit.c (optabs): New entry for vcond_gen_code and
9509         vcondu_gen_code.
9510         * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs.
9511         (get_rtx_code): New function.
9512         (vector_compare_rtx): New function.
9513         (init_optabs): Initialize vcond_gen_code and vcondu_gen_code.
9514         (expand_vec_cond_expr_p): New function.
9515         (expand_vec_cond_expr): New function.
9516         (get_vcond_icode): New function.
9517         * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs.
9518         (vcond_gen_code, vcondu_gen_code): Same.
9520 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
9522         * Makefile.in (STAGESTUFF): Split into ...
9523         (STAGECOPYSTUFF, STAGEMOVESTUFF): ... these.
9524         (mostlyclean): Update.
9525         (stage1-start, stage2-start, stage3-start, stage4-start,
9526         stageprofile-start, stagefeedback-start): Copy the STAGECOPYSTUFF.
9527         Move the STAGEMOVESTUFF.
9529 2004-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
9531         * system.h (getpagesize): Return 'int' instead of 'long'.
9533 2004-09-27  Michael Matz <matz@suse.de>
9535         PR bootstrap/17698
9536         PR bootstrap/17702
9537         * bitmap.h (bmp_iter_single_init, bmp_iter_and_not_init,
9538         bmp_iter_and_init): Shift by bit_in_word.
9540 2004-09-27  Kelley Cook  <kcook@gcc.gnu.org>
9542         * aclocal.m4: Quote m4_includes. Include ../config/gcc-lib-path.m4.
9543         * configure.ac: Don't sinclude it here.
9544         * configure: Regenerate.
9546 2004-09-27  Dorit Naishlos  <dorit@il.ibm.com>
9548         * config/rs6000/rs6000.c (rs6000_legitimate_address, print_operand):
9549         Handle AND pattern
9551 2004-09-27  Joseph S. Myers  <jsm@polyomino.org.uk>
9553         PR c/13804
9554         * c-typeck.c (build_component_ref): Name type involved in
9555         diagnostic for structure or union without a member of the given
9556         name.
9558 2004-09-27  DJ Delorie  <dj@redhat.com>
9560         * config/stormy16/stormy16.c (xstormy16_asm_output_aligned_common):
9561         .comm alignment is bytes, not bits.
9563 2004-09-27  Devang Patel  <dpatel@apple.com>
9565         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
9566         (print_call_name): Do not print VEC_COND_EXPR.
9568 2004-09-27  Devang Patel  <dpatel@apple.com>
9570         * tree-pretty-print.c (dump_generic_node): Print VEC_COND_EXPR.
9572 2004-09-27  Jan Hubicka  <jh@suse.cz>
9574         * i386.c (athlon_cost, k8_cost): Set BRANCH_COST to 5.
9576 2004-09-27  Kazu Hirata  <kazu@cs.umass.edu>
9578         * bitmap.h: Fix a comment typo.
9580 2004-09-27  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
9582         * libgcc2.c (getpagesize): Change type of return value to int.
9584 2004-09-26  Matt Austern  <austern@apple.com>
9586         * ggc-page.c (GGC_QUIRE_SIZE): Bump up from 16 to 256 if we're
9587         using mmap.
9589 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9591         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP, EXECUTE_IF_AND_COMPL_IN_BITMAP,
9592         EXECUTE_IF_AND_IN_BITMAP): Changed to iterator style.
9593         (bitmap_iterator): New type.
9594         (bmp_iter_common_next_1, bmp_iter_single_next_1, bmp_iter_single_init,
9595         bmp_iter_end_p, bmp_iter_single_next, bmp_iter_and_not_next_1,
9596         bmp_iter_and_not_init, bmp_iter_and_not_next, bmp_iter_and_next_1,
9597         bmp_iter_and_init, bmp_iter_and_next): New functions.
9598         * basic-block.h (EXECUTE_IF_SET_IN_REG_SET,
9599         EXECUTE_IF_AND_COMPL_IN_REG_SET, EXECUTE_IF_AND_IN_REG_SET): Changed to
9600         use iterator-style EXECUTE_IF_IN_BITMAP macros.
9601         * bitmap.c (bitmap_print): Ditto.
9602         * bt-load.c (clear_btr_from_live_range, add_btr_to_live_range,
9603         btr_def_live_range): Ditto.
9604         * cfganal.c (compute_dominance_frontiers_1) Ditto.
9605         * cgraphunit.c (convert_UIDs_in_bitmap, cgraph_characterize_statics):
9606         Ditto.
9607         * ddg.c (build_inter_loop_deps): Ditto.
9608         * df.c (FOR_EACH_BB_IN_BITMAP, df_bb_reg_info_compute, df_refs_update):
9609         Ditto.
9610         * except.c (remove_eh_handler): Ditto.
9611         * flow.c (reg_set_to_hard_reg_set): Ditto.
9612         * gcse.c (clear_modify_mem_tables): Ditto.
9613         * global.c (build_insn_chain): Ditto.
9614         * ifcvt.c (dead_or_predicable): Ditto.
9615         * loop-invariant.c (get_inv_cost, set_move_mark, move_invariant_reg):
9616         Ditto.
9617         * ra-build.c (livethrough_conflicts_bb, conflicts_between_webs): Ditto.
9618         * ra-rewrite.c (reloads_to_loads, rewrite_program2,
9619         detect_web_parts_to_rebuild, delete_useless_defs, actual_spill): Ditto.
9620         * tree-cfg.c (allocate_ssa_names, tree_duplicate_sese_region,
9621         tree_purge_all_dead_eh_edges): Ditto.
9622         * tree-into-ssa.c (compute_global_livein, insert_phi_nodes,
9623         insert_phi_nodes_for, debug_def_blocks_r, invalidate_name_tags,
9624         rewrite_ssa_into_ssa): Ditto.
9625         * tree-outof-ssa.c (find_replaceable_exprs): Ditto.
9626         * tree-sra.c (scan_function, decide_instantiations, scalarize_parms):
9627         Ditto.
9628         * tree-ssa-alias.c (init_alias_info, compute_points_to_and_addr_escape,
9629         compute_flow_sensitive_aliasing, maybe_create_global_var,
9630         dump_points_to_info_for): Ditto.
9631         * tree-ssa-dce.c (EXECUTE_IF_CONTROL_DEPENDENT): Ditto.
9632         * tree-ssa-dse.c (dse_finalize_block): Ditto.
9633         * tree-ssa-live.c (live_worklist, calculate_live_on_entry,
9634         calculate_live_on_exit, build_tree_conflict_graph, dump_live_info):
9635         Ditto.
9636         * tree-ssa-loop-ivopts.c (find_induction_variables,
9637         find_interesting_uses, add_old_ivs_candidates, alloc_use_cost_map,
9638         determine_use_iv_costs, determine_set_costs, find_best_candidate,
9639         set_cost_up_to, create_new_ivs, remove_unused_ivs, free_loop_data):
9640         Ditto.
9641         * tree-ssa-loop-manip.c (add_exit_phis_var, add_exit_phis): Ditto.
9642         * tree-ssa-operands.c (get_asm_expr_operands, add_call_clobber_ops,
9643         add_call_read_ops): Ditto.
9644         * tree-ssa-pre.c (bitmap_print_value_set, insert_aux): Ditto.
9646 2004-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9648         * pa.c (print_operand): Use non-trapping completers for UNLE, UNLT,
9649         UNGE, UNGT, UNEQ, UNORDERED and ORDERED comparisons.
9651 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
9653         * builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
9654         reflect size of memory regions being compared.
9656 2004-09-26  Ulrich Weigand  <uweigand@de.ibm.com>
9658         * builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
9659         expressions.  Always clear MEM_SIZE and alias set.
9661 2004-09-26  Roger Sayle  <roger@eyesopen.com>
9662             Giovanni Bajo  <giovannibajo@gcc.gnu.org>
9664         PR middle-end/17112
9665         * stor-layout.c (compute_record_mode): For records with a single
9666         field, only use the field's mode if its size matches what we'd
9667         have choosen for the record ourselves.  This forces the use of
9668         BLKmode for packed records that don't completely fill a mode.
9670 2004-09-26  Roger Sayle  <roger@eyesopen.com>
9672         PR middle-end/17151
9673         * combine.c (force_to_mode): Remove dubious early return test that
9674         inhibits further optimization.
9676 2004-09-26  Kazu Hirata  <kazu@cs.umass.edu>
9678         * profile.c: Fix a comment typo.
9680 2004-09-26  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9682         PR bootstrap/17591
9683         * tree-ssa-loop-im.c (for_each_index): Call callback for component_refs
9684         with varying offset.
9685         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): New function.
9686         (idx_contains_abnormal_ssa_name_p): Scan step and lower bound for
9687         ARRAY_REFS.
9688         (expr_invariant_in_loop_p): New function.
9689         (idx_find_step): Handle step and lower bound for ARRAY_REFs.  Handle
9690         component_ref_field_offset for COMPONENT_REFs.  Do not allow
9691         ALIGN_INDIRECT_REFs and MISALIGNED_INDIRECT_REFs.
9692         (add_address_candidates): Do not handle ALIGN_INDIRECT_REFs and
9693         MISALIGNED_INDIRECT_REFs.
9694         (idx_remove_ssa_names): Handle step and lower bound for ARRAY_REFs.
9695         (rewrite_address_base): Do not handle ALIGN_INDIRECT_REFs and
9696         MISALIGNED_INDIRECT_REFs.
9698 2004-09-26  Joseph S. Myers  <jsm@polyomino.org.uk>
9700         PR c/11459
9701         * gcc.c (cpp_options, cc1_options): Preserve relative order of
9702         -std and -ansi options.
9704 2004-09-26  Jan Hubicka  <jh@suse.cz>
9706         * dwarf2out.c (dwarf2out_finish): Set parent to comp_unit_die
9707         for nested functions whose proper parent has not been output.
9709         * profile.c (compute_branch_probabilities): Use REG_BR_PROB notes
9710         when re-constructing profile previously invalidated by loop.
9712 2004-09-25  Dale Johannesen  <dalej@apple.com>
9714         * tree-gimple.c:  Move GIMPLE definition...
9715         * doc/tree-ssa.texi:  here.
9717 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9719         * tree-vectorizer.c: Fix a comment typo.
9721 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9723         * c-typeck.c, defaults.h, dwarf.h, dwarf2out.c, fold-const.c,
9724         gthr-dce.h, gthr-posix.h, gthr-solaris.h, gthr-win32.h,
9725         lambda-code.c, lambda-mat.c, libgcc2.c, stmt.c,
9726         tree-ssa-pre.c, tree-vn.c, tree.h: Fix comment formatting.
9728 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9730         * tree-ssa-loop-unswitch.c: Fix a comment typo.
9732 2004-09-25  Kazu Hirata  <kazu@cs.umass.edu>
9734         * doc/passes.texi: Fix a typo.
9736 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9738         * tree-optimize.c (init_tree_optimization_passes): Add
9739         pass_record_bounds.
9740         * tree-pass.h (pass_record_bounds): Declare.
9741         * tree-ssa-loop.c (tree_ssa_loop_bounds, pass_record_bounds):
9742         New pass.
9744 2004-09-25  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9746         PR tree-optimization/17474
9747         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Determine
9748         offset of the field correctly when DECL_FIELD_BIT_OFFSET != 0.
9750 2004-09-25  Jan Hubicka  <jh@suse.cz>
9752         * predict.c (counts_to_freqs): Make global.
9753         * predict.h (counts_to_freqa): Declare.
9754         * profile.c (compute_branch_probabilities): Compute frequencies
9755         * tree-profile.c (do_tree_profiling): Refine conditional on when
9756         tree profiling pass is needed.
9758         * passes.c (rest_of_handle_cfg): Disable const/pure function
9759         detection when doing tree based profiling.
9761         * tree-inline.c (expand_call_inline): Fix incorrectly reversed
9762         conditional.
9764 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
9766         * config/mips/mips.h (struct mips_args): Clarify comments.
9767         * config/mips/mips.c (struct mips_arg_info): Likewise.
9768         (mips_arg_info): Don't allow fpr_p to affect the register or
9769         stack alignment.  Remove o64 silliness.
9770         (function_arg): Deal with the o32 float,float case specially.
9772 2004-09-25  Richard Sandiford  <rsandifo@redhat.com>
9774         * config/mips/mips.md (loadx, storex): Define for V2SF.
9776 2004-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
9778         * config/s390/s390-protos.h (s390_back_chain_rtx): Add prototype.
9779         * config/s390/s390.c (s390_back_chain_rtx): New function.
9780         * config/s390/s390.md ("allocate_stack"): Use s390_back_chain_rtx.
9781         Call anti_adjust_stack.
9782         ("restore_stack_block"): Use s390_back_chain_rtx.  Enable pattern
9783         only if compiling with back chain.
9784         ("save_stack_nonlocal", "restore_stack_nonlocal"): Save/restore
9785         back chain only if back chain enabled.  Use s390_back_chain_rtx.
9787 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
9789         * doc/trouble.texi: Remove obsolete information.  Update
9790         information on how to regenerate fixincluded headers.
9792 2004-09-25  Joseph S. Myers  <jsm@polyomino.org.uk>
9794         PR c/12951
9795         * doc/invoke.texi: Document that
9796         -Wno-error-implicit-function-declaration is not accepted.
9798 2004-09-24  Richard Henderson  <rth@redhat.com>
9800         * config/alpha/alpha.h (UNITS_PER_SIMD_WORD): New.
9801         * config/alpha/alpha.c (alpha_vector_mode_supported_p): Don't depend
9802         on TARGET_MAX.
9803         (alpha_expand_mov): Allow unaligned vectors.
9804         (alpha_expand_unaligned_store): Use CONST0_RTX.
9805         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New.
9807 2004-09-24 Jeff Law  <law@redhat.com>
9809         * tree-ssa-dom.c (dom_opt_finalize_block): Fix violation of strict
9810         aliasing rules.
9811         (simplify_cond_and_lookup_avail_expr): Likewise.
9813 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
9815         PR c/12802
9816         * doc/extend.texi (Unnamed Fields): Remove "." from end of long
9817         title.  Document interaction with -fms-extensions.
9818         * doc/invoke.texi (-fms-extensions): Refer to Unnamed Fields
9819         section.
9821 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
9823         PR c/12713
9824         * doc/extend.texi: Document interaction of attribute noreturn and
9825         longjmp.
9827 2004-09-24  Richard Henderson  <rth@redhat.com>
9829         PR rtl-opt/17503
9830         * regclass.c (subregs_of_mode): Turn into an htab.  Make static.
9831         (som_hash, som_eq): New.
9832         (init_subregs_of_mode, record_subregs_of_mode): New.
9833         (cannot_change_mode_set_regs): Rewrite for htab implementation.
9834         (invalid_mode_change_p): Likewise.
9835         * combine.c (gen_lowpart_for_combine): Use record_subregs_of_mode.
9836         * flow.c (mark_used_regs): Likewise.
9837         (life_analysis): Use init_subregs_of_mode.
9838         * regs.h (subregs_of_mode): Remove.
9839         * rtl.h (init_subregs_of_mode, record_subregs_of_mode): Declare.
9841 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
9843         * tree-ssa-phiopt.c (conditional_replacement): Use the correct
9844         type with the copy of the conditional.
9846 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
9848         PR tree-opt/16954
9849         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
9850         Prevent renaming if the aliasing sets of the type which the
9851         pointer points to are different.
9853 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
9855         PR c/17188
9856         * c-decl.c (diagnose_mismatched_decls): Check for duplicate
9857         declarations of enumerators.
9858         (start_struct): Check TYPE_SIZE rather than TYPE_FIELDS to check
9859         for redefinition.  Check for nested redefinition.
9860         (finish_struct): Don't check for nested redefinition.
9861         (start_enum): Check for nested redefinition.
9863 2004-09-24  Devang Patel  <dpatel@apple.com>
9865         * tree-if-conv.c (tree_if_convert_cond_expr0: Create temp. variable
9866         only when necesssary.
9867         (combine_blocks): Combine loop header and exit block.
9869 2004-09-24  Paolo Bonzini  <bonzini@gnu.org>
9871         * hooks.c (hook_tree_tree_bool_null): New.
9872         * hooks.h (hook_tree_tree_bool_null): Declare it.
9873         * target-def.c (TARGET_FOLD_BUILTIN): Point to it.
9874         * targhooks.c (default_fold_builtin): Remove.
9875         * targhooks.h (default_fold_builtin): Remove.
9877 2004-09-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9879         PR rtl-optimization/17625
9880         * loop-doloop.c (doloop_modify): Unshare rtl before emitting it.
9882 2004-09-24  Andrew Pinski  <pinskia@physics.uc.edu>
9884         PR tree-opt/17624
9885         * tree-ssa-forwprop.c (record_single_argument_cond_exprs):
9886         Reject if any of the operands occur in an abnormal PHI.
9888 2004-09-24  Andreas Schwab  <schwab@suse.de>
9890         * tree-ssa-dom.c (record_range): Fix violation of strict aliasing
9891         rules.
9893 2004-09-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
9895         * config.gcc (sparc64-*-solaris2*): Include sparc/sol2-gas.h
9896         if the GNU assembler is used.
9897         (sparc-*-solaris2*): Likewise.
9898         * dbxout.c (NO_DBX_BNSYM_ENSYM): Default to zero.
9899         (dbxout_function_end): Protect N_ENSYM with it.
9900         (dbxout_begin_prologue): Protect N_BNSYM with it.
9901         * doc/tm.texi (NO_DBX_BNSYM_ENSYM): Document it.
9902         * config/sparc/sol2.h (NO_DBX_BNSYM_ENSYM): Define to 1.
9903         * config/sparc/sol2-gas.h: New file.
9905 2004-09-23  H.J. Lu  <hongjiu.lu@intel.com>
9907         PR bootstrap/17369
9908         * Makefile.in (@set_gcc_lib_path@): Added.
9910         * configure.ac: Include ../config/gcc-lib-path.m4. Use
9911         TL_AC_GNU_MAKE_GCC_LIB_PATH.
9912         * configure: Regenerated.
9914 2004-09-24  Joseph S. Myers  <jsm@polyomino.org.uk>
9916         PR c/6980
9917         * c-typeck.c (build_c_cast): Improve wording of
9918         -Wbad-function-cast diagnostic.
9920 2004-09-23  Hans-Peter Nilsson  <hp@axis.com>
9922         PR target/17626
9923         * config/cris/cris.md (moverside, movemside): Rename variable
9924         "reg" to "otherop".  To generate canonical RTX, check that otherop
9925         isn't constant instead of checking that operand 1 is a register.
9927 2004-09-23  Jakub Jelinek  <jakub@redhat.com>
9929         * tree-ssa-propagate.c (set_rhs): Fail if EXPR is COMPOUND_EXPR.
9931 2004-09-23  Diego Novillo  <dnovillo@redhat.com>
9932             Jakub Jelinek  <jakub@redhat.com>
9934         * tree-flow.h (find_new_referenced_vars): Add prototype.
9935         * tree-sra.c (find_new_referenced_vars_1, find_new_referenced_vars):
9936         Move to...
9937         * tree-dfa.c (find_new_referenced_vars_1, find_new_referenced_vars):
9938         ... here.
9939         (mark_new_vars_to_rename): Walk through all operands.
9940         * tree-ssa-ccp.c (convert_to_gimple_builtin): New function.
9941         (execute_fold_all_builtins): Use it.
9942         (pass_fold_builtins): Add TODO_rename_vars to todo_flags_finish.
9944 2004-09-23  P.J. Darcy  <darcypj@us.ibm.com>
9946         * gthr-tpf.h: New file.
9947         * config.gcc (s390x-ibm-tpf*): Add thread_file='tpf'.
9948         * gthr.h: Use gthr-tpf.h on TPF OS.
9950 2004-09-23 Jeff Law  <law@redhat.com>
9952         * tree-ssa-ccp.c (get_default_value): Use SSA_NAME_VALUE rather
9953         than SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
9954         (substitute_and_fold):  Likewise.
9955         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Remove everything
9956         except invariants from SSA_NAME_VALUE.
9957         (thread_across_edge): Use SSA_NAME_VALUE rather than SSA_NAME_EQUIV
9958         and SET_SSA_NAME_EQUIV.
9959         (restore_vars_to_original_value, record_const_or_copy): Likewise.
9960         (record_equivalences_from_phis, record_const_or_copy_1): Likewise.
9961         (record_equality, cprop_into_successor_phis): Likewise.
9962         (record_equivalences_from_stmt, cprop_operand): Likewise.
9963         (lookup_avail_expr): Likewise.
9964         * tree-ssa-pre.c (fini_pre): Remove everything except invariants
9965         from SSA_NAME_VALUE.
9966         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): Kill.
9967         (struct tree_ssa_name):  Kill EQUIV field.  Remove GGC skip
9968         annotation from the VALUE_HANDLE field.
9970 2004-09-21 Fariborz Jahanian <fjahanian@apple.com>
9972         PR c++/13989
9973         PR c++/9844
9974         * tree.c (reconstruct_complex_type): Remove extra "this".
9975         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute):
9976         Add V4SFmode to case statement.
9978 2004-09-23  Joseph S. Myers  <jsm@polyomino.org.uk>
9980         PR c/16833
9981         * doc/extend.texi, doc/invoke.texi: Document interaction of
9982         -fno-builtin with format checks.  Note that built-in functions
9983         have effects beyond generating code that avoids calls to those
9984         functions.
9986 2004-09-23  Frank Ch. Eigler <fche@redhat.com>
9988         PR tree-optimization/17533
9989         * dominance.c (verify_dominators): Tolerate even more incorrect
9990         dominance data during error message printing.
9991         * tree-mudflap.c (mf_build_check_statement_for): Build basic blocks
9992         and edges more correctly.
9994 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
9996         * tree.def (ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF):
9997         New tree-codes.
9998         * tree.h (REF_ORIGINAL): Consider ALIGN_INDIRECT_REF and
9999         MISALIGNED_INDIRECT_REF.
10000         * alias.c (get_alias_set, nonoverlapping_memrefs_p): Likewise.
10001         * emit-rtl.c (mem_expr_equal_p, set_mem_attributes_minus_bitpos):
10002         Likewise.
10003         * expr.c (safe_from_p, expand_expr_real_1, rewrite_address_base)
10004         (find_interesting_uses_address): Likewise.
10005         * fold-const.c (non_lvalue, operand_equal_p): Likewise.
10006         (build_fold_addr_expr_with_type): Likewise.
10007         * gimplify.c (gimplify_addr_expr, gimplify_expr): Likewise.
10008         * print-rtl.c (print_mem_expr): Likewise.
10009         * tree-dump.c (dequeue_and_dump): Likewise.
10010         * tree-eh.c (tree_could_trap_p): Likewise.
10011         * tree-gimple.c (is_gimple_addressable, get_base_address): Likewise.
10012         * tree-pretty-print.c (op_prio, op_symbol, dump_generic_node): Likewise.
10013         * tree-ssa-alias.c (find_ptr_dereference, ptr_is_dereferenced_by):
10014         Likewise.
10015         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
10016         * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
10017         * tree-ssa-loop-im.c (for_each_index, is_call_clobbered_ref): Likewise.
10018         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
10019         (add_address_candidates, rewrite_address_base): Likewise.
10020         * tree-ssa-operands.c (get_expr_operands, get_indirect_ref_operands):
10021         Likewise.
10022         * tree.c (staticp, build1_stat): Likewise.
10024         * tree.def (REALIGN_LOAD_EXPR, REALIGN_STORE_EXPR): New tree-codes.
10025         * tree-pretty-print.c (dump_generic_node): Consider REALIGN_LOAD_EXPR.
10026         * tree-ssa-operands.c (get_expr_operands): Likewise.
10027         * expr.c (expand_expr_real_1): Likewise.
10029         * optabs.h (vec_realign_store_optab, vec_realign_load_optab): New
10030         optabs.
10031         (OTI_vec_realign_store, OTI_vec_realign_load): New optab_index values
10032         for the new optabs.
10033         (expand_ternary_op): New function.
10034         * genopinit.c (optabs): Handle the new optabs.
10035         * optabs.c (optab_for_tree_code): Add cases for the new tree-codes.
10036         (init_optabs): Initialize vec_realign_load_optab.
10037         (expand_ternary_op): New functions.
10039         * target-def.h (TARGET_VECTORIZE): New member for struct gcc_target.
10040         (TARGET_VECTORIZE_MISALIGNED_MEM_OK): New member for targetm.vectorize.
10041         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD): Likewise.
10042         (TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE): Likewise.
10043         * target.h (struct vectorize): New member for struct gcc_target.
10044         (misaligned_mem_ok): New member for targetm.vectorize.
10045         (builtin_mask_for_load): Likewise.
10046         (builtin_mask_for_store): Likewise.
10047         * targethooks.c (default_vect_misaligned_mem_ok): New function.
10048         * targethooks.h (default_vect_misaligned_mem_ok): New function.
10050         * config/rs6000/altivec.md (build_vector_mask_for_load): New
10051         define_expand.
10052         (vec_realign_load_v4si, vec_realign_load_v4sf, vec_realign_load_v8hi)
10053         (vec_realign_load_v16qi): New define_insn.
10054         * config/rs6000/rs6000.h (ALTIVEC_BUILTIN_MASK_FOR_LOAD):
10055         (ALTIVEC_BUILTIN_MASK_FOR_STORE): New target builtins.
10056         * config/rs6000/rs6000.c (altivec_builtin_mask_for_load):
10057         (altivec_builtin_mask_for_store): New variables.
10058         (rs6000_builtin_mask_for_load): New function. Implements
10059         TARGET_VECTORIZE_BUILTIN_MASK_FOR_LOAD.
10060         (rs6000_builtin_mask_for_store): New function. Implements
10061         TARGET_VECTORIZE_BUILTIN_MASK_FOR_STORE.
10062         (rs6000_expand_builtin): Expand the target builtins
10063         builtin_mask_for_load and builtin_mask_for_store.
10064         (altivec_init_builtins): Initialize the new target builtins.
10065         * config/i386/i386.c (ix86_misaligned_mem_ok): New function.
10066         Implements the target hook TARGET_VECTORIZE_MISALIGNED_MEM_OK.
10068         * tree-vectorizer.c (vect_create_data_ref): Renamed to
10069         vect_create_data_ref_ptr. Returns a pointer instead of an array-ref.
10070         (vect_create_addr_base_for_vector_ref): Additional argument (offset).
10071         (vectorizable_store): Call vect_create_data_ref_ptr with additional
10072         arguments, and create an indirect_ref with its return value data_ref.
10073         Check aligned_access_p.
10074         (vectorizable_load): Handle misaligned loads, using software-pipelined
10075         scheme with REALIGN_LOAD_EXPR and ALIGN_INDIRECT_REF if
10076         vec_realign_load_optab is supported, or using a scheme without
10077         software-pipelining with MISALIGNED_INDIRECT_REF if the target hook
10078         misaligned_mem_ok is supported.
10080         (vect_finish_stmt_generation): Typo.
10081         (vect_enhance_data_refs_alignment): Rename loop_vinfo to loop_info.
10082         (vect_analyze_data_refs_alignment): Don't fail vectorization in the
10083         presence of misaligned loads.
10084         (vect_analyze_data_ref_access): Add check for constant init.
10085         (vect_get_symbl_and_dr): Remove duplicate line.
10086         * tree-vectorizer.h (DR_MISALIGNMENT): Add comment.
10088 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
10090         * builtins.c: Fix a comment typo.
10092 2004-09-23  Jan Hubicka  <jh@suse.cz>
10094         * profile.c (branch_prob): Do not verify flow info in the middle of the
10095         pass.
10097 2004-09-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10099         * cfgloop.h (update_single_exits_after_duplication): Declare.
10100         (loopify, split_loop_bb): Declaration changed.
10101         * cfgloopmanip.c (split_loop_bb): Take void * as an argument instead
10102         of rtx.
10103         (loopify): Added redirect_all_edges argument.
10104         (update_single_exits_after_duplication): Export.
10105         * loop-unswitch.c (unswitch_loop): Changed due to loopify change.
10106         * tree-flow.h (tree_duplicate_loop_to_header_edge,
10107         tree_ssa_loop_version): Declare.
10108         * tree-ssa-loop-manip.c (copy_phi_node_args, rename_variables,
10109         set_phi_def_stmts, tree_duplicate_loop_to_header_edge,
10110         lv_adjust_loop_header_phi, lv_adjust_loop_entry_edge,
10111         lv_update_pending_stmts, tree_ssa_loop_version): New functions.
10113         * tree-ssa-loop-unswitch.c: New file.
10114         * Makefile.in (tree-ssa-loop-unswitch.o): Add.
10115         * timevar.def (TV_TREE_LOOP_UNSWITCH): New timevar.
10116         * tree-flow.h (tree_ssa_unswitch_loops): Declare.
10117         * tree-optimize.c (init_tree_optimization_passes): Add pass_unswitch.
10118         * tree-pass.h (pass_unswitch): Declare.
10119         * tree-ssa-loop.c (tree_ssa_loop_unswitch,
10120         gate_tree_ssa_loop_unswitch, pass_unswitch): New pass.
10121         * doc/passes.texi: Documen tree level loop unswitching.
10123 2004-09-23  Kazu Hirata  <kazu@cs.umass.edu>
10125         * cfgexpand.c, config/s390/tpf-eh.c: Fix comment typos.
10127 2004-09-22  Eric Christopher  <echristo@redhat.com>
10129         * builtins.c (simplify_builtin_va_start): Remove.
10130         (simplify_builtin): Ditto.
10131         (fold_builtin_strchr): Ditto.
10132         (simplify_builtin_*): Rename remainders to fold_builtin_*.
10133         (expand_builtin): Fix up for above changes.
10134         (fold_builtin_1): Add new folders. Change for above.
10135         (expand_builtin_va_start): Call fold_builtin_next_arg.
10136         * gimplify.c (gimplify_call_expr): Fix calls to simplify_builtin.
10137         * tree.h: Remove prototype for simplify_builtin.
10139 2004-09-23  Jan Hubicka  <jh@suse.cz>
10141         PR debug/17389
10142         * dwarf2out.c (dwarf2out_finish): Deal with nested functions
10143         of fully inlined functions.
10144         * tree-inline.c (inline_forbidden_p_1): Nested functions can be
10145         inlined.
10147         * cfgexpand.c (add_reg_br_prob_note): New function.
10148         (expand_gimple_cond_expr): Use it.
10149         (tree_expand_cfg): No longer kill the profile.
10150         * cfgrt.c (rtl_verify_flow_info_1): Check profile consistency
10151         only if it is present.
10152         * passes.c (rest_of_handle_loop_optimize): Kill the profile.
10153         * predict.c (combine_predictions_for_insn): Set the probabilities
10154         based on REG_BR_PROB note if present.
10155         * predict.c (branch_prob): Profile is read only with
10156         flag_branch_probabilities.
10158 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
10160         * aclocal.m4: Add in gettext's m4 includes.
10161         (AC_ICONV, AC_LCMESSAGES, GCC_PATH_PROG): Remove.
10162         * configure.ac: Add in check for iconv.h
10163         * configure: Regenerate.
10165 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
10167         * aclocal.m4: Update for rename of gettext-sister.m4.
10169 2004-09-22  Daniel Berlin <dberlin@dberlin.org>
10171         Fix PR tree-optimization/17587
10172         * tree-ssa-pre.c (fini_pre): Commit edge inserts here.
10173         (insert_aux): Instead of here.
10175 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
10177         PR tree-optimization/16721
10178         * tree-dfa.c (dump_variable): Show TREE_THIS_VOLATILE.
10179         * tree-ssa-alias.c (create_memory_tag): Move setting of
10180         TREE_THIS_VOLATILE ...
10181         (get_tmt_for): ... here.
10183 2004-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
10185         * config/sparc/sparc.md (cmove splitter): Fix formatting.
10186         (conditional_trap expander): Reject inappropriate CCmodes.
10187         (conditional trap insn): Use V9 syntax if possible.
10189 2004-09-22  Joseph S. Myers  <jsm@polyomino.org.uk>
10191         PR c/16566
10192         * c-typeck.c (build_component_ref): Don't special-case
10193         COMPOUND_EXPR.
10195 2004-09-22  Frank Ch. Eigler  <fche@redhat.com>
10197         * dominance.c (verify_dominators): Don't SEGV if recount_dominator
10198         returns NULL.
10200 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
10202         * doc/c-tree.texi (TRUTH_NOT_EXPR, TRUTH_ANDIF_EXPR,
10203         TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
10204         TRUTH_XOR_EXPR): Mention the restriction on types.
10206 2004-09-22  Matt Austern  <austern@apple.com>
10208         * config/darwin.c (darwin_make_decl_one_only):
10209         Allow coalesced symbol to appear in static archive's table of contents
10211 2004-09-22  Kazu Hirata  <kazu@cs.umass.edu>
10213         PR tree-optimization/17512
10214         * convert.c (convert_to_integer): Don't handle TRUTH_*_EXPR as
10215         special cases.
10217 2004-09-22  David Edelsohn  <edelsohn@gnu.org>
10219         * dbxout.c (get_lang_number): Do not define if
10220         DBX_OUTPUT_MAIN_SOURCE_DIRECTORY is defined.
10222 2004-09-22  Ralf Corsepius  <corsepiu@faw.uni-ulm.de>
10224         PR target/15583
10225         * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Add
10226         builtin_define ("__USE_INIT_FINI__").
10228 2004-09-22  P.J. Darcy  <darcypj@us.ibm.com>
10230         * config/s390/s390-protos.h (s390_emit_tpf_eh_return): Add prototype.
10231         * config/s390/s390.c (s390_emit_tpf_eh_return): New function.
10232         * config/s390/s390.h (TARGET_TPF): New macro.
10233         * config/s390/s390.md ("eh_return"): New expander.
10234         * config/s390/t-tpf (LIB2ADDEH): Use unwind-dw2-fde.c rather than
10235         unwind-dw2-fde-glibc.c.  Add config/s390/tpf-eh.c.
10236         (LIB2ADDEHDEP): Remove unwind-dw2-fde.c.
10237         * config/s390/tpf.h (TARGET_TPF): Define to 1.
10238         (STACK_POINTER_OFFSET): Increase to 448.
10239         (TARGET_DEFAULT): Set -mtpf-trace on as default.
10240         (TPF_LOC_DIFF_OFFSET): New macro.
10241         (ASM_PREFERRED_EH_DATA_FORMAT): Redefine to always use absolute
10242         encoding.
10243         (__isPATrange): Add prototype.
10244         (MD_FALLBACK_FRAME_STATE_FOR): Define.
10245         * config/s390/tpf-eh.c: New file.
10247 2004-09-22  Diego Novillo  <dnovillo@redhat.com>
10249         * fold-const.c (fold): Avoid non INTEGER_TYPEs when widening
10250         operands in an integer comparison.
10251         * tree-cfg.c (find_taken_edge): Call fold() to determine
10252         whether the predicate is known.
10254 2004-09-22  Kelley Cook  <kcook@gcc.gnu.org>
10256         * aclocal.m4: Import AM_PROG_CC_C_O and AM_AUX_DIR_EXPAND.
10257         * configure.ac: Call AM_PROG_CC_C_O instead of AC_PROG_CC_C_O.
10258         Create build and doc directories along with the language directories.
10259         Don't create doc directory separately.
10260         * configure: Regenerate.
10261         * Makefile.in: Create all object and executables files built
10262         with the build compiler in a build/ directory.
10263         (genobjnames): Add missing build objects.
10264         (STAGESTUFF): Don't stage the gen* programs.
10265         (ggc-none.o): Define dependencies for the target compiler.
10266         (build-print-rtl.o): Rename to build/print-rtl.o.
10267         (build-errors.o): Rename to build/errors.o.
10268         (build-varray.o): Rename to build/varray.o.
10269         (maintainerclean): Delete the contents of the build directory.
10270         ($(genobjs): %.o): Explicitly use -o.
10271         (build/insn-conditions.o): Delete specfic rule to use generic rule.
10272         (build/gengtype-lex.o): Likewise.
10273         (build/gengtype-yacc.o): Likewise.
10274         (build/gcov-iov.o): Likewise.
10276 2004-09-22  Nathan Sidwell  <nathan@codesourcery.com>
10278         * vec.h (VEC_space): Return true if there _is_ space.
10279         (VEC_reserve): Adjust.
10281 2004-09-22  Richard Sandiford  <rsandifo@redhat.com>
10283         * config/mips/mips.c (mips_function_value): For o32, o64, n32 and n64,
10284         use FPRs for scalar, complex and vector types only.
10286 2004-09-21 Jeff Law  <law@redhat.com>
10288         * tree-ssa-dom.c (opt_stats): Move so that it lives just after
10289         the opt_stats_d structure.
10290         (vrp_data): Change from a varray into a hash table.
10291         (vrp_hash_elt): New structure for elements in the vrp hash table.
10292         (vrp_hash, vrp_eq):New functions for hashing and testing equality
10293         in the vrp hash table.
10294         (tree_ssa_dominator_optimize): Initialize VRP_DATA.  Reorganize
10295         initialization slightly to make it easier to read.  No longer need
10296         to grow/clear the varray.  Instead empty and delete the hash table.
10297         (dom_opt_finalize_block): Update due to change of VRP_DATA from
10298         a varray to a hash table.
10299         (simplify_cond_and_loop_avail_expr, record_range): Similarly.
10301         * tree-ssa-ccp.c (get_default_value): If we have a constant
10302         value recorded for an SSA_NAME, then use that constant as
10303         the initial lattice value.
10304         (substitute_and_fold): Transfer equivalences discovered into
10305         SSA_NAME_EQUIV.
10307         * tree.h (SSA_NAME_EQUIV): Add comments.
10308         (SET_SSA_NAME_EQUIV): Similarly.
10310 2004-09-21  David Edelsohn  <edelsohn@gnu.org>
10312         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to POWER4.
10314         * config/rs6000/rs6000.c (rs6000_adjust_cost): dep_insn is used.
10316 2004-09-21  Mark Mitchell  <mark@codesourcery.com>
10318         * c-decl.c (implicityl_declare): Call maybe_apply_renaming_pragma.
10319         (finish_decl): Likewise.
10321 2004-09-21  Devang Patel  <dpatel@apple.com>
10323         * tree.def (VEC_COND_EXPR): New tree node.
10324         * tree-ssa-operands.c (get_expr_operands): Handle VEC_COND_EXPR.
10326 2004-09-21  Stan Shebs  <shebs@apple.com>
10328         * config/rs6000/darwin-tramp.asm: Add __ppc64__ case.
10329         * config/rs6000/darwin-world.asm: Likewise.
10331 2004-09-21  Daniel Berlin  <dberlin@dberlin.org>
10333         * tree-ssa.c (verify_def): Use print_generic_stmt,
10334         not debug_generic_stmt.
10335         (verify_use): Ditto.
10336         (verify_phi_args): Ditto.
10337         (verify_ssa): Ditto.
10339 2004-09-21  Paul Brook  <paul@codesourcery.com>
10341         * varasm.c (default_assemble_integer): Return false for values wider
10342         than the target word size.  Works around GAS bug.
10344 2004-09-21  Zack Weinberg  <zack@codesourcery.com>
10346         * reg-notes.def (REG_DEP_TRUE): New entry, place first so it
10347         gets value 0.
10348         * print-rtl.c (print_rtx): Print the name of a REG_NOTE even
10349         if it has value 0.
10351 2004-09-21  Daniel Berlin <dberlin@dberlin.org>
10353         * c-typeck.c (build_function_call): Give name of object
10354         we are attempting to call in error message.
10355         * c-objc-common.c (c_tree_printer): Call pp_expression,
10356         not return false, for 'E' case.
10358 2004-09-21  Steven Bosscher  <stevenb@suse.de>
10360         PR rtl-optimization/17482
10361         * postreload-gcse.c (reg_avail_info, oprs_unchanged_p,
10362         load_killed_in_block_p): Clarify comments.
10363         (record_last_reg_set_info): Make static inline.
10364         (mark_call, mark_set, mark_clobber, mark_oprs_set): Remove.
10365         (record_opr_changes): New function to replace the above.
10366         (compute_hash_table): Clarify comments.  Use record_opr_changes.
10367         (reg_set_between_after_reload_p): Clean up.
10368         (reg_used_between_after_reload_p): Likewise.
10369         (eliminate_partially_redundant_load): Clarify comments.
10371 2004-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
10373         PR rtl-optimization/17266
10374         * regmove.c (optimize_reg_copy_3): Make a new SUBREG for each insn.
10376 2004-09-21  Uros Bizjak  <uros@kss-loka.si>
10378         PR rtl-optimization/14851
10379         * rtlanal.c (commutative_operand_precedence): Calculate
10380         precedence of stripped constant.
10382 2004-09-20 Jeff Law  <law@redhat.com>
10383            Jan Hubicka  <jh@suse.cz>
10385         * tree-ssanames.c (make_ssa_name): No longer need to clear, then
10386         initialize key elements here.
10387         (release_ssa_name): Zero the released SSA_NAME here.
10388         * tree.h (SSA_NAME_EQUIV, SET_SSA_NAME_EQUIV): New macros.
10389         (struct tree_ssa_name): Add new "equiv" field.
10390         * tree-ssa-dom.c (const_and_copies): Kill the global varray.
10391         (tree_ssa_dominator_optimize): No longer allocate, resize or
10392         clear CONST_AND_COPIES.
10393         (get_value_for, set_value_for): Kill.
10394         (thread_across_edge): Get/set the equivalency using
10395         SSA_NAME_EQUIV and SET_SSA_NAME_EQUIV.
10396         (restore_vars_to_original_value): Likewise.
10397         (record_equivalences_from_phis): Likewise.
10398         (record_dominating_conditions): Likewise.
10399         (record_const_or_copy, record_equality): Likewise.
10400         (lookup_avail_expr): Likewise.
10401         (record_equivalences_from_stmt, cprop_operand): Likewise.
10402         (cprop_into_successor_phis): No longer need to pass around
10403         CONST_AND_COPIES.  Callers updated. Get equivalences via
10404         SSA_NAME_EQUIV.
10405         (cprop_into_phis): Likewise.
10407 2004-09-20  Matt Austern <austern@apple.com>
10408             Zack Weinberg  <zack@codesourcery.com>
10410         * c-common.c (fix_string_type): Build the unqualified array
10411         type unconditionally, then use c_build_qualified_type to get
10412         the proper const-qualified variant, and set its
10413         TYPE_MAIN_VARIANT to refer to the unqualified type.
10414         * c-lex.c (c_lex_return_raw_string): New global.
10415         (c_lex_with_flags): Honor it.
10416         * c-pragma.h: Declare it.
10418 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
10420         * Makefile.in: Fix flags.h dependencies to be $(FLAGS_H).
10422 2004-09-21  Jan Hubicka  <jh@suse.cz>
10424         PR middle-end/17126
10425         * tree-optimize.c (update_inlined_to_pointers): Fix the recursion.
10426         (tree_rest_of_compilation): Cleanup.
10428 2004-09-20  Ulrich Weigand  <uweigand@de.ibm.com>
10430         * config/s390/s390.c (s390_select_rtx_section): Remove.
10431         (TARGET_ASM_SELECT_RTX_SECTION): Do not redefine.
10433 2004-09-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10435         * config/sh/sh.c (sh_expand_prologue): Add a REG_FRAME_RELATED_EXPR
10436         note to pretend a direct save from the original register when an
10437         intermediate register is used for the save.
10439 2004-09-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10441         * tsystem.h (alloca): Provide a default definition.
10443         Revert:
10444         2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10445             * unwind-dw2.c: Call __builtin_alloca, not alloca.
10447 2004-09-20  Andrew Pinski  <pinskia@physics.uc.edu>
10449         PR tree-opt/17558
10450         * tree-ssa-copy.c (may_propagate_copy): Only allow if the
10451         aliasing sets are the same rather than just conflicting.
10453 2004-09-20  Jan Hubicka  <jh@suse.cz>
10455         PR middle-end/16460
10457         * cgraph.c (cgraph_unnest_node): New function.
10458         (c_finalize): Rename to ....
10459         (c_warn_unused_result_recursivly): ... this one; do only the warning
10460         (finish_function): Finalize the toplevel function; do not lower nested tree.
10461         * cgraph.h (cgraph_unnest_node): Declare.
10462         * cgraphunit.c (decide_is_function_needed): Do not use cgraph
10463         nestedness datastructure.
10464         * cse.c (cse_insn): Do not cprop nonlocal LABEL_REFs.
10465         * reload1.c (set_label_offsets): Fix call of set_label_offsets.
10466         * tree-nested.c (finlize_nesting_tree_1):  Use un-nesting code.
10468 2004-09-20  Richard Henderson  <rth@redhat.com>
10470         * config/alpha/alpha.c (some_small_symbolic_operand_int): Rename
10471         from some_small_symbolic_operand_1; export.
10472         (some_small_symbolic_operand): Remove.
10473         * config/alpha/alpha.md (some_small_symbolic_operand splitter): Remove
10474         extra C check.
10475         * config/alpha/predicates.md (some_small_symbolic_operand): New.
10477 2004-09-20  Jan Hubicka  <jh@suse.cz>
10479         * predict.c (return_prediction): New function.
10480         (apply_return_prediction): Likewise.
10481         (tree_bb_level_predictions): Likewise.
10482         (tree_estimate_probability): Add noreturn exit edges; call
10483         bb_level_predictions; fix logic of return heuristics.
10484         (predict_paths_leading_to):  Rescuesce from old CVS version of
10485         process_note_prediction function.
10486         * predict.def (PRED_TREE_EARLY_RETURN): New predictor.
10488 2004-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
10490         * config/s390/s390.c (s390_frame_info): Added alignment statement for
10491         floating point register area on stack.
10493 2004-09-20  Jakub Jelinek  <jakub@redhat.com>
10495         * predict.c (expr_expected_value): Use *_CLASS_P macros.
10497 2004-09-20  Daniel Berlin  <dberlin@dberlin.org>
10499         * tree-ssa-pre.c (compute_antic_aux): Use malloc'd worklist, to avoid
10500         generating useless garbage.
10502 2004-09-20  Paolo Bonzini  <bonzini@gnu.org>
10504         * builtins.c (fold_builtin): Call the new omonymous
10505         target hook for machine-dependent built-ins.
10506         * target-def.h (TARGET_FOLD_BUILTIN): New.
10507         * target.h (struct gcc_target): Add the fold_builtin hook.
10508         * targhooks.c (default_fold_builtin): New.
10509         * targhooks.h (default_fold_builtin): Declare it.
10511 2004-09-20  Kazu Hirata  <kazu@cs.umass.edu>
10513         * cfg.c, tree-ssa-threadupdate.c, tree-vectorizer.c: Fix
10514         comment typos.
10516 2004-09-20  Richard Sandiford  <rsandifo@redhat.com>
10518         PR target/17565
10519         * config/mips/mips.md (define_asm_attributes): Set can_delay to no.
10521 2004-09-20  Jan Hubicka  <jh@suse.cz>
10523         * predict.c (estimate_probability): Remove unnecesary code.
10525 2004-09-19  Ira Rosen  <irar@il.ibm.com>
10527         * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field.
10528         (STMT_VINFO_VECT_DR_BASE): Declare.
10529         (VECT_SMODULO): Declare.
10530         * tree-vectorizer.c (vect_compute_array_ref_alignment): New function.
10531         (vect_compute_array_base_alignment): New function.
10532         (vect_analyze_data_ref_access): Check array indices. Remove one
10533         dimensional arrays restriction.
10534         (vect_get_ptr_offset): New function.
10535         (vect_get_symbl_and_dr): New function.
10536         (vect_get_base_and_bit_offset): Support additional data refs. Renamed
10537         (former name vect_get_base_decl_and_bit_offset).
10538         (vect_create_index_for_array_ref): Removed.
10539         (vect_create_index_for_vector_ref): New function.
10540         (vect_create_addr_base_for_vector_ref): New function.
10541         (vect_create_data_ref): Handle additional data refs. Call
10542         vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref.
10543         (vect_compute_data_ref_alignment): Support the changes. Call
10544         vect_get_base_and_bit_offset.
10545         (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional
10546         data refs. Store vect_dr_base.
10547         (vect_analyze_data_ref_accesses): Support nonconstant init.
10548         (new_stmt_vec_info): Initialize vect_dr_base field.
10549         (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
10550         (get_vectype_for_scalar_type): Check for BLKmode.
10551         * tree-chrec.h (initial_condition_in_loop_num): Declare.
10552         * tree-chrec.c (initial_condition_in_loop_num): New function.
10553         (chrec_component_in_loop_num): New function.
10554         (evolution_part_in_loop_num): Call chrec_component_in_loop_num.
10555         * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns)
10556         to be pointer to varray_type.
10558 2004-09-19  Jan Hubicka  <jh@suse.cz>
10560         * basic-block.h (update_bb_profile_after_threading): Declare.
10561         * cfg.c (update_bb_profile_after_threading): Break out from ...
10562         * cfgcleanup.c (try_forward_edges): ... here; use it.
10563         * tree-ssa-dom.c (thread_across_edge): Use it.
10564         * tree-ssa-threadupdate.c (create_block_for_threading): Zero out
10565         profile of the new BB.
10567 2004-09-19  Daniel Berlin  <dberlin@dberlin.org>
10569         * tree-ssa-pre.c (insert_into_set): Don't put
10570         is_gimple_min_invariant values into the set.
10572 2004-09-19  Andreas Jaeger  <aj@suse.de>
10574         * tree-ssa-dom.c (restore_nonzero_vars_to_original_value): Fix
10575         prototype.
10577 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
10579         * config/cris/cris.h: Preserve the original spelling in a
10580         quote.
10582 2004-09-18 Jeff Law  <law@redhat.com>
10584         * tree-ssa-dom.c (nonzero_vars_stack, vrp_variables_stack): New
10585         global varrays to replace the block local varrays.
10586         (struct dom_walk_block_data): Remove, no longer used.
10587         (get_eq_expr_value): No longer need to pass around pointers to local
10588         varrays.  Callers updated.  Unused markers added to unused parameters.
10589         (record_range, record_equivalences_from_stmt): Likewise.
10590         (record_equivalences_from_incoming_edge): Likewise.
10591         (record_var_is_nonzero): Likewise.  Update now that we have a
10592         single global varray of SSA_NAMEs that need restoring.
10593         (dom_opt_initialize_block_local_data): Kill, no longer used.
10594         (tree_ssa_dominator_optimize): Initialize new global varrays.
10595         Update callbacks in dominator walker structure.
10596         (dom_opt_initialize_block): Add markers to NONZERO_VAR_STACK and
10597         VRP_VARIABLES_STACK.
10598         (restore_nonzero_vars_to_original_value): Update now that we have
10599         a single global varray of SSA_NAMEs that need restoring.
10600         (dom_opt_finalize_block): Similarly for VRP_VARIABLES_STACK.
10601         Remove unused variables.
10602         (optimize_stmt): Remove unused variable.
10604 2004-09-18  Jan Hubicka  <jh@suse.cz>
10606         * tree-cfg.c (thread_jumps):  Fix updating of the profile.
10608         * tree-optimize.c (tree_rest_of_compilation): Kill forgotten
10609         verify_cgraph call.
10611 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
10613         * alias.c, crtstuff.c, dbxout.c, domwalk.c, domwalk.h, gcc.c,
10614         gcse.c, global.c, lambda-code.c, loop.c, mips-tdump.c,
10615         optabs.h, predict.c, reg-stack.c, regclass.c, sched-rgn.c,
10616         tree-optimize.c, tree-ssa-dom.c, tree-ssa-forwprop.c,
10617         tree-ssa-operands.c, tree-ssa-phiopt.c,
10618         tree-ssa-threadupdate.c: Fix comment typos.
10620 2004-09-18  Kazu Hirata  <kazu@cs.umass.edu>
10622         * config/darwin-c.c, config/arc/arc.c, config/arc/arc.md,
10623         config/arm/README-interworking, config/arm/arm-cores.def,
10624         config/arm/arm.c, config/arm/arm.h, config/arm/pe.c,
10625         config/arm/vfp.md, config/c4x/c4x.c, config/c4x/c4x.h,
10626         config/cris/cris.c, config/cris/cris.h, config/fr30/fr30.c,
10627         config/fr30/fr30.h, config/fr30/fr30.md, config/frv/frv.c,
10628         config/frv/frv.md, config/i386/winnt.c,
10629         config/ia64/unwind-ia64.c, config/iq2000/iq2000.c,
10630         config/iq2000/iq2000.h, config/m68hc11/m68hc11.c,
10631         config/m68hc11/m68hc11.md, config/m68k/m68k.c,
10632         config/mcore/mcore.c, config/mips/mips.h,
10633         config/mn10300/mn10300.md, config/pa/pa.c,
10634         config/pa/pa64-regs.h, config/pdp11/pdp11.c,
10635         config/rs6000/rs6000.c, config/sh/symbian.c,
10636         config/sparc/sparc.h: Fix comment typos.  Follow spelling
10637         conventions.
10639 2004-09-18  Joseph S. Myers  <jsm@polyomino.org.uk>
10641         PR c/17424
10642         * c-typeck.c (c_expr_sizeof_expr): Check for error_mark_node.
10644 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
10646         * tree-ssa-alias.c (setup_pointers_and_addressables): Don't
10647         remove TREE_ADDRESSABLE from RESULT_DECL.
10649 2004-09-18  Diego Novillo  <dnovillo@redhat.com>
10651         * tree-ssa-alias.c (dump_alias_info): Ignore NULL SSA_NAMEs.
10653 2004-09-18  Jan Hubicka  <jh@suse.cz>
10655         * tree-into-ssa.c (rewrite_ssa_into_ssa):  Expect ssa_name to return
10656         NULL.
10657         * tree-ssa-alias.c (init_alias_info): Likewise.
10658         * tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
10659         (verify_ssa): Likewise.
10660         * tree-ssanames.c (make_ssa_name): Clear out ssa_names arrays.
10662 2004-09-18  Jan Hubicka  <jh@suse.cz>
10664         * i386.c (legitimize_pic_address): Fix splitting of PLUS with
10665         huge offset.
10667 2004-09-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10669         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.
10670         * config/sh/sh.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
10671         DW_EH_PE_sdata* for data.
10672         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
10674 2004-09-17  Geoffrey Keating  <geoffk@apple.com>
10676         * tree-inline.c (copy_tree_r): Don't duplicate constants, they're
10677         shared anyway.
10679         PR pch/13361
10680         * c-typeck.c (constructor_asmspec): Delete.
10681         (struct initializer_stack): Delete field 'asmspec'.
10682         (start_init): Delete saving of asmspec.
10683         (finish_init): Don't update constructor_asmspec.
10684         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
10685         * stmt.c (expand_asm): Duplicate strings from tree.
10686         (expand_asm_operands): Likewise.
10687         * tree.c (tree_size): Update computation of size of STRING_CST.
10688         (make_node): Don't make STRING_CST nodes.
10689         (build_string): Allocate string with tree node.
10690         (tree_code_size): Clean up assertions, don't allow requests
10691         for "the size of a STRING_CST".
10692         * tree.def (STRING_CST): Update comment.
10693         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
10694         (tree_string): Place contents of string in tree node.
10695         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
10696         from tree.
10698 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
10700         * Makefile.in (c-parse.o): Depend on $(C_PRAGMA_H).
10701         * objc/Make-lang.in (objc/objc-parse.o): Likewise.
10703 2004-09-17  Jones Desougi  <jones@ingate.com>
10705         * configure.ac: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
10706         * configure, config.in: Regenerate.
10708 2004-09-17  Zack Weinberg  <zack@codesourcery.com>
10710         * tree.c, tree.h (tree_class_strings): Make array const.
10711         Reindent per coding convention.  Move asterisk to proper place
10712         per coding convention.
10714 2004-09-18  Andreas Schwab  <schwab@suse.de>
10716         * Makefile.in (gimple-low.o): Depend on $(EXPR_H).
10717         (tree-vectorizer.o): Likewise.
10718         (targhooks.o): Likewise.
10720 2004-09-17  Jeffrey D. Oldham  <oldham@codesourcery.com>
10721             Zack Weinberg  <zack@codesourcery.com>
10723         * alias.c (find_base_decl): Remove unreachable case '3' block.
10724         * expr.c (safe_from_p): Abort if passed a type.
10725         * tree-gimple.c (recalculate_side_effects): Abort if passed
10726         anything other than an expression.
10727         * tree-ssa-pre.c (phi_translate): Return expr immediately if
10728         is_gimple_min_invariant is true for it.  Reorder cases for clarity.
10729         Abort on un-handled tree classes.
10730         (valid_in_set): Likewise.
10731         * tree.c (tree_code_class_strings): New static data.
10733         * tree.h (enum tree_code_class): New.
10734         (tree_code_class_strings): Declare.
10735         (TREE_CODE_CLASS_STRING, EXCEPTIONAL_CLASS_P, CONSTANT_CLASS_P)
10736         (REFERENCE_CLASS_P, COMPARISON_CLASS_P, UNARY_CLASS_P, BINARY_CLASS_P)
10737         (STATEMENT_CLASS_P, EXPRESSION_CLASS_P, IS_TYPE_OR_DECL_P): New macros.
10738         (TYPE_P, DECL_P, IS_NON_TYPE_CODE_CLASS, IS_EXPR_CODE_CLASS)
10739         (checking macros, EXPR_LOCATION, SET_EXPR_LOCATION, EXPR_LOCUS): Update.
10741         * tree.def, c-common.def, objc/objc-tree.def: Use
10742         tree_code_class enumeration constants instead of code letters.
10744         * alias.c, builtins.c, c-common.c, c-format.c, c-lang.c, c-pragma.c
10745         * c-typeck.c, cgraphunit.c, convert.c, dbxout.c, dwarf2out.c
10746         * emit-rtl.c expr.c, fold-const.c, gimplify.c, lambda-code.c
10747         * langhooks.c, langhooks.h, predict.c, print-tree.c, reload1.c, stmt.c
10748         * tree-browser.c, tree-cfg.c, tree-chrec.c, tree-complex.c, tree-dfa.c
10749         * tree-dump.c, tree-eh.c, tree-gimple.c, tree-inline.c, tree-nested.c
10750         * tree-outof-ssa.c, tree-pretty-print.c, tree-sra.c, tree-ssa-ccp.c
10751         * tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-forwprop.c, tree-ssa-live.c
10752         * tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c
10753         * tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-propagate.c
10754         * tree-ssa.c, tree-ssanames.c, tree-tailcall.c, tree.c, varasm.c
10755         * config/sol2-c.c, config/arm/arm.c, config/i386/winnt.c
10756         * config/pa/pa.c, config/pa/pa.h, config/sh/sh.c, objc/objc-lang.c
10757         Update to match.
10759         * LANGUAGES: Add note about change.
10761 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
10763         PR tree-optimization/17319
10764         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Also
10765         examine pointers on the LHS of an assignment.
10766         (collect_points_to_info_r): Handle RETURN_EXPR.
10768 2004-09-17 Jeff Law  <law@redhat.com>
10770         * tree-ssa-dom.c (const_and_copies_stack): New.
10771         (dom_walk_block_data): Remove const_and_copies field.
10772         (record_const_or_copy): No longer need to pass in varray_type *.
10773         Use CONST_AND_COPIES_STACK rather than passed in block local stack.
10774         Callers updated.
10775         (record_equality): Similarly.
10776         (restore_vars_to_original_value): Similarly.  Revamp to use new
10777         single global stack rather than per-block stacks.
10778         (tree_ssa_dominator_optimize): Initialize the CONST_AND_COPIES_STACK.
10779         (thread_across_edge): Remove now unused parameters.
10780         (dom_opt_initialize_block_local_data): No longer test the block
10781         local CONST_AND_COPIES.
10782         (dom_opt_initialize_block): Push a marker on CONST_AND_COPIES_STACK.
10784 2004-09-17  Jan Hubicka  <jh@suse.cz>
10786         PR tree-optimization/17509
10787         * tree-optimize.c (update_inlined_to_pointers): New function.
10788         (tree_rest_of_compilation): Use it.
10790 2004-09-17  Devang Patel  <dpatel@apple.com>
10792         * dbxout.c (get_lang_number): New.
10793         (dbxout_init): Include lang number in N_SO  stab.
10794         * dbxout.h (N_SO_AS, N_SO_C, N_SO_ANSI_C, N_SO_CC, N_SO_FORTRAN,
10795         N_SO_PASCAL, N_SO_FORTRAN90, N_SO_OBJC, N_SO_OBJCPLUS): New #define.
10797 2004-09-17  Diego Novillo  <dnovillo@redhat.com>
10799         PR tree-optimization/17273
10800         * tree-ssa.c (replace_immediate_uses): Call fold_stmt if the
10801         replacement is a constant.
10803 2004-09-17  Joseph S. Myers  <jsm@polyomino.org.uk>
10805         * c-tree.h (enum c_typespec_keyword): New.
10806         (struct c_declspecs): Adjust description of "type".  Remove
10807         specbits, explicit_int_p and explicit_char_p.  Rename
10808         typedef_signed_p to explicit_signed_p.  Add default_int_p, long_p,
10809         short_p, signed_p, unsigned_p and complex_p.
10810         (finish_declspecs): New.
10811         * c-parse.in (datadef, datadecl, setspecs, decl, component_decl,
10812         typename): Call finish_declspecs.
10813         * c-decl.c (finish_declspecs): New.
10814         (declspecs_add_type): Check for combinations which cannot occur in
10815         valid specifier lists.  Update comments.
10816         (shadow_tag_warned): Remove checks done in finish_declspecs.
10817         Don't report useless type name if type defaulted to int.
10818         (grokdeclarator): Remove checks and actions done in
10819         finish_declspecs.  Don't allow for type being NULL.  Update for
10820         datastructures changes.  Initialize decl_attr.
10821         (build_null_declspecs, quals_from_declspecs): Update for
10822         datastructures changes.
10824 2004-09-17  Sylvain Pion  <Sylvain.Pion@sophia.inria.fr>
10826         * doc/extend.texi: Fix duplicated word.
10828 2004-09-17  Toon Moene  <toon@moene.indiv.nluug.nl>
10830         * doc/invoke.texi: Remove stray explanation on
10831         -freduce-all-givs and -fmove-all-movables.
10833 2004-09-17  James Morrison  <phython@gcc.gnu.org>
10835         * doc/cfg.texi: Use @smallexample.
10836         * doc/md.texi: Likewise.
10837         * doc/tree-ssa.texi: Likewise.
10838         * doc/extend.texi: Likewise.  Use @r{} in comments.
10839         * doc/trouble.texi: Use @r{} in comments.
10841 2004-09-17  Hans-Peter Nilsson  <hp@bitrange.com>
10843         * configure.ac (gcc_cv_gld_version): Handle whitespace before
10844         "VERSION=".
10845         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Ditto.
10846         * configure: Regenerate.
10848 2004-09-17  J"orn Rennecke <joern.rennecke@superh.com>
10850         * sh.c (sh_gimplify_va_arg_expr): Don't call pass_by_reference.
10851         (sh_pass_by_reference): Work around std_gimplify_va_arg_expr bug.
10852         * t-sh (MULTILIB_CPUS): s/ML_m/ML_sh/g .
10853         * t-sh64 (MULTILIB_CPU_DIRS): Likewise.  Match dashes and trailing
10854         slashes in substitutions.
10855         (MULTILIB_DIRNAMES): Remove defunct removal of /media32.
10857 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
10859         * basic-block.h, c-decl.c, c-parse.in, cgraphunit.c, ddg.c,
10860         gimplify.c, lambda-code.c, optabs.c, predict.c,
10861         tree-scalar-evolution.c, tree-sra.c, tree-ssa-loop-ch.c,
10862         tree-ssa.c, vec.h: Fix comment typos.  Follow spelling
10863         conventions.
10865 2004-09-17  Kazu Hirata  <kazu@cs.umass.edu>
10867         * doc/compat.texi, doc/cpp.texi, doc/cppopts.texi,
10868         doc/extend.texi, doc/install.texi, doc/invoke.texi,
10869         doc/sourcebuild.texi, doc/tm.texi, doc/tree-ssa.texi,
10870         doc/trouble.texi: Use @option around options.
10872 2004-09-17  Richard Sandiford  <rsandifo@redhat.com>
10874         * Makefile.in (gen-protos.o): Depend on errors.h.
10876 2004-09-17  Steven Bosscher  <stevenb@suse.de>
10878         PR tree-optimization/17513
10879         * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE
10880         for successors of the entry block.
10882 2004-09-17  Uros Bizjak  <uros@kss-loka.si>
10884         PR rtl-optimization/15187
10885         * ifcvt.c (noce_try_cmove_arith): Exit early if total
10886         insn_rtx_cost of both branches > BRANCH_COST
10888 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
10890         PR tree-optimization/17528
10891         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Do not
10892         erase the may-alias set for a tag when merging it with
10893         another.
10895 2004-09-16  Kaz Kojima  <kkojima@gcc.gnu.org>
10897         * config/sh/sh.md (call): Extend 32-bit addresses to DImode
10898         for 32-bit TARGET_SHMEDIA.
10899         (call_value): Likewise.
10901 2004-09-16  Diego Novillo  <dnovillo@redhat.com>
10903         * tree-ssa-operands.c (add_call_clobber_ops): Make read-only
10904         test apply only to TREE_STATIC and DECL_EXTERNAL.
10906 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10908         * Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
10909         * basic-block.h (get_dominated_by_region): Declare.
10910         * dominance.c (get_dominated_by_region): New function.
10911         * tree-cfg.c: Include cfglayout.h.
10912         (tree_duplicate_bb): Duplicate also phi nodes.
10913         (struct ssa_name_map_entry): New type.
10914         (add_phi_args_after_copy_bb, add_phi_args_after_copy,
10915         ssa_name_map_entry_hash, ssa_name_map_entry_eq,
10916         allocate_ssa_names, rewrite_to_new_ssa_names_def,
10917         rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
10918         rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
10919         * tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
10920         add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
10921         rewrite_to_new_ssa_names, allocate_ssa_names,
10922         rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
10923         * tree-ssa-loop-ch.c (duplicate_blocks): Removed.
10924         (copy_loop_headers): Use tree_duplicate_sese_region.
10926 2004-09-16  Frank Ch. Eigler  <fche@redhat.com>
10928         * profile.c (branch_prob): Restore support for USE_MAPPED_LOCATION.
10930 2004-09-16 Jeff Law  <law@redhat.com>
10932         * tree-into-ssa.c (block_defs_stack): New toplevel varray.
10933         (rewrite_block_data): Remove, no longer used.
10934         (rewrite_initialize_block_local_data): Remove, no longer used.
10935         (rewrite_initialize_block): Mark parameters as unused as needed.
10936         Change references to the block local block_defs to be block_defs_stack.
10937         Push a marker onto the block_defs_stack.
10938         (ssa_rewrite_initialize_block): Similarly.
10939         (rewrite_stmt, ssa_rewrite_stmt): Similarly.
10940         (ssa_register_new_def): No longer needs varray argument.  Use
10941         block_defs_stack instead.  No longer handle possibly null block_defs
10942         varray.  Reverse order of items we push on the stack to make it
10943         easier to identify our marker.
10944         (register_new_def): No longer handle possibly null block_defs
10945         varray.
10946         (rewrite_finalize_block): Revamp to look for markers in the global
10947         block_defs_stack varray rather than wiping a block local varray.
10948         Mark arguments as unused as needed.
10949         (ssa_rewrite_finalize_block): Similarly.
10950         (rewrite_into_ssa): Update initialization of dom walker structure
10951         to reflect that we don't need block local data anymore.  Initialize
10952         the block_defs_stack varray.
10953         (rewrite_ssa_into_ssa): Similarly.
10954         * tree-ssa-dom.c (block_defs_stack): New toplevel varray.
10955         (struct dom_walk_data): Kill block_defs field.
10956         (tree_ssa_dominator_optimize): Initialize block_defs_stack.
10957         (thread_across_edge): Use the global block_defs_stack instead of
10958         the old block_defs varray.
10959         (dom_opt_initialize_block_local_data): Update now that we don't have
10960         block_defs field to check anymore.
10961         (dom_opt_initialize_block): Push a marker onto block_defs_stack.
10962         (restore_currdefs_to_original_value): Use the new block_defs_stack
10963         instead of a block local varray.
10964         (dom_opt_finalize_block): Similarly.
10965         (record_equivalencs_from_phis): Similarly.
10966         (optimize_stmt, register_definitions_for_stmt): Similarly.
10968 2004-09-16  Andrew MacLeod  <amacleod@redhat.com>
10970         PR tree-optimization/17517
10971         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10972         coalesce same-root variables without checking for abnormal PHI usage.
10974 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
10976         * cfgloop.h (duplicate_loop):  Add prototype.
10977         * cfgloopmanip.c (duplicate_loop): Make non-static.
10978         * lambda-code.c (perfect_nestify): Factor out test whether
10979         we can handle this loop into separate function.
10980         Call it.
10981         (can_convert_to_perfect_nest): New function.
10982         (replace_uses_of_x_with_y): Add modify_stmt call.
10983         * tree-loop-linear.c (linear_transform_loops): Call
10984         rewrite_into_loop_closed_ssa and free_df.
10986 2004-09-16  Daniel Berlin  <dberlin@dberlin.org>
10988         * lambda-code.c (invariant_in_loop): is_gimple_min_invariant is
10989         loop invariant as well.
10990         (perfect_nestify): new function.
10991         (gcc_loop_to_lambda_loop): New parameters to track lower bounds,
10992         upper bounds, and steps.
10993         Set outerinductionvar properly.
10994         (gcc_loopnest_to_lambda_loopnest): Add loops and need_perfect
10995         parameters.
10996         Return NULL if we need a perfect loop and can't make one.
10997         (lambda_loopnest_to_gcc_loopnest): Correct algorithm.
10998         (not_interesting_stmt): New function.
10999         (phi_loop_edge_uses_def): Ditto.
11000         (stmt_uses_phi_result): Ditto.
11001         (stmt_is_bumper_for_loop): Ditto.
11002         (perfect_nest_p): Ditto.
11003         (nestify_update_pending_stmts): Ditto.
11004         (replace_uses_of_x_with_y): Ditto.
11005         (stmt_uses_op): Ditto.
11006         (perfect_nestify): Ditto.
11007         * lambda-mat.c (lambda_matrix_id_p): New function.
11008         * lambda-trans.c (lambda_trans_matrix_id_p): Ditto.
11009         * lambda.h: Update prototypes.
11010         * tree-loop-linear (linear_transform_loop): Use new
11011         perfect_nest_p. Detect and ignore identity transform.
11012         * tree-ssa-loop.c (pass_linear_transform): Use TODO_write_loop_closed.
11014 2004-09-16  Sebastian Pop  <pop@cri.ensmp.fr>
11016         * tree-loop-linear.c (gather_interchange_stats): Add more comments.
11017         Gather also strides of accessed data.  Pass in the data references
11018         array.
11019         (try_interchange_loops): Add a new heuristic for handling the temporal
11020         locality.  Pass in the data references array.
11021         (linear_transform_loops): Pass the data references array to
11022         try_interchange_loops.
11024 2004-09-16  Kazu Hirata  <kazu@cs.umass.edu>
11026         * doc/invoke.texi: Fix typos.  Follow spelling conventions.
11028 2004-09-16  Nathan Sidwell  <nathan@codesourcery.com>
11030         * doc/c-tree.texi (Classes): Remove index entries for
11031         TREE_VIA_{PUBLIC,PROTECTED,PRIVATE}.
11033 2004-09-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11035         * fold-const.c (fold): Fold difference of addresses.
11036         (ptr_difference_const): Moved from tree-ssa-loop-ivopts, based on
11037         get_inner_reference.
11038         * tree-ssa-loop-ivopts.c (peel_address): Removed.
11039         (ptr_difference_const): Moved to fold-const.c.
11040         (split_address_cost): Use get_inner_reference instead of peel_address.
11041         (ptr_difference_cost): Change type of diff to HOST_WIDE_INT.
11042         * tree.h (ptr_difference_const): Export.
11044         * tree-ssa-loop-ivopts.c (dump_iv, dump_use, dump_cand): Add induction
11045         variable type to the dump.  Fix indentation.
11046         (idx_find_step): Handle nonconstant array_ref_element_size and
11047         array_ref_low_bound.
11048         (idx_record_use): Handle array_ref_element_size and
11049         array_ref_low_bound.
11050         (find_interesting_uses_stmt): Handle memory = nontrivial_expression
11051         statements correctly.
11052         (get_computation_at, iv_value): Do not unshare expressions here.
11053         (rewrite_use_outer): Unshare the expression before it is emitted
11054         to code.
11055         * tree-ssa-loop-niter.c (unsigned_type_for, signed_type_for):
11056         Moved to tree.c.
11057         * tree.c (unsigned_type_for, signed_type_for): Moved from
11058         tree-ssa-loop-niter.c.  Use langhooks.
11059         * tree.h (signed_type_for): Export.
11061 2004-09-16  David Edelsohn  <edelsohn@gnu.org>
11063         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Update
11064         prototype.
11066 2004-09-15  Andrew Pinski  <pinskia@physics.uc.edu>
11068         PR target/11572
11069         * c-incpath.h (target_c_incpath_s): Add extra_pre_includes.
11070         Add two parameters to extra_includes.
11071         (C_INCPATH_INIT): Remove.
11072         * c-incpath.c (register_include_chains): Call extra_pre_includes
11073         before adding the standard include directory.
11074         Update call to extra_includes.
11075         (!defined TARGET_EXTRA_INCLUDES): Update
11076         hook_void_charptr_charptr_int and add !define
11077         TARGET_EXTRA_PRE_INCLUDES.
11078         (!define TARGET_EXTRA_INCLUDES): Define as
11079         hook_void_charptr_charptr_int.
11080         (!define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11081         (target_c_incpath): Always declare.
11082         * fixinclude.c (defined TARGET_EXTRA_INCLUDES): Declare a
11083         empty function.
11084         (define TARGET_EXTRA_PRE_INCLUDES): Likewise.
11085         * config/darwin.h: (darwin_register_frameworks): Update for
11086         the two new parameters.
11087         (darwin_register_objc_includes): Add prototype.
11088         (TARGET_EXTRA_PRE_INCLUDES): Define.
11089         * config/darwin-c.c (darwin_register_objc_includes): New function.
11090         (darwin_register_frameworks): Update for the two new parameters.
11091         (target_c_incpath): Remove.
11092         * config/t-darwin (darwin-c.o): Add $(PREPROCESSOR_DEFINES) to
11093         the compile line.
11094         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Document the two new
11095         parameters.
11096         (TARGET_EXTRA_PRE_INCLUDES): Document.
11098         * gcc.c (spec_function): Add replace-outfile.
11099         (replace_outfile_spec_function): New function.
11100         * config/darwin.h (LINK_SPEC): Add replace
11101         -lobjc with -lobjc-gnu if -fgnu-runtime is
11102         supplied.
11103         * invoke.texi (replace-outfile): Document.
11105 2004-09-13  Jan Hubicka  <jh@suse.cz>
11107         * predict.c (expr_expected_value, strip_builtin_expect): New function.
11108         (tree_predict_by_opcode): Use it.
11109         (tree_estimate_probability): Add, for now disabled,
11110         strip_builtin_expect call.
11112 2004-09-15  James E Wilson  <wilson@specifixinc.com>
11114         PR target/17455
11115         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Return false
11116         if current_function_decl is a sibcall.
11118 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
11120         * varasm.c (default_function_rdodata_section): Make sure to pass
11121         along a decl for a link-once section.
11123 2004-09-15  Richard Henderson  <rth@redhat.com>
11125         * tree-ssa-operands.c (add_call_clobber_ops): Fix unused variable
11126         warning with code disable.  Fix formatting.
11128 2004-09-15  Steven Bosscher  <stevenb@suse.de>
11130         * Makefile.in (tree-ssa-dom.o): Depend on tree-ssa-propagate.h.
11131         * tree-ssa-dom.c (cprop_into_stmt): Recompute TREE_INVARIANT
11132         after propagating into an ADDR_EXPR.
11134 2004-09-15  Andrew Pinski  <apinski@apple.com>
11136         PR rtl-opt/17427
11137         * gcse.c (process_insert_insn): insn_invalid_p has side effects.
11138         Move it out of gcc_assert.
11140 2004-09-15  Joseph S. Myers  <jsm@polyomino.org.uk>
11142         * attribs.c, builtins.c, c-format.c, c-pch.c, coverage.c,
11143         except.c, fold-const.c, function.c, langhooks.c, params.c,
11144         reload.c, reload1.c, stmt.c, stor-layout.c, toplev.c, tree-cfg.c,
11145         tree-dump.c, tree-mudflap.c, tree.c, varasm.c: Use %<, %> and %q
11146         for quoting in diagnostics going through pretty-print.c.  Use ''
11147         for quoting in other diagnostic text.
11148         * langhooks.c: Include intl.h.  Mark text locating diagnostics for
11149         translation.
11150         * Makefile.in (langhooks.o): Update dependencies.
11151         * pretty-print.h (pp_printf): Mark as accepting GCC diagnostic
11152         formats.
11154 2004-09-15  Mark Mitchell  <mark@codesourcery.com>
11156         * configure.ac: Check for COMDAT support.  Robustify check for
11157         SHF_MERGE support.
11158         * configure: Regenerated.
11159         * config.in: Likewise.
11160         * langhooks-def.h (lhd_comdat_group): New function.
11161         (LANG_HOOKS_COMDAT_GROUP): New macro.
11162         (LANG_HOOKS_DECLS): Use it.
11163         * langhooks.c (lhd_comdat_group): Define.
11164         * langhooks.h (lang_hooks_for_decls): Add comdat_group.
11165         * output.h (named_section_flags): Make it a macro.
11166         (named_section_real): New function.
11167         (default_no_named_section): Add decl parameter.
11168         (default_elf_asm_named_section): Likewise.
11169         (default_coff_asm_named_section): Likewise.
11170         (default_pe_asm_named_section): Likewise.
11171         * target.h (gcc_target): Adjust type of named_section.
11172         * varasm.c (named_section_flags): Rename to named_section_real.
11173         Add decl parameter.
11174         (default_no_named_section): Add decl parameter.
11175         (default_elf_asm_named_section): Use COMDAT, if available.  Deal
11176         with the case that ASM_COMMENT_START is "@".
11177         (default_coff_asm_named_section): Add decl parameter.
11178         (default_pe_asm_named_section): Likewise.
11179         * config/alpha/alpha.c (vms_asm_named_section): Add decl
11180         parameter.
11181         (unicosmk_asm_named_section): Likewise.
11182         * config/arm/arm.c (arm_elf_asm_named_section): Remove.
11183         * config/arm/elf.h (TARGET_ASM_NAMED_SECTION): Likewise.
11184         * config/c4x/c4x.c (c4x_asm_named_section): Add decl parameter.
11185         * config/cris/cris-protos.h (cris_target_asm_named_section):
11186         Likewise.
11187         * config/cris/cris.c (cris_target_asm_named_section):
11188         Likewise.
11189         * config/darwin/darwin-protos.h (darwin_asm_named_section):
11190         Likewise.
11191         * config/darwin/darwin.c (darwin_asm_named_section): Likewise.
11192         * config/h8300/h8300.c (h8300_asm_named_section): Likewise.
11193         * config/i386/i386-protos.h (i386_pe_asm_named_section):
11194         Likewise.
11195         * config/i386/winnt.c (i386_pe_asm_named_section): Likewise.
11196         * config/m68k/m68k.c (m68k_coff_asm_named_section): Likewise.
11197         * config/mcore/mcore.c (mcore_asm_named_section): Likewise.
11198         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section):
11199         Likewise.
11200         * config/sparc/sparc.c (sparce_elf_asm_named_section): Likewise.
11201         * cp/cp-lang.h (LANG_HOOKS_COMDAT_GROUP): Define.
11202         * cp/cp-tree.h (cxx_comdat_group): Declare.
11203         * cp/decl.c (cxx_comdat_group): New function.
11205 2004-09-15  Jan Hubicka  <jh@suse.cz>
11207         * tree-ssa.c (verify_flow_sensitive_alias_info): Do not walk dead nodes.
11208         * tree-tailcall.c (eliminate_tail_call): Release SSA name.
11210         * tree-cfg.c (remove_bb): Release SSA defs.
11212 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
11214         * doc/tm.texi: Follow spelling conventions.
11216 2004-09-15  Kazu Hirata  <kazu@cs.umass.edu>
11218         * tree-ssa-dom.c: Fix comment typos.
11220 2004-09-15  Alan Modra  <amodra@bigpond.net.au>
11222         * config/rs6000/linux-unwind.h (struct gcc_pt_regs): Extend to
11223         include ccr.
11224         (ppc_fallback_frame_state): Save location of CR.
11226 2004-09-15  Jakub Jelinek  <jakub@redhat.com>
11228         * expr.c (string_constant): Handle also read-only variables
11229         initialized to string literals.
11231         * builtins.c (expand_builtin_memmove): Optimize memmove (x, y, 1)
11232         into memcpy (x, y, 1) if memcpy can be expanded inline.
11234 2004-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11236         PR tree-optimization/17468
11237         * tree-ssa.c (verify_use, verify_phi_args, verify_ssa):  Verify that
11238         definition inside a block precede uses.
11239         * tree-tailcall.c (adjust_return_value): Emit statements in the
11240         correct order.
11242 2004-09-15  Richard Sandiford  <rsandifo@redhat.com>
11244         * config/mips/mips.h (POINTERS_EXTEND_UNSIGNED): Delete.
11246 2004-09-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
11248         * doc/install.texi (sparc-sun-solaris2*): Properly format warning.
11250 2004-09-14 Jeff Law  <law@redhat.com>
11252         * tree-ssa-dom.c (avail_exprs_stack): New global varray.
11253         (struct dom_walk_block_data): Remove avail_exprs member.
11254         (tree_ssa_dominator_optimize): Initialize avail_exprs_stack.
11255         (lookup_avail_expr): No longer need to pass in address of
11256         the block local available exprs stack.  All callers changed.
11257         (simplify_cond_and_lookup_avail_expr): Similarly.
11258         (simplify_switch_and_lookup_avail_expr): Similarly.
11259         (get_eq_expr_value, record_cond): Likewise.
11260         (record_dominating_conditions): Likewise.
11261         (update_rhs_and_lookup_avail_expr): Likewise.
11262         (record_equivalences_from_stmt): Likewise.
11263         (dom_opt_initialize_block_local_data): No longer test state of
11264         block local avail_exprs.
11265         (dom_opt_initialize_block): Mark unwind point in the global
11266         avail_expr stack.
11267         (remove_expressions_from_table): Update to unwind to the
11268         most recent unwind marker in the global avail_expr stack.
11269         All callers changed.
11270         (dom_opt_finalize_block): Mark unwind point in the global
11271         avail_expr stack as needed.
11272         (record_cond): Push elements into the global avail_exprs stack.
11274         * tree-dfa.c (free_df_for_stmt): No longer static.
11275         (free_df): Update comments.
11276         * tree-flow.h (free_df_for_stmt): Prototype.
11277         * tree-ssa-dse.c (dse_optimize_stmt): Call free_df_for_stmt.  Also
11278         call release_defs.
11280 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
11282         PR tree-optimization/17252
11283         * tree-ssa-alias.c (may_alias_p): Don't assume that a
11284         pointer may not point to itself when using relaxed
11285         aliasing rules.
11287 2004-09-14  Richard Henderson  <rth@redhat.com>
11289         PR middle-end/17397
11290         * gimplify.c (gimplify_addr_expr): Don't inadvertently change types
11291         while folding <ADDR_EXPR <INDIRECT_REF X>>.
11293 2004-09-14  Andrew Pinski  <apinski@apple.com>
11295         * tree-ssa-copy.c (may_propagate_copy): Don't check the aliasing
11296         sets of the pointers but the aliasing sets of what they point to.
11298 2004-09-14  Roger Sayle  <roger@eyesopen.com>
11300         PR rtl-optimization/9771
11301         * regclass.c (CALL_REALLY_USED_REGNO_P): New macro to eliminate
11302         conditional compilation in init_reg_sets_1.
11303         (init_reg_sets_1): Let global_regs[i] take priority over the frame
11304         (but not stack) pointer exceptions to regs_invalidated_by_call.
11305         (globalize_reg): Globalizing a fixed register may need to update
11306         regs_invalidated_by_call.
11308 2004-09-14  Diego Novillo  <dnovillo@redhat.com>
11310         PR tree-optimization/15262
11311         * tree-dfa.c (dump_variable): Also print the type of the
11312         variable.
11313         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If two
11314         memory tags are of conflicting alias sets but have no aliased
11315         symbols in common, add one tag to the alias set of the other.
11316         (setup_pointers_and_addressables): Remove hack to deal with
11317         programs with no aliased symbols.
11318         (may_alias_p): Don't special case aggregate types.
11320 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
11322         PR c/15498
11323         * doc/invoke.texi (Environment Variables): Correct example locale.
11325 2004-09-14  Jan Hubicka  <jh@suse.cz>
11327         * cfg.c (expunge_block): Revert previous change adding ggc_free call.
11329 2004-09-14  Mark Mitchell  <mark@codesourcery.com>
11331         * config.gcc: Do not build a shared libgcc for arm-none-eabi.
11333 2004-09-14  Joseph S. Myers  <jsm@polyomino.org.uk>
11335         * c-tree.h (struct c_declspecs): Add const_p, volatile_p and
11336         restrict_p.
11337         (struct c_declarator): Change u.array.quals and pointer_quals to
11338         int.  Add u.array.attrs.
11339         (quals_from_declspecs): New.
11340         * c-decl.c (quals_from_declspecs): New.
11341         (shadow_tag_warned): Give more specific message for useless type
11342         qualifiers.
11343         (build_array_declarator, set_array_declarator_inner,
11344         grokdeclarator, make_pointer_declarator, build_null_declspecs,
11345         declspecs_add_qual): Update for changed structures.
11347 2004-09-14  Jeff Law  <law@redhat.com>
11349         * tree-ssa-dom.c (stmts_to_rescan): Move from a block-local
11350         to a global varray.
11351         (tree_ssa_dominator_optimize): Allocate stmts_to_rescan.
11352         (dom_opt_initialize_block_local_data): No longer test state
11353         of stmts_to_rescan.
11354         (dom_opt_finalize_block): Update due to change in scope of
11355         stmts_to_rescan.
11356         (optimize_stmt): Similarly.
11358 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
11360         * cgraph.h, cgraphunit.c, fold-const.c, lambda-mat.c,
11361         lambda.h, profile.c, tree-optimize.c, tree-sra.c, vec.h: Fix
11362         comment typos.  Follow spelling conventions.
11364 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
11366         * config/darwin-c.c, config/alpha/alpha.c, config/i386/i386.c,
11367         config/i386/predicates.md, config/sparc/sparc.c: Follow
11368         spelling conventions.
11370 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11371             Steven Bosscher  <stevenb@suse.de>
11373         * Makefile.in (loop-unroll.o): Add HASHTAB_H and RECOG_H dependency.
11374         * basic-block.h (struct reorder_block_def): Add copy_number field.
11375         * cfgloop.h (biv_p): Declare.
11376         * cfgloopmanip.c (duplicate_loop_to_header_edge): Set copy_number.
11377         * common.opt (fsplit-ivs-in-unroller): New flag.
11378         * loop-iv.c (biv_p): New function.
11379         * loop-unroll.c: Include hashtab.h and recog.h.
11380         (struct iv_to_split, struct split_ivs_info): New types.
11381         (analyze_ivs_to_split, si_info_start_duplication, split_ivs_in_copies,
11382         free_si_info, si_info_hash, si_info_eq, analyze_iv_to_split_insn,
11383         determine_split_iv_delta, get_ivts_expr, allocate_basic_variable,
11384         insert_base_initialization, split_iv): New functions.
11385         (peel_loop_completely, unroll_loop_constant_iterations,
11386         unroll_loop_runtime_iterations, peel_loop_simple, unroll_loop_stupid):
11387         Use them.
11388         * doc/invoke.texi (-fsplit-ivs-in-unroller): Document.
11390 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11392         * tree-cfg.c (thread_jumps): Update dominators correctly in
11393         case destination of threaded edge dominates its source.
11395 2004-09-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11397         * unroll.c: Removed.
11398         * loop.h: Removed.
11399         * Makefile.in (LOOP_H, unroll.o): Removed.
11400         (toplev.o, passes.o, stmt.o, integrate.o, loop.o): Remove LOOP_H
11401         dependency.
11402         * alias.c (init_alias_analysis): Remove flag_old_unroll_loops
11403         reference.
11404         * cfgloop.h (LOOP_PREFETCH, loop_optimize): Moved from loop.h.
11405         * common.opt (fold-unroll-loops, fold-unroll-all-loops): Removed.
11406         * loop.c: Do not include loop.h.
11407         (LOOP_INFO, LOOP_MOVABLES, LOOP_REGS, LOOP_IVS, INSN_LUID,
11408         REGNO_FIRST_LUID, REGNO_LAST_LUID, enum g_types, struct induction,
11409         struct iv_class, enum iv_mode, struct iv, REG_IV_TYPE, REG_IV_INFO,
11410         REG_IV_CLASS, struct loop_ivs, struct loop_mem_info, struct loop_reg,
11411         struct loop_regs, struct loop_movables, struct loop_info): Moved
11412         from loop.h.
11413         (back_branch_in_range_p, fold_rtx_mult_add, biv_total_increment,
11414         reg_dead_after_loop, final_biv_value, loop_find_equiv_value,
11415         find_common_reg_term, loop_iterations, final_giv_value): Moved
11416         from unroll.c.
11417         (uid_luid, uid_loop, max_uid_for_loop, max_reg_before_loop,
11418         loop_dump_stream, for_each_insn_in_loop, express_from,
11419         extend_value_for_giv, loop_iv_add_mult_emit_before,
11420         loop_iv_add_mult_sink, loop_iv_add_mult_hoist,
11421         loop_insn_first_p, get_condition_for_loop,
11422         loop_insn_emit_before, loop_insn_hoist,
11423         loop_insn_sink): Made static.
11424         (loop_invariant_p): Made static.  Removed flag_old_unroll_loops
11425         reference.
11426         (strength_reduce): Do not call unroller.
11427         (record_giv): Do not initialize unrolled field.
11428         (prescan_loop): Do not set loop_info->preconditioned.
11429         * passes.c: Do not include loop.h.
11430         (rest_of_handle_loop_optimize): Do not call unroller.
11431         * predict.c: Do not include loop.h.
11432         * rtl.h (NOTE_PRECONDITIONED): Removed.
11433         * stmt.c: Do not include loop.h.
11434         * toplev.c: Do not include loop.h.
11435         (process_options): Do not handle flag_old_unroll_loops.
11437         * doc/invoke.texi (fold-unroll-loops, fold-unroll-all-loops):
11438         Documentation removed.
11439         * doc/passes.texi (unroll.c, loop.h): Documentation removed.
11441 2004-09-14  Nathan Sidwell  <nathan@codesourcery.com>
11443         * Makefile.in (STAGE1_CHECKING): New variable.
11444         (stage1_build): Use it.
11445         * tree-ssa.c (verify_ssa): Preserve state of dominance
11446         information.
11448 2004-09-14  Uros Bizjak  <uros@kss-loka.si>
11450         * config/i386/i386.c (output_fp_compare): Add generation
11451         of ftst instruction.
11452         * config/i386/i386.md (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf):
11453         Use output_fp_compare () function.
11454         (cmpfp_i, *cmpfp_i_sse, *cmpfp_i_sse_only): Fix insn constraint.
11455         (fix_truncdi_memory): Remove operands[5] copy.
11457 2004-09-14  Kazu Hirata  <kazu@cs.umass.edu>
11459         * config/m32r/m32r.md, config/m68k/m68kelf.h,
11460         config/mcore/mcore.md, config/rs6000/linux64.h,
11461         config/rs6000/rs6000.c, config/sparc/sparc.c: Fix comment
11462         typos.
11464 2004-09-13  James E Wilson  <wilson@specifixinc.com>
11466         * Makefile.in (GEN_PROTOS_OBJS): Add $(BUILD_ERRORS).
11467         * gen-protos.c: Include errors.h.
11468         (progname): Delete.
11470 2004-09-14  Jan Hubicka  <jh@suse.cz>
11472         * Makefile.in (predict.o): Depend on tree-scalar-evolution.h
11473         * predict.c: Include tree-scalar-evolution.h and cfgloop.h
11474         (predict_loops): Use number_of_iterations_exit to predict
11475         number of iterations on trees.
11477 2004-09-13  Dale Johannesen  <dalej@apple.com>
11479         PR 17408
11480         PR 17409
11481         * c-decl.c (start_decl): Repair TREE_STATIC for initialized
11482         objects declared extern.
11484 2004-09-14  Paul Brook  <paul@codesourcery.com>
11486         * config/arm/arm.c (arm_expand_prologue): Make args_to_push a
11487         HOST_WIDE_INT.
11489 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
11491         * fold-const.c (fold_checksum_tree): Ignore TYPE_CACHED_VALUES.
11492         Only use TYPE_BINFO for aggregates.
11494 2004-09-13  Daniel Jacobowitz  <dan@debian.org>
11496         * expmed.c (synth_mult): Initialize latency.  Check cost before
11497         checking ops count.
11499 2004-09-13  Kenneth Zadeck  <Kenneth.Zadeck@NaturalBridge.com>
11501         * tree-ssa-operands.c (get_call_expr_operands): Added parm to
11502         add_call_clobber_ops and add_call_read_ops.
11503         (add_call_clobber_ops, add_call_read_ops): Added code to reduce
11504         the number of vdefs and vuses inserted based on analysis of global
11505         variables across calls.  * tree-dfa.c (find_referenced_vars):
11506         Needed to reset static var maps before each function is compiled.
11507         * cgraphunit.c:
11508         (static_vars_to_consider_by_tree,static_vars_to_consider_by_uid,
11509         static_vars_info,functions_to_static_vars_info,module_statics_escape,
11510         all_module_statics,searchc_env,dfs_info): New fields to support
11511         analysis of static global variables.
11512         (print_order, convert_UIDs_in_bitmap, new_static_vars_info,
11513         cgraph_reset_static_var_maps, get_global_static_vars_info,
11514         get_global_statics_not_read, get_global_statics_not_written,
11515         searchc, cgraph_reduced_inorder, has_proper_scope_for_analysis,
11516         check_rhs_var, check_lhs_var, get_asm_expr_operands,
11517         process_call_for_static_vars, scan_for_static_refs,
11518         cgraph_characterize_statics_local, cgraph_get_static_name_by_uid,
11519         clear_static_vars_maps, cgraph_propagate_bits,
11520         cgraph_characterize_statics): New. Functions to support analysis
11521         of static global variables.
11522         (cgraph_mark_local_and_external_functions): Renamed from:
11523         (cgraph_mark_local_functions)
11524         (cgraph_expand_all_functions): Remove call to
11525         cgraph_mark_local_and_external_functions.
11526         (cgraph_optimize): Added driver to analyze static variables whose
11527         scope is within the compilation unit.  * cgraph.h (struct
11528         cgraph_local_info, GTY): Added statics_read, statics_written,
11529         local, calls_read_all, calls_write_all, for_functions_valid.
11530         (struct cgraph_node): Added next_cycle.  * cgraph.c
11531         (dump_cgraph_node): Added print routines for new fields.  *
11532         makefile.in: macroized cgraph.h, added cgraphunit.c to the ggc
11533         list.
11535 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
11537         * c-decl.c (grokdeclarator): Correct comments about where storage
11538         class specifiers are rejected by grammar and add corresponding
11539         asserts.  Diagnose typedefs and parameters declared inline.
11540         Change warning for inline main to a pedwarn.  Only diagnose inline
11541         main if hosted.
11542         (declspecs_add_scspec): Allow duplicate "inline".
11544 2004-09-13  Steve Ellcey  <sje@cup.hp.com>
11546         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): New.
11547         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
11549 2004-09-13  Richard Henderson  <rth@redhat.com>
11551         PR 17436
11552         * tree.h (TYPE_CONTAINS_PLACEHOLDER_INTERNAL): New.
11553         (tree_type): Replace spare with contains_placeholder_bits.
11554         (type_contains_placeholder_1): Rename from type_contains_placeholder_p,
11555         make static.  Remove seen_types list.
11556         (type_contains_placeholder_p): New.
11558 2004-09-13  James E Wilson  <wilson@specifixinc.com>
11560         * config/mips/mips.c (CODE_FOR_mips_sqrt_ps): New.
11561         (sb1_bdesc, bdesc_map, bdesc_arrays): New.
11562         (mips_expand_builtin): Add SB-1 support.  Use bdesc_map and
11563         bdesc_arrays instead of mips_bdesc.
11564         (mips_init_builtins): Likewise.
11565         * config/mips/mips.h (TARGET_SB1): New.
11566         (HAVE_SQRT_P): Delete.
11567         * config/mips/mips.md (divide_condition): Support V2SF.
11568         (sqrt_condition, recip_condition): New.
11569         (div<mode>3): Use ANYF instead of SCALARF.
11570         (*div<mode>3): Use ANYF instead of SCALARF.  Use UNITMODE instead of
11571         MODE.
11572         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Use recip_condition
11573         instead of ISA_HAS_FP4.  Use ANYF instead of SCALARF.  Use UNITMODE
11574         instead of MODE.
11575         (sqrt<mode>2): Use sqrt_condition instead of HAVE_SQRT_P.  Use ANYF
11576         instead of SCALARF.  Use UNITMODE instead of MODE.
11578 2004-09-13  Zack Weinberg  <zack@codesourcery.com>
11580         * config.in: Regenerate after removal of libbanshee.
11582 2004-09-13  Andrew MacLeod  <amacleod@redhat.com>
11584         PR tree-optimization/17400
11585         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11586         coalesce partitions when one occurs in an abnormal PHI.
11588 2004-09-13  Andrew Pinski  <apinski@apple.com>
11590         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Change variable size's
11591         name to _new_size.
11593 2004-09-13  Richard Henderson  <rth@redhat.com>
11595         PR inline-asm/6806
11596         * cselib.c (cselib_invalidate_rtx): Export.  Remove unused args.
11597         (cselib_invalidate_rtx_note_stores): New.
11598         (cselib_record_sets, cselib_process_insn): Update to match.
11599         * cselib.h (cselib_invalidate_rtx): Declare.
11600         * postreload.c (reload_cse_simplify): Invalidate asm clobbers.
11602 2004-09-13  Richard Henderson  <rth@redhat.com>
11604         PR tree-opt/10528
11605         * tree-inline.c (copy_body_r): Recompute bits for ADDR_EXPR,
11606         after copying its argument.
11608 2004-09-13  Joseph S. Myers  <jsm@polyomino.org.uk>
11610         * c-common.c, c-decl.c, c-lex.c, c-objc-common.c, c-opts.c,
11611         c-parse.in, c-pragma.c, c-typeck.c: Use %q, %< and %> for quoting
11612         in diagnostics.  Use %' for English apostrophes.
11613         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Define.
11614         (pedwarn_c90, pedwarn_c99): Use it.
11615         * c-decl.c (lookup_label): Quote label name in diagnostic.
11616         * c-parse.in (yyprint): Use ' instead of ` for left quote.
11617         * c-typeck.c (warn_for_assignment): Likewise.
11619 2004-09-13  Jan Hubicka  <jh@suse.cz>
11621         * i386.c (x86_schedule): New global variable.
11622         (override_options): Disable scheduling when not supported.
11623         * i386.h (x86_schedule): Declare.
11624         (TARGET_SCHEDULE): New macro.
11626 2004-09-12  Richard Henderson  <rth@redhat.com>
11628         PR c++/16254
11629         * fold-const.c (fold) <case CLEANUP_POINT_EXPR>: Remove.
11630         * tree.c, tree.h (has_cleanups): Remove.
11632 2004-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11634         * tree-ssa-loop-manip.c (split_loop_exit_edge): Handle non-ssaname
11635         arguments of the phi nodes correctly.
11637 2004-09-12  Jan Hubicka  <jh@suse.cz>
11639         * ggc-common.c (cmp_statistics): Fix sorting.
11641 2004-09-12  David Edelsohn  <edelsohn@gnu.org>
11643         PR target/16795
11644         * expmed.c (expand_divmod): If cheap power of 2 divide is
11645         available, use it for negative constant as well.
11647 2004-09-12  Andrew Pinski  <apinski@apple.com>
11649         * darwin.h (ASM_OUTPUT_COMMON): Make sure we do not have a
11650         size of 0.
11652         * tree-chrec.c (initialize_scalar_evolutions_analyzer): Remove.
11654 2004-09-12  Richard Henderson  <rth@redhat.com>
11656         * config/i386/i386.c (ix86_split_ashldi): Special case op1 as one
11657         or minus one.
11658         (ix86_split_ashrdi, ix86_split_lshrdi): Clean up conditions for
11659         post-reload, and scratch NULL.
11660         * config/i386/i386.md (testqi_1): Use FLAGS_REG name.
11661         (x86_shift_adj_2): Use ix86_expand_clear.
11662         (ashldi3): Remove CMOVE expansion difference.
11663         (ashldi3_1): Remove.
11664         (*ashldi3_1): Rename from *ashldi3_2.  Use reg_or_pm1_operand and
11665         add constraints for immediates.  New peephole for split-with-temp.
11666         Run splitter after peep2 pass.
11667         (ashrdi3, ashrdi3_1, ashrdi3_2): Similarly.
11668         (lshrdi3, lshrdi3_1, lshrdi3_2): Similarly.
11669         (setcc_2): Rename with *.
11670         * config/i386/predicates.md (reg_or_pm1_operand): New.
11671         (ashldi_input_operand): New.
11673 2004-09-12  Richard Henderson  <rth@redhat.com
11675         * print-rtl.c (print_decl_name): New.
11676         (print_mem_expr): Use it.
11678 2004-09-12  Richard Henderson  <rth@redhat.com
11680         PR 17186, part deux
11681         * except.c (sjlj_emit_function_exit): Fix logic locating
11682         sjlj_exit_after in final block.
11684 2004-09-12  Toon Moene  <toon@moene.indiv.nluug.nl>
11686         * common.opt: Remove flags -fmove-all-movables and
11687         -freduce-all-givs.
11688         * loop-invariant.c (find_invariants_to_move):
11689         Remove all uses of flag_move_all_movables.
11690         * loop.c (move_movables): Remove all uses of
11691         flag_move_all_movables.
11692         (strength_reduce): Remove all uses of
11693         flag_reduce_all_givs.
11694         * doc/invoke.texi: Remove documentation of flags
11695         -fremove-all-movables and -freduce-all-givs.
11697 2004-09-11  Roger Sayle  <roger@eyesopen.com>
11699         PR middle-end/17411
11700         * tree-sra.c (generate_element_zero): Revert recent build_int_cst
11701         change. elt->type may be a floating point type, so use fold_convert.
11703 2004-09-11  Geoffrey Keating  <geoffk@apple.com>
11705         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Mark
11706         the thing referenced as used, not the stub itself.
11708 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
11710         * c-tree.h (enum c_storage_class): New.
11711         (struct c_declspecs): Add storage_class, inline_p and thread_p.
11712         * c-decl.c (shadow_tag_warned): Give errors for "inline" in empty
11713         declarations and "auto" or "register" in file scope empty
11714         declarations.  Give more specific warnings for other cases of
11715         storage class specifiers in empty declarations.
11716         (grokdeclarator): Update for new structures.  Don't check for
11717         multiple storage classes.  Diagnose file-scope "register" if
11718         pedantic.
11719         (build_null_declspecs): Update.
11720         (declspecs_add_scspec): Update.  Diagnose multiple storage class
11721         specifiers and invalid uses of "__thread".
11723 2004-09-11  Zack Weinberg  <zack@codesourcery.com>
11725         * tree.c (tree_code_size): New function, bulk of code from tree_size.
11726         (tree_size, make_node): Use it.
11727         * tree-ssa-pre.c (init_pre): Use it.
11728         * tree.h: Prototype it.
11730 2004-09-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11732         * tree-cfg.c (set_bb_for_stmt): Use PHI_BB.
11733         * tree-dfa.c (compute_immediate_uses, add_immediate_use,
11734         redirect_immediate_use): Use PHI_DF.
11735         * tree-flow-inline.h (stmt_ann): Abort on phi nodes.
11736         (bb_for_stmt): Use PHI_BB.
11737         (get_immediate_uses): Use PHI_DF.
11738         * tree-ssa-dse.c (max_stmt_uid): New variable.
11739         (get_stmt_uid): New function.
11740         (dse_optimize_stmt, dse_record_phis, tree_ssa_dse): Do not use phi
11741         node annotations.
11742         * tree-ssa-loop-im.c (LIM_DATA): Do not use phi statement annotations.
11743         (max_uid): Renamed to max_stmt_uid.
11744         (get_stmt_uid): New function.
11745         (maybe_queue_var, single_reachable_address, determine_lsm): Do not use
11746         phi node annotations.
11747         * tree-ssa.c (replace_immediate_uses): Do not use phi node annotations.
11748         * tree.h (PHI_BB, PHI_DF): New accessor functions.
11749         (struct tree_phi_node): Add bb and df fields.
11751 2004-09-11  Richard Henderson  <rth@redhat.com>
11753         PR middle-end/17416
11754         * cfgexpand.c (expand_used_vars_for_block): Fix off-by-one bug
11755         in conflict loop.
11757 2004-09-11  Jan Hubicka  <jh@suse.cz>
11759         * i386.h (MODE_NEEDED): Calls need UNINITIALIZED mode; add comment.
11760         (EMIT_MODE_SET): UNINITIALIZED mode needs no set.
11761         * i386.md (i387_cw): Add 'uninitialized' mode.
11763         * profile.c (BB_TO_GCOV_INDEX): move more to the front.
11764         (output_location): Break out from ....
11765         (branch_prob): ... here; handle gcov output on trees.
11766         * toplev.c (process_options): No longer be sorry about coverage for
11767         trees.
11769 2004-09-11  Steven Bosscher  <stevenb@suse.de>
11771         PR c++/17412
11772         * fold-const.c (fold): Do not try to fold the operand of a
11773         CLEANUP_POINT_EXPR if that operand does itself not have any
11774         operands.
11776         PR middle-end/17417
11777         * langhooks.c (lhd_decl_printable_name): Make sure that this
11778         function is called with is a decl node that has an identifier.
11779         * tree-pretty-print.c (dump_function_name): New function to
11780         wrap PRINT_FUNCTION_NAME and dump_decl_name.
11781         (print_call_name): Use it.
11783 2004-09-11  Mohan Embar  <gnustuff@thisiscool.com>
11785         * ggc-none.c: Include "bconfig.h" if -DGENERATOR_FILE,
11786         "config.h" if not.
11788 2004-09-11  Jakub Jelinek  <jakub@redhat.com>
11790         * tree-ssa-alias.c (collect_points_to_info_r): Handle
11791         pointing to PTR + OFFSET as PTR, not as pointing to PTR or pointing
11792         to OFFSET.
11794 2004-09-11  Richard Henderson  <rth@redhat.com>
11796         * expr.c (expand_expr_addr_expr_1) Rename from expand_expr_addr_expr.
11797         (expand_expr_addr_expr): New function.  Take ADDR_EXPR instead of the
11798         operand of the ADDR_EXPR.
11799         (expand_expr_real_1): Update to match.
11801 2004-09-11  David Edelsohn  <edelsohn@gnu.org>
11803         PR target/17277
11804         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
11805         choose 64-bit version.
11807 2004-09-11  Richard Henderson  <rth@redhat.com>
11809         PR c/17396
11810         * c-typeck.c (build_unary_op): Add legacy offsetof hack.
11812 2004-09-11  Kazu Hirata  <kazu@cs.umass.edu>
11814         * doc/cfg.texi, doc/hostconfig.texi, doc/install.texi,
11815         doc/invoke.texi, doc/md.texi, doc/tm.texi, doc/tree-ssa.texi:
11816         Insert @: after i.e. or e.g.
11818 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
11820         * tree-pretty-print.c (dump_decl_name): Print unnamed decls as
11821         D.xxx rather than <Dxxx>.
11823 2004-09-10  Adam Nemet  <anemet@lnxw.com>
11825         * configure.ac (AC_MSG_CHECKING(what linker to use)):
11826         in_tree_ld_is_elf should be true for LynxOS.
11827         * configure: Regenerate.
11829 2004-09-10  Adam Nemet  <anemet@lnxw.com>
11831         * Makefile.in (all.cross): Add srcextra.
11833 2004-09-10  Roger Sayle  <roger@eyesopen.com>
11835         PR middle-end/17024
11836         * fold-const.c (fold_cond_expr_with_comparison): Handle unordered
11837         floating point comparison operators.  Change aborts to gcc_asserts.
11839 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
11841         * final.c (output_asm_insn): Correct problem with -fverbose-asm.
11843 2004-09-10  James E Wilson  <wilson@specifixinc.com>
11845         * Makefile.in (LIBGCC_DEPS): Delete duplicate stmp-int-hdrs reference.
11846         (stmp-fixproto): Change stmp-int-headers to stmp-int-hdrs in comment.
11848         * convert.c (convert_to_vector): Replace recursive call with
11849         error_mark_node.
11851         * emit-rtl.c (gen_const_vector): Renamed from gen_const_vector_0.
11852         Add integer argument named constant.  Use const_tiny_rtx instead of
11853         CONST0_RTX.
11854         (gen_rtx_CONST_VECTOR): Rewrite to handle checks for both CONST0_RTX
11855         and CONST1_RTX.
11856         (init_emit_once): Fix users of gen_const_vector.  Set CONST1_RTX for
11857         vector types.
11858         * expr.c (const_vector_from_tree): Call gen_rtx_CONST_VECTOR instead
11859         of gen_rtx_raw_CONST_VECTOR.
11861 2004-09-10  Eric Christopher  <echristo@redhat.com>
11863         PR c/16046
11864         * c-parse.in (attribute): Add NULL_TREE for error case
11865         for error recovery.
11867 2004-09-10  Zack Weinberg  <zack@codesourcery.com>
11869         * c-common.h (struct c_fileinfo): Comment moved here from cp-tree.h.
11870         (extract_interface_info): Delete prototype.
11871         * c-decl.c (extract_interface_info): Delete stub.
11872         * c-lex.c (get_fileinfo): Initialize file_info_tree here, if
11873         it's not already been done ...
11874         (init_c_lex): ... not here.
11875         (fe_file_change): Don't call extract_interface_info.
11877 2004-09-11  Joseph S. Myers  <jsm@polyomino.org.uk>
11879         * c-tree.h (struct c_declspecs): Remove typedef_decl.  Add
11880         typedef_p and typedef_signed_p.
11881         * c-decl.c (shadow_tag_warned): Check typedef_p, not typedef_decl.
11882         (grokdeclarator): Don't use typedef_decl for warn_deprecated_use.
11883         Check typedef_p and typedef_signed_p, not typedef_decl.
11884         (grokfield): Check typedef_p, not typedef_decl.
11885         (build_null_declspecs): Initialize typedef_p and typedef_signed_p,
11886         not typedef_decl.
11887         (declspecs_add_type): Set typedef_p and typedef_signed_p, not
11888         typedef_decl.
11890 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
11892         * doc/tm.texi, doc/tree-ssa.texi: Fix typos.
11894 2004-09-10  Geoffrey Keating  <geoffk@apple.com>
11896         * gimplify.c (create_tmp_var_raw): Don't name otherwise-nameless
11897         temporary variables.
11899         * dbxout.c (dbxout_block): Update for
11900         current_function_func_begin_label a string.
11901         * dwarf2out.c (dwarf2out_begin_prologue): Likewise.
11902         * except.c (dw2_output_call_site_table): Likewise.
11903         * toplev.c (current_function_func_begin_label): Likewise.
11904         * tree.h (current_function_func_begin_label): Likewise.
11905         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Likewise.
11907         * final.c (output_asm_insn): Use strtoul instead of atoi, save a
11908         loop.
11910         * config/darwin.c: Include target.h.
11911         (struct machopic_indirection): Make ptr_name a string.
11912         (machopic_indirection_hash): Update for ptr_name a string.
11913         (machopic_indirection_eq): Likewise.
11914         (machopic_indirection_name): Likewise.
11915         (machopic_output_indirection): Likewise.
11916         (machopic_validate_stub_or_non_lazy_ptr): Update for ptr_name a
11917         string.  Don't expect stub names to be in the identifier hash table.
11918         Do call strip_name_encoding before looking up entry in ID hash table.
11919         * config/t-darwin (darwin.o): Add target.h to dependencies.
11921         * gcc/config/rs6000/rs6000.c (print_operand): Use fputs instead
11922         of fprintf for register names.
11924         * output.h (unlikely_section_label): Delete declaration.
11925         (unlikely_text_section_name): Likewise.
11926         * varasm.c (unlikely_section_label_printed): Make static.
11927         (unlikely_section_label): Likewise.
11928         (unlikely_text_section_name): Likewise.
11929         (assemble_start_function): Use reconcat.
11931         * rtl.def (REG): Add comment to describe third field.
11933 2004-09-10  Andrew Pinski  <apinski@apple.com>
11935         * config/darwin.c (machopic_mcount_stub_name): Call
11936         machopic_indirection_name instead of making the string
11937         ourselves.
11939 2004-09-10  Diego Novillo  <dnovillo@redhat.com>
11941         Revert
11943         2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
11945             * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
11946             memory tag is call clobbered, so are its aliases.
11947             (group_aliases): When two memory tags being grouped, if one is
11948             call clobbered, so are the other and its aliases.
11949             (add_may_alias): Remove call-clobbering stuff.
11950             (replace_may_alias): Likewise.
11951             (merge_pointed_to_info): Merge pt_global_mem
11953 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
11955         * bb-reorder.c, c-common.c, c-incpath.c, c-typeck.c,
11956         genrecog.c, lambda-code.c, mips-tdump.c, mips-tfile.c,
11957         passes.c, tree-data-ref.c, tree-data-ref.h, tree-mudflap.c,
11958         tree-scalar-evolution.c, tree-ssa-copyrename.c,
11959         tree-ssa-live.c, tree-ssa-live.h: Fix comment typos.
11961 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
11963         * config/frv/frv.md (UNSPEC_MASACCS, UNSPEC_MDASACCS): New constants.
11964         (maddaccs, msubaccs, *maddacc): Turn operand 0 into a single ACC/ACCG
11965         pair.  Remove match_dup from inputs.  Remove masaccs handling.
11966         (mdaddaccs, mdsubaccs, *mdaddacc): Likewise a dual ACC/ACCG pair.
11967         (masaccs, mdasaccs): Turn into define_insns.
11969 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
11971         * tree-tailcall.c (process_assignment): Only do accumulator transforms
11972         for floating-point types if flag_unsafe_math_optimizations.
11974 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
11976         * config/darwin.c, config/alpha/alpha.h, config/arm/arm.c,
11977         config/arm/arm.h, config/arm/arm.md, config/arm/bpabi.h,
11978         config/arm/predicates.md, config/frv/frv.c, config/frv/frv.md,
11979         config/h8300/h8300.md, config/i386/gmm_malloc.h,
11980         config/ia64/ia64.md, config/ip2k/libgcc.S,
11981         config/mips/mips-ps-3d.md, config/mips/mips.c,
11982         config/rs6000/rs6000.c, config/s390/s390.c,
11983         config/sh/symbian.c: Fix comment typos.
11985 2004-09-10  Andreas Krebbel  <krebbel1@de.ibm.com>
11987         * config/s390/s390.c (s390_emit_prologue): Added missing
11988         "{}" brackets.
11990 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
11992         * doc/extend.texi, doc/invoke.texi, doc/passes.texi: Fix
11993         typos.  Follow spelling conventions.
11995 2004-09-10  Joseph S. Myers  <jsm@polyomino.org.uk>
11997         * toplev.c (warn_deprecated_use): Correct logic for saying "type"
11998         in diagnostic.  Don't dereference NULL TYPE_NAME.
12000 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
12002         * c-common.c, c-pch.c, defaults.h, lambda-code.c, passes.c,
12003         tree-data-ref.c, tree-flow.h, tree-ssa-operands.c,
12004         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
12005         value-prof.c: Fix comment typos.  Follow spelling conventions.
12007 2004-09-10  Jan Hubicka  <jh@suse.cz>
12009         * tree-ssa-dce.c (remove_dead_stmt): Update profile.
12010         * tree-split_edge.c (tree_split_edge): Likewise.
12011         (thread_jumps): Likewise.
12013 2004-09-10  Kazu Hirata  <kazu@cs.umass.edu>
12015         * cgraphunit.c, predict.c, tree-ssa-loop-ivopts.c: Fix comment
12016         typos.
12018 2004-09-10  Paolo Bonzini  <bonzini@gnu.org>
12020         * cgraph.h (cgraph_dump_file): Do not declare.
12021         * cgraphunit.c (cgraph_dump_file): Declare as static.
12022         (init_cgraph): New.
12023         * toplev.c (cgraph_dump_file): Do not declare.
12024         (compile_file): Call init_cgraph.
12025         * tree-dump.c (dump_files): Add IPA dump file, remove
12026         XML dump of call graph.
12027         (get_dump_file_name): Support IPA dump file naming scheme.
12028         * tree.h (enum tree_dump_index): Add IPA dump file, remove
12029         XML dump of call graph.
12030         * doc/invoke.texi (Debugging Options): Document the new options.
12032 2004-09-10  Richard Sandiford  <rsandifo@redhat.com>
12034         * doc/extend.texi: Document the FR-V built-in functions.
12036 2004-09-09  James E Wilson  <wilson@specifixinc.com>
12038         * doc/sourcebuild.texi: Delete libbanshee reference.
12040 2004-09-10  Kelley Cook  <kcook@gcc.gnu.org>
12042         * Makefile.in (s-gtype): Add $(build_exeext) to gengtype command.
12044 2004-09-09  James E Wilson  <wilson@specifixinc.com>
12046         * c-typeck.c (convert_for_assignment): Check that rhs has VECTOR_TYPE
12047         before calling vector_types_convertible_p.
12048         (digest_init): Check that inside_init has VECTOR_TYPE before calling
12049         vector_types_convertible_p.  Don't give another error if
12050         convert_for_assignment returns error_mark_node.
12052 2004-09-09  Roger Sayle  <roger@eyesopen.com>
12054         PR middle-end/17055
12055         * fold-const.c (build_zero_vector): New function to construct a
12056         vector (either floating point or integer) of zeros.
12057         (fold_convert): Internally, enable conversions of integer zero
12058         to arbitrary vector types, using the new build_zero_vector.
12060 2004-09-09  Roger Sayle  <roger@eyesopen.com>
12062         * config/i386/i386.c (ix86_expand_ashlsi3_const): New function to
12063         expand a left shift by an immediate constant as either an ashl or
12064         a sequence of additions.
12065         (ix86_split_ashldi): Use new ix86_expand_ashlsi3_const function
12066         instead of calling gen_ashlsi3 with a constant directly.
12068 2004-09-09  Roger Sayle  <roger@eyesopen.com>
12070         * config/i386/i386.c (ix86_split_long_move): When optimizing for
12071         size, and the low and high parts of a DImode constant are equal,
12072         copy one register to another instead of loading the same immediate
12073         value twice.
12075 2004-09-09  Richard Henderson  <rth@redhat.com>
12077         PR middle-end/17367
12078         * function.c (assign_parm_setup_block): Only put PARALLELs into
12079         a register if use_register_for_decl.
12081 2004-09-09  Eric Christopher  <echristo@redhat.com>
12083         * ra-colorize.c (reset_lists): Move variable declaration inside
12084         ENABLE_CHECKING to avoid unused variable warnings when
12085         not --enable-checking.
12086         (check_colors): Ditto.
12088 2004-09-09  Mike Stump  <mrs@apple.com>
12090         * version.c (version_string): Bump to 4.0.0.
12091         * doc/include/gcc-common.texi (version-GCC): Likewise.
12093 2004-09-10  Jakub Jelinek  <jakub@redhat.com>
12095         * doc/extend.texi (nothrow attribute): The attribute is not
12096         implemented in 3.2 and earlier.
12098 2004-09-09  Steve Ellcey  <sje@cup.hp.com>
12100         * genrecog.c (compute_predicate_codes): Use op0_codes
12101         instead of codes.
12103 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
12105         * ra-colorize.c (hardregset_to_string): Adapt to HARD_REG_SET
12106         implementation changes.
12108 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
12110         * combine.c (try_combine): When swapping i2 and i3, newi2pat may be
12111         a PARALLEL instead of a SET due to added clobbers.
12113 2004-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
12115         * reload.c (find_reloads_address): Pass correct operand to
12116         maybe_memory_address_p.
12118 2004-09-09  Daniel Berlin  <dberlin@dberlin.org>
12120         * Makefile.in: Remove libbanshee, tree-alias-*.
12121         Remove tree-alias-common.h dependencies.
12122         * common.opt: Remove -ftree-points-to.
12123         * configure.ac: Remove libbanshee.
12124         * flags.h: Remove pta_type, flag_tree_points_to.
12125         * gengtype.c (open_base_files): Remove tree-alias-type.h.
12126         * opts.c (OPT_ftree_points_to): Remove.
12127         * toplev.c: Remove tree-alias-common.h, flag_tree_points_to.
12128         * tree-dfa.c: Remove tree-alias-common.h
12129         * tree-into-ssa.c: Ditto.
12130         * tree-outof-ssa.c: Ditto.
12131         * tree-ssa-copyrename.c: Ditto.
12132         * tree-ssa-live.c: Ditto.
12133         * tree-optimize.c: Ditto.
12134         * tree-ssa.c: Ditto.
12135         Remove pass_build_pta, pass_del_pta.
12136         * tree-pass.h: Ditto.
12137         * tree-ssa-alias.c: Remove tree-alias-common.h.
12138         (struct alias_stats_d): Remove pta_queries, pta_resolved.
12139         (pass_may_alias): Remove PROP_pta requirement.
12140         (may_alias_p): Remove pta_queries, pta_resolved, use of andersens.
12141         (get_tmt_for): Ditto.
12142         (dump_alias_stats): Ditto.
12143         * doc/passes.texi: Remove blurb about points-to analysis.
12144         * fortran/Make-lang.in: Remove tree-alias-*.o.
12146 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
12148         * genattrtab.c (write_insn_cases): New function, split out from
12149         write_attr_case.  Correctly handle define_peepholes when printing
12150         the instruction name.
12151         (write_attr_case, write_const_num_delay_slots): Use write_insn_cases.
12153 2004-09-09  Hans-Peter Nilsson  <hp@axis.com>
12155         PR target/17377
12156         * config/cris/cris-protos.h (cris_return_address_on_stack): Declare.
12157         * config/cris/cris.c (cris_return_address_on_stack): New function.
12158         * config/cris/cris.md ("return"): For location of return address,
12159         also check cris_return_address_on_stack.
12161 2004-09-09  Diego Novillo  <dnovillo@redhat.com>
12163         * tree-outof-ssa.c (coalesce_abnormal_edges): Fix typo in
12164         calling phi_ssa_name_p.
12166 2004-09-09  Richard Henderson  <rth@redhat.com>
12168         PR c/17322
12169         * c-typeck.c (valid_compound_expr_initializer): Use only
12170         initializer_constant_valid_p, and not TREE_CONSTANT.
12171         (digest_init): Likewise.
12172         (output_init_element): Likewise.
12174 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
12176         * ra-build.c (copy_insn_p, remember_move, defuse_overlap_p_1,
12177         live_out_1, prune_hardregs_for_mode, init_one_web_common,
12178         reinit_one_web, add_subweb, add_subweb_2, init_web_parts,
12179         record_conflict, compare_and_free_webs, init_webs_defs_uses,
12180         parts_to_webs_1, parts_to_webs, reset_conflicts,
12181         check_conflict_numbers, remember_web_was_spilled, handle_asm_insn,
12182         ra_build_free): Use gcc_assert and gcc_unreachable instead of abort.
12183         * ra-colorize.c (push_list, put_web, reset_lists, put_web_at_end,
12184         put_move, remove_move, combine, select_spill, colorize_one_web,
12185         try_recolor_web, insert_coalesced_conflicts, check_colors,
12186         break_precolored_alias, restore_conflicts_from_coalesce,
12187         sort_and_combine_web_pairs, check_uncoalesced_moves): Likewise.
12188         * ra-rewrite.c (spill_coalescing, slots_overlap_p, emit_loads,
12189         reloads_to_loads, rewrite_program2, emit_colors): Likewise.
12190         * ra.c (first_hard_reg, create_insn_info, find_subweb, init_ra,
12191         check_df): Likewise.
12192         * real.c (do_add, do_multiply, do_divide, do_compare, do_fix_trunc,
12193         real_arithmetic, real_compare, real_exponent, real_ldexp,
12194         real_identical, real_to_integer, real_to_integer2, real_to_decimal,
12195         real_to_hexadecimal, real_from_integer, ten_to_ptwo, ten_to_mptwo,
12196         real_digit, real_nan, real_maxval, round_for_format, real_convert,
12197         real_to_target, real_from_target, real_hash, encode_ieee_single,
12198         encode_ieee_double, encode_ieee_extended, encode_ieee_quad,
12199         encode_vax_f, encode_vax_d, encode_vax_g, encode_i370_single,
12200         encode_i370_double, encode_c4x_single, encode_c4x_extended): Likewise.
12201         * recog.c (validate_change, validate_replace_rtx_1, asm_operand_ok,
12202         extract_insn, peep2_next_insn, peep2_reg_dead_p,
12203         peep2_find_free_register, peephole2_optimize, store_data_bypass_p,
12204         if_test_bypass_p): Likewise.
12205         * reg-stack.c (record_label_references, get_asm_operand_n_inputs,
12206         stack_result, remove_regno_note, get_hard_regnum, emit_pop_insn,
12207         emit_swap_insn, swap_to_top, move_for_stack_reg,
12208         subst_stack_regs_pat, subst_asm_stack_regs, change_stack,
12209         compensate_edge, convert_regs_1): Likewise.
12210         * regclass.c (init_reg_sets, init_reg_sets_1,
12211         memory_move_secondary_cost): Likewise.
12212         * regrename.c (note_sets, clear_dead_regs, scan_rtx_reg, scan_rtx):
12213         Likewise.
12214         * reload.c (push_secondary_reload, find_valid_class, push_reload,
12215         operands_match_p, decompose, immune_p, find_reloads,
12216         find_reloads_toplev, find_reloads_address_1, subst_reloads,
12217         copy_replacements, refers_to_regno_for_reload_p,
12218         reg_overlap_mentioned_for_reload_p): Likewise.
12219         * reload1.c (compute_use_by_pseudos, replace_pseudos_in, reload,
12220         count_pseudo, find_reg, eliminate_regs, eliminate_regs_in_insn,
12221         verify_initial_elim_offsets, finish_spills, clear_reload_reg_in_use,
12222         reload_reg_free_p, reload_reg_reaches_end_p, reloads_conflict,
12223         choose_reload_regs, merge_assigned_reloads, emit_input_reload_insns,
12224         do_output_reload, fixup_abnormal_edges): Likewise.
12225         * reorg.c (stop_search_p, emit_delay_sequence, get_jump_flags,
12226         fill_slots_from_thread, relax_delay_slots): Likewise.
12227         * resource.c (mark_referenced_resources, mark_set_resources):
12228         Likewise.
12229         * rtl.c (copy_rtx, rtx_equal_p): Likewise.
12230         * rtlanal.c (insn_dependent_p, reg_overlap_mentioned_p,
12231         dead_or_set_p, find_reg_fusage, remove_note, replace_rtx,
12232         subreg_lsb_1, subreg_regno_offset, subreg_offset_representable_p,
12233         find_first_parameter_load, can_hoist_insn_p, hoist_update_store,
12234         hoist_insn_after, hoist_insn_to_edge, nonzero_bits1): Likewise.
12235         * rtlhooks.c (gen_lowpart_general): Likewise.
12236         * sbitmap.c (sbitmap_difference): Likewise.
12237         * sched-deps.c (add_dependence, sched_analyze_1, sched_analyze_2,
12238         sched_analyze, add_forward_dependence): Likewise.
12239         * sched-ebb.c (fix_basic_block_boundaries, schedule_ebb): Likewise.
12240         * sched-rgn.c (debug_regions, compute_trg_info, schedule_region,
12241         schedule_insns): Likewise.
12242         * sched-vis.c (print_pattern): Likewise.
12243         * sdbout.c (sdbout_symbol, sdbout_toplevel_data): Likewise.
12244         * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
12245         simplify_const_relational_operation, simplify_ternary_operation,
12246         simplify_immed_subreg, simplify_subreg, simplify_gen_subreg):
12247         Likewise.
12248         * sreal.c (copy, sreal_sub, sreal_div): Likewise.
12249         * stmt.c (force_label_rtx, expand_goto, expand_asm_operands,
12250         resolve_operand_name_1, expand_return, expand_decl,
12251         expand_anon_union_decl, emit_case_bit_tests, expand_case): Likewise.
12252         * stor-layout.c (put_pending_size, smallest_mode_for_size,
12253         int_mode_for_mode, layout_decl, finish_builtin_struct, layout_type,
12254         set_sizetype, get_mode_bounds): Likewise.
12256 2004-09-09  Zack Weinberg  <zack@codesourcery.com>
12258         * defaults.h (MULTIPLE_SYMBOL_SPACES): Provide default.
12259         * config/arm/pecoff.h, config/i386/beos-elf.h
12260         * config/i386/cygming.h, config/i386/i386-interix.h:
12261         Define MULTIPLE_SYMBOL_SPACES to 1, not nothing.  Remove
12262         comment cloned from manual.
12263         * doc/tm.texi: Update description of MULTIPLE_SYMBOL_SPACES.
12265 2004-09-09  Frank Ch. Eigler  <fche@redhat.com>
12267         * builtins.c (build_va_arg_indirect_ref): New function.
12268         (std_gimplify_va_arg_expr): Call it instead of mudflap check and
12269         build_fold_indirect_ref.
12270         * config/i386/i386.c (ix86_gimplify_va_arg): Ditto.
12271         * config/ia64/ia64.c (ia64_gimplify_va_arg): Ditto.
12272         * tree.h: Declare new function.
12274 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12276         * cgraphunit.c (cgraph_mark_functions_to_output): Renable node
12277         dumping for development builds.
12278         * emit-rtl.c (verify_rtx_sharing): Give verbose failure for
12279         development builds only.
12280         * genattrtab.c (write_eligible_delay): Fix typo in previous
12281         commit.
12282         * tree.c (iterative_hash_expr): Replace gcc_unreachable with
12283         gcc_assert.
12285 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12287         * gcse.c (INSN_CUID, insert_set_in_table, find_avail_set,
12288         cprop_insn, do_local_cprop, local_cprop_pass, find_bypass_set,
12289         process_insert_insn, insert_insn_end_bb, pre_insert_copy_insn,
12290         hoist_code, extract_mentioned_regs_helper, compute_store_table,
12291         insert_store): Use gcc_assert and gcc_unreachable.
12292         * ggc-common.c (ggc_splay_alloc, ggc_splay_dont_free,
12293         gt_pch_note_object, gt_pch_note_reorder, relocate_ptrs,
12294         ggc_record_overhead): Likewise.
12295         * ggc-page.c (alloc_page, free_page, ggc_set_mark, ggc_marked_p,
12296         init_ggc, ggc_push_context, ggc_recalculate_in_use_p,
12297         ggc_pop_context, clear_marks, validate_free_objects,
12298         ggc_pch_read): Likewise.
12299         * ggc-zone.c (ggc_allocated_p, free_chunk, ggc_set_mark,
12300         ggc_marked_p, ggc_get_size, init_ggc, destroy_ggc_zone,
12301         ggc_push_context, check_cookies, ggc_collect,
12302         ggc_print_statistics): Likewise.
12303         * gimple-low.c (lower_function_body, lower_stmt,
12304         lower_bind_expr): Likewise.
12305         * gimplify.c (gimple_tree_eq, push_gimplify_context,
12306         pop_gimplify_context, gimple_pop_condition, create_tmp_var,
12307         declare_tmp_vars, gimple_add_tmp_var, annotate_all_with_locus,
12308         mostly_copy_tree_r, gimplify_return_expr, gimplify_switch_expr,
12309         gimplify_case_label_expr, gimplify_exit_block_expr,
12310         canonicalize_component_ref, gimplify_compound_lval,
12311         gimplify_self_mod_expr, gimplify_call_expr,
12312         gimplify_init_ctor_eval, gimplify_init_constructor,
12313         gimplify_modify_expr, gimplify_save_expr, gimplify_target_expr,
12314         gimplify_expr, check_pointer_types_r,
12315         force_gimple_operand): Likewise.
12316         * global.c (global_alloc, build_insn_chain): Likewise.
12317         * graph.c (clean_graph_dump_file,
12318         finish_graph_dump_file): Likewise.
12319         gcov-io.c (gcov_open): Use GCOV_CHECK.
12321 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
12323         * config/frv/frv.c (acc_operand, accg_operand): Use REGNO.
12325 2004-09-09  Jan Hubicka  <jh@suse.cz>
12327         middle-end/17128
12328         * tree-inline.c (expand_call_inline): Make overactive sanity check
12329         happy.
12331 2004-09-09  Jan Hubicka  <jh@suse.cz>
12333         * tree-ssa-loop-ivopts.c (peel_address): Fix abort on
12334         VIEW_CONVERT_EXPR.
12336 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12338         * Makefile.in (gengtype): Use $(BUILD_ERRORS).
12339         (gengtype.o): Depend on errors.h.
12340         * genattrtab.c (strcmp_check): Use gcc_assert and gcc_unreachable.
12341         (attr_rtx_1, attr_printf, attr_copy_rtx, evaluate_eq_attr,
12342         attr_alt_subset_p, attr_alt_subset_of_compl_p,
12343         attr_alt_intersection, attr_alt_union, optimize_attrs, gen_insn,
12344         write_test_expr, write_attr_value, write_eligible_delay,
12345         make_internal_attr, make_numeric_value): Likewise.
12346         * genautomata.c (regexp_name, get_str_vect,
12347         gen_presence_absence_set, automaton_decl_hash,
12348         automaton_decl_eq_p, insn_decl_hash, insn_decl_eq_p, decl_hash,
12349         decl_eq_p, process_regexp, loop_in_regexp, check_loops_in_regexps,
12350         process_regexp_cycles, reserv_sets_cmp, set_unit_reserv,
12351         test_unit_reserv, it_is_empty_reserv_sets,
12352         reserv_sets_are_intersected, reserv_sets_shift, reserv_sets_or,
12353         reserv_sets_and, output_cycle_reservs, get_free_state,
12354         intersected_state_reservs_p, states_union, remove_arc,
12355         copy_insn_regexp, transform_1, transform_2, transform_3,
12356         regexp_transform_func, store_alt_unit_usage,
12357         check_regexp_units_distribution, process_seq_for_forming_states,
12358         process_alts_for_forming_states, make_automaton,
12359         form_arcs_marked_by_insn, create_composed_state,
12360         set_out_arc_insns_equiv_num, partition_equiv_class,
12361         process_insn_equiv_class, set_insn_equiv_classes,
12362         units_to_automata_heuristic_distr, form_regexp,
12363         longest_path_length, output_dfa_max_issue_rate, add_vect,
12364         out_state_arcs_num, add_vect_el, output_trans_table,
12365         output_state_alts_table, output_dead_lock_vect,
12366         output_max_insn_queue_index_def,
12367         output_min_insn_conflict_delay_func,
12368         output_internal_insn_latency_func, output_print_reservation_func,
12369         output_cpu_unit_reservation_p, output_state_arcs,
12370         make_insn_alts_attr, make_internal_dfa_insn_code_attr,
12371         make_default_insn_latency_attr,
12372         form_important_insn_automata_lists): Likewise.
12373         * genemit.c (gen_exp, output_add_clobbers,
12374         output_added_clobbers_hard_reg_p): Likewise.
12375         * genextract.c (print_path, main): Likewise.
12376         * genflags.c (gen_macro): Likewise.
12377         * gengenrtl.c: Include errors.h
12378         (type_from_format, accessor_from_format): Likewise.
12379         * gengtype.c (get_file_basename, output_mangled_typename,
12380         walk_type, write_types_process_field,
12381         write_types_local_process_field): Likewise.
12382         * genmodes.c (complete_mode): Likewise.
12383         * genopinit.c (gen_insn): Likewise.
12384         * genoutput.c (output_insn_data, check_constraint_len,
12385         constraint_len): Likewise.
12386         * genpreds.c (add_mode_tests):Likewise.
12387         * gen-protos.c (add_hash): Likewise.
12388         * genrecog.c (find_operand, find_matching_operand,
12389         validate_pattern, add_to_sequence, maybe_both_true,
12390         nodes_identical_1, merge_trees, write_switch, write_cond,
12391         write_action, is_unconditional, make_insn_sequence,
12392         debug_decision_2): Likewise.
12393         * gensupport.c (is_predicable, collect_insn_data,
12394         alter_predicate_for_insn, maybe_eval_c_test): Likewise.
12396 2004-09-09  Jan Hubicka  <jh@suse.cz>
12398         * basic-block.h (guess_outgoing_edge_probabilities): Declare.
12399         * cfgbuild.c (compute_outgoing_frequencies): When probability is
12400         missing, guess it.
12401         (find_many_sub_basic_blocks): Do update profile only when it is
12402         present.
12403         * predict.c (set_even_probabilities): Break out from ...
12404         (combine_predictions_for_insn): ... here; deal with
12405         !can_predict_insn_p insns.
12406         (combine_predictions_for_bb): Use set_even_probabilities.
12407         (bb_estimate_probability_locally): Break out from ....
12408         (estimate_probability): ... here.
12409         (guess_outgoing_edge_probabilities): New entry point.
12411 2004-09-09  Nathan Sidwell  <nathan@codesourcery.com>
12413         * gcc.c (add_sysrooted_prefix, execute, do_self_spec, do_spec_1,
12414         handle_braces, process_brace_body, main, used_arg,
12415         set_multilib_dir, print_multilib_info): Use fatal, not abort.
12417         * tree-nested.c (create_tmp_var_for): Correct missinverted assert.
12419         * tree-outof-ssa.c (free_temp_expr_table): Add missed assert.
12420         * tree-ssa-ccp.c (set_lattice_value): Correct missapplied de
12421         Morgan's theorem in last checkin.
12423 2004-09-09  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
12424             Nathan Sidwell  <nathan@codesourcery.com>
12426         * targhooks.c (default_unwind_emit, default_scalar_mode_supported_p):
12427         Use gcc_assert, gcc_unreachable & internal_error instead of abort.
12428         * timevar.c (timevar_push, timevar_pop, timevar_start,
12429         timevar_stop): Likewise.
12430         * toplev.c (default_pch_valid_p): Likewise.
12431         * tracer.c (tail_duplicate): Likewise.
12432         * tree-alias-common.c (get_alias_var_decl,
12433         get_values_from_constructor, create_alias_var, delete_alias_vars,
12434         empty_points_to_set, same_points_to_set, ptr_may_alias_var):
12435         Likewise.
12436         * tree.c (tree_size, make_node_stat, copy_node_stat,
12437         build_int_cst_wide, integer_all_onesp, list_length, chainon,
12438         tree_node_structure, type_contains_placeholder_p, substitute_in_expr,
12439         substitute_placeholder_in_expr, tabilize_reference_1, build0_stat,
12440         build1_stat, build2_stat, build3_stat, build4_stat, is_attribute_p,
12441         lookup_attribute, type_hash_canon, host_integerp, iterative_hash_expr,
12442         build_method_type_directly, decl_type_context, get_callee_fndecl,
12443         get_set_constructor_bits, build_vector_type_for_mode, int_cst_value,
12444         tree_fold_gcd): Likewise.
12445         * tree-cfg.c (create_bb, make_ctrl_stmt_edges, make_exit_edges,
12446         make_cond_expr_edges, group_case_labels, tree_merge_blocks,
12447         cleanup_control_expr_graph, find_taken_edge,
12448         find_taken_edge_switch_expr, phi_alternatives_equal,
12449         is_ctrl_altering_stmt, disband_implicit_edges, set_bb_for_stmt,
12450         stmt_for_bsi, tree_find_edge_insert_loc, bsi_insert_on_edge_immediate,
12451         tree_split_edge, tree_verify_flow_info, thread_jumps,
12452         tree_redirect_edge_and_branch, tree_flow_call_edges_add): Likewise.
12453         * tree-chrec.c (chrec_fold_poly_cst, chrec_fold_plus_poly_poly,
12454         chrec_fold_multiply_poly_poly): Likewise.
12455         * tree-complex.c (extract_component, expand_complex_division,
12456         expand_complex_comparison, expand_complex_operations_1,
12457         build_replicated_const, expand_vector_operations_1): Likewise.
12458         * tree-data-ref.c (tree_fold_bezout, build_classic_dist_vector,
12459         build_classic_dir_vector): Likewise.
12460         * tree-dfa.c (compute_immediate_uses_for_phi,
12461         compute_immediate_uses_for_stmt, create_var_ann, create_stmt_ann,
12462         create_tree_ann, collect_dfa_stats, get_virtual_var): Likewise.
12463         * tree-dump.c (dequeue_and_dump): Likewise.
12464         * tree-eh.c (record_stmt_eh_region, add_stmt_to_eh_region,
12465         record_in_finally_tree, replace_goto_queue_1,
12466         maybe_record_in_goto_queue, verify_norecord_switch_expr,
12467         do_return_redirection): Likewise.
12468         * tree-if-conv.c (tree_if_convert_stmt, tree_if_convert_cond_expr,
12469         add_to_dst_predicate_list, find_phi_replacement_condition,
12470         replace_phi_with_cond_modify_expr, get_loop_body_in_if_conv_order):
12471         Likewise.
12472         * tree-inline.c (remap_decl, remap_type, remap_decls, copy_body_r,
12473         initialize_inlined_parameters, declare_return_variable,
12474         estimate_num_insns_1, expand_call_inline, expand_calls_inline,
12475         optimize_inline_calls, copy_tree_r): Likewise.
12476         * tree-into-ssa.c (rewrite_initialize_block_local_data, rewrite_stmt,
12477         ssa_rewrite_stmt, rewrite_into_ssa): Likewise.
12478         * tree-iterator.c (alloc_stmt_list, tsi_link_before, tsi_link_after,
12479         tsi_split_statement_list_after, tsi_split_statement_list_before):
12480         Likewise.
12481         * tree-mudflap.c (mf_varname_tree): Likewise.
12482         * tree-nested.c (create_tmp_var_for, lookup_field_for_decl,
12483         lookup_tramp_for_decl, convert_all_function_calls): Likewise.
12484         * tree-optimize.c (tree_rest_of_compilation): Likewise.
12485         * tree-outof-ssa.c (create_temp, eliminate_build, eliminate_phi,
12486         coalesce_abnormal_edges, coalesce_ssa_name, eliminate_virtual_phis,
12487         free_temp_expr_table, add_dependance, finish_expr, rewrite_trees):
12488         Likewise.
12489         * tree-phinodes.c (resize_phi_node, add_phi_arg,
12490         remove_all_phi_nodes_for): Likewise.
12491         * tree-pretty-print.c (op_prio, print_call_name): Likewise.
12492         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
12493         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Likewise.
12494         * tree-sra.c (type_can_instantiate_all_elements, sra_hash_tree,
12495         sra_elt_eq, sra_walk_expr, instantiate_missing_elements,
12496         generate_one_element_ref, generate_element_copy,
12497         generate_element_zero, scalarize_copy, scalarize_init,
12498         scalarize_ldst): Likewise.
12499         * tree-ssa-alias.c (delete_alias_info, group_aliases, may_alias_p,
12500         add_may_alias, add_pointed_to_expr, add_pointed_to_var,
12501         collect_points_to_info_r, get_tmt_for, get_ptr_info): Likewise.
12502         * tree-ssa.c (walk_use_def_chains, check_phi_redundancy): Likewise.
12503         * tree-ssa-ccp.c (dump_lattice_value, get_default_value, get_value,
12504         set_lattice_value, likely_value, ccp_visit_phi_node, visit_assignment,
12505         widen_bitfield, ccp_fold_builtin): Likewise.
12506         * tree-ssa-copy.c (may_propagate_copy, merge_alias_info,
12507         replace_exp_1, propagate_tree_value): Likewise.
12508         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
12509         * tree-ssa-dce.c (set_control_dependence_map_bit,
12510         find_control_dependence, find_pdom, mark_operand_necessary,
12511         mark_stmt_if_obviously_necessary,
12512         mark_control_dependent_edges_necessary, remove_dead_stmt): Likewise.
12513         * tree-ssa-dom.c (dom_opt_initialize_block_local_data,
12514         simplify_switch_and_lookup_avail_expr, cprop_into_successor_phis,
12515         eliminate_redundant_computations, avail_expr_eq): Likewise.
12516         * tree-ssa-dse.c (fix_stmt_v_may_defs): Likewise.
12517         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
12518         duplicate_blocks): Likewise.
12519         * tree-ssa-loop-im.c (for_each_index, set_level,
12520         is_call_clobbered_ref): Likewise.
12521         * tree-ssa-loop-ivopts.c (dump_use, divide, stmt_after_ip_normal_pos,
12522         stmt_after_increment, set_iv, contains_abnormal_ssa_name_p,
12523         find_interesting_uses_outer_or_nonlin, add_derived_ivs_candidates,
12524         peel_address, ptr_difference_cost, may_replace_final_value,
12525         determine_use_iv_cost, rewrite_use_nonlinear_expr, rewrite_use_outer,
12526         rewrite_use, rewrite_uses): Likewise.
12527         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa,
12528         check_loop_closed_ssa_use): Likewise.
12529         * tree-ssanames.c (make_ssa_name): Likewise.
12530         * tree-ssa-operands.c (finalize_ssa_defs, finalize_ssa_uses,
12531         finalize_ssa_v_must_defs, finalize_ssa_stmt_operands,
12532         get_stmt_operands, get_expr_operands, get_asm_expr_operands,
12533         get_indirect_ref_operands, add_stmt_operand): Likewise.
12534         * tree-ssa-pre.c (value_exists_in_set_bitmap,
12535         value_remove_from_set_bitmap, bitmap_insert_into_set, insert_into_set,
12536         phi_translate, valid_in_set, compute_antic,
12537         find_or_generate_expression, create_expression_by_pieces, insert_aux,
12538         create_value_expr_from, eliminate): Likewise.
12539         * tree-ssa-propagate.c (cfg_blocks_get): Likewise.
12540         * tree-ssa-threadupdate.c (remove_last_stmt_and_useless_edges):
12541         Likewise.
12542         * tree-tailcall.c (independent_of_stmt_p, adjust_return_value,
12543         eliminate_tail_call): Likewise.
12544         * tree-vectorizer.c (vect_create_index_for_array_ref,
12545         vect_align_data_ref, vect_create_data_ref,
12546         vect_create_destination_var, vect_get_vec_def_for_operand,
12547         vect_finish_stmt_generation, vect_transform_stmt,
12548         vect_transform_loop_bound, vect_transform_loop,
12549         vect_analyze_operations): Likewise.
12550         * tree-vn.c (vn_compute, set_value_handle, get_value_handle):
12551         Likewise.
12552         * tree-flow-inline.h (var_ann, get_var_ann, get_def_from_ptr,
12553         get_use_op_ptr, immediate_use, phi_ssa_name_p, bsi_start,
12554         bsi_after_labels, bsi_last): Likewise.
12555         * tree-ssa-live.c (var_union, change_partition_var,
12556         create_ssa_var_map, calculate_live_on_entry, root_var_init,
12557         type_var_init, add_coalesce, sort_coalesce_list, pop_best_coalesce):
12558         Likewise.
12559         * tree-ssa-live.h (partition_is_global, live_entry_blocks,
12560         tpa_find_tree): Likewise.
12561         (register_ssa_partition_check): Declare.
12562         (register_ssa_partition): use it.
12563         * tree-ssa-live.c: Include errors.h.
12564         (register_ssa_partition_check): New.
12565         * tree-ssa-operands.c: Include errors.h.
12566         * Makefile.in (tree-ssa-operands.o): Depend on errors.h.
12568 2004-09-09  Richard Sandiford  <rsandifo@redhat.com>
12569             Catherine Moore  <clm@redhat.com>
12571         * config/frv/frv-protos.h (FRV_CPU_FR550, FRV_CPU_FR450)
12572         (FRV_CPU_FR405): New processor enums.
12573         (frv_issue_rate, frv_acc_group): Declare.
12574         * config/frv/frv.h (CPP_SPEC, CPP_FRV_SPEC, CPP_FR500_SPEC): Delete.
12575         (CPP_FR400_SPEC, CPP_SIMPLE_SPEC): Delete.
12576         (MASK_DEFAULT_FR550, MASK_DEFAULT_FR450): New macros.
12577         (SUBTARGET_EXTRA_SPECS, EXTRA_SPECS, CPP_CPU_DEFAULT_SPEC): Delete.
12578         (TARGET_CPU_CPP_BUILTINS): Define the macros that were previously
12579         handled by CPP_SPEC.
12580         (MASK_LONG_CALLS, TARGET_LONG_CALLS): New macros.
12581         (MASK_ALIGN_LABELS, TARGET_ALIGN_LABELS): New macros.
12582         (ACC_MASK): New macro.
12583         (TARGET_MEDIA_REV2): Include FRV_CPU_{FR405,FR450,FR550}.
12584         (TARGET_MEDIA_FR450): New macro.
12585         (TARGET_FR500_FR550_BUILTINS, TARGET_FR405_BUILTINS): New macros.
12586         (TARGET_SWITCHES): Add -m{no-,}align-labels and -m{no-,}long-calls.
12587         (LABEL_ALIGN_AFTER_BARRIER): Define.
12588         (ACC_LAST, ACCG_LAST): Add four new accumulator registers.
12589         (IACC_FIRST, IACC_LAST): New pair of SPRs.
12590         (ACCG_FIRST, AP_FIRST, SPR_FIRST, SPR_LAST): Adjust accordingly.
12591         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
12592         (REGISTER_NAMES): Add entries for new registers.
12593         (REG_CLASS_CONTENTS): Update for new register ranges.
12594         (EXTRA_CONSTRAINT_FOR_S): Redefine in terms of call_operand.
12595         (ISSUE_RATE, CLEAR_VLIW_START, SET_VLIW_START): Delete.
12596         (PACKING_FLAG_USED_P): Delete.
12597         (FRV_BUILTIN_MQLCLRHS, FRV_BUILTIN_MQLMTHS, FRV_BUILTIN_MQSLLHI)
12598         (FRV_BUILTIN_MQSRAHI, FRV_BUILTIN_SMUL, FRV_BUILTIN_UMUL)
12599         (FRV_BUILTIN_PREFETCH0, FRV_BUILTIN_PREFETCH, FRV_BUILTIN_SMASS)
12600         (FRV_BUILTIN_SMSSS, FRV_BUILTIN_SMU, FRV_BUILTIN_SCUTSS)
12601         (FRV_BUILTIN_ADDSS, FRV_BUILTIN_SUBSS, FRV_BUILTIN_SLASS)
12602         (FRV_BUILTIN_IACCread{l,ll}, FRV_BUILTIN_IACCset{ll,l})
12603         (FRV_BUILTIN_SCAN): New members of frv_builtin_enum.
12604         (FRV_BUILTIN_FIRST_NONMEDIA): New macro.
12605         (CPU_UNITS_QUERY): Define to 1.
12606         * config/frv/frv.c: Include gt-frv.h
12607         (NUM_NOP_PATTERNS, NTH_UNIT, UNIT_NUMBER, PACKING_FLAG_P): New macros.
12608         (SET_PACKING_FLAG, CLEAR_PACKING_FLAG, FOR_EACH_REGNO): New macros.
12609         (frv_insn_group): New enumeration.
12610         (frv_unit_names, frv_unit_groups, frv_unit_codes): New variables.
12611         (frv_type_to_unit, frv_nops, frv_num_nops): New variables.
12612         (REGSTATE_DEAD, REGSTATE_LIVE, REGSTATE_UNUSED, REGSTATE_MASK)
12613         (REGSTATE_CONDJUMP): Delete.  Shuffle other numbers to cover the
12614         gap left by REGSTATE_LIVE.
12615         (regstate_t): New typedef.
12616         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12617         (frv_default_flags_for_cpu): Handle FRV_CPU_{FR550,FR450,FR405}.
12618         (frv_override_options): Check for -mcpu={fr550,fr450,fr405}.
12619         Initialize frv_unit_codes[] and frv_type_to_unit[].
12620         (frv_conditional_register_usage): Remove redundant fixing of
12621         accumulator registers.
12622         (frv_insn_packing_flag): Update specification.
12623         (frv_function_prologue): Don't set frv_insn_packing_flag here.
12624         Zero out frv_nops[].
12625         (frv_expand_epilogue): Remove comments about the no-longer-present
12626         SIBCALL_P argument.
12627         (frv_asm_output_mi_thunk): Check frv_issue_rate() rather than
12628         PACKING_FLAG_USED_P() when deciding whether to pack instructions.
12629         (frv_asm_output_opcode, frv_final_prescan_insn): Simplify in light
12630         of the new meaning of frv_insn_packing_flag.  Emit an mnop.p if
12631         packing is disabled and if INSN can only issue to M1.
12632         (call_operand): Check TARGET_LONG_CALLS.
12633         (acc_operand, even_acc_operand, quad_acc_operand)
12634         (accg_operand): Simplify.  Don't accept pseudo registers.
12635         (output_move_single): Handle SPR<-zero moves.
12636         (frv_issue_rate): Make non-static.  Handle FRV_CPU_{FR550,FR450,FR405}.
12637         (frv_registers_update, frv_registers_used_p): Delete.
12638         (frv_registers_set_p): Delete.
12639         (frv_acc_group_1, frv_acc_group, frv_insn_unit): New functions.
12640         (frv_issues_to_branch_unit_p): New function.
12641         (frv_packet): New structure.
12642         (frv_cond_flags, frv_regstate_conflict_p): New functions.
12643         (frv_registers_conflict_p_1, frv_registers_conflict_p): New functions.
12644         (frv_registers_update_1, frv_registers_update): New functions.
12645         (frv_start_packet, frv_start_packet_block, frv_finish_packet)
12646         (frv_pack_insn_p, frv_add_insn_to_packet, frv_insert_nop_in_packet)
12647         (frv_for_each_packet, frv_sort_insn_group_1, frv_compare_insns)
12648         (frv_sort_insn_group, frv_reorder_packet): New functions.
12649         (frv_pack_insns): Use frv_reorder_packet.
12650         (frv_packet_address): New variable.
12651         (frv_fill_unused_units, frv_align_label, frv_reorg_packet)
12652         (frv_register_nop, frv_reorg): New functions.
12653         (bdesc_1arg): Add __SCUTSS.
12654         (bdesc_2arg): Add __MQLCLRHS, __MQLMTHS, __SMUL, __UMUL, __ADDSS,
12655         __SUBSS, __SLASS and __SCAN.
12656         (bdesc_2argimm): Add __MQSLLHI and __MQSRAHI.
12657         (bdesc_int_void2arg, bdesc_prefetches): New arrays.
12658         (frv_init_builtins): Register the above builtins.
12659         (frv_int_to_acc): Use ACC_MASK to check for valid accumulator
12660         registers.  Turn the referenced accumulators into global registers.
12661         (frv_read_iacc_argument): New function.
12662         (frv_expand_int_void2arg, frv_expand_prefetches): New functions.
12663         (frv_split_iacc_move): New function.
12664         (frv_expand_builtin): Handle the new builtins.
12665         * config/frv/frv.md: Replace old schedulers with new order-independent
12666         ones.  Add schedulers for the FR405, FR450 and FR550.  Describe new
12667         packing algorithm.
12668         (cpu): Add fr550, fr450 and fr405.
12669         (type): Add macc, scan, cut, fnop, fscmp, fdcmp, mnop, mqlimh and
12670         mqshift.  Replace fmas with fsmadd and fmad with fdmadd.  Delete m7.
12671         (*muladd[sd]f4, *mulsub[sd]f4): Fix types.
12672         (*cmp[sd]f_cc_fp): Use new f[sd]cmp types.
12673         (fnop, mnop): New patterns.
12674         (UNSPEC_MQLCLRHS, UNSPEC_MQLMTHS, UNSPEC_MQSLLHI, UNSPEC_MQSRAHI):
12675         New constants.
12676         (mexpdhw, *cond_exec_mexpdhw): Fix destination operands.
12677         (mclracca8): Use ACC_MASK to determine the upper set of accumulator
12678         registers.
12679         (mqlclrhs, mqlmths, mqsllhi, mqsrahi): New patterns.
12680         (UNSPEC_SMUL, UNSPEC_UMUL, UNSPEC_SMU, UNSPEC_ADDSS, UNSPEC_SUBSS)
12681         (UNSPEC_SLASS, UNSPEC_SCAN, UNSPEC_INTSS, UNSPEC_SCUTSS)
12682         (UNSPEC_PREFETCH0, UNSPEC_PREFETCH, UNSPEC_IACCreadll)
12683         (UNSPEC_IACCreadl, UNSPEC_IACCsetll, UNSPEC_IACCsetl, UNSPEC_SMASS)
12684         (UNSPEC_SMSSS, UNSPEC_IMUL, IACC0_REG): New constants.
12685         (smul, umul, smass, smsss, smu, addss, subss, slass, scan, scutss)
12686         (frv_prefetch0, frv_prefetch): New patterns.
12687         * config/frv/t-frv (MULTILIB_OPTIONS): Remove -mcpu=frv and
12688         -mcpu=simple.  Add -mcpu=fr550.
12689         (MULTILIB_DIRNAMES): Update accordingly.
12690         (MULTILIB_MATCHES): Use the fr400 multilibs for -mcpu=fr405 and
12691         -mcpu=fr450.
12692         * doc/invoke.texi: Document the new -mcpu={fr550,fr450,fr405},
12693         -mlong-calls and -malign-labels options for FR-V.
12695 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
12697         PR c/8420
12698         * c-tree.h (struct c_declspecs): New.
12699         (struct c_declarator, struct c_type_name, struct c_parm): Update
12700         element types.
12701         (build_array_declarator, grokfield, shadow_tag, shadow_tag_warned,
12702         start_function, start_decl, build_c_parm,
12703         make_pointer_declarator): Update prototypes.
12704         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
12705         declspecs_add_scspec, declspecs_add_attrs): New.
12706         (split_specs_attrs): Remove.
12707         * c-parse.in (%union): Add dsptype.
12708         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
12709         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
12710         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
12711         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
12712         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
12713         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
12714         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
12715         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
12716         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
12717         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
12718         maybe_type_quals_attrs): Change to dsptype.
12719         (struct c_declspec_stack): New.
12720         (current_declspecs, declspec_stack): Change type.
12721         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): Update to new
12722         structures.
12723         (extdefs): Likewise.
12724         (setspecs): Likewise.
12725         (fndef): Use current_declspecs for empty declspecs list.
12726         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
12727         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
12728         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
12729         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
12730         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
12731         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
12732         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
12733         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea): Update to new
12734         structures and helper functions.  Update comments.
12735         (typespec_nonattr): Correct comment.
12736         (maybe_type_quals_attrs, typename): Update to new structures.
12737         * c-decl.c (grokdeclarator, build_array_declarator, grokfield,
12738         shadow_tag, shadow_tag_warned, start_function, start_decl,
12739         build_c_parm, make_pointer_declarator,
12740         set_array_declarator_inner, groktypename): Update to new
12741         structures.
12742         (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
12743         declspecs_add_scspec, declspecs_add_attrs): New.
12744         (split_specs_attrs): Remove.
12745         (shadow_tag_warned): Make warning for useless type names a
12746         pedwarn.  Give hard error for long, short, signed, unsigned or
12747         _Complex used with struct, union or enum in empty declaration.
12748         Make found_tag a bool.
12749         (grokdeclarator): Remove checks now done at parse time.
12751 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
12753         * c-tree.h (enum c_declarator_kind, struct c_arg_info, struct
12754         c_declarator, struct c_type_name, struct c_parm): New.
12755         (build_array_declarator, set_array_declarator_inner,
12756         get_parm_info, grokfield, groktypename, grokparm, push_parm_decl,
12757         start_function, start_decl, build_c_parm, build_attrs_declarator,
12758         build_function_declarator, make_pointer_declarator, c_cast_expr,
12759         store_parm_decls_newstyle, c_expr_sizeof_type): Update prototypes.
12760         (build_id_declarator): New.
12761         * c-typeck.c (c_cast_expr, c_expr_sizeof_type): Update to new
12762         structures.
12763         * c-decl.c (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES,
12764         ARG_INFO_OTHERS): Remove.
12765         (build_id_declarator): New.
12766         (build_array_declarator, set_array_declarator_inner, groktypename,
12767         start_decl, grokparm, push_parm_decl, grokparms, get_parm_info,
12768         grokfield, start_function, store_parm_decls_newstyle,
12769         store_parm_decls_oldstyle, store_parm_decls,
12770         build_c_parm, build_attrs_declarator, build_function_declarator,
12771         make_pointer_declarator, grokdeclarator): Update to new
12772         structures.
12773         * c-parse.in (%union): Add arginfotype, dtrtype, typenametype and
12774         parmtype.
12775         (declarator, notype_declarator, after_type_declarator,
12776         parm_declarator, parm_declarator_starttypename,
12777         parm_declarator_nostarttypename, array_declarator, typename,
12778         absdcl, absdcl1, absdcl1_ea, absdcl1_noea, direct_absdcl1,
12779         absdcl_maybe_attribute, parm, firstparm, parms, parmlist,
12780         parmlist_1, parmlist_2, parmlist_or_identifiers,
12781         parmlist_or_identifiers_1): Use these types.
12782         (primary, after_type_declarator, parm_declarator_starttypename,
12783         notype_declarator, component_decl, component_declarator,
12784         component_notype_declarator, typename, absdcl,
12785         absdcl_maybe_attribute, absdcl1_ea, direct_absdcl1, parmlist_1,
12786         parmlist_2, parmlist_or_identifiers_1): Update to new structures.
12788 2004-09-09  Joseph S. Myers  <jsm@polyomino.org.uk>
12790         * c-tree.h (C_DECL_USED, parser_obstack, in_alignof, in_sizeof,
12791         in_typeof, record_maybe_used_decl, pop_maybe_used,
12792         c_expr_sizeof_expr, c_expr_sizeof_type): New.
12793         * c-decl.c (parser_obstack): New.
12794         (c_init_decl_processing): Initialize parser_obstack.
12795         (c_write_global_declarations_1): Check for used but undefined
12796         static functions.
12797         * c-parse.in (%union): Add otype.
12798         (save_obstack_position): New.
12799         (extdefs): Use it.
12800         (unary_expr): Update in_sizeof and in_alignof.  Use
12801         c_expr_sizeof_expr and c_expr_sizeof_type.
12802         (sizeof): Update in_sizeof.
12803         (alignof): Update in_alignof.
12804         (typeof): Update in_typeof.
12805         (typespec_nonreserved_nonattr): Call pop_maybe_used.
12806         * c-typeck.c (in_alignof, in_sizeof, in_typeof, struct
12807         maybe_used_decl, maybe_used_decls, record_maybe_used_decl,
12808         pop_maybe_used, c_expr_sizeof_expr, c_expr_sizeof_type): New.
12809         (build_external_ref): Set C_DECL_USED or call
12810         record_maybe_used_decl if appropriate.
12811         * toplev.c (check_global_declarations): Check TREE_NO_WARNING.
12813 2004-09-08  Eric Christopher  <echristo@redhat.com>
12815         * builtins.c: Fix prototype for fold_builtin_atan.
12817 2004-09-08  Eric Christopher  <echristo@redhat.com>
12819         * builtins.c (fold_builtin_strlen, fold_builtin_sqrt, fold_builtin_cbrt,
12820         fold_builtin_pow, fold_builtin_sin, fold_builtin_cos, fold_builtin_tan,
12821         fold_builtin_atan): New functions. Migrate function bodies...
12822         (fold_builtin_1): ... from here.
12824 2004-09-09  Alan Modra  <amodra@bigpond.net.au>
12826         * config/rs6000/rs6000.c (rs6000_stack_info): Correct alignment of
12827         save_size.
12829 2004-09-08  David Edelsohn  <edelsohn@gnu.org>
12831         * config/rs6000/power4.md (power4-lmul): du4 feeds iu1.
12832         * config/rs6000/power5.md (power5-lmul): Same.
12834 2004-09-08  Richard Henderson  <rth@redhat.com>
12836         PR rtl-opt/17186
12837         * function.c (expand_function_end): Have fall-off-the-end
12838         return path jump around return register setup.
12840 2004-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
12842         * config/sparc/sparc.c (sparc_indent_opcode): New variable.
12843         (output_return): Do not test for the presence of the 'unimp' insn.
12844         Use 'current_function_uses_only_leaf_regs' and 'final_sequence'
12845         as predicates instead of custom ones.  Return raw strings when
12846         possible.
12847         (output_sibcall): Likewise.  Concatenate strings.
12848         (output_ubranch): Remove kludge for TurboSPARC.
12849         (output_cbranch): Remove 'noop' parameter.  Do not output 'nop'.
12850         (output_v9branch): Likewise.
12851         (print_operand): Use 'final_sequence' instead of 'dbr_sequence_length'.
12852         <#>: Set sparc_indent_opcode if the delay slot is filled.
12853         <(>: Likewise.
12854         <)>: New operand to emit the displacement from the saved PC on return.
12855         <@>: Remove.
12856         * config/sparc/sparc.h (sparc_indent_opcode): Declare it.
12857         (ASM_OUTPUT_OPCODE): New macro.
12858         (PRINT_OPERAND_PUNCT_VALID_P): Remove '^' and add ')'.
12859         * config/sparc/sparc.md (normal_branch, inverted_branch,
12860         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
12861         inverted_fpe_branch): Adjust call to output_cbranch.
12862         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust
12863         call to output_v9branch.
12864         * config/sparc/sparc-protos.h (output_cbranch): Adjust.
12865         (output_v9branch): Likewise.
12867 2004-09-08  Devang Patel  <dpatel@apple.com>
12869         * config/darwin.h  (TARGET_OPTION_TRANSLATE_TABLE): Add -segaddr,
12870         -segs_read_only_addr and -segs_read_write_addr.
12871         (WORD_SWITCH_TAKES_ARG): Same.
12872         (LINK_SPEC): Same.
12873         * doc/invoke.texi: Document -segaddr, -segs_read_only_addr and
12874         -segs_read_write_addr.
12876 2004-09-08  Richard Henderson  <rth@redhat.com>
12878         * function.c (reference_callee_copied): New.
12879         (assign_parm_setup_reg): Use it.
12880         * calls.c (initialize_argument_information): Likewise.
12881         (emit_library_call_value_1): Likewise.
12882         * function.h (reference_callee_copied): Declare.
12884         * target.h (struct gcc_target): Add callee_copies.
12885         * target-def.h (TARGET_CALLEE_COPIES): New.
12886         (TARGET_PASS_BY_REFERENCE): Update default.
12887         * expr.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12888         * targhooks.c (hook_callee_copies_named): New.
12889         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Rename from
12890         hook_pass_by_reference_false.
12891         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): New.
12892         * targhooks.h: Update decls.
12893         * config/arc/arc.c (TARGET_CALLEE_COPIES): New.
12894         * config/arc/arc.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12895         * config/frv/frv-protos.h (frv_function_arg_callee_copies): Remove.
12896         * config/frv/frv.c (frv_function_arg_callee_copies): Remove.
12897         * config/frv/frv.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12898         * config/iq2000/iq2000.c (TARGET_CALLEE_COPIES): New.
12899         * config/iq2000/iq2000.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12900         * config/m68hc11/m68hc11.c (TARGET_CALLEE_COPIES): New.
12901         * config/m68hc11/m68hc11.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12902         * config/mips/mips.c (TARGET_CALLEE_COPIES): New.
12903         (mips_callee_copies): New.
12904         * config/mips/mips.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12905         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): New.
12906         * config/mmix/mmix.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12907         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): New.
12908         * config/mn10300/mn10300.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12909         * config/pa/pa.c (TARGET_CALLEE_COPIES): New.
12910         * config/pa/pa.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12911         * config/sh/sh.c (sh_callee_copies): New.
12912         (TARGET_CALLEE_COPIES): New.
12913         * config/sh/sh.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12914         * config/v850/v850.c (TARGET_CALLEE_COPIES): New.
12915         * config/v850/v850.h (FUNCTION_ARG_CALLEE_COPIES): Remove.
12916         * doc/tm.texi (TARGET_CALLEE_COPIES): Replace documentation
12917         for FUNCTION_ARG_CALLEE_COPIES.
12918         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Update.
12920 2004-09-08  Devang Patel  <dpatel@apple.com>
12922         * tree-if-conv.c (find_phi_replacement_condition): Return true
12923         edge block.
12924         (replace_phi_with_cond_modify_expr): Select conditional expr args
12925         based on true edge basic block.
12927 2004-09-08  Jan Hubicka  <jh@suse.cz>
12929         * tree-ssa-operands.c (add_stmt_operand): Use V_MUST_DEF even for
12930         variables being alias set.
12932 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
12934         * final.c (shorten_branches, final, get_insn_template,
12935         output_alternate_entry_point, final_scan_insn, alter_subreg,
12936         alter_cond, output_operand, asm_fprintf, final_forward_branch_p,
12937         leaf_renumber_regs_insn): Use gcc_assert and gcc_unreachable.
12938         * fix-header.c (lookup_std_proto): Likewise.
12939         * flow.c (first_insn_after_basic_block_note, verify_wide_reg,
12940         verify_local_live_at_start, update_life_info, mark_reg,
12941         calculate_global_regs_live, allocate_reg_life_data,
12942         init_propagate_block_info, mark_set_regs, flush_reg_cond_reg_1,
12943         ior_reg_cond, not_reg_cond, and_reg_cond, elim_reg_cond,
12944         attempt_auto_inc, mark_used_reg, mark_used_regs): Likewise.
12945         * fold-const.c (force_fit_type, div_and_round_double,
12946         may_negate_without_overflow_p, int_const_binop, const_binop,
12947         size_binop, size_diffop, fold_convert_const, fold_convert,
12948         invert_tree_comparison, swap_tree_comparison,
12949         comparison_to_compcode, compcode_to_comparison, invert_truthvalue,
12950         range_binop, make_range, fold_cond_expr_with_comparison,
12951         fold_div_compare, fold, fold_checksum_tree, fold_negate_const,
12952         fold_abs_const, fold_not_const, fold_relational_const, round_up,
12953         round_down): Likewise.
12954         * function.c (find_function_data, assign_stack_temp_for_type,
12955         instantiate_virtual_regs_lossage, aggregate_value_p,
12956         assign_parm_find_entry_rtl, assign_parm_setup_block,
12957         expand_function_start, expand_function_end, keep_stack_depressed,
12958         handle_epilogue_set, thread_prologue_and_epilogue_insns): Likewise.
12960 2004-09-08  Daniel Berlin  <dberlin@dberlin.org>
12962         * Makefile.in (tree-loop-linear.o): Added.
12963         (OBJS-common): Add tree-loop-linear.o
12964         * common.opt: New flag, ftree-loop-linear.
12965         * timevar.def: New timevar, TV_TREE_LOOP_LINEAR.
12966         * tree-flow.h: Add prototype for linear_transform_loops.
12967         * tree-optimize.c: Add linear transform after vectorization.
12968         * tree-pass.h: Add struct pass_linear_transform.
12969         * tree-ssa-loop.c: Add pass_linear_transform.
12970         * tree-loop-linear.c: New file.
12971         * lambda-code.c: gcc_assertify.
12972         (gcc_loop_to_lambda_loop): Handle all exit tests.
12973         Handle case where we have (invariant >= induction var).
12974         (find_induction_var_from_exit_cond): Ditto.
12976 2004-09-08  Jie Zhang  <zhangjie@magima.com.cn>
12978         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): If type
12979         memory tag is call clobbered, so are its aliases.
12980         (group_aliases): When two memory tags being grouped, if one is
12981         call clobbered, so are the other and its aliases.
12982         (add_may_alias): Remove call-clobbering stuff.
12983         (replace_may_alias): Likewise.
12984         (merge_pointed_to_info): Merge pt_global_mem
12986 2004-09-08  Jan Hubicka  <jh@suse.cz>
12988         * cgraph.c (cgraph_remove_node): Free DECL_INITIAL field of node.
12989         * cgraphunit.c (verify_cgraph): Don't verify on syntax errors.
12990         (cgraph_expand_function): Remove stale cgraph edges of currently
12991         compiled function; fix non-unit-at-a-time code copying function
12992         node for later reuse.
12994 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
12996         * vec.c (vec_p_reserve, vec_o_reserve): Rename to ...
12997         (vec_gc_p_reserve, vec_gc_o_reserve): ... here. Clone to
12998         (vec_heap_p_reserve, vec_heap_o_reserve): ... here, adjust.
12999         (vec_gc_free, vec_heap_free): New.
13000         * vec.h (DEF_VEC_GC_P, DEF_VEC_MALLOC_P): New.
13001         (DEF_VEC_P): Add allocator argument. Adjust.
13002         (DEF_VEC_GC_O, DEF_VEC_MALLOC_O): New.
13003         (DEF_VEC_O): Add allocator argument. Adjust.
13004         (VEC(free)): New.
13006         * tree.h (tree): Define a GC'd vector.
13007         * lamba-code.c (lambda_loop): Likewise.
13008         * value-prof.h (histogram_value): Likewise.
13010 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
13012         * emit-rtl.c (immed_double_const): Use gcc_assert and gcc_unreachable.
13013         (gen_rtx_SUBREG, gen_reg_rtx, mark_user_reg, subreg_hard_regno,
13014         gen_lowpart_common, gen_highpart, gen_highpart_mode,
13015         subreg_highpart_offset, operand_subword, operand_subword_force,
13016         mem_expr_equal_p, set_mem_attributes_minus_bitpos,
13017         set_mem_alias_set, change_address_1, verify_rtx_sharing,
13018         copy_most_rtx, set_first_insn, set_last_insn, prev_cc0_setter,
13019         try_split, add_insn_after, add_insn_before, remove_insn,
13020         remove_unnecessary_notes, emit_insn_before, emit_jump_insn_before,
13021         emit_call_insn_before, emit_insn_after, emit_jump_insn_after,
13022         emit_call_insn_after, emit_insn, emit_jump_insn, emit_call_insn,
13023         set_unique_reg_note, emit, push_to_full_sequence, copy_insn_1,
13024         gen_const_vector_0, emit_copy_of_insn_after): Likewise.
13025         * et-forest.c (set_prev, set_next, et_check_occ_sanity,
13026         record_path_before_1, check_path_after_1, check_path_after): Likewise.
13027         * except.c (gen_eh_region, resolve_one_fixup_region,
13028         remove_unreachable_regions, convert_from_eh_region_ranges_1,
13029         add_ehl_entry, duplicate_eh_region_1, build_post_landing_pads,
13030         connect_post_landing_pads, sjlj_emit_function_exit,
13031         remove_exception_handler_label, remove_eh_handler,
13032         reachable_next_level, collect_one_action_chain,
13033         output_function_exception_table): Likewise.
13034         * explow.c (trunc_int_for_mode, copy_to_mode_reg,
13035         optimize_save_area_alloca, allocate_dynamic_stack_space,
13036         probe_stack_range, hard_function_value): Likewise.
13037         * expmed.c (mode_for_extraction, store_bit_field,
13038         store_fixed_bit_field, extract_bit_field, expand_shift,
13039         expand_mult_const, expand_mult, choose_multiplier,
13040         expand_mult_highpart, expand_divmod, emit_store_flag,
13041         do_cmp_and_jump): Likewise.
13042         * expr.c (convert_move, convert_modes, move_by_pieces,
13043         move_by_pieces_ninsns, move_by_pieces_1, emit_block_move,
13044         move_block_from_reg, gen_group_rtx, emit_group_load,
13045         emit_group_move, emit_group_store, use_reg, use_regs,
13046         can_store_by_pieces, store_by_pieces, store_by_pieces_1,
13047         emit_move_insn, emit_move_insn_1, emit_push_insn,
13048         expand_assignment, store_expr, count_type_elements,
13049         store_constructor, store_field, safe_from_p, expand_var,
13050         expand_expr_addr_expr, expand_expr_real_1, do_store_flag): Likewise.
13052 2004-09-08  Nathan Sidwell  <nathan@codesourcery.com>
13054         * dbxout.c (dbxout_type, dbxout_type_name, dbxout_symbol): Use
13055         gcc_assert and gcc_unreachable.
13056         * ddg.c (create_ddg_dependence, add_deps_for_def,
13057         add_deps_for_use, create_ddg, add_edge_to_ddg): Likewise.
13058         * df.c (df_ref_unlink, df_ref_record, df_uses_record,
13059         df_reg_def_chain_create, df_reg_use_chain_create, df_analyze,
13060         df_insn_delete, df_refs_reg_replace, df_ref_reg_replace,
13061         df_insns_modify, df_pattern_emit_before, df_bb_reg_live_start_p,
13062         df_bb_reg_live_end_p, df_bb_regs_lives_compare,
13063         df_bb_single_def_use_insn_find, dataflow_set_a_op_b,
13064         dataflow_set_copy, hybrid_search, diagnostic.c,
13065         diagnostic_build_prefix, diagnostic_count_diagnostic): Likewise.
13066         * dojump.c (do_jump): Likewise.
13067         * dominance.c (calc_dfs_tree_nonrec, calc_dfs_tree,
13068         compute_dom_fast_query, calculate_dominance_info,
13069         free_dominance_info, get_immediate_dominator,
13070         set_immediate_dominator, get_dominated_by,
13071         redirect_immediate_dominators, nearest_common_dominator,
13072         dominated_by_p, verify_dominators, recount_dominator,
13073         iterate_fix_dominators, add_to_dominance_info,
13074         delete_from_dominance_info): Likewise.
13075         * dwarf2asm.c (size_of_encoded_value, eh_data_format_name,
13076         dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
13077         dw2_force_const_mem, dw2_asm_output_encoded_addr_rtx): Likewise.
13078         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes, reg_save,
13079         initial_return_save, stack_adjust_offset, dwarf2out_stack_adjust,
13080         flush_queued_reg_saves, dwarf2out_frame_debug_expr,
13081         dwarf2out_frame_debug, dw_cfi_oprnd1_desc, output_cfi,
13082         output_call_frame_info, output_loc_operands, build_cfa_loc,
13083         decl_ultimate_origin, AT_flag, AT_int, AT_unsigned, AT_string,
13084         AT_string_form, add_AT_specification, AT_ref, set_AT_ref_external,
13085         AT_loc, AT_loc_list, AT_addr, AT_lbl, add_child_die,
13086         splice_child_die, attr_checksum, same_dw_val_p,
13087         break_out_includes, build_abbrev_table, size_of_die, mark_dies,
13088         unmark_dies, value_format, output_loc_list, output_die,
13089         output_pubnames, output_aranges, base_type_die, is_base_type,
13090         modified_type_die, dbx_reg_number, multiple_reg_loc_descriptor,
13091         mem_loc_descriptor, loc_descriptor, loc_descriptor_from_tree_1,
13092         field_byte_offset, add_data_member_location_attribute,
13093         add_const_value_attribute, rtl_for_decl_location,
13094         add_location_or_const_value_attribute, add_byte_size_attribute,
13095         add_bit_offset_attribute, add_bit_size_attribute,
13096         add_abstract_origin_attribute, pop_decl_scope, scope_die_for,
13097         decl_start_label, gen_formal_parameter_die,
13098         gen_type_die_for_member, gen_subprogram_die, gen_label_die,
13099         gen_typedef_die, gen_type_die, gen_tagged_type_instantiation_die,
13100         force_decl_die, force_type_die, gen_decl_die,
13101         dwarf2out_imported_module_or_decl, prune_unused_types_prune,
13102         dwarf2out_finish): Likewise.
13104 2004-09-08  Andreas Tobler  <toa@pop.agri.ch>
13106         * Makefile.in (builtins.o): Depend on tree-mudflap.h.
13107         * builtins.c: Include tree-mudflap.h.
13109 2004-09-08  Uros Bizjak  <uros@kss-loka.si>
13111         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
13112         force operand 0.0 into register in XFmode. Also do not force
13113         operand 0.0 into register if !TARGET_CMOVE.
13114         * config/i386/i386.md (*cmpfp_0): Delete. Remove comment.
13115         (*cmpfp_0_sf, cmpfp_0_df, cmpfp_0_xf): New patterns to
13116         implement ftst x87 instruction.
13117         (*fp_jcc_7): New insn pattern. Change corresponding split
13118         pattern to handle "general_operand" instead of
13119         "nonimmediate_operand".
13121 2004-09-08  Ben Elliston  <bje@au.ibm.com>
13123         * doc/rtl.texi (Insns): Document NOTE_INSN_FUNCTION_BEG.
13125 2004-09-07  Frank Ch. Eigler  <fche@redhat.com>
13127         * builtins.c (std_gimplify_va_arg_expr): Mark INDIRECT_REF nodes
13128         generated from standard va_arg expansion.
13129         * tree-mudflap.c (mx_xform_derefs_1): Omit instrumentation from
13130         marked nodes.
13131         (mf_varname_tree, mf_file_function_line_tree): Add some support
13132         for column numbers if compiled with USE_MAPPED_LOCATION.
13134 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
13136         * c-decl.c (groktypename_in_parm_context): Remove function.
13137         * c-tree.h (groktypename_in_parm_context): Remove prototype.
13139 2004-09-07  Ziemowit Laski  <zlaski@apple.com>
13141         * Makefile.in (c-parse.o): Depend on $(C_COMMON_H).
13142         * c-parse.in: Include c-common.h instead of objc-act.h.
13143         (ivar_decl_list, ivar_decls, ivar_decl, ivars, ivar_declarator,
13144         myparms, myparm): Remove %type declarations.
13145         (methodtype, optparms, OBJC_TYPE_QUAL, objc_quals, objc_qual,
13146         objc_typename, objc_try_catch_stmt, optellipsis): Add %type
13147         declarations.
13148         (objc_inherit_code, objc_public_flag): Remove.
13149         (typespec_nonreserved_nonattr): Call
13150         objc_get_protocol_qualified_type() instead of get_static_reference()
13151         and get_protocol_reference().
13152         (stmt_nocomp): Call grokparm() on @catch parameter.
13153         (objcdef): Move semantic action to objc_finish_implementation().
13154         (classdef): Move semantic action to objc_start_class_interface(),
13155         objc_continue_interface(), objc_finish_interface(),
13156         objc_start_class_implementation(), objc_continue_implementation(),
13157         objc_start_category_interface() and
13158         objc_start_category_implementation().
13159         (protocoldef): Move semantic actions to objc_start_protocol() and
13160         objc_finish_interface().
13161         (ivar_decl_list): Remove nonterminal.
13162         (visibility_spec): Move semantic actions to objc_set_visibility().
13163         (ivar_decls): Remove assignment to $$.
13164         (ivar_decl): Rephrase in terms of component_decl; call
13165         objc_add_instance_variable().
13166         (ivars, ivar_declarator): Remove nonterminals.
13167         (opt_semi): New nonterminal.
13168         (methodtype): Remove semantic actions.
13169         (methoddef): Move semantic actions to objc_set_method_type(),
13170         objc_start_method_definition() and objc_finish_method_definition().
13171         (methodproto): Move semantic actions to objc_set_method_type() and
13172         objc_add_method_declaration().
13173         (methoddecl): Use objc_typename instead of typename; move semantic
13174         actions to objc_build_method_signature().
13175         (optarglist, myxdecls, mydecl, myparms, myparm): Remove nonterminals.
13176         (optparmlist): Express in terms of optparms and optellipsis.
13177         (optparms, optellipsis, objc_qual, objc_quals, objc_typename): New
13178         nonterminals.
13179         (keyworddecl): Use objc_typename instead of typename.
13180         (rid_to_yy): Mark RID_IN, RID_OUT, RID_INOUT, RID_BYCOPY, RID_BYREF
13181         and RID_ONEWAY as returning OBJC_TYPE_QUAL to yyparse().
13183 2004-09-08  Alan Modra  <amodra@bigpond.net.au>
13185         * doc/tm.texi (MD_UNWIND_SUPPORT): Document.
13186         (MD_FALLBACK_FRAME_STATE_FOR): Update.
13187         * unwind-dw2.c (MD_UNWIND_SUPPORT): #include if defined.
13188         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
13189         (MD_FROB_UPDATE_CONTEXT): Remove default.
13190         (uw_update_context_1): Instead #ifdef invocation.
13191         * config/ia64/unwind-ia64.c (MD_UNWIND_SUPPORT): #include if defined.
13192         (uw_frame_state_for): Adjust MD_FALLBACK_FRAME_STATE_FOR invocation.
13193         * config/alpha/gnu.h (MD_FALLBACK_FRAME_STATE_FOR): Don't undef.
13194         (MD_UNWIND_SUPPORT): Undefine this instead.
13195         * config/i386/gnu.h: Likewise.
13196         * config/alpha/linux-unwind.h: New file, macro converted to
13197         function, extracted from..
13198         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): ..this.
13199         (MD_UNWIND_SUPPORT): Define.
13200         * config/alpha/vms-unwind.h, config/alpha/vms.h: Likewise.
13201         * config/i386/linux-unwind.h, config/i386/linux.h,
13202         config/i386/linux64.h: Likewise.
13203         * config/ia64/linux-unwind.h, config/ia64/linux.h: Likewise.
13204         MD_HANDLE_UNWABI too.
13205         * config/mips/linux-unwind.h, config/mips/linux.h: Likewise.
13206         * config/pa/linux-unwind.h, config/pa/pa32-linux.h: Likewise.
13207         * config/rs6000/darwin-unwind.h, config/rs6000/darwin.h: Likewise.
13208         * config/s390/linux-unwind.h, config/s390/linux.h: Likewise.
13209         * config/sparc/linux-unwind.h, config/sparc/linux.h,
13210         config/sparc/linux64.h: Likewise.
13211         * config/sh/linux-unwind.h, config/sh/linux.h: Likewise, but merge
13212         SH_FALLBACK_FRAME_FLOAT_STATE into sh_fallback_frame_state.
13213         * config/rs6000/linux-unwind.h, config/rs6000/linux.h,
13214         config/rs6000/linux64.h: Likewise.  Split out get_sigcontext
13215         function.  Use ARG_POINTER_REGNUM for 32-bit temp reg too.
13217 2004-09-07  Jan Hubicka  <jh@suse.cz>
13219         * cse.c (fold_rtx):  Avoid building of
13220         (CONST (MINUS (CONST_INT) (SYMBOL_REF)))
13222         * tree-ssa-pre.c (grand_bitmap_obstack): New.
13223         (value_insert_into_set_bitmap, bitmap_set_new): Use the obstack.
13224         (init_pre): Initialize obstack.
13225         (fini_pre): Free obstack.
13227 2004-09-07  David Daney  <ddaney@avtrex.com>
13229         * config.gcc: Added support for --with-divide=[breaks|traps] for
13230         mips targets.
13231         * config/mips/mips.h (MASK_DIVIDE_BREAKS): New target_flags bit.
13232         (TARGET_DIVIDE_TRAPS): New macro.
13233         (TARGET_SWITCHES): Added -mdivide-traps and -mdivide-breaks.
13234         (OPTION_DEFAULT_SPECS): Added --with-divide= support.
13235         * config/mips/mips.c (mips_idiv_insns): Generate proper count on
13236         GENERATE_DIVIDE_TRAPS.
13237         (mips_output_division): Emit conditional trap if
13238         GENERATE_DIVIDE_TRAPS is set.
13239         * doc/install.texi: Document --with-divide.
13240         * doc/invoke.texi: Document -mdivide-traps and -mdivide-breaks.
13242 2004-09-07  Caroline Tice  <ctice@apple.com>
13244         * cfgrtl.c (rtl_verify_flow_info_1):  Add new edge flag,
13245         EDGE_CROSSING, to flags test case.
13247 2004-09-07  Jan Hubicka  <jh@suse.cz>
13249         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Deal with '<'
13250         class too.
13252 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
13254         * cfganal.c (flow_depth_first_order_compute, dfs_enumerate_from,
13255         cfgbuild.c, inside_basic_block_p, control_flow_insn_p,
13256         make_label_edge, make_edges, find_basic_blocks_1): Use gcc_assert
13257         or gcc_unreachable.
13258         * cfg.c (clear_edges, initialize_bb_rbi, compact_blocks,
13259         remove_edge, alloc_aux_for_blocks, free_aux_for_blocks,
13260         alloc_aux_for_edges, free_aux_for_edges): Likewise.
13261         * cfgcleanup.c (try_forward_edges,
13262         merge_blocks_move_predecessor_nojumps,
13263         merge_blocks_move_successor_nojumps): Likewise.
13264         * cfgexpand.c (expand_gimple_cond_expr,
13265         expand_gimple_tailcall): Likewise.
13266         * cfghooks.c (duplicate_block): Likewise.
13267         * cfglayout.c (record_effective_endpoints,
13268         insn_locators_initialize, change_scope, fixup_reorder_chain,
13269         verify_insn_chain, fixup_fallthru_exit_predecessor,
13270         duplicate_insn_chain, cfg_layout_finalize): Likewise.
13271         * cfgloopanal.c (check_irred): Likewise.
13272         * cfgloop.c (superloop_at_depth, flow_loops_free,
13273         flow_loop_entry_edges_find, flow_loops_find,
13274         flow_loop_outside_edge_p, get_loop_body,
13275         get_loop_body_in_dom_order, get_loop_body_in_bfs_order,
13276         get_loop_exit_edges, num_loop_branches, cancel_loop,
13277         verify_loop_structure): Likewise.
13278         cfgloopmanip.c (find_path, remove_path, loop_delete_branch_edge,
13279         duplicate_loop_to_header_edge, create_preheader,
13280         create_loop_notes): Likewise.
13281         * cfgrtl.c (delete_insn, try_redirect_by_replacing_jump,
13282         edirect_branch_edge, force_nonfallthru_and_redirect,
13283         rtl_split_edge, insert_insn_on_edge, commit_one_edge_insertion,
13284         commit_edge_insertions, commit_edge_insertions_watch_calls,
13285         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
13286         cfg_layout_redirect_edge_and_branch_force,
13287         cfg_layout_merge_blocks, rtl_flow_call_edges_add): Likewise.
13288         * cgraph.c (cgraph_node, cgraph_create_edge, cgraph_remove_edge,
13289         cgraph_redirect_edge_callee, cgraph_global_info, cgraph_rtl_info,
13290         cgraph_varpool_node): Likewise.
13291         * cgraphunit.c (cgraph_finalize_function,
13292         cgraph_finalize_compilation_unit, cgraph_mark_functions_to_output,
13293         cgraph_expand_function, cgraph_remove_unreachable_nodes,
13294         cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
13295         cgraph_mark_inline, cgraph_expand_all_functions,
13296         cgraph_build_static_cdtor): Likewise.
13297         * combine.c  (do_SUBST, try_combine, subst, combine_simplify_rtx,
13298         simplify_logical, distribute_notes, insn_cuid): Likewise.
13299         * conflict.c (conflict_graph_add, print_conflict): Likewise.
13300         * coverage.c (rtl_coverage_counter_ref, tree_coverage_counter_ref,
13301         coverage_checksum_string): Likewise.
13302         * cse.c (make_new_qty, make_regs_eqv, insert, invalidate,
13303         hash_rtx, exp_equiv_p, cse_basic_block, count_reg_usage,
13304         cse_cc_succs, cse_condition_code_reg): Likewise.
13305         * cselib.c (entry_and_rtx_equal_p, remove_useless_values,
13306         rtx_equal_for_cselib_p, wrap_constant, cselib_hash_rtx,
13307         new_cselib_val, cselib_subst_to_values, cselib_invalidate_regno,
13308         cselib_record_set): Likewise.
13310 2004-09-07  Jan Hubicka  <jh@suse.cz>
13312         * tree-ssa-loop-ivopts.c (iv_value): Avoid invalid sharing on niter.
13314 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
13316         * builtins.c (fold_builtin_strchr): Use build_int_cst, not
13317         fold_convert.
13318         (fold_builtin_strpbrk): Likewise.
13319         * expr.c (array_ref_low_bound): Likewise.
13320         * tree-scalar-evolution.c (chrec_is_positive, add_to_evolution_1,
13321         interpret_rhs_modify_expr, number_of_iterations_in_loop): Likewise.
13322         * tree-sra.c (generate_element_zero): Likewise.
13323         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
13324         * tree-ssa-loop-ivopts.c (determine_biv_step, idx_find_step,
13325         add_old_iv_candidates, add_iv_candidates): Likewise.
13326         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13328 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
13330         * c-aux-info.c (gen_type): Use gcc_assert or gcc_unreachable.
13331         * c-common.c (c_type_hash, c_common_nodes_and_builtins,
13332         c_expand_expr, boolean_increment, nonnull_check_p,
13333         check_function_arguments_recurse, fold_offsetof_1): Likewise.
13334         * c-cppbuiltin.c (define__GNUC__, builtin_define_stdint_macros,
13335         builtin_define_type_max): Likewise.
13336         * c-decl.c (bind, pop_scope, merge_decls, pushdecl_top_level,
13337         implicit_decl_warning, builtin_function, build_compound_literal,
13338         complete_array_type, grokdeclarator, get_parm_info,
13339         start_function, store_parm_decls_oldstyle,
13340         c_write_global_declarations): Likewise.
13341         * c-format.c (get_constant, decode_format_attr,
13342         maybe_read_dollar_number, get_flag_spec, check_format_arg,
13343         check_format_types, format_type_warning,
13344         find_char_info_specifier_index, init_dynamic_asm_fprintf_info,
13345         init_dynamic_diag_info, handle_format_attribute): Likewise.
13346         * c-gimplify.c (push_context, pop_context, finish_bc_block):
13347         * c-lex.c (c_lex_with_flags, lex_string): Likewise.
13348         * c-objc-common.c (c_tree_printer): Likewise.
13349         * c-pch.c (pch_init): Likewise.
13350         * c-pragma.c (maybe_apply_pragma_weak): Likewise.
13351         * c-pretty-print.c (pp_c_tree_decl_identifier): Likewise.
13352         * c-typeck.c (c_incomplete_type_error, composite_type,
13353         common_pointer_type, common_type, same_translation_unit_p,
13354         tagged_types_tu_compatible_p, finish_init, pop_init_level,
13355         set_designator, set_nonincremental_init_from_string,
13356         process_init_element, c_finish_if_stmt): Likewise.
13357         * caller-save.c (init_caller_save, save_call_clobbered_regs,
13358         insert_restore, insert_save, insert_one_insn): Likewise.
13359         * calls.c (emit_call_1, compute_argument_block_size,
13360         precompute_arguments, expand_call, emit_library_call_value_1,
13361         store_one_arg): Likewise.
13363 2004-09-07  Nathan Sidwell  <nathan@codesourcery.com>
13365         * configure.ac (enable-checking): Add release option. Reorganize
13366         to avoid repetition.
13367         * configure: Rebuilt.
13368         * doc/install.texi (enable-checking): Amend documentation.
13370 2004-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13372         PR bootstrap/17313
13373         * Makefile.in (specs.ready): Depend on cc1$(exeext).
13375 2004-09-06  James E Wilson  <wilson@specifixinc.com>
13377         * config/mips/mips.md (movsf_hardfloat, movdf_hardfloat_64bit,
13378         movdf_hardfloat_32bit): Split fG into two alternatives.
13379         (movv2sf_hardfloat_64bit): Split fYG into two alternatives.
13381         * emit-rtl.c (try_split): Check INSN_P before may_trap_p call.
13383 2004-09-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
13385         * final.c (output_in_slot): Delete.
13386         (final_scan_insn): Revert 2004-09-03 change.
13387         (output_asm_insn): Likewise.
13388         * config/sparc/sparc.c (output_return): Likewise.
13389         (output_sibcall): Likewise.
13391 2004-09-06  Jan Hubicka  <jh@suse.cz>
13393         * loop.c (loop_dump_aux): Do not print RTL when not available.
13394         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates): Do not use
13395         frontend specific type nodes.
13396         (produce_memory_decl_rtl): Break out from ...
13397         (prepare_decl_rtl): ... here.  Handle ADDR_EXPR correctly.
13398         (get_computation_at): Avoid random tree sharing.
13399         (tree_ssa_iv_optimize): Verify tree sharing; dump loops.
13401 2004-09-06  Zack Weinberg  <zack@codesourcery.com>
13403         * Makefile.in (rtl.o, bitmap.o): Correct dependencies, remove
13404         unnecessary commands.
13406 2004-09-06  Mohan Embar  <gnustuff@thisiscool.com>
13408         * Makefile.in (rtl.o): Remove -DGENERATOR_FILE.
13409         (bitmap.o): Likewise.
13411 2004-09-06  Paolo Bonzini  <bonzini@gnu.org>
13413         Unify the management of RTL and tree-level dump files.
13415         * cfgexpand.c (tree_expand_cfg): Fix incorrect comment.
13416         Don't print function name to the dump file, the pass manager
13417         would do this for us. Add code from the top of
13418         rest_of_compilation, up to the initial RTL dump.
13419         * passes.c (rest_of_handle_jump): Call fixup_tail_calls and
13420         close the DFI_sibling dump file.
13421         (rest_of_compilation): Don't do that here.  Remove code up to the
13422         initial RTL dump.
13423         (init_optimization_passes): Remove.
13424         (pass_rest_of_compilation): Change pass name to NULL.
13425         * toplev.c (lang_dependent_init): Do not use an empty dump file prefix.
13426         Do not call init_optimization_passes.
13427         * toplev.h (init_optimization_passes): Remove.
13429         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
13430         finish_graph_dump_file): Remove SUFFIX parameter.
13431         * graph.h (print_rtl_graph_with_bb, clean_graph_dump_file,
13432         finish_graph_dump_file): Likewise.
13434         * tree-pass.h (struct tree_opt_pass): Add `letter' field.
13435         * cfgexpand.c (pass_expand): Adjust.
13436         * gimple-low.c (pass_lower_cf, pass_remove_useless_vars): Adjust.
13437         * passes.c (pass_rest_of_compilation): Adjust.
13438         * predict.c (pass_profile): Adjust.
13439         * tree-alias-common.c (pass_build_pta, pass_del_pta): Adjust.
13440         * tree-cfg.c (pass_build_cfg, pass_remove_useless_stmts,
13441         pass_split_crit_edges, pass_warn_function_return): Adjust.
13442         * tree-complex.c (pass_lower_vector_ssa, pass_pre_expand): Adjust.
13443         * tree-dfa.c (pass_referenced_vars): Adjust.
13444         * tree-eh.c (pass_lower_eh): Adjust.
13445         * tree-if-conv.c (pass_build_ssa): Adjust.
13446         * tree-into-ssa.c (pass_build_ssa): Adjust.
13447         * tree-mudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
13448         * tree-nomudflap.c (pass_mudflap_1, pass_mudflap_2): Adjust.
13449         * tree-nrv.c (pass_nrv): Adjust.
13450         * tree-optimize.c (pass_gimple, pass_all_optimizations,
13451         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
13452         pass_init_datastructures): Adjust.
13453         * tree-outof-ssa.c (pass_del_ssa): Adjust.
13454         * tree-profile.c (pass_tree_profile): Adjust.
13455         * tree-sra.c (pass_sra): Adjust.
13456         * tree-ssa-alias.c (pass_may_alias): Adjust.
13457         * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Adjust.
13458         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Adjust.
13459         * tree-ssa-dce.c (pass_dce, pass_cd_dce): Adjust.
13460         * tree-ssa-dom.c (pass_dominator): Adjust.
13461         * tree-ssa-dse.c (pass_dse): Adjust.
13462         * tree-ssa-forwprop.c (pass_forwprop): Adjust.
13463         * tree-ssa-if-conv.c (pass_if_conversion): Adjust.
13464         * tree-ssa-loop-ch.c (pass_ch): Adjust.
13465         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_lim,
13466         pass_loop_done, pass_complete_unroll, pass_iv_canon,
13467         pass_iv_optimize, pass_vectorize): Adjust.
13468         * tree-ssa-phiopt.c (pass_phiopt): Adjust.
13469         * tree-ssa-pre.c (pass_pre, pass_fre): Adjust.
13470         * tree-ssa.c (pass_redundant_phi, pass_early_warn_uninitialized,
13471         pass_late_warn_uninnitialized): Adjust.
13472         * tree-tailcall.c (pass_tail_recursion, pass_tail_calls): Adjust.
13474         * Makefile.in (tree-dump.o): Add new dependencies.
13475         * cgraph.c (cgraph_remove_node): TDF_all -> TDF_tree_all.
13476         * cgraphunit.c (cgraph_preserve_function_body_p, cgraph_optimize):
13477         Likewise.
13478         * toplev.c (dump_file_name): New.
13479         * tree-dump.c (dump_enable_all): Add LETTER parameter.
13480         (struct dump_file_info): Add NUM and LETTER fields.
13481         (dump_files): Adjust and add RTL dump files.
13482         (dump_register): Add NUM and LETTER fields.
13483         (get_dump_file_name, dump_initialized_p, enable_rtl_dump_file): New.
13484         (dump_begin): Use get_dump_file_name.
13485         (dump_switch_p_1): Adjust call to dump_enable_all.
13486         * tree-dump.h (dump_register): Adjust prototype.
13487         * tree-optimize.c (register_one_dump_file): Take dump file index.
13488         Support flags for RTL dumps.
13489         (register_dump_files): Fill in NUM field of struct dump_file_info.
13490         Track properties both when the gate is executed and when it is not.
13491         (execute_todo): Dump RTL.  Add PROPERTIES parameter.
13492         (execute_one_pass): Pass properties to execute_todo.  Handle VCG
13493         dumps of RTL.
13494         * tree-pass.h (dump_file_name): New.
13495         * tree.h (TDF_TREE, TDF_RTL, get_dump_file_name, dump_initialized_p):
13496         New.
13498         * Makefile.in (passes.o): Add new dependencies.
13499         * passes.c (struct dump_file_info, enum dump_file_index,
13500         dump_file_tbl, init_optimization_passes): Remove.
13501         (open_dump_file, close_dump_file): Use tree-dumping infrastructure.
13502         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc): Use
13503         dump_enabled_p.
13504         (finish_optimization_passes): Update finish_graph_dump_file loop.
13505         (enable_rtl_dump_file): Remove.
13506         * tree-dump.c (dump_files): Adjust and add RTL dump files.
13507         (enable_rtl_dump_file): Add here.
13508         * tree.h (enum tree_dump_index): Add RTL dump file indices.
13509         * doc/invoke.texi (Debugging options): Document new RTL debugging
13510         options.  Update.
13512 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
13514         * c-common.c, c-decl.c, combine.c, defaults.h, fold-const.c,
13515         gimplify.c, gthr-nks.h, hooks.c, lambda-code.c, lambda-mat.c,
13516         stor-layout.c, target.h, tree-cfg.c, tree-chrec.c,
13517         tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
13518         tree-mudflap.c, tree-optimize.c, tree-scalar-evolution.c,
13519         tree-ssa-alias.c, tree-ssa-ccp.c, tree-ssa-dce.c,
13520         tree-ssa-pre.c, tree-vectorizer.c, tree-vectorizer.h, tree.h,
13521         vec.h: Fix comment formatting.
13523 2004-09-05  Kazu Hirata  <kazu@cs.umass.edu>
13525         * c-common.c, cfgexpand.c, cgraphunit.c, defaults.h,
13526         et-forest.c, expr.c, gimplify.c, global.c, gthr-lynx.h,
13527         hard-reg-set.h, modulo-sched.c, optabs.c, postreload-gcse.c,
13528         tree-data-ref.c, tree-flow.h, tree-if-conv.c, tree-inline.c,
13529         tree-sra.c, tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c,
13530         tree-ssa-loop-niter.c, tree-ssa-operands.c,
13531         tree-ssa-operands.h, tree-ssa-propagate.c,
13532         tree-ssa-propagate.h, tree-ssa-threadupdate.c, value-prof.c,
13533         vec.c, vec.h: Fix comment typos.  Follow spelling conventions.
13535 2004-09-05  Diego Novillo  <dnovillo@redhat.com>
13537         * tree-if-conv.c (gate_tree_if_conversion): Enable only if the
13538         vectorizer is enabled.
13540 2004-09-05  Andreas Jaeger  <aj@suse.de>
13542         * tree-if-conv.c: Spell check comments and clean up whitespace.
13544 2004-09-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13546         * tree-ssa-loop-ivopts.c: New file.
13547         * Makefile.in (tree-ssa-loop-ivopts.c): Add.
13548         * cfgloop.h (target_avail_regs, target_res_regs, target_small_cost,
13549         target_pres_cost, target_spill_cost): Declare.
13550         * cfgloopanal.c (avail_regs, res_regs, small_cost, pres_cost,
13551         spill_cost): Renamed to ...
13552         (target_avail_regs, target_res_regs, target_small_cost,
13553         target_pres_cost, target_spill_cost): ... and exported.
13554         (init_set_costs, global_cost_for_size): Work with renamed variables.
13555         * common.opt (flag_ivopts): New flag.
13556         * expr.c (expand_expr_real_1): Handle SSA_NAME case.  Handle
13557         REF_ORIGINAL.
13558         * gimplify.c (struct gimplify_ctx): Add into_ssa field.
13559         (internal_get_tmp_var, gimplify_modify_expr, gimplify_expr): Support
13560         generating SSA form.
13561         (force_gimple_operand): New function.
13562         * timevar.def (TV_TREE_LOOP_IVOPTS): New timevar.
13563         * tree-cfg.c (stmt_bsi): New function.
13564         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
13565         PARAM_IV_MAX_CONSIDERED_USES): New.
13566         * tree-flow.h (stmt_bsi, tree_ssa_iv_optimize, split_loop_exit_edge,
13567         bsi_insert_on_edge_immediate_loop. standard_iv_increment_position,
13568         ip_end_pos, ip_normal_pos, force_gimple_operand): Declare.
13569         * tree-gimple.c (is_gimple_formal_tmp_var): Accept ssa names.
13570         * tree-nested.c (build_addr): Export.
13571         * tree-optimize.c (init_tree_optimization_passes): Add
13572         pass_iv_optimize.
13573         * tree-pass.h (pass_iv_optimize): Declare.
13574         * tree-ssa-loop-im.c (for_each_index): Handle REALPART_EXPR and
13575         IMAGPART_EXPR.
13576         * tree-ssa-loop-manip.c (create_iv): Force the base to be acceptable
13577         as a phi node argument.
13578         (split_loop_exit_edge, bsi_insert_on_edge_immediate_loop,
13579         ip_end_pos, ip_normal_pos, standard_iv_increment_position): New
13580         functions.
13581         * tree-ssa-loop-niter.c (zero_p, unsigned_type_for): Export.
13582         * tree-ssa-loop.c (tree_ssa_loop_ivopts, gate_tree_ssa_loop_ivopts,
13583         pass_iv_optimize): New pass.
13584         * tree-ssa-operands.c (get_indirect_ref_operands): Handle REF_ORIGINAL.
13585         * tree-ssanames.c (release_ssa_name): Allow calling with var = NULL.
13586         * tree.c (build_int_cst_type, cst_and_fits_in_hwi): New functions.
13587         * tree.h (REF_ORIGINAL): New macro.
13588         (build_int_cst_type, unsigned_type_for, zero_p,
13589         cst_and_fits_in_hwi, build_addr): Declare.
13590         * doc/invoke.texi (-fivopts): Document.
13591         (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND,
13592         PARAM_IV_MAX_CONSIDERED_USES): Document.
13593         * doc/passes.texi: Document induction variable optimizations pass.
13595 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13597         * builtin-attrs.def (ATTR_NOTHROW_SENTINEL_1): New.
13598         * builtins.def (BUILT_IN_EXECLE): Set ATTR_NOTHROW_SENTINEL_1.
13599         * c-common.c (c_common_attribute_table): Accept parameters to
13600         sentinel attribute.
13601         (check_function_sentinel, handle_sentinel_attribute): Likewise.
13602         * doc/extend.texi: Update accordingly.
13604 2004-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13606         * builtin-attrs.def (ATTR_SENTINEL, ATTR_SENTINEL_NOTHROW_LIST):
13607         New.
13608         * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP): Add `sentinel'
13609         attribute.
13610         * c-common.c (handle_sentinel_attribute, check_function_sentinel):
13611         New functions.
13612         (c_common_attribute_table): Add `sentinel' attribute.
13613         (check_function_arguments): Handle `sentinel' attribute.
13614         * doc/extend.texi: Document `sentinel' attribute.
13616 2004-09-04  H.J. Lu  <hongjiu.lu@intel.com>
13618         * configure: Regenerated.
13620 2004-09-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13622         * gimplify.c (internal_get_tmp_var): Remove unused var CLASS.
13624         * tree.c (save_expr): No longer TREE_READONLY.
13626 2004-09-04  Jan Hubicka  <jh@suse.cz>
13628         * passes.c (rest_of_clean_state):  Fix merge conflict made during
13629         commiting the patch.
13631 2004-09-04  Jan Hubicka  <jh@suse.cz>
13633         * passes.c (rest_of_clean_state):  Decompose the instruction stream.
13635 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
13637         * doc/md.texi (shift patterns): New anchor.  Add reference to
13638         TARGET_SHIFT_TRUNCATION_MASK.
13639         * doc/tm.texi (TARGET_SHIFT_TRUNCATION_MASK): Document.
13640         * target.h (shift_truncation_mask): New target hook.
13641         * targhook.h (default_shift_truncation_mask): Declare.
13642         * targhook.c (default_shift_truncation_mask): Define.
13643         * target-def.h (TARGET_SHIFT_TRUNCATION_MASK): Define.
13644         (TARGET_INITIALIZER): Include it.
13645         * simplify-rtx.c (simplify_binary_operation): Combine ASHIFT, ASHIFTRT
13646         and LSHIFTRT cases.  Truncate arg1 if SHIFT_COUNT_TRUNCATED, otherwise
13647         reject all out-of-range values.  Fix sign-extension code for modes
13648         whose width is smaller than HOST_BITS_PER_WIDE_INT.
13649         * optabs.c (simplify_expand_binop, force_expand_binop): New functions.
13650         (expand_superword_shift, expand_subword_shift): Likewise.
13651         (expand_doubleword_shift_condmove, expand_doubleword_shift): Likewise.
13652         (expand_binop): Use them to implement double-word shifts.
13653         * config/arm/arm.c (arm_shift_truncation_mask): New function.
13654         (TARGET_SHIFT_TRUNCATION_MASK): Define.
13656 2004-09-04  Jan Hubicka  <jh@suse.cz>
13658         * tree.c (iterate_hash_expr): Optimize, avoid use of iterative_hash_object.
13659         (mix): New macro copied from hashtab.c
13660         (iterative_hash_hashval_t, iterative_hash_pointer,
13661         iterative_hash_host_wide_int): New functions based on hashtab.c
13662         implementation.
13664 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
13666         * config/mips/mips.md (mask): New mode attribute.
13667         (zero_extendsidi2): Add memory alternative.
13668         (*zero_extendsidi2_mem): Delete.
13669         (zero_extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.  Use
13670         memory_operand in the TARGET_MIPS16 check.
13671         (*zero_extend[qh]i[sd]i2{,_mips16}): Name previously unnamed patterns.
13672         Redefine using :GPR and :SHORT.
13673         (zero_extendqihi2): Use memory_operand in the TARGET_MIPS16 check.
13675 2004-09-04  Uros Bizjak  <uros@kss-loka.si>
13677         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_RINT{,F,L}
13678         using rint_optab.
13679         (expand_builtin): Expand BUILT_IN_RINT{,F,L} using
13680         expand_builtin_mathfn.
13681         * genopinit.c (optabs): Rename trunc_optab to btrunc_optab. Use
13682         btrunc?f patterns for btrunc_optab. Implement rint_optab using
13683         rint?f patterns.
13684         * optabs.c (init_optabs): Initialize rint_optab.
13685         * optabs.h (enum optab_index): Rename OTI_trunc to OTI_btrunc.
13686         Add new OTI_rint.
13687         (btrunc_optab): Rename macro from trunc_optab.
13688         (rint_optab): Define corresponding macro.
13690         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT_FLOOR,
13691         UNSPEC_FRNDINT_CEIL, UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM.
13693         * config/i386/i386-protos.h (emit_i387_cw_initialization):
13694         Change prototype. Add new int parameter.
13695         * config/i386/i386.c (emit_i387_cw_initialization):
13696         Handle new rounding modes.
13698         * config/i386/i386.h (enum fp_cw_mode): Delete.
13699         (MODE_NEEDED): Handle new rounding modes.
13700         (EMIT_MODE_SET): Change condition to handle new rounding modes.
13702         * config/i386/i386.md (UNSPEC_FRNDINT_FLOOR, UNSPEC_FRNDINT_CEIL,
13703         UNSPEC_FRNDINT_TRUNC, UNSPEC_FRNDINT_MASK_PM): New unspecs to
13704         represent different rounding modes of frndint insn.
13705         (type): Add frndint type.
13706         (i387, length, memory): Handle this type.
13707         (i387_cw): New attribute definition.
13708         (*fix_truncdi_1, fix_truncdi_nomemory, fix_truncdi_memory,
13709         *fix_truncsi_1, fix_truncsi_nomemory, fix_truncsi_memory,
13710         *fix_trunchi_1, fix_trunchi_nomemory, fix_trunchi_memory):
13711         Add "i387_cw" attribute defined to "trunc".
13712         (x86_fnstcw_1): Remove comment.
13713         (*frndintxf2): Rename insn definition to frndintxf2. Move
13714         insn definition near rint?f2 expanders.
13715         (rintdf2, rintsf2, rintxf2): New expanders to implement rint,
13716         rintf and rintl built-ins as inline x87 intrinsics.
13717         (frndintxf2_floor): New pattern to implement floor rounding
13718         mode with frndint x87 instruction.
13719         (floordf2, floorsf2, floorxf2): New expanders to implement floor,
13720         floorf and floorl built-ins as inline x87 intrinsics.
13721         (frndintxf2_ceil): New pattern to implement ceil rounding
13722         mode with frndint x87 instruction.
13723         (ceildf2, ceilsf2, ceilxf2): New expanders to implement ceil,
13724         ceilf and ceill built-ins as inline x87 intrinsics.
13725         (frndintxf2_trunc): New pattern to implement trunc rounding
13726         mode with frndint x87 instruction.
13727         (btruncdf2, btruncsf2, btruncxf2): New expanders to implement trunc,
13728         truncf and truncl built-ins as inline x87 intrinsics.
13729         (frndintxf2_mask_pm): New pattern to implement rounding
13730         mode with exceptions with frndint x87 instruction.
13731         (nearbyintdf2, nearbyintsf2, nearbyintxf2): New expanders to
13732         implement nearbyint, nearbyintf and nearbyintl built-ins as
13733         inline x87 intrinsics.
13735 2004-09-04  Richard Sandiford  <rsandifo@redhat.com>
13737         * config/mips/mips.md (SHORT): New mode macro.
13738         (size): New mode attribute.
13739         (extend[qh]i[sd]i2): Redefine using :GPR and :SHORT.
13740         (*extend[qh]i[sd]i2): New define_insn_and_split, combining previous
13741         *extend[qh]i[sd]i2 and *extend[qh]i[sd]i2_mem patterns.  Use only if
13742         !ISA_HAS_SEB_SEH.
13743         (*extend[qh]i[sd]i2_se[bh]): New pattern, combining previous
13744         *extend[qh]isi2_hw patterns and extending them to di.
13745         (extendqihi2): Implement as define_insn_and_split that produces
13746         extendqisi2 after reload.
13748 2004-09-03  Devang Patel  <dpatel@apple.com>
13750         * Makefile.in (OBJS-common): Add tree-if-conv.o
13751         (tree-if-conv.o): New rule.
13752         * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
13753         (get_loop_body_in_bfs_order): New.
13754         * cfgloop.h (get_loop_body_in_bfs_order): New.
13755         * tree-flow.h (enum move_pos): Move here from ..
13756         * tree-ssa-loop-im.c (enum move_pos): here.
13757         (movement_possibility): Make externally visible.
13758         * tree-optimize.c (init_tree_optimization_passes): New entry for
13759         if conversion pass.
13760         * tree-pass.h (pass_if_conversion): New.
13761         * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
13762         * tree-if-conv.c: New file.
13763         * doc/passes.texi: Document tree if-conversion pass.
13764         * doc/tree-ssa.texi: Same.
13766 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
13768         PR target/14925:
13769         Makefile.in (LIB2ADDEHSTATIC): New.
13770         (LIB2ADDEHSHARED): New.
13771         (LIBUNWIND): New.
13772         (LIBUNWINDDEP): New.
13773         (SHLIBUNWIND_LINK): New.
13774         (SHLIBUNWIND_INSTALL): New.
13775         (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
13776         LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
13777         (clean): Remove libunwind*
13778         (stage1-start): Remove and copy stage1/libunwind*.
13779         (stage2-start): Remove and copy stage2/libunwind*.
13780         (stage3-start): Remove and copy stage3/libunwind*.
13781         (stage4-start): Remove and copy stage4/libunwind*.
13782         (stageprofile-start): Remove and copy stageprofile/libunwind*.
13783         (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
13785         * config.gcc (ia64*-*-linux*): Always add t-libunwind to
13786         tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
13787         tmake_file if --with-system-libunwind isn't used.
13789         * config/ia64/t-glibc-libunwind: New file.
13790         * config/t-libunwind-elf: Likewise.
13791         * unwind-compat.c: Likewise.
13792         * unwind-compat.h: Likewise.
13793         * unwind-dw2-fde-compat.c: Likewise.
13795         * config/ia64/t-glibc (LIB2ADDEH): Updated.
13796         * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
13798         * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
13799         aliases if needed.
13800         * unwind-dw2-fde-glibc.c: Likewise.
13801         * unwind-dw2.c: Likewise.
13803         * config/t-libunwind (LIB2ADDEH): Updated.
13804         (LIB2ADDEHSTATIC): New.
13805         (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
13806         (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
13808         * configure.ac: Change --enable-libunwind-exceptions to
13809         --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
13810         * configure: Regenerated.
13811         * config.in: Updated.
13813         * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
13814         above and mention --with-system-libunwind.
13815         (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
13816         removed in gcc 3.4.3 and later.
13818         * gcc.c (init_spec): Add -lunwind to -lgcc_s if
13819         USE_LIBUNWIND_EXCEPTIONS is defined.
13821         * mklibgcc.in: Support libunwind.
13823 2004-09-03  H.J. Lu  <hongjiu.lu@intel.com>
13825         * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
13826         m_NOCONA.
13828 2004-09-03  Richard Henderson  <rth@redhat.com>
13830         PR middle-end/9997
13831         * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
13832         (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
13833         (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
13834         stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
13835         frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
13836         resize_stack_vars_conflict, add_stack_var_conflict,
13837         stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
13838         union_stack_vars, partition_stack_vars, dump_stack_var_partition,
13839         expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
13840         expand_one_static_var, expand_one_hard_reg_var,
13841         expand_one_register_var, expand_one_error_var, defer_stack_allocation,
13842         expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
13843         (expand_used_vars): Rewrite.
13844         * Makefile.in (cfgexpand.o): Update dependencies.
13846 2004-09-04  Jan Hubicka  <jh@suse.cz>
13848         * cfg.c (free_edge): Use ggc_free.
13849         (expunge_block): Use ggc_free.
13850         * passes.c (rest_of_clean_state): Free after compilation.
13851         * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
13852         * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
13854 2004-09-03  James E Wilson  <wilson@specifixinc.com>
13856         * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
13857         DECL_EXTERNAL check.
13859 2004-09-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
13861         * final.c (output_in_slot): New global variable.
13862         (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
13863         Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE.  Set
13864         'output_in_slot' before invoking output_asm_insn.
13865         (output_asm_insn): Add a space after the tab if 'output_in_slot'
13866         is set.
13867         * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
13868         final_scan_insn.
13869         (output_sibcall): Likewise.
13871 2004-09-03  Jan Hubicka  <jh@suse.cz>
13873         * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
13874         * tree-ssanames (init_ssanames): Likewise.
13876 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
13878         * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
13879         objc_declare_protocols, objc_start_protocol,
13880         objc_start_class_interface, objc_start_category_interface,
13881         objc_continue_interface, objc_finish_interface,
13882         objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
13883         objc_start_class_implementation, objc_start_category_implementation,
13884         objc_continue_implementation, objc_finish_implementation,
13885         objc_add_method_declaration, objc_start_method_definition,
13886         objc_finish_method_definition, objc_build_keyword_decl,
13887         objc_build_method_signature, objc_build_encode_expr,
13888         objc_build_protocol_expr, objc_build_selector_expr,
13889         objc_build_message_expr, objc_build_string_object,
13890         objc_get_class_reference, objc_get_protocol_qualified_type,
13891         objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
13893 2004-09-03  James E Wilson  <wilson@specifixinc.com>
13895         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
13897         * config/mips/generic.md (generic_frecip_fsqrt_step): New.
13898         * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
13899         (mips_rsqrt2_<fmt>): Use frsqrt2 type.
13900         (mips_recip1_<fmt>): Use frdiv1 type.
13901         (mips_recip2_<fmt>): Use frdiv2 type.
13902         * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
13903         * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
13904         and frsqrt1.
13905         (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
13907 2004-09-03  Daniel Jacobowitz  <dan@debian.org>
13909         * reload.c (find_reloads): Swap operand_loc pointers for
13910         find_dummy_reload if we have swapped two operands.
13912 2004-09-03  Hans-Peter Nilsson  <hp@axis.com>
13914         * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
13915         to get the tablejump-insn before the jump-table label.
13917 2004-09-03  Ziemowit Laski  <zlaski@apple.com>
13919         * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
13920         objc_declare_protocols, objc_build_message_expr,
13921         objc_finish_message_expr, objc_build_selector_expr,
13922         objc_build_protocol_expr, objc_build_encode_expr,
13923         objc_build_string_object, objc_get_protocol_qualified_type,
13924         objc_get_class_reference, objc_get_class_ivars,
13925         objc_start_class_interface, objc_start_category_interface,
13926         objc_start_protocol, objc_continue_interface, objc_finish_interface,
13927         objc_start_class_implementation, objc_start_category_implementation,
13928         objc_continue_implementation, objc_finish_implementation,
13929         objc_set_visibility, objc_set_method_type, objc_build_method_signature,
13930         objc_add_method_declaration, objc_start_method_definition,
13931         objc_finish_method_definition, objc_add_instance_variable,
13932         objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
13933         objc_finish_try_stmt, objc_begin_catch_clause,
13934         objc_finish_catch_clause, objc_build_finally_clause,
13935         objc_build_synchronized, objc_static_init_needed_p,
13936         objc_generate_static_init_call): New prototypes.
13938 2004-09-03  Steve Ellcey  <sje@cup.hp.com>
13940         * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
13941         is only one reg.
13942         (ia64_function_value): Ditto.
13944 2004-09-03  Jan Beulich  <jbeulich@novell.com>
13946         * config.gcc: Resurrect NetWare as a target. Handle special case of
13947         Novell linker to be used (specified through --with-ld=) and threading
13948         model of either Posix (default) or NKS.
13949         * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
13950         of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
13951         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
13952         * config/i386/netware.c, config/i386/netware.h: New.
13953         * config/i386/nwld.c, config/i386/nwld.h: New.
13954         * config/i386/netware-crt0.c: New.
13955         * config/i386/netware-libgcc.c: New.
13956         * config/i386/netware-libgcc.def: New.
13957         * config/i386/netware-libgcc.exp: New.
13958         * config/i386/t-netware, config/i386/t-nwld: New.
13959         * gthr-nks.h: New.
13960         * doc/install.texi: Document NKS threading model.
13962 2004-09-03  Jan Beulich  <jbeulich@novell.com>
13964         PR c/7054
13965         * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
13966         * tree.h (initial_max_fld_align): Declare
13967         * stor-layout.c (initial_max_fld_align): Define and initialize.
13968         (maximum_field_alignment): Initialize to the same value.
13969         * common.opt: Add -fpack-struct= variant of switch.
13970         * opts.c: Handle -fpack-struct= variant of switch.
13971         * c-pragma.c: Change #pragma pack() handling so that it becomes
13972         compatible to other compilers: accept individual 'push' argument,
13973         make final pop restore (command line) default, correct interaction
13974         of push/pop and sole specification of a new alignment (so that the
13975         sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
13976         to #pragma pack(push, <n>).
13977         * doc/extend.texi: New node "Structure-Packing Pragmas" under
13978         "Pragmas", describing #pragma pack.
13979         * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
13980         * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
13981         Document new TARGET_DEFAULT_PACK_STRUCT.
13983 2004-09-03  Devang Patel  <dpatel@apple.com>
13985         * dwarf2out.c (gen_field_die). Equate decl number to die.
13987 2004-09-03  Vladimir Makarov  <vmakarov@redhat.com>
13989         PR target/15832
13990         * global.c (modify_reg_pav): New function.
13991         (make_accurate_live_analysis): Call the new function.  Move pavin
13992         modification by earlyclobber set into the new function.
13994 2004-09-03  Andreas Schwab  <schwab@suse.de>
13996         * config/m68k/m68k.c (output_andsi3): Use -1 instead of
13997         (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
13998         extended.
14000 2004-09-02  Jan Beulich  <jbeulich@novell.com>
14002         * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
14003         * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
14004         not unwind code specific ones.
14005         (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
14006         Remove unwind code specific dependencies.
14007         (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
14008         Remove gbl-ctors.h.
14009         Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
14010         LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
14011         * tsystem.h: Declare memcpy and memset when inhibit_libc.
14013 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
14015         * combine.c (try_combine): Delay modifying of insns which cannot
14016         be easily undone.
14018 2004-09-02  Daniel Berlin  <dberlin@dberlin.org>
14020         * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
14021         tree-loop-im.
14022         * gcc/tree-ssa-loop.c: Ditto
14023         * gcc/tree-ssa-loop-ivcanon.c: Ditto
14024         * gcc/doc/invoke.texi: Ditto.
14026 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
14028         * c-decl.c (store_parm_decls_newstyle): Make static.
14029         (store_parm_decls_from): New function.
14030         * c-tree.h (store_parm_decls_newstyle): Remove prototype.
14031         (store_parm_decls_from): New prototype.
14033 2004-09-02  David Edelsohn  <edelsohn@gnu.org>
14035         * config/rs6000/rs6000.c (expand_block_move): Use SImode and
14036         HImode with STRICT_ALIGNMENT.
14038 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
14040         * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
14041         (TARGET_OS_CPP_BUILTINS): Likewise.
14042         * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
14043         TARGET_BPABI_CPP_BUILTINS.
14045 2004-09-02  Roman Zippel  <zippel@linux-m68k.org>
14047         * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
14049 2004-09-02  Eric Christopher  <echristo@redhat.com>
14051         * builtins.c (expand_builtin_cabs): Delete.
14052         (expand_builtin): If unable to fold the values do a normal
14053         library call for builtin_cab*.
14054         (fold_builtin_cabs): Depend on optimize and optimize_size.
14055         * optabs.c (expand_cmplxdiv_straight): Delete.
14056         (expand_cmplxdiv_wide): Ditto.
14057         (expand_vector_binop): Ditto.
14058         (expand_vector_unop): Ditto.
14059         (expand_complex_abs): Delete.
14060         (expand_binop): Remove calls to above functions.
14061         Remove open coding of complex arithmetic.
14062         (expand_unop): Ditto.
14063         * optabs.h: Remove prototypes.
14065 2004-09-02  Ziemowit Laski  <zlaski@apple.com>
14067         * c-decl.c (store_parm_decls_newstyle): Make externally visible.
14068         * c-tree.h (store_parm_decls_newstyle): New prototype.
14070 2004-09-02  Geoffrey Keating  <geoffk@apple.com>
14072         * config/rs6000/rs6000.c (expand_block_clear): Use vector
14073         instructions if available.
14074         (expand_block_move): Likewise.
14076 2004-09-03  Jan Hubicka  <jh@suse.cz>
14078         * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
14080 2004-09-02  Mark Mitchell  <mark@codesourcery.com>
14082         * config/arm/symbian.h (LIB_SPEC): Define to empty.
14083         * config/arm/t-symbian (SHLIB_LC): Likewise.
14085 2004-09-02  Paul Brook  <paul@codesourcery.com>
14087         * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
14089 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
14091         * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
14092         (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
14093         (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
14094         (build_mips16_call_stub): Likewise.  Remove daft CALL_INSN checks.
14095         (mips_issue_rate): Remove unreachable abort.
14096         (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
14097         (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
14098         (mips_block_move_straight, print_operand_address, mips_file_start)
14099         (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
14100         (mips_output_conditional_branch, mips_expand_builtin_direct)
14101         (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
14102         * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
14103         with gcc_assert.
14105 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
14107         * config/mips/mips.md (*lea_high64): Change split condition to
14108         flow2_completed.  Add a peephole2 to generate a more parallel version.
14110 2004-09-02  Jan Hubicka  <jh@suse.cz>
14112         * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
14113         GGC.
14115         * ggc-page.c: include tree-flow.h.
14116         (extra_order_size_table): Add stmt_ann_d.
14117         (STAT_LABEL): Rename from ....
14118         (LABEL): ... this one.
14119         * Makefile.in (ggc-page.o): Add dependency.
14121         * ggc-common.c (ggc_force_collect): New global variable.
14122         (loc_description): Add fields "freed", "collected"
14123         (ptr_hash): New static hash
14124         (ptr_hash_entry): New structure.
14125         (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
14126         (ggc_record_overhead): Take ptr argument, record it
14127         (ggc_prune_overhead_list, ggc_free_overhead): New functions.
14128         (cmp_statistics): Imrove sorting.
14129         (dump_ggc_loc_statistics): Output newly collected statistics
14130         * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
14131         (ggc_free): Call ggc_free_overhead.
14132         (ggc_collect): Force collection when asked to be forced.
14133         (ggc_collect): Call ggc_prune_overhead_list.
14134         * ggc.h (ggc_force_collect): Declare
14135         (ggc_record_overhead): Update prototype.
14136         (ggc_free_overhead, ggc_prune_overhead_list): Declare.
14138 2004-09-02  James E Wilson  <wilson@specifixinc.com>
14140         * common.opt (ftrapping-math): Default to on.
14142 2004-09-02  Richard Earnshaw  <rearnsha@arm.com>
14144         * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
14146 2004-09-02  Denis Chertykov  <denisc@overta.ru>
14148         PR target/16884
14149         * config/avr/avr.md ("movmemhi"): Substitute match_dup to
14150         match_scratch.
14151         (*movmemqi_insn): Likewise.
14152         (*movmemhi): Likewise.
14153         (clrmemhi): Likewise.
14154         (*clrmemqi): Likewise.
14155         (*clrmemhi): Likewise.
14157 2004-09-02  Paul Brook  <paul@codesourcery.com>
14159         * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
14160         default_use_cxa_atexit=yes.
14162 2004-09-02  Alan Modra  <amodra@bigpond.net.au>
14164         * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
14165         (struct kernel_old_ucontext): Delete.
14166         (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
14167         (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs.  Only define
14168         when IN_LIGGCC2.
14170 2004-09-02  Richard Sandiford  <rsandifo@redhat.com>
14172         * toplev.c (process_options): Fix typo.
14174 2004-09-01  Richard Henderson  <rth@redhat.com>
14176         PR middle-end/17258
14177         * calls.c (initialize_argument_information): Tighten pass-through
14178         conditions for pass-by-reference.  Remove dead TARGET_EXPR code.
14179         Use build_fold_addr_expr.
14180         (emit_library_call_value_1): Use build_fold_addr_expr.  Remove code
14181         that assumes ADDR_EXPR allocates stack space.
14182         * fold-const.c (build_fold_addr_expr_with_type): Look through
14183         WITH_SIZE_EXPR.
14185 2004-09-01  Dan Nicolaescu  <dann@ics.uci.edu>
14187         * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
14188         * ggc.h (ggc_alloc_rtx): Delete.
14190 2004-09-01  Roger Sayle  <roger@eyesopen.com>
14192         * expmed.c (enum alg_code): Remove long unused enumeration values.
14193         (struct mult_cost): New structure to hold the "score" of a synthetic
14194         multiply sequence, including both a rtx_cost and a latency field.
14195         (MULT_COST_LESS): New macro to compare mult_cost to a constant.
14196         (CHEAPER_MULT_COST): New macro to compare two mult_costs.
14197         (struct algorithm): Change type of cost field to be mult_cost.
14198         (synth_mult): Change type of cost_limit argument to be a
14199         pointer to a mult_cost.  Update all cost comparisons to use the
14200         new mult_cost infrastructure.  For alg_add_factor and
14201         alg_sub_factor operations, latency is lower than the rtx_cost.
14202         (choose_mult_variant):  Update calls to synth_mult.  Perform
14203         cost comparisons using the new mult_cost infrastructure.
14204         (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
14205         to optain the total rtx_cost of a synth_mult "algorithm".
14207 2004-09-01  David Edelsohn  <edelsohn@gnu.org>
14209         * config/rs6000/power4.md: Increase store latency to 12.
14210         * config/rs6000/power5.md: Same.
14212 2004-09-01  James E Wilson  <wilson@specifixinc.com>
14214         PR target/14064
14215         * config/avr/avr.c (avr_unique_section): Delete prototype and
14216         definition.
14217         (TARGET_ASM_UNIQUE_SECTION): Delete.
14219 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
14221         * c-parse.in (primary): Call objc_build_message_expr(),
14222         objc_build_selector_expr(), objc_build_protocol_expr(),
14223         objc_build_encode_expr() and objc_build_string_object() instead of
14224         build_message_expr(), build_selector_expr(), build_protocol_expr(),
14225         build_encode_expr() and build_objc_string_object(), respectively.
14226         (component_decl_list2): Call objc_get_class_ivars() instead of
14227         get_class_ivars_from_name().
14228         (keyworddecl): Call objc_build_keyword_decl() instead of
14229         build_keyword_decl().
14230         (receiver): Call objc_get_class_reference() instead of
14231         get_class_reference().
14232         (reswords): Add blank line before @@ifobjc section, for clarity.
14234 2002-09-01  Fariborz Jahanian <fjahanian@apple.com>
14236         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
14237         to Altivec vetors.
14239 2004-09-01  Wu Yongwei  <adah@sh163.net>
14240             Danny Smith  <dannysmith@users.sourceforge.net>
14242         * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
14243         not Windows 'DWORD'.
14244         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
14245         (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
14246         (__gthr_win32_recursive_mutex_init_function): Add prototype for
14247         __GTHREAD_HIDE_WIN32API case..
14248         (__gthr_win32_recursive_mutex_lock): Likewise.
14249         (__gthr_win32_recursive_mutex_trylock): Likewise.
14250         (__gthr_win32_recursive_mutex_unlock): Likewise.
14251         (__gthread_recursive_mutex_init_function); Add definition for
14252         __GTHREAD_HIDE_WIN32API case.
14253         (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
14254         * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
14255         call to InterlockedDecrement.
14257 2004-09-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14259         * tree-tailcall.c (find_tail_calls): Also fail is statement has
14260         volatile operands.
14262         * tree-ssa.c (propagate_into_addr): Properly test for LHR.
14264         * doc/c-tree.texi: Document new operands for ARRAY_REF and
14265         COMPONENT_REF.
14267 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14269         * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
14270         * common.opt (fspeculative-prefetching): New.
14271         * flags.h (flag_speculative_prefetching_set): Declare.
14272         * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
14273         values.
14274         * opts.c (flag_sepculative_prefetching_set): New variable.
14275         (common_handle_option): Handle -fspeculative-prefetching.
14276         * passes.c (rest_of_compilation): Ditto.
14277         * profile.c (instrument_values, compute_value_histograms, branch_prob):
14278         Use vectors instead of arrays.
14279         * toplev.c (process_options): Handle -fspeculative-prefetching.
14280         * rtl-profile.c: Include ggc.h.
14281         (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
14282         rtl_gen_one_value_profiler_no_edge_manipulation,
14283         rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
14284         argument changed.
14285         * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
14286         tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
14287         argument changed.
14288         * value-prof.c: Include ggc.h.
14289         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
14290         macros.
14291         (insn_prefetch_values_to_profile, find_mem_reference_1,
14292         find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
14293         speculative_prefetching_transform): New.
14294         (value_profile_transformations): Call speculative_prefetching_transform.
14295         (insn_values_to_profile): Call insn_prefetch_values_to_profile.
14296         (insn_divmod_values_to_profile, rtl_find_values_to_profile,
14297         tree_find_values_to_profile, find_values to profile): Use vectors
14298         instead of arrays.
14299         (free_profiled_values): Removed.
14300         * value-prof.h (struct histogram_value): Renamed to
14301         struct histogram_value_t.
14302         (histogram_value, histogram_values): New types.
14303         (find_values_to_profile): Declaration changed.
14304         (free_profiled_values): Removed.
14305         (struct profile_hooks): Type of argument of the hooks changed to
14306         histogram_value.
14307         * doc/invoke.texi (-fspeculative-prefetching): Document.
14309 2004-09-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14311         PR rtl-optimization/16408
14312         * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
14314 2004-09-01  Richard Henderson  <rth@redhat.com>
14316         * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
14317         (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
14319 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14321         * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
14323 2004-09-01  Mike Stump  <mrs@apple.com>
14325         * config/darwin.c (machopic_symbol_defined_p): In addition to
14326         being SYMBOL_REF_LOCAL_P, a symbol must also be
14327         ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
14328         defined in this output file, or translation unit in the case
14329         of IMA not being used.
14330         (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
14331         never need .indirect_symbol when indirecting.
14333 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14335         * Makefile.in (bb-reorder.o): Add several dependencies.
14337 2004-09-01  Jakub Jelinek  <jakub@redhat.com>
14339         * fold-const.c (operand_equal_p): Require equal sign also for
14340         FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
14342 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
14344         * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
14345         for use in configargs.h.  Put the cname in a separate variable.  Use
14346         that to set target_cpu_default2.
14348 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
14349             Nick Clifton  <nickc@redhat.com>
14351         * config/sh/sh.md ("length"): Increase branch length when
14352         SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
14353         constant, 2 byte for aligning the constant.
14355 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
14357         * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
14358         CPU.
14359         (arm7tdmi-s): New CPU name.
14360         * arm/arm.c (ARM_CORE): Update for new format.
14361         * arm/arm.h (ARM_CORE): Likewise.
14362         * arm/gentune.sh: Update for extra field.
14363         * config.gcc: Likewise.
14364         * arm/arm-tune.md: Regenerate.
14365         * doc/invoke.texi: Document the real processor names for ARM cpus.
14367 2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
14369         * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
14370         (floatdidf): New functions.
14371         * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
14372         (floatdisf): New functions.
14373         * t-arm-elf: Use them.
14375 2004-09-01  Ziemowit Laski  <zlaski@apple.com>
14377         * c-common.h (lookup_interface): Remove prototype.
14378         (is_class_name): Rename to objc_is_class_name.
14379         (lookup_objc_ivar): Rename to objc_lookup_ivar.
14380         (get_current_scope): Rename to objc_get_current_scope.
14381         * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
14382         * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
14383         (yylexname): Call objc_is_class_name() instead of is_class_name().
14384         * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
14385         instead of lookup_objc_ivar().
14386         * stub-objc.c (lookup_interface): Remove stub.
14387         (is_class_name): Rename to objc_is_class_name.
14388         (lookup_objc_ivar): Rename to objc_lookup_ivar.
14390 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
14392         * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
14393         * config/arm/lib1funcs.asm: Do not include supplemental .S files
14394         when compiling for Symbian.
14395         * config/arm/symbian.h (RENAME_LIBRARY): New macro.
14396         (TARGET_OS_CPP_BUILTINS): Likewise.
14397         * config/arm/t-symbian (LIB1ASMFUNCS): Define.
14399 2004-08-31  Stan Shebs  <shebs@apple.com>
14401         * toplev.c (process_options): Ensure debug_hooks is initialized.
14403 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
14405         * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
14406         * target.h (cxx): Add export_class_data.
14407         * config/arm/arm.c (arm_cxx_export_class_data): New function.
14408         (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
14409         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
14411 2004-08-31  Kaz Kojima  <kkojima@gcc.gnu.org>
14413         * config/sh/sh.c (output_branch): Check the insn length possibly
14414         in the delayed slot.
14416 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14418         * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
14419         blank after ')'.
14420         (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
14422         * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
14423         (c_sizeof_of_alignof_type): Likewise.
14424         * expr.c (array_ref_element_size): Likewise.
14425         (highest_pow2_factor_for_target): Likewise.
14426         * gimplify.c (canonicalize_addr_expr): Likewise.
14427         (gimplify_compound_lval): Likewise.
14428         * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
14429         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
14430         * varasm.c (assemble_variable): Likewise.
14431         (output_constant_def_contents): Alignments are unsigned.
14433 2004-08-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14434             Jeff Law  <law@redhat.com>
14436         * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
14437         gets modified.
14439 2004-08-31  Mark Mitchell  <mark@codesourcery.com>
14441         * hooks.c (hook_bool_void_true): New function.
14442         * hooks.h (hook_bool_void_true): Declare.
14443         * target-def.h (TARGET_CXX): Add
14444         TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
14445         * target.h (struct cxx): Add key_method_may_be_inline.
14446         * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
14447         function.
14448         (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
14449         * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
14450         __THUMB_INTERWORK.
14452 2004-08-31  Denis Chertykov  <denisc@overta.ru>
14454         PR target/15417
14455         * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
14456         frame pointer register only in Pmode while reload in progress.
14458 2004-08-31  Stephane Carrez  <stcarrez@nerim.fr>
14460         PR target/15334
14461         * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
14462         because it breaks the 32-bit shift patterns that rely on a match_dup.
14464 2004-08-31  Matt Austern  <austern@apple.com>
14466         * config/darwin.c (darwin_make_decl_one_only): Allocate section
14467         names once per compilation, instead of once per symbol.
14469 2004-08-31  Paolo Bonzini  <bonzini@gnu.org>
14471         * Makefile.in (build_subdir): New substitution.
14472         (fixinc.sh): Simplify heavily since fixincludes is already built.
14473         (stmp-fixinc): Depend on specs.ready.
14474         (install-mkheaders): Use new location of fixincludes.
14475         (clean): Do not descend into fixinc.
14476         (FORBUILD): Replace with ../$(build_subdir).
14477         * configure.ac (build_subdir): Substitute.
14478         (FORBUILD): Do not set.
14479         (all_outputs): Remove fixinc/Makefile.
14480         (default commands): Do not create links in fixinc.
14481         * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
14482         the fixincludes configuration steps and substituting
14483         @FIXINCL@ in fixinc.in.
14484         * fixinc.in: New, from fixinc/fixincl.sh.
14486         * fixinc/*: Removed.
14488 2004-08-31  Joseph S. Myers  <jsm@polyomino.org.uk>
14490         * attribs.c (strip_attrs): Remove.
14491         (split_specs_attrs): Move ...
14492         * c-decl.c: ... to here.
14493         * tree.h (split_specs_attrs, strip_attrs): Remove.
14494         * c-tree.h (split_specs_attrs): Declare.
14496 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
14498         * read-rtl.c: Disable RTL checking.
14499         (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
14501 2004-08-31  Richard Sandiford  <rsandifo@redhat.com>
14503         * config/mips/mips.md (fcond): New code macro and attribute.
14504         (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
14505         (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
14506         (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
14508 2004-08-30  Mark Mitchell  <mark@codesourcery.com>
14510         Revert:
14511         2004-08-29  Mark Mitchell  <mark@codesourcery.com>
14512         PR rtl-optimization/16590
14513         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
14515 2004-08-30  Andrew Pinski  <apinski@apple.com>
14517         * hard-reg-set.h:
14518         s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
14519         * ChangeLog: Fix previous ChangeLog entry.
14521         PR rtl-opt/13987
14522         * config.host (use_long_long_for_widest_fast_int): New, default is
14523         off.
14524         (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
14525         * configure.ac: If use_long_long_for_widest_fast_int, then
14526         define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
14527         * configure: Regenerate.
14528         * config.in: Regenerate.
14529         * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
14530         New: widest integer type supported efficiently in hardware for the
14531         host.
14532         * sbitmap.h (SBITMAP_ELT_BITS): Define based on
14533         HOST_BITS_PER_WIDEST_FAST_INT.
14534         (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
14535         * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
14536         HOST_WIDEST_FAST_INT
14537         instead of HOST_WIDE_INT.
14538         (HARD_REG_SET_LONGS): Likewise.
14539         (UHOST_BITS_PER_WIDE_INT): Likewise.
14540         Change the checks for the fast cases to be based on
14541         HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
14543 2004-08-30  Steven Bosscher  <stevenb@suse.de>
14545         * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
14546         not the pointers.
14548 2004-08-30  Geoffrey Keating  <geoffk@apple.com>
14550         PR 12738
14551         PR 17205
14552         Radar 3460526
14553         Radar 3775729
14554         * c-decl.c (grokdeclarator): Produce error for 'static' on local
14555         function declaration.
14557 2004-08-30  Richard Henderson  <rth@redhat.com>
14559         * expr.c (array_ref_element_size): Force aligned_size back to
14560         sizetype.
14561         (component_ref_field_offset): Similarly for aligned_offset.
14562         * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
14563         low-bound, element-size, field-offset fields rather than
14564         computed values.
14566 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
14568         * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
14569         redundant code.
14571 2004-08-30  Joseph S. Myers  <jsm@polyomino.org.uk>
14573         * c-tree.h (struct language_function): Add arg_info element.
14574         * c-decl.c (current_function_arg_info): New.
14575         (grokdeclarator, store_parm_decls): Use it instead of
14576         DECL_ARGUMENTS.
14577         (c_push_function_context, c_pop_function_context): Save and
14578         restore it.
14580 2004-08-30  Richard Henderson  <rth@redhat.com>
14582         * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
14583         COMPONENT_REF to pointer arithmetic.
14584         * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
14585         constant "c" as a valid constant initializer.  Allow narrowing of
14586         differences against the same base object, for any base object.
14588 2004-08-30  Richard Henderson  <rth@redhat.com>
14590         * expr.c (expand_expr_addr_expr): New.
14591         (expand_expr_real_1) <case ADDR_EXPR>: Use it.
14593 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
14595         * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
14596         (mips_fp_condition): New enum.
14597         (mips_fp_conditions): New array.
14598         (print_fcc_operand): Delete.
14599         (print_operand): Remove %V, %v and %Q.  Redefine %Z so that it prints
14600         the operand and comma if and only if ISA_HAS_8CC.  Add %Y.
14601         (builtin_description): Add "cond" field.
14602         (DIRECT_BUILTIN): Initialize it.
14603         (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
14604         into INSN and CODE.  Initialize the "cond" field.
14605         (CMP_BUILTINS): Update accordingly.
14606         (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
14607         (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
14608         mips_fp_condition as argument.  Make it the final operand of the
14609         comparison instruction.
14610         (mips_expand_builtin): Update accordingly.
14611         * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
14612         (UNSPEC_C, UNSPEC_CABS): New constants.  Shuffle others to fill
14613         the gaps.
14614         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
14615         Don't use the 'Q' operand prefix; just print the operand normally.
14616         (mips_cabs_*, mips_c_*): Delete, replacing with...
14617         (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
14618         patterns.  Split the 4s versions into 2 ps patterns after reload.
14620 2004-08-30  Richard Henderson  <rth@redhat.com>
14622         * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
14623         assuming an ADDR_EXPR is non-null.
14625 2004-08-30  Jason Merrill  <jason@redhat.com>
14627         * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
14629 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
14631         * alias.c (mems_in_disjoint_alias_sets_p, record_alias_subset,
14632         record_set, rtx_equal_for_memref_p, init_alias_analysis): Use
14633         gcc_assert and gcc_unreachable instead of abort.
14634         * alloc-pool.c (abort, fancy_abort): Remove.
14635         (create_alloc_pool, free_alloc_pool, pool_alloc, pool_free): Use
14636         gcc_assert or gcc_unreachable.
14637         * attribs.c (init_attributes, decl_attributes): Likewise.
14638         * bb-reorder.c (FREE, find_traces_1_round, copy_bb,
14639         mark_bb_for_unlikely_executed_section,
14640         add_labels_and_missing_jumps, fix_crossing_conditional_branches,
14641         fix_crossing_unconditional_branches):  Likewise.
14642         * bitmap.c (bitmap_first_set_bit, bitmap_last_set_bit,
14643         bitmap_operation):  Likewise.
14644         * bt-load.c (insn_sets_btr_p, augment_live_range,
14645         move_btr_def):  Likewise.
14646         * builtins.c (c_readstr, expand_builtin_longjmp, apply_args_size,
14647         apply_result_size, expand_builtin_apply, expand_builtin_mathfn,
14648         expand_builtin_mathfn_2, expand_builtin_mathfn_3,
14649         builtin_memcpy_read_str, expand_movstr, expand_builtin_stpcpy,
14650         expand_builtin_memcmp, expand_builtin_args_info,
14651         std_gimplify_va_arg_expr, expand_builtin_unop,
14652         expand_builtin_fputs, expand_builtin_profile_func,
14653         expand_builtin_fork_or_exec, fold_builtin_bitop,
14654         fold_builtin_classify, fold_builtin_fputs): Likewise.
14656 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
14658         * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
14659         * gcov.c (abort): Remove undef.
14661         * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
14662         (struct tree_binfo): Remove primary field.
14664 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
14666         * fixinc/Makefile.in (machname.h): Remove.
14667         (fixincl.x): Do not pass $@ to genfixes.
14668         * fixinc/genfixes: Remove code to produce machname.h.
14669         * fixinc/fixincl.sh: Move it here instead.
14670         * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
14671         instead check if pz_mn_name_pat is NULL.  Make mn_get_regexps
14672         return a bool indicating whether pz_mn_name_pat is NULL.
14673         * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
14674         Declare extern C variables for the ENV_TABLE.
14675         * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
14676         instead use the result of mn_get_regexps.
14677         * fixinc/fixtests.c: Likewise.
14679 2004-08-30  Paolo Bonzini  <bonzini@gnu.org>
14681         * configure.ac: Do not run fixincludes after stage1 during
14682         toplevel bootstrap.
14683         * configure: Regenerate.
14685 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
14687         * sched-deps.c (get_condition): Partially revert previous, by never
14688         trying to extract the condition from a condjump.
14690 2004-08-30  Nathan Sidwell  <nathan@codesourcery.com>
14692         * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
14693         (handle_visibility_attribute, c_determine_visibility): Likewise.
14694         * c-common.h (my_friendly_assert): Remove.
14696 2004-08-30  Richard Sandiford  <rsandifo@redhat.com>
14698         * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
14699         (UNSPEC_{RSQRT,RECIP}[12]): New constants.
14700         (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
14701         * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
14702         (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
14704 2004-08-30  Diego Novillo  <dnovillo@redhat.com>
14706         * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
14707         in COMPONENT_REF nodes.
14709 2004-08-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
14711         PR c++/15378
14712         * c-opts.c (c_common_handle_option): <case OPT_Werror> set
14713         global_dc->warning_as_error_requested.
14714         * diagnostic.c (diagnostic_initialize): Tidy.
14715         * diagnostic.h (diagnostic_context::x_data): Remove
14716         (diagnostic_context::issue_warnings_are_errors_message): Rename
14717         from warnings_are_errors_message.
14718         (diagnostic_context::warning_as_error_requested): New.
14720 2004-08-30  Richard Earnshaw  <rearnsha@arm.com>
14722         * sched-deps.c (get_condition): Fix breakage in previous patch.
14724 2004-08-30  Paul Brook  <paul@codesourcery.com>
14726         * doc/install.texi: Fix broken mpfr link.
14728 2004-08-29  David O'Brien  <obrien@FreeBSD.org>
14730         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
14731         other FreeBSD platforms.
14733 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
14735         * arm.h (REVERSE_CONDITION): Define.
14736         (REVERSIBLE_CC_MODE): All comparisons are now reversible.
14738 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
14740         * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
14741         just the codes, call reversed_comparison_code ().
14742         (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
14743         (not_reg_cond): Use reversed_comparison_code.
14744         (and_reg_cond): Likewise.
14745         * ifcvt.c (cond_exec_process_if_block): Likewise.
14746         * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
14748 2004-08-29  Richard Earnshaw  <rearnsha@arm.com>
14750         * sched-deps.c (get_condition): Rewrite using jump support functions.
14751         Use reversed_comparison_code.
14752         (conditions_mutex_p): Use reversed_comparison_code.
14754 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14756         * config/mips/mips.c (override_options): Disable hot/cold partitioning
14757         for MIPS16.
14759 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14761         * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
14762         (mips_function_type): Move to mips.c.
14763         * config/mips/mips.c (mips_builtin_type): New enum.
14764         (builtin_description): Replace code and ftype with builtin_type
14765         and function_type.
14766         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
14767         (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
14768         (CODE_FOR_mips_abs_ps): Define.
14769         (mips_bdesc): Use new macros.
14770         (mips_expand_builtin): Use builtin_type.  Update calls to subroutines.
14771         (mips_init_builtins): Use the mips_bdesc[] index as the function code.
14772         (mips_expand_builtin_direct): New function.
14773         (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
14774         builtin.  Replace boolean parameter with builtin_type.
14775         (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
14776         (mips_expand_4s_compare_builtin): Delete, replacing with...
14777         (mips_expand_builtin_compare): ...this new function.
14779 2004-08-29  Mark Mitchell  <mark@codesourcery.com>
14781         PR rtl-optimization/16590
14782         * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
14784 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
14786         * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
14787         * tree-ssa-propagate.c: Fix documentation.
14789 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14791         * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
14792         (mov[sd]fcc): Likewise.
14794 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14796         * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
14798 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14800         * config/mips/mips.md (divide_condition): New mode attribute.
14801         (div[sd]f3, *div[sd]f3): Use it.  Redefine using :SCALARF.
14802         (sqrt[sd]f3): Redefine using SCALARF.
14803         (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise.  Name formerly unnamed
14804         patterns.
14806 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14808         * config/mips/mips.md (ANYF, SCALARF): New mode macros.
14809         (loadx, storex, fmt, UNITMODE): New mode attributes.
14810         (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
14811         (mul[sd]f3): Redefine using :SCALARF.
14812         (*mul[sd]f3): Renamed from mul[sd]f3_internal.  Use :SCALARF.
14813         (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
14814         (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns.  Use :ANYF.
14815         Check TARGET_FUSED_MADD for V2SF too.
14816         (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
14817         were already named.
14818         (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
14819         (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
14821 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14823         * config/mips/mips.c (mips_init_builtins): Simplify.  Only create
14824         V2SF_type_node if it will be needed.
14826 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14828         * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
14829         * config/mips/mips.c (mips_prepare_builtin_arg): New function.
14830         (mips_prepare_builtin_target): New function.
14831         (mips_expand_builtin): Use them.  Update calls to subroutines.
14832         (mips_expand_ps_cond_move_builtin): Use the new functions.  Replace
14833         cmp_choice with a boolean argument to select between movt and movf.
14834         Take the comparison's icode as an argument, not the function's fcode.
14835         (mips_expand_compare_builtin): New function.  Rename existing function
14836         to mips_expand_scalar_compare_builtin.
14837         (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
14838         (mips_expand_ps_compare_builtin): Use the new functions.  Take the
14839         comparison's icode as an argument, not the builtin's fcode.
14841 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14843         * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
14844         (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
14845         registers are false and -1 if all registers are true.
14846         (mips_expand_ps_compare_builtin): Likewise CCV2.  Use subregs for
14847         MIPS_CMP_UPPER and MIPS_CMP_LOWER.
14848         * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
14849         (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
14850         (bc1any2t, bc1any2f): Likewise CCV2.
14851         (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
14853 2004-08-29  Richard Sandiford  <rsandifo@redhat.com>
14855         * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
14856         * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
14857         UNSPEC rather than an IF_THEN_ELSE.
14858         * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
14859         mips_cond_move_tf_ps by name.
14861 2004-08-29  Chao-ying Fu  <fu@mips.com>
14862             James E Wilson  <wilson@specifixinc.com>
14864         * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
14865         8 byte size and alignment.  Give CCV4 16 byte size and alignment.
14866         * config/mips/mips-ps-3d.md: New file.
14867         * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
14868         TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
14869         (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
14870         (mips_output_move): Emit "mov.ps" for V2SFmode.
14871         (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
14872         MODE_VECTOR_FLOAT.
14873         (override_options): Check if TARGET_MIPS3D and there was an explicit
14874         !TARGET_PAIRED_SINGLE_FLOAT.  Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
14875         Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
14876         TARGET_PAIRED_SINGLE_FLOAT is true.  Check if the ISA supports
14877         TARGET_PAIRED_SINGLE_FLOAT.  Allow MODE_VECTOR_FLOAT in fp registers,
14878         and allow CCV2 and CCV4 to occupy two and four CC registers.
14879         (print_fcc_operand): New function.
14880         (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC.  Modify
14881         %Z to call print_fcc_operand.
14882         (mips_function_value): Handle MODE_VECTOR_FLOAT.
14883         (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
14884         (mips_vector_mode_supported_p): New function.
14885         (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
14886         (builtin_description): New struct.
14887         (mips_bdesc): New array of struct builtin_description.
14888         (mips_expand_builtin, mips_init_builtins,
14889         mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
14890         mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
14891         functions.
14892         * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
14893         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
14894         (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
14895         (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
14896         "-mips3d", and "-mno-mips3d".
14897         (ASM_SPEC): Map -mips3d to -mips3d in gas.
14898         (EXTRA_CONSTRAINT_Y): New macro.
14899         (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT.  Add new
14900         multi-letter constraint 'Y'.
14901         (CONSTRAINT_LEN): New macro.
14902         (enum mips_builtins): New for MIPS builtin functions.
14903         (enum mips_function_type): New for the types of MIPS builtin functions.
14904         (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
14905         * config/mips/mips.md: New constants for paired single and MIPS-3D
14906         instructions.  Include the new mips-ps-3d.md file.
14907         (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
14908         movv2sf_hardfloat_64bit): New named patterns.
14909         (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
14910         nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
14911         sdxc1_v2sf_di): New unnamed patterns.
14912         * config/mips/predicates.md (const_0_operand, const_1_operand): Add
14913         const_vector support.
14914         (const_0_or_1_operand): New predicate.
14915         * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
14917 2004-08-29  Diego Novillo  <dnovillo@redhat.com>
14919         * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
14920         (tree-ssa-propagate.o): New rule.
14921         (GTFILES): Add tree-ssa-propagate.c.
14922         * tree-flow.h (struct stmt_ann_d): Remove field
14923         in_ccp_worklist.
14924         * tree-ssa-propagate.c: New file.
14925         * tree-ssa-propagate.h: New file.
14926         * tree-ssa-ccp.c: Re-write to use the routines from
14927         tree-ssa-propagate.c.
14929 2004-08-28  Andrew Pinski  <apinski@apple.com>
14931         * tree-ssa-loop.c: Remove extra include of basic-block.h.
14933 2004-08-28  Ziemowit Laski  <zlaski@apple.com>
14935         * c-common.h: Update comments about ObjC/ObjC++ entry points.
14936         (objc_is_reserved_word): New prototype.
14937         (get_current_scope, objc_mark_locals_volatile): Move prototypes to
14938         separate section; these are call-backs.
14939         * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
14940         ObjC/ObjC++ "@" keywords.
14941         * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
14942         prototypes; they already live in c-common.h.
14943         * stub-objc.c: Update copyright notice.
14944         (objc_is_reserved_word): New stub.
14946 2004-08-28  Nathan Sidwell  <nathan@codesourcery.com>
14948         * system.h (gcc_assert): Remove __builtin_expect.  Evaluate EXPR
14949         even when not checking.
14951 2004-08-27  Jason Merrill  <jason@redhat.com>
14953         PR c++/13684
14954         * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
14955         (gimple_push_cleanup): Add eh_only parm.
14956         (gimplify_target_expr): Pass it.
14957         * c.opt (-fno-threadsafe-statics): New option.
14958         * c-opts.c (c_common_handle_option): Handle it.
14959         * c-common.h (flag_threadsafe_statics): Declare it.
14960         * c-common.c (flag_threadsafe_statics): Record it.
14961         * doc/invoke.texi: Document it.
14962         * tsystem.h (_GNU_SOURCE): Define.
14963         * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
14964         (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
14965         (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
14966         (__gthread_recursive_mutex_init_function): New fn.
14967         (__gthread_recursive_mutex_lock): New fn.
14968         (__gthread_recursive_mutex_trylock): New fn.
14969         (__gthread_recursive_mutex_unlock): New fn.
14970         * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
14971         * gthr-win32.h, gthr-vxworks.h: Likewise.
14972         * gthr.h: Document.
14974 2004-08-27  David Edelsohn  <edelsohn@gnu.org>
14976         * config/rs6000/rs6000.c (rs6000_override_options): Increase
14977         maximum skip to 15.  Set function alignment, jump alignment, and
14978         loop alignment to 16 for processors that form dispatch groups.
14979         (rs6000_rtx_costs): outer_code is used.
14981 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
14983         * stor-layout.c (sizetype_set): Remove.
14984         (set_sizetype): Don't test or set it.
14986         * tree.h (size_int_type): Remove.
14987         * fold-const.c: Do not #include gt-fold-const.h.
14988         (size_htab_hash, size_htab_eq): Remove.
14989         (size_int_kind): Use build_int_cst.
14990         (new_const, size_htab): Remove.
14991         (size_int_type): Remove.
14992         (round_up): Use build_int_cst.
14993         (round_down): Likewise. Remove spurious constant build.
14995 2004-08-27  Nathan Sidwell  <nathan@codesourcery.com>
14997         * configure.ac: Add ENABLE_ASSERT_CHECKING control.
14998         Add is_release variable, use it for --enable-werror and
14999         --enable-checking defaults.
15000         * system.h (gcc_assert, gcc_unreachable): New.
15001         * doc/install.texi (--enable-checking): Update.
15002         * configure, config.in: Rebuilt.
15004 2004-08-26  Richard Sandiford  <rsandifo@redhat.com>
15006         * rtl.h (read_rtx): Change prototype.
15007         * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
15008         line number.  Return true on success.
15009         * gensupport.c (process_include, init_md_reader_args_cb): Adjust
15010         callers accordingly.
15012 2004-08-26  Richard Henderson  <rth@redhat.com>
15014         * c-typeck.c (build_offsetof): Remove.
15015         * c-tree.h (build_offsetof): Remove.
15016         * c-common.c (fold_offsetof_1, fold_offsetof): New.
15017         * c-common.h (fold_offsetof): Declare.
15018         * c-parse.in (offsetof_base): New.
15019         (offsetof_member_designator): Use it.  Build references, not just
15020         a tree list.
15021         (primary): Use fold_offsetof, not build_offsetof.
15023 2004-08-26  Richard Henderson  <rth@redhat.com>
15025         * tree.c (staticp): Return the static object.
15026         * tree.h (staticp): Update decl.
15027         * langhooks.h (struct lang_hooks): Change staticp return type to tree.
15028         * langhooks.c (lhd_staticp): Return NULL_TREE.
15029         * langhooks-def.h (lhd_staticp): Update decl.
15030         * c-common.c (c_staticp): Return the static object.
15031         * c-common.h (c_staticp): Update decl.
15033 2004-08-26  Richard Henderson  <rth@redhat.com>
15035         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
15036         modes.
15038 2004-08-26  Joseph S. Myers  <jsm@polyomino.org.uk>
15040         PR c/13801
15041         * c-decl.c (struct c_binding): Add type and inner_comp fields.
15042         (bind): Set type and inner_comp fields.
15043         (pop_scope): Restore type of decl to the correct type from an
15044         outer scope.  Give error when popping file scope for incomplete
15045         arrays completed incompatibly with default initialization in an
15046         inner scope.
15047         (diagnose_mismatched_decls): Handle externs with initializers at
15048         block scope.
15049         (pushdecl): Set type of external declaration at block scope based
15050         only on the visible declarations.  Save type when changing the
15051         type of a declaration.  Merge an external declaration at block
15052         scope with a visible static declaration at file scope.
15053         (implicitly_declare): Give recycled old declaration the new type
15054         except for incompatible declarations of built-in functions, saving
15055         the old type.
15057 2004-08-26  Ziemowit Laski  <zlaski@apple.com>
15059         * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
15061 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
15063         * tree-alias-common.c (gate_pta): New function.
15064         (pass_build_pta): Use it.
15065         (pass_del_pta): Use it.
15066         (delete_alias_vars): Don't check flag_tree_points_to.
15068 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
15070         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
15071         TFmode as additional register mode cloberred by call.
15073 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
15075         * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
15076         parallel pattern for library call returning DImode in
15077         mixed mode.
15079 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
15081         * config/rs6000/rs6000.c (function_arg): Generate parallel
15082         pattern for more split args.
15084 2004-08-26  Fariborz Jahanian  <fjahanian@apple.com>
15086         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
15087         either gen_movdi_di_update or gen_movdi_si_update depending on
15088         target mode.
15089         * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
15090         to generate two versions.
15092 2004-08-26  Daniel Berlin  <dberlin@dberlin.org>
15094         * Makefile.in (lambda-code.o): New.
15095         (lambda-trans.o): Ditto.
15096         (TREE_DATA_REF_H): Ditto.
15097         (LAMBDA_H): Ditto.
15098         (lambda-mat.o): Use LAMBDA_H.
15099         (tree-data-ref.o): Ditto.
15100         * lambda-code.c: New file.  Lambda code generation algorithm.
15101         * lambda-trans.c: Ditto. Lambda transformation matrix support.
15102         * lambda.h: Add lambda loop structures.
15103         Add lambda loopnest structures.
15104         Add lambda body vector structure.
15105         Add lambda linear expression structures.
15106         Add prototypes for functions in new files.
15107         * lambda-mat.c: Include tree.h
15109 2004-08-26  Daniel Berlin <dberlin@dberlin.org>
15110             Sebastian Pop  <pop@cri.ensmp.fr>
15112         * tree-data-ref.h: Include lambda.h
15113         (free_dependence_relation): Declared here.
15114         (free_dependence_relations): Ditto.
15115         (free_data_refs): Ditto.
15116         * tree-data-ref.c (free_dependence_relation): New function.
15117         (free_dependence_relations): Ditto.
15118         (free_data_refs): Ditot.
15119         (analyze_all_data_dependences): Free datarefs and dependence_relations.
15120         (build_classic_dist_vector): Store in the dependence_relations the
15121         information. Each arc in the dependence_relations graph is labelled
15122         with the distance and direction vectors.
15123         (build_classic_dir_vector): Ditto.
15124         (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
15125         Now computes again the whole dependence graph including read-read
15126         relations.
15127         (compute_data_dependences_for_loop): Now dependence_relations contains
15128         all the data, and thus it doesn't need to initialize the classic_dir
15129         and classic_dist vectors.
15130         (analyze_all_data_dependences): Adjusted for using the new interface of
15131         compute_data_dependences_for_loop.  Remove the statistics dump.
15133 2004-08-26  Bob Wilson  <bob.wilson@acm.org>
15135         * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
15136         (xtensa_expand_block_move): Update comment.
15137         (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
15139 2004-08026  Richard Earnshaw  <rearnsha@arm.com>
15141         PR target/13506
15142         * toplev.c (crash_signal): If we crashed while emitting
15143         a user asm, then die more gracefully.
15145 2004-08-26  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
15147         PR target/17119.
15148         * config/m32r.c (gen_compare): Use reg_or_int16_operand when
15149         checking for a valid constant, regardless of sign.
15151 2004-08-25  Richard Henderson  <rth@redhat.com>
15153         PR target/16974
15154         * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
15155         if the constant satisfies add_operand.
15157 2004-08-25  Richard Henderson  <rth@redhat.com>
15159         PR debug/10695
15160         * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
15161         (alpha_expand_prologue): Handle >32-bit frames.  Generate proper
15162         unwind info for >16-bit frames.
15164 2004-08-25  Richard B. Kreckel  <richard.kreckel@framatome-anp.com>
15166         PR target/17171
15167         * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
15169 2004-08-25  Richard Henderson  <rth@redhat.com>
15171         * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
15172         (TARGET_CANNOT_FORCE_CONST_MEM): New.
15174 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
15176         * doc/tree-ssa.texi: Document new operand iterator.
15178 2004-08-26  Alan Modra  <amodra@bigpond.net.au>
15180         PR target/16480
15181         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
15182         on "(mem (symbol_ref ..))" rtl.  Look at LO_SUM base regs as well
15183         as PLUS base regs.
15185 2005-08-28  Paul Brook  <paul@codesourcery.com>
15187         * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
15188         -mfpu=vfp -march=armv5t
15189         * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
15191 2004-08-25  Richard Henderson  <rth@redhat.com>
15193         * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
15194         * target.h (struct gcc_target): Add scalar_mode_supported_p.
15195         * targhooks.c (default_scalar_mode_supported_p): New.
15196         * targhooks.h (default_scalar_mode_supported_p): Declare.
15197         * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
15199         * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
15200         before attempting to create types.  Tidy.
15201         * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
15203         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
15204         (TARGET_SCALAR_MODE_SUPPORTED_P): New.
15206 2004-08-25  Richard Henderson  <rth@redhat.com>
15208         * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
15209         set REAL_MODE_FORMAT for TFmode.
15211 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
15213         * c-decl.c (grokparm): New function.
15214         * c-tree.h (grokparm): New prototype.
15216 2004-08-25  Andrew MacLeod  <amacleod@redhat.com>
15218         * tree-ssa-operands.h (struct ssa_operand_iterator_d): New.  SSA operand
15219         iterator controlling structure.
15220         (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
15221         SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
15222         SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New.  Operand
15223         iterator flags.
15224         (FOR_EACH_SSA_TREE_OPERAND): New.  Iterate over operands as trees.
15225         (FOR_EACH_SSA_USE_OPERAND): New.  Iterate over operands as uses.
15226         (FOR_EACH_SSA_DEF_OPERAND): New.  Iterate over operands as defs.
15227         (FOR_EACH_SSA_MAYDEF_OPERAND): New.  Iterate over V_MAY_DEFs.
15228         * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
15229         Empty operand pointers.
15230         * tree-flow-inline.h (op_iter_done): New.  Return true if finished.
15231         (op_iter_next_use): New.  Return next use_operand_p.
15232         (op_iter_next_def): New.  Return next def_operand_p.
15233         (op_iter_next_tree): New.  Return next operands as a tree.
15234         (op_iter_init): New.  Initialize an iterator structure.
15235         (op_iter_init_use): New.  Initialize structure and get the first use.
15236         (op_iter_init_def): New.  Initialize structure and get the first def.
15237         (op_iter_init_tree): New.  Initialize structure and get the first tree.
15238         (op_iter_next_maydef): New.  Return next V_MAY_DEF operands.
15239         (op_iter_init_maydef): New.  Initialize structure and get the first
15240         V_MAY_DEF operands.
15241         * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
15242         * tree-dfa.c (compute_immediate_uses_for_stmt,
15243         redirect_immediate_uses): Use new operand iterator.
15244         (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
15245         (mark_new_vars_to_rename): Use new operand iterator.  Count virtual
15246         operands instead of using *_disappeared_p routines.
15247         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
15248         ssa_rewrite_stmt): Use new operand iterator.
15249         * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
15250         rewrite_trees): Use new operand iterator.
15251         * tree-pretty-print.c (dump_vops): Use new operand iterator.
15252         * tree-sra.c (mark_all_v_defs): Use new operand iterator.
15253         * tree-ssa-alias.c (compute_points_to_and_addr_escape,
15254         dump_points_to_info): Use new operand iterator.
15255         * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
15256         replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
15257         operand iterator.
15258         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
15259         propagate_necessity): Use new operand iterator.
15260         * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
15261         (register_definitions_for_stmt): Use new operand iterator.  Take stmt as
15262         a parameter instead of a stmt_ann_t.
15263         * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
15264         build_tree_conflict_graph): Use new operand iterator.
15265         * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
15266         rewrite_mem_refs): Use new operand iterator.
15267         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
15268         check_loop_closed_ssa_use): Use new operand iterator.
15269         * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
15270         * tree-ssanames.c (release_defs): Use new operand iterator.
15271         * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
15273 2004-08-25  Adam Nemet  <anemet@lnxw.com>
15275         * tlink.c (initial_cwd): New variable.
15276         (tlink_init): Initialize it.
15277         (recompile_files): Use tlink_execute() instead of system().  Don't
15278         duplicate verbose output of collect_execute.  Restore initial_cwd.
15279         Update comment before the function.
15281 2004-08-25  Ziemowit Laski  <zlaski@apple.com>
15283         * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
15284         accept) a cast from one Objective-C pointer type to another.
15286 2004-08-25  Paolo Carlini  <pcarlini@suse.de>
15288         * doc/install.texi: Document that libstdc++-v3 requires
15289         now automake 1.9.1.
15291 2004-08-25  Caroline Tice  <ctice@apple.com>
15293         * bb-reorder.c (partition_hot_cold_basic_blocks):  Add more details
15294         to comments at start of function.
15295         * cfgbuild.c (make_edges):  Add more details to hot/cold partitioning
15296         comment.
15297         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
15298         merge_blocks_move_predecessor_nojumps,
15299         merge_blocks_move_successor_nojumps, merge_blocks_move,
15300         try_crossjump_to_edge, try_crossjump_bb): Likewise.
15301         * cfglayout.c (fixup_reorder_chain): Likewise.
15302         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
15303         cfg_layout_can_merge_blocks_p):  Likewise.
15304         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
15305         * passes.c (rest_of_compilation): Update comments for calling
15306         optimization that partitions hot/cold basic blocks.
15307         * doc/invoke.texi:  Update documentation of
15308         freorder-blocks-and-partition flag.
15310 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
15312         * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
15313         (*mov*_on_*): Adjust accordingly.  Add an explicit MOVECC: prefix.
15315 2004-08-25  Richard Sandiford  <rsandifo@redhat.com>
15317         * config/mips/mips.md (any_shift): New code macro.
15318         (optab, insn): New code attributes.
15319         ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
15320         Use the standard rather than internal patterns for the MIPS16
15321         double-shift optimization.
15322         (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
15323         Redefine using :GPR and any_shift.
15324         (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
15325         to cover all three shifts.
15326         (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
15327         Redefine using any_shift.  Use :GPR and any_shift to combine splitters.
15328         (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
15330 2004-08-24  Geoffrey Keating  <geoffk@apple.com>
15332         * gimplify.c (lookup_tmp_var): Separate temporaries when not
15333         optimizing.
15335 2004-08-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15337         PR libstdc++/17005 (fix for HP-UX 11.11)
15338         * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
15339         (hppa*-*-hpux*): Consolidate hppa1.0-*-* code.  Rework handling of
15340         tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
15341         * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
15342         * config/pa/pa-hpux.h (TARGET_HPUX): Define.
15343         (LINK_SPEC): Handle march=1.0 option.
15344         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15345         and _XOPEN_SOURCE_EXTENDED for UNIX 95.
15346         (SUBTARGET_OPTIONS): New define.
15347         (LINK_SPEC): Handle march=1.0 option.
15348         (STARTFILE_SPEC): New define.
15349         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
15350         and _XOPEN_SOURCE_EXTENDED for UNIX 95.  Additionally, predefine
15351         _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
15352         (SUBTARGET_OPTIONS): New define.
15353         (LINK_SPEC): Handle march=1.0 option.
15354         (STARTFILE_SPEC): New define.
15355         * config/pa/pa.c (override_options): Add code to process -munix= option.
15356         * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
15357         (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
15358         defines.
15359         (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
15360         (SUBTARGET_OPTIONS): Provide default define.
15361         * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
15362         STANDARD_STARTFILE_PREFIX_2): New defines.
15363         (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
15364         (ENDFILE_SPEC): Use %O.
15365         * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
15366         Mention issue caused by changing namespace and runtime to UNIX 95/98.
15367         * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
15368         Document -munix=std option.
15370 2004-08-25  Steven Bosscher  <stevenb@suse.de>
15372         * cse.c (cse_around_loop, cse_check_loop_start,
15373         cse_set_around_loop): Remove.
15374         (cse_basic_block): Remove the around_loop argument.
15375         (cse_end_of_basic_block): Remove the after_loop argument.
15376         (cse_main): Likewise.
15377         * rtl.h (cse_main): Update prototype.
15378         * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
15379         rest_of_handle_gcse): Update cse_main calls.
15381 2004-08-25  Nathan Sidwell  <nathan@codesourcery.com>
15383         * tree.h  (build_int_cst): New, sign extended constant.
15384         (build_int_cstu): New, zero extended constant.
15385         (build_int_cst_wide): Renamed from build_int_cst.
15386         * tree.c (build_int_cst, build_int_cstu): New.
15387         (build_int_cst_wide): Renamed from build_int_cst.
15388         (make_vector_type, build_common_tree_nodes,
15389         build_common_tree_nodes_2): Adjust build_int_cst calls.
15390         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
15391         expand_builtin_strpbrk, expand_builtin_fputs,
15392         build_string_literal, expand_builtin_printf,
15393         expand_builtin_sprintf, fold_builtin_classify_type,
15394         fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
15395         fold_builtin_toascii, fold_builtin_isdigit,
15396         simplify_builtin_strstr, simplify_builtin_strpbrk,
15397         fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
15398         * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
15399         DEF_ATTR_INT): Likewise.
15400         * c-decl.c (complete_array_type, check_bitfield_type_and_width):
15401         Likewise.
15402         * c-lex.c (interpret_integer, lex_charconst): Likewise.
15403         * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
15404         * c-pretty-print.c (pp_c_integer_constant): Likewise.
15405         * c-typeck.c (really_start_incremental_init, push_init_level,
15406         set_nonincremental_init_from_string): Likewise.
15407         * calls.c (load_register_parameters): Likewise.
15408         convert.c (convert_to_pointer): Likewise.
15409         coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
15410         build_fn_info_type, build_fn_info_value, build_ctr_info_value,
15411         build_gcov_info): Likewise.
15412         * except.c (init_eh, assign_filter_values): Likewise.
15413         * expmed.c (store_fixed_bit_field, extract_bit_field,
15414         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
15415         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
15416         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
15417         * expr.c (convert_move, emit_group_load, emit_group_store,
15418         expand_assignment, store_constructor, store_field,
15419         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
15420         fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
15421         invert_truthvalue, optimize_bit_field_compare,
15422         decode_field_reference, all_ones_mask_p, constant_boolean_node,
15423         fold_div_compare, fold, fold_read_from_constant_string,
15424         fold_negate_const, fold_abs_const, fold_not_const, round_up,
15425         round_down): Likewise.
15426         * function.c (assign_parm_setup_block): Likewise.
15427         * stmt.c (shift_return_value, expand_case, estimate_case_costs):
15428         Likewise.
15429         * stor-layout.c (layout_type, initialize_sizetypes,
15430         set_min_and_max_values_for_integral_type): Likewise.
15431         * tree-chrec.c (chrec_fold_multiply_poly_poly,
15432         reset_evolution_in_loop): Likewise.
15433         * tree-chrec.h (build_polynomial_chrec): Likewise.
15434         * tree-complex.c (build_replicated_const): Likewise.
15435         * tree-eh.c (honor_protect_cleanup_actions,
15436         lower_try_finally_onedest, lower_try_finally_copy,
15437         lower_try_finally_switch): Likewise.
15438         * tree-mudflap.c (mf_build_string, mx_register_decls,
15439         mudflap_register_call, mudflap_enqueue_constant): Likewise.
15440         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
15441         * tree-pretty-print.c (dump_generic_node): Likewise.
15442         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
15443         Likewise.
15444         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
15445         * tree-ssa-loop-niter.c (number_of_iterations_cond,
15446         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
15447         Likewise.
15448         * tree-ssa-loop-ivcanon.c (create_canonical_iv,
15449         canonicalize_loop_induction_variables): Likewise.
15450         * tree-vectorizer.c (vect_create_index_for_array_ref,
15451         vect_transform_loop_bound, vect_compute_data_ref_alignment):
15452         Likewise.
15454         * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
15455         alpha_gimplify_va_arg_1): Likewise.
15456         * config/arm/arm.c (arm_get_cookie_size): Likewise.
15457         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
15458         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
15459         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15460         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
15461         mips_gimplify_va_arg_expr): Likewise.
15462         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15463         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
15464         add_compiler_branch_island): Likewise.
15465         * config/s390/s390.c (s390_va_start): Likewise.
15466         * config/sh/sh.c (sh_va_start): Likewise.
15467         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
15468         Likewise.
15469         * config/xtensa/xtensa.c (xtensa_va_start,
15470         xtensa_gimplify_va_arg_expr): Likewise.
15472         * objc/objc-act.c (build_objc_string_object,
15473         build_objc_symtab_template, init_def_list, init_objc_symtab,
15474         init_module_descriptor, generate_static_references,
15475         build_selector_translation_table, get_proto_encoding,
15476         build_typed_selector_reference, build_selector_reference,
15477         build_next_objc_exception_stuff,
15478         build_method_prototype_list_template, generate_descriptor_table,
15479         generate_protocols, build_protocol_initializer,
15480         build_ivar_list_template, build_method_list_template,
15481         build_ivar_list_initializer, generate_ivars_list,
15482         generate_dispatch_table, generate_protocol_list,
15483         build_category_initializer, build_shared_structure_initializer,
15484         generate_shared_structures, handle_impent,
15485         generate_objc_image_info): Likewise.
15487 2004-04-25  Paolo Bonzini  <bonzini@gnu.org>
15489         * cfglayout.c (duplicate_insn_chain): Remove references to
15490         NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
15491         * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
15492         * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
15493         * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
15494         and NOTE_INSN_LOOP_CONT.
15495         * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
15496         * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
15497         and NOTE_INSN_LOOP_CONT.
15498         * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
15499         check_dbra_loop, loop_dump_aux): Remove references to removed notes
15500         and fields.
15501         * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
15502         * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
15503         references to removed notes and fields.
15504         (subtract_reg_term, ujump_to_loop_cont): Remove.
15506 2004-08-25  Paolo Bonzini  <bonzini@gnu.org>
15508         * doc/install.texi: Document that libcpp does not require
15509         Automake any longer.  Document that Automake 1.9.1 should
15510         work everywhere.
15512 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
15514         * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
15515         * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
15516         DWARF_DEBUGGING_INFO from choice-of-definition chain;
15517         restructure using C89 features (#elif, #error).
15518         * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
15519         * config/sh/sh.h: Remove references to DWARF_DEBUG.
15520         * doc/invoke.texi: Remove references to DWARF version 1;
15521         clarify why -gdwarf-2<n> doesn't work.
15523 2004-08-25  Zack Weinberg  <zack@codesourcery.com>
15525         * basic-block.h (BB_SET_PARTITION): Clear old value first.
15526         * cfg.c (clear_bb_flags): Don't clear partition setting.
15527         * ifcvt.c (find_if_case_1): Remove ??? comment.
15529 2004-08-25  Alan Modra  <amodra@bigpond.net.au>
15531         PR target/17052
15532         * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
15533         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
15534         current_function_stdarg in place of sysv_varargs_p.
15535         * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
15536         sysv_varargs_p.
15538 2004-08-24  Richard Henderson  <rth@redhat.com>
15540         PR target/16298
15541         * config/i386/i386.c (legitimate_constant_p): Rework to not accept
15542         random codes within CONST.
15544 2004-08-24  James E Wilson  <wilson@specifixinc.com>
15546         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
15547         -freorder-blocks-and-partition.
15549 2004-08-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15551         PR middle-end/17044
15552         * tree-ssa-threadupdate.c (redirection_data): Make static.
15553         (thread_block): Use ggc_alloc_cleared to allocate struct
15554         redirection_data.  Don't free elements in redirection_data.
15556 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15558         * config/mips/predicates.md (small_data_pattern): Match prefetches.
15560 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15562         PR tree-optimization/17016
15563         * tree-ssa-loop-niter.c (number_of_iterations_cond,
15564         number_of_iterations_exit): Use POINTER_TYPE_P instead
15565         of testing for POINTER_TYPE.
15567 2004-08-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15569         * tree-ssa-loop-ivcanon.c: New file.
15570         * tree-ssa-loop-manip.c (create_iv): New function.
15571         * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
15572         (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
15573         * cfgloop.c (mark_single_exit_loops): New function.
15574         (verify_loop_structure): Verify single-exit loops.
15575         * cfgloop.h (struct loop): Add single_exit field.
15576         (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
15577         (mark_single_exit_loops): Declare.
15578         (tree_num_loop_insns): Declare.
15579         * cfgloopmanip.c (update_single_exits_after_duplication): New function.
15580         (duplicate_loop_to_header_edge): Use it.
15581         * common.opt (fivcanon): New flag.
15582         * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
15583         * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
15584         (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
15585         (bsi_insert_on_edge_immediate): New function.
15586         * tree-flow.h (bsi_insert_on_edge_immediate,
15587         canonicalize_induction_variables, tree_unroll_loops_completely,
15588         create_iv): Declare.
15589         * tree-optimize.c (init_tree_optimization_passes): Add
15590         pass_iv_canon and pass_complete_unroll.
15591         * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
15592         * tree-scalar-evolution.c (get_loop_exit_condition,
15593         get_exit_conditions_rec, number_of_iterations_in_loop,
15594         scev_initialize): Use single_exit information.
15595         * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
15596         missing assumptions.
15597         (loop_niter_by_eval):  Return number of iterations as unsigned
15598         int.
15599         * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
15600         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
15601         tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
15602         New passes.
15603         (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
15604         * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
15605         the defining statement is ready.
15606         * tree-vectorizer.c (vect_create_iv_simple): Removed.
15607         (vect_create_index_for_array_ref, vect_transform_loop_bound):
15608         Use create_iv.
15609         (vect_transform_loop_bound): Use single_exit information.
15610         (vect_analyze_loop_form): Cleanup bogus tests.
15611         (vectorize_loops): Do not call flow_loop_scan.
15612         * tree.h (may_negate_without_overflow_p): Declare.
15613         * fold-const.c (may_negate_without_overflow_p): Split out from ...
15614         (negate_expr_p): ... this function.
15615         (tree_expr_nonzero_p): Handle overflowed constants correctly.
15616         * doc/invoke.texi (-fivcanon): Document.
15617         * doc/passes.texi: Document canonical induction variable creation.
15619 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15621         * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
15622         * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
15623         using the mode of the operand to decide between them.
15624         * config/mips/mips.md (MOVECC): New mode macro.
15625         (ccreg): New mode attribute.
15626         (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
15627         Redefine using :GPR and :MOVECC.  Use %T and %t for the condition.
15628         (mov[sd]icc): Redefine using :GPR.
15630 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15632         * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
15633         (mips_prefetch_cookie): New function.
15634         * config/mips/mips.c (print_operand_address): Fix handling of
15635         ADDRESS_CONST_INT.
15636         (mips_emit_prefetch): Delete.
15637         (mips_prefetch_cookie): New function.
15638         * config/mips/mips.md (prefetch): Turn into a define_insn.  Use a
15639         mode of QImode for the address_operand.  Use mips_prefetch_cookie
15640         to calculate the first "pref" operand.
15641         (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
15642         (prefetch_indexed_[sd]i): Redefine using :P.  Use mips_prefetch_cookie.
15644 2004-08-24  Richard Earnshaw  <rearnsha@arm.com>
15646         * arm.md: Include predicates.md.
15647         * predicates.md: New file.
15648         * arm.c (s_register_operand, arm_hard_register_operand)
15649         (arm_general_register_operand, f_register_operand, reg_or_int_operand)
15650         (arm_immediate_operand, arm_neg_immediate_operand)
15651         (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
15652         (arm_add_operand, arm_addimm_operand, arm_not_operand)
15653         (offsettable_memory_operand, alignable_memory_operand)
15654         (arm_reload_memory_operand, arm_float_rhs_operand)
15655         (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
15656         (index_operand, shiftable_operator, logical_binary_operator)
15657         (shift_operator, equality_operator, arm_comparison_operator)
15658         (minmax_operator, cc_register, dominant_cc_register)
15659         (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
15660         (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
15661         (const_shift_operand, load_multiple_operation)
15662         (store_multiple_operation, multi_register_push, thumb_cmp_operand)
15663         (thumb_cmpneg_operand, thumb_cbrch_target_operand)
15664         (cirrus_register_operand, cirrus_fp_register)
15665         (cirrus_shift_const): Delete, replaced with equivalents in
15666         predicates.md.
15667         (shift_op): Handle ROTATE.
15668         * arm-protos.h: Delete declarations for above.
15669         * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
15670         * t-arm (MD_INCLUDES): Add predicates.md.
15671         (s-preds): Depends on MD_INCLUDES.
15673 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15675         * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
15676         * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
15677         patterns.  Redefine using :GPR.  Give the match_operator a mode.
15678         Use '%2' rather than '%z2' for operand 2.
15680 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15682         * config/mips/mips.md (load_call[sd]i): Redefine using :P.  Add mode
15683         attribute.
15685 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15687         * config/mips/mips.md (indirect_jump): Use force_reg.  Adjust names
15688         of internal patterns.
15689         (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
15690         Redefine using :P.
15691         (tablejump): Use expand_binop to calculate address.  Adjust names
15692         of internal patterns.
15693         (tablejump[sd]i): Renamed from tablejump_internal[12].
15694         Redefine using :P.
15695         (tablejump_mips16[12]): Delete.
15697 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15699         * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
15700         (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
15701         (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
15702         (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
15703         (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
15705 2004-08-24  Richard Sandiford  <rsandifo@redhat.com>
15707         * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
15708         (*branch_zero[sd]i): Renamed from branch_zero{,_di}.  Redefine
15709         using :GPR.
15710         (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
15711         (*branch_equality[sd]i): Likewise branch_equality{,_di}.
15712         (*branch_equality[sd]i_inverted): Likewise
15713         branch_equality{,_di}_inverted.
15714         (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
15715         Redefine using :GPR.
15717 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
15719         * rtl.def: Reorganize, placing all codes used only in machine
15720         descriptions at the end.
15722         * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
15723         * gengtype.c: Don't include rtl.h.  Define enum rtx_code and
15724         rtx_name, rtx_format arrays by direct reference to rtl.def,
15725         first undefining GENERATOR_FILE.  Define enum insn_note and
15726         note_insn_name array by direct reference to insn-notes.def.
15727         (adjust_field_rtx_def): Remove local definition of rtx_name.
15728         Use symbolic names for insn notes.
15729         * Makefile.in (gengtype.o): Update dependencies.
15731 2004-08-24  Zack Weinberg  <zack@codesourcery.com>
15733         * basic-block.h (struct basic_block_def): Reorder fields to
15734         eliminate interior padding.  Remove 'partition' field.
15735         (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
15736         (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
15737         (BB_COPY_PARTITION): New macros.
15738         * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
15739         Replace all references to the 'partition' field of a basic
15740         block with new macros.
15742         * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
15743         * final.c (final_scan_insn): Don't handle it.
15744         * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
15745         instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
15746         * sched-rgn.c (sched_is_disabled_for_current_region_p):
15747         Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
15749 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15751         * c-decl.c (c_init_decl_processing): Adjust
15752         build_common_tree_nodes call.
15753         * expmed.c (const_mult_add_overflow_p): Use
15754         build_distinct_type_copy.
15755         * stor-layout.c (early_type_list): Remove.
15756         (layout_type): Don't append to early_type_list.
15757         (initialize_sizetypes): Add signed_p argument.
15758         (set_sizetype): Overwrite the stub type nodes directly.
15759         * tree.c (copy_node_stat): Clear a type's value cache here ...
15760         (build_distinct_type): ... not here.
15761         (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
15762         * tree.h (initialize_sizetypes): Add signed_p argument.
15763         (build_common_tree_nodes): Likewise.
15765         * objc/objc-act.c (get_static_reference): Use
15766         build_variant_type_copy.
15767         (get_protocol_reference): Likewise.
15768         * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
15770 2004-08-24  Richard Henderson  <rth@redhat.com>
15771             Andrew Pinski  <apinski@apple.com>
15773         * gimplify.c (gimplify_array_ref_to_plus): Delete.
15774         (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
15775         for ARRAY_REF.
15777         * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
15778         ARRAY_REF also to get to the STRING_CST.
15780 2004-08-24  Paul Brook  <paul@codesourcery.com>
15782         * config/arm/arm.c (arm_override_options): Update error message.
15783         * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
15784         TARGET_HARD_FLOAT_ABI.
15785         (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
15786         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
15788 2004-08-24  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
15790         PR target/17093
15791         * config/m32r.md (movsi_sda): Add SI mode specification to
15792         UNSPEC.
15794 2004-08-24  Nick Clifton  <nickc@redhat.com>
15796         * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
15797         of seth_add3_operand.
15799 2004-08-24  Nathan Sidwell  <nathan@codesourcery.com>
15801         * Makefile.in (PROTO_OBJS): Add errors.o.
15802         * protoize.c (fancy_abort): Remove.
15803         * mips-tfile.c (fancy_abort): Add parameters.
15805 2004-08-24  Jonathan Wakely  <redi@gcc.gnu.org>
15807         * doc/trouble.texi (C++ misunderstandings): Fix example code.
15809 2004-08-24  Andreas Tobler  <a.tobler@schweiz.ch>
15811         * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
15812         (host-default.o): Add dependency on HOOKS_H.
15813         * config/x-linux: Likewise.
15814         * config/x-solaris: Likewise.
15815         * config/i386/x-mingw32: Likewise.
15816         * config/rs6000/x-darwin: Likewise.
15818 2004-08-23  James E Wilson  <wilson@specifixinc.com>
15820         * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
15821         DEF_REG_NOTE.
15823 2004-08-23  Mark Mitchell  <mark@codesourcery.com>
15825         PR c/14492
15826         * dwarf2out.c (loc_descriptor_from_tree): Robustify.
15828 2004-08-23  Diego Novillo  <dnovillo@redhat.com>
15830         * cfg.c (check_bb_profile): Fix typos.
15831         * function.c (assign_parm_is_stack_parm): Likewise.
15832         * tree-nested.c: Likewise.
15834 2004-08-23  Daniel Jacobowitz  <dan@debian.org>
15836         * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
15837         Remove TYPECODE.
15838         (ggc_alloc_zone_1): Mark TYPE as unused.  Don't save it in the chunk.
15840 2004-08-23  Eric Christopher  <echristo@redhat.com>
15842         * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
15843         * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
15844         * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
15845         * target.h: Ditto.
15846         * hooks.h: Include machmode.h.
15847         (hook_bool_mode_false): Declare.
15848         * hooks.c (hook_bool_mode_false): Define.
15849         * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
15850         * stor-layout.c (layout_type): Ditto.
15851         * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
15852         Define to target macro.
15853         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
15854         * config/arm/arm.c: Ditto. Use.
15855         * config/arm/arm.h: Ditto.
15856         * config/arm/arm-protos.h: Ditto.
15857         * config/i386/i386.c: Ditto.
15858         * config/i386/i386.h: Ditto.
15859         * config/rs6000/rs6000.c: Ditto.
15860         * config/rs6000/rs6000.h: Ditto.
15861         * config/sh/sh.c: Ditto.
15862         * config/sh/sh.h: Ditto.
15863         * config/sh/sh-protos.h: Ditto.
15864         * config/sh/sh.md: Use.
15865         * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
15866         to TARGET_VECTOR_MODE_SUPPORTED_P.
15868 2004-08-23  Nathan Sidwell  <nathan@codesourcery.com>
15870         * Makefile.in (BUILD_ERRORS): Set to build-errors.
15871         (errors.o): New target for host.
15872         (build-errors.o): New target for build.
15873         (genobjs): Replace errors.o with build-errors.
15874         (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
15875         (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
15876         (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
15877         (fix-header.o): Add errors.h
15878         * collect2.c (fancy_abort): Add parameters.
15879         * collect2.h (fancy_abort): Don't declare.
15880         * errors.h (fancy_abort): Don't declare.
15881         * errors.c: Include either bconfig.h or config.h.
15882         (fancy_abort): Trim filename.
15883         * fix-header.c (v_fatal, fatal): Remove.
15884         (progname): Remove definition.
15885         (main): Set progname here.
15886         * gcc.c (fancy_abort): Add parameters.
15887         * gcc.h (fancy_abort): Remove declaration.
15888         * gcov.c (fancy_abort): Remove.
15889         * rtl.h (fancy_abort): Don't declare.
15890         (abort): Don't define.
15891         * tree.h (fancy_abort): Don't declare.
15892         (abort): Don't define.
15893         * system.h (fancy_abort): Declare.
15894         (abort): Define to fancy_abort.
15895         * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
15897         * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
15898         (usize_type, ubitsizetype): Remove.
15899         * stor-layout.c (set_sizetype): Don't initialize usizetype,
15900         ubitsizetype.
15901         * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
15903         * tree.h (build_distinct_type_copy): New.
15904         (build_type_copy): ... here.  Rename to ...
15905         (build_variant_type_copy): ... here.
15906         * tree.c (build_qualified_type): Rename build_type_copy call.
15907         (build_distinct_type_copy): New, broken out of ...
15908         (build_type_copy): ... here.  Rename to ...
15909         (build_variant_type_copy): ... here.  Use
15910         build_distinct_type_copy.
15911         (build_common_tree_nodes_2): Rename build_type_copy call.
15912         * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
15913         call.
15914         (handle_packed_attribute, handle_unused_attribute,
15915         handle_transparanet_union_attribute, handle_aligned_attribute,
15916         handle_deprecated_attribute): Likewise.
15917         * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
15918         Likewise.
15919         * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
15920         * config/rs6000/rs6000.c (rs6000_init_builtins): Use
15921         build_distinct_type_copy.
15923 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15925         * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR.  Add mode
15926         attribute.
15928 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15930         * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
15931         loads and stores.
15932         (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
15933         formerly unnamed patterns.  Redefine using :P for the address.  Remove
15934         explicit length attributes.
15936 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15938         * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
15939         New functions.
15940         (single_reachable_address): Use them.
15941         (schedule_sm): Add dump.
15942         (is_call_clobbered_ref): New function.
15943         (determine_lsm_reg): Check whether the reference is call clobbered.
15944         Only work for gimple_reg_type values.
15946 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15948         * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
15949         $31 store insns.  Redefine using :GPR.
15951 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15953         * config/mips/mips.md (P): New mode macro.
15954         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
15955         (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
15956         Add mode attributes.
15958 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15960         * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
15961         (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants.  Shuffle
15962         later constants to cover the gap.
15963         (load, store): New mode attributes.
15964         (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
15965         Use new unspec constants.
15967 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15969         * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
15970         (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise.  Change 32-bit patterns
15971         to use register_operand rather than uns_arith_operand as the predicate
15972         for operand 1.  Remove redundant MIPS16 force_reg() for operand 1.
15973         (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
15974         Redefine using :GPR.  Make same predicate change here.  Extend the
15975         commutativity of operands 1 and 2 from the SImode version to the
15976         DImode one.
15977         (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
15978         but with no predicate changes.
15979         (*nor[sd]i3): Redefine using :GPR.
15981 2004-08-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
15983         * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
15984         noreturn functions.
15986 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15988         * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
15989         * config/mips/mips.md (abs[sd]i2): Redefine using :GPR.  Only use
15990         branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY.  Use "%."
15991         rather than "%z2" (with a fake const0_rtx for operand 2).
15992         (ffs[sd]i2): Redefine using :GPR.
15993         (clz[sd]i2): Likewise.  Use ISA_HAS_CLO_CLZ for the 64-bit case.
15995 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
15997         * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
15999 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16001         * config/mips/mips.md (any_extend): New code macro.
16002         (u, su): New code attributes.
16003         ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
16004         ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
16005         ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
16006         (*{s,u}mul_acc_di): Redefine using any_extend.
16007         (*{,u}muls_di, *{s,u}msac_di): Likewise.  Change names of patterns
16008         to reflect real insn names.
16009         (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
16010         with an any_extend template.
16011         ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
16012         Add '*' to name.
16014 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16016         * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
16017         * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
16018         (mul[sd]i3_r4000): Redefine using :GPR.
16019         (mulsi3_mult3): Don't check TARGET_MAD separately.
16020         (muldi3_mult3): Moved after mulsi_mult3.
16022 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16024         * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
16025         OBJECT_FORMAT_ELF.  Set MASK_SPLIT_ADDR by default if using GNU ld.
16026         * config/mips/mips.h (MASK_GAS): Delete.  Shuffle later masks down.
16027         (TARGET_GAS, TARGET_MIPS_AS): Delete.
16028         (TARGET_GPWORD): Define to true for n32 on IRIX.
16029         (TARGET_SWITCHES): Remove -mmips-as.  Turn -mgas into a no-op.
16030         (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
16031         (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
16032         (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
16033         (MDEBUG_ASM_SPEC): Delete, folding into...
16034         (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
16035         (ASM_SPEC): Inline old GAS_ASM_SPEC.  Use GNU names for ABI switches.
16036         (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
16037         subtarget_mips_as_asm_spec, mdebug_asm_spec.  Use MULTILIB_ABI_DEFAULT
16038         to define asm_abi_default_spec.
16039         (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
16040         (TARGET_ASM_SELECT_SECTION): Delete.
16041         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
16042         for non-mips16 code, removing previous workaround for SGI assemblers.
16043         (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
16044         (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
16045         (override_options): Remove !TARGET_GAS and !have_named_sections code.
16046         (print_operand): Fold TARGET_GAS conditionals into asm strings.
16047         (mips_output_filename): Remove !TARGET_GAS code.  Replace use of
16048         ASM_STABS_OP and ASM_STABN_OP.
16049         (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
16050         (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
16051         (mips_output_function_prologue): Remove !TARGET_GAS code.
16052         (mips_select_rtx_section): Remove !have_named_sections code.
16053         (mips_select_section): Delete.
16054         * config/mips/mips.md (trap): Remove !TARGET_GAS check.
16055         * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
16056         * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
16057         (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
16058         * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
16059         * config/mips/windiss.h (ASM_SPEC): Likewise.
16061 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16063         * read-rtl.c (map_value, mapping, macro_group): New structures.
16064         (BELLWETHER_CODE): New macro.
16065         (modes, codes, bellwether_codes): New variables.
16066         (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
16067         (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
16068         (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
16069         (add_condition_to_rtx, apply_macro_traverse, add_mapping)
16070         (add_map_value, initialize_macros): New functions.
16071         (def_hash, def_hash_eq_p): Generalize to anything that points to,
16072         or starts with, a char * field.
16073         (find_macro, read_mapping, check_code_macro): New functions.
16074         (read_rtx_1): New, split out from read_rtx.  Handle the new
16075         define_{mode,code}_{macro,attr} constructs.  Use find_macro
16076         to parse the name of a code or mode.  Use BELLWETHER_CODE to
16077         extract the format and to choose a suitable code for rtx_alloc.
16078         Modify recursive invocations to use read_rtx_1.
16079         (read_rtx): Call initialize_macros.  Apply code and mode macros
16080         to the rtx returned by read_rtx_1.  Cache everything after the
16081         first macro expansion for subsequent read_rtx calls.
16082         * doc/md.texi: Document new .md constructs.
16083         * config/mips/mips.md (GPR): New mode macro.
16084         (d, si8_di5): New mode attributes.
16085         (any_cond): New code macro.
16086         (add[sd]i3): Redefine using :GPR.
16087         (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
16088         (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
16089         previously unnamed MIPS16 patterns.
16090         (*addsi3_extended): Renamed from addsi3_internal_2.  Fix overly long
16091         lines.  Don't match (plus (const_int 0) ...).
16092         (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
16093         Use a define_split to generate the addition.
16094         (sub[sd]i3): Redefine using :GPR.  Turn subsi3 into a define_insn.
16095         (subsi3_internal): Delete.
16096         (*subsi3_extended): Renamed from subsi3_internal_2.
16097         (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
16098         (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
16099         using an any_cond template.
16101 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16103         * read-rtl.c (read_rtx): Tidy use of format_ptr.
16105 2004-08-23  Richard Sandiford  <rsandifo@redhat.com>
16107         * read-rtl.c (string_obstack): New file-scope variable.
16108         (read_string, read_quoted_string, read_braced_string)
16109         (read_escape): Remove obstack parameter and use string_obstack instead.
16110         (read_rtx): Remove function-local rtl_obstack and initialize
16111         string_obstack instead.  Update call to read_string.
16113 2004-08-22  Andrew Pinski  <apinski@apple.com>
16115         PR c/15262
16116         * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
16117         expression is not constant.
16118         (c_finish_return): Do not go through INDIRECT_REF when looking
16119         for the inner expression of an ADDR_EXPR for warning about.
16121 2004-08-22  Richard Henderson  <rth@redhat.com>
16123         PR 17075
16124         * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
16125         create new blocks and fall through.
16126         (expand_gimple_basic_block): Update to match.
16128 2004-08-22  Ulrich Weigand  <uweigand@de.ibm.com>
16130         * reload.c (find_reloads_address): Make return value tri-state.
16131         Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
16132         (find_reloads): Assume that reloaded addresses match 'o' or
16133         EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
16134         returned 1 (not -1).  Omit optional reloads for address operands
16135         only if find_reloads_address returned 1 (not -1).
16137         * config/s390/s390.c (legitimize_reload_address): New function.
16138         * config/s390/s390-protos.h (legitimize_reload_address): Declare.
16139         * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define.  Call
16140         legitimize_reload_address.
16142 2004-08-22  Richard Hendersion  <rth@redhat.com>
16144         * tree.h (SAVE_EXPR_RESOLVED_P): New.
16145         * gimplify.c (gimplify_save_expr): Use it.
16146         * expr.c (expand_expr_real_1): Likewise.  Also set DECL_IGNORED_P
16147         on the temporary variable.
16149 2004-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
16151         * fold-const.c (rtl_expr_nonnegative_p): Delete.
16152         * tree.h (rtl_expr_nonnegative_p): Remove.
16154 2004-08-22  Steven Bosscher  <stevenb@suse.de>
16156         * config/i386/ppro.md (ppro_complex_insn): Add missing check
16157         for cpu==pentiumpro.
16159         * combine.c (struct reg_stat): Fix comment typo.
16161 2004-08-22  Joseph S. Myers  <jsm@polyomino.org.uk>
16163         * c-tree.h (c_sizeof_nowarn): Remove.
16165 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
16167         * c-decl.c (set_array_declarator_type): Rename to
16168         set_array_declarator_inner.
16169         (build_c_parm, build_attrs_declarator, build_function_declarator):
16170         New functions.
16171         (make_pointer_declarator): Call build_attrs_declarator.
16172         * c-tree.h (set_array_declarator_type): Rename to
16173         set_array_declarator_inner.
16174         (build_c_parm, build_attrs_declarator, build_function_declarator):
16175         New prototypes.
16176         * c-parse.in (after_type_declarator,
16177         parm_declarator_starttypename, parm_declarator_nostarttypename,
16178         notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
16179         firstparm): Use these functions
16181 2004-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
16183         * c-decl.c (build_array_declarator, set_array_declarator_type,
16184         start_decl, grokdeclarator, grokparms): Change boolean parameters
16185         to type bool.
16186         * c-tree.h (build_array_declarator, set_array_declarator_type,
16187         start_decl): Update prototypes.
16188         * c-decl.c, c-parse.in: All callers changed.
16190 2004-08-21  Mike Stump  <mrs@apple.com>
16192         * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
16193         (darwin_fix_and_continue): Likewise.
16194         (darwin_fix_and_continue_switch): Likewise.
16195         * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
16196         (darwin_fix_and_continue): Likewise.
16197         (darwin_fix_and_continue_switch): Likewise.
16199 2004-08-21  Danny Smith  <dannysmith@users.sourceforge.net>
16201         PR  c++/16030
16202         * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
16203         Remove, merging into ...
16204         (gen_stdcall_or_fastcall_suffix): New function, returning tree
16205         rather than const char*, and accepting additional parameter.
16206         Don't add suffix to '*'-prefixed symbols or variadic functions.
16207         (i386_pe_encode_section_info): Adjust for call to new function.
16208         Call change_decl_assembler_name.
16210 2004-08-20  Mike Stump  <mrs@apple.com>
16212         * config/darwin.c (machopic_indirect_data_reference): Mark
16213         stubs as defined.
16214         * config/386/386.c (darwin_local_data_pic): Add.
16215         (legitimate_constant_p): Reorder so that PLUS handling runs
16216         before darwin_local_data_pic to match the ordering in
16217         legitimate_pic_address_disp_p and so that MINUS runs after
16218         darwin_local_data_pic as otherwise the darwin_local_data_pic
16219         logic can be skipped, which would be very bad.
16220         (legitimate_pic_address_disp_p): Move from from here to
16221         darwin_local_data_pic so it can be reused.
16223 2004-08-21  Alan Modra  <amodra@bigpond.net.au>
16225         * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
16226         (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
16227         (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
16228         (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
16229         (RS6000_ABI_NAME): Define as "linux".
16230         (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
16231         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
16232         ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
16233         * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
16234         * config/rs6000/rs6000.c (dot_symbols): New global var.
16235         (rs6000_output_function_entry): New function, modified for
16236         !DOT_SYMBOLS..
16237         (print_operand <case 'z'>): ..extracted from here.
16238         (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
16239         (rs6000_output_function_epilogue): Likewise.
16240         (rs6000_elf_declare_function_name): Likewise.
16241         * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
16242         (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
16243         * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
16244         * configure: Regenerate.
16245         * config.in: Regenerate.
16247 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
16249         * reload.c (find_reloads_address): Fix thinko in previous change.
16251         * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
16252         a CONST_INT.
16254 2004-08-20  Jakub Jelinek  <jakub@redhat.com>
16256         PR rtl-optimization/17099
16257         * combine.c (force_to_mode): Check if inner_mask has any bits set
16258         outside of GET_MODE (x) instead of op_mode.
16260 2004-08-20  Mark Mitchell  <mark@codesourcery.com>
16262         * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
16263         fragment.
16264         * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
16265         (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
16266         * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
16267         architecture.
16268         (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
16269         configurations.
16270         * config/arm/t-symbian: New file.
16272 2004-08-20  Andrew Pinski  <apinski@apple.com>
16274         * regrename.c (kill_value_regno): ANSIfy.
16276 2004-08-20  Dale Johannesen  <dalej@apple.com>
16278         * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
16280 2004-08-20  Daniel Jacobowitz  <dan@debian.org>
16282         * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
16283         (kill_value_regno): New function, derived from kill_value.
16284         (kill_value): Update.
16285         (copyprop_hardreg_forward_1): Update call to kill_value_regno.
16287 2004-08-20  Daniel Berlin  <dberlin@dberlin.org>
16289         Fix PR tree-optimization/17111
16290         * tree-ssa-pre.c (create_value_expr_from): Don't change the types
16291         of non-value_handles.
16292         (bitmap_set_contains): All constants are in every set.
16294 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
16296         * fold-const.c (round_up, round_down): Use build_int_cst.
16297         Optimize common case.
16299 2004-08-20  Zack Weinberg  <zack@codesourcery.com>
16300             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16302         * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
16303         one_only_data_section): Rename to som_readonly_data_section,
16304         som_one_only_readonly_data_section and som_one_only_data_section.
16305         * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
16306         NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
16307         conditional defines.
16308         (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
16309         NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
16310         string values.
16311         (pa_select_section): Use renamed section functions.
16312         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
16313         SOM_READONLY_DATA_SECTION_FUNCTION,
16314         SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
16315         SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
16316         Define here ...
16317         * config/pa/som.h: ... not here.
16318         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
16319         ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
16320         ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
16321         ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
16322         (READONLY_DATA_SECTION): Use som_readonly_data_section.
16324 2004-08-20  Nathan Sidwell  <nathan@codesourcery.com>
16326         * fold-const.c (int_const_binop): Don't generate non-overflowing
16327         size-types specially.
16328         (fold_convert_const): Likewise.
16330         * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
16331         clear cache on copied sizetype.
16333 2004-08-20  Ben Elliston  <bje@au.ibm.com>
16335         * configure.ac: Don't escape apostrophe in --enable-coverage help.
16336         * configure: Regenerate.
16338 2004-08-20  Danny Smith  <dannysmith@users.sourceforge.net>
16340         PR 5620
16341         * gcc.c (struct stat input_stat): Don't define if
16342         HOST_LACKS_INODE_NUMBERS
16343         (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
16344         than stat to determine if temp file is same as input file.
16345         * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
16346         * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
16348 2004-08-20  Richard Sandiford  <rsandifo@redhat.com>
16350         * configure.ac (mips*-*-*): Print an error if not using GAS.
16351         * configure: Regenerated.
16352         * doc/install.texi: Remove irix5 bullet from --with-gnu-as.  Remove
16353         comments about buggy MIPSpro assemblers.
16354         * config.gcc (mips-sgi-irix[56]*): Combine stanzas.  Include elfos.h
16355         before mips.h and iris.h after it.  Use t-iris and t-slibgcc-irix.
16356         Use iris5.h only for IRIX 5 configs.  Use iris6.h and t-iris6 for
16357         IRIX 6 configs.  Define IRIX_USING_GNU_LD if using GNU ld.
16358         * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
16359         (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
16360         (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
16361         (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
16362         (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
16363         of more general IRIX 6 definitions.
16364         (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
16365         (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
16366         (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
16367         (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
16368         (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16369         (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
16370         (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
16371         (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
16372         (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
16373         (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
16374         (LINK_SPEC): Move most of definition to iris.h.
16375         (SUBTARGET_LINK_SPEC): New macro.
16376         (IRIX_STARTFILE_SPEC): Fold into...
16377         (STARTFILE_SPEC): ...here.
16378         (IRIX_ENDFILE_SPEC): Fold into...
16379         (ENDFILE_SPEC): ...here.
16380         * config/mips/iris6.h (TARGET_IRIX5): Remove override.
16381         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
16382         (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
16383         (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
16384         (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
16385         (TARGET_OS_CPP_BUILTINS): Likewise.  Guard IRIX6-specific bits.
16386         (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
16387         (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
16388         (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
16389         (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
16390         (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
16391         (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
16392         (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
16393         (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
16394         (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
16395         (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
16396         (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
16397         (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
16398         (TARGET_IRIX6): Define to 1.
16399         (DRIVER_SELF_SPECS): Define.
16400         (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
16401         (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
16402         (SUBTARGET_LINK_SPEC): New macro.
16403         (IRIX_STARTFILE_SPEC): Fold into...
16404         (STARTFILE_SPEC): ...here.  Remove !mabi=* case.
16405         (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
16406         (LIB_SPEC, LIBGCC_SPEC): Use them.
16407         (LIB_SPEC): Remove !mabi=* case.
16408         (IRIX_ENDFILE_SPEC): Fold into...
16409         (ENDFILE_SPEC): ...here.  Remove !mabi=* case.
16410         * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
16411         * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
16412         (TARGET_IRIX6): New macro.
16413         (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
16414         (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
16415         (LABEL_AFTER_LOC): Delete.
16416         * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
16417         (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
16418         (mips_build_builtin_va_list): Check TARGET_IRIX6.
16419         (override_options): Remove TARGET_SGI_O32_AS-related code.
16420         (irix_output_external_libcall): Make static.
16421         (mips_output_filename): Avoid use of SET_FILE_NUMBER and
16422         LABEL_AFTER_LOC.
16423         (mips_file_start): Tidy guard for ABI sections.  Remove use of
16424         ABICALLS_ASM_OP; use .abicalls instead.
16425         (mips_output_aligned_decl_common, mips_declare_object_name)
16426         (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
16427         (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
16428         .globl foo .text directives.
16429         (irix_asm_named_section_1, irix_asm_named_section)
16430         (irix_section_align_entry, irix_section_align_htab)
16431         (irix_orig_asm_out_file, irix_section_align_entry_eq)
16432         (irix_section_align_entry_hash, irix_asm_output_align)
16433         (irix_file_start, irix_section_align_1, copy_file_data)
16434         (irix_file_end, irix_section_type_flags): Delete.
16435         * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
16436         Use standard section syntax.  Remove protective "jr $31".
16437         (__gcc_fini): Likewise .gcc_fini.
16438         * config/mips/irix-crtn.asm: Adjust sections accordingly.
16439         * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
16440         iris5gas.h.
16441         * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
16442         from t-irix-gld.
16443         (EXTRA_MULTILIB_PARTS): Define.
16444         * config/mips/t-iris6: Remove bogus comment.
16445         (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
16446         * config/mips/iris5gas.h, config/mips/iris5gld.h,
16447         config/mips/iris6gas.h, config/mips/iris6gld.h,
16448         config/mips/t-iris5-as, config/mips/t-iris5-gas
16449         config/mips/t-irix-gld: Delete.
16450         * config/mips/iris.h: New file.
16451         * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
16453 2004-08-20  Richard Earnshaw  <rearnsha@arm.com>
16455         * postreload.c (reload_cse_move2add): Allow any condjump, but check
16456         that the implicit set isn't clobbered in the jump insn.
16458 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
16460         * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
16461         * optabs.c (init_optabs): Don't check it.
16462         * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
16463         * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
16465 2004-08-18  Andreas Krebbel  <krebbel1@de.ibm.com>
16467         * config/s390/s390.md (s390_warn_framesize_string)
16468         (s390_warn_dynamic_string, s390_stack_size_string)
16469         (s390_stack_guard_string): New global string variables.
16470         (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
16471         (s390_stack_guard): New global variables.
16472         (override_options): Added checks for the new options.
16473         (s390_emit_prologue): Emit stack check and trap code and perform
16474         compile time stack size checking.
16476         * config/s390/s390.h (TARGET_OPTIONS): Added new options
16477         "warn-framesize", "warn-dynamicstack", "stack-size" and
16478         "stack-guard".
16480         * doc/invoke.texi: Added documentation for the new options.
16482 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
16484         * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
16485         to eliminate warning.
16486         (linear_search_fdes): Declare p as unsigned.
16487         (binary_search_mixed_encoding_fdes): Likewise.
16488         * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
16489         to eliminate warning.
16490         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
16491         type cast.
16493 2004-08-19  Ulrich Weigand  <uweigand@de.ibm.com>
16495         * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
16496         * config/s390/s390.c (preferred_la_operand_p): Accept two operands
16497         instead of one.  Check for strictly legitimate address.
16498         * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
16499         to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
16501 2004-08-19  Eric Christopher  <echristo@redhat.com>
16503         * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
16504         * langhooks.h (unsave_expr_now): Ditto.
16505         * tree.h (unsave_expr_1): Remove prototype.
16506         (lhd_unsave_expr_now): Rename to unsave_expr_now.
16507         * tree-inline.c (unsave_expr_1): Move here
16508         from tree.c. Make static.
16509         (unsave_expr_now): Rename from lhd_unsave_expr_now.
16510         * tree-sra.c: Fix up for rename.
16511         * tree-ssa-copy.c: Ditto.
16512         * tree-eh.c: Ditto.
16513         * tree.c (unsave_expr_1): Move to tree-inline.c.
16515 2004-08-19  Caroline Tice  <ctice@apple.com>
16517         * config/i386/cygming.h (switch_to_section):  Fix typo (change
16518         in_unlikely_text_section to in_unlikely_executed_text).
16520 2004-08-19  Daniel Berlin  <dberlin@dberlin.org>
16522         * vec.h (VEC_lower_bound): New macro.
16524 2004-08-19  Richard Sandiford  <rsandifo@redhat.com>
16526         PR target/16446
16527         * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
16528         (mips_arg_info): Update accordingly.  Remove common treatment of fpr_p;
16529         treat each ABI separately.  Deal with n32/n64 complex float arguments.
16530         (function_arg): Add associated complex handling here.
16532 2004-08-19  Richard Henderson  <rth@redhat.com>
16534         * config/arm/arm.c (arm_gen_load_multiple): Use
16535         adjust_automodify_address.  Take base memory and offset instead
16536         of unchanging/struct/scalar bits.
16537         (arm_gen_store_multiple): Likewise.
16538         (arm_gen_movmemqi): Use adjust_automodify_address.
16539         * config/arm/arm-protos.h: Update decls.
16540         * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
16541         (store_multiple): Similarly.
16543 2004-08-19  J"orn Rennecke <joern.rennecke@superh.com>
16545         * regclass.c (globalize_reg): Update call_really_used_regs.
16547 2004-08-19  Nathan Sidwell  <nathan@codesourcery.com>
16549         * doc/invoke.texi (integer-share-limit): Document.
16551         * tree.h (TYPE_CACHED_VALUES_P): New.
16552         (TYPE_CACHED_VALUES): New.
16553         (TYPE_ORIG_SIZE_TYPE): Adjust.
16554         * tree.def (INTEGER_CST): Update documentation.
16555         * tree.c: Inlcude params.h.
16556         (build_int_cst): Cache small values.
16557         (build_type_copy): Do not copy the value cache.
16558         * c-common.c (c_common_nodes_and_builtins): Add comment, remove
16559         unneeded zeroing.
16560         * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
16561         * expmed.c (const_mult_add_overflow_p): Clear type copy's value
16562         cache.
16563         * fold-const.c (force_fit_type): Copy value when setting
16564         overflows.
16565         (int_const_binop): Likewise.
16566         * stor-layout.c: Include params.h
16567         (set_sizetype): Create values cache.
16568         (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
16569         * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
16570         * params.h (INTEGER_SHARE_LIMIT): New.
16571         * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
16573 2004-08-19  Paolo Bonzini  <bonzini@gnu.org>
16575         * gimplify.c (gimplify_minimax_expr): Remove.
16576         (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
16578 2004-08-19  Dorit Naishlos  <dorit@il.ibm.com>
16580         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
16581         STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
16583 2004-08-19  Mark Mitchell  <mark@codesourcery.com>
16585         * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
16587 2004-08-18  Andrew Pinski  <apinski@apple.com>
16589         * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
16591 2004-08-18  Mark Mitchell  <mark@codesourcery.com>
16593         * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
16594         (__aeabi_ul2f): Likewise.
16596 2004-08-18  Richard Henderson  <rth@redhat.com>
16598         * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
16599         move to rtl completely.
16600         (struct meminsnbuf, xtensa_emit_block_move): Remove.
16601         (xtensa_find_mode_for_size): Remove.
16602         * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
16603         * config/xtensa/xtensa.md (movmemsi_internal): Remove.
16605 2004-08-18  Richard Henderson  <rth@redhat.com>
16607         * config/mcore/mcore.c (mode_from_align): Remove DImode.
16608         (block_move_sequence): Rewrite to use adjust_address.
16609         (mcore_expand_block_move): Cleanup logic.  Accept only operands.
16610         Return boolean indicating success/failure.
16611         * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
16612         * config/mcore/mcore.md (movmemsi): Update to match.
16614 2004-08-18  Mike Stump  <mrs@apple.com>
16616         * doc/invoke.texi (-mfix-and-continue): Add support for
16617         fast turn around debugging.
16618         (-ffix-and-continue): Likewise.
16619         (-mindirect-data): Likewise.
16620         (-findirect-data): Likewise.
16621         * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
16622         (indirect_data): Likewise.
16623         (machopic_data_defined_p): Likewise.
16624         (machopic_output_indirection): Likewise.
16625         (darwin_encode_section_info): Likewise.
16626         (darwin_fix_and_continue): Likewise.
16627         (darwin_fix_and_continue_switch): Likewise.
16628         * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
16629         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
16630         (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
16631         (SUBTARGET_OPTIONS): Likewise.
16632         (darwin_fix_and_continue): Likewise.
16633         (darwin_fix_and_continue_switch): Likewise.
16634         (TARGET_FIX_AND_CONTINUE): Likewise.
16635         * config/rs6000.c (rs6000_emit_prologue): Likewise.
16637 2004-08-19  Steven Bosscher  <stevenb@suse.de>
16639         * basic-block.h (struct edge_def): Remove crossing_edge.
16640         (EDGE_CROSSING): New define.
16641         (EDGE_ALL_FLAGS): Update.
16642         * bb-reorder.c (find_traces_1_round, better_edge_p,
16643         find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
16644         find_jump_block, fix_crossing_conditional_branches,
16645         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
16646         Replace all occurences of crossing_edge with an edge flag check
16647         or set/reset.
16648         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
16649         try_crossjump_bb): Likewise.
16650         * cfglayout.c (fixup_reorder_chain): Likewise.
16651         * cfgrtl.c (force_nonfallthru_and_redirect,
16652         commit_one_edge_insertion): Likewise.
16654         * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
16655         * tree-flow.h (compute_dominance_frontiers): Move prototype...
16656         * basic-block.h:  ...here.
16657         * tree-cfg.c (compute_dominance_frontiers_1,
16658         compute_dominance_frontiers): Move from here...
16659         * cfganal.c: ...to here.  Include timevar.h.
16661 2004-08-18  James E Wilson  <wilson@specifixinc.com>
16663         * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
16664         * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
16666         * config/mips/mips.md (type): Add frdiv.
16667         (divsf3+1, divsf3+2): Change type to frdiv.
16668         * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
16669         ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
16671         * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
16672         * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
16673         * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
16674         * config/mips/5000.md (r5k_fdiv_single): Likewise.
16675         * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
16676         * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
16677         * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
16678         * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
16679         * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
16680         * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
16681         Likewise.
16682         * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
16684 2004-08-18  Robert Bowdidge <bowdidge@apple.com>
16686         * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
16687         get regression tester working again.
16689 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
16691         * insn-notes.def, reg-notes.def: New files.
16692         * rtl.h: Use them to define enum insn_note and enum reg_note.
16693         * rtl.c: Use them to define note_insn_name and reg_note_name.
16694         * Makefile.in (RTL_BASE_H): Update.
16696         * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
16697         renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
16699 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
16701         * arm.c (arm_size_rtx_costs): New function.
16702         (arm_override_options): Use it if optimizing for space.
16704 2004-08-18  Richard Henderson  <rth@redhat.com>
16706         * emit-rtl.c (gen_const_mem): New.
16707         * rtl.h (gen_const_mem): Declare.
16708         * expr.c (do_tablejump): Use it.
16709         * varasm.c (force_const_mem): Likewise.
16710         * config/darwin.c (machopic_indirect_data_reference): Likewise.
16711         (machopic_legitimize_pic_address): Likewise.
16712         * config/arm/arm.c (legitimize_pic_address): Likewise.
16713         * config/i386/i386.c (legitimize_pic_address): Likewise.
16714         (legitimize_tls_address): Likewise.
16715         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
16716         * config/ia64/ia64.md (load_fptr): Likewise.
16717         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
16718         * config/pa/pa.c (legitimize_pic_address): Likewise.
16719         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
16720         (rs6000_emit_move): Likewise.
16721         * config/s390/s390.c (legitimize_pic_address): Likewise.
16722         (legitimize_tls_address): Likewise.
16723         * config/s390/s390.md (casesi): Likewise.
16724         * config/sh/sh.c (sh_reorg): Likewise.
16725         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
16726         * config/v850/v850.md (casesi): Likewise.
16728         * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
16729         * config/sh/sh.c (prepare_move_operands): Remove incorrect
16730         use of MEM_READONLY_P.
16732 2004-08-18  Steven Bosscher  <stevenb@suse.de>
16734         * Makefile.in (OBJS-common): Add postreload-gcse.c.
16735         Add new postreload-gcse.o.
16736         * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
16737         (lookup_as_function, insert, rehash_using_reg, use_related_value,
16738         equiv_constant): Use SAFE_HASH instead of safe_hash.
16739         (exp_equiv_p): Export.  Add for_gcse argument when comparing
16740         for GCSE.
16741         (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
16742         find_comparison_args, fold_rtx, cse_insn): Update callers.
16743         (hash_rtx): New function derived from old canon_hash and bits
16744         from gcse.c hash_expr_1.
16745         (canon_hash_string): Rename to hash_rtx_string.
16746         (canon_hash, safe_hash): Make static inline.  Call hash_rtx.
16747         * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
16748         (cselib_lookup): Update this caller.
16749         * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
16750         Make static.
16751         (hash_expr): Call hash_rtx.
16752         (ldst_entry): Likewise.
16753         (expr_equiv_p): Call exp_equiv_p.
16754         (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
16755         reg_used_on_edge, reg_set_between_after_reload_p,
16756         reg_used_between_after_reload_p, get_avail_load_store_reg,
16757         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
16758         get_bb_avail_insn, hash_scan_set_after_reload,
16759         compute_hash_table_after_reload,
16760         eliminate_partially_redundant_loads, gcse_after_reload,
16761         get_bb_avail_insn, gcse_after_reload_main): Remove.
16762         * postreload-gcse.c: New file, reincarnating most of the above.
16763         * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
16764         (gcse_after_reload_main): Update prototype.
16765         * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
16766         * passes.c (rest_of_handle_gcse2): Use it.
16768 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
16770         * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
16771         (pass_loop_done): Likewise.
16773 2004-08-18  Andrew Pinski  <apinski@apple.com>
16775         * config/rs6000/darwin.md: Delete the altivec patterns which are
16776         handled differently now.
16777         (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
16778         (macho_correct_pic_di): Likewise.
16779         (call_indirect_nonlocal_darwin64): Likewise.
16780         Delete the save world/saveFP/saveVec patterns.
16782         Revert the reversion of: 2004-08-16  Stan Shebs  <shebs@apple.com>
16783         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
16784         * config/rs6000/rs6000.md: Include darwin.md.
16785         (builtin_setjmp_receiver): Add DImode case.
16786         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
16787         Darwin bits.
16789 2004-08-18  Matt Austern  <austern@apple.com>
16791         Dead code stripping
16792         * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
16793         * darwin.c (darwin_file_end): Mark file as potentially strippable.
16795 2004-08-18  Richard Henderson  <rth@redhat.com>
16797         * alias.c (readonly_fields_p): Remove.
16798         (objects_must_conflict_p): Don't call it.
16799         * tree.h (readonly_fields_p): Remove.
16800         * langhooks.h (struct lang_hooks): Remove honor_readonly.
16801         * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
16803 2004-08-18  Diego Novillo  <dnovillo@redhat.com>
16805         * tree-dfa.c (add_referenced_var): Only global variables are
16806         call-clobbered.
16807         * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
16808         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
16809         all pointers dereferenced if the statement dereferences them.
16810         (create_name_tags): Do not create memory tags for pointers
16811         that have PT_ANYTHING set.
16812         Also check if PT_VARS is not empty before creating a name tag.
16813         (compute_flow_sensitive_aliasing): Don't mark call-clobbered
16814         variables that share the same alias set with a pointer that
16815         may point anywhere.
16816         (add_may_alias): Add FIXME comment to remove clobbering
16817         aliased variables and tags.
16818         (replace_may_alias): Likewise.
16819         (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
16820         (merge_pointed_to_info): If the original variable has not
16821         points-to information, call set_pt_anything.
16822         (add_pointed_to_var): Do not prevent adding a pointed-to
16823         variable if the pointers is PT_ANYTHING.
16824         If the variable is a global, set PT_GLOBAL_MEM.
16825         (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
16826         pointer type only come in PTR+OFFSET flavours.
16827         Always call merge_pointed_to_info on PHI arguments that are
16828         SSA_NAMEs.
16829         (get_nmt_for): Mark call-clobbered tags whose pointer points
16830         to global memory.
16831         * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
16832         values.
16833         (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
16834         FLAGS.
16835         (add_stmt_operand): Abort if the caller tried to add a killing
16836         definition for a memory tag.
16837         * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
16838         unnecessary checks.
16840 2004-08-18  J"orn Rennecke <joern.rennecke@superh.com>
16842         * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
16843         from call_used_regs.  Update call_really_used_regs.
16844         (CALL_REALLY_USED_REGISTERS): Define.
16845         * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
16846         Replace call_used_regs with call_really_used_regs.
16847         (calc_live_regs, sh_media_register_for_return): Likewise.
16848         (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
16849         * sh.md (return_media): Likewise.
16851 2004-08-18  Andrew Pinski  <apinski@apple.com>
16853         * config/darwin.c (machopic_legitimize_pic_address): Only set
16854         MEM_READONLY_P in the non TARGET_TOC case.
16856 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
16858         * rtl.def (NIL): Delete.
16859         * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
16860         Tighten the syntax a little.
16862         * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
16863         * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
16864         * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
16865         * config/i386/predicates.md, config/m32r/m32r.h
16866         * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
16867         * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
16868         * config/sparc/sparc.h, doc/tm.texi:
16869         Replace all occurrences of NIL with UNKNOWN.
16871 2004-08-18  Zack Weinberg  <zack@codesourcery.com>
16873         * dojump.c (do_jump <unordered_bcc>): Do not recursively call
16874         self with a TRUTH_ORIF_EXPR; generate the appropriate jump
16875         sequence inline.  Move drop_through_label code into this
16876         block, being the only place it is used.  Adjust comments.
16878 2004-08-18  Fariborz Jahanian <fjahanian@apple.com>
16880         * config/rs6000/altivec.md: Add new patterns for calls to
16881         save_world/rest_world functions.
16883         * config/rs6000/rs6000-protos.h: (save_world_operation,
16884         restore_world_operation) new declarations.
16886         * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
16887         field added.
16888         (rs6000_stack_info): Set world_save_p field.
16889         (save_world_operation): New function.
16890         (restore_world_operation): New function.
16891         (compute_save_world_info): New function.
16892         (rs6000_stack_info): Call compute_save_world_info.
16893         (rs6000_emit_prologue): Check for world_save_p and generate
16894         pattern to call save_world for saving all non-volatile and
16895         special registers.
16896         (rs6000_emit_epilogue): Check for world_save_p and generate
16897         pattern to call rest_world to restore saved registers.
16899         config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
16900         FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
16901         (rs6000_reg_names): New entries added for save_world_operation and
16902         restore_world_operation.
16904 2004-08-18  Caroline Tice  <ctice@apple.com>
16906         * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
16907         "-freorder-blocks-and-partition" to the flags used in second
16908         stage of profiledbootstrap.
16909         * bb-reorder.c (push_to_next_round_p): Add new variable,
16910         next_round_is_last; set and use variable to make sure, when
16911         partitioning, that the last trace construction round consists
16912         of all (and only) cold basic blocks.
16913         (rotate_loop): Don't copy blocks that end in a section
16914         crossing jump.
16915         (copy_bb): Correctly initialize "partition" of duplicated bb.
16916         (add_unlikely_executed_notes): Add a comment.
16917         (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
16918         to make sure, if function contains hot blocks, that the
16919         successors of ENTRY_BLOCK_PTR are hot; also, only look for
16920         crossing edges if the architecture supports named sections.
16921         (mark_bb_for_unlikely_executed_section): Modify to always
16922         insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
16923         the basic block note insn.
16924         (fix_crossing_unconditional_branches): Remove extra space.
16925         (fix_edges_for_rarely_executed_code): Modify to only do
16926         partitioning work if the architecture supports named sections.
16927         (reorder_basic_blocks): Modify to only add
16928         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
16929         supports named sections.
16930         * c-common.c (handle_section_attribute): Initialize new global
16931         variable, user_defined_section_attribute, to true if user has
16932         specified one.
16933         * cfgcleanup.c (try_forward_edges): Modify to not attempt to
16934         forward edges that cross section boundaries.
16935         * cfglayout.c (fixup_reorder_chain): Modify to only fix up
16936         partitioning information if the architecture supports named
16937         sections.
16938         * cfgrtl.c (target.h): Add statement to include this.
16939         (rtl_split_block): Make sure newly created bb gets correct
16940         partition.
16941         (try_redirect_by_replacing_jump): Make sure redirection isn't
16942         attempting to cross section boundaries.
16943         (force_nonfallthru_and_redirect): Only do partition fix up if
16944         architecture supports named sections.
16945         (rtl_split_edge): Make sure newly created bb ends up in
16946         correct partition.
16947         (commit_one_edge_insertion): Remove code that incorrectly
16948         updated basic block partition; Make sure partition fix up only
16949         happens if architecture supports named sections and it's not
16950         already done.
16951         (rtl_verify_flow_info_1): Fix if-condition on test/error
16952         condition that fallthru edges are not allowed to cross section
16953         boundaries.
16954         * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
16955         * final.c (final_scan_insn): Remove redundant test from if-statement;
16956         change calls to text_section into calls to function_section; add code
16957         to only to partitioning fix up if architecture supports named
16958         sections.
16959         * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
16960         partition.
16961         (if_convert): Add targetm.have_named_sections to test.
16962         * output.h (unlikely_section_label): Extern declaration for new global
16963         variable.
16964         (unlikely_text_section_name): Likewise.
16965         * opts.c (decode_options): If both partitioning and DWARF debugging
16966         are turned on, issue a warning that this doesn't work, and change
16967         partitiong to basic block reordering (without hot/cold partitions).
16968         * passes.c (rest_of_handle_final): Re-set new global variable,
16969         user_defined_section_attribute, to false.
16970         (rest_of_compilation): Change options for calling partitioning
16971         function: Don't call if the user defined the section attribute, and
16972         don't call if DECL_ONE_ONLY is true for the current function.
16973         * predict.c (choose_function_section): Return immediately if we
16974         are doing hot/cold partitioning (i.e. let the basic block partitioning
16975         determine where the function belongs).
16976         * reg-stack.c (emit_swap_insn): Add condition to step over
16977         NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
16978         * toplev.c (user_defined_section_attribute): New global variable.
16979         * toplev.h (user_defined_section_attribute): Extern declaration
16980         for new global variable.
16981         * varasm.c (unlikely_section_label): New global variable.
16982         (unlikely_text_section_name): New global variable.
16983         (unlikely_text_section): Add code to initialize
16984         unlikely_text_section_name if necessary; modify to use
16985         unlikely_text_section_name and unlikely_section_label; also to use
16986         named_section properly.
16987         (in_unlikely_text_section):  Modify to work correctly with
16988         named_section and to use unlikely_text_section_name.
16989         (named_section):  Add code to work properly with cold section.
16990         (function_section): Clean up if-statement.
16991         * config/darwin.c (darwin_asm_named_section): Return to original
16992         code, removing use of SECTION_FORMAT_STRING.
16993         * config/arm/pe.h (switch_to_section):  Add case for
16994         in_unlikely_executed_text to switch statement.
16995         * config/i386/cygming.h (switch_to_section): Likewise.
16996         * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
16997         (SECTION_FORMAT_STRING): Likewise.
16998         * config/mcore/mcore.h (switch_to_section): Likewise.
16999         * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
17000         (SECTION_FORMAT_STRING): Remove.
17002 2004-08-18  Roger Sayle  <roger@eyesopen.com>
17004         * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
17005         -ffixed-reg safe, by preserving the meanings of zero and one.
17006         (CALL_USED_REGISTERS): Likewise.
17007         (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
17009 2004-08-18  Kaz Kojima  <kkojima@gcc.gnu.org>
17011         * config/sh/sh.c (split_branches): Check the result of
17012         next_active_insn.
17013         (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
17014         Call rtl_register_cfg_hooks.
17016 2004-08-18  Richard Henderson  <rth@redhat.com>
17018         * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17019         * alias.c (true_dependence): Update to match new semantics.
17020         (canon_true_dependence, write_dependence_p): Likewise.
17021         (anti_dependence, output_dependence): Update write_dependence_p args.
17022         (unchanging_anti_dependence): Remove.
17023         * calls.c (purge_mem_unchanging_flag): Remove.
17024         (fixup_tail_calls): Don't call it.
17025         (expand_call): Don't add unchanging memory to function usage.
17026         * expr.c (emit_block_move_via_libcall): Likewise.
17027         (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
17028         (get_subtarget): Don't use RTX_UNCHANGING_P.
17029         (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
17030         (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
17031         * combine.c (get_last_value_validate): Use MEM_READONLY_P.
17032         * cse.c (insert): Don't use RTX_UNCHANGING_P.
17033         (cse_insn, canon_hash): Use MEM_READONLY_P.
17034         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
17035         instead of RTX_UNCHANGING_P.
17036         * explow.c (maybe_set_unchanging): Remove.
17037         * expr.h (maybe_set_unchanging): Remove.
17038         * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
17039         * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
17040         (assign_parm_setup_reg, expand_function_start): Likewise.
17041         * integrate.c (copy_rtx_and_substitute): Likewise.
17042         * ra-rewrite.c (emit_colors): Likewise.
17043         * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
17044         (fixup_match_1): Likewise.
17045         * reload1.c (reload, alter_reg): Likewise.
17046         * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
17047         not RTX_UNCHANGING_P.
17048         (equiv_init_varies_p): Likewise.
17049         * loop-invariant.c (check_maybe_invariant): Likewise.
17050         * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
17051         * loop.c (note_addr_stored): Likewise.
17052         (prescan_loop): Likewise. Don't check function usage for clobbered
17053         unchanging memory.
17054         * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
17055         not RTX_UNCHANGING_P.
17056         (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
17057         * varasm.c (force_const_mem): Likewise.
17058         * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
17059         * web.c (entry_register): Likewise.
17060         * tree-gimple.h (get_base_address): Move decl ...
17061         * tree.h: ... here.
17062         * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
17064         * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
17065         called via for_each_rtx.  Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
17066         (alpha_set_memflags): Update to match.
17068         * config/darwin.c (machopic_indirect_data_reference): Set
17069         MEM_READONLY_P instead of RTX_UNCHANGING_P.
17070         (machopic_indirect_call_target): Likewise.
17071         (machopic_legitimize_pic_address): Likewise.
17072         * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
17073         arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
17074         * config/arm/arm.md (load_multiple, store_multiple): Likewise.
17075         * config/frv/frv.md (symGOT2reg): Likewise.
17076         * config/i386/i386.c (legitimize_pic_address,
17077         legitimize_tls_address, ix86_split_to_parts): Likewise.
17078         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
17079         * config/ia64/ia64.md (load_fptr): Likewise.
17080         * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
17081         * config/m68k/m68k.c (legitimize_pic_address): Likewise.
17082         * config/mcore/mcore.c (block_move_sequence): Likewise.
17083         * config/mn10300/mn10300.md (symGOT2reg): Likewise.
17084         * config/pa/pa.c (legitimize_pic_address): Likewise.
17085         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
17086         (rs6000_emit_move): Likewise.
17087         * config/s390/s390.c (legitimize_pic_address): Likewise.
17088         (legitimize_tls_address): Likewise.
17089         * config/s390/s390.md (casesi): Likewise.
17090         * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
17091         * config/sh/sh.md (symGOT2reg): Likewise.
17092         * config/sparc/sparc.c (legitimize_pic_address): Likewise.
17093         * config/v850/v850.md (casesi): Likewise.
17095         * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
17096         * config/iq2000/iq2000.c (save_restore_insns): Likewise.
17097         * config/mips/mips.c (mips_restore_gp): Likewise.
17098         (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
17099         * config/sh/sh.c (sh_reorg): Likewise.
17101 2004-08-18  Richard Henderson  <rth@redhat.com>
17103         * tree.h (struct tree_decl): Add gimple_formal_temp.
17104         (DECL_GIMPLE_FORMAL_TEMP_P): New.
17105         * gimplify.c (pop_gimplify_context): Clear it.
17106         (lookup_tmp_var): Set it, if is_formal.
17107         (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
17108         Use is_gimple_val for VECTOR.  Simplify return value.
17109         (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
17110         (gimplify_expr): Likewise.
17111         * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
17112         is_gimple_tmp_rhs for clarity.  Update all callers.
17113         (is_gimple_reg_rhs): Simplify logic.
17114         (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
17115         clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
17116         (is_gimple_formal_tmp_reg): Similarly.
17117         * tree-gimple.h: Update decls.
17118         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
17119         DECL_IGNORED_P, not DECL_ARTIFICIAL.  Tidy formatting.
17120         * tree-ssa-live.c (var_union, type_var_init): Likewise.
17122 2004-08-18  Paolo Bonzini  <bonzini@gnu.org>
17124         * c4x.c (legitimize_operands): Remove calls to
17125         preserve_subexpressions_p.
17127 2004-08-18  David Edelsohn  <edelsohn@gnu.org>
17129         * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
17130         * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
17132 2004-08-18  Ziemowit Laski  <zlaski@apple.com>
17134         * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
17135         Objective-C++ extensions.
17136         * gengtype.c (get_file_basename): Match entire subdirectory name
17137         ('cp', 'objc', 'objcp') rather than just its suffix.
17138         (get_base_file_bitmap): Allow for files to belong to more than one
17139         language.
17140         (get_output_file_with_visibility): Treat objc/objc-act.h as a header
17141         used by more than one front-end.
17143 2004-08-18  Richard Earnshaw  <rearnsha@arm.com>
17145         * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
17146         avoid use of preserve_subexpressions_p.
17148 2004-08-17  Richard Henderson  <rth@redhat.com>
17150         PR 17051
17151         * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
17153 2004-08-17  DJ Delorie  <dj@redhat.com>
17155         * doc/extend.texi: Document new xstormy16 attribute.
17157         * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
17158         (xstormy16_splittable_below100_or_register): New.
17159         (combine_bnp): New.
17160         (xstormy16_reorg): New.
17161         (TARGET_MACHINE_DEPENDENT_REORG): Define.
17163         * config/stormy16/stormy16.md (movqi_internal): Make name public.
17164         (movhi_internal): Likewise.
17165         (cbhranchhi): Likewise.
17166         (cbhranchhi_neg): Likewise.
17167         (andhi3): Only allow splittable below100 operands.
17168         (iorhi3): Likewise.
17169         (peephole2): New and/zero_extend->and peephole.
17170         (peephole2): New load/ior/save->set1 peephole.
17171         (peephole2): New load/and/save->clr1 peephole.
17172         (bclrx, bclrx2, bclr7, bclr15): New.
17173         (bsetx, bsetx2, bset7, bset15): New.
17175         * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
17176         liberal about acceptable 'B' masks.
17178         * config/stormy16/stormy16-protos.h
17179         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
17180         xstormy16_below100_operand, xstormy16_below100_or_register,
17181         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
17182         (PREDICATE_CODES): Add new predicates.
17184         * config/stormy16/stormy16.c
17185         (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
17186         xstormy16_below100_operand, xstormy16_below100_or_register,
17187         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
17188         (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
17189         (xstormy16_legitimate_address_p): Allow below100 symbols.
17190         (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
17191         (xstormy16_expand_move): Leave below100 operands as-is.
17192         (xstormy16_encode_section_info): Encode below100 symbols.
17193         (xstormy16_strip_name_encoding): New.
17194         (xstormy16_print_operand): Print 'b' as shift mask.
17195         (xstormy16_attribute_table): Add below100 attributes.
17196         (xstormy16_handle_below100_attribute): New.
17198         * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
17199         (XSTORMY16_SECTION_FUNCTION): New.
17200         (EXTRA_SECTION_FUNCTIONS): Define using the above.
17201         (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17202         (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
17203         (ASM_OUTPUT_LABELREF): Define.
17205         * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
17206         (movhi_internal): Add below100 support.
17207         (andhi3): Add below100 support.
17208         (iorhi3): Add below100 support.
17209         (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
17211 2004-08-17  James E Wilson  <wilson@specifixinc.com>
17213         * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
17214         of VOIDmode for comparison code mode.
17215         * config/mips/mips.md: For conditional move patterns, use mode of
17216         first compare operand for comparison mode, instead of VOIDmode.
17218         * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
17219         normal and -ffast-math code.
17221 2004-08-17  Mark Mitchell  <mark@codesourcery.com>
17223         PR c++/15871
17224         * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
17226 2004-08-17  Robert Bowdidge  <bowdidge@apple.com>
17228         * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
17230 2004-08-17  Andreas Tobler  <a.tobler@schweiz.ch>
17232         * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
17233         for non Darwin targets.
17234         (*call_value_nonlocal_darwin64): Likewise.
17236 2004-08-17  Fariborz Jahanian <fjahanian@apple.com>
17238         * config/rs6000/rs6000.c (rs6000_function_value): Check for
17239         altivec mode for altivec return register.
17241 2004-08-17  David Edelsohn  <edelsohn@gnu.org>
17243         Revert 2004-08-16  Stan Shebs  <shebs@apple.com>
17244         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17245         * config/rs6000/rs6000.md: Include darwin.md.
17246         (builtin_setjmp_receiver): Add DImode case.
17247         * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
17248         Darwin bits.
17250 2004-08-17  Dorit Naishlos  <dorit@il.ibm.com>
17252         * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
17253         trees.
17254         * tree-vectorizer.h: New File: Same.
17255         * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
17256         * common.opt (ftree-vectorize): New flag to enable vectorization.
17257         * timevar.def (TV_TREE_VECTORIZATION): New dump file for
17258         vectorization pass.
17259         * tree-data-ref.h (init_data_ref): Additional argument.
17260         (array_base_name_differ_p): Moved to tree-data-ref.c.
17261         * tree-data-ref.c (array_base_name_differ_p): Revised.
17262         (initialize_data_dependence_relation): Call array_base_name_differ_p
17263         with an extra argument.
17264         (analyze_all_data_dependences): Same.
17265         (init_data_ref): Additional argument is_read to set DR_IS_READ.
17266         * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
17267         file.
17268         * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
17269         * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
17270         * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
17271         vectorization pass.
17272         * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
17273         (tree_ssa_loop_done): Call scev_finalize.
17274         (tree_vectorize): Define the new vectorization pass.
17275         * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
17276         size of the vector they support (until support for multiple vector
17277         sizes is added to the vectorizer).
17278         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
17279         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
17280         * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
17281         documentation.
17283 2004-08-17  Nathan Sidwell  <nathan@codesourcery.com>
17285         * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
17286         usage.
17287         (generate_protocol_list, handle_impent): Likewise.
17289 2004-08-17  Roger Sayle  <roger@eyesopen.com>
17291         * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
17292         ensure that call_used_regs is a superset of both fixed_regs and
17293         call_really_used_regs.
17295 2004-08-17  Daniel Bornstein  <danfuzz@milk.com>
17297         PR target/17019
17298         * arm.md (addsi3_cbranch_scratch): Correct case labels.
17300 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
17302         PR middle-end/17036
17303         * fold-const.c (fold): Check for integer operand when
17304         folding (A >> N) & 1 ? (1 << N) : 0.  Fix from Andrew
17305         Pinski  <pinskia@physics.uc.edu>.
17307 2004-08-17  Paolo Bonzini  <bonzini@gnu.org>
17309         * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
17310         No need to check if in a cross configuration.
17311         * configure: Regenerate.
17313         * calls.c (precompute_register_parameters):
17314         Inline preserve_subexpressions_p ().
17315         * expmed.c (expand_mult_const, emit_store_flag): Likewise.
17316         * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
17317         Likewise.
17318         * expr.c (get_subtarget): Likewise.
17319         * rtl.h (preserve_subexpressions_p): Remove.
17320         * stmt.c (preserve_subexpressions_p): Remove.
17322         * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
17323         TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
17324         Abort on gimplified cases.
17326 2004-08-16  James E Wilson  <wilson@specifixinc.com>
17328         * tree.h (VECTOR_FLOAT_TYPE_P): New.
17329         (FLOAT_TYPE_P): Use it.
17330         * c-typeck.c (build_binary_op): After convert calls, check for
17331         check for ERROR_MARK operands.
17333 2004-08-16  Zack Weinberg  <zack@codesourcery.com>
17335         * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
17336         (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
17337         (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
17338         (genobjs static pattern rule): Remove %.c dependency.
17339         ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
17340         Rename rules; delete commands; fix dependencies.
17341         (mostlyclean): Do not delete temporary source copies.
17342         * configure.ac: Delete all references to BUILD_PREFIX and
17343         BUILD_PREFIX_1.
17344         * configure: Regenerate.
17346         * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
17347         Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
17348         basic-block.h #ifdef GENERATOR_FILE.  Surround some more code
17349         with #ifndef GENERATOR_FILE so that nothing from those headers
17350         is used.
17352         * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
17354 2004-08-16  Adam Nemet  <anemet@lnxw.com>
17356         * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
17358 2004-08-16  Andrew Pinski  <apinski@apple.com>
17360         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
17361         extraneous semicolon.
17363 2004-08-16  Devang Patel  <dpatel@apple.com>
17365         * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
17366         * print-tree.c (print_node): Print DECL_PRESERVE_P.
17367         * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
17368         (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
17369         * target.h (struct gcc_target): New member, mark_decl_preserved.
17370         * hooks.c (hook_void_charptr): Rename to ...
17371         (hook_void_constcharptr): ... new name.
17372         * hooks.h (hook_void_charptr): Rename to ..
17373         (hook_void_constcharptr): ... new name.
17374         * tree.h (DECL_PRESERVE_P): New #define.
17375         (struct tree_decl): New member, preserve_flag.
17376         * varasm.c (assemble_start_function): Mark decl preserved.
17377         (assemble_variable): Same.
17378         * darwin.c (darwin_mark_decl_preserved): New function.
17379         * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
17380         * darwin-protos.h (darwin_mark_decl_preserved): New decl.
17381         * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
17383 2004-08-16  Joseph S. Myers  <jsm@polyomino.org.uk>
17385         * c-decl.c (grokdeclarator): Allow for function definition where
17386         innermost declarator has attributes.
17388 2004-08-16  Fariborz Jahanian <fjahanian@apple.com>
17390         * except.c (get_exception_filter, build_post_landing_pads,
17391         dw2_build_landing_pads): Use target-specific mode for 'filter'.
17392         * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
17393         * target.h (eh_return_filter_mode): New field added.
17394         * targhooks.c (default_eh_return_filter_mode): Defined.
17395         * targhooks.h (default_eh_return_filter_mode): Declared.
17396         * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
17398 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
17400         * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
17401         ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
17402         * configure: Regenerate.
17404 2004-08-16  Stan Shebs  <shebs@apple.com>
17406         Basic support for 64-bit Darwin.
17407         * config/darwin.c (macho_indirect_data_reference): Add DImode case.
17408         (machopic_legitimize_pic_address): Similarly, plus use Pmode
17409         instead of SImode.
17410         * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
17411         (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
17412         (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
17413         (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
17414         (PROCESSOR_DEFAULT64): Define.
17415         * config/rs6000/darwin.md: New file, patterns specific to 64-bit
17416         Darwin.
17417         * config/rs6000/rs6000.md: Include darwin.md.
17418         (builtin_setjmp_receiver): Add DImode case.
17419         * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
17420         Darwin.
17421         (TARGET_ASM_ALIGNED_DI_OP): Ditto.
17422         (rs6000_emit_move): Add DImode case to Darwin bits.
17423         (machopic_output_stub): Use .quad if 64-bit.
17424         * invoke.texi: Document -m32 and -m64.
17426 2004-08-16  Janis Johnson  <janis187@us.ibm.com>
17428         * doc/extend.texi (AltiVec builtins): Document additional differences
17429         from the Motorola AltiVec PIM.
17431 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
17433         * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
17434         * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
17435         (struct tree_common): Update public_flag documentation.
17437 2004-08-16  Nathanael Nerode  <neroden@gcc.gnu.org>
17439         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
17440         Check for artificial variables, not is_gimple_tmp_var.
17441         * tree-ssa-live.c (var_union): Likewise.
17443 2004-08-16  Nathan Sidwell  <nathan@codesourcery.com>
17445         * calls.c (load_register_parameters): Remove spurious FIXME token.
17447 2004-08-15  Ziemowit Laski  <zlaski@apple.com>
17449         * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
17450         (c-lang.o): Depend on c-objc-common.h.
17451         (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
17452         c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
17453         * c-lang.c: Include c-objc-common.h.
17454         (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
17455         LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
17456         LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
17457         LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
17458         LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
17459         LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
17460         LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
17461         LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
17462         LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
17463         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
17464         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
17465         LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
17466         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
17467         LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
17468         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
17469         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
17470         LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
17471         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
17472         LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
17473         LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
17474         LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
17475         LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
17476         LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
17477         LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
17478         Move to c-objc-common.h.
17479         * c-objc-common.c: Include c-objc-common.h.
17480         * c-objc-common.h: New file.
17482 2004-08-15  Andreas Tobler  <a.tobler@schweiz.ch>
17483             Andrew Pinski  <pinskia@physics.uc.edu>
17485         PR target/14931
17486         * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
17487         style.
17489 2004-08-15  Nathan Sidwell  <nathan@codesourcery.com>
17491         * tree.h (build_int_cst): New.
17492         (build_int_2): Remove.
17493         * tree.c (build_int_2): Remove.
17494         (build_int_cst): New.
17495         (make_vector_type, build_common_tree_nodes,
17496         build_common_tree_nodes_2): Use build_int_cst.
17497         * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
17498         expand_builtin_strpbrk, expand_builtin_fputs,
17499         build_string_literal, expand_builtin_printf,
17500         expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
17501         fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
17502         fold_builtin_isdigit, simplify_builtin_strstr,
17503         simplify_builtin_strpbrk, fold_builtin_fputs,
17504         simplify_builtin_sprintf): Use build_int_cst.
17505         * c-common.c (start_fname_decls, fix_string_type,
17506         c_common_nodes_and_builtins, c_init_attributes,
17507         shorten_compare): Likewise.
17508         * c-decl.c (complete_array_type,
17509         check_bitfield_type_and_width): Likewise.
17510         * c-lex.c (interpret_integer, lex_charconst): Likewise.
17511         * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
17512         * c-pretty-print.c (pp_c_integer_constant): Likewise.
17513         * c-typeck.c (really_start_incremental_init, push_init_level,
17514         set_nonincremental_init_from_string): Likewise.
17515         * calls.c (load_register_parameters): Likewise.
17516         * convert.c (convert_to_pointer): Likewise.
17517         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
17518         build_fn_info_type, build_ctr_info_value, build_gcov_info):
17519         Likewise.
17520         * except.c (init_eh, assign_filter_values, assign_filter_values):
17521         Likewise.
17522         * expmed.c (store_fixed_bit_field, extract_bit_field,
17523         extract_fixed_bit_field, extract_split_bit_field, expand_shift,
17524         expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
17525         expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
17526         * expr.c (convert_move, emit_group_load, emit_group_store,
17527         expand_assignment, store_constructor, store_field,
17528         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
17529         * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
17530         invert_truthvalue, optimize_bit_field_compare,
17531         decode_field_reference, all_ones_mask_p, constant_boolean_node,
17532         fold_div_compare, fold, fold_read_from_constant_string,
17533         fold_negate_const, fold_abs_const, fold_not_const): Likewise.
17534         * function.c (assign_parm_setup_block): Likewise.
17535         * stmt.c (shift_return_value, expand_end_case_type,
17536         estimate_case_costs): Likewise.
17537         * stor-layout.c (layout_type, initialize_sizetypes,
17538         set_min_and_max_values_for_integral_type): Likewise.
17539         * tree-chrec.c (chrec_fold_multiply_poly_poly,
17540         reset_evolution_in_loop): Likewise.
17541         * tree-chrec.h (build_polynomial_chrec): Likewise.
17542         * tree-complex.c (build_replicated_const): Likewise.
17543         * tree-eh.c (honor_protect_cleanup_actions,
17544         lower_try_finally_onedest, lower_try_finally_copy,
17545         lower_try_finally_switch): Likewise.
17546         * tree-mudflap.c (mf_build_string, mx_register_decls,
17547         mudflap_register_call, mudflap_enqueue_constant): Likewise.
17548         * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
17549         * tree-pretty-print.c (dump_generic_node): Likewise.
17550         * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
17551         Likewise.
17552         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
17553         * tree-ssa-loop-niter.c (number_of_iterations_cond,
17554         loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
17555         Likewise.
17557         * config/alpha/alpha.c (alpha_initialize_trampoline,
17558         alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
17559         * config/arm/arm.c (arm_get_cookie_size): Likewise.
17560         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
17561         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
17562         * config/i860/i860.c (i860_va_start): Likewise.
17563         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
17564         * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
17565         mips_gimplify_va_arg_expr): Likewise.
17566         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
17567         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
17568         add_compiler_branch_island): Likewise.
17569         * config/s390/s390.c (s390_va_start): Likewise.
17570         * config/sh/sh.c (sh_va_start): Likewise.
17571         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
17572         Likewise.
17573         * config/xtensa/xtensa.c (xtensa_va_start,
17574         xtensa_gimplify_va_arg_expr): Likewise.
17576         * objc/objc-act.c (build_objc_string_object,
17577         build_objc_symtab_template, init_def_list, init_objc_symtab,
17578         init_module_descriptor, generate_static_references,
17579         build_selector_translation_table, get_proto_encoding,
17580         build_typed_selector_reference, build_selector_reference,
17581         build_next_objc_exception_stuff,
17582         build_method_prototype_list_template, generate_descriptor_table,
17583         generate_protocols, build_protocol_initializer,
17584         build_ivar_list_template, build_method_list_template,
17585         build_ivar_list_initializer, generate_ivars_list,
17586         generate_dispatch_table, generate_protocol_list,
17587         build_category_initializer, build_shared_structure_initializer,
17588         generate_shared_structures, handle_impent,
17589         generate_objc_image_info): Use build_int_cst.
17591 2004-08-15  Ben Elliston  <bje@au.ibm.com>
17593         * vec.h: Comment improvements.
17595 2004-08-14  Roger Sayle  <roger@eyesopen.com>
17597         * c-common.c (shorten_compare, pointer_int_sum,
17598         c_common_truthvalue_conversion, boolean_increment): Replace calls
17599         to build with calls to buildN.
17600         * c-decl.c (complete_array_type, grokdeclarator): Likewise.
17601         * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
17602         gimplify_switch_stmt): Likewise.
17603         * c-typeck.c (default_function_array_conversion,
17604         build_component_ref, build_array_ref, build_function_call,
17605         pointer_diff, build_unary_op, build_conditional_expr,
17606         build_compound_expr, build_modify_expr, c_finish_goto_label,
17607         c_finish_goto_ptr, c_finish_return, c_finish_loop,
17608         c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
17609         build_binary_op): Likewise.
17611 2004-08-15  Steven Bosscher  <stevenb@suse.de>
17613         * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
17615 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17617         * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
17618         curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
17619         * fixinc/fixincl.x: Rebuilt.
17621 2004-08-14  Richard Sandiford  <rsandifo@redhat.com>
17623         * config/mips/mips-protos.h (mips_symbolic_constant_p)
17624         (mips_atomic_symbolic_constant_p, mips_stack_address_p)
17625         (mips_small_data_pattern_p): Declare.
17626         * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
17627         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
17628         * config/mips/mips.c (mips_symbolic_constant_p): Make global.
17629         (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
17630         (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
17631         (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
17632         (reg_or_const_float_1_operand, hilo_operand, extend_operator)
17633         (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
17634         (pc_or_label_operand, call_insn_operand, move_operand)
17635         (consttable_operand, symbolic_operand, general_symbolic_operand)
17636         (global_got_operand, local_got_operand, stack_operand)
17637         (fp_register_operand, lo_operand, fcc_register_operand): Delete.
17638         (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
17639         (mips_small_data_pattern_p): Replace previous small_data_pattern
17640         predicate.  Turn into a bool () (rtx) function.
17641         * config/mips/predicates.md: New file.
17642         * config/mips/mips.md: Include it.  Use the target-independent
17643         comparison_operator instead of cmp_op.  Rename trap_cmp_op to
17644         trap_comparison_operator and equality_op to equality_operator.
17645         Replace uses of small_int with the equivalent const_arith_operand.
17646         Rename reg_or_const_float_1_operand to reg_or_1_operand.  Rename
17647         const_float_1_operand to const_1_operand.  Rename fcc_register_operand
17648         to fcc_reload_operand.
17649         * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
17651 2004-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17653         PR libstdc++/17005 partial fix.
17654         * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
17655         except when generating ANSI/C89 code.
17657 2004-08-14  Nathan Sidwell  <nathan@codesourcery.com>
17659         * c-common.c (shorten_compare): Use force_fit_type directly.
17661 2004-08-14  Gerald Pfeifer  <gerald@pfeifer.com>
17662             Dimitri Papadopoulos-Orfanos  <papadopo@shfj.cea.fr>
17663             Dave Korn  <dk@artimi.com>
17665         * doc/install.texi (Building): Avoid duplicate reference to GNU
17666         make requirement.
17667         (*-*-solaris2*): Do not recommend GNU make any longer.  Simplify.
17669 2004-08-14  Richard Henderson  <rth@redhat.com>
17671         * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
17672         * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
17674 2004-08-13  Richard Henderson  <rth@redhat.com>
17676         * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
17677         for constant_call_address_operand.
17678         (call_value_pop_1, call_value_1): Likewise.
17679         (sibcall_value_1, call_value_1_rex64): Likewise.
17681 2004-08-13  James E Wilson  <wilson@specifixinc.com>
17683         * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
17684         Correct mode from SFmode to DFmode.
17686 2004-08-13  Ziemowit Laski  <zlaski@apple.com>
17688         * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
17689         __cstring_object and __image_info sections with the no_dead_strip
17690         attribute.
17692 2004-08-13  Roger Sayle  <roger@eyesopen.com>
17693             David Billinghurst  <David.Billinghurst@riotinto.com>
17695         PR libgfortran/15930
17696         * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
17697         * fixinc/fixincl.x: Regenerate.
17698         * fixinc/tests/base/internal/math_core.h: New file.
17700 2004-08-13  Richard Henderson  <rth@redhat.com>
17702         * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
17703         (dbxout_function_end): Remove ifdefs for it.
17704         (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
17706 2004-08-13  Richard Henderson  <rth@redhat.com>
17708         * Makefile.in (insn-preds.o): Depend on TREE_H.
17709         * genpreds.c (write_insn_preds_c): Include tree.h.
17710         * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
17711         reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
17712         const48_operand, and_operand, or_operand, mode_width_operand,
17713         mode_mask_operand, mul8_operand, const0_operand,
17714         hard_fp_register_operand, hard_int_register_operand,
17715         reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
17716         samegp_function_operand, direct_call_operand, small_symbolic_operand,
17717         global_symbolic_operand, call_operand, symbolic_operand,
17718         dtp16_symbolic_operand, dtp32_symbolic_operand,
17719         gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
17720         gottp_symbolic_operand, alpha_comparison_operator,
17721         alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
17722         signed_comparison_operator, alpha_fp_comparison_operator,
17723         divmod_operator, fix_operator, aligned_memory_operand,
17724         unaligned_memory_operand, reg_or_unaligned_mem_operand,
17725         any_memory_operand, reg_not_elim_operand, normal_memory_operand,
17726         reg_no_subreg_operand, addition_operation): Move to predicates.md.
17727         (reg_or_const_int_operand): Remove.  Replace all users with
17728         reg_or_cint_operand.
17729         (tls_symbolic_operand_1): Export.  Don't check mode or for CONST.
17730         (resolve_reload_operand): Split out of aligned_memory_operand.
17731         * config/alpha/alpha-protos.h: Update for exports.
17732         * config/alpha/alpha.h (PREDICATE_CODES): Remove.
17733         * config/alpha/alpha.md: Include predicates.md.
17734         * config/alpha/predicates.md: New file.
17736 2004-08-13  Richard Sandiford  <rsandifo@redhat.com>
17738         * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
17739         fields with a pointer to the instruction definition.
17740         (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
17741         (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
17742         (write_attr_case, write_const_num_delay_slots): Update accordingly.
17743         (write_attr_case, write_const_num_delay_slots): Write the name of
17744         an insn next to its case statement.
17745         * genoutput.c (data): Add a filename field.
17746         (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
17747         (output_insn_data): Print the location of each insn definition.
17748         * genrecog.c (write_action): Print the name of an insn above
17749         the statement that returns its code.
17751 2004-08-12  Andrew Pinski  <pinskia@physics.uc.edu>
17753         * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
17754         * config/libgloss.h: Likewise.
17755         * config/arm/arm.c (arm_gen_load_multiple): Likewise.
17756         * c4x/c4x-modes.def: Likewise.
17757         * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
17758         (c4x_rptb_nop_p): Likewise.
17759         (c4x_rptb_valid_p): Likewise.
17760         (c4x_rptb_insert): Likewise.
17761         (c4x_address_conflict): Likewise.
17762         * config/c4x/c4x.md: Likewise.
17763         * config/frv/frv.md: Likewise.
17764         * config/i386/athlon.md: Likewise.
17765         * config/i386/i386.md: Likewise.
17766         * config/i386/predicates.md: Likewise.
17767         * config/ia64/ia64.c: Likewise.
17768         * config/ia64/itanium1.md: Likewise.
17769         * config/ia64/itanium2.md: Likewise.
17770         * config/iq2000/iq2000.md: Likewise.
17771         * config/mcore/mcore.c: Likewise.
17772         * config/mips/mips.c: Likewise.
17773         * config/mips/r3900.h: Likewise.
17774         * config/mips/sb1.md: Likewise.
17775         * config/pa/milli64.S: Likewise.
17776         * config/pa/pa.c: Likewise.
17777         * config/pa/pa.h: Likewise.
17778         * config/rs6000/8540.md: Likewise.
17780 2004-08-13  Daniel Berlin  <dberlin@dberlin.org>
17782         * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
17784 2004-08-13  J"orn Rennecke <joern.rennecke@superh.com>
17786         * sh.md (cbranch define_delay) Use cond_delay_slot for
17787         non-anulled condition too.
17789 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
17791         * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
17792         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
17793         any_parallel_operand, lmw_operation, stmw_operation,
17794         mfcr_operation, mtcrf_operation.  Remove PARALLEL from any_operand.
17795         * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
17796         any_parallel_operand.
17797         (return_and_restore_fpregs_{si,di}): Same.
17799 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
17801         * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
17802         if pred->singleton != PARALLEL, issue a warning and pretend it was.
17803         Also issue a warning for any predicate we don't know about.
17805 2004-08-12  Richard Henderson  <rth@redhat.com>
17807         * config/i386/i386.c (internal_label_prefix): Export.
17808         (internal_label_prefix_len, struct ix86_address,
17809         ix86_decompose_address, maybe_get_pool_constant,
17810         ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
17811         memory_address_length): Export.
17812         (any_fp_register_operand, fp_register_operand,
17813         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
17814         x86_64_general_operand, x86_64_szext_general_operand,
17815         x86_64_nonmemory_operand, x86_64_movabs_operand,
17816         x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
17817         x86_64_zext_immediate_operand, const_int_1_31_operand,
17818         symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
17819         tls_symbolic_operand, global_dynamic_symbolic_operand,
17820         local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
17821         local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
17822         constant_call_address_operand, const0_operand, const1_operand,
17823         const248_operand, const_0_to_3_operand, const_0_to_7_operand,
17824         const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
17825         shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
17826         general_no_elim_operand, nonmemory_no_elim_operand,
17827         index_register_operand, q_regs_operand, flags_reg_operand,
17828         non_q_regs_operand, zero_extended_scalar_load_operand,
17829         vector_move_operand, no_seg_address_operand, sse_comparison_operator,
17830         ix86_comparison_operator, ix86_carry_flag_operator,
17831         fcmov_comparison_operator, promotable_binary_operator,
17832         cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
17833         mult_operator, div_operator, arith_or_logical_operator,
17834         memory_displacement_operand, cmpsi_operand, long_memory_operand,
17835         aligned_operand): Move to predicates.md as define_predicates.
17836         (tls_symbolic_operand_1): Remove.
17837         (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
17838         (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
17839         (legitimize_address): Merge tls_symbolic_operand contents.
17840         (ix86_expand_move): Likewise.
17841         * config/i386/i386-protos.h: Update for exports.
17842         * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
17843         (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
17844         * config/i386/i386.md: Include predicates.md.
17845         * config/i386/predicates.md: New file.
17847 2004-08-13  Mark Mitchell  <mark@codesourcery.com>
17849         PR c++/16924
17850         * config/i386/winnt.c (i386_pe_mark_dllexport): Set
17851         SYMBOL_REF_DECL.
17852         (i386_pe_mark_dllimport): Likewise.
17853         (i386_pe_encode_section_info): Likewise, when overriding
17854         dllimport attribute.
17856 2004-08-12  Geoffrey Keating  <geoffk@apple.com>
17858         * configure.ac: When testing for flex, nm, ar, and bison, check
17859         that they will actually be built.
17860         * configure: Regenerate.
17862 2004-08-12  Ulrich Weigand  <uweigand@de.ibm.com>
17864         * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
17865         (MOVE_MAX_PIECES): Define.
17867 2004-08-12  Devang patel  <dpatel@apple.com>
17869         * dbxout.c (dbxout_begin_prologue): New function.
17870         (dbx_debug_hooks): Use new begin prologue hook.
17871         (dbxout_function_end): Emit N_ENSYM.
17872         * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
17874 2004-08-12  Janis Johnson  <janis187@us.ibm.com>
17876         * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
17877         argument is float*.
17879         * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
17880         for vec_dss.
17882         * doc/extend.texi (AltiVec builtins): Fix description for recent
17883         changes.  Update operation list to match current support.
17885 2004-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
17887         * config/s390/s390.c (struct s390_frame_layout): New struct as element
17888         of struct machine_function.
17889         (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
17890         changed all uses.
17891         (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
17892         changed all uses.
17893         (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
17894         (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
17895         (s390_frame_area, s390_register_info): New functions.
17896         (s390_optimize_prolog): Renamed to s390_optimize_prologue.  Added check
17897         for base register.
17898         (s390_return_addr_rtx, s390_return_address_offset)
17899         (s390_va_start, s390_gimplify_va_arg)
17900         (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
17901         layouts.
17902         (s390_frame_info): Functionality partly moved to s390_register_info.
17903         Made adaptions for new stack layout.
17904         (save_gprs, restore_gprs): Changed meaning of second parameter and
17905         adapted all callers.
17907         * config/s390/s390.h (s390_backchain_string): New global variable.
17908         (MASK_BACKCHAIN): Removed definition.
17909         (TARGET_BACKCHAIN): Changed check.
17910         (TARGET_KERNEL_BACKCHAIN): New macro.
17911         (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
17912         (TARGET_OPTIONS): Added "backchain", "no-backchain" and
17913         "kernel-backchain".
17914         (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
17916         * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
17917         as condition.  Adjusted for new stack layout.
17919         * doc/invoke.texi: Added documentation for new option
17920         "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
17921         "-mno-backchain".
17923 2004-08-12  Paul Brook  <paul@codesourcery.com>
17925         * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
17926         (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
17928 2004-08-12  David Daney  <ddaney@avtrex.com>
17930         * java/gcj.texi:  Add subsection on signal usage.
17932 2004-08-12  David Edelsohn  <edelsohn@gnu.org>
17934         * expr.c (move_by_pieces): Set alignment for move to minimum of
17935         MOVE_MAX_PIECES mode alignment and the largest non-slow mode
17936         alignment, but not less than the original alignment.
17937         (move_by_pieces_ninsns): Same.
17938         (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
17939         (store_by_pieces_1): Same.
17941 2004-08-12  Diego Novillo  <dnovillo@redhat.com>
17943         PR tree-optimization/16867
17944         * tree.c (is_global_var): New function.
17945         (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
17946         Call is_global_var.
17947         * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
17948         Update all users.
17949         (is_global_var): Declare.
17950         * tree-dfa.c (dump_variable): Display global and addressable
17951         attributes.
17952         (add_referenced_var): Clarify documentation when marking
17953         variables call-clobbered.
17954         * tree-flow-inline.h (is_call_clobbered): Call is_global_var
17955         instead of needs_to_live_in_memory.
17956         (mark_call_clobbered): If the variable is a tag, mark it
17957         DECL_EXTERNAL.
17958         * tree-gimple.c (is_gimple_reg): Don't check for
17959         TREE_ADDRESSABLE.
17960         (is_gimple_non_addressable): Likewise.
17961         * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
17962         needs to be marked call-clobbered.
17963         (setup_pointers_and_addressables): Call is_global_var instead
17964         of needs_to_live_in_memory.
17965         * tree-ssa-dce.c (need_to_preserve_store): Remove.
17966         Update all users with is_global_var.
17967         (mark_stmt_if_obviously_necessary): Fix processing of aliased
17968         stores.  Don't check the virtual definitions.  Rather, check
17969         whether the store is going into global memory.
17970         (find_obviously_necessary_stmts): Get the symbol from the PHI
17971         result.
17972         * tree-ssa-operands.c (get_call_expr_operands): Do not add
17973         clobbering may-defs if the call does not have side effects.
17975 2004-08-12  Jakub Jelinek  <jakub@redhat.com>
17977         PR c++/16276
17978         * output.h (default_function_rodata_section,
17979         default_no_function_rodata_section): New prototypes.
17980         * target.h (struct gcc_target): Add asm_out.function_rodata_section.
17981         * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
17982         (TARGET_ASM_OUT): Add it.
17983         * varasm.c (default_function_rodata_section,
17984         default_no_function_rodata_section): New functions.
17985         * final.c (final_scan_insn): Call
17986         targetm.asm_out.function_rodata_section instead of
17987         readonly_data_section.
17988         * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
17989         * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17990         * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17991         * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
17992         Likewise.
17993         * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17994         * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
17995         Likewise.
17996         * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
17997         Likewise.
17998         * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
17999         * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
18000         * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
18002 2004-08-12  Paul Brook  <paul@codesourcery.com>
18004         * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
18005         frame info.
18006         * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
18007         DWARF2_UNWIND_INFO.
18009 2004-08-12  Ben Elliston  <bje@au.ibm.com>
18011         PR target/16286
18012         * config/rs6000/altivec.h: Change vector to __vector throughout.
18013         (Except for the `vector' macro itself).
18015 2004-08-12  Zack Weinberg  <zack@codesourcery.com>
18017         * genpreds.c: Add capability to generate predicate bodies as
18018         well as function prototypes.  Write function prototypes for
18019         the generic predicates too.
18020         (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
18021         (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
18022         (write_match_code, write_predicate_expr, write_one_predicate_function)
18023         (parse_option): New functions.
18024         (output_predicate_decls): Delete.
18025         (main): Read the machine description, process DEFINE_PREDICATE or
18026         DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
18027         as appropriate.
18029         * genrecog.c (struct decision_test): Replace index with
18030         struct pred_data pointer.
18031         (next_index): Remove, unused.
18032         (pred_table, preds, special_mode_pred_table): Delete.
18033         (compute_predicate_codes, process_define_predicate): New functions.
18034         (validate_pattern, add_to_sequence, write_switch): Update for
18035         new data structures.
18036         (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18037         Check both error_count and have_error.
18039         * gensupport.c (in_fname, first_predicate): New globals.
18040         (define_pred_queue, define_pred_tail): New RTL-pattern queue.
18041         (predicate_table, last_predicate, old_pred_table)
18042         (old_special_pred_table): New statics.
18043         (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
18044         (add_predicate, init_predicate_table): New functions.
18045         (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
18046         (init_md_reader_args_cb): Use the global in_fname.  No need to zero
18047         it or max_include_len.  Call init_predicate_table.
18048         (read_rtx): Run the predicate queue after the attribute queue
18049         but before all the others.
18050         * gensupport.h (in_fname, struct pred_data, first_predicate)
18051         (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
18052         * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
18053         (DEFINE_SPECIAL_PREDICATE): New RTL codes.
18054         * dummy-conditions.c: Don't include bconfig.h, system.h,
18055         coretypes.h, tm.h, or system.h.  Do include stddef.h.
18056         Duplicate declaration of struct c_test from gensupport.h.
18058         * Makefile.in (OBJS-common): Add insn-preds.o.
18059         (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
18060         (insn-preds.c, insn-preds.o): New rules.
18061         (s-preds): Also generate insn-preds.c.
18062         (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
18063         Update dependencies.
18064         (print-rtl.o, print-rtl1.o): Correct dependencies.
18066         * recog.h: Delete prototypes of predicate functions.
18068         * doc/md.texi (Predicates): New section with complete
18069         documentation of operand/operator predicates.  Remove some
18070         incomplete documentation of predicates from other places.
18071         * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
18072         PREDICATE_CODES; indicate that both are deprecated in favor
18073         of define_predicate/define_special_predicate.
18075         * config/ia64/ia64.c: All predicate function definitions moved
18076         to ia64.md, except
18077         (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
18078         (ia64_expand_load_address, ia64_expand_move):
18079         Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
18081         * config/ia64/ia64.md: All predicates now defined here.
18082         (symbolic_operand): Is now a special predicate.
18084         * config/ia64/ia64.h: Declare ia64_section_threshold.
18085         (PREDICATE_CODES): Delete.
18087 2004-08-12  Richard Henderson  <rth@redhat.com>
18089         * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
18090         * c-semantics.c (add_stmt): Set it.
18091         * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
18092         before instantiating a variable sized type.
18094 2004-08-12  Richard Henderson  <rth@redhat.com>
18096         * stor-layout.c (round_up, round_down): Move ...
18097         * fold-const.c (round_up, round_down): ... here.  Use
18098         multiple_of_p to avoid any arithmetic at all.
18100 2004-08-12  Richard Henderson  <rth@redhat.com>
18102         * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
18103         (gimplify_init_ctor_preeval_1): New.
18104         (gimplify_init_ctor_preeval): New.
18105         (gimplify_init_ctor_eval): New.
18106         (gimplify_init_constructor): Use them.  Always gimplify the LHS
18107         object first.
18109 2004-08-12  Ziemowit Laski  <zlaski@apple.com>
18111         (This patch is part of merge of objc-improvements-branch
18112         into mainline.)
18114         * doc/frontends.texi: Mention Objective-C++ in addition to
18115         Objective-C.
18116         * doc/install.texi: Add 'obj-c++' to list of configurable
18117         languages.
18118         * doc/invoke.texi: Rename Objective-C option headings to
18119         indicate they also apply to Objective-C++.  List file
18120         extensions for Objective-C++ sources.  Mention that
18121         ObjC and ObjC++ compilations may also use C and C++ options,
18122         respectively.  Point users to doc/standards.texi for
18123         further info on ObjC and ObjC++.
18124         * doc/sourcebuild.texi: Mention the objcp/ directory and
18125         the Objective-C++ sources it contains.
18126         * doc/standards.texi: Update link to Apple ObjC site;
18127         add link to gcc readings.html WWW doc.
18129 2004-08-12  Alan Modra  <amodra@bigpond.net.au>
18131         * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
18132         and 2004-07-14 changes.
18134 2004-08-12  Paul Brook  <paul@codesourcery.com>
18136         * doc/invoke.texi: Fix typo.
18138 2004-08-11 Devang Patel  <dpatel@apple.com>
18140         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
18141         and -no_dead_strip_inits_and_terms.
18142         (LINK_SPEC): Same.
18143         * doc/invoke.texi (Darwin Options): Document -dead_strip and
18144         -no_dead_strip_inits_and_terms.
18146 2004-08-11  Paul Brook  <paul@codesourcery.com>
18148         * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
18149         (arm_load_pic_register): ... to this.
18150         * config/arm/arm.c (arm_finalize_pic): Rename ...
18151         (arm_load_pic_register): ... to this.  Always output insns at the
18152         current location.  Load via low reg in thumb mode.
18153         (arm_expand_prologue): Call arm_load_pic_register.
18154         (thumb_expand_prologue): Ditto.
18155         * config/arm/arm.h (FINALIZE_PIC): Remove.
18156         * config/arm/arm.md (builtin_setjmp_receiver): Call
18157         arm_load_pic_register.
18159 2004-08-11  Paul Brook  <paul@codesourcery.com>
18161         * arm.c (thumb_force_lr_save): Add prototype.
18162         (thumb_compute_save_reg_mask): New function.
18163         (thumb_find_work_register): New function.
18164         (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
18165         (thumb_unexpanded_epilogue): Ditto.  Remove redundant code.
18166         Don't clobber r3 when removing pretend args.
18167         (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
18168         (thumb_output_function_prologue): Use new functions.
18169         (thumb_set_return_address): Use thumb_compute_save_reg_mask.
18170         * arm.h (THUMB_REG_PUSHED_P): Remove.
18172 2004-08-11  James E Wilson  <wilson@specifixinc.com>
18174         PR rtl-optimization/16490
18175         * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
18176         global_live_at_end for new basic block if already set for other blocks.
18178 2004-08-11 David Edelsohn  <edelsohn@gnu.org>
18180         * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
18182         * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
18183         (mfcr rlwinm rlwinm patterns): Set length to 12.
18185 2004-08-11  Andrew MacLeod  <amacleod@redhat.com>
18187         * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
18188         get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
18189         (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
18190         (start_ssa_stmt_operands): Delete.
18191         * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
18192         struct stmt_operands_d.
18193         (build_ssa_operands): New extern entry point.
18194         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
18195         building code, replace with create_ssa_artficial_load_stmt().
18196         * tree-ssa-operands.c (struct voperands_d): Delete.
18197         (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
18198         (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
18199         (free_uses, free_defs, free_vuses, free_v_may_defs,
18200         free_v_must_defs): Remove dealloc parameter.
18201         (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
18202         (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
18203         finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
18204         vector comparisons, ssa_name reuse, and allocations here.
18205         (verify_start_operands): Delete.
18206         (finalize_ssa_stmt_operands): Set new operands by calling finalize
18207         routines.
18208         (start_ssa_stmt_operands): Move from tree-flow-inline.h.
18209         (append_def, append_usei): Simplify to simple accumulation.
18210         (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
18211         duplicates and simple accumulation.
18212         (free_ssa_operands): Free vectors in a stmt_operand structure.
18213         (build_ssa_operands): New. Create a new stmt_operand structure from
18214         a stmt and an old set of stmt_operands.
18215         (get_stmt_operands): Simplify and call build_ssa_operands.
18216         (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
18217         get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
18218         add_call_read_ops): Don't pass prev_vops around anymore.
18219         (note_addressable): Return if no stmt annotation.
18220         (copy_virtual_operands): Access v_may_def operands through a struct.
18221         (create_ssa_artficial_load_stmt): New.  Create a load stmt for DOM's
18222         hash tables without treating the stmt as a real stmt.
18223         * tree-ssa-operands.h (struct v_may_def_operand_type): New.  Access
18224         v_may_def def and use through a struct instead of 2 array elements.
18225         (struct v_may_def_optype_d): Use v_may_def_operand_type.
18226         (struct stmt_operands_d): New.  Struct for storing all operand vectors.
18228 2004-08-11  Nick Clifton  <nickc@redhat.com>
18230         * config/arm/arm.c (arm_is_longcall_p): Update comment describing
18231         this funciton's behaviour.  Return true when the current function
18232         has a section attribute and -mlong-calls is in effect.
18233         * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
18234         short-call marker when -mlong-calls is in effect and the function
18235         has a section attribute.
18237 2004-08-10  Zack Weinberg  <zack@codesourcery.com>
18239         * stmt.c (expand_return): If asked to return the RESULT_DECL,
18240         just call expand_value_return on result_rtl.
18242 2004-08-10  Richard Henderson  <rth@redhat.com>
18244         * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
18245         * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
18246         * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
18247         (add_location_or_const_value_attribute): ... not here.  Use
18248         loc_descriptor_from_tree if possible.
18249         (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
18250         Simplify address handling.  Handle DECL_VALUE_EXPR.  Handle register
18251         values specially.
18252         (loc_descriptor_from_tree): New.  Update callers.
18253         * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
18254         * gimplify.c (gimplify_decl_expr): Lower variable sized types to
18255         pointer plus dereference.  Set DECL_VALUE_EXPR.  Set save_stack.
18256         (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
18257         and BUILT_IN_STACK_RESTORE.
18258         (gimplify_expr): Lower DECL_VALUE_EXPR decls.
18259         * stmt.c (expand_stack_alloc): Remove.
18260         * tree-mudflap.c (mx_register_decls): Don't look for
18261         BUILT_IN_STACK_ALLOC.
18262         * tree-nested.c (convert_local_reference): Likewise.
18263         * tree.h (DECL_VALUE_EXPR): New.
18265 2004-08-10  Richard Henderson  <rth@redhat.com>
18267         * stor-layout.c (round_up): Check for 0/1 before dividing.
18268         (round_down): Likewise.
18270         * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
18272 2004-08-09  Mark Mitchell  <mark@codesourcery.com>
18274         * config.gcc (arm*-*-eabi*): New target.
18275         * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
18276         (TARGET_LIB_INT_CMP_BIASED): Likewise.
18277         * expmed.c (expand_divmod): Try a two-valued divmod function as a
18278         last resort.
18279         * gthr.h: Remove bogus tokens at end of #pragma.
18280         * optabs.c (expand_twoval_binop_libfunc): New function.
18281         (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
18282         (prepare_float_lib_cmp): Try reversing the condition.
18283         (debug_optab_libfuncs): New function.
18284         * optabs.h (expand_twoval_binop_libfunc): Declare.
18285         * config/arm/arm.c (arm_init_libfuncs): New function.
18286         (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
18287         (TARGET_INIT_LIBFUNCS): Define it.
18288         * config/arm/arm.h (TARGET_BPABI): New macro.
18289         * config/arm/arm-protos.h
18290         (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
18291         * config/arm/bpabi.S: New file.
18292         * config/arm/bpabi.c: Likewise.
18293         * config/arm/bpabi.h: Likewise.
18294         * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
18295         (__aeabi_drsub): Likewise.
18296         (__aeabi_dsub): Likewise.
18297         (__aeabi_dadd): Likewise.
18298         (__aeabi_ui2d): Likewise.
18299         (__aeabi_i2d): Likewise.
18300         (__aeabi_f2d): Likewise.
18301         (__aeabi_dmul): Likewise.
18302         (__aeabi_ddiv): Likewise.
18303         (__aeabi_cdrcmple): Likewise.
18304         (__aeabi_cdcmpeq): Likewise.
18305         (__aeabi_cdcmple): Likewise.
18306         (__aeabi_dcmpeq): Likewise.
18307         (__aeabi_dcmplt): Likewise.
18308         (__aeabi_dcmple): Likewise.
18309         (__aeabi_dcmpge): Likewise.
18310         (__aeabi_dcmpgt): Likewise.
18311         (__aeabi_dcmpun): Likewise.
18312         (__aeabi_d2iz): Likewise.
18313         (__aeabi_d2uiz): Likewise.
18314         (__aeabi_d2f): Likewise.
18315         * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
18316         (__aeabi_frsub): Likewise.
18317         (__aeabi_fsub): Likewise.
18318         (__aeabi_fadd): Likewise.
18319         (__aeabi_ui2f): Likewise.
18320         (__aeabi_i2f): Likewise.
18321         (__aeabi_fmul): Likewise.
18322         (__aeabi_fdiv): Likewise.
18323         (__aeabi_cfrcmple): Likewise.
18324         (__aeabi_cfcmpeq): Likewise.
18325         (__aeabi_cfcmple): Likewise.
18326         (__aeabi_fcmpeq): Likewise.
18327         (__aeabi_fcmplt): Likewise.
18328         (__aeabi_fcmple): Likewise.
18329         (__aeabi_fcmpge): Likewise.
18330         (__aeabi_fcmpgt): Likewise.
18331         (__aeabi_fcmpun): Likewise.
18332         (__aeabi_f2iz): Likewise.
18333         (__aeabi_f2uiz): Likewise.
18334         * config/arm/lib1funcs.asm (ARM_CALL): New macro.
18335         (__aeabi_uidivmod): New function or alias.
18336         (__aeabi_idivmod): Likewise.
18337         (__aeabi_idiv0): Likewise.
18338         (__aeabi_ldiv0): Likewise.
18339         (__aeabi_llsr): Likewise.
18340         (__aeabi_lasr): Likewise.
18341         (__aeabi_llsl): Likewise.
18342         (bpabi.S): Include it.
18343         * config/arm/libgcc-bpabi.ver: New file.
18344         * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
18345         (LINK_SPEC): Remove.
18346         * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
18347         __aeabi_ulcmp.
18348         * config/arm/t-bpabi: New file.
18349         * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
18350         (TARGET_LIB_INT_CMP_BIASED): Likewise.
18352 2004-08-10  David Edelsohn  <edelsohn@gnu.org>
18354         * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
18355         * config/rs6000/rs6000.md (clrmemsi): New pattern.
18356         * config/rs6000/rs6000.c (expand_block_clear): New function.
18357         (expand_block_move): Convert alignment to bits.  Use SImode and
18358         HImode for unaligned addresses if not STRICT_ALIGNMENT.
18360 2004-08-10  Caroline Tice  <ctice@apple.com>
18362         * varasm.c (unlikely_section_label): New global variable.
18363         (unlikely_text_section_name): New global variable.
18364         (text_section):  Remove alignment statement.
18365         (unlikely_text_section): Remove alignment statement; use
18366         unlikely_section_label rather than hard-coded string.
18367         (assemble_start_function): Initialize unlikely_section_label and
18368         unlikely_text_section_name;  make sure cold section is properly
18369         aligned at start of function; output unlikely_section_label if
18370         appropriate.
18372 2004-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
18374         * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
18375         * config/s390/s390.c (s390_canonicalize_comparison): New function.
18376         * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
18377         * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
18378         "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
18379         ("*tmqi_mem"): Remove SUBREG from pattern.
18380         ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
18381         ("*andsi3_cconly"): Likewise.
18383 2004-08-10  H.J. Lu  <hongjiu.lu@intel.com>
18385         PR target/16909
18386         * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
18388 2004-08-10  Janis Johnson  <janis187@us.ibm.com>
18390         * doc/sourcebuild.texi (compat testing): Document available test
18391         framework commands.  Use the preferred spelling of DejaGnu.
18393 2004-08-10  Daniel Berlin <dberlin@dberlin.org>
18395         * lambda.h: Add matrix type, and prototypes for remainder of
18396         matrix and vector functions.
18397         (lambda_vector_mult_const): New function.
18398         (lambda_vector_negate): Ditto.
18399         (lambda_vector_add): Ditto.
18400         (lambda_vector_add_mc): Ditto.
18401         (lambda_vector_copy): Ditto.
18402         (lambda_vector_zerop): Ditto.
18403         (lambda_vector_equal): Ditto.
18404         (lambda_vector_min_nz): Ditto.
18405         (lambda_vector_first_nz): Ditto.
18406         (lambda_vector_matrix_mult): Ditto.
18407         * lambda-mat.c: New file.
18408         * Makefile.in (lambda-mat.o): New.
18410 2004-08-10  Andrew MacLeod  <amacleod@redhat.com>
18412         * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
18413         after linking stmt into the program.
18414         (bsi_remove): Don't call modify_stmt.
18415         * tree-complex.c (update_complex_assignment,
18416         expand_complex_comparison): Call modify_stmt after changing the stmt.
18417         * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
18418         removing the stmt.
18419         * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
18420         the stmt, and only if needed.
18421         * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
18422         expression.
18423         (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
18424         (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
18425         (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
18426         (eliminate_redundant_computations): Don't pass an annotation. Call
18427         modify_stmt rather than setting the annotation directly.
18428         (record_equivalences_from_stmt): Remove unused local 'j'.
18429         (cprop_operand): Take a stmt rather than an annotation as a parameter.
18430         Call modify_stmt.
18431         (cprop_into_stmt): Pass stmt rather than annotation.
18432         (update_rhs_and_lookup_avail_expr): Call modify_stmt.
18433         * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
18434         modify_stmt.
18435         * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
18437 2004-08-10  Jason Merrill  <jason@redhat.com>
18439         PR middle-end/16948
18440         * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
18441         the RESULT_DECL.
18443 2004-08-10  Geoffrey Keating  <geoffk@apple.com>
18445         * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
18446         hash function.
18448 2004-08-10  Roger Sayle  <roger@eyesopen.com>
18450         * config/mips/mips.md: New reciprocal square root patterns that
18451         match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
18453 2004-08-10  Paul Brook  <paul@codesourcery.com>
18455         * config/arm/arm-protos.h (arm_set_return_address,
18456         thumb_set_return_address): Add prototypes.
18457         * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
18458         * config/arm/arm.c (arm_compute_func_type,
18459         use_return_insn, arm_compute_save_reg0_reg12_mask,
18460         arm_compute_save_reg_mask, arm_output_function_prologue,
18461         arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
18462         current_function_calls_eh_return.
18463         (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
18464         old eh code.
18465         (arm_set_return_address, thumb_set_return_address): New functions.
18466         * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
18467         ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
18468         * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
18469         (epilogue): Use the stackadj register.
18470         (eh_return, arm_eh_return, thumb_eh_return): New pattern.
18472 2004-08-10  Jakub Jelinek  <jakub@redhat.com>
18474         PR target/3144
18475         * expr.c (move_by_pieces_ninsns): Add max_size argument.
18476         (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
18477         (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
18478         (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
18479         but using MOVE_RATIO.
18480         (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
18481         (can_store_by_pieces): Change max_size type to unsigned int.
18482         (store_by_pieces_1): Likewise.  Pass max_size to
18483         move_by_pieces_ninsns.
18484         * config/s390/s390.h (STORE_BY_PIECES_P): Define.
18485         * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
18486         to move_by_pieces_ninsns.
18487         (STORE_BY_PIECES_P): Define.
18488         * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
18489         to move_by_pieces_ninsns.
18490         * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
18492         * config/i386/i386.h (CLEAR_RATIO): Define.
18494 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18496         * expr.c (expand_expr_real_1): Add back code that was not dead.
18498 2004-08-09  Andrew Pinski  <apinski@apple.com>
18500         * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
18501         which is found to be compatible before returning the aliasing set.
18503 2004-08-09  Daniel Jacobowitz  <dan@debian.org>
18505         * ggc-zone.c (struct alloc_zone): Add statistics counters.
18506         (always_collect): New flag.
18507         (ggc_alloc_zone_1): Update statistics support.  Don't include
18508         overhead in allocated counter.
18509         (sweep_pages): Update allocated counter for large pages.  Don'y
18510         include overhead.
18511         (ggc_collect_1): Always collect.
18512         (ggc_collect): Honor always_collect flag.  Sum all zones to decide
18513         whether to collect.
18514         (SCALE, LABEL): New macros.
18515         (ggc_print_statistics): Add statistics support.
18517 2004-08-09  Roger Sayle  <roger@eyesopen.com>
18519         * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
18520         (init_expmed): Fix potential overrun problem with "all.reg".
18521         (expand_sdiv2_pow2): Add an alternate implementation for signed
18522         division, if the target provides a suitable conditional move insn.
18524 2004-08-09  Paul Brook  <paul@codesourcery.com>
18525         Richard Henderson  <rth@redhat.com>
18527         * unwind-dw2.c (uw_install_context_1): Update target saved stack
18528         pointer.
18530 2004-08-09  Geoffrey Keating  <geoffk@apple.com>
18532         * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
18533         Check DATA limit only if there's no AS limit.  Ignore insanely
18534         low DATA limits.
18535         (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
18536         but take care that the AS limit isn't overrun.
18537         * doc/invoke.texi: Update documentation of min-heapsize parameter.
18539 2004-08-09  Jeff Law  <law@redhat.com>
18541         * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
18542         (tree-ssa-threadupdate.o): Add dependencies.
18543         * tree-ssa-threadupdate.c: New file.
18544         * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
18545         (rewrite_vars_out_of_ssa): Remove prototype.
18546         (cleanup_tree_cfg): Returns a bool.
18547         * tree.h (thread_through_all_blocks): Prototype.
18548         * tree-outof-ssa.c  (SSANORM_*): Move into here.
18549         (remove_ssa_form): Now static.
18550         (rewrite_vars_out_of_ssa): Kill.
18551         * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
18552         * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
18553         (remove_ssa_form, register_partitions_for_vars): Kill declarations.
18554         * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
18555         anything was changed.
18556         * tree-phinodes.c (add_phi_arg): Get the block for the PHI
18557         from the PHI's annotation rather than the edge associated with
18558         the new argument.
18559         * tree-ssa-dom.c (redirection_edges): Kill.
18560         (redirect_edges_and_update_ssa_graph): Kill.
18561         (tree_ssa_dominator_optimize): Do not reset forwardable flag
18562         for blocks anymore.  Do not initialize redirection_edges.
18563         Call thread_through_all_blocks.  Simplify code for cleanup
18564         of the CFG and iterating.  No longer call cleanup_tree_cfg
18565         outside the iteration loop.
18566         (thread_across_edge): No longer mess with forwardable blocks.
18568 2004-08-09  Zack Weinberg  <zack@codesourcery.com>
18570         * explow.c (memory_address): Use memory_address_p.
18571         * recog.c (general_operand): Likewise.
18572         * regrename.c: No need to define REG_OK_STRICT.
18574 2004-08-09  Steven Bosscher  <stevenb@suse.de>
18576         * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
18577         New timers.
18578         * gcse.c: Include timevar.h.
18579         (const_prop_count, copy_prop_count): Rename to global_const_prop_count
18580         and global_copy_prop_count.
18581         (local_const_prop_count, local_copy_prop_count): New static globals.
18582         (gcse_main): Set the right timevar for each pass.
18583         (cprop_jump): Increment global_const_prop_count when a constant is
18584         propagated.  Add "GLOBAL" to dump output.
18585         (cprop_insn): Increment global_const_prop_count when a constant is
18586         propagated, or global_copy_prop_count when a copy is propagated.
18587         (do_local_cprop): Likewise for local_const_prop_count and
18588         local_copy_prop_count.
18589         (one_cprop_pass): Initialize const/cprop counters to zero.
18590         Print out results of local and global const/cprop separately.
18591         (bypass_block): Break over-length line.
18592         * Makefile.in (gcse.o): Add TIMEVAR_H dependency.  Fix dependencies
18593         for bb-reorder.o and tracer.o.
18595 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18597         * Makefile.in (GTFILES): Remove stmt.c
18598         (stmt.o): Do not depend on gt-stmt.h.
18599         * emit-rtl.c (emit_line_note): Do not call
18600         set_file_and_line_for_stmt.
18601         * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
18602         do everything.
18603         * function.c (free_after_parsing): Do not free STMT field.
18604         (allocate_struct_function): Do not call init_stmt_for_function.
18605         (assign_stack_temp_for_type): Do not accept values of keep
18606         other than 0 or 1.
18607         (init_temp_slots): Do not initialize removed variables.
18608         * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
18609         and X_VAR_TEMP_SLOT_LEVEL fields.
18610         * rtl.h (set_file_and_line_for_stmt): Remove.
18611         * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
18612         struct stmt_status, cond_stack, case_stack, nesting_stack,
18613         nesting_depth, emit_locus, set_file_and_line_for_stmt,
18614         same_case_target_p, init_stmt_for_function, emit_nop,
18615         expand_start_cond, expand_start_elseif, expand_start_else,
18616         expand_elseif, expand_end_cond): Remove.
18617         (preserve_subexpressions_p): Remove references to CFUN->STMT.
18618         (expand_start_case, expand_end_case_type): Remove, merge into...
18619         (expand_case): ... this one, including other bits from
18620         expand_expr_real_1.  Inline same_case_target_p.  Turn members
18621         of CASE_STACK into local variables.
18622         (emit_case_bit_tests): Inline same_case_target_p.
18623         (add_case_node): Add HEAD argument, return new head of the list,
18624         do not handle default label here.
18625         * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
18626         expand_start_elseif, current_nesting_level, expand_start_case,
18627         expand_end_case_type, expand_end_case, add_case_node,
18628         init_stmt_for_function, expand_elseif): Remove prototypes.
18629         (expand_case): Add prototype.
18631 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18633         * expr.c (expand_expr_real_1): Use optab_for_tree_code.
18635 2004-08-09  Paolo Bonzini  <bonzini@gnu.org>
18637         * expr.c (var_rtx): Remove.
18638         (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
18639         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
18640         TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
18641         Abort.
18642         (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
18643         * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
18644         * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
18646 2004-08-08  Mostafa Hagog  <mustafa@il.ibm.com>
18647         Ayal Zaks <zaks@il.ibm.com>
18649         * common.opt (freschedule-modulo-scheduled-loops): New flag.
18650         * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
18651         * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
18652         when -freschedule-modulo-scheduled-loops flag is not specified.
18653         (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
18654         add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
18655         More accurate placing of insn in row of partial schedule.
18656         (ps_insn_find_column): New function.
18657         * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
18658         * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
18659         (schedule_region): Use sched_is_disabled_for_current_region_p.
18660         * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
18662 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
18664         * config/i386/i386.c (ix86_expand_clrmem): Revert the last
18665         change.
18667 2004-08-07  H.J. Lu  <hongjiu.lu@intel.com>
18669         * config/i386/i386.c (ix86_expand_clrmem): Properly call
18670         gen_strset for 64bit target.
18672 2004-08-07  Olivier Hainque  <hainque@act-europe.fr>
18674         * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
18676 2004-08-07  Jason Merrill  <jason@redhat.com>
18678         Make return in memory explicit.
18679         * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
18680         (assign_parm_find_data_types): Remove code for old front end
18681         invisible reference handling.
18682         (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
18683         (expand_function_end): Likewise.
18684         * gimplify.c (gimplify_return_expr): Handle a dereferenced
18685         RESULT_DECL.
18686         * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
18687         (declare_return_variable): Handle DECL_BY_REFERENCE.
18688         * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
18689         (cp_genericize_r): Use convert_from_reference.
18690         Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
18691         (cp_genericize): Handle the RESULT_DECL.  Unset TREE_ADDRESSABLE.
18693         * c-common.c (c_warn_unused_result): Check TREE_USED before
18694         warning about a CALL_EXPR with an unused value.
18696 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
18698         * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
18699         to the compiler.  Use -fshort-wchar by default.
18701 2004-08-06  Pat Haugen  <pthaugen@us.ibm.com>
18703         * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
18704         * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
18705         threshhold.
18706         * doc/invoke.texi (param): Document min-crossjump-insns.
18708 2004-08-06  Richard Sandiford  <rsandifo@redhat.com>
18710         PR c/13282
18711         * c.opt (Wmissing-field-initializers): New option.
18712         * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
18713         * c-typeck.c (pop_init_level): Guard the missing field warning with
18714         warn_missing_field_initializers rather than extra_warnings.
18715         * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
18716         some of the explanation from...
18717         (-Wextra): ...here.  Say that the missing field warning can be
18718         seperately controlled by -Wmissing-field-initializers.
18720 2004-08-06  Paolo Bonzini  <bonzini@gnu.org>
18722         * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
18723         * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
18724         * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
18725         * tree.def (ENTRY_VALUE_EXPR): Remove.
18727 2004-08-06  Jakub Jelinek  <jakub@redhat.com>
18729         * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
18730         the places where it is actually needed.  Don't use repz; stosb
18731         for -Os with sufficiently small constant sizes.
18732         For sufficiently small repz; stos{l,q} repeat counts use a sequence
18733         of stos{l,q} instructions instead.
18735 2004-08-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18737         PR tree-optimization/16807
18738         * loop-iv.c (dump_iv_info): Dump invariants correctly.
18739         (iv_subreg, iv_extend): Express value of invariant purely in
18740         base field.
18742 2004-08-06  Mark Mitchell  <mark@codesourcery.com>
18744         * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
18745         (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
18747 2004-08-06  Roman Zippel  <zippel@linux-m68k.org>
18749         * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
18750         * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
18751         pre_dec_operand.
18752         * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
18753         pattern until reload is finished to allow better code generation
18754         and split them completely into separate instrunctions.
18755         (*andsi3_split): New pattern.
18757 2004-08-05  Mark Mitchell  <mark@codesourcery.com>
18759         * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
18760         Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P.  Set
18761         DECL_VISIBLITY.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
18762         * tree.h (handle_dll_attribute): Declare.  Test
18763         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
18764         * c-common.h (c_determine_visibility): Declare.
18765         * c-common.c (c_determine_visibility): New function.
18766         * c-decl.c (finish_decl): Use it.
18767         (finish_function): Likewise.
18768         * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
18769         zero, by default.  Use #if, not #ifdef, to test it.
18770         * config/arm/arm.c (arm_attribute_table): Use
18771         handle_dll_attribute.  Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
18772         #if.
18773         * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
18774         * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
18775         to 1.
18776         * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
18777         * config/i386/i386.c (ix86_attribute_table): Use
18778         handle_dll_attribute for dllimport/dllexport.  Test
18779         TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
18780         * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
18781         * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
18782         it to 1.
18783         * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
18784         with #if.
18785         * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
18786         it to 1.
18787         * doc/extend.texi (dllexport): Clarify and correct documentation.
18788         (dllimport): Likewise.
18789         * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
18790         handle_dll_attribute.
18792 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18794         * tree-ssa-loop-manip.c: New file.
18795         * Makefile.in (tree-ssa-loop-manip.o): Add.
18796         * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
18797         Declare.
18798         * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
18799         form.
18800         (tree_ssa_loop_done): Verify loop closed ssa form.
18801         * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
18803 2004-08-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18805         * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
18806         pa_asm_output_aligned_local): New functions.
18807         * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
18808         pa_asm_output_aligned_common and pa_asm_output_aligned_local.
18809         * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
18810         pa_asm_output_aligned_common.
18811         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
18812         * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
18813         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
18814         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
18815         * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
18816         (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
18817         (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
18818         * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
18819         common data.
18821 2004-08-05  Andrew Pinski  <apinski@apple.com>
18823         * objc/objc-act.c (build_objc_string_object): Mark the address
18824         expression as constant.
18826 2004-08-05  David Edelsohn  <edelsohn@gnu.org>
18828         * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
18829         and mask64_operand thinkos.  Handle ZERO_EXTRACT.  Handle
18830         SIGN_EXTEND / ZERO_EXTEND of MEM.  Handle rlwinm patterns.
18832 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
18834         * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
18835         Remove definitions conditioned on USE_GNULIBC_1 or conditioned
18836         out, and associated obsolete comments.
18838 2004-08-05  Nathan Sidwell  <nathan@codesourcery.com>
18840         * tree.h (force_fit_type): Return a tree, take three flags.
18841         * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
18842         TREE_CONSTANT_OVERFLOW here.
18843         (int_const_binop, const_binop): Adjust.
18844         (size_int_type): Do sign extension here.
18845         (fold_convert_const, optimize_bit_field_compare,
18846         decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
18847         fold_negate_const, fold_abs_const, fold_not_const): Adjust.
18848         * tree.c (size_in_bytes, int_fits_type_p): Adjust.
18850 2004-08-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18852         PR tree-optimization/16864
18853         * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
18854         for ssa names without default_def.
18856 2004-08-05  Richard Sandiford  <rsandifo@redhat.com>
18858         * config/i386/i386.c (ix86_expand_prologue): If the function uses a
18859         frame pointer, restore eax with an ebp-relative address.
18861 2004-08-04  Geoffrey Keating  <geoffk@apple.com>
18863         PR 14516
18864         * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
18865         * c-common.h (make_rtl_for_local_static): Delete.
18866         * c-decl.c (shadow_tag_warned): Clean up comment.
18867         (finish_decl): Clean up spacing.  Use set_user_assembler_name when
18868         appropriate.  Don't pass asmspec to rest_of_decl_compilation.
18869         * c-semantics.c (make_rtl_for_local_static): Delete.
18870         * expr.c (init_block_move_fn): Use set_user_assembler_name.
18871         (init_block_clear_fn): Likewise.
18872         * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
18873         expect it to be in DECL_ASSEMBLER_NAME.  Update callers in many files.
18874         * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
18875         * tree.h (make_decl_rtl): Remove second parameter.
18876         (set_user_assembler_name): New.
18877         * varasm.c (set_user_assembler_name): New.
18878         (make_decl_rtl): Remove second parameter.  Update callers in many
18879         files.
18881 2004-08-05  Adam Nemet  <anemet@lnxw.com>
18883         * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
18884         (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*.  Update
18885         to LynxOS 4.0.
18886         * gthr-lynx.h: New file.
18887         * config/lynx-ng.h: Remove file.
18888         * config/lynx.h: Update to LynxOS 4.0.
18889         * config/t-lynx: New file.
18890         * config/i386/lynx-ng.h: Remove file.
18891         * config/i386/lynx.h: Update to LynxOS 4.0.
18892         * config/rs6000/lynxbase.h: Remove file.
18893         * config/rs6000/lynx.h: Update to LynxOS 4.0.
18894         * config/rs6000/t-lynx: New file.
18895         * doc/install.texi (Options specification): Remove reference to
18896         LynxOS from systems where --with-gnu-as makes a difference.
18898 2004-08-05  Joseph S. Myers  <jsm@polyomino.org.uk>
18900         * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
18901         __UINTMAX_TYPE__.
18902         * c-cppbuiltin.c (builtin_define_stdint_macros): New.  Define
18903         __INTMAX_MAX__.
18904         (c_cpp_builtins): Call it.
18905         * doc/cpp.texi: Update.
18907 2004-08-04  David Edelsohn  <edelsohn@gnu.org>
18909         * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
18910         cost.
18912 2004-08-04  Jan Hubicka  <jh@suse.cz>
18914         * basic-block.h (profile_staus): New global variable.
18915         * cfg.c (profile_status): Declare.
18916         (check_bb_profile): Break out from ....; use profile_status
18917         (dump_flow_info): ... here.
18918         * cfgbuild.c (find_basic_blocks): Set profile_status.
18919         * cfgexpand.c (tree_expand_cfg): Likewise.
18920         * predict.c (estimate_probability): Likewise.
18921         * profile.c (branch_prob): Likewise.
18922         * tree-cfg.c (build_tree_cfg): Likewise.
18923         (dump_function_to_file): Use check_bb_profile.
18924         * tree-pretty-print (dump_bb_header): Likewise.
18925         * tree-profile.c (do_tree_profiling): Cleanup.
18927 2004-08-04  Zack Weinberg  <zack@codesourcery.com>
18929         * Makefile.in (RTL_BASE_H, RTL_H): Correct.
18930         (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
18931         (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
18932         (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
18933         (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
18934         (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
18935         (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
18936         (ggc-none.o, errors.o): Move rule to generators section;
18937         correct dependencies.
18938         (min-insn-modes.o): Move rule to generators section; remove
18939         unnecessary explicit command; correct dependencies.
18940         (print-rtl.o, print-rtl1.o): Correct dependencies.
18941         ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
18942         (mostlyclean): Update.
18944         * errors.c: Include bconfig.h not config.h.  Correct comment.
18945         * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
18946         * ggc-none.c: Include bconfig.h; not config.h or tm.h.
18947         * print-rtl.c: Don't include tm_p.h.
18949         * rtl.h: Move forward-decl of struct function down where it's
18950         needed.  Include genrtl.h #ifndef GENERATOR_FILE, not
18951         #ifndef NO_GENRTL_H.  Remove unnecessary #ifdef BUFSIZ statements.
18953 2004-08-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
18954             Jeff Law  <law@redhat.com>
18956         * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
18957         * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
18958         * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
18959         manipulate the duplicated ssa names.
18960         * tree-ssanames.c (ssa_names_to_rewrite): New variable.
18961         (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
18962         unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
18963         New functions.
18964         (release_ssa_name): Do not release ssa names that may have multiple
18965         definitions.
18966         * tree.h (release_ssa_name_force, mark_for_rewrite,
18967         unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
18968         marked_ssa_names): Declare.
18969         * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
18970         (duplicate_blocks): Remove call to mark_defs_for_rewrite.
18971         Update call to rewrite_ssa_into_ssa.
18973 2004-08-04  Mark Mitchell  <mark@codesourcery.com>
18975         * defaults.h (TARGET_DECLSPEC): New macro.
18976         * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
18977         * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
18978         * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
18979         * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
18980         __declspec support.
18981         (TARGET_DECLSPEC): Define.
18982         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
18983         __declspec support.
18984         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
18985         __declspec support.
18986         (TARGET_DECLSPEC): Define.
18987         * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
18988         __declspec support.
18989         * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
18990         support.
18991         * doc/tm.texi (TARGET_DECLSPEC): Document.
18993         * doc/extend.texi: Fix typo in comment.
18995 2004-08-04  Paul Brook  <paul@codesourcery.com>
18997         * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
18998         (TARGET_CXX): Use it.
18999         * target.h (struct gcc_target): Add cdtor_returns_this.
19000         * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
19001         (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
19002         * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
19004 2004-08-03  Nathan Sidwell  <nathan@codesourcery.com>
19006         * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
19007         low/high pair. Do range checking directly.
19008         (interpret_integer): Adjust.
19010 2004-08-04  Nick Clifton  <nickc@redhat.com>
19012         * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
19013         GCC ABI.
19014         * doc/invoke.texi: Document this new switch and also the -mrenesas
19015         switch.
19017 2004-08-04  Nathan Sidwell  <nathan@codesourcery.com>
19019         * cfglayout.c (insn_locators_initialize): Update the current
19020         location before initializing a location.
19022 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
19024         * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
19025         (dbxout_function_end): Return after emitting the "Lscope" symbol
19026         under the same conditions that this function formerly wasn't called.
19027         Add explanatory comments.
19029         PR 14860
19030         * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
19031         on the new decl.
19033         PR 13956
19034         * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
19035         functions, broken out of dbxout_block.
19036         (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
19037         stabs too, if it contains symbols.  Use the begin_label and
19038         the Lscope label (emitted by dbxout_function_end) for the
19039         range of this block.
19041 2004-08-03  Nathanael Nerode  <neroden@gcc.gnu.org>
19043         * doc/install.texi: Update autoconf version requirements.
19045 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
19047         * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
19048         * recog.c (general_operand, immediate_operand, nonmemory_operand)
19049         (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
19050         * regclass.c (record_reg_classes): Likewise.
19051         * reload.c (find_reloads): Likewise.
19052         * reload1.c (reload): Likewise.
19054 2004-08-03  Zack Weinberg  <zack@codesourcery.com>
19056         * gensupport.c (init_md_reader_args_cb): Renamed from
19057         init_md_reader_args.  Add third option, callback function for
19058         parsing program-specific options.  Add diagnosis of incorrect
19059         number of input files.
19060         (init_md_reader): Fold into init_md_reader_args_cb.
19061         (init_md_reader_args): Now a thin wrapper around
19062         init_md_reader_args_cb.
19063         * gensupport.h: Update prototypes.
19065         * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
19066         * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
19067         * genrecog.c: No need to diagnose lack of an input file;
19068         init_md_reader_args will handle it.
19069         * genconditions.c: Likewise, and use init_md_reader_args.
19070         * genconstants.c: Likewise, and no need to call read_md_rtx.
19072 2004-08-03  Joseph S. Myers  <jsm@polyomino.org.uk>
19074         * c-decl.c (implicitly_declare): Diagnose incompatible implicit
19075         declarations.
19077 2004-08-03  Mike Stump  <mrs@apple.com>
19079         * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
19080         for frameworks.
19081         * doc/invoke.texi (Darwin Options): Update to reflect above.
19083 2004-08-03  Roger Sayle  <roger@eyesopen.com>
19085         PR middle-end/16790
19086         * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
19087         truncations, not just global truncations.
19089 2004-08-03  Andrew Pinski  <apinski@apple.com>
19091         PR bootstrap/16865
19092         * loop-iv.c (simplify_using_assignment): Initialize lhs.
19094 2004-08-03  Paul Brook  <paul@codesourcery.com>
19096         * gcc/doc/install.texi: Document MPFR requirement.
19098 2004-08-03  Maciej W. Rozycki  <macro@linux-mips.org>
19100         * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
19101         and mmap() explicitly instead of relying on preset autoconf cache
19102         variables.
19103         * configure: Regenerate.
19105 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
19107         PR target/16570
19108         * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
19109         to tmake_file.
19110         (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
19111         (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
19112         to tmake_file.
19114         * config/i386/t-gmm_malloc: New file.
19115         * config/i386/t-pmm_malloc: Likewise.
19117         * config/i386/xmmintrin.h: Include <mm_malloc.h>.
19119 2004-08-03  H.J. Lu  <hongjiu.lu@intel.com>
19120             Tanguy Fautrà <tfautre@pandora.be>
19122         * config/i386/pmm_malloc.h: New file.
19124 2004-08-03  Danny Smith  <dannysmith@users.sourceforge.net>
19126         * config/i386/gmm_malloc.h: New file.
19128 2004-08-03  Dale Johannesen  <dalej@apple.com>
19130         * config/rs6000/rs6000.c (machopic_output_stub):  Align Darwin stubs.
19131         * c-common.c: Include opts.h.
19132         (c_common_get_alias_set): Fix check for a single input file.
19133         * toplev.c: Remove current_file_decl.
19134         * tree.h: Ditto.
19136 2004-08-03  Mark Mitchell  <mark@codesourcery.com>
19138         * config.gcc (arm*-*-symbianelf*): New target.
19139         * config/arm/symbian.h: New file.
19141         * gthr-gnat.c: Add visibility #pragmas.
19142         * gthr-gnat.h : Likewise.
19143         * gthr.h: Likewise.
19144         * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
19145         (__ffsDI2): Likewise.
19146         (__clzSI2): Likewise.
19147         (__ctzSI2): Likewise.
19148         (__ctzDI2): Likewise.
19149         (__popcountSI2): Likewise.
19150         (__popcountDI2): Likewise.
19151         (__paritySI2): Likewise.
19152         (__parityDI2): Likewise.
19153         * libgcc2.h: Add visibility #pragmas.
19154         (__clzDI2): Add prototype.
19155         (__clzSI2): Likewise.
19156         (__ctzSI2): Likewise.
19157         (__ffsDI2): Likewise.
19158         (__ffsSI2): Likewise.
19159         (__ctzDI2): Likewise.
19160         (__popcountSI2): Likewise.
19161         (__popcountDI2): Likewise.
19162         (__paritySI2): Likewise.
19163         (__parityDI2): Likewise.
19164         * unwind-dw2-fde.h: Add visibility #pragmas.
19165         * unwind.h: Likewise.
19167 2004-08-03  David Edelsohn  <edelsohn@gnu.org>
19168             Dale Johannesen  <dalej@apple.com>
19169             Roger Sayle  <roger@eyesopen.com>
19171         * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
19172         constants more accurately.  Adjust costs for FMA instructions.
19173         Add cases for most logical and float operations.  Recurse into
19174         most operands.
19176 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
19178         * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
19180 2004-08-03  Pat Haugen  <pthaugen@us.ibm.com>
19182         * ra-build.c (conflicts_between_webs): For webs that cross a call add
19183         conflicts to regs_invalidated_by_call.
19185 2004-08-03  Paul Brook  <paul@codesourcery.com>
19187         * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
19189 2004-08-03  Jan Hubicka  <jh@suse.cz>
19191         * coverage.c (tree_coverage_counter_ref): Fix computation of the new
19192         ARRAY_REF argument.
19194 2004-08-03  Richard Earnshaw  <rearnsha@arm.com>
19196         * arm-cores.def: Sort by architecture.  Add arm946es, arm966es,
19197         arm968es, arm10e, arm1020e, arm1022e.
19198         * invoke.texi: Update list of ARM cores.
19199         * arm-tune.md: Regenerate.
19201 2004-08-03  Richard Earnshaw <rearnsha@arm.com>
19203         * arm/gentune.sh: New file.
19204         * arm/t-arm: New file.
19205         * arm/arm-tune.md: New file (autogenerated).
19206         * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
19207         * arm.md (attribute tune): Delete.  Include arm-tune.md.
19209 2004-08-03  Paolo Bonzini <bonzini@gnu.org>
19211         * gcc.c (add_prefix, add_sysrooted_prefix): Remove
19212         penultimate parameter.  All callers adjusted.
19213         (struct prefix_list): Remove used_flag_ptr.
19214         (find_a_file): Do not set *pl->used_flag_ptr.
19215         (warn_B, warn_std_ptr): Remove.
19217 2004-08-03  Yossi Markovich <yossim@il.ibm.com>
19218             Mostafa Hagog <mustafa@il.ibm.com>
19220         * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
19222 2004-08-02  Geoffrey Keating  <geoffk@apple.com>
19224         * dwarf2out.c (output_call_frame_info): Don't change data format
19225         due to TARGET_USES_WEAK_UNWIND_INFO.  Always refer to the local
19226         label.  Use 'true' not '1'.
19227         * doc/install.texi (powerpc-*-darwin*): Mention cctools version
19228         required.
19230 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19232         * gdbinit.in: Reflect previous changes to rtunion_def.
19234 2004-08-02  Roger Sayle  <roger@eyesopen.com>
19236         * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
19237         -> "X % Y" is only valid for TRUNC_MOD_EXPR.
19239 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19241         * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
19242         vec_p_reserve.
19243         * langhooks.h (lang_hooks::builtin_function): Rename parameter
19244         from "class" to "bt_class".
19246 2004-08-02  Paul Brook  <paul@codesourcery.com>
19248         PR rtl-optimization/15068
19249         * flow.c (init_propagate_block_info): Check condition is reversible.
19251 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19253         * gengtype.h (options::info): Change type to const char *.
19254         (enum gc_used_enum): Move out of struct type scope.
19255         * gengtype.c (create_option): Convert initializer for option::info to
19256         appropiate type.
19257         (adjust_field_type, walk_type, write_func_for_structure,
19258         write_root, write_roots): Remove pointless cast.
19260 2004-08-02  J"orn Rennecke <joern.rennecke@superh.com>
19262         * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
19264 2004-08-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
19266         * rtl.h (union rtunion_def): Have all members  start with the
19267         prefix "rt_".
19268         (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
19269         X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
19270         X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
19271         XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
19272         access.
19273         * gengtype.c (adjust_field_rtx_def): Likewise.
19274         * rtlanal.c (loc_mentioned_in_p): Likewise.
19276 2004-08-02  Richard Sandiford  <rsandifo@redhat.com>
19278         * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
19279         Replace uses of mips/elf64.h with mips/elf.h
19280         * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
19281         (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
19282         (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
19283         (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
19284         (HANDLE_SYSV_PRAGMA): Delete.
19285         (ASM_OUTPUT_DEF): Fix formatting.
19286         * config/mips/elf64.h: Delete.
19288 2004-08-01  Zack Weinberg  <zack@codesourcery.com>
19290         * config/ia64/ia64.c (got_symbolic_operand): Do require a
19291         symbol+offset operand to have its offset be zero mod 0x3fff
19292         when GOT entries are in use.  Clarify logic in SYMBOL_REF
19293         case.  Clarify comments.
19294         (ia64_expand_load_address): Split a symbol+offset load when
19295         the offset is nonzero mod 0x3fff, not 0x1fff.
19297 2004-08-01  Geoffrey Keating  <geoffk@apple.com>
19299         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
19300         if trying to *store* to a non-offsettable address.
19301         * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
19302         a nonoffsettable address.
19303         (movdi_internal32): Don't move GPRs to a nonoffsettable address.
19304         Clean up.
19305         (movti_string): Don't move GPRs to a nonoffsettable address.
19306         (movti_ppc64): Don't move GPRs to a nonoffsettable address.  Clean up.
19308 2004-08-02  Ben Elliston  <bje@au.ibm.com>
19310         PR target/16155
19311         * config/rs6000/altivec.h: Replace typeof with __typeof__.
19313 2004-08-01  Richard Henderson  <rth@redhat.com>
19315         * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
19316         variable sized types.
19318 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
19320         * doc/invoke.texi: In the MIPS options section, remove the passage
19321         saying that -mexplicit-relocs is usually disabled for -mabicalls
19322         -fno-unit-at-a-time.
19323         * config/mips/mips.c (override_options): Remove the code that enforced
19324         this rule.
19326 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
19328         * config/mips/mips.md (cprestore): Provide two alternatives, one for
19329         an in-range offset and one for an out-of-range offset.  Wrap the latter
19330         in .set macro/.set nomacro if it's inside a .set nomacro block.
19332 2004-08-01  Richard Sandiford  <rsandifo@redhat.com>
19334         * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
19335         (mips_restore_gp): Declare.
19336         * config/mips/mips.c (mips_add_offset): Add a scratch register
19337         argument.  Reimplement in rtl only, reusing MIPS16 logic from
19338         mips_output_mi_thunk.
19339         (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
19340         to mips_add_offset.
19341         (mips_gp_save_slot): Delete.
19342         (mips_restore_gp): New function.
19343         (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
19344         * config/mips/mips.md (exception_receiver): Turn into a
19345         define_insn_and_split.  Use mips_restore_gp to do the split.
19346         (call_internal, call_value_internal, call_value_multiple_internal): Use
19347         mips_restore_gp to restore $gp.
19349 2004-07-31  Andrew Pinski  <apinski@apple.com>
19351         PR other/16842
19352         * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
19354 2004-07-31  Joseph S. Myers  <jsm@polyomino.org.uk>
19356         * c-decl.c (diagnose_mismatched_decls): Give error for external
19357         redeclaration of identifier declared with no linkage, not just
19358         warning with -Wtraditional.  Do not check DECL_CONTEXT to give
19359         error for redeclaration with no linkage.
19361 2004-07-30  Geoffrey Keating  <geoffk@apple.com>
19362             Fariborz Jahanian <fjahanian@apple.com>
19364         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
19365         non-offsettable addresses even for DImode.
19366         (rs6000_split_multireg_move): Cope with non-offsettable addresses
19367         being moved into multiple GPRs.
19369         * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
19370         to 64.
19371         (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
19372         * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
19373         to 128.
19374         * config/rs6000/darwin-ldouble.c (isless): New macro.
19375         (inf): New macro.
19376         (nonfinite): New macro.
19377         (FPKINF): Delete.
19378         (_xlqadd): Completely rewrite.
19379         (_xlqmul): Correct overflow handling.
19380         (_xlqdiv): Correct overflow handling.
19381         * config/rs6000/darwin-ldouble-format: New file.
19383 2004-07-30  Roger Sayle  <roger@eyesopen.com>
19384             Richard Henderson  <rth@redhat.com>
19386         * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
19387         9 into the equivalent lea instruction.
19389 2004-07-30  Richard Henderson  <rth@redhat.com>
19391         * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
19392         with DECL_INITIAL if fb_lvalue.
19393         * tree-gimple.c (is_gimple_id): Add CONST_DECL.
19394         * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
19395         with <Cxxx>.
19396         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
19398 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
19400         * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
19401         pointer escapes through a function call, assume that the
19402         callee will dereference it.
19403         (add_pointed_to_var): Assume that VALUE is always an
19404         ADDR_EXPR.
19405         (collect_points_to_info_r): Only call add_pointed_to_var if
19406         the value is an ADDR_EXPR.
19408 2004-07-30  Diego Novillo  <dnovillo@redhat.com>
19410         * tree-ssa-alias.c (create_alias_map_for): Do not get the
19411         alias set of the inner type of ARRAY_TYPEs.
19413 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
19415         * tree-ssa-ccp.c (visit_assignment): Move code to prevent
19416         setting a non-register to UNDEFINED right before the call to
19417         set_lattice_value.
19419 2004-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
19421         * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
19423 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
19425         * tree-ssa.c (verify_flow_sensitive_alias_info): When
19426         comparing points-to sets of different pointers, make sure the
19427         second pointer is actually referenced in the code.
19429 2004-07-29  Zack Weinberg  <zack@codesourcery.com>
19431         * config/ia64/ia64.c (setjmp_operand): Delete, unused.
19432         (got_symbolic_operand): Remove unreachable code.
19433         * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
19434         setjmp_operand; add entry for tls_symbolic_operand.
19435         * config/ia64/ia64-protos.h: Remove all prototypes of
19436         predicate functions.
19438 2004-07-29  Mark Mitchell  <mark@codesourcery.com>
19440         * c-common.h (lang_post_pch_load): New variable.
19441         * c-pch.c (lang_post_pch_load): Define it.
19442         (c_common_read_pch): Use it.
19443         * cgraphunit.c (record_call_1): Give the front end a chance to
19444         record additional needed entities when a variable is marked as
19445         needed.
19446         * tlink.c (recompile_files): Robustify.
19447         (scan_linker_output): If a symbol is assigned to a file,
19448         but after recompilation is not present there, issue an error
19449         message.
19451 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19453         * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
19454         Take orig_loop argument and pass it to set_level.
19455         (schedule_sm): Pass the correct orig_loop to force_move_till.
19457 2004-07-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
19459         * cfgloop.c (update_latch_info): Update dominator of the new block.
19460         (canonicalize_loop_headers, flow_loops_find): Do not free dominance
19461         info.
19462         * dominance.c (verify_dominators): Check that the dominance tree is
19463         connected.
19464         (recount_dominator): Ignore unreachable blocks.
19465         (iterate_fix_dominators): Cleanup old dominance information before
19466         recomputing it.
19468 2004-07-29  Diego Novillo  <dnovillo@redhat.com>
19470         * tree-ssa-operands.c (get_expr_operands): Revert changes
19471         to ADDR_EXPR processing introduced by:
19472             2004-06-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19473             * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
19475 2004-07-29  Joseph S. Myers  <jsm@polyomino.org.uk>
19477         * doc/implement-c.texi: Add C90 subclause references.  Point to
19478         preprocessor documentation instead of duplicating it.  Add points
19479         only present in C90.  Fill in documentation for all points.
19481 2004-07-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19483         * pa.c (output_movb): Correct typo.
19485 2004-07-29  Pat Haugen  <pthaugen@us.ibm.com>
19487         * ra.h (single_reg_in_regclass): Declare.
19488         * ra.c (single_reg_in_regclass): Define.
19489         (first_hard_reg): New.
19490         (init_ra): Initialize single_reg_in_regclass.
19491         * ra-colorize.c (ok_class): New.
19492         (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
19494 2004-07-29  Nathan Sidwell  <nathan@codesourcery.com>
19496         * gcov-io.h: Allow zero tag as EOF indicator.
19497         (gcov_is_eof): Remove.
19498         (gcov_truncate): Remove.
19499         * gcov-io.c (gcov_seek): Always SEEK_SET.
19500         * libgcov.c (gcov_exit): Don't use gcov_truncate.  Write explicit
19501         EOF tag.
19502         * coverage.c (read_counts_file): Don't use gcov_is_eof.
19503         * gcov-dump.c (dump_file): Likewise.
19504         * gcov.c (read_graph_file, read_count_file): Likewise.
19506         * c-decl.c (complete_array_type): Don't gratuitously copy
19507         maxindex.  Check it always has a type.
19509 2004-07-29  Steven Bosscher  <stevenb@suse.de>
19511         * rtl.c (currently_expanding_to_rtl): New.
19512         * rtl.h (currently_expanding_to_rtl): Export it.
19513         * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
19515         * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
19516         inliner hack.
19517         * config/sh/sh.c: Replace rtx_equal_function_value_matters
19518         with currently_expanding_to_rtl.
19519         * config/sh/sh.md: Likewise.
19520         * config/ia64/ia64.c (got_symbolic_operand): Likewise.
19522 2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
19524         Introduce sh2a support.
19525         2004-07-29  Alexandre Oliva  <aoliva@redhat.com>
19526         * config.gcc: Build multilibs for sh2a and sh2a-single by
19527         default.
19528         * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
19529         default.  Split their tests out of the corresponding SH4
19530         multilibs.
19531         * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
19532         multilibs for SH2a.
19533         2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
19534         * config.gcc: Handle sh2a multilibs and cpu selection.
19535         * config/sh/sh.h: Likewise.  Handle sh2a command line flags.
19536         * config/sh/t-mlib-sh2a: New.
19537         * config/sh/t-mlib-sh2a-nofpu: New.
19538         * config/sh/t-mlib-sh2a-single: New.
19539         * config/sh/t-mlib-sh2a-single-only: New.
19540         2004-07-09  Nick Clifton  <nickc@redhat.com>
19541         Issue 43400
19542         * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
19543         -ml and -m2a are used together.
19544         2004-03-23  DJ Delorie  <dj@redhat.com>
19545         * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
19546         when we have a double-sized FPU.
19547         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
19548         * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
19549         is set.
19550         * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
19551         -msh2a-single and -msh2a-single-only
19552         2004-02-24  Corinna Vinschen <vinschen@redhat.com>
19553         * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
19554         is set.
19555         2004-02-20  DJ Delorie  <dj@delorie.com>
19556         * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
19557         2004-02-20  Fred Fish <fnf@redhat.com>,
19558         Corinna Vinschen <vinschen@redhat.com>
19559         * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
19560         (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
19561         2004-02-18  DJ Delorie  <dj@redhat.com>
19562         * config/sh/sh.c (broken_move): Add support for movi20.
19563         * config/sh/sh.h: Likewise.
19564         (SHIFT_COUNT_TRUNCATED): Set for sh2a.
19565         * config/sh/sh.md (udivsi3_sh2a): New.
19566         (udivsi3): Call it.
19567         (divsi3_sh2a): New.
19568         (divsi3): Call it.
19569         (mul_r): New.
19570         (ashlsi3_sh2a): New.
19571         (ashrsi3_sh2a): New.
19572         (lshrsi3_sh2a): New.
19573         (movsi_i): Disable for sh2a.
19574         (movsi_ie): Add movi20.
19575         (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
19576         sh2a, for -m2a-nofpu mode.
19577         2004-02-13  DJ Delorie  <dj@redhat.com>
19578         * config/sh/lib1funcs.asm: Handle double vs single better.
19579         * config/sh/sh.h: Likewise.
19580         2004-02-09  DJ Delorie  <dj@redhat.com>
19581         * config/sh/crt1.asm: Add support for sh2a.
19582         * config/sh/elf.h: Likewise.
19583         * config/sh/lib1funcs.asm: Likewise.
19584         * config/sh/sh.c: Likewise.
19585         * config/sh/sh.md: Likewise.
19586         * config/sh/sh.h: Likewise.
19587         * config/sh/t-sh: Likewise.
19589 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
19591         * config/frv/frv.md (movqi_internal, movhi_internal,
19592         movsi_internal): Add backup alternatives for memory inputs.
19594 2004-07-28  Matt Austern  <austern@apple.com>
19596         * config/darwin.c (darwin_one_byte_bool): New global variable.
19597         * config/darwin.h (darwin_one_byte_bool): Declare.
19598         (SUBTARGET_OPTIONS): Define macro.  (for -mone-byte-bool flag.)
19599         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
19600         value of darwin_one_byte_bool.
19601         * doc/invoke.texi: Document -mone-byte-bool flag.
19603 2004-07-28  Eric Christopher  <echristo@redhat.com>
19605         * c-common.c (c_common_unsafe_for_reeval): Delete.
19606         * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
19607         * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
19608         * calls.c (fix_unsafe_tree): Delete.
19609         (expand_call): Delete code which used above.
19610         * dojump.c (do_jump): Delete UNSAVE_EXPR case.
19611         * expr.c (expand_expr_real_1): Ditto.
19612         * fold-const.c (non_lvalue): Ditto.
19613         * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
19614         (lhd_unsafe_for_reeval): Ditto.
19615         * langhooks.c (lhd_unsafe_for_reeval): Ditto.
19616         * langhooks.h (unsafe_for_reeval): Ditto.
19617         (unsave_expr_now): Adjust comment.
19618         * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
19619         (estimate_num_insns_1): Ditto.
19620         * tree-pretty-print.c (dump_generic_node): Ditto.
19621         * tree.c (expr_align): Ditto.
19622         (unsave_expr): Delete.
19623         (unsafe_for_reeval): Ditto.
19624         * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
19625         * tree.def (UNSAVE_EXPR): Delete.
19626         * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
19628 2004-07-28  Zack Weinberg  <zack@codesourcery.com>
19630         * tree.h (enum tls_model): Move ...
19631         * coretypes.h: ... here.
19633 2004-07-28  Richard Sandiford <rsandifo@redhat.com>
19635         * config/frv/frv.h (EPILOGUE_USES): New.  Use LR.
19637 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
19639         * cse.c (validate_canon_reg): New function, split out from...
19640         (canon_reg): ...here.  Use validate_canon_reg for both 'e' and 'E'.
19642 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19644         * tree-ssa-alias.c (maybe_create_global_var): Don't just
19645         return if .GLOBAL_VAR has been created.
19647 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19649         * tree-ssa.c (verify_flow_insensitive_alias_info): Process
19650         every variable that may have aliases, not just tags.
19652 2004-07-28  Aldy Hernandez  <aldyh@redhat.com>
19654         * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
19655         move_from_CR_eq_bit.
19656         Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
19659         * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
19660         e500_flip_eq_bit.
19662         * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
19663         output_e500_flip_eq_bit.
19665         * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
19666         output_e500_flip_eq_bit.
19667         (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
19668         output_e500_flip_eq_bit.
19669         Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
19670         (print_operand): case D.  Get to EQ bit.
19672 2004-07-28  Richard Sandiford  <rsandifo@redhat.com>
19674         * gcov.c (function_summary): Add missing \n.
19676 2004-07-28  Alexandre Oliva  <aoliva@redhat.com>
19678         Introduce sh4a support.
19679         * config.gcc: Handle sh4a multilibs and cpu selection.
19680         * config/sh/sh.h: Likewise.  Handle sh4a command line flags.
19681         * config/sh/t-mlib-sh4a: New.
19682         * config/sh/t-mlib-sh4al: New.
19683         * config/sh/t-mlib-sh4a-nofpu: New.
19684         * config/sh/t-mlib-sh4a-single: New.
19685         * config/sh/t-mlib-sh4a-single-only: New.
19686         2004-02-20  DJ Delorie  <dj@redhat.com>
19687         * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
19688         * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
19689         2003-08-22  Eric Christopher  <echristo@redhat.com>
19690         * config/sh/sh4a.md: Update for chip errata.
19691         2003-08-07  Eric Christopher  <echristo@redhat.com>
19692         * config/sh/sh4a.md: New file. sh4a processor description.
19693         2003-07-08  Alexandre Oliva  <aoliva@redhat.com>
19694         * config/sh/sh.h (TARGET_SWITCHES): Added 4al.  Adjust description
19695         of -m4a-nofpu.
19696         (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
19697         * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
19698         * doc/invoke.texi (SH Options): Document -m4al.
19699         2003-07-03  Alexandre Oliva  <aoliva@redhat.com>
19700         * config/sh/sh.c (expand_block_move): Remove commented-out code
19701         checked in by mistake.
19702         (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
19703         single elements from SFmode vectors.
19704         * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
19705         register.
19706         (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
19707         2003-07-01  Alexandre Oliva  <aoliva@redhat.com>
19708         * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
19709         sh_fsca_int2sf): Remove variable declarations.
19710         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
19711         sh_fsca_int2sf): New functions.
19712         (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
19713         sh_fsca_int2sf_rtx): New static variables.
19714         * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
19715         sh_fsca_int2sf): Declare.
19716         * config/sh/sh.md: Adjust.
19717         * doc/invoke.texi (SH Options): Document new options.
19718         * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
19719         compatibility from SH4 code.
19720         2003-06-27  Alexandre Oliva  <aoliva@redhat.com>
19721         * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
19722         early.
19723         (memory_movsrc_operand): Renamed to...
19724         (unaligned_load_operand): ... this.  Simplified.
19725         * config/sh/sh.h (PREDICATE_CODES): Adjust.
19726         * config/sh/sh.md (movua, extv, extzv): Likewise.  Change movua's
19727         input operand to SImode, and adjust the others.  Introduce
19728         post-increment by peephole.
19729         * config/sh/sh.c (expand_block_move): Give the target address the
19730         same mode as the temp reg.
19731         * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
19732         copying.
19733         2003-06-26  Alexandre Oliva  <aoliva@redhat.com>
19734         Introduce support for SH4a.
19735         * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
19736         __SH4A__.  Emit 4 4kb blocks and touch all of them otherwise.
19737         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
19738         sh_fsca_int2sf): New.
19739         (sh_init_builtins): Initialize them.
19740         (print_operand): Support `d'.
19741         (expand_block_move): Use movua if src is misaligned.
19742         (memory_movsrc_operand): New.
19743         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
19744         and one of the SH4 macros.
19745         (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
19746         SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
19747         SELECT_SH4A_SINGLE): New.
19748         (TARGET_NONE): Add SH4A_BIT.
19749         (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
19750         (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
19751         (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
19752         (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
19753         (enum processor_type): Added PROCESSOR_SH4A.
19754         (PREDICATE_CODES): Add memory_movsrc_operand.
19755         * config/sh/sh.md: Removed unused variables.
19756         (attr cpu): Add sh4a.
19757         (attr type): Add movua, fsrra and fsca.
19758         (prefetch): New, for SH4.
19759         (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
19760         (toggle_sz): Set type to fp.
19761         (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
19762         (movua, extv, extzv): New.
19763         * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
19764         and 4a-single-only.
19766 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19768         * tree-optimize.c (init_tree_optimization_passes): Schedule
19769         pass_may_alias right after the program is renamed into SSA.
19770         * tree-pass.h (PROP_alias): Define.
19771         * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
19772         * tree-sra.c (pass_sra): Likewise.
19773         * tree-ssa-ccp.c (pass_ccp): Likewise.
19774         * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
19775         * tree-ssa-dce.c (pass_dce): Likewise.
19776         * tree-ssa-dom.c (pass_dominator): Likewise.
19777         * tree-ssa-dse.c (pass_dse): Likewise.
19778         * tree-ssa-forwprop.c (pass_forwprop): Likewise.
19779         * tree-ssa-loop-ch.c (pass_ch): Likewise.
19780         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
19781         * tree-ssa-pre.c (pass_pre): Likewise.
19782         * tree-tailcall.c (pass_tail_recursion): Likewise.
19783         * tree-ssa.c (pass_redundant_phi): Likewise.
19784         * tree-ssa-alias.c (aliases_computed_p): Remove.
19785         Update all users.
19786         (init_alias_info): Do not mark all type tags for renaming
19787         unconditionally.
19788         Clear may_aliases from every symbol.
19789         (setup_pointers_and_addressables): If a pointer has not been
19790         dereferenced and it had a type tag, clear it and mark the old
19791         tag for renaming.
19793 2004-07-28  Diego Novillo  <dnovillo@redhat.com>
19795         PR tree-optimization/16705
19796         * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
19797         .GLOBAL_VAR.
19799 2004-07-27  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19801         * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
19802         check.
19804         * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
19805         don't make another one.
19807         PR optimization/15077
19808         * function.h (struct function): Add field saved_static_chain_decl.
19809         Fix comment for static_chain_decl.
19810         * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
19811         * tree-inline.h (save_body): Add new arg.
19812         * tree-optimize.c (tree_rest_of_compilation): Handle saving
19813         static_chain_decl.
19815 2004-07-27  Richard Henderson  <rth@redhat.com>
19817         * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
19818         (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
19819         is_gimple_addressable.
19820         * tree-gimple.c (is_gimple_addressable): Rename from
19821         is_gimple_addr_expr_arg; accept INDIRECT_REF.
19822         (is_gimple_lvalue): Don't test INDIRECT_REF directly.
19823         * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
19824         rename to is_gimple_addressable.
19826 2004-07-28  Alan Modra  <amodra@bigpond.net.au>
19828         * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
19830 2004-07-27  Richard Henderson  <rth@redhat.com>
19832         * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
19833         before rounding.
19835 2004-07-27  Zack Weinberg  <zack@codesourcery.com>
19837         * libgcc2.c: Change all conditionals testing
19838         LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
19839         * libgcc2.h: Likewise.
19840         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
19841         TYPE_PRECISION of float80_type to 80.
19842         * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
19843         of fpreg_type and float80_type to 80.
19844         * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
19845         * config/m68k/netbsd-elf.h:
19846         Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
19847         to evaluate to 80 whenever they would formerly have evaluated to 96.
19848         * config/i386/sco5.h: Remove unnecessary redefinition of
19849         LONG_DOUBLE_TYPE_SIZE.
19850         * doc/rtl.texi: Clarify uses of XFmode and TFmode.
19851         * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
19852         XFmode, with a bitsize of 80.  Update commentary.
19853         * config/ia64/ia64-modes.def: Likewise.
19854         * config/m68k/m68k-modes.def: Likewise.
19856 2004-07-27  Steven Bosscher  <stevenb@suse.de>
19858         * cfgexpand.c (tree_expand_cfg): Fix comment.
19860         * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
19861         * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
19862         Remove.
19863         (prepare_function_start): Don't set rtx_equal_function_value_matters.
19864         * integrate.c (copy_rtx_and_substitute): Don't test for it.
19865         * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
19866         Don't set rtx_equal_function_value_matters.  Don't register RTL hooks
19867         here again.  Update leading comment.
19868         * rtl.c (rtx_equal_function_value_matters): Remove.
19869         (rtx_equal_p): Don't test for it.
19870         * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
19871         Likewise.
19873         * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
19874         * rtl.c (note_insn_name): Likewise.
19875         * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
19876         * final.c (final_scan_insn): Likewise.
19878         * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
19879         * passes.c (rest_of_handle_eh): Do it here.
19881         * stmt.c (struct nesting): Remove struct nesting block member.
19882         (struct stmt_status): Remove x_block_start_count field.
19883         (current_block_start_count): Remove.
19885 2004-07-27  Brian Booth  <bbooth@redhat.com>
19887         * tree-optimize.c (register_one_dump_file): Update condition that uses
19888         static_pass_number.
19889         (dup_pass_1): Replace with...
19890         (next_pass_1): This.
19891         (NEXT_PASS): Call next_pass_1.
19892         (DUP_PASS): Remove.
19893         (init_tree_optimization_passes): Remove uses of DUP_PASS.
19894         (execute_one_pass): Update condition that uses
19895         static_pass_number.
19896         * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
19897         integer.
19899 2004-07-27  Nick Clifton  <nickc@redhat.com>
19901         * config/m32r/m32r.c: Include integrate.h in order to get the
19902         prototype for get_hard_reg_initial_val().
19904         * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
19905         and tidy up indentation.
19906         (final_presence_set): Use absence_set instead, so that if there is
19907         nothing in the "o" pipe the "s" pipe can be scheduled.
19909 2004-07-27  Diego Novillo  <dnovillo@redhat.com>
19911         * tree-ssa-alias.c (create_name_tags): Ignore pointers that
19912         don't have PT_VARS nor PT_MALLOC set.
19913         Clear name tag from pointers that have not been dereferenced.
19914         (set_pt_anything, set_pt_malloc): Forward declare.
19915         * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
19916         not type compatibility when determining if a pointer can be
19917         copy propagated.
19919 2004-07-27  Richard Sandiford  <rsandifo@redhat.com>
19921         * expr.h (canonicalize_condition, get_condition): Add an int argument.
19922         * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
19923         it to check whether the condition is still valid at the jump insn.
19924         * ifcvt.c (noce_get_condition): Likewise.
19925         (noce_get_alt_condition): Update call to canonicalize_condition.
19926         * loop-iv.c (simplify_using_initial_values): Update call to
19927         get_condition.  Remove FIXME.
19928         (check_simple_exit): Update call to get_condition.
19929         * loop-unswitch.c (may_unswitch_on): Likewise.
19930         * loop.c (check_dbra_loop): Likewise.
19931         (canonicalize_condition, get_condition): Add an argument to say whether
19932         the condition must still be valid at INSN.
19933         (get_condition_for_loop): Update call to get_condition.  Require that
19934         the condition be valid at INSN.
19935         * predict.c (estimate_probability): Update call to get_condition.
19936         Remove unused earliest parameter.
19937         (expected_value_to_br_prob): Update call to canonicalize_condition.
19939 2004-07-26  Eric Christopher  <echristo@redhat.com>
19941         * tree-dfa.c (add_referenced_var): Register initializers of global
19942         variables.
19944 2004-07-26  Paolo Bonzini  <bonzini@gnu.org>
19946         * config/i386/i386.c (function_arg): Always treat 8-
19947         and 16-byte wide vectors the same, even if MMX/SSE
19948         are disabled.
19949         (contains_128bit_aligned_vector_p): Add comment.
19951 2004-07-26  J"orn Rennecke <joern.rennecke@superh.com>
19953         * ra.h (enum node_type): Rename to:
19954         (enum ra_node_type).
19955         * ra-colorize.c: Likewise.
19957 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
19959         * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
19960         after simplifying the jump.
19962 2004-06-26  Richard Henderson  <rth@redhat.com>
19964         * calls.c (combine_pending_stack_adjustment_and_call): Make
19965         preferred_unit_stack_boundary argument unsigned.  Make
19966         unadjusted_alignment unsigned.
19967         (expand_call): Make preferred_stack_boundary and
19968         preferred_unit_stack_boundary variables unsigned.
19969         * function.c (assign_stack_local_1): Make alignment unsigned.
19970         * function.h (struct function): Make stack_alignment_needed,
19971         preferred_stack_boundary unsigned.
19972         * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
19973         (ix86_compute_frame_layout): Make stack_alignment_needed,
19974         preferred_alignment variables unsigned.
19975         * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
19977 2004-07-26  Tom Tromey  <tromey@redhat.com>
19979         * tree.h: Fix typo in comment.
19981 2004-07-26  Daniel Jacobowitz  <dan@debian.org>
19983         PR bootstrap/12804
19984         * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
19985         (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
19986         (ggc_free): Remove incorrect freeing.
19987         (sweep_pages): Advance PP for large pages.  Fix indentation.
19989 2004-07-26  Richard Sandiford  <rsandifo@redhat.com>
19991         PR rtl-optimization/16643
19992         * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
19993         * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
19994         * basic-block.h (reorder_basic_blocks): Add a flags parameter.
19995         * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
19996         (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
19997         * function.c (thread_prologue_and_epilogue_insns): Likewise.
19998         * rtl.h (tracer): Add a flags parameter.
19999         * tracer.c (tracer): Pass it to cfg_layout_initialise.
20000         * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
20001         (rest_of_handle_reorder_blocks): Update calls to tracer and
20002         reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
20003         (rest_of_handle_tracer): Pass 0 to tracer.
20004         (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
20006 2004-07-25  David Edelsohn  <edelsohn@gnu.org>
20008         PR target/16239
20009         * config/rs6000/rs6000.md (movdi_internal64): Further disparage
20010         f->f.
20012 2004-07-24  Nathan Sidwell  <nathan@codesourcery.com>
20014         * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
20015         (BINFO_BASE_ACCESS): Adjust.
20016         (BINFO_BASE_ACCESS_APPEND): New.
20017         (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
20018         * dbxout.c (dbxout_type): Adjust binfo access accessing.
20019         * dwarf2out.c (gen_member_die): Likewise.
20020         * tree-dump.c (deque_and_dump): Likewise.
20022 2004-07-26  Falk Hueffner  <falk@debian.org>
20024         * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
20025         costs.
20027 2004-07-25  Roger Sayle  <roger@eyesopen.com>
20029         * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
20030         value off of the stack if TARGET_USE_FFREEP.
20032 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
20034         * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
20035         * gengtype-yacc.y: Likewise.  Replace free() with XDELETE ().
20036         * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
20037         check on invocation of XRESIZEVEC ().
20039 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
20041         * c-common.c (disable_builtin_function): Rename variable n to
20042         new_disabled_builtin.
20043         * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
20044         Rename local variable old to old_decl.
20045         * gensupport.c (shift_output_template): Rename parameter old to src.
20046         * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
20047         old_rtx and newx to new_rtx.
20049 2004-07-26  Bernardo Innocenti  <bernie@develer.com>
20051         * Makefile.in (C_PRAGMA_H): New variable to track dependencies
20052         of c-pragma.h.
20053         * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
20054         enum cpp_ttype.
20055         * c-lex.c: Likewise.
20057 2004-07-25  Roger Sayle  <roger@eyesopen.com>
20059         * fold-const.c (constant_boolean_node): Make extern.
20060         (make_range): Wrap long lines.
20061         (fold_cond_expr_with_comparison): Remove unnecessary call to
20062         pedantic_non_lvalue.  Add missing calls to fold_convert.
20063         (fold_truthop): Add missing calls to fold_convert.
20064         (fold): Likewise.
20065         * tree.h (constant_boolean_node): Add prototype here.
20066         * builtins.c (expand_builtin_strncmp): Add missing calls to
20067         fold_convert.
20068         * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
20069         Call fold_convert and constant_boolean_node to correct types.
20070         * tree-ssa-forwprop.c (substitute_single_use_vars): Add
20071         missing call to fold_convert to correct types.
20073 2004-07-26  Niall Douglas  <s_fsfeurope2@nedprod.com>
20074             Brian Ryner  <bryner@brianryner.com>
20076         PR c++/9283
20077         PR c++/15000
20078         * c-common.c (c_common_attribute_table): Allow
20079         handle_visibility_attribute to be called for types.
20080         (handle_visibility_attribute) When given a type, set the visibility
20081         bits on the TYPE_NAME.  When given a decl, don't set no_add_attrs
20082         so that we can check later whether the attribute was present. Added
20083         warning if attribute applied to non class type.
20084         * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
20085         decls and checking that they are consistent.
20086         * common.opt: Added -fvisibility.
20087         * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
20088         * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
20089         * flags.h, tree.h: Added assorted support defines for overall patch
20090         * opts.c: Added parsing support for -fvisibility.
20091         * tree.c (build_decl): Set visibility for all decls to be whatever
20092         is in force at that time.
20093         * varasm.c (default_binds_local_p_1): Reworked logic determining
20094         when to make a symbol locally bound.
20095         * doc/invoke.texi: Added documentation for -fvisibility and
20096         -fvisibility-inlines-hidden.
20098 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20100         * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
20101         * c-common.c: Add missing casts from void * to other types.
20102         * c-decl.c: Likewise.
20103         * c-format.c: Likewise.
20104         * c-lex.c: Likewise.
20105         * c-pragma.c: Likewise.
20106         * c-typeck.c: Likewise.
20107         * defaults.h: Likewise.
20108         * genconstants.c: Likewise.
20109         * gengtype-lex.l: Likewise.
20110         * genmodes.c: Likewise.
20111         * read-rtl.c: Likewise.
20112         * rtl.c: Likewise.
20114 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20116         * bitmap.c: Use type-safe memory allocation macros from libiberty.
20117         * c-common.c: Likewise.
20118         * c-decl.c: Likewise.
20119         * c-lang.c: Likewise.
20120         * c-lex.c: Likewise.
20121         * c-opts.c: Likewise.
20122         * c-parse.in: Likewise.
20123         * c-typeck.c: Likewise.
20124         * genconditions.c: Likewise.
20125         * gengtype-lex.l: Likewise.
20126         * gengtype-yacc.y: Likewise.
20127         * gengtype.c: Likewise.
20128         * genmodes.c: Likewise.
20129         * gensupport.c: Likewise.
20130         * read-rtl.c: Likewise.
20131         * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
20132         htab_find_slot().
20134 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20136         * c-decl.c (groktypename, groktypename_in_param_context): Rename
20137         variable typename to type_name.
20138         * c-lex.c (interpret_float): Likewise.
20140 2004-07-25  Roger Sayle  <roger@eyesopen.com>
20142         * convert.c (convert_to_real, convert_to_integer,
20143         convert_to_complex): Replace calls to build with calls to buildN.
20144         * coverage.c (tree_coverage_counter_ref): Likewise.
20145         * dojump.c (do_jump): Likewise.
20146         * dwarf2out.c (loc_descriptor_from_tree): Likewise.
20147         * emit-rtl.c (component_ref_for_mem_expr,
20148         set_mem_attributes_minus_bitpos): Likewise.
20149         * explow.c (update_nonlocal_goto_save_area): Likewise.
20150         * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
20151         expand_mult_add): Likewise.
20152         * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
20153         store_constructor, get_inner_reference, expand_expr_real_1,
20154         try_casesi, try_tablejump): Likewise.
20155         * function.c (expand_function_start): Likewise.
20156         * stmt.c (emit_case_bit_tests, expand_end_case_type,
20157         node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
20158         * stor-layout.c (place_union_field, layout_type): Likewise.
20159         * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
20160         * varasm.c (copy_constant): Likewise.
20162 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20164         * c-common.c: Rename all identifiers named `new'.
20165         * c-decl.c: Likewise.
20166         * gensupport.c: Likewise.
20167         * simplify-rtx.c: Likewise.
20168         * c-common.c (disable_builtin_function): Replace a call to xmalloc()
20169         with XNEW().
20170         * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
20171         with XNEWVEC().
20173 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
20175         PR c/15360
20176         * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
20177         declarations until after calling pushdecl.
20178         (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
20179         "extern" and not on whether the declaration is initialized.
20181 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
20183         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
20184         (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
20185         * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
20186         "cpplib.h", "c-pragma.h", "c-common.h".
20187         (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
20188         (solaris_register_pragmas): New functions.
20189         * config/sol2-protos.h: New file.
20190         * config/sol2.c: New file.
20191         * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
20192         (REGISTER_TARGET_PRAGMAS): New macros.
20193         (solaris_pending_aligns, solaris_pending_inits)
20194         (solaris_pending_finis): New variables.
20195         * config/t-sol2 (sol2-c.o): Update dependencies.
20196         (sol2.o): New rule.
20197         * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
20198         SUBTARGET_INSERT_ATTRIBUTES.
20199         (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
20200         * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
20201         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
20202         * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
20203         * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
20204         * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
20205         (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
20206         * config/sparc/sparc.c (sparc_attribute_table): New.
20207         (TARGET_INSERT_ATTRIBUTES): Define in terms of
20208         SUBTARGET_INSERT_ATTRIBUTES.
20209         (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
20210         is defined.
20211         * doc/extend.texi (Solaris Pragmas): New section.
20213 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20215         * c-common.c: Rename all identifiers named `class' to `cl'.
20216         * c-common.h: Likewise.
20217         * c-parse.in: Likewise.
20218         * c-typeck.c: Likewise.
20219         * genmodes.c: Likewise.
20220         * real.c: Likewise.
20221         * real.h: Likewise.
20222         * recog.c: Likewise.
20223         * recog.h: Likewise.
20224         * regrename.c: Likewise.
20225         * tree.h: Likewise.
20226         * c-common.c (builtin_function_2): Change type of 5th parameter from
20227         int to enum built_in_function. Change type of 8th parameter from int
20228         to bool.
20229         * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
20230         with GGC_CNEW().
20231         * c-typeck.c (convert_arguments): Change type of formal_prec from
20232         int to unsigned int.
20233         * genmodes.c (blank_mode): Make a few negative constants unsigned.
20234         (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
20235         emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
20236         emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
20237         emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
20238         iterator to for_all_modes () instead of an enum because enums can't
20239         be incremented in C++.
20242 2004-07-25  Daniel Jacobowitz  <dan@debian.org>
20244         * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
20245         hard registers.
20247 2004-07-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20249         * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
20250         Handle ARRAY_RANGE_REF like ARRAY_REF.
20252 2004-07-25  Joseph S. Myers  <jsm@polyomino.org.uk>
20254         * c-typeck.c (digest_init): Don't allow arrays of signed or
20255         unsigned variants of wchar_t to be initialized by wide string
20256         constants.  Do allow arrays of enumerated types compatible with
20257         wchar_t to be initialized by wide string constants.  Refine tests
20258         distinguishing wide and narrow strings and arrays.  Give specific
20259         error for arrays of other integer types initialized by string
20260         constants.
20261         (output_init_element, process_init_element): Check for
20262         INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
20263         initializing with string constants.
20265 2004-07-25  Richard Henderson  <rth@redhat.com>
20267         * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
20268         on the RESULT_DECL.
20269         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
20270         * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
20271         DECL_IGNORED_P to new decl.
20273 2004-07-24  Zack Weinberg  <zack@codesourcery.com>
20275         * config/ia64/ia64.c (general_xfmode_operand)
20276         (destination_xfmode_operand): Delete.
20277         * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
20278         * config/ia64/ia64.md (*movxf_internal): Use general_operand
20279         and destination_operand.
20281 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
20283         * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
20284         (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
20286 2004-07-24  Alexander Kabaev  <kan@freebsd.org>
20287             Zack Weinberg  <zack@codesourcery.com
20289         PR 16684
20290         * c-decl.c (diagnose_mismatched_decls): Don't issue a
20291         redundant-declaration warning the first time a builtin is
20292         declared explicitly.
20294 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20296         * tree.h (staticp): Change return type to bool.
20298 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20300         * c-common.c (c_staticp): Last episode of the staticp saga.
20302 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20304         * c-common.h (c_staticp): Change return type from int to bool.
20305         * tree.c (staticp): Likewise.
20306         * langhooks.h (staticp): Likewise.
20308 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20310         * langhooks-def.h (lhd_staticp): Change return type from int to
20311         bool in prototype to match definition.
20313 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20315         * system.h (bool, true, false): Don't redefine as preprocessor macros
20316         in C++.
20318 2004-07-24  Roger Sayle  <roger@eyesopen.com>
20320         * expmed.c (init_expmed): A signed modulus by a power of two is
20321         considered cheap if its less than or equal to four instructions.
20323 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20325         * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
20326         GGC_CNEWVAR): New macros.
20328 2004-07-25  Bernardo Innocenti  <bernie@develer.com>
20330         * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
20331         lists.
20332         * c-decl.c: Likewise.
20333         * c-format.c: Likewise.
20334         * c-lex.c: Likewise.
20335         * c-opts.c: Likewise.
20336         * c-pragma.c: Likewise.
20337         * c-typeck.c: Likewise.
20338         * gencheck.c: Likewise.
20339         * genconditions.c: Likewise.
20340         * genconfig.c: Likewise.
20341         * genflags.c: Likewise.
20342         * gengtype.c: Likewise.
20343         * gensupport.c: Likewise.
20344         * ggc-none.c: Likewise.
20345         * langhooks.c: Likewise.
20346         * statistics.h: Likewise.
20347         * stub-objc.c: Likewise.
20348         * java/decl.c: Likewise.
20350 2004-07-24  Roman Zippel  <zippel@linux-m68k.org>
20352         * config/m68k/m68k.c (output_scc_di): Fix coding style.
20353         (symbolic_operand): Fix prototype.
20354         * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
20355         * config/m68k/m68k.md: Add constants for registers a0 and sp and
20356         use them, change from the "{...}" syntax to the simpler {...}
20357         syntax.
20358         (*cfv4_extendqisi2): Fix destination predicate.
20359         * config/m68k/m68k-protos.h: Remove various declarations also
20360         generated via PREDICATE_CODES.
20362 2004-07-23  Mike Stump  <mrs@apple.com>
20364         * c-typeck.c (convert_for_assignment): Tightened up pointer
20365         converstions that differ in signedness.
20367 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
20369         * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
20371 2004-07-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20373         * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
20374         * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
20376         * gimplify.c (gimplify_compound_lval): Check for no handled
20377         operations, rather than checking for explicit list of nodes.
20378         (is_gimple_addr_expr_arg_or_indirect): New function.
20379         (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
20380         redundant setting of TREE_INVARIANT.
20381         (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
20382         * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
20384 2004-07-23  Diego Novillo  <dnovillo@redhat.com>
20386         PR tree-optimization/16688
20387         PR tree-optimization/16689
20388         * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
20389         unnecessary initialization of 'tag'.
20390         (get_tmt_for): Check that the new type tag has the same alias
20391         set as the pointed-to type.
20392         (group_aliases): Only regular variables need to be removed
20393         from the alias set of a name tag.
20394         * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
20395         propagation if the two types are not compatible.
20396         (merge_alias_info): Rename from replace_ssa_names_ann.
20397         Add more checking.
20398         (replace_exp_1): If both arguments are SSA_NAMEs, check that
20399         the propagation can be done.
20400         Only call merge_alias_info on pointers.
20401         (propagate_value): Likewise.
20402         * tree-ssa-copyrename.c: Include langhooks.h.
20403         (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
20404         to do the merging.
20405         Do not coalesce variables with incompatible types.
20406         (rename_ssa_copies): Call replace_ssa_name_symbol.
20407         * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
20408         the same type as the underlying _DECL.
20409         * tree-ssanames.c (replace_ssa_name_symbol): New function.
20410         * tree.h (replace_ssa_name_symbol): Declare.
20412 2004-07-23  Richard Henderson  <rth@redhat.com>
20414         PR c++/16277
20415         * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
20416         unshare it properly.
20417         (gimplify_modify_expr_rhs): Push assignment from a conditional into
20418         the conditional for all non-register types.
20420 2004-07-23  Richard Henderson  <rth@redhat.com>
20422         * expr.c (expand_expr_real_1): Don't handle non-local variables.
20423         * expr.h (fix_lexical_addr): Remove.
20424         * function.c (NEED_SEPARATE_AP): Remove.
20425         (fix_lexical_addr): Remove.
20426         * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
20427         not null decl_function_context.
20428         (create_alias_vars): Likewise.
20429         * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
20430         (simple_goto_p): Likewise.
20431         * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
20432         * tree-ssa-ccp.c (get_default_value): Likewise.
20433         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
20434         * tree.c (needs_to_live_in_memory): Likewise.
20435         * tree-flow-inline.h (may_be_aliased): Move...
20436         * tree-ssa-alias.c (may_be_aliased): ... here.  Enhance check for
20437         when TREE_STATIC variables may be addressable.
20439 2004-07-24  Jakub Jelinek  <jakub@redhat.com>
20441         * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
20443 2004-07-23  Zack Weinberg  <zack@codesourcery.com>
20445         * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
20446         bitmap contents if GENERATOR_FILE is defined.
20447         * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
20448         ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
20450 2004-07-23  Joseph S. Myers  <jsm@polyomino.org.uk>
20452         * c-decl.c (start_function): Form composite type of function types
20453         rather than copying type from previous prototype declaration.
20455 2004-07-23  Janis Johnson  <janis187@us.ibm.com>
20457         * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
20458         the const qualifier for the second argument in the C++ functions.
20460         * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
20461         specific pointer types.
20463         * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
20464         vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
20465         for vector bool and/or vector pixel, add C++ and C missing support.
20466         (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
20467         vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
20468         vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
20469         vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
20470         vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
20471         missing C++ and C support for vector bool and/or vector pixel.
20472         (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
20473         vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
20474         vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
20475         vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
20476         vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
20477         C++ and C types used for vector bool and/or vector pixel.
20478         (vec_st, vec_stl): Add C++ support for vector pixel.
20479         (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
20480         (vec_all_ne): Add C++ support for vector pixel.
20482         * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
20483         (vec_vmulesb): Add missing C++ function.
20484         (vec_perm): Fix type of third argument in C++ function.
20485         (vec_vsum4shs): Fix C++ function name.
20486         (vec_any_ge): Remove C++ functions for unsupported arg combinations.
20487         (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
20488         argument passed to the error handler in C macro.
20489         (vec_nmsub): Remove extra parens around argument names in C macro.
20490         (vec_packpx): Add missing parens in C macro.
20492 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
20494         * machmode.def: Remove vector modes.
20495         * config/alpha/alpha-modes.def: Add supported vector modes.
20496         * config/arm/arm-modes.def: Likewise.
20497         * config/frv/frv-modes.def: Likewise.
20498         * config/i386/i386-modes.def: Likewise.
20499         * config/rs6000/rs6000-modes.def: Likewise.
20500         * config/sh/sh-modes.def: Likewise.
20502 2004-07-23  Matthias Klose  <doko@debian.org>
20504         * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
20505         * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
20506         * config.h: Regenerate.
20507         * configure: Likewise.
20509 2004-07-22  Mark Mitchell  <mark@codesourcery.com>
20511         * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
20512         generated SYMBOL_REFs for labels.
20513         * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
20514         Change prototype.
20515         (machopic_stub_name): Remove.
20516         (machopic_indirection_name): New function.
20517         (machopic_mcount_stub_name): Likewise.
20518         (machopic_classify_name): Remove.
20519         (machopic_function_base_sym): New function.
20520         (machpoic_classify_symbol): Likewise.
20521         (machopic_classify_ident): Remove.
20522         (machopic_define_ident): Likewise.
20523         (machopic_define_name): Likewise.
20524         (machopic_name_defined_p): Likewise.
20525         (machopic_ident_defined_p): Likewise.
20526         (darwin_strip_name_encoding): Likewise.
20527         (machopic_define_symbol): New function.
20528         * config/darwin.c (hashtab.h): Include.
20529         (machopic_defined_list): Remove.
20530         (machopic_classify_ident): Likewise.
20531         (machopic_classify_name): Likewise.
20532         (machopic_ident_defined_p): Likewise.
20533         (machopic_define_ident): Likewise.
20534         (machopic_define_name): Likewise.
20535         (machopic_symbol_defined_p): New function.
20536         (machopic_classify_symbol): Likewise.
20537         (machopic_data_defined_p): Use machopic_classify_symbol.
20538         (machopic_define_symbol): New function.
20539         (machopic_function_base_sym): New function.
20540         (machopic_non_lazy_pointers): Remove.
20541         (machopic_non_lazy_ptr_name): Likewise.
20542         (machopic_stubs): Likewise.
20543         (machopic_stub_name): Likewise.
20544         (NON_LAZY_POINTER_SUFFIX): New macro.
20545         (STUB_SUFFIX): Likewise.
20546         (machopic_indirection): New structure.
20547         (machopic_indirections): New variable.
20548         (machopic_indirection_hash): New function.
20549         (machopic_indirection_eq): Likewise.
20550         (machopic_indirection_name): Likewise.
20551         (machopic_mcount_stub_name): New function.
20552         (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
20553         hash table.
20554         (machopic_indirect_data_reference): Rework to use new functions.
20555         (machopic_indirect_call_target): Likewise.
20556         (machopic_legitimize_pic_address): Likewise.
20557         (machopic_output_indirection): New function.
20558         (machopic_finish): Use it.
20559         (machopic_operand_p): Rework to use new functions.
20560         (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
20561         (darwin_strip_name_encoding): Remove.
20562         (update_non_lazy_ptrs): Remove.
20563         (update_stubs): Likewise.
20564         (darwin_non_lazy_pcrel): Use new functions.
20565         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20566         (ASM_OUTPUT_LABELREF): Likewise.
20567         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
20568         (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
20569         (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
20570         (TARGET_STRIP_NAME_ENCODING): Do not use
20571         darwin_strip_name_encoding.
20572         (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
20573         darwin_strip_name_encoding.
20574         * config/i386/darwin.h (FUNCTION_PROFILER): Use
20575         machopic_mcount_stub_name.
20576         * config/i386/i386.c (x86_output_mi_thunk): Use
20577         machopic_indirection_name, not machopic_stub_name.
20578         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
20579         machopic_function_base_sym.
20580         (print_operand): Use machopic_classify_symbol.
20581         (rs6000_emit_prologue): Use machopic_function_base_sym.
20582         (output_profile_hook): Do not use machopic_stub_name.
20583         (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
20585 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20587         PR c/7284
20588         * fold-const.c (extract_muldiv_1): Do not treat signed left shift
20589         as multiplication.
20591 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20593         * doc/implement-c.texi: New file.
20594         * doc/extend.texi (C Implementation): Move to there.
20595         * doc/gcc.texi: Include implement-c.texi.
20596         * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
20598 2004-07-22  Jason Merrill  <jason@redhat.com>
20600         * integrate.c (copy_decl_for_inlining): Remove invisible reference
20601         handling.
20602         * tree-inline.c (setup_one_parameter): Likewise.
20604 2004-07-22  Brian Booth  <bbooth@redhat.com>
20606         * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
20607         (substitute_and_fold): Propigate into VUSE operands when possible.
20608         (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
20609         (cp_lattice_meet): Handle merging of latticevalues when
20610         UNKNOWN_VAL is present.
20611         (visit_stmt): Visit assignments with V_MUST_DEFs.
20612         (visit_assignment): Gather ccp information for V_MUST_DEF operands.
20613         (ccp_fold): Deal with RHS' that are constant and virtual.
20614         (evaluate_stmt): Handle UNKNOWN_VAL likely values.
20615         (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
20616         (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
20617         V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
20618         computing immediate uses.
20619         (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
20620         transition.
20621         (replace_vuse_in): New function.
20622         (likely_value): Add check of vuse operands.
20623         (get_default_value): Set the default value of virtually defined
20624         variables to UKNOWN_VAL instead of VARYING.
20626 2004-07-22  Richard Henderson  <rth@redhat.com>
20628         * expr.c (emit_push_insn): Don't use set_mem_attributes.
20630 2004-07-22  Richard Henderson  <rth@redhat.com>
20632         * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
20633         variables due to conditional compilation.
20635 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
20637         * tree-into-ssa.c (set_livein_block): Fix typo in comment.
20638         (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
20639         Release SSA names that have been re-renamed.
20640         * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
20641         variable.
20642         * tree-ssa-alias.c (init_alias_info): If aliases have been
20643         computed before, clear existing alias information.
20644         (create_name_tags): Do no fixup PT_ANYTHING pointers.
20645         If the new name tag for a pointer is different than the one it
20646         had before, mark the old tag for renaming.
20647         (replace_may_alias): New function.
20648         (group_aliases): Call it.
20649         (setup_pointers_and_addressables): Always call get_tmt_for.
20650         (maybe_create_global_var): Don't create .GLOBAL_VAR more than
20651         once.
20652         (set_pt_anything): New local function.
20653         (set_pt_malloc): New local function.
20654         (merge_pointed_to_info): Don't merge pointed-to variables from
20655         the original pointer if the destination is pointing to an
20656         unknown location.
20657         (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
20658         (add_pointed_to_var): Do not add a variable to the points-to
20659         set if the pointer is already pointing to anywhere.
20660         (collect_points_to_info_r): If the defining statement is a PHI
20661         node, only merge pointed-to information if the argument has
20662         already been visited.
20663         (get_tmt_for): Only create a new tag if the pointer didn't
20664         have one already.
20665         (dump_alias_info): Emit more information.
20666         (dump_points_to_info_for): Likewise.
20667         * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
20668         try to get the annotation of an SSA_NAME.
20669         * tree-ssa-operands.c (add_stmt_operand): Only check for empty
20670         alias sets when checking is enabled.
20671         * tree-ssa-pre.c (need_eh_cleanup): New local variable.
20672         (eliminate): Mark basic blocks that will need
20673         EH information cleaned up.
20674         (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
20675         predecessor.
20676         Initialize need_eh_cleanup.
20677         (fini_pre): Call tree_purge_all_dead_eh_edges and
20678         cleanup_tree_cfg if needed.
20679         Free need_eh_cleanup.
20680         * tree-ssa.c (verify_ssa_name): New function.
20681         (verify_def): Call it.
20682         Re-arrange to avoid printing too many error messages.
20683         (verify_use): Likewise.
20684         (verify_phi_args): Likewise.
20685         (verify_flow_insensitive_alias_info): New function.
20686         (verify_flow_sensitive_alias_info): New function.
20687         (verify_alias_info): New function.
20688         (verify_ssa): Call verify_alias_info.
20689         Clear TREE_VISITED on all the SSA_NAMEs before scanning the
20690         program.
20691         Re-arrange to avoid printing too many error messages.
20692         * tree-ssanames.c (make_ssa_name): Clear
20693         SSA_NAME_IN_FREE_LIST.
20694         (release_ssa_name): Never release a default definition.
20695         (release_defs): New function.
20696         * tree.h: Declare it.
20697         * tree-ssa-dce.c (remove_dead_stmt): Call it.
20699 2004-07-22  Diego Novillo  <dnovillo@redhat.com>
20701         * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
20702         If true, do a depth-first search.  Do a breadht-first search,
20703         otherwise.
20704         (walk_use_def_chains): Add new argument IS_DFS.
20705         Update all users.
20706         * tree-flow.h (walk_use_def_chains): Update prototype.
20708 2004-07-22  Hans-Peter Nilsson  <hp@axis.com>
20710         * config/cris/cris.md: Tweak formatting.
20711         (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
20712         (mover2side, moverside, movemside, movei, op3, andu): Replace
20713         live define_peephole:s with define_peephole2 near-equivalents.
20714         Delete the rest.
20715         ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap".  Match all
20716         word-size modes.
20717         ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
20718         Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
20719         "*mov_sidesi_mem" respectively.
20721 2004-07-22  Paolo Bonzini  <bonzini@gnu.org>
20723         * tree-cfg.c (gimplify_val): Move from tree-complex.c.
20724         (gimplify_build1): Move from tree-complex.c do_unop.
20725         (gimplify_build2): Move from tree-complex.c do_binop.
20726         (gimplify_build3): New.
20727         * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
20728         Adjust throughout to call the functions above.
20729         * tree-flow.h: Declare the functions above.
20730         * tree-nested.c (gimplify_val): Rename to...
20731         (tsi_gimplify_val): ... this.
20733         * Makefile.in (tree_complex.o): Update dependencies.
20734         (stor-layout.o): Depend on regs.h.
20735         * c-common.c (handle_vector_size_attribute): Update for
20736         vector types without corresponding vector modes.
20737         * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
20738         a corresponding vector mode is not available.
20739         * print-tree.c (print_node): Print nunits for vector types
20740         * regclass.c (have_regs_of_mode): New.
20741         (init_reg_sets_1): Initialize it and use it instead
20742         of allocatable_regs_of_mode.
20743         * regs.h (have_regs_of_mode): Declare it.
20744         * stor-layout.c (layout_type): Pick a mode for vector types.
20745         * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
20746         build_replicated_const, do_unop, do_binop, do_plus_minus,
20747         do_negate, expand_vector_piecewise, expand_vector_parallel,
20748         expand_vector_addition, expand_vector_operations_1,
20749         expand_vector_operations, tree_lower_operations,
20750         pass_lower_vector_ssa, pass_pre_expand): New.
20751         (expand_complex_operations, pass_lower_complex): Remove.
20752         * tree-optimize.c (init_tree_optimization_passes): Adjust
20753         pass ordering for changes in tree-complex.c.
20754         * tree-pass.h: Declare new passes.
20755         * tree.c (finish_vector_type): Remove.
20756         (make_vector_type): New.
20757         (build_vector_type_for_mode, build_vector_type): Rewritten.
20758         * tree.def (VECTOR_TYPE): Document where the number of
20759         subparts is stored.
20760         * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
20761         (make_vector): Remove declaration.
20763 2004-07-21  Richard Henderson  <rth@redhat.com>
20765         * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
20766         TREE_THIS_VOLATILE, may_aliases, or optimization level.
20767         (remove_useless_vars): Dump debugging info.
20768         (expand_used_vars): Move ...
20769         * cfgexpand.c (expand_used_vars): ... here.  Make static.
20770         * tree-flow-inline.h (set_is_used): New.
20771         (set_default_def): Use get_var_ann.
20772         * tree-flow.h: Update decls.
20773         * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
20774         (create_ssa_var_map): Use it.
20775         * tree-ssa.c (set_is_used): Remove.
20777 2004-07-22  Ben Elliston  <bje@au.ibm.com>
20779         * gdbinit.in: Set a breakpoint on internal_error.
20781 2004-07-21  Richard Henderson  <rth@redhat.com>
20783         * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
20784         to create a new basic block.
20786 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20788         PR c/15052
20789         * c-decl.c (grokdeclarator): Only pedwarn for qualified void
20790         return type on function definitions.  Move other warnings for
20791         qualified return type to -Wreturn-type.  Do not condition any such
20792         warnings on -pedantic.  Update comments.
20793         (start_function): Only copy function type from previous prototype
20794         declaration if return types are compatible.
20795         * c-typeck.c (function_types_compatible_p): Don't condition
20796         warning for incompatibility of volatile qualifiers on the return
20797         type on -pedantic.  Update comment.
20798         * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
20800 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20802         * c-typeck.c (set_init_index): Require designator to be of integer
20803         type.
20805 2004-07-22  Joseph S. Myers  <jsm@polyomino.org.uk>
20807         PR c/11250
20808         * c-parse.in (init): Change to exprtype.
20809         (primary): Set original_code for STRING to STRING_CST.
20810         Call maybe_warn_string_init for compound literals.
20811         (initdcl, notype_initdcl): Call maybe_warn_string_init.
20812         (initval): Update.
20813         * c-tree.h (maybe_warn_string_init): New.
20814         (pop_init_level, process_init_element): Use struct c_expr.
20815         (struct c_expr): Update comment.
20816         * c-typeck.c (maybe_warn_string_init): New function.
20817         (digest_init): Call it.  Additional parameter strict_string.  All
20818         callers changed.
20819         (output_init_element): Likewise.
20820         (struct constructor_stack): Use struct c_expr for
20821         replacement_value.
20822         (really_start_incremental_init, push_init_level): Update.
20823         (pop_init_level): Update.  Return struct c_expr.
20824         (process_init_level): Update.  Take struct c_expr argument.
20826 2004-07-21  David S. Miller  <davem@nuts.davemloft.net>
20828         * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
20829         commit.
20831 2004-07-21  Eric Christopher  <echristo@redhat.com>
20833         * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
20834         removal.
20835         * c-decl.c (pop_scope): Ditto.
20836         * calls.c (expand_call): Remove call to current_nesting_level,
20837         update comment accordingly. Remove calls to expand_start_target_temps
20838         and expand_end_target_temps.
20839         * cfgexpand.c (construct_init_block): Remove call to
20840         expand_start_bindings_and_block.
20841         (construct_exit_block): Remove call to expand_end_bindings.
20842         * expr.c (safe_from_p): Remove BIND_EXPR handling.
20843         (expand_expr_real_1): Ditto. Fix formatting.
20844         (expand_vars): Delete.
20845         * stmt.c (POPSTACK): Remove block_stack.
20846         (stmt_status): Remove x_block_stack.
20847         (block_stack): Delete.
20848         (expand_start_bindings_and_block): Ditto.
20849         (expand_start_target_temps): Ditto.
20850         (expand_end_target_temps): Ditto.
20851         (current_nesting_level): Ditto.
20852         (warn_about_unused_variables): Ditto.
20853         (expand_end_bindings): Ditto.
20854         * tree.h: Remove declarations for above.
20856 2004-07-21  Steven Bosscher  <stevenb@suse.de>
20858         * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
20859         * rtl.c (note_insn_name): Likewise.
20860         * print-rtl.c (print_rtx): Don't print it.
20861         * cfgrtl.h (can_delete_note_p): Don't handle it.
20862         (rtl_delete_block): Likewise.
20863         * passes.c (rest_of_handle_guess_branch_prob): Remove.
20864         (rest_of_compilation): Don't call it.
20865         * predict.c (process_note_predictions, process_note_prediction,
20866         note_prediction_to_br_prob): Remove.
20867         * basic-block.c (note_prediction_to_br_prob): Remove prototype.
20868         * stmt.c (return_prediction): Remove.
20869         (expand_value_return): Don't call it.  Don't add prediction
20870         notes for return statements.
20872 2004-07-21  Josef Zlomek  <zlomekj@suse.cz>
20874         * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
20875         once.
20877 2004-07-21  Paolo Bonzini  <bonzini@gnu.org>
20879         * c-common.c (vector_types_convertible_p): Use vector types'
20880         TYPE_SIZE and TREE_TYPE instead of their mode.
20881         * convert.c (convert_to_integer): Likewise.
20882         (convert_to_vector): Likewise.
20883         * fold-const.c (fold_convert): Likewise.
20884         * varasm.c (output_constant): Likewise.
20885         * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
20886         Allow a VECTOR_TYPE initializer to be made of several vectors.
20887         For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
20888         of cleared and need_to_clear, and use fold_convert.
20889         * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
20890         integer vectors.
20892 2004-07-20  Richard Henderson  <rth@redhat.com>
20894         * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
20895         (expand_gimple_basic_block): out from here.  Renamed from expand_block.
20897 2004-07-20  David S. Miller  <davem@nuts.davemloft.net>
20899         * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
20900         enormous cost if not TARGET_HARD_MUL.
20902 2004-07-20  Andrew Pinski  <apinski@apple.com>
20904         PR target/16557
20905         * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
20906         (ASM_SPEC): here.
20908 2004-07-21  Paul brook  <paul@codesourcery.com>
20910         * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
20912 2004-07-20  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20914         * fold-const.c (operand_equal_p): Temporarily support NULL args.
20915         (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
20916         (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
20918 2004-07-20  Zack Weinberg  <zack@codesourcery.com>
20920         * rtl.h (plus_constant): Delete.
20921         (plus_constant_wide): Rename to plus_constant.
20922         (plus_constant_for_output_wide): Delete vestigial prototype.
20923         (GEN_INT): Remove unnecessary cast.
20924         * tree.h (build_int_2, size_int_type): Delete.
20925         (build_int_2_wide): Rename to build_int_2.
20926         (size_int_wide): Rename to size_int_kind.
20927         (size_int_type_wide): Rename to size_int_type.
20928         (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
20929         Remove unnecessary cast.
20930         * tree.c (build_int_2_wide): Rename build_int_2; update comment.
20931         * explow.c (plus_constant_wide): Rename plus_constant; update comment.
20932         * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
20933         (size_int_type_wide): Rename size_int_type.
20934         (int_const_binop): Use size_int_type.
20935         * c-lex.c (interpret_integer): Use build_int_2.
20936         * final.c (split_double): Remove unnecessary casts.
20937         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
20939 2004-07-20  Richard Henderson  <rth@redhat.com>
20941         * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
20942         (gimplify_compound_lval): Use is_gimple_tmp_reg.
20943         * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
20944         (is_gimple_tmp_reg): New.
20945         * tree-gimple.h (is_gimple_tmp_reg): Declare.
20947 2004-07-20  Richard Henderson  <rth@redhat.com>
20949         * tree-pretty-print.c (dump_generic_node): Dump
20950         CALL_EXPR_HAS_RETURN_SLOT_ADDR.
20952 2004-07-20  Frank Ch. Eigler  <fche@redhat.com>
20954         * tree-mudflap.c (mf_set_options_fndecl): New tree.
20955         (mudflap_init): Set it.
20956         (mudflap_register_call): Remove __mf_init call.
20957         (mudflap_finish_file): Emit call to __mf_init here.  Emit a call to
20958         to pass "-ignore-reads" option to libmudflap if needed.
20960 2004-07-20  John David Anglin  <dava.anglin@nrc-cnrc.gc.ca>
20962         PR c++/14607
20963         * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
20964         (MAKE_DECL_ONE_ONLY): Undefine.
20965         * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
20966         readonly_data, one_only_data_section, forget_section): New prototypes.
20967         * pa.c (pa_init_machine_status, som_text_section_asm_op): New
20968         functions.
20969         (pa_select_section): Add one-only (COMDAT) support.
20970         * pa.h (struct machine_function): Define.
20971         * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
20972         (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
20973         (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
20974         ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
20975         ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
20976         (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
20977         (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
20978         (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
20979         ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
20980         for EXTRA_SECTION_FUNCTIONS.
20981         * doc/install.texi: Update binutils requirements.
20983 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
20985         * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
20986         VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
20987         VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
20988         size_t.
20989         (struct VEC): Use unsigned for num and alloc.
20990         * vec.c (struct vec_prefix): Likewise.
20991         (vec_o_reserve): Adjust.
20993         * dbxout.c (dbxout_type): Fix printf format.
20995         * tree.h (binfo_member): Remove.
20996         * tree.c (binfo_member): Remove.
20998 2004-07-20  Nathan Sidwell  <nathan@codesourcery.com>
21000         * tree.h: Include vec.h
21001         (DEF_VEC_P(tree)): New type.
21002         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
21003         (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
21004         (BINFO_LANG_SLOT): Remove.
21005         (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
21006         (struct tree_binfo): Turn base_binfos into a trailing
21007         VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
21008         (binfo_lang_slots): Remove.
21009         * tree.c (binfo_lang_slots): Remove.
21010         (make_tree_binfo_stat): Take a base binfo count, not a
21011         lang slot count.  Adjust.
21012         * Makefile.in (TREE_H): Add vec.h
21013         * alias.c (record_component_aliases): Adjust BINFO access.
21014         * dbxout.c (dbxout_type): Likewise.
21015         * dwarf2out.c (gen_member_die): Likewise.
21016         * sdbout.c (sdbout_one_type): Likewise.
21017         * tree-dump.c (deque_and_dump): Likewise.
21018         * config/i386/i386.c (classify_argument,
21019         contains_128bit_aligned_vector_p): Likewise.
21020         * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
21021         * doc/c-tree.texi (Classes): Update BINFO documentation.
21023 2004-07-20  Steven Bosscher  <stevenb@suse.de>
21025         * c-common.h (check_case_value): Remove prototype.
21026         (c_add_case_label): Adjust prototype.
21027         * c-common.c (check_case_value): Make static.
21028         (check_case_bounds): New function.
21029         (c_add_case_label): Use it.  Take new argument orig_type.
21030         * c-typeck.c (struct c_switch): New orig_type field.
21031         (c_start_case): Set it.
21032         (do_case): Pass it to c_add_case_label.
21033         * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
21034         cases from here.  Add the labels in reverse order.
21035         * stmt.c (struct case_node): Adjust comment.  Remove balance field.
21036         (add_case_node): Return nothing, don't check for duplicate cases.
21037         Insert new case nodes in a list, not in an AVL tree.
21038         (expand_end_case_type): Don't turn a case tree into a case list.
21039         (case_tree2list): Remove.
21040         * tree.h (add_case_node): Adjust prototype.
21042 2004-07-19  Paolo Bonzini  <bonzini@gnu.org>
21044         * genattr.c (struct range, struct function_unit,
21045         write_units, extend_range, init_range): Remove them.
21046         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21047         Output "#define INSN_SCHEDULING" here.
21048         * genattrtab.c (struct range, struct function_unit_op,
21049         struct function_unit, struct dimension, enum operator,
21050         operate_exp, expand_units, simplify_knowing,
21051         encode_units_mask, simplify_by_exploding,
21052         find_and_mark_used_attributes, unmark_used_attributes,
21053         add_values_to_cover, increment_current_value,
21054         test_for_current_value, simplify_with_current_value,
21055         simplify_with_current_value_aux, gen_unit,
21056         write_unit_name, write_function_unit_info,
21057         write_complex_function, write_toplevel_expr,
21058         find_single_value, extend_range): Remove.
21059         (write_attr_get): Do not handle common_av->value
21060         being an FFS.
21061         (struct attr_desc): Remove func_units_p and blockage_p.
21062         (write_attr_valueq): Do not handle them.
21063         (find_attr): Do not clear them.
21064         (make_internal_attr): Do not initialize them.
21065         (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
21066         * sched-vis.c (init_target_units, insn_print_units,
21067         init_block_visualization, print_block_visualization,
21068         visualize_scheduled_insns, visualize_no_unit,
21069         visualize_stall_cycles, visualize_alloc,
21070         visualize_free, target_units, get_visual_tbl_length,
21071         MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
21072         visual_tbl_line_length, visual_tbl, n_vis_no_unit,
21073         MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
21074         * haifa-sched.c (blockage_range, clear_units,
21075         schedule_unit, actual_hazard, potential_hazard,
21076         insn_unit, unit_last_insn, unit_tick,
21077         actual_hazard_this_instance, potential_hazard,
21078         schedule_unit, max_insn_queue_index_value): Remove.
21079         (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
21080         max_insn_queue_index.
21081         * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
21082         * doc/md.texi (Processor pipeline description): Remove
21083         references to old pipeline descriptions.
21084         (Automaton pipeline description): Merge with the above.
21085         (Old pipeline description, Comparison of the two descriptions):
21086         Remove.
21088         * bt-load.c (migrate_btr_def): Remove references to
21089         use_pipeline_interface.
21090         * haifa-sched.c (insn_cost, schedule_insn,
21091         schedule_block, advance_one_cycle, sched_init,
21092         queue_to_ready, sched_finish): Likewise.
21093         * modulo-sched.c (sms_schedule, advance_one_cycle,
21094         ps_has_conflicts): Likewise.
21095         * sched-rgn.c (init_ready): Likewise.
21096         (debug_dependencies): Likewise, and remove an "if (1)".
21097         * target.h (use_dfa_pipeline_interface): Remove.
21098         * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21099         * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21100         * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21101         * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21102         * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21103         * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21104         * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21105         * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21106         * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21107         * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21108         * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21109         * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21110         * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21111         * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21112         * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21113         * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21114         * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21115         * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21116         * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
21118 2004-07-19  Roger Sayle  <roger@eyesopen.com>
21120         * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
21122 2004-07-19  Jeff Law  <law@redhat.com>
21124         * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
21125         (get_eq_expr_value): Use it.  Simplify slightly.
21127 2004-07-19  Maciej W. Rozycki  <macro@linux-mips.org>
21129         * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
21130         (umulsidi3_32bit_r4000): Likewise.
21132 2004-07-19  Nathan Sidwell  <nathan@codesourcery.com>
21134         * vec.h: Propagate location information properly.
21135         (VEC_T_iterate): Add result pointer parameter.
21136         (VEC_T_space): New.
21137         (VEC_T_reserve): Use it.
21139 2004-07-19  Daniel Jacobowitz  <dan@debian.org>
21141         * Makefile.in (c-format.o): Depend on c-format.h.
21142         * c-format.h: New file.
21143         (struct format_char_info): Add CHAIN member.
21144         * c-format.c: Move some types and constants to c-format.h.
21145         (format_type_error): Set to -1.
21146         (struct function_format_info): Use an int for format_type.
21147         (decode_format_type): Return an int.  Return format_type_error
21148         on error.
21149         (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
21150         (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
21151         (scan_char_table, time_char_table, monetary_char_table): Initialize
21152         CHAIN to NULL.
21153         (n_format_types): New variable.
21154         (check_format_info_main): Handle CHAIN in format_char_info.
21155         (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
21156         TARGET_N_FORMAT_TYPES.
21157         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
21158         (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
21159         * config/sol2-c.c: New file.
21160         * config/t-sol2: New file.
21161         * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
21162         * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
21163         TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
21165         * doc/extend.texi (Target Format Checks): New section.
21166         (Function Attributes): Mention it.
21167         * doc/invoke.texi: Mention target format checks.
21168         * doc/sourcebuild.texi: Mention target format checks.
21169         * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
21170         TARGET_FORMAT_TYPES.
21172 2004-07-19  Andreas Krebbel  <krebbel1@de.ibm.com>
21174         * config/s390/s390-protos.h (s390_return_address_offset): Prototype
21175         added.
21176         * config/s390/s390.c (regclass_map initializer): Register 35 added to
21177         ADDR_REGS.
21178         (load_multiple_operation, store_multiple_operation): Removed
21179         pointless sanity check.
21180         (s390_decompose_address): Added check for return_address_pointer_rtx.
21181         (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
21182         (s390_return_address_offset): New function.
21183         * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
21184         (FRAME_REGNO_P): Added check for register 35.
21185         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
21186         REG_ALLOC_ORDER): Appended entry for register 35.
21187         (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
21188         (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
21189         (RETURN_ADDRESS_POINTER_REGNUM): New macro.
21190         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
21191         is eliminable using stack pointer or hard frame pointer.
21192         (REGISTER_NAMES): Added name for register 35.
21193         * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
21194         pointless sanity check.
21196 2004-07-19  Roger Sayle  <roger@eyesopen.com>
21198         * fold-const.c (tree_expr_nonzero_p): Add function prototype.
21199         (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
21200         fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
21201         (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
21202         of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
21203         (fold_relational_const): Tidy up handling of floating point
21204         comparisons by calling real_compare.  Remove tree_expr_nonzero_p
21205         transformation; fold_relational_const assumes constant operands.
21207 2004-07-19  Gabriel Dos Reis  <gdr@integrable-solution.net>
21209         * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
21210         directory.
21212 2004-07-19  Joseph S. Myers  <jsm@polyomino.org.uk>
21214         * c-tree.h (struct c_expr): Define.
21215         (C_SET_EXP_ORIGINAL_CODE): Remove.
21216         (parser_build_binary_op, build_compound_expr): Update prototypes.
21217         * c-parse.in (%union): Add exprtype.
21218         (FUNC_NAME): Mark as ttype.
21219         (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
21220         exprtype.
21221         (expr): Update.  Define directly in terms of expr_no_commas
21222         instead of using nonnull_exprlist.
21223         (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
21224         offsetof_member_designator, typespec_nonreserved_nonattr, init,
21225         initval, designator, component_declarator,
21226         component_notype_declarator, enumerator, array_declarator,
21227         condition, exexpr, switch_statement, stmt_nocomp, stmt,
21228         nonnull_asm_operands, ivar_declarator, receiver): Update.  Don't
21229         set C_EXP_ORIGINAL_CODE.  Use TREE_NO_WARNING for assignments
21230         where appropriate.
21231         * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
21232         * c-common.c (c_common_truthvalue_conversion): Don't check
21233         C_EXP_ORIGINAL_CODE.
21234         * c-typeck.c (parser_build_binary_op): Use c_expr structures.
21235         Don't use C_EXP_ORIGINAL_CODE.
21236         (default_conversion, default_function_array_conversion): Don't use
21237         C_EXP_ORIGINAL_CODE.  Preserve TREE_NO_WARNING.
21238         (internal_build_compound_expr): Merge into build_compound_expr.
21239         (build_compound_expr): Take two operands instead of a TREE_LIST.
21240         * objc/objc-act.c (get_super_receiver): Update calls to
21241         build_compound_expr.
21243 2004-07-18  Paolo Bonzini  <bonzini@gnu.org>
21245         * config/sh/sh.c (sh_use_dfa_interface): Remove.
21246         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
21247         hook_int_void_1.
21248         * config/sh/sh.md: Extract pipeline descriptions
21249         into separate files.
21250         * config/sh/sh1.md: New file, extracted from sh.md.
21251         * config/sh/sh4.md: New file, extracted from sh.md.
21252         * config/sh/shmedia.md: New file, extracted from sh.md
21253         and rewritten using new-style pipeline description.
21255 2004-07-18  Zack Weinberg  <zack@codesourcery.com>
21257         * config/pa/pa.md: Delete the two remaining define_peephole
21258         patterns.
21260 2004-07-18  Steven Bosscher  <stevenb@suse.de>
21261             Joseph S. Myers  <jsm@polyomino.org.uk>
21263         * c-common.c (c_common_truthvalue_conversion): Don't warn if
21264         TREE_NO_WARNING is set.
21266 2004-07-18  Roger Sayle  <roger@eyesopen.com>
21268         * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
21269         simplify_builtin_strncmp): Delete.
21270         (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
21271         Change argument to accept an arglist instead of an "exp".  Assume
21272         that the return type is always integer_type_node.  Copy missing
21273         transformations from their now obsolete simplify_builtin_*
21274         equivalents.
21275         (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
21276         fold_builtin_strcmp and fold_builtin_strncmp.
21277         (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
21278         and fold_builtin_strncmp instead of simplify_builtin_memcmp,
21279         simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
21281 2004-07-18  Daniel Jacobowitz  <dan@debian.org>
21283         * Makefile.in (tree-alias-common.o): Update dependencies.
21285 2004-07-17  Sebastian Pop  <pop@cri.ensmp.fr>
21287         * cfgloop.c (flow_loop_nested_p): Fix comment.
21289 2004-07-17  Jason Merrill  <jason@redhat.com>
21291         PR c++/16115
21292         * stor-layout.c (relayout_decl): New fn.
21293         * tree.h: Declare it.
21294         (DECL_BY_REFERENCE): New macro.
21296 2004-07-17  Eric Botcazou  <ebotcazou@act-europe.fr>
21298         * libgcc2.c (__enable_execute_stack): New symbol.
21299         * libgcc-std.ver (GCC_3.4.2): New version.  Inherit from GCC_3.4
21300         and declare __enable_execute_stack.
21301         * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
21302         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
21303         * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21304         ENABLE_EXECUTE_STACK.
21305         * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
21306         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21307         * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21308         ENABLE_EXECUTE_STACK.
21309         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21310         * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
21311         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21312         * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
21313         ENABLE_EXECUTE_STACK.
21314         * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21315         * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21316         * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21317         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
21318         * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
21319         on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
21320         (sparc64_initialize_trampoline): Likewise.
21321         * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
21323 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
21325         * langhooks.h (builtin_function): New langhook.
21326         * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
21327         (LANG_HOOKS_INITIALIZER): Update.
21328         * tree.h (builtin_function): Remove.
21329         * doc/tm.texi: Update.
21330         * c-tree.h (builtin_function): Declare.
21331         * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
21332         config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
21333         config/ia64/ia64.c, config/iq2000/iq2000.c,
21334         config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
21335         config/stormy16/stormy16.c: All callers of builtin_function
21336         changed.
21338 2004-07-17  Andrew Pinski  <pinskia@physics.uc.edu>
21340         PR target/16556
21341         * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
21342         Remove white space after the backslash.
21344 2004-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
21346         PR rtl-optimization/16294
21347         * resource.c (return_insn_p): New predicate.
21348         (mark_target_live_regs): Use it.  Special-case return insns.
21349         (init_resource_info): Use it.  Don't scan the epilogue past
21350         a return.
21352 2004-07-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
21354         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
21355         destroy dominance information.
21356         * passes.c (rest_of_handle_loop2):  Free dominance information.
21357         * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
21358         jump threading.
21359         (thread_jumps): Update dominance information and remove unreachable
21360         blocks.
21361         * tree-ssa-phiopt.c (replace_phi_with_stmt):  Update dominance
21362         information and remove the unreachable block.
21364 2004-07-17  Graham Stott  <graham.stott@btinternet.com>
21366         * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
21368 2004-07-17  Toon Moene  <toon@moene.indiv.nluug.nl>
21370         * doc/sourcebuild.texi: Remove libf2c entry.
21372 2004-07-17  Paolo Bonzini  <bonzini@gnu.org>
21374         * config/i386/i386.md (movv16qi_internal): Fix typo.
21376 2004-07-17  Steven Bosscher  <stevenb@suse.de>
21378         * final.c (final_scan_insn): Fix broken commit from previous
21379         patch.
21381 2004-07-17  Joseph S. Myers  <jsm@polyomino.org.uk>
21383         * c-typeck.c (parser_build_binary_op): Condition warnings for
21384         X<=Y<=Z on -Wparentheses instead of -Wextra.
21385         * doc/invoke.texi: Update.  Document that most of -Wparentheses is
21386         supported for C only.
21388 2004-07-17  Steven Bosscher  <stevenb@suse.de>
21390         * cfgcleanup.c (try_simplify_condjump): Don't remove line
21391         notes to avoid unreachable code warnings.
21392         * toplev.c (backend_init): Don't emit line notes for
21393         unreachable code warnings.
21395         * combine.c (distribute_notes): Don't distribute a
21396         REG_VTABLE_REF note.
21397         * final.c (final_scan_insn): Don't handle it.
21398         * rtl.c (reg_note_name): Remove it.
21399         * rtl.h (enum reg_node): Dito.
21401         * emit-rtl.c (force_line_numbers, restore_line_number_status):
21402         Remove.
21403         * rtl.h (force_line_numbers, restore_line_number_status):
21404         Remove prototypes.
21406         * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
21407         * tree-eh.c (using_eh_for_cleanups_p): ...here.  Make static.
21408         (using_eh_for_cleanups): Also moved here.
21410         * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
21411         <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY.  Update calls
21412         to expand_start_case and add_case_node.
21413         * stmt.c (struct nesting): Cleanup unused fields condition_code,
21414         last_unconditional_cleanup, nominal_type, printname, and
21415         line_number_status.
21416         (struct fixup_goto): Remove.
21417         (struct stmt_status): Remove x_goto_fixup_chain field.
21418         (goto_fixup_chain): Remove.
21419         (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
21420         pushcase, pushcase_range): Remove.
21421         (expand_start_bindings_and_block): Don't set unused fields in
21422         the nesting stack.
21423         (expand_start_case, add_case_node): Cleanup unused formal arguments.
21424         (expand_end_case_type): Don't simplify the case-list.  Use emit_jump
21425         instead of emit_jump_if_reachable.
21426         (emit_case_nodes): Likewise.
21427         * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
21428         static.
21429         (update_eh_label): Work around left-over exception handing regions.
21430         * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
21431         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
21432         (pass_cleanup_cfg_post_optimizing): New pass.
21433         (init_tree_optimization_passes): Run the new pass after all
21434         optimizations.
21435         * tree.h (pushcase, pushcase_range): Remove prototypes.
21436         (expand_start_case, add_case_node): Update prototypes.
21438 2004-07-16  Krister Walfridsson  <cato@df.lth.se>
21440         * tree-inline.c (estimate_num_insns_1): Correct increase of count.
21442 2004-07-16  Richard Henderson  <rth@redhat.com>
21444         * builtins.c (std_expand_builtin_va_arg): Remove.
21445         (expand_builtin_va_arg): Remove.
21446         * expr.h: Don't declare them.
21447         * gimplify.c (mark_decls_volatile_r): Remove.
21448         (copy_if_shared_r): Don't call it.
21449         * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
21450         * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
21451         * gimple-low.c (lower_stmt): Likewise.
21452         * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
21453         * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
21454         * tree-ssa-operands.c (get_expr_operands): Likewise.
21455         * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
21456         EXPAND_BUILTIN_VA_ARG.
21457         * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
21458         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
21459         config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
21460         config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
21462 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
21464         * tree-ssa-pre.c (insert_aux): Break out if we hit
21465         a critical edge.
21467 2004-07-16  Richard Henderson  <rth@redhat.com>
21469         * basic-block.h (remove_fake_exit_edges): Declare.
21470         * cfganal.c (remove_fake_predecessors): Rename from
21471         remove_fake_successors; iterate over predecessors.
21472         (remove_fake_exit_edges): New.
21473         * cfgcleanup.c (try_optimize_cfg): Use it.
21474         * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
21475         * predict.c (estimate_probability): Likewise.
21476         (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
21477         * tree-cfg.c (make_edges): Likewise.
21478         * tree-ssa-pre.c (fini_pre): Likewise.
21479         * profile.c (instrument_edges): Don't remove_fake_edges.
21480         (branch_prob): Do it earlier here.
21482 2004-07-16  Richard Henderson  <rth@redhat.com>
21484         * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
21485         switchification wrt CONSTRUCTOR.  Document the reason.
21487 2004-07-16  Frank Ch. Eigler  <fche@redhat.com>
21489         * tree-mudflap.c (mf_file_function_line_tree): Correct typo
21490         that prevented descriptive __mf_check source location strings.
21492 2004-07-16  Richard Henderson  <rth@redhat.com>
21494         * tree-def (WITH_SIZE_EXPR): New.
21495         * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
21496         * expr.c (expand_expr_real_1): Likewise.
21497         * gimplify.c (maybe_with_size_expr): New.
21498         (gimplify_arg, gimplify_modify_expr): Use it.
21499         (gimplify_modify_expr_to_memcpy): Take size parameter.
21500         (gimplify_modify_expr_to_memset): Likewise.
21501         (gimplify_expr): Handle WITH_SIZE_EXPR.
21502         * tree-alias-common.c (find_func_aliases): Likewise.
21503         * tree-eh.c (tree_could_trap_p): Likewise.
21504         (tree_could_throw_p): Likewise.
21505         * tree-gimple.c (is_gimple_lvalue): Likewise.
21506         (get_call_expr_in): Likewise.
21507         * tree-inline.c (estimate_num_insns_1): Likewise.
21508         (expand_calls_inline): Likewise.
21509         * tree-nested.c (convert_call_expr): Likewise.
21510         * tree-pretty-print.c (dump_generic_node): Likewise.
21511         * tree-sra.c (sra_walk_expr): Likewise.
21512         * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
21513         * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
21514         * tree-ssa-operands.c (get_expr_operands): Likewise.
21515         * tree-tailcall.c (find_tail_calls): Likewise.
21517         * calls.c (expand_call): Reset old_stack_allocated after
21518         calling emit_stack_restore.
21520 2004-07-16  Richard Henderson  <rth@redhat.com>
21522         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
21523         lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
21524         * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
21525         * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
21526         copy_res_decl_for_inlining.
21528         * tree-inline.c (declare_return_variable): New modify_dest argument.
21529         Use it as the return value, when possible or manditory.  Handle
21530         TREE_ADDRESSABLE types.
21531         (expand_call_inline): Extract MODIFY_EXPR lhs for call.  Simplify
21532         replacement of CALL_EXPR.
21534 2004-07-16  Richard Henderson  <rth@redhat.com>
21536         * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
21537         * gimple-low.c (expand_var_p): Don't check it.
21538         * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
21539         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
21540         * tree-ssa-operands.c (add_stmt_operand): Likewise.
21541         * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
21542         (find_referenced_vars): Don't call them.
21543         * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
21545 2004-07-16  Richard Henderson  <rth@redhat.com>
21547         * function.c (pass_by_reference): True for all variable sized types.
21549 2004-07-16  Sebastian Pop  <pop@cri.ensmp.fr>
21551         * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
21552         * tree-pretty-print.c: Include tree-chrec.h.
21553         (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
21554         and POLYNOMIAL_CHREC nodes.
21556 2004-07-16  Steve Ellcey  <sje@cup.hp.com>
21558         * builtins.c (expand_builtin_stpcpy): Do not create temporary
21559         reg with VOIDmode.
21561 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
21563         * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
21565 2004-07-16  Andreas Krebbel  <krebbel1@de.ibm.com>
21567         * config/s390/s390.md: Changed every occurence of BASE_REGISTER
21568         to BASE_REGNUM.
21569         * config/s390/s390.c: Likewise.
21570         * config/s390/s390.h: Likewise.
21572 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21574         * config/mips/mips.md (addsi3, adddi3): Remove special handling
21575         of $sp adds.  Remove REGNO checks from mips16 patterns.
21577 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21579         * config/mips/mips.md: Delete outdated comment.
21581 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21583         * config/mips/mips.c (get_float_compare_codes): Delete.
21584         (mips_emit_compare): New function, mostly extracted from
21585         get_float_compare_codes and gen_conditional_branch.
21586         (gen_conditional_branch, gen_conditional_move): Use it.
21588 2004-07-16  Segher Boessenkool  <segher@kernel.crashing.org>
21590         * genautomata.c (add_vect): Speedup by using integers as
21591         bit-vectors for walking through the comb_vect and finding
21592         a match.
21594 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21596         * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
21597         operand is an uns_arith_operand; use subtraction otherwise.
21598         * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
21599         not just arith_operands.
21601 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21603         * config/mips/mips-protos.h (gen_int_relational): Delete.
21604         (mips_emit_scc): Declare.
21605         * config/mips/mips.c (internal_test): Delete.
21606         (sle_operand, sleu_operand): New functions.
21607         (map_test_to_internal_test, gen_int_relational): Delete.
21608         (mips_emit_binary, mips_relational_operand_ok_p)
21609         (mips_emit_int_relational, mips_zero_if_equal)
21610         (mips_emit_scc): New functions.
21611         (gen_conditional_branch): Rework to use mips_emit_int_relational.
21612         * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
21613         sleu_operand.
21614         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
21615         (sltu, sleu): Use mips_emit_scc.
21616         (*sge_[sd]i, *sgeu_[sd]i): New patterns.
21617         (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
21618         (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
21620 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21622         * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
21624 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21626         * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
21627         (*sne_[sd]i): Likewise sne_[sd]i_zero.
21628         (*sgt_[sd]i): ...and sgt_[sd]i.
21629         (*slt_[sd]i): ...and slt_[sd]i.
21630         (*sgtu_[sd]i): ...and sgtu_[sd]i.
21631         (*sltu_[sd]i): ...and sltu_[sd]i.
21632         (*sleu_[sd]i): ...and sleu_[sd]i_const.
21633         Name previously unnamed mips16 patterns.  Formatting fixes.
21635 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21637         * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
21638         (branch_type): Delete.
21639         (gen_conditional_branch, gen_conditional_move)
21640         (mips_gen_conditional_trap): Update after name change.  Get the
21641         comparison mode from cmp_operands[0].
21642         * config/mips/mips.h (cmp_type, branch_type): Delete.
21643         (cmp_operands): Renamed from branch_cmp.
21644         * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
21645         name change.  Don't set branch_type.
21646         (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
21647         mode class of cmp_operands[0] rather than branch_type.  Update after
21648         name change.
21650 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21652         * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
21653         of 0...255 to 0 when inside a SET.
21655 2004-07-16  Richard Sandiford  <rsandifo@redhat.com>
21657         * config/mips/mips.md: Remove mips16 define_peepholes.
21659 2004-07-16  Daniel Berlin  <dberlin@dberlin.org>
21661         * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
21662         (fini_pre): Remove fake edges.
21664 2004-07-15  Richard Henderson  <rth@redhat.com>
21666         * tree-ssa-operands.c (get_expr_operands): Use a switch.  Split out...
21667         (get_indirect_ref_operands, get_call_expr_operands): ... these.
21669 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
21671         * vec.h (VEC_address): New function.
21673 2004-07-14  Jason Merrill  <jason@redhat.com>
21675         PR middle-end/15885
21676         * gimplify.c (gimplify_arg): New fn, split out from...
21677         (gimplify_call_expr): Here.  Special-case BUILT_IN_VA_START.
21679 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
21681         * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
21682         generate code which is generated by pushqi1 now
21683         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
21685 2004-07-15  Roman Zippel  <zippel@linux-m68k.org>
21687         * combine.c (simplify_set): match the mode of the constant 0 with
21688         the tested operand to match the compare behaviour and the
21689         simplify_relational_operation() expectation.
21691 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
21693         * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
21694         ("bordered"): Same.
21696 2004-07-15  Aldy Hernandez  <aldyh@redhat.com>
21698         * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
21699         unconditionally.
21700         * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
21702 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
21704         * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
21705         calls in mips16 code.
21707 2004-07-15  Richard Sandiford  <rsandifo@redhat.com>
21709         * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
21710         the destination of the li as well as for the neg.
21712 2004-07-15  Frank Ch. Eigler  <fche@redhat.com>
21714         g++/15861
21715         * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
21716         * cgraph.h: Update declaration.
21717         * c-decl.c (build_cdtor): Update call with default priority.
21718         * coverage.c (create_coverage): Ditto.
21719         * tree-mudflap.c (mf_init_fndecl): New tree.
21720         (mudflap_init): Set it.
21721         (mudflap_register_call): Arrange to call __mf_init before the first
21722         __mf_register call.
21723         (mudflap_finish_file): Mark the mudflap static initializer as extra
21724         high priority, to beat all C++ static constructors.
21726 2004-07-15  Jeff Law  <law@redhat.com>
21728         * loop.c (check_insn_for_givs): Restore check for code labels that was
21729         accidentally deleted by a recent checkin.
21731 2004-07-15  Nathan Sidwell  <nathan@codesourcery.com>
21733         * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
21734         (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
21736 2004-07-14  Richard Henderson  <rth@redhat.com>
21738         * print-tree.c (print_node): Fix casts last change.
21740 2004-07-15  Paul Brook  <paul@codesourcery.com>
21742         * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
21743         to TARGET_UNWIND_INFO.
21744         * except.c (output_function_exception_table): Ditto.
21745         * except.h: Ditto.
21746         * opts.c (decode_options): Ditto.
21747         * passes.c (rest_of_handle_final): Ditto.
21748         * final.c (final_start_function): Ditto.
21749         (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
21750         target hook.
21751         * targhooks.h (default_unwind_emit): Declare.
21752         * targhooks.c (default_unwind_emit): New function.
21753         * target-def.h: Define and use TARGET_UNWIND_EMIT.
21754         * target.h (struct gcc_target): Add unwind_emit.
21755         * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
21756         * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
21757         Remove IA64_UNWIND_EMIT.
21758         * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
21760 2004-07-14  Richard Henderson  <rth@redhat.com>
21762         * print-tree.c (print_node): Handle SSA_NAME.
21764 2004-07-14  James E Wilson  <wilson@specifixinc.com>
21766         PR target/16325
21767         * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
21768         and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
21770 2004-07-15  Jakub Jelinek  <jakub@redhat.com>
21772         * expr.c (expand_assignment): Reenable bitfield += optimizations.
21773         Use alias set 0 for memory, do proper mode calculations and adjust
21774         address for memories.
21776 2004-07-14  Per Bothner  <per@bothner.com>
21778         * input.h:  If USE_MAPPED_LOCATION, define separate expanded_location
21779         structure with extra column field.
21780         * tree.c (expand_location):  Also fill in column field.
21781         * gengtype-lex.l:  Ignore expanded_location typedef, sinze gengtype
21782         gets confused by the two conditionally-compiled definitions.
21784 2004-07-14  Eric Christopher  <echristo@redhat.com>
21786         * calls.c (expand_call): Fix typo in comment.
21788 2004-07-14  Steve Ellcey  <sje@cup.hp.com>
21790         * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
21791         comparision of TFmode.
21793 2004-07-14  Richard Henderson  <rth@redhat.com>
21795         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
21796         (alpha_gimplify_va_arg): ... handling here.  Use pass_by_reference.
21797         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
21798         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
21799         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
21800         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
21801         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
21802         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
21803         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
21805 2004-07-14  Mike Stump  <mrs@apple.com>
21807         * config/darwin.h (WINT_TYPE): Define to be int to match
21808         system header files.
21810 2004-07-14  Bob Wilson  <bob.wilson@acm.org>
21812         * config/xtensa/xtensa.c (function_arg_advance): Check for args
21813         that must be passed in the stack.
21814         (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
21815         arguments if the size is not a constant.
21817 2004-07-14  Per Bothner  <per@bothner.com>
21819         * c-typeck.c (emit_side_effect_warnings):  Use EXPR_HAS_LOCATION
21820         instead of EXPR_LOCUS in a boolean context, which is always true
21821         if --enable-mapped-location.
21822         * stmt.c (warn_if_unused_value):  Likewise.  Also use EXPR_LOCATION.
21824 2004-07-14  Richard Henderson  <rth@redhat.com>
21826         * dominance.c (struct dom_info): Add fake_exit_edge.
21827         (init_dom_info): Allocate it.
21828         (free_dom_info): Free it.
21829         (calc_dfs_tree): Set it.  Handle noreturn and infinite loops
21830         in two passes.
21831         (calc_idoms): Honor fake_exit_edge.
21833 2004-07-13  Jason Merrill  <jason@redhat.com>
21835         * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
21836         (rhs_test_for): New fn.
21837         (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
21838         * tree-gimple.h: Declare them.
21839         * gimplify.c (gimplify_modify_expr): Use the new fns.
21841 2004-07-14  Richard Henderson  <rth@redhat.com>
21843         * config/arm/arm-protos.h (arm_va_arg): Remove.
21844         * config/arm/arm.c (arm_va_arg): Remove.
21845         (arm_init_expanders): Fix alignment of arg_pointer_rtx.
21846         * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
21848 2004-07-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21850         * pa.c (fix_range): New function to mark a range(s) of registers as
21851         fixed registers.
21852         (override_options): Call fix_range if the -mfixed-range option string
21853         is not empty.
21854         * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
21855         * doc/invoke.texi (-mfixed-range): Document new option.
21857 2004-07-14  David Edelsohn  <edelsohn@gnu.org>
21859         * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
21860         for TARGET_64BIT.
21861         (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
21863 2004-07-14  Roger Sayle  <roger@eyesopen.com>
21865         * expmed.c (expand_sdiv_pow2): New function to expand signed division
21866         by a positive power of two, split out from expand_divmod.  Provide
21867         an alternate implementation when shifts are expensive.  Lower the
21868         threshold for using a branchless implementation to BRANCH_COST >= 2.
21869         (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
21871 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
21873         * tree-dfa.c (make_rename_temp): *Really* work just
21874         like create_tmp_var if called while outside SSA form.
21876 2004-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
21878         * config/s390/s390.md ("udivsi3"): Ensure trap is generated
21879         for division by zero.
21880         ("umodsi3"): Likewise.
21882 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
21884         * config/mips/mips.c (mips_output_move): When generating mips16 code,
21885         force loads of negative constants to be split.
21886         * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
21887         Generalize SImode li/neg splitter to cope with other modes.
21889 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
21891         * expmed.c: Remove more references to QUEUED in the comments.
21892         * expr.c: Likewise.
21894 2004-07-14  Richard Sandiford  <rsandifo@redhat.com>
21896         Revert:
21897         2004-07-13  Richard Henderson  <rth@redhat.com>
21898         * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
21899         correctly.
21901 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
21903         * tree-dfa.c (make_rename_temp): Work just like
21904         create_tmp_var if called while outside SSA form.
21906 2004-07-14  Paolo Bonzini  <bonzini@gnu.org>
21908         * expr.c (enqueue_insn, finish_expr_for_function,
21909         protect_from_queue, queued_subexp_p, mark_queue,
21910         emit_insns_enqueued_after_mark, emit_queue,
21911         expand_increment): Remove.
21912         (store_constructor): Expand increment as an assignment.
21913         (expand_expr_real_1 <case PREINCREMENT_EXPR,
21914         case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
21915         case POSTDECREMENT_EXPR>): Abort.
21916         * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
21917         QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
21918         protect_from_queue, emit_queue, queued_subexp_p): Remove.
21919         * function.h (pending_chain, x_pending_chain): Remove.
21920         * rtl.def (QUEUED): Remove.
21922         * emit-rtl.c (copy_insn_1, copy_most_rtx,
21923         set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
21924         * genattrtab.c (attr_copy_rtx, clear_struct_flag,
21925         encode_units_mask): Likewise.
21926         * local-alloc.c (equiv_init_varies_p): Likewise.
21927         * rtl.c (copy_rtx): Likewise.
21928         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
21929         * simplify-rtx.c (simplify_gen_subreg): Likewise.
21930         * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
21932         * builtins.c (expand_builtin, expand_builtin_apply,
21933         expand_builtin_mathfn, expand_builtin_mathfn_2,
21934         expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
21935         Remove calls to emit_queue and protect_from_queue.
21936         * calls.c (expand_call, precompute_arguments,
21937         precompute_register_parameters, rtx_for_function_call,
21938         store_one_arg): Likewise.
21939         * dojump.c (do_compare_and_jump, do_jump): Likewise.
21940         * explow.c (memory_address): Likewise.
21941         * expmed.c (clear_by_pieces_1, clear_storage,
21942         clear_storage_via_libcall, emit_group_load,
21943         emit_group_store, emit_store_flag,
21944         expand_expr_real_1, store_by_pieces,
21945         store_constructor, store_expr, try_casesi,
21946         try_tablejump): Likewise.
21947         * function.c (expand_pending_sizes): Likewise.
21948         * optabs.c (emit_cmp_and_jump_insns,
21949         emit_conditional_add, emit_conditional_move,
21950         expand_fix, expand_float, prepare_cmp_insn): Likewise.
21951         * stmt.c (emit_case_bit_tests,
21952         expand_asm_expr, expand_computed_goto,
21953         expand_decl_init, expand_end_case_type,
21954         expand_end_stmt_expr, expand_expr_stmt_value,
21955         expand_return, expand_start_case,
21956         optimize_tail_recursion): Likewise.
21957         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
21958         * config/s390/s390.c (s390_expand_cmpmem): Likewise.
21960 2004-07-14  Ben Elliston  <bje@au.ibm.com>
21962         * vec.h: Comment fix.
21964 2004-07-13  Richard Henderson  <rth@redhat.com>
21966         * target.h (struct gcc_target): Add calls.pass_by_reference.
21967         * target-def.h (TARGET_PASS_BY_REFERENCE): New.
21968         * function.c (pass_by_reference): Use the hook.
21969         * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
21970         * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
21971         (hook_pass_by_reference_must_pass_in_stack): New.
21972         * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
21973         (alpha_pass_by_reference): New.
21974         (TARGET_PASS_BY_REFERENCE): New.
21975         * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21976         * config/arc/arc.c (arc_pass_by_reference): New.
21977         (TARGET_PASS_BY_REFERENCE): New.
21978         * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21979         (FUNCTION_ARG_CALLEE_COPIES): True.
21980         * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
21981         * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
21982         (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
21983         * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21984         * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21985         * config/cris/cris.c (cris_pass_by_reference): New.
21986         (TARGET_PASS_BY_REFERENCE): New.
21987         * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
21988         (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
21989         (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21990         * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
21991         * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21992         * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
21993         * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
21994         (frv_function_arg_pass_by_reference): Remove.
21995         * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
21996         * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
21997         * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
21998         (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
21999         * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22000         * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
22001         * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
22002         (ia64_pass_by_reference): Rename from
22003         ia64_function_arg_pass_by_reference.
22004         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22005         * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22006         * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
22007         * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
22008         (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
22009         * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22010         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22011         * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
22012         * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
22013         (m32r_pass_by_reference): Adjust prototype.  Make static.
22014         Handle mode sizes correctly.
22015         * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22016         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
22017         (m68hc11_function_arg_pass_by_reference): Remove.
22018         * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22019         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22020         * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
22021         * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22022         * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
22023         * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
22024         (mips_va_arg): Use pass_by_reference.
22025         (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
22026         Handle mode sizes correctly.
22027         * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22028         (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
22029         * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
22030         * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
22031         (mmix_pass_by_reference): Rename from
22032         mmix_function_arg_pass_by_reference.
22033         * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22034         (FUNCTION_ARG_CALLEE_COPIES): True.
22035         * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
22036         (mn10300_pass_by_reference): New.
22037         * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22038         (FUNCTION_ARG_CALLEE_COPIES): True.
22039         * config/pa/pa.c (pa_pass_by_reference): New.
22040         (TARGET_PASS_BY_REFERENCE): New.
22041         * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22042         (FUNCTION_ARG_CALLEE_COPIES): True.
22043         * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
22044         * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
22045         (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
22046         * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22047         * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
22048         * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
22049         (s390_pass_by_reference): Rename from
22050         s390_function_arg_pass_by_reference.
22051         (s390_function_arg_advance): Don't query pass-by-ref.
22052         (s390_function_arg): Likewise.
22053         (s390_gimplify_va_arg): Use pass_by_reference.
22054         (s390_call_saved_register_used): Likewise.
22055         * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22056         * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
22057         (shcompact_byref, sh_pass_by_reference): New.
22058         * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22059         (SHCOMPACT_BYREF): Remove.
22060         * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
22061         * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
22062         (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
22063         (sparc_gimplify_va_arg): Use pass_by_reference.
22064         * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22065         * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22066         * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
22067         (v850_pass_by_reference): New.
22068         * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22069         (FUNCTION_ARG_CALLEE_COPIES): True.
22070         * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
22071         FUNCTION_ARG_PASS_BY_REFERENCE docs.
22073 2004-07-14  Richard Henderson  <rth@redhat.com>
22074             Richard Sandiford  <rsandifo@redhat.com>
22076         * config/mips/mips-protos.h (mips_va_arg): Delete.
22077         * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
22078         * config/mips/mips.c: Include tree-gimple.h.
22079         (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
22080         (mips_arg_info): Remove special handling of must_pass_in_stck args.
22081         (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
22082         (function_arg_pass_by_reference): Return true if must_pass_in_stack.
22084 2004-07-13  Bob Wilson  <bob.wilson@acm.org>
22086         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
22087         arguments for COND_EXPR in big-endian adjustment code.
22089 2004-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22091         * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
22092         * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
22093         * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
22094         * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
22096 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
22098         PR tree-optimization/16443
22099         * tree-ssa-alias.c: Add more description for
22100         CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
22101         * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
22102         clobbering of call-clobbered and addressable variables.  If
22103         there are any before aliases have been computed, add them.
22105 2004-07-13  Diego Novillo  <dnovillo@redhat.com>
22107         * tree-optimize.c (execute_todo): Flush DUMP_FILE before
22108         verification.
22110 2004-07-13  Ulrich Weigand  <uweigand@de.ibm.com>
22112         * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
22113         of build_int_2.  Convert both operands of PLUS_EXPR and MULT_EXPR
22114         to the same type.
22116 2004-07-13  Per Bothner  <per@bothner.com>
22118         * collect2.c (main):  Handle --no-demangle and --demangle flags.
22120 2004-07-13  Sebastian Pop  <pop@cri.ensmp.fr>
22122         * Makefile.in (OBJS-common): Add tree-data-ref.o.
22123         (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
22124         (tree-data-ref.o): New rule.
22125         * lambda.h: New file.
22126         * tree-data-ref.c: New file.
22127         * tree-data-ref.h: New file.
22128         * tree.c (int_cst_value, tree_fold_gcd): New functions.
22129         * tree.h (int_cst_value, tree_fold_gcd): Declared here.
22131 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
22133         PR target/13926
22134         * config/sparc/sparc-protos.h (output_ubranch): New prototype.
22135         * config/sparc/sparc.c (output_ubranch): New function.
22136         * config/sparc/sparc.md (jump pattern): Use it.
22138 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
22140         PR target/16494
22141         * config/sparc/sparc.c (output_cbranch): Properly guard
22142         the code handling far branches with TARGET_V9.
22143         * config/sparc/sparc.md (length attribute): Document the
22144         side-effect of having a length greater or equal to 3.
22146 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
22147             Lloyd Parkes  <lloyd@must-have-coffee.gen.nz>
22149         PR target/15186
22150         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
22151         /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
22153 2004-07-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
22154             Martin Sebor  <sebor@roguewave.com>
22156         PR target/12602
22157         * doc/invoke.texi (SPARC options): Document -threads
22158         and -pthreads on Solaris.
22160 2004-07-13  Richard Henderson  <rth@redhat.com>
22162         * builtins.c (std_gimplify_va_arg_expr): Handle types passed
22163         by reference.
22164         (ind_gimplify_va_arg_expr): Remove.
22165         * tree.h (ind_gimplify_va_arg_expr): Remove.
22166         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
22167         * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
22168         argsp to be null.
22170         * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
22171         (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
22172         * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
22173         config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
22174         config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
22176 2004-07-13  Richard Henderson  <rth@redhat.com>
22178         * function.c (pass_by_reference): New.
22179         (assign_parm_find_data_types): Use it.
22180         * calls.c (initialize_argument_information): Likewise.
22181         (emit_library_call_value_1): Likewise.
22182         * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
22183         * function.h (pass_by_reference): Declare.
22185 2004-07-13  Richard Henderson  <rth@redhat.com>
22187         * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
22188         * target.h (struct gcc_target): Add calls.must_pass_in_stack.
22189         * expr.h (MUST_PASS_IN_STACK): Remove.
22190         * system.h (MUST_PASS_IN_STACK): Poison.
22191         * tree.h (must_pass_in_stack_var_size): Declare.
22192         (must_pass_in_stack_var_size_or_pad): Declare.
22193         * calls.c (must_pass_in_stack_var_size): New.
22194         (must_pass_in_stack_var_size_or_pad): Rename from
22195         default_must_pass_in_stack.
22196         * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
22197         (TARGET_MUST_PASS_IN_STACK): New.
22198         * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
22199         * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
22200         (TARGET_MUST_PASS_IN_STACK): New.
22201         * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
22202         * config/frv/frv.c (frv_must_pass_in_stack): New.
22203         (TARGET_MUST_PASS_IN_STACK): New.
22204         * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
22205         * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
22206         * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
22207         (ix86_must_pass_in_stack): Make static.
22208         * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
22209         * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
22210         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
22211         * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
22212         * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
22213         * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
22214         * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
22215         (mcore_must_pass_on_stack): Remove.
22216         * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
22217         * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
22218         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
22219         * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
22220         * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
22221         * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
22222         * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
22223         * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
22224         (TARGET_MUST_PASS_IN_STACK): New.
22225         * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
22226         * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
22227         * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
22228         * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
22229         * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
22230         * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
22231         * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
22232         MUST_PASS_IN_STACK.
22234         * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
22235         config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
22236         config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
22237         config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
22238         config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
22239         config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
22240         config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
22241         config/xtensa/xtensa.c: Use target hook.
22243 2004-07-13  Anthony Heading  <aheading@jpmorgan.com>
22245         * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
22246         * configure: Rebuilt.
22248 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
22250         * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
22251         * config/mips/mips.h (mips_reg_names): Don't declare.
22252         (MASK_NAME_REGS): Delete.  Shuffle other MASK_* values down.
22253         (TARGET_NAME_REGS): Delete.
22254         (TARGET_SWITCHES): Remove -mrnames.
22255         (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
22256         (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
22257         in REGISTER_NAMES.
22258         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
22259         (override_options): Remove handling of TARGET_NAME_REGS.
22261 2004-07-13  Richard Sandiford  <rsandifo@redhat.com>
22263         * config/mips/mips.h (TARGET_*): Boolify.
22265 2004-07-12  Nick Clifton  <nickc@redhat.com>
22267         * config.gcc: Add sh-*-symbianelf target.
22268         * config/sh/sh.c: Add new target macros:
22269         TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
22270         TARGET_CXX_IMPORT_EXPORT_CLASS.
22271         (sh_file_start): Create a definition of the .directive section.
22272         (sh_attribute): Add dllimport and dllexport attributes.
22273         * config/sh/symbian-pre.h: New file.
22274         * config/sh/symbian-post.h: New file.
22275         * config/sh/symbian.c: New file. Contains Symbian specific
22276         functions.
22277         * config/sh/sh-protos.h: Add prototypes for new functions
22278         provided by symbian.c.
22279         * config/sh/t-symbian: New file.
22280         * doc/extend.texi: Document support for dllimport and dllexport
22281         attributes by the sh-symbianelf target.
22283 2004-07-12  James E Wilson  <wilson@specifixinc.com>
22285         * Makefile.in (AR): Use @AR@ not ar.
22286         (NM): New.
22287         (AR_FOR_TARGET): Use $(AR) not ar for native.
22288         (NM_FOR_TARGET): Use $(NM) not nm for native.
22289         * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
22290         * configure: Regenerate.
22292 2004-07-12  David S. Miller  <davem@nuts.davemloft.net>
22294         * config/sparc/sparc.md (ashlsi3): Eliminate const 1
22295         special case.
22296         (ashldi3_sp64): Likewise.
22298 2004-07-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22300         PR target/16477
22301         * pa.c (function_arg): Update comment.
22302         * pa.h (BLOCK_REG_PADDING): Define.
22304 2004-07-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22306         PR tree-optimization/16461
22307         * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
22308         arguments of phi nodes.
22310 2004-07-12  Devang Patel  <dpatel@apple.com>
22312         * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
22314 2004-07-12  Steve Ellcey  <sje@cup.hp.com>
22316         * function.c (expand_function_start): Ensure r_save is in Pmode.
22317         * calls.c (prepare_call_address): Ensure static_chain_value is
22318         in Pmode.
22319         * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
22320         r_save_area are in Pmode.
22321         * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
22322         fnaddr, and static_chain are in Pmode.
22324 2004-07-12  Vladimir Makarov  <vmakarov@redhat.com>
22326         PR target/16445
22327         * config/ia64/ia64.c (bundling): Don't count ignored insns.
22329 2004-07-12  Richard Henderson  <rth@redhat.com>
22331         * target.h (struct gcc_target): Move gimplify_va_arg_expr
22332         next to build_builtin_va_list.
22333         * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
22334         * builtins.c (gimplify_va_arg_expr): Likewise.
22335         * gimplify.c (copy_if_shared_r): Likewise.
22337 2004-07-12  Alexandre Oliva  <aoliva@redhat.com>
22339         * passes.c (rest_of_decl_compilation): Don't defer call of
22340         assemble_variable if its DECL_RTL is already set.
22342 2004-07-12  Sebastian Pop  <pop@cri.ensmp.fr>
22344         * cfgloop.h (struct loop): Add nb_iterations field.
22345         (current_loops): Declare.
22346         * tree-chrec.c (chrec_not_analyzed_yet,
22347         chrec_dont_know, chrec_known, count_ev_in_wider_type,
22348         chrec_contains_symbols_defined_in_loop): Remove the temporary
22349         hooks.
22350         * tree-flow-inline.h (loop_containing_stmt): New function.
22351         * tree-scalar-evolution.c: Add implementation.
22352         * tree-scalar-evolution.h: Add declarations.
22354 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
22356         PR rtl-optimization/15921
22357         * Makefile.in (global.o): Add recog.h.
22359         * global.c (recog.h): Add the include-clause.
22360         (bb_info): New member earlyclobber.
22361         (allocate_bb_info, free_bb_info): Initialize/finish the new
22362         member.
22363         (earlyclobber_regclass, earlyclobber_regclass_length): The new
22364         global variables.
22365         (check_earlyclobber, regclass_intersect,
22366         mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
22367         New functions.
22368         (calculate_local_reg_bb_info): Calculate value of earlyclobber.
22369         (make_accurate_live_analysis): Modify pavin.
22371 2004-07-12  Diego Novillo  <dnovillo@redhat.com>
22373         * tree-cfg.c (find_taken_edge): Statically compute the truth
22374         value of a predicate comparing an SSA_NAME to itself.
22376 2004-07-12  Roger Sayle  <roger@eyesopen.com>
22378         * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
22379         rs6000 doesn't have shift-and-add or shift-and-sub instructions
22380         by returning the cost of a multiplication plus an addition.
22382 2004-07-12  Paolo Bonzini  <bonzini@gnu.org>
22384         PR tree-optimization/14107
22385         * gimplify.c (gimplify_return_expr): Accept a
22386         RETURN_EXPR with an error argument.
22387         * tree-optimize.c (init_tree_optimization_passes):
22388         Run pass_warn_function_return at -O0.
22390 2004-07-12  Roger Sayle  <roger@eyesopen.com>
22392         * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
22393         index entry.
22395 2004-07-12  Richard Sandiford  <rsandifo@redhat.com>
22397         * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
22398         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
22399         * config/mips/3000.md: Add copyright notice.  Remove automota and
22400         function units; use generic ones instead.  Only define reservations
22401         for things that are different from generic.md.  Extend each clause
22402         to include r3900.
22403         * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
22404         * config/mips/mips.md: Include them. Remove define_function_units.
22405         (alu, imuldiv): New automata and units.
22407 2004-07-12  Ben Elliston  <bje@au.ibm.com>
22409         * doc/invoke.texi (Optimize Options): Document -frename-registers
22410         not being enabled by default at -O3.
22412 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22414         * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
22415         floating point additions, to keep real immediate constant positive.
22416         <MINUS_EXPR>:  For floating point subtractions, only transform X - -C
22417         into X + C, and leave positive real constants as X - C.
22419 2004-07-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22421         * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
22423 2004-07-11  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22425         PR tree-optimization/15654
22426         * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
22428 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22430         * builtins.c (fold_builtin_fputs): Don't bother converting the
22431         return type to integer_type_node, as we've already checked that
22432         the result will be ignored.
22434         * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
22435         that signed addition, subtraction, multiplication, division,
22436         remainder, negation and absolute value may potentially trap.
22438         * fold-const.c (fold_ignored_result): New function to strip
22439         non-side-effecting tree nodes from an expression whose result
22440         is ignored.
22441         (fold_convert): Call fold_ignored_result when casting a value
22442         to VOID_TYPE.
22443         (omit_one_operand):  Call fold_ignored_result on the "omitted"
22444         operand when building a COMPOUND_EXPR.
22445         (pedantic_omit_one_operand): Likewise.
22446         * tree.h (fold_ignored_result): Prototype here.
22447         * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
22448         when we're going to ignore the result.
22450 2004-07-11  Richard Henderson  <rth@redhat.com>
22452         PR tree-opt/16383
22453         * tree-ssa-ccp.c (fold_stmt_r): Split out...
22454         * tree.c (fields_compatible_p, find_compatible_field): ... new.
22455         * tree.h (fields_compatible_p, find_compatible_field): Declare.
22456         * tree-sra.c (sra_hash_tree): Hash fields by offset.
22457         (sra_elt_eq): Use fields_compatible_p.
22458         (generate_one_element_ref): Use find_compatible_field.
22460 2004-07-11  Richard Henderson  <rth@redhat.com>
22462         PR tree-opt/16422
22463         * tree-sra.c (generate_one_element_init): New.
22464         (generate_element_init): Use it.
22465         (scalarize_init): Push/pop gimplify context around it.
22466         (find_new_referenced_vars_1, find_new_referenced_vars): New.
22467         * gimplify.c (gimplify_expr): Allow SSA_NAME.
22469 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22471         * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
22472         combine.c's combine_insn_cost.
22473         * rtl.h (insn_rtx_cost): Prototype here.
22474         * combine.c (combine_insn_cost): Delete function.
22475         (combine_validate_cost): Update callers of combine_insn_cost to
22476         call insn_rtx_cost instead.
22477         (combine_instructions): Likewise.  Use NONJUMP_INSN_P to avoid
22478         requesting the rtx_cost of call and/or jump instructions.
22480         * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
22481         rtx_cost directly.  Don't request/use the cost of call or jump
22482         instructions.  Return -1 if the cost of any instruction can't be
22483         determined (or the BB contains a function call).
22484         (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
22485         -1 (i.e. can't determine the cost of any instruction or the basic
22486         block contains a subroutine call).
22487         (find_if_case_2): Likewise.
22489 2004-07-11  Roger Sayle  <roger@eyesopen.com>
22491         * rs6000.c (struct processor_costs): Change semantics of fields to
22492         include the COST_N_INSNS scaling, and update all initializers.
22493         (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
22494         Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
22495         Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP.  When
22496         optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
22498 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22500         * LANGUAGES: Remove obsolete information.
22502 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
22504         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
22505         SIGBUS signal frames, the PSW address points *to* the faulting
22506         instruction, not after it.
22508 2004-07-11  Ulrich Weigand  <uweigand@de.ibm.com>
22510         * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
22511         added to TLS symbol addresses.
22513 2004-07-11  Richard Henderson  <rth@redhat.com>
22515         * expmed.c (init_expmed): Use stack-local structures for
22516         temporary rtl.  Don't recognize shifts.
22518 2004-07-11  Richard Henderson  <rth@redhat.com>
22520         * expr.c (store_expr): Don't fiddle subreg promotion for types
22521         with precision smaller than the mode.
22523 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22525         * tree.h (all_types_permanent): Remove.
22527 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22529         * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
22530         maybe_build_cleanup, update_decl_after_saving): Remove hooks.
22531         * langhooks.c (lhd_clear_binding_stack): Remove.
22532         * langhooks-def.h (lhd_clear_binding_stack,
22533         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
22534         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
22535         LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
22536         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22537         (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
22538         * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
22539         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
22540         LANG_HOOKS_MAYBE_BUILD_CLEANUP,
22541         LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
22542         * tree.h (poplevel): Don't declare.
22543         * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
22544         LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
22545         * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
22546         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
22547         Remove.
22549 2004-07-11  Joseph S. Myers  <jsm@polyomino.org.uk>
22551         PR tree-optimization/16437
22552         * c-common.c (shorten_compare): Don't mark result of conversion to
22553         narrower signed type as overflowing.
22554         * fold-const.c (decode_field_reference): Determine whether
22555         signedness comes from outer type using precision rather than size.
22557 2004-07-11  Phil Edwards  <phil@codesourcery.com>
22559         * configure.ac:  Alphabetize --enable-checking list, add
22560         missing valgrind entry.
22561         * configure:  Regenerate.
22563 2004-07-11  Phil Edwards  <phil@codesourcery.com>
22565         * doc/install.texi (Testing):  Fix syntax in "make check" example.
22567 2004-07-10  James E Wilson  <wilson@specifixinc.com>
22569         * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
22571 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22573         PR rtl-optimization/16001
22574         * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
22575         niter_expr.
22577 2004-07-10  Geoffrey Keating  <geoffk@apple.com>
22579         * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
22581 2004-07-10  Steve Kargl  <sgk@troutmask.apl.washington.edu>
22582             James Morrison  <phython@gcc.gnu.org>
22584         * doc/contrib.texi (Contributors): Add gfortran contributors and
22585         fix a couple of typos.
22587 2004-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22589         PR rtl-optimization/15387
22590         * calls.c (check_sibcall_argument_overlap_1): Handle pointers
22591         to incoming args space correctly.
22593 2004-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22595         * pa.c (output_indirect_call): Only use %r2 as the link register in
22596         indirect calls with the long PA 2.0 pc-relative branch.
22598 2004-07-10  Daniel Jacobowitz  <dan@debian.org>
22600         * config/i386/i386.c (override_options): Pick a 64-bit CPU
22601         for the default tuning if TARGET_64BIT.
22603 2004-07-10  Richard Henderson  <rth@redhat.com>
22605         * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
22606         to HOST_WIDE_INT.  Fold pad-args-down arithmetic.
22608 2004-07-10  Jakub Jelinek  <jakub@redhat.com>
22610         * expr.h (store_bit_field, extract_bit_field): Remove last argument.
22611         * expmed.c (store_bit_field, extract_bit_field): Remove last
22612         argument.
22613         * builtins.c (expand_builtin_signbit): Adjust callers.
22614         * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
22615         * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
22616         * ifcvt.c (noce_emit_move_insn): Likewise.
22617         * stmt.c (expand_return): Likewise.
22618         * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
22619         store_field, expand_expr_real_1): Likewise.
22621 2004-07-10  Richard Henderson  <rth@redhat.com>
22623         * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
22625 2004-07-09  Mike Stump  <mrs@apple.com>
22627         * config/darwin.c (no_dead_strip): Add.
22628         (HAVE_DEAD_STRIP): Add.
22629         (darwin_emit_unwind_label): Ensure that we don't dead code strip
22630         the .eh label.
22632 2004-07-09  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
22634         * tree-ssa-loop-im.c: New file.
22635         * Makefile.in (tree-ssa-loop-im.o): Add.
22636         * cfgloop.c (superloop_at_depth): New function.
22637         * cfgloop.h (superloop_at_depth): Declare.
22638         * common.opt (ftree-lim): New flag.
22639         * expr.c (array_ref_up_bound): New function.
22640         * params.def (PARAM_LIM_EXPENSIVE): New parameter.
22641         * timevar.def (TV_LIM): New timevar.
22642         * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
22643         computing immediate uses of a phi node.
22644         * tree-flow.h (struct tree_ann_common_d): Add aux field.
22645         (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
22646         * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
22647         * tree-pass.h (pass_lim): Declare.
22648         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
22649         functions.
22650         (pass_lim): New pass structure.
22651         * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
22652         * tree.c (in_array_bounds_p): New function.
22653         * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
22654         (in_array_bounds_p, array_ref_up_bound): Declare.
22655         * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
22656         * doc/passes.texi (tree-ssa-loop-im.c): Document.
22658 2004-07-09  Richard Henderson  <rth@redhat.com>
22660         * builtins.c (expand_builtin_stpcpy): Don't modify len.
22662         * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
22663         with prejudice.
22665 2004-07-10  Kelley Cook  <kcook@gcc.gnu.org>
22667         * flags.h: Delete redundant prototypes that are being generated
22668         in options.h from common.opt.
22669         * common.opt: Add in the expository comments formerly in flags.h.
22671 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22673         * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
22674         available for use only when TARGET_MMX/_SSE is set, and check for
22675         variable argument function if any register count is non-zero.
22676         (function_arg): Correctly suppress repeated warnings for passing SSE
22677         vectors are arguments without SSE enabled.
22678         (ix86_function_arg_boundary): Without SSE enabled, the use of what
22679         would be SSE register modes does no longer influence the alignment.
22681 2004-07-09  Richard Henderson  <rth@redhat.com>
22683         * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
22684         Always align upward to arg boundary.  Use size_in_bytes/round_up.
22685         Maintain type-correctness of constants.
22686         * stor-layout.c (round_up, round_down): Special-case powers of 2.
22688 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
22690         * config/sparc/sparc.c (*_costs): Scale instruction costs
22691         by COSTS_N_INSNS.
22692         (sparc_rtx_costs): Adjust as appropriate.
22694 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22696         * config/i386/mm3dnow.h: New.
22697         * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
22699 2004-07-09  Richard Henderson  <rth@redhat.com>
22701         * simplify-rtx.c (simplify_const_relational_operation): Only
22702         look at bounds of scalar integers.
22704 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22706         * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
22708 2004-07-09  Andrew Pinski  <apinski@apple.com>
22710         * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
22711         always referenced.
22712         (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
22713         UOBJC_METACLASS_decl.
22715 2004-07-09  James E Wilson  <wilson@specifixinc.com>
22717         PR target/16364
22718         * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
22719         do return a parallel if hfa_mode == XFmode and mode == TImode.
22721 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22723         * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
22724         permissible for unary plus.
22726 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22728         * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
22729         (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
22730         (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
22731         (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
22732         BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
22733         * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
22734         BUILTIN_POPCOUNTxxx): Arguments are unsigned.
22735         (BUILTIN_xxxIMAX): New.
22736         * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
22737         BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
22738         BUILT_IN_PARITYIMAX.
22740 2004-07-09  David S. Miller  <davem@nuts.davemloft.net>
22742         * config/sparc/sparc.h (processor_costs): Define.
22743         (sparc_costs): Declare.
22744         * config/sparc/sparc.c (cypress_costs, supersparc_costs,
22745         hypersparc_costs, sparclet_costs, ultrasparc_costs,
22746         ultrasparc3_costs): New.
22747         (sparc_override_options): Set sparc_costs as appropriate.
22748         (sparc_rtx_costs): Use sparc_costs instead of messy
22749         conditionals.
22751 2004-07-09  Steven Bosscher  <stevenb@suse.de>
22753         * doc/md.texi (Processor pipeline description): Mention that
22754         the old pipeline description is deprecated.
22756         * config/rs6000/7450.md (automaton ppc7450): Split up, move
22757         mciu_7450 function unit to...
22758         (automaton ppc7450mciu): ...new automaton.
22760         * haifa-sched.c (insert_schedule_bubbles_p): Remove.
22761         (schedule_block): Don't consider inserting bubbles.
22762         (sched_init): Don't initialize DFA bubbles.
22763         * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
22764         TARGET_SCHED_DFA_BUBBLE): Remove.
22765         * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
22766         * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
22767         TARGET_SCHED_DFA_BUBBLE): Remove documentation.
22769         * stmt.c (conditional_context): Remove prototype.
22770         * tree.h (conditional_context): Remove.
22771         * tree-cfg.c (pre_insert_on_edge): Remove.
22773         * c-common.h (c_expand_asm_operands): Remove prototype.
22774         * c-typeck.c (c_expand_asm_operands): Remove.
22776 2004-07-09  Jan Beulich  <jbeulich@novell.com>
22778         * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
22779         their base modes. CTImode, TCmode, and XCmode must be passed in memory.
22780         TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
22781         and V8QI are class SSE. All sufficiently small remaining vector modes
22782         must be passed in one or two integer registers.
22783         (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
22784         returned in memory.
22785         (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
22786         __builtin_ia32_pmuludq128 have non-uniform argument and return types
22787         and must thus be handled explicitly.
22788         * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
22789         MMX and XMM regs.
22790         (movv8qi_internal, movv4hi_internal, movv2si_internal,
22791         movv2sf_internal): Permit moving between MMX and XMM registers (since
22792         MMX areguments and return values are passed in XMM registers).
22793         (sse2_umulsidi3): Correct type and mode.
22795 2004-07-09  Richard Henderson  <rth@redhat.com>
22797         * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
22799 2004-07-09  Eric Christopher  <echristo@redhat.com>
22801         * config/rs6000/40x.md: Split into two automatons.
22803 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
22804             Andrew Pinski  <apinski@apple.com>
22806         * c-opts.c (c_common_post_options): Force unit-at-a-time mode
22807         on when we have more than one input file.
22808         (c_common_parse_file): Restore loop over all input files.
22809         Clarify diagnostic for -dy when YYDEBUG wasn't defined.
22811         * c-decl.c (set_type_context): New function.
22812         (pop_scope): Use it to set context of types.  When we
22813         encounter a TYPE_DECL, set the context of the attached type too.
22814         (pop_file_scope): Don't call cpp_undef_all here.
22815         (diagnose_mismatched_decls): Do not complain about a second
22816         definition of an 'extern inline' function if it's not in the
22817         same translation unit.  Do not complain about inline
22818         declaration after use if the use was in a different
22819         translation unit.
22820         (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
22821         (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
22822         the external scope.
22823         (pushdecl_top_level): Likewise.
22824         (grokdeclarator): Clarify what is going on with setting
22825         DECL_EXTERNAL on function types, a little.
22826         (c_write_global_declarations): Don't do anything if
22827         -fsyntax-only or errors have been encountered.
22829 2004-07-09  Zack Weinberg  <zack@codesourcery.com>
22831         * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
22833 2004-07-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22835         PR target/16459
22836         * pa.c (output_indirect_call): Use %r2 as the link register when
22837         calling $$dyncall with a pc-relative branch.
22839 2004-07-08  Gerald Pfeifer  <gerald@pfeifer.com>
22841         * doc/install.texi (Binaries): Mention OpenPKG.
22843 2004-07-09  Diego Novillo  <dnovillo@redhat.com>
22845         Fix PR tree-optimization/15555
22846         * tree-dfa.c (dump_variable): If the variable is a pointer
22847         SSA_NAME, also dump its points-to information.
22848         * tree-flow.h (struct ptr_info_def): Add field
22849         is_dereferenced.
22850         (dump_points_to_info_for): Declare.
22851         (debug_points_to_info_for): Declare.
22852         * tree-optimize.c (init_tree_optimization_passes): Add a
22853         second alias analysis pass after DOM2.
22854         Move pass_del_pta to a later spot.
22855         * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
22856         create a name tags when we find a dereferenced pointer.  Just
22857         mark the pointer dereferenced.
22858         (collect_points_to_info_for): Move code to clear points-to
22859         information to create_name_tags.
22860         (create_name_tags): New function.
22861         (compute_flow_sensitive_aliasing): Call it.
22862         (setup_pointers_and_addressables): Mark type tags for renaming
22863         here instead of ...
22864         (create_memory_tag): ... here.
22865         (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
22866         (dump_points_to_info_for): Declare extern.
22867         (debug_points_to_info_for): New function.
22869 2004-07-09  Paolo Bonzini  <bonzini@gnu.org>
22871         * config/arc/arc.md: Switch to DFA-based scheduler description.
22872         * config/arc/arc.c: Switch to DFA-based scheduler description.
22874 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
22876         * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
22877         pointer.
22879 2004-07-09  Richard Henderson  <rth@redhat.com>
22881         * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
22882         * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22883         (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
22884         * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
22886         * config/v850/v850-protos.h (v850_va_arg): Remove.
22887         * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22888         (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
22889         * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
22890         (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
22891         (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
22893 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
22895         PR target/12133
22896         * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
22897         and DImode to use +/-4k offset.
22899 2004-07-09  Richard Henderson  <rth@redhat.com>
22901         * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
22902         Remove.
22903         * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22904         (xstormy16_gimplify_va_arg_expr): Rewrite from
22905         xstormy16_expand_builtin_va_arg.
22906         * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
22908         * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
22909         * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
22911         * config/sh/sh-protos.h (sh_va_arg): Remove.
22912         * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22913         (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
22914         * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
22916         * config/pa/pa-protos.h (hppa_va_arg): Remove.
22917         * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22918         (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
22919         * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
22921         * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
22922         * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
22923         (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
22924         * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
22926 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
22928         * config/sparc/sparc.md (return): Rewrite length formula.
22929         * config/sparc/sparc.c (output_return): Pass 1 as 5th
22930         argument to final_scan_insn when in a delay slot.
22931         (output_sibcall): Likewise.
22933 2004-07-09  Richard Earnshaw  <rearnsha@arm.com>
22935         * arm.c (arm_cpp_interwork): New variable.
22936         (arm_override_options): Set it if TARGET_INTERWORK was on the command
22937         line.
22938         * arm.h (arm_cpp_interwork): Declare it.
22939         (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
22940         __THUMB_INTERWORK__ in the preprocessor.
22942 2004-07-09  Nathan Sidwell  <nathan@codesourcery.com>
22944         * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
22946 2004-07-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
22948         PR target/16416
22949         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
22950         Override default settings to account for -m32 and -m64.
22952 2004-07-08  Randolph Chung  <tausq@debian.org>
22954         * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
22956 2004-07-09  Alexandre Oliva  <aoliva@redhat.com>
22958         * builtins.c (fold_builtin_strncpy): Make sure len is a constant
22959         before comparing it as such.
22961 2004-07-08  Richard Henderson  <rth@redhat.com>
22963         * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
22964         temporary.  Use bit arithmetic to align.
22966 2004-07-08  Jerry Quinn  <jlquinn@optonline.net>
22968         * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
22969         nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
22970         NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
22971         * bb-reorder.c (mark_bb_for_unlikely_executed_section,
22972         add_labels_and_missing_jumps, find_jump_block,
22973         fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
22974         Likewise.
22975         * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
22976         link_btr_uses, move_btr_def): Likewise.
22977         * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
22978         expand_builtin_expect_jump): Likewise.
22979         * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
22980         * calls.c (expand_call, emit_library_call_value_1): Likewise.
22981         * cfganal.c (forwarder_block_p): Likewise.
22982         * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
22983         make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
22984         find_bb_boundaries): Likewise.
22985         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
22986         merge_blocks_move_predecessor_nojumps,
22987         merge_blocks_move_successor_nojumps, insns_match_p,
22988         flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
22989         try_optimize_cfg): Likewise.
22990         * cfgexpand.c (expand_block, construct_exit_block): Likewise.
22991         * cfglayout.c (skip_insns_after_block, label_for_bb,
22992         record_effective_endpoints, insn_locators_initialize,
22993         fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
22994         * cfgmainloop.c (create_loop_notes): Likewise.
22995         * cfgrtl.c (delete_insn, delete_insn_chain,
22996         create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
22997         update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
22998         block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
22999         redirect_branch_edge, force_nonfallthru_and_redirect,
23000         rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
23001         rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
23002         update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
23003         purge_dead_edges, cfg_layout_redirect_edge_and_branch,
23004         cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
23005         cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
23006         need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
23007         * combine.c (combine_instructions, can_combine_p, try_combine,
23008         find_split_point, record_dead_and_set_regs, reg_dead_at_p,
23009         distribute_notes, distribute_links, insn_cuid): Likewise.
23010         * cse.c (fold_rtx, cse_insn, cse_around_loop,
23011         invalidate_skipped_block, cse_set_around_loop,
23012         cse_end_of_basic_block, cse_main, cse_basic_block,
23013         cse_condition_code_reg): Likewise.
23014         * cselib.c (cselib_process_insn): Likewise.
23015         * ddg.c (create_ddg): Likewise.
23016         * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
23017         Likewise.
23018         * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
23019         gen_label_die, dwarf2out_var_location): Likewise.
23020         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
23021         next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
23022         last_call_insn, active_insn_p, next_label, prev_label,
23023         link_cc0_insns, next_cc0_user, try_split, add_insn_after,
23024         add_insn_before, remove_insn, add_function_usage_to,
23025         reorder_insns, find_line_note, remove_unnecessary_notes,
23026         emit_insn_after_1, classify_insn): Likewise.
23027         * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
23028         connect_post_landing_pads, sjlj_mark_call_sites,
23029         sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
23030         can_throw_internal, can_throw_external, set_nothrow_function_flags,
23031         convert_to_eh_region_ranges): Likewise.
23032         * explow.c (optimize_save_area_alloca): Likewise.
23033         * expr.c (expand_expr_real): Likewise.
23034         * final.c (insn_current_reference_address, compute_alignments,
23035         shorten_branches, final, scan_ahead_for_unlikely_executed_note,
23036         final_scan_insn, output_asm_label, leaf_function_p): Likewise.
23037         * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
23038         propagate_block_delete_insn, propagate_one_insn,
23039         init_propagate_block_info, propagate_block, libcall_dead_p,
23040         mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
23041         Likewise.
23042         * function.c (instantiate_virtual_regs, reorder_blocks_1,
23043         expand_function_start, expand_function_end, contains,
23044         thread_prologue_and_epilogue_insns,
23045         reposition_prologue_and_epilogue_notes): Likewise.
23046         * gcse.c (constprop_register, bypass_conditional_jumps,
23047         insert_insn_end_bb, gcse_after_reload): Likewise.
23048         * genemit.c (gen_expand, gen_split): Likewise.
23049         * genpeep.c (gen_peephole, main): Likewise.
23050         * global.c (build_insn_chain): Likewise.
23051         * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
23052         * haifa-sched.c (unlink_other_notes, unlink_line_notes,
23053         get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
23054         restore_line_notes, rm_redundant_line_notes, rm_other_notes,
23055         ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
23056         * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
23057         cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
23058         merge_if_block, block_jumps_and_fallthru_p, find_if_block,
23059         dead_or_predicable): Likewise.
23060         * integrate.c (try_constants): Likewise.
23061         * jump.c (rebuild_jump_labels, cleanup_barriers,
23062         purge_line_number_notes, init_label_info, mark_all_labels,
23063         squeeze_notes, get_label_before, get_label_after,
23064         reversed_comparison_code_parts, simplejump_p, pc_set,
23065         returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
23066         delete_barrier, delete_prior_computation, delete_computation,
23067         delete_related_insns, delete_for_peephole, redirect_jump):
23068         Likewise.
23069         * lcm.c (optimize_mode_switching): Likewise.
23070         * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
23071         Likewise.
23072         * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
23073         * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
23074         * loop-iv.c (simplify_using_assignment): Likewise.
23075         * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
23076         libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
23077         find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
23078         loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
23079         check_insn_for_givs, check_final_value, update_giv_derive,
23080         basic_induction_var, product_cheap_p, check_dbra_loop,
23081         loop_insn_first_p, last_use_this_basic_block,
23082         canonicalize_condition, get_condition, loop_regs_scan, load_mems,
23083         try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
23084         * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
23085         sms_schedule_by_order): Likewise.
23086         * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
23087         * postreload.c (reload_cse_simplify_operands, reload_combine,
23088         reload_cse_move2add): Likewise.
23089         * predict.c (can_predict_insn_p, estimate_probability,
23090         expected_value_to_br_prob, process_note_predictions): Likewise.
23091         * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
23092         * profile.c (branch_prob): Likewise.
23093         * ra-build.c (live_out_1, livethrough_conflicts_bb,
23094         detect_webs_set_in_cond_jump): Likewise.
23095         * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
23096         ra_print_rtl_with_bb): Likewise.
23097         * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
23098         * recog.c (next_insn_tests_no_inequality, find_single_use,
23099         split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
23100         * reg-stack.c (next_flags_user, record_label_references,
23101         emit_swap_insn, swap_rtx_condition, subst_stack_regs,
23102         compensate_edge, convert_regs_1): Likewise.
23103         * regclass.c (scan_one_insn): Likewise.
23104         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
23105         regmove_optimize, fixup_match_1, single_set_for_csa,
23106         combine_stack_adjustments_for_block): Likewise.
23107         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
23108         * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
23109         find_equiv_reg): Likewise.
23110         * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
23111         reload_as_needed, emit_input_reload_insns, do_output_reload,
23112         delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
23113         Likewise.
23114         * reorg.c (find_end_label, emit_delay_sequence,
23115         delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
23116         get_jump_flags, rare_destination, mostly_true_jump,
23117         try_merge_delay_insns, redundant_insn, own_thread_p,
23118         fill_simple_delay_slots, fill_slots_from_thread,
23119         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
23120         dbr_schedule): Likewise.
23121         * resource.c (find_basic_block, next_insn_no_annul,
23122         find_dead_or_set_registers, mark_target_live_regs): Likewise.
23123         * rtl.h (RTX_PREV): Likewise.
23124         * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
23125         no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
23126         reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
23127         find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
23128         tablejump_p, computed_jump_p, insns_safe_to_move_p,
23129         find_first_parameter_load, can_hoist_insn_p): Likewise.
23130         * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
23131         sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
23132         * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
23133         schedule_ebbs): Likewise.
23134         * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
23135         is_conditionally_protected, can_schedule_ready_p,
23136         add_branch_dependences, debug_dependencies): Likewise.
23137         * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
23138         Likewise.
23139         * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
23140         reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
23141         set_dominates_use, ujump_to_loop_cont): Likewise.
23142         * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
23143         * varasm.c (output_constant_pool_1): Likewise.
23145 2004-07-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
23147         * tree-scalar-evolution.c: New file.
23148         * tree-scalar-evolution.h: New file.
23149         * tree-ssa-loop-niter.c: New file.
23150         * Makefile.in (SCEV_H): New.
23151         (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
23152         * cfgloop.h (struct loop): Add bounds field.
23153         * tree-flow.h (struct tree_niter_desc): New type.
23154         (number_of_iterations_cond, number_of_iterations_exit,
23155         loop_niter_by_eval, find_loop_niter_by_eval,
23156         estimate_numbers_of_iterations, can_count_iv_in_wider_type,
23157         free_numbers_of_iterations_estimates): Declare.
23158         * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
23159         * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
23160         * doc/invoke.texi (max-iterations-to-track): Document.
23162 2004-07-08  Kaz Kojima  <kkojima@gcc.gnu.org>
23164         * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
23165         * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
23166         (MODE_AFTER): Add cast appropriately.
23167         * config/sh/sh.md (movdi splitter): Likewise.
23168         (casesi_worker_2): Add const qualifier appropriately.
23169         (eh_return): Remove unused variable.
23170         (insv): Initialize v;
23172 2004-07-08  Richard Henderson  <rth@redhat.com>
23174         * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
23175         * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23176         (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
23177         * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
23178         (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
23180         * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
23181         * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23182         (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
23183         * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
23185         * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
23186         * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23187         (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
23188         * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
23190         * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
23191         * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23192         (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
23193         * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
23195         * config/i860/i860-protos.h (i860_va_arg): Remove.
23196         * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23197         (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
23198         * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
23200 2004-05-31  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
23202         * system.h: Prototype getpagesize if missing.
23203         * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
23204         * configure: Regenerate.
23205         * config.in: Regenerate.
23207 2004-07-08  Richard Henderson  <rth@redhat.com>
23209         * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
23210         * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23211         (fr30_gimplify_va_arg_expr): New.
23212         (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
23213         * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
23215 2004-07-08  Vladimir Makarov  <vmakarov@redhat.com>
23217         PR target/16414
23218         * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
23219         of asm_noperands result.
23221 2004-07-08  Richard Henderson  <rth@redhat.com>
23223         * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
23224         * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23225         (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
23226         * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
23228 2004-07-08  Richard Henderson  <rth@redhat.com>
23230         * builtins.c (ind_gimplify_va_arg_expr): New.
23231         * tree.h (ind_gimplify_va_arg_expr): Declare.
23232         * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
23234 2004-07-08  Jan Beulich  <jbeulich@novell.com>
23236         * expmed.c (extract_bit_field): Correct condition to use vec_extract
23237         patterns also on vector elements other than the first one.
23238         * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
23239         break statements.
23241 2004-07-08  Geoffrey Keating  <geoffk@apple.com>
23243         * config/rs6000/darwin-ldouble.c: Correct reference
23244         to the Linnainmaa paper.
23246 2004-07-08  Richard Henderson  <rth@redhat.com>
23248         * config/arc/arc-protos.h (arc_va_arg): Remove.
23249         * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23250         (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
23251         * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
23253         * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
23254         * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
23255         (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
23256         * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
23258 2004-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23260         * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
23262 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
23264         * c-decl.c (static_ctors, static_dtors): Make static.
23265         (pop_file_scope): Call c_common_write_pch and
23266         cgraph_finalize_compilation_unit here.
23267         (build_cdtor): Moved here from c-objc-common.c; simplify.
23268         (c_write_global_declarations_1): Clarify comment.
23269         (c_write_global_declarations): Close the external scope before
23270         doing anything else.  Call build_cdtor, cgraph_optimize, and
23271         mudflap_finish_file here.
23272         * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
23273         Clarify comment.
23274         * c-objc-common.c: No need to include cgraph.h.
23275         (build_cdtor): Moved to c-decl.c.
23276         (c_objc_common_finish_file): Delete.
23277         * c-tree.h: Update to match.
23278         * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
23279         (generate_static_references): Set TREE_USED before calling finish_decl.
23280         Eliminate unnecessary dummy declaration.  Call rest_of_decl_compilation
23281         on the static_instances_decl.
23283 2004-07-08  Zack Weinberg  <zack@codesourcery.com>
23285         * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
23286         decls when there is only one input translation unit.
23287         * langhooks.c (lhd_set_decl_assembler_name): Partially revert
23288         change of 2004-07-05; do not treat declarations with
23289         DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
23290         * opts.c (cur_in_fname): Delete.
23291         * opts.h: Likewise.
23292         * tree.c: Revert changes of 2004-07-05; no special treatment
23293         for TRANSLATION_UNIT_DECLs.
23294         * Makefile.in (tree.o): Update dependencies.
23296 2004-07-08  Roger Sayle  <roger@eyesopen.com>
23298         * builtins.c (fold_builtin_strcpy): Merge functionality from
23299         simplify_builtin_strcpy.  Add additional len argument.  No longer
23300         static.  Remove function prototype.
23301         (fold_builtin_strncpy): Likewise integrate functionality from
23302         simplify_builtin_strncpy.  Add additional slen argument.  No
23303         longer static.  Remove function prototype.
23304         (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
23305         (simplify_builtin_fputs): Rename to fold_builtin_fputs.  Change
23306         types of "ignore" and "unlocked" parameters to bool.
23307         (fold_builtin_1):  Add additional ignore argument.  Call renamed
23308         fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
23309         builtins.  Update arguments to fold_builtin_strncpy and
23310         fold_builtin_strcpy.  Add function prototype.
23311         (fold_builtin): Add additional Boolean ignore argument to pass
23312         to fold_builtin_1.
23313         (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
23314         and fold_builtin_strncpy instead of simplify_builtin_fputs,
23315         simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
23317         * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
23318         simplify_builtin_strncpy): Delete function prototypes.
23319         * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
23320         fold_builtin_strncpy): Add function prototypes here.
23321         (fold_builtin): Update function prototype with new "bool ignore".
23323         * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
23324         (ccp_fold_builtin):  Update call to fold_builtin.  Call
23325         fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
23326         instead of simplify_builtin_fputs, simplify_builtin_strcpy and
23327         simplify_builtin_strncpy respectively.
23328         * fold-const.c (fold): Update call to fold_builtin.
23330 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
23332         * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
23333         to strcpy.
23335         * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
23336         (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
23337         (FUNCTION_ARG_CALLEE_COPIES): Likewise.
23338         * calls.c: Remove ifdefs of macros above.
23339         * functions.c: Likewise.
23340         * expr.c: Likewise.
23342 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23344         * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
23345         (arch attribute): Delete.
23346         (current_function_calls_alloca attribute): Rename into calls_alloca.
23347         (calls_eh_return): New attribute.
23348         (leaf_function): Likewise.
23349         (length attribute): Fix formula for sibcalls.
23350         (return insn): Correctly compute the 'length' attribute.
23351         (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
23353 2004-07-08  Richard Henderson  <rth@redhat.com>
23355         * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
23356         (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
23357         (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
23358         * tree-eh.c (lower_eh_constructs_1): Likewise.
23359         * tree-sra.c (sra_walk_modify_expr): Likewise.
23360         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23361         (eliminate_unnecessary_stmts): Likewise.
23362         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
23363         * tree-tailcall.c (optimize_tail_call): Likewise.
23364         * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
23366 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
23367             Jakub Jelinek  <jakub@redhat.com>
23369         * config/i386/i386.c (override_options): Enable
23370         SSE prefetches with -mtune, as long as we are
23371         compiling for i686 or higher.  All i686 processors
23372         accept SSE prefetches as NOPS, some i586's don't.
23374 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23376         PR target/10567
23377         * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
23379 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
23381         * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
23382         the handling of clobbering ASM_EXPRs.
23384 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23386         PR target/16430
23387         * config/sparc/sparc.c (function_value): In 64-bit mode,
23388         return the aggregates larger than 16 bytes like unions.
23390 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23392         PR target/16199
23393         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
23394         'temp' is zero, generate new pseudos as needed and emit the
23395         sequence of insns in single-assignment form.  Resync comments
23396         with code.
23397         (sparc_emit_set_const64): Pass zero as 'temp' argument to above
23398         function before reload.
23400 2004-07-08  Nathan Sidwell  <nathan@codesourcery.com>
23402         * vec.c (vec_assert_fail): Remove duplicate 'function'.
23404         * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
23406         * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
23407         Allocation is signed.
23408         (VEC_reserve): Return flag, allocation is signed.
23410 2004-07-08  Richard Henderson  <rth@redhat.com>
23412         * tree-ssa-ccp.c (fold_stmt): Get type directly from
23413         OBJ_TYPE_REF_OBJECT.
23415 2004-07-08  Joseph S. Myers  <jsm@polyomino.org.uk>
23416             Neil Booth  <neil@daikokuya.co.uk>
23418         PR c/2511
23419         PR c/3325
23420         * c-decl.c (finish_struct): Ensure bit-fields are given the
23421         correct type.
23422         * c-common.c (c_common_signed_or_unsigned_type): For C, require
23423         the precision to match as well as the mode.
23424         * expr.c (reduce_to_bit_field_precision): New function.
23425         (expand_expr_real_1): Reduce expressions of bit-field type to
23426         proper precision.
23427         * langhooks.h (reduce_bit_field_operations): New hook.
23428         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
23429         Define.
23430         * c-lang.c, objc/objc-lang.c
23431         (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
23432         * objc/objc-act.c (check_ivars): Convert types to bit-field types
23433         before checking.
23434         * tree.c (build_nonstandard_integer_type): New function.
23435         * tree.h (build_nonstandard_integer_type): New prototype.
23436         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
23437         conversions between integer and boolean types as useless.
23439 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
23441         * c-common.c (c_common_nodes_and_builtins): Do not
23442         create __builtin_ptrdiff_t and __builtin_size_t.
23444 2004-07-08  Andrew Pinski  <apinski@apple.com>
23446         * Makefile.in (libbackend.o): Add -combine to the gcc
23447         command line.
23449 2004-07-08  Nick Clifton  <nickc@redhat.com>
23451         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
23452         Set to -Os.
23454 2004-07-08  Richard Henderson  <rth@redhat.com>
23456         * except.c (expand_eh_region_start, expand_eh_region_end,
23457         expand_eh_handler, expand_eh_region_end_cleanup,
23458         expand_start_all_catch, expand_start_catch, expand_end_catch,
23459         expand_end_all_catch, expand_eh_region_end_allowed,
23460         expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
23461         expand_eh_region_end_fixup): Remove.
23462         * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
23463         cleanups, outer_cleanups, label_chain, exception_region.
23464         (struct goto_fixup): Remove stack_level, cleanup_list_list.
23465         (struct label_chain): Remove.
23466         (struct stmt_status): Remove x_stack_block_stack.
23467         (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
23468         fixup_gotos, save_stack_pointer, expand_decl_cleanup,
23469         expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
23470         end_cleanup_deferral, last_cleanup_this_contour,
23471         containing_blocks_have_cleanups_or_stack_level,
23472         any_pending_cleanups): Remove.
23473         (expand_null_return_1): Take no arguments.
23474         (expand_label, expand_naked_return, expand_return,
23475         expand_start_bindings_and_block, expand_end_bindings, expand_decl,
23476         expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
23477         expand_end_case_type): Don't use any of them.
23478         * calls.c (expand_call): Likewise.
23479         * dojump.c (do_jump): Likewise.
23480         * function.c (expand_function_end): Likewise.
23481         * expr.c (store_expr, expand_expr_real_1): Likewise.
23482         (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
23483         (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
23484         CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
23485         EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
23486         * fold-const.c (fold_checksum_tree): Use first_rtl_op.
23487         * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
23488         * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
23489         for WITH_CLEANUP_EXPR.
23490         (gimple_push_cleanup): Likewise.
23491         * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
23492         * print-tree.c (print_node): Likewise.
23493         * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
23494         * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
23495         (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
23496         * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
23497         (GOTO_SUBROUTINE_EXPR): Remove.
23498         * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
23499         (DECL_TOO_LATE): Remove.
23500         * except.h, tree.h: Update decls.
23502 2004-07-08  Paolo Bonzini  <bonzini@gnu.org>
23504         * explow.c (optimize_save_area_alloca): Do not accept parameters.
23505         * passes.c (rest_of_handle_final): Handle symout.
23506         (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
23507         Push timevar here.
23508         (rest_of_handle_sched): Break out SMS.  Remove ifs for
23509         flag_schedule_insns and flag_modulo_sched.
23510         (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
23511         collect at the end.
23512         (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
23513         (rest_of_handle_partition_blocks, rest_of_handle_sms,
23514         rest_of_handle_if_after_reload, rest_of_handle_peephole2,
23515         rest_of_handle_mode_switching, rest_of_handle_jump,
23516         rest_of_handle_guess_branch_prob, rest_of_handle_eh,
23517         rest_of_handle_jump2, rest_of_handle_postreload,
23518         rest_of_handle_flow2, rest_of_clean_state,
23519         rest_of_handle_shorten_branches,
23520         rest_of_handle_prologue_epilogue,
23521         rest_of_handle_branch_target_load_optimize): New.
23522         (rest_of_compilation): Call the above.  Remove ggc_collect
23523         calls moved to rest_of_handle_*.
23524         * rtl.h (optimize_save_area_alloca): Do not accept parameters.
23526         * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
23527         * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
23528         * except.h (set_nothrow_function_flags): Update comment.
23529         * function.c (current_function_nothrow): Remove.
23530         * output.h (current_function_nothrow): Remove.
23531         * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
23532         * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
23534 2004-07-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
23536         PR bootstrap/16326
23537         * reorg.c: Revert 2004-06-30 change.
23538         (find_end_label): If HAVE_epilogue and !HAVE_return,
23539         return 0 instead of creating a label at the end of the insn chain.
23540         (optimize_skip): Account for the failure mode of find_end_label.
23541         (fill_simple_delay_slots): Likewise.
23542         (fill_slots_from_thread): Likewise.
23543         (relax_delay_slots): Likewise.
23545 2004-07-08  Diego Novillo  <dnovillo@redhat.com>
23547         * tree-flow.h (addressable_vars): Declare.
23548         * tree-ssa-alias.c (addressable_vars): Define.
23549         (setup_pointers_and_addressables): Add addressable variables
23550         to addressable_vars.
23551         * tree-ssa-operands.c (get_stmt_operands): Move
23552         handling of ASM_EXPRs ...
23553         (get_asm_expr_operands): ... here.
23554         When the ASM_EXPR clobbers memory, also clobber addressable
23555         variables.
23556         * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
23557         (delete_tree_ssa): Reset addressable_vars.
23559 2004-07-07  Jan Beulich  <jbeulich@novell.com>
23560             Richard Henderson  <rth@redhat.com>
23562         * varasm.c (assemble_variable): Use assemble_zeros for
23563         zero-initialized variables.
23564         (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
23565         for SECCAT_BSS and SECCAT_TBSS.
23567 2004-07-07  Jan Beulich  <jbeulich@novell.com>
23569         * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
23571         * expmed.c (emit_store_flag): Also special-case double-word
23572         (in-)equality comparison against -1.
23574         * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
23575         passing arguments the containers for which are registers.
23577         * calls.c (emit_library_call_value_1): Use mode of function parameter
23578         rather than that of argument since constants have none.
23580 2004-07-08  Alexandre Oliva  <aoliva@redhat.com>
23582         Introduce H8SX support.
23583         * expr.c (expand_strcpy): Renamed and moved to...
23584         * builtins.c (expand_movstr): ... here.  Tweak.
23585         (expand_builtin_strcpy): Adjust.  Use movstr if len can't be
23586         computed or has side effects.
23587         (expand_builtin_stpcpy): Likewise.  Use strcpy if return value is
23588         unused, or if mempcpy fails.  Adjust the return value in the
23589         latter case.  Use movstr if everything else fails.
23590         * doc/md.texi (movstr): Document.
23591         (movmemM, clrmemM): Fix explanation of memory block operands.
23592         * config/h8300/h8300.md (stpcpy): Renamed to...
23593         (movstr): ... this.  Adjust.
23594         2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
23595         * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
23596         movmem* and clrstr* to clrmem*.
23597         2004-06-27  Alexandre Oliva  <aoliva@redhat.com>
23598         * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
23599         GENERAL_REGS, always.
23600         (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
23601         getting the stack pointer as addr.
23602         * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
23603         from general_operand_dst.
23604         * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
23605         variant of...
23606         (movmd_internal): ... this.  Add modes to operands.  Disparage `D'
23607         instead of requiring it to match only before reload.
23608         (stpcpy_internal_normal): New, normal-mode variant of...
23609         (stpcpy_internal): ... this.  Add modes to operands.  Disparage
23610         `D' instead of requiring it to match only before reload.
23611         * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
23612         mode argument.
23613         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
23614         * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
23615         h8300_get_index.
23616         * config/h8300/h8300.md (attr type): Add call.
23617         (attr can_delay): If type is call, set it no.
23618         (call, call_value): Set type to call.
23619         2004-06-21  Alexandre Oliva  <aoliva@redhat.com>
23620         * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
23621         2004-06-16  Alexandre Oliva  <aoliva@redhat.com>
23622         * tree.c (get_narrower): Don't narrow integral types into
23623         non-integral types.
23624         * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
23625         frame_size *before* the first use.
23626         * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
23627         on input.
23628         (peephole2): Don't widen instructions that push SP.  Move
23629         decrement of SP to the end of all stm-generating peepholes.
23630         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
23631         * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
23632         and OR to set it to all ones.
23633         2003-07-24  Richard Sandiford  <rsandifo@redhat.com>
23634         * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
23635         (call, call_value): Set can_delay to "no".
23636         2003-07-22  Richard Sandiford  <rsandifo@redhat.com>
23637         * config/h8300/h8300.md (extzv): Make subreg check more robust.
23638         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23639         * config/h8300/h8300.md (*brabit): Remove.
23640         * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
23641         zero_extract.  Use bit_memory_operand as the predicate for
23642         operand 1 and 'WU' as the constraint.  Check the difference
23643         between the base length and the final one when deciding which
23644         type of branch to use.
23645         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23646         * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
23647         Use convert_move to extend the result for TARGET_H8300SX.  Check
23648         for QImode memory references.  Optimize the case where the
23649         destination is a paradoxical subreg.
23650         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23651         * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
23652         * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
23653         2003-07-21  Richard Sandiford  <rsandifo@redhat.com>
23654         * config/h8300/h8300.md: Include mova.md
23655         (length_table): Add mova and mova_zero.
23656         * config/h8300/h8300.c (print_operand): Handle '%o'.  Print a length
23657         after all constant addresses for '%R', '%X', '%T' and '%S'.
23658         (h8300_mova_length): New function.
23659         (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
23660         * config/h8300/t-h8300 (mova.md): Generate from genmova.sh.  Add to
23661         dependencies for s-config, etc.
23662         * config/h8300/gemova.sh: New file.
23663         * config/h8300/mova.md: Generated.
23664         2003-07-20  Alexandre Oliva  <aoliva@redhat.com>
23665         * config/h8300/h8300.c (h8300_bitfield_length): New.
23666         (nibble_operand): Adjust.
23667         (h8300_binary_length): Handle conditional binary op.
23668         (h8300_insn_length_from_table): Handle bitfield and bitbranch.
23669         * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
23670         P#<X, respectively.  The original P is now IP4>X.  Introduced P#>0
23671         and P#<0, unused so far.  W and Y are now prefixes to multi-letter
23672         constraints.  WU is introduced as a variant of U that requires a
23673         mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
23674         * config/h8300/h8300.md (attr type): Added bitbranch.
23675         (attr length_table): Added bitfield and bitbranch.
23676         (attr length): Compute bitbranch length.
23677         (andqi): Separate pattern for H8300SX.  Use bfld for loading the
23678         least-significant bit of a byte.
23679         (brabit, brabc, brabs): New.
23680         (insv, extzv): Emit bfst and bfld on H8300SX.
23681         (bfld, bfst, seq, sne): New.
23682         (bstzhireg, cmpstz, bstz, bistz): New.
23683         (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
23684         (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
23685         2003-07-11  Richard Sandiford  <rsandifo@redhat.com>
23686         * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
23687         (h8sx_unary_memory_operator): New function.
23688         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
23689         (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
23690         * config/h8300/h8300.md: Add peepholes to combine reloads and
23691         arithmetic insns.
23692         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
23693         * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
23694         (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
23695         (and?i, ior?i, xor?i): Likewise.
23696         2003-07-10  Richard Sandiford  <rsandifo@redhat.com>
23697         * config/h8300/h8300.c: Move enums and prototypes to head of file.
23698         Various whitespace fixes.
23699         (h8300_constant_length): New function, split out from...
23700         (h8300_displacement_size): ...here.  Rename h8300_displacement_length.
23701         (h8300_classify_operand): Use IN_RANGE.
23702         (h8300_classify_operand): Use h8300_constant_length.
23703         (h8300_short_move_mem_p): Tighten size check.
23704         (h8sx_mergeable_memrefs_p): Tighten equality check.
23705         2003-06-30  Richard Sandiford  <rsandifo@redhat.com>
23706         * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
23707         for -msx.
23708         * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
23709         * config/h8300/crtn.asm: Likewise.
23710         * config/h8300/lib1funcs.asm: Likewise.  Use 32-bit pointers
23711         if __H8300SX__ is defined.
23712         2003-06-27  Richard Sandiford  <rsandifo@redhat.com>
23713         * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
23714         * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
23715         (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
23716         addresses as mode-dependent.
23717         * config/h8300/h8300.c (print_operand_address): Update call to
23718         h8300_get_index.
23719         (h8300_get_index): Take a mode argument.  Rework to fix an
23720         earlier misunderstanding.
23721         2003-06-26  Richard Sandiford  <rsandifo@redhat.com>
23722         * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
23723         into a register if TARGET_H8300SX.
23724         (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
23725         TARGET_H8300SX.  Also disable related define_splits.
23726         (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
23727         2003-06-23  Richard Sandiford  <rsandifo@redhat.com>
23728         * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
23729         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
23730         * config/h8300/h8300.h (OK_FOR_Z): New macro.
23731         (EXTRA_CONSTRAINT_STR): Check it.
23732         * config/h8300/h8300.c (h8300_classify_operand): Accept null
23733         class arguments.
23734         (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
23735         * config/h8300/h8300.md (length_table): Add mov_imm4.
23736         (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
23737         2003-06-20  Richard Sandiford  <rsandifo@redhat.com>
23738         * genattrtab.c (write_eligible_delay): Allow candidate_insn to
23739         be a label.
23740         * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
23741         * config/h8300/h8300.c (h8300_reorg): New function.
23742         (TARGET_MACHINE_DEPENDENT_REORG): Define.
23743         * config/h8300/h8300.md (length): Subtract the length of the
23744         delay slot from (pc) when checking the range of forward branches.
23745         (delay_slot, can_delay): New attributes.
23746         (define_delay): Add bra/s handling.
23747         (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
23748         (jump): Add delayed-branch handling.
23749         2003-06-17  Richard Sandiford  <rsandifo@redhat.com>
23750         * expr.c (expand_strcpy): New function.
23751         * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
23752         (expand_builtin_stpcpy): Likewise.
23753         * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
23754         (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
23755         * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
23756         handling to improve register allocation for -fno-omit-frame-pointer.
23757         (h8sx_split_movmd): Delete, moving er6 handling into...
23758         (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
23759         * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
23760         (movmd): Add calls to copy_rtx.
23761         (movmd_internal): In the second alternative, allow the initial and
23762         final destination registers to be different .  Update the splitter
23763         accordingly.  Call h8300_swap_into_er6 and h8300_swap_out_of_er6
23764         instead of h8sx_split_movmd.
23765         (stpcpy, movsd): New expanders.
23766         (movsd_internal): New define_insn.
23767         2003-06-13  Richard Sandiford  <rsandifo@redhat.com>
23768         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
23769         (h8sx_emit_movmd, h8sx_split_movmd): Declare.
23770         * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
23771         and DESTINATION_REGS.
23772         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
23773         (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
23774         (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
23775         (h8300_move_ratio): Declare.
23776         (MOVE_RATIO): Use it.
23777         * config/h8300/h8300.c (h8300_move_ratio): New variable.
23778         (h8300_init_once): Initialize it.
23779         (h8300_reg_class_from_letter): New function.
23780         (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
23781         (h8sx_emit_movmd, h8sx_split_movmd): New functions.
23782         * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
23783         (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
23784         (movstrsi, movmd): New expanders.
23785         (movmd_internal): New insn.
23786         2003-06-06  Richard Sandiford  <rsandifo@redhat.com>
23787         * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
23788         2003-06-04  Richard Sandiford  <rsandifo@redhat.com>
23789         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
23790         * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
23791         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
23792         * config/h8300/h8300.c (nibble_operand): Fix warning.
23793         * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
23794         (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
23795         (movsf_h8300h): Disable for TARGET_H8300SX.
23796         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
23797         * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
23798         h8300_stm_parallel and h8300_return_parallel.
23799         * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
23800         h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
23801         h8300_stm_parallel, h8300_return_parallel): New functions.
23802         (h8300_expand_prologue): Don't enforce ldm/stm register alignment
23803         if TARGET_H8300SX.  Use h8300_push_pop.
23804         (h8300_expand_epilogue): Likewise.  Try to merge the return insn
23805         and final pop when generating h8sx code.  Always emit some form
23806         of return insn.
23807         * config/h8300/h8300.md: Don't enforce register alignment in
23808         stm peepholes if TARGET_H8300SX.
23809         (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
23810         (ldm_h8300s_[234], stm_h8300_[234]): Disable.
23811         (epilogue): Expect h8300_expand_epilogue to emit a return insn.
23812         2003-06-03  Richard Sandiford  <rsandifo@redhat.com>
23813         * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
23814         (MULTILIB_DIRNAMES): Add a directory for it.
23815         (MULTILIB_MATCHES): Delete.
23816         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
23817         * final.c (walk_alter_subreg): Handle addresses with subregs
23818         inside a ZERO_EXTEND or AND.
23819         * config/h8300/h8300-protos.h (h8300_get_index): Declare.
23820         * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
23821         if TARGET_H8300SX.
23822         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
23823         * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
23824         @(dd,Rn.w) and @(dd,ERn.L).
23825         (h8300_displacement_size): Take the whole address as argument.
23826         (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
23827         2003-05-28  Richard Sandiford  <rsandifo@redhat.com>
23828         * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
23829         (h8sx_mergeable_memrefs_p): Declare.
23830         * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
23831         (HAVE_PRE_INCREMENT): Likewise.
23832         (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
23833         addresses for TARGET_H8300SX,
23834         * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
23835         and POST_DEC.
23836         (movb_length_table, movl_length_table): New tables.
23837         (movw_length_table): Define to movb_length_table.
23838         (h8300_displacement_size): New, split out from...
23839         (h8300_classify_address): ...here.  Handle pre/post inc/dec.
23840         (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
23841         (h8300_insn_length_from_table): Add cases for movb, movw and movl.
23842         (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
23843         (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
23844         (compute_plussi_length, compute_plussi_cc): Update accordingly.
23845         (h8sx_unary_shift_operator): Get the mode from the operator.
23846         (binary_shift_operator): Likewise.
23847         * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
23848         a memory reference, check whether the reference is offsettable.
23849         (length_table): Add movb, movw and movl.
23850         (movqi): Add new h8sx pattern.  Don't force one operand to be a
23851         register when generating h8sx code.
23852         (movhi, movsi, movsf): Likewise.
23853         (movstrictqi): Use the length_table attribute.
23854         (movstricthi): Likewise.  Add h8sx alternative for mov.w #xx:3,Rn.
23855         (addqi3): Split into a define_expand and define_insn.  Don't accept
23856         memory operands in the expander.  Use h8300_operands_match_p to
23857         check for matching operands in the define_insn.
23858         (subqi3, negqi2, one_cmplqi2): Likewise.
23859         (add[hs]i3): Don't accept memory operands in the expander.  Likewise
23860         in any patterns that are unused in h8sx code.  In the h8sx patterns,
23861         use h8300_operands_match_p to check whether operands match.
23862         (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
23863         one_cmpl[hs]i3): Likewise.
23864         (andqi3, iorqi3, xorqi3): Likewise.  Don't call fix_bit_operand
23865         in the expander.
23866         2003-05-23  Richard Sandiford  <rsandifo@redhat.com>
23867         * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
23868         (h8300_insn_length_from_table): Add a second parameter.
23869         (output_h8sx_shift): Declare.
23870         * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
23871         (EXTRA_CONSTRAINT): Replace with...
23872         (EXTRA_CONSTRAINT_STR): ...this.  Use OK_FOR_W and OK_FOR_Y.
23873         (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
23874         (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
23875         and h8sx_binary_shift_operator.
23876         * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
23877         for TARGET_H8300SX.
23878         (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
23879         (bit_memory_operand, fix_bit_operand): Likewise.
23880         (h8300_length_table_for_insn): Remove.
23881         (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
23882         instructions.
23883         (h8300_short_immediate_length, h8300_binary_length): New functions.
23884         (h8300_insn_length_from_table): Add an opcodes parameter.  Rework.
23885         (output_plussi): Use sub to add negative constants.
23886         (compute_plussi_length): Adjust accordingly.
23887         (h8sx_single_shift_type): New enum.
23888         (h8sx_single_shift, h8sx_unary_shift_operator,
23889         h8sx_binary_shift_operator, output_h8sx_shift): New functions.
23890         (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
23891         single h8sx instruction.  Return false in this case.
23892         * config/h8300/h8300.md (length_table): Add short_immediate.
23893         (length): Pass the operand array to h8300_insn_length_from_table.
23894         (adjust_length): Assume "no" for insns with a length_table attribute.
23895         (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
23896         (*addhi3_h8300hs): Don't use for h8sx.
23897         (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
23898         and sub.w #xx:3.
23899         (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
23900         1's predicate to nonimmediate_operand.  Only skip default expansion
23901         if expand_a_shift or expand_a_rotate returns true.  Add new patterns
23902         for single h8sx shift instructions.
23903         2003-05-22  Alexandre Oliva  <aoliva@redhat.com>
23904         * config/h8300/h8300.c (nibble_operand): Split out of...
23905         (reg_or_nibble_operand): ... this.
23906         * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
23907         * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
23908         umulhisi3): Introduce expand, and introduce separate insns for
23909         sign- or zero-extended REG and already-extended CONST_INT.
23910         2003-05-20  Richard Sandiford  <rsandifo@redhat.com>
23911         * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
23912         * config/h8300/h8300.md (subqi3): Generalize for h8sx.
23913         (subhi3): Likewise.  Don't accept immediates for operand 1.
23914         Remove the early clobber from second alternative of the h8300s pattern.
23915         (subsi3): Generalize for h8sx.  Force operand 2 into a register
23916         on plain h8300 targets.
23917         (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
23918         (subsi3_h8300h): Generalize for h8sx.
23919         (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
23920         2003-05-19  Alexandre Oliva  <aoliva@redhat.com>
23921         * config/h8300/h8300.c (reg_or_nibble_operand): New.
23922         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
23923         (TARGET_H8300SXMUL): New.
23924         (CONST_OK_FOR_P): New.
23925         (CONST_OK_FOR_LETTER_P): Adjust.
23926         * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
23927         umulhisi3): Accept 4-bit immediate on H8SX.
23928         (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
23929         (udivsi3, divhi3, udivsi3, divsi3): New.
23930         2003-05-19  Richard Sandiford  <rsandifo@redhat.com>
23931         * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
23932         * config/h8300/h8300.h (OK_FOR_Q): New macro.
23933         (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
23934         (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
23935         Add ADDRESSOF to the bit_operand entry.
23936         * config/h8300/h8300.c (h8300_dst_operand): New predicate.
23937         (h8300_src_operand): Likewise.
23938         (bit_operand): Check nonimmediate_operand rather than general_operand.
23939         Accept any nonimmediate_operand in h8sx code.
23940         (h8300_and_costs): Initialize operands[1].
23941         (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
23942         (h8300_operand_class): New enum.
23943         (h8300_length_table): New typedef.
23944         (addb_length_table, addw_length_table, addl_length_table,
23945         logicl_length_table): New tables.
23946         (logicb_length_table, logicw_length_table): New macros.
23947         (h8300_classify_operand, h8300_length_from_table,
23948         h8300_length_table_for_insn, h8300_unary_length,
23949         h8300_insn_length_from_table): New functions.
23950         (output_plussi): Only use adds and subs for register destinations.
23951         Disable redundant clause.
23952         (compute_plussi_cc): Likewise.
23953         (compute_plussi_length): Likewise.  Use h8300_length_from_table
23954         to work out the length of an insn.
23955         (output_logical_op): Only use narrower immediate instructions
23956         if the destination is a register.
23957         (compute_logical_op_cc): Likewise.
23958         (compute_logical_op_length): Likewise.  Use h8300_length_from_table.
23959         (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
23960         * config/h8300/h8300.md (length_table): New attribute.
23961         (length): When an instruction has a length_table attribute, use
23962         h8300_insn_length_from_table to calculate its default length.
23963         (cmpqi): Use h8300_dst_operand for the first operand and
23964         h8300_src_operand for the second.
23965         (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
23966         negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
23967         addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
23968         iorsi3, xorhi3, xorsi3): Likewise.
23969         (andqi3): Use h8300_src_operand for operand 2.  Adjust the condition
23970         so that it allows any combination of operands for TARGET_H8300SX.
23971         (iorqi3, xorqi3): Likewise.
23972         (cmpqi): Use the length_table attribute.
23973         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
23974         xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
23975         (cmpqi): Add 'Q' constraint.
23976         (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
23977         iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
23978         2003-05-14  Richard Sandiford  <rsandifo@redhat.com>
23979         * config/h8300/h8300.h (MASK_H8300SX): New macro.
23980         (TARGET_H8300S): True for both -ms and -msx.
23981         (TARGET_H8300SX): New macro.
23982         (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
23983         * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
23984         * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
23985         * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
23986         [Temporary change.]
23987         2003-02-28  Alexandre Oliva  <aoliva@redhat.com>
23988         * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
23989         16-bit pointers and 32-bit ints.
23990         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
23991         CONST_DOUBLE with mode no wider than SImode.
23992         * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
23993         output operand.
23994         2003-02-27  Alexandre Oliva  <aoliva@redhat.com>
23995         * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
23996         or SUBREG thereof.
23997         * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
23998         2003-02-22  Alexandre Oliva  <aoliva@redhat.com>
23999         * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
24001 2004-05-28  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
24003         * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
24005 2004-07-07  Per Bothner  <per@bothner.com>
24007         * flow.c (attempt_auto_inc):  Remove now-redundant PUT_CODE.
24009 2004-07-07  Mike Stump  <mrs@apple.com>
24011         * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
24012         * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
24013         (machopic_finish): Likewise.
24015 2004-07-07  Richard Henderson  <rth@redhat.com>
24017         * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
24018         through any value-preserving cast.
24020 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
24022         * function.c (assign_parm_find_data_types): Call
24023         FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
24025 2004-07-07  Steven Bosscher  <stevenb@suse.de>
24027         * tree-cfg.c (group_case_labels): Remove case labels that have
24028         the same target as the default case.
24030 2004-07-07  Steven Bosscher  <stevenb@suse.de>
24032         * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
24033         regardless of DECL_LANG_SPECIFIC being present or not.
24034         * tree.h (DECL_NUM_STMTS): Purge.
24036 2004-07-07  Andrew Pinski  <apinski@apple.com>
24038         * configure: Regenerate with the right autoconf.
24040 2004-07-07  David Edelsohn  <edelsohn@gnu.org>
24042         * ifcvt.c (total_bb_rtx_cost): New function.
24043         (find_if_case_1): Compare rtx_cost of basic block to cost of
24044         BRANCH_COST insns.
24045         (find_if_case_2): Same.
24047 2004-07-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
24049         PR target/10567
24050         * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
24051         (output_return): Likewise.
24052         (output_sibcall): Abort if !flag_delayed_branch.
24053         (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
24054         (emit_and_preserve): New function.
24055         (sparc_output_mi_thunk): Use it.  Honor flag_delayed_branch.  Emit an
24056         indirect jump to the thunked-to function if !flag_delayed_branch.
24057         * config/sparc/sparc.md (delayed_branch): New attribute.
24058         (load_pcrel_sym): Honor flag_delayed_branch.  Use above
24059         attribute to compute the length of the insn.
24060         (goto_handler_and_restore): Likewise.
24062 2004-07-07  Andrew Pinski  <apinski@apple.com>
24064         PR tree-optimization/15777
24065         * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
24067         * expr.c (expand_expr_real_1): Fix formating.
24068         BUFFER_REF and IN_EXPR are dead.
24069         * fold-const.c (non_lvalue): BUFFER_REF is dead.
24070         * tree-inline.c (estimate_num_insns_1): Likewise.
24071         * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
24072         IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
24073         * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
24075 2004-07-07  H.J. Lu  <hongjiu.lu@intel.com>
24077         * collect2.c (dump_file): Don't call cplus_demangle if
24078         HAVE_LD_DEMANGLE is defined.
24079         (main): Pass "--demangle" to ld if no_demangle is not 0 and
24080         HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
24081         if HAVE_LD_DEMANGLE is defined.
24083         * configure.ac (--with-demangler-in-ld): Added
24084         (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
24085         --with-demangler-in-ld is used.
24086         * config.in: Regenerated.
24087         * configure: Likewise.
24089 2004-07-07  Roger Sayle  <roger@eyesopen.com>
24091         * config/rs6000/rs6000.c (struct processor_costs): Add new fields
24092         for simple floating point operations "fp", double precision
24093         multiplication "dmul", and single and double precision division
24094         "sdiv" and "ddiv".  Update all CPU variant tables as appropriate.
24095         (ppc630_cost): New table split from ppc620_cost, to distinguish
24096         differences in floating point latencies.
24097         (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
24098         (rs6000_rtx_costs): Add support for single and double precision
24099         floating point addition, subtraction, multiplication, division,
24100         fused-multiply-add, fused-multiply-sub, negation, absolute value
24101         and negative absolute value.  Tweak MEM case to use prefered idiom.
24103 2004-07-07  Richard Henderson  <rth@redhat.com>
24105         * tree-flow-inline.h (may_propagate_copy): Move...
24106         * tree-ssa-copy.c (may_propagate_copy): ... here.  Fail if we
24107         attempt to copy between types requiring conversion.
24108         * tree-flow.h (may_propagate_copy): Update decl.
24109         * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
24111 2004-07-07  Jakub Jelinek  <jakub@redhat.com>
24113         * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
24114         from -mtune= option.
24116 2004-07-07  Alexandre Oliva  <aoliva@redhat.com>
24118         * builtins.c: Rename movstr*, except for movstrict*, to
24119         movmem* and clrstr* to clrmem*.
24120         * expr.c: Likewise.
24121         * expr.h: Likewise.
24122         * genopinit.c: Likewise.
24123         * integrate.c: Likewise.
24124         * local-alloc.c: Likewise.
24125         * optabs.c: Likewise.
24126         * optabs.h: Likewise.
24127         * config/alpha/alpha.h: Likewise.
24128         * config/alpha/alpha.md: Likewise.
24129         * config/arm/arm-protos.h: Likewise.
24130         * config/arm/arm.c: Likewise.
24131         * config/arm/arm.md: Likewise.
24132         * config/avr/avr.md: Likewise.
24133         * config/c4x/c4x.c: Likewise.
24134         * config/c4x/c4x.md: Likewise.
24135         * config/frv/frv.md: Likewise.
24136         * config/i386/i386-protos.h: Likewise.
24137         * config/i386/i386.c: Likewise.
24138         * config/i386/i386.h: Likewise.
24139         * config/i386/i386.md: Likewise.
24140         * config/i860/i860.c: Likewise.
24141         * config/i860/i860.md: Likewise.
24142         * config/ip2k/ip2k.md: Likewise.
24143         * config/ip2k/libgcc.S: Likewise.
24144         * config/ip2k/t-ip2k: Likewise.
24145         * config/m32r/m32r.c: Likewise.
24146         * config/m32r/m32r.md: Likewise.
24147         * config/mcore/mcore.md: Likewise.
24148         * config/mips/mips.c: Likewise.
24149         * config/mips/mips.md: Likewise.
24150         * config/ns32k/ns32k.c: Likewise.
24151         * config/ns32k/ns32k.h: Likewise.
24152         * config/ns32k/ns32k.md: Likewise.
24153         * config/pa/pa.c: Likewise.
24154         * config/pa/pa.md: Likewise.
24155         * config/pdp11/pdp11.h: Likewise.
24156         * config/pdp11/pdp11.md: Likewise.
24157         * config/rs6000/rs6000.c: Likewise.
24158         * config/rs6000/rs6000.md: Likewise.
24159         * config/s390/s390-protos.h: Likewise.
24160         * config/s390/s390.c: Likewise.
24161         * config/s390/s390.md: Likewise.
24162         * config/sh/lib1funcs.asm: Likewise.
24163         * config/sh/sh.c: Likewise.
24164         * config/sh/sh.md: Likewise.
24165         * config/sh/t-sh: Likewise.
24166         * config/sparc/sparc.h: Likewise.
24167         * config/vax/vax.md: Likewise.
24168         * config/xtensa/xtensa.c: Likewise.
24169         * config/xtensa/xtensa.md: Likewise.
24170         * doc/invoke.texi: Likewise.
24171         * doc/md.texi: Likewise.
24172         * doc/rtl.texi: Likewise.
24174 2004-07-07  Richard Sandiford  <rsandifo@redhat.com>
24176         PR target/16407
24177         * config/mips/mips-protos.h (mips_declare_common_object): Declare.
24178         * config/mips/mips.c (mips_declare_common_object): New function,
24179         mostly split out from...
24180         (mips_output_aligned_decl_common): ...here.
24181         * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
24182         (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
24183         * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
24184         rather than ASM_OUTPUT_LOCAL.  Call mips_declare_common_object.
24186 2004-07-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24188         PR c/16392
24189         * function.c (assign_parms): Fix typo from previous change.
24191 2004-07-07  Jason Merrill  <jason@redhat.com>
24193         PR c++/15815
24194         * doc/extend.texi (C++ Interface): Correct information and
24195         discourage use.
24197 2004-07-07  Vladimir Makarov  <vmakarov@redhat.com>
24199         PR target/16130
24200         PR target/16142
24201         PR target/16143
24202         * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
24203         insn.
24205 2004-07-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
24207         PR target/1679.
24208         * config/m32r/m32r.c (m32r_function_symbol): New function:
24209         Generate a symbol name RTX with the correct m32r specific flags
24210         set.
24211         (block_move_call): Use new function to generate correct symbol.
24212         * config/m32r/m32r-protos.h: Add prototype for new funcion.
24213         * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
24214         function.
24216 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
24218         * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
24219         TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
24220         TYPE_BINFO_BASETYPE): Remove.
24221         (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
24222         to ...
24223         (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
24224         here.
24225         (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
24226         (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
24227         (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
24228         (struct tree_binfo): Rename base_types to base_binfos.
24229         * alias.c (record_component_aliases): Adjust BINFO macros.
24230         * dbxout.c (dbxout_type): Likewise.
24231         * dwarf2out.c (gen_member_die): Likewise.
24232         * sdbout.c (sdbout_one_type): Likewise.
24233         * tree-dump.c (deque_and_dump): Likewise.
24234         * config/i386/i386.c (classify_argument,
24235         contains_128bit_aligned_vector_p): Likewise.
24237 2004-07-07  Nick Clifton  <nickc@redhat.com>
24239         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
24240         arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
24242 2004-07-07  Nathan Sidwell  <nathan@codesourcery.com>
24244         * vec.h: Fix the example use.
24246 2004-07-06  Richard Henderson  <rth@redhat.com>
24248         * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
24249         * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
24250         * tree-inline.c (copy_body_r, setup_one_parameter,
24251         initialize_inlined_parameters, expand_call_inline,
24252         declare_inline_vars): Don't check it.
24253         (expand_calls_inline): Remove old version, rename new version
24254         from gimple_expand_calls_inline.
24255         * tree-optimize.c (execute_gimple): Remove.
24256         (pass_gimple): Don't run anything.
24258 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
24260         * doc/sourcebuild.texi: Use semicolons instead of commas in
24261         section title.
24263 2004-07-06  Richard Henderson  <rth@redhat.com>
24265         * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
24266         (sra_walk_modify_expr, scan_init): Likewise.
24267         (generate_element_zero): Check visited before scanning children.
24268         (generate_element_init): Set visited on error.
24269         (scalarize_init): Handle generate_element_init failure similar
24270         to use_block_copy.
24272 2004-07-06  Joseph S. Myers  <jsm@polyomino.org.uk>
24274         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
24275         (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
24277 2004-07-06  Richard Henderson  <rth@redhat.com>
24279         * config/i386/i386.c (legitimize_pic_address): Make static.
24280         (legitimize_address): Handle CONST with TLS operand.
24281         (ix86_expand_move): Don't call legitimize_pic_address directly.
24282         * config/i386/i386-protos.h (legitimize_pic_address): Remove.
24284 2004-07-06  Roger Sayle  <roger@eyesopen.com>
24286         * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
24287         (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
24288         (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
24289         is currently executed unconditionally, i.e. not in "else_bb".
24291 2004-07-06  Steven Bosscher  <stevenb@suse.de>
24293         * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
24294         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24295         * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
24296         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24297         * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
24298         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24299         * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
24300         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24301         * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
24302         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24303         * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
24304         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24305         * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
24306         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24307         * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
24308         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
24310 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
24312         * dojump.c (do_jump): REFERENCE_EXPR is dead.
24313         * expr.c (expand_expr_real_1): Ditto.
24314         * tree-inline.c (estimate_num_insns_1): Ditto.
24315         * tree-pretty-print.c (dump_generic_node): Ditto.
24316         (op_symbol): Ditto.
24317         * tree.def: Ditto.
24319 2004-07-06  Daniel Berlin  <dberlin@dberlin.org>
24321         * tree-ssa-pre.c (reference_node_pool): New pool.
24322         (find_or_generate_expression): Class 'r' is okay too.
24323         (create_value_expr_from): Ditto.
24324         (add_to_sets): LHS should not include vuses.
24325         (eliminate): Ditto.
24326         (compute_avail): Reverse ordering of tests.
24327         Valuize INDIRECT_REF as well.
24329 2004-07-06  Richard Sandiford  <rsandifo@redhat.com>
24331         PR rtl-optimization/16380
24332         * loop.c (check_dbra_loop): Sink comparison instructions if they
24333         do something other than set cc0.
24335 2004-07-06  James E Wilson  <wilson@specifixinc.com>
24337         * doc/interface.texi (longjmp and automatic variables): Delete
24338         paragraph recommending taking the address of a variable.
24340 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
24342         * vec.h (VEC_embedded_alloc): Remove.
24343         (VEC_embedded_size, VEC_embedded_init): New.
24344         (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
24345         MEM_STAT_INFO.
24346         (VEC_truncate): New.
24347         (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
24348         (vec_embedded_alloc): Remove.
24349         * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
24350         (vec_embedded_alloc): Remove.
24352 2004-07-06  Mark Mitchell  <mark@codesourcery.com>
24354         * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
24355         (gt-langhooks.h): Remove.
24357 2004-07-06  George Helffrich <george@gly.bris.ac.uk>
24359         * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
24361 2004-07-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
24363         * config/sparc/sparc.c (get_pc_symbol): Rename into
24364         add_pc_to_pic_symbol.
24365         (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
24366         (load_pic_register): Account for previous changes.
24367         Use reg_names.  Don't create the label twice.
24368         * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
24369         UNSPEC_LOAD_PCREL_SYM.
24370         (get_pc): Rename into load_pcrel_sym.  Add predicate to
24371         operands.  Remove condition.
24373 2004-07-06  Nathan Sidwell  <nathan@codesourcery.com>
24375         * dbxout.c (dbxout_type): Don't test whether the binfo slot of
24376         RECORD, UNION & QUAL_UNION is actually a binfo.
24378         * tree.h (TREE_VIA_VIRTUAL): Rename to ...
24379         (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
24380         (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
24381         * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
24382         * dwarf2out.c (add_data_member_location_attribute): Likewise.
24383         (gen_inheritance_die): Likewise.
24384         * tree-dump.c (deque_and_dump): Likewise.
24385         * doc/c-tree.texi (Binfos): Add under reconstruction note.
24387 2004-07-06  Steven Bosscher  <stevenb@suse.de>
24389         * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
24390         Define.
24391         * config/mcore/mcore.md: Model memory latency with a simple DFA
24392         pipeline description instead of a define_function_unit.
24394 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24396         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
24397         * langhooks.h (var_mod_type_p): Likewise.
24398         * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
24399         * expr.c (count_type_elements): Properly handle return from
24400         array_type_nelts and properly test for overflow.
24401         * gimplify.c (gimplify_init_constructor): Properly handle return
24402         from array_type_nelts.
24403         (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
24404         * integrate.c (copy_decl_for_inlining): Correct comments.
24405         * tree-inline.c (remap_decl): Update comments, remove dead code,
24406         and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
24407         (remap_type): Only remap if variably modified by vars in function
24408         being inlined.
24409         (copy_body_r): Use compatible_type langhooks to see when can fold.
24410         (setup_one_parameter): Don't remap type.
24411         (inline_forbidden_p_1): Add arg to variably_modified_type_p.
24412         * tree.c (recompute_tree_invarant_for_addr_expr): Properly
24413         compute TREE_INVARIANT for decl case.
24414         (find_var_from_fn): New function.
24415         (variably_modified_type_p): Add arg and call new function.
24416         * tree.h (variably_modified_type_p): Add extra arg.
24418 2004-07-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
24420         * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
24421         (goto_handler_and_restore_v9): Delete disabled insn.
24422         (goto_handler_and_restore_v9_sp64): Likewise.
24424 2004-07-05  Roger Sayle  <roger@eyesopen.com>
24426         * calls.c (load_register_parameters): Call expand_shift instead
24427         of expand_binop with ashl_optab (or other shift optab) directly.
24428         * expr.c (emit_group_load, emit_group_store): Likewise.
24429         * function.c (assign_parm_setup_block): Likewise.
24430         * stmt.c (shift_return_value): Likewise.
24432 2004-07-05  Jakub Jelinek  <jakub@redhat.com>
24434         * expr.c (expand_assignment): Disable the bitfield += optimizations.
24436 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
24438         * doc/sourcebuild.texi: Revert previous patch.
24440 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
24442         * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
24443         TARGET_MEM_FUNCTIONS.
24444         * system.h: Poison TARGET_MEM_FUNCTIONS.
24445         * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
24446         bcmp_libfunc, bzero_libfunc): Remove.
24447         * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
24448         bzero_libfunc.
24449         * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
24450         * doc/standards.texi: Don't mention calling BSD string functions.
24451         * doc/invoke.texi: Likewise.  Mention that memmove may be called.
24452         * config/vax/t-memfuncs: New.
24453         * config/memcmp.c, config/memcpy.c, config/memmove.c,
24454         config/memset.c: New.
24455         * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
24456         * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
24457         vax/t-memfuncs.
24458         * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
24459         config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
24460         config/elfos.h, config/gnu.h, config/h8300/h8300.h,
24461         config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
24462         config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
24463         config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
24464         config/netbsd.h, config/openbsd.h, config/pa/pa.h,
24465         config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
24466         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
24467         config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
24469 2004-07-05  Richard Henderson  <rth@redhat.com>
24471         * function.c (assign_parm_setup_reg): Properly rename variables in
24472         FUNCTION_ARG_CALLEE_COPIES section.
24474 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
24476         * tree-mudflap.c: Include cgraph.h.
24477         (mf_init_extern_trees): Rename to mudflap_init.  Export.
24478         Rewrite to create synthetic declarations instead of looking
24479         up declarations from mf-runtime.h.
24480         (mf_make_builtin, mf_make_cache_struct_type): New functions.
24481         (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
24482         Correct commentary.
24483         (execute_mudflap_function_decls, mudflap_register_call):
24484         Don't call mf_init_extern_trees.
24485         (mudflap_finish_file): Use cgraph_build_static_cdtor.
24487         * tree-mudflap.h: Update prototypes.
24488         * c-mudflap.c: Delete file.
24489         * c-common.c: Include tree-mudflap.h.
24490         (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
24491         * Makefile.in: Remove all references to c-mudflap.o.
24492         Update dependencies.
24494 2004-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24496         * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
24497         displacements with the spatial-locality cache-control completer.
24499 2004-07-05  Zack Weinberg  <zack@codesourcery.com>
24501         * langhooks.c: Don't include gt-langhooks.h.
24502         (var_labelno): Delete.
24503         (lhd_set_decl_assembler_name): Do not append a distinguishing
24504         number to file-scope internal-linkage declarations for the first
24505         input file, even if they have DECL_CONTEXT set.  Use DECL_UID of
24506         the declaration itself (if at block scope), or its containing
24507         TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
24508         number.
24510         * opts.c (cur_in_fname): New global.
24511         * opts.h: Declare it.
24512         * tree.c: Include opts.h.
24513         (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
24514         DECL_UID equal to cur_in_fname.
24515         (copy_node_stat): Do not change DECL_UID when copying a
24516         TRANSLATION_UNIT_DECL.
24517         (build_common_tree_nodes): Adjust next_decl_uid to reserve the
24518         range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
24520         * c-decl.c (c_static_assembler_name): Delete.
24521         * c-tree.h (c_static_assembler_name): Delete prototype.
24522         * c-lang.c, objc/objc-lang.c: Don't override
24523         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
24525         * Makefile.in (tree.o): Update dependencies.
24526         (GTFILES): Remove langhooks.c.
24528 2004-07-05  Roger Sayle  <roger@eyesopen.com>
24530         * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
24531         by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
24532         Normalize "X % C" as "X % -C" for signed modulus and negative C.
24533         Optimize "X % -Y" as "X % Y" for signed modulus.
24534         <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
24535         into "((unsigned) X % Y) == 0".
24537 2004-07-05  Joseph S. Myers  <jsm@polyomino.org.uk>
24539         * sourcebuild.texi (Config Fragments): Use @comma{} in
24540         cross-reference to section title.
24542 2004-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24544         * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
24545         * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
24546         (gimplify_target_expr, gimplify_expr): Likewise.
24547         (copy_if_shared_r): No longer need special case for BIND_EXPR.
24548         (unshare_body, unvisit_body): Only look at nested if BODY_P is
24549         whole function.
24550         (gimplify_compound_lval): See if we can strip any useless conversion.
24551         (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
24552         from RHS, not LHS.
24553         (gimplify_modify_expr_to_memset): Likewise.
24554         (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
24555         * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
24556         (declare_inline_vars): Likewise.
24557         (walk_type_fields): New function.
24558         (walk_tree): Use it.
24559         * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
24561         * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
24562         (sra_walk_modify_expr): Allow init function to fail.
24563         (scan_init): Now returns bool.
24564         (generate_element_init): If can't understand INIT, return false.
24565         (scalarize_init): Return false if generate_element_init does.
24567         * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
24568         print bounds.
24570         * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
24571         bounds if bounds aren't constant.
24573         * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
24575         * function.c, langhooks-def.h, langhooks.h: Move max_size hook
24576         to type hooks; remove bogus PARAMS.
24578 2004-07-05  Nathan Sidwell  <nathan@codesourcery.com>
24580         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
24581         * dwarf2out.c (add_data_member_location_attribute): Check for
24582         TREE_BINFO.
24583         * tree.c (tree_node_kinds): Add "binfos".
24584         (binfo_lang_slots): New.
24585         (make_node_stat): Add TREE_BINFO.
24586         (make_tree_binfo_stat): New.
24587         (tree_node_structure): Add TREE_BINFO.
24588         * tree.def (TREE_BINFO): New.
24589         * tree.h (REC_OR_UNION_CHECK): Rename to ...
24590         (RECORD_OR_UNION_CHECK): ... here.
24591         (NOT_RECORD_OR_UNION_CHECK): New.
24592         (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
24593         (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
24594         RECORD_OR_UNION_CHECK.
24595         (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
24596         (TYPE_LANG_SLOT_1): New.
24597         (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
24598         BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
24599         BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
24600         (BINFO_ELTS): Remove.
24601         (BINFO_LANG_SLOT): New.
24602         (struct tree_binfo): New.
24603         (binfo_lang_slots): Declare.
24604         (enum tree_node_structure_enum): Add TS_BINFO.
24605         (union tree_node): Add binfo.
24606         (make_tree_binfo_stat): Declare.
24607         (make_tree_binfo): New.
24608         (enum tree_node_kind): Add binfo_kind.
24610         * objc/objc-act.c (start_class, objc_declare_protocols,
24611         start_protocols): Use TYPE_LANG_SLOT_1.
24612         * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
24613         to ...
24614         (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
24615         (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
24616         CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
24617         PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
24619 2004-07-05  Steven Bosscher  <stevenb@suse.de>
24621         * rtl.h (struct rtx_def): Remove the integrated flag.
24622         Use the return_val flag for MEM_SCALAR_P.
24623         Reshuffle and update flags in CLEAR_RTX_FLAGS.
24625 2004-07-05  Richard Sandiford  <rsandifo@redhat.com>
24627         PR target/16357
24628         * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
24629         to mips_expand_unaligned_load, mips_expand_unaligned_store, and
24630         move_by_pieces.
24632 2004-07-05  Josef Zlomek  <zlomekj@suse.cz>
24634         * var-tracking.c: Fix some comments.
24635         (frame_stack_adjust): New.
24636         (vt_stack_adjustments): Init stack_adjust of entry block to
24637         minus stack adjustment of function prologue.
24638         (adjust_stack_reference): Do not adjust if adjustment == 0.
24639         (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
24640         (emit_notes_in_bb): Likewise.
24641         (vt_add_function_parameters): Do not adjust locations of
24642         function arguments.
24643         (vt_initialize): Compute the stack adjustment of function
24644         prologue and offset the initial "location" of frame_base_decl
24645         from the stack pointer after prologue.
24647 2004-07-04  Richard Henderson  <rth@redhat.com>
24649         * function.c (struct assign_parm_data_all): New.
24650         (struct assign_parm_data_one): New.
24651         (assign_parms_initialize_all, assign_parms_augmented_arg_list,
24652         assign_parm_find_data_types, assign_parms_setup_varargs,
24653         assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
24654         assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
24655         assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
24656         assign_parm_setup_block, assign_parm_setup_reg,
24657         assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
24658         (assign_parms): ... here.
24660 2004-07-04  Daniel Berlin  <dberlin@dberlin.org>
24662         * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
24663         now are bitmap_set_t's.
24664         (bitmap_insert_into_set): No point in inserting the value if
24665         it's invariant.
24666         (bitmap_set_contains): New function.
24667         (bitmap_set_replace_value): Add comment on why we do it
24668         this way.
24669         (set_contains): Removed.
24670         (bitmap_set_subtract_from_value_set): New name of
24671         set_subtract now that it's arguments are two different
24672         types of sets.
24673         Update callers.
24674         (bitmap_find_leader): Change algorithm used.
24675         (find_or_generate_expression): Update use of functions for new
24676         bitmap sets.
24677         (create_expression_by_pieces): Ditto.
24678         (insert_aux): Ditto.
24679         (insert): Ditto.
24680         (add_to_sets): Ditto.
24681         (init_pre): Ditto.
24682         (execute_pre): Ditto.
24683         (compute_avail): Ditto.
24684         Also ignore virtual phis.
24686 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
24688         * combine.c (simplify_comparison): Fix comment typo.
24690 2004-07-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
24692         * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
24693         into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
24694         (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
24695         (output_restore): Change parameter from 'insn' to 'pat'.
24696         (output_return): Adjust call to output_restore.
24697         (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
24698         Adjust call to output_restore.
24700 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
24702         * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
24703         and assert system is bsd.
24705 2004-07-04  Richard Sandiford  <rsandifo@redhat.com>
24707         * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
24708         (TARGET_SWITCHES): Remove -mdebugc.
24709         * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
24710         (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
24711         (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
24712         (sle_[sd]i_reg): Delete.
24714 2004-07-04  Steven Bosscher  <stevenb@suse.de>
24716         * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
24717         Define.
24718         * config/iq2000/iq2000.md: Translate old pipeline description to an
24719         equivalent new one.
24721 2004-07-04  Roger Sayle  <roger@eyesopen.com>
24723         * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
24724         Ensure the replacement rhs is valid gimple before performing
24725         the substitution.  Return false if these sanity checks fail.
24726         (fold_stmt): Only set changed to true, if set_rhs returns true.
24727         (execute_fold_all_builtins): Only call modify_stmt if set_rhs
24728         succeeds.
24730 2004-07-04  Richard Henderson  <rth@redhat.com>
24732         PR c/16348
24733         * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
24735 2004-07-04  Mark Mitchell  <mark@codesourcery.com>
24737         * configure.ac (ranlib_flags): New variable.
24738         * Makefile.in (RANLIB_FLAGS): New variable.
24739         (libbackend.a): Use it.
24740         * configure: Regenerated.
24742 2004-07-04  Roger Sayle  <roger@eyesopen.com>
24744         * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
24745         a "sign mask" instead of using ashr_optab directly.
24747 2004-07-04  Neil Booth  <neil@duron.akihabara.co.uk>
24749         * doc/cpp.texi: Don't document what we do for ill-formed expressions.
24750         * doc/cppopts.texi: Clarify processing of command-line defines.
24752 2004-07-04  Gerald Pfeifer  <gerald@pfeifer.com>
24754         * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
24756 2004-07-04  Richard Henderson  <rth@redhat.com>
24758         * rtl.def (ADDRESSOF): Remove.
24759         * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
24760         (find_base_term, memrefs_conflict_p): Likewise.
24761         * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
24762         (fold_rtx, cse_insn, set_live_p): Likewise.
24763         * dwarf2out.c (mem_loc_descriptor): Likewise.
24764         (add_location_or_const_value_attribute): Likewise.
24765         * emit-rtl.c (copy_insn_1): Likewise.
24766         * explow.c (memory_address): Likewise.
24767         * expmed.c (store_split_bit_field): Likewise.
24768         * expr.c (expand_expr_real_1): Likewise.
24769         * function.c (instantiate_decl
24770         (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
24771         * genrecog.c (preds, validate_pattern): Likewise.
24772         * integrate.c (copy_rtx_and_substitute): Likewise.
24773         * recog.c (general_operand, register_operand): Likewise.
24774         (memory_address_p): Likwise.
24775         * reload1.c (eliminate_regs, elimination_effects): Likewise.
24776         * rtl.c (copy_rtx): Likewise.
24777         * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
24778         (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
24779         * rtlhooks.c (gen_lowpart_general): Likewise.
24780         * stmt.c (expand_asm_operands): Likewise.
24781         * web.c (entry_register, replace_ref, web_main): Likewise.
24782         * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
24783         alpha_expand_block_move, alpha_expand_block_clear): Likewise.
24784         * config/arm/arm.c (thumb_rtx_costs): Likewise.
24785         * config/c4x/c4x.c (c4x_valid_operands): Likewise.
24786         * config/frv/frv.c (move_destination_operand, move_source_operand,
24787         condexec_dest_operand, condexec_source_operand,
24788         condexec_memory_operand): Likewise.
24789         * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
24790         * config/ia64/ia64.c (general_xfmode_operand): Likewise.
24791         (destination_xfmode_operand): Likewise.
24792         * config/mips/mips.h (PREDICATE_CODES): Likewise.
24793         * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
24794         * config/s390/s390.c (general_s_operand): Likewise.
24795         * config/s390/s390.md (mov*): Likewise.
24796         * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
24798         * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
24799         * expr.c (expand_expr_real_1): Likewise.
24800         * stmt.c (expand_decl): Likewise.
24801         * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
24803         * function.c (struct fixup_replacement, struct insns_for_mem_entry,
24804         postponed_insns, put_var_into_stack, put_reg_into_stack,
24805         schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
24806         fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
24807         fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
24808         walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
24809         gen_mem_addressof, flush_addressof, put_addressof_into_stack,
24810         purge_bitfield_addressof_replacements, purge_addressof_replacements,
24811         purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
24812         struct insns_for_mem_walk_info, insns_for_mem_walk,
24813         compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
24814         setjmp_protect_args): Remove.
24815         (push_function_context_to): Don't handle var_refs_queue.
24816         (pop_function_context_from, free_after_compilation): Likewise.
24817         (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
24818         (assign_parms, allocate_struct_function): Likewise.
24819         (use_register_for_decl): New.
24820         (expand_function_end): Don't setjmp_protect.
24821         * function.h (struct emit_status): Update commentary.
24822         (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
24823         (max_parm_reg, parm_reg_stack_loc): Remove.
24824         * passes.c (DFI_addressof): Remove.
24825         (dump_file_info): Remove addressof.
24826         (rest_of_handle_addressof): Remove.
24827         (rest_of_compilation): Don't call it.
24828         * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
24829         * stmt.c (expand_decl): Use use_register_for_decl.
24830         * tree.h: Update decls.
24831         * web.c (mark_addressof): Remove.
24832         * doc/invoke.texi (-dF): Remove.
24834 2004-07-03  Richard Henderson  <rth@redhat.com>
24836         * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
24837         instead of gen_mem_addressof.
24838         * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
24839         TImode output register.
24841 2004-07-03  Richard Henderson  <rth@redhat.com>
24843         PR tree-optimization/16341
24844         * tree-sra.c (sra_walk_function): Increment to next stmt before
24845         processing the current stmt.
24846         (sra_insert_after): Always use BSI_SAME_STMT.
24848 2004-07-03  Richard Henderson  <rth@redhat.com>
24850         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
24851         fp plus with minus.
24853 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
24855         * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
24856         with tree_int_cst_equal.
24858 2004-07-03  Andreas Schwab  <schwab@suse.de>
24860         * config/ia64/ia64.md: Define new attribute "empty".
24861         (prologue_use, nop_x, insn_group_barrier): Set it.
24863         * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
24864         skip over "empty" insns.
24866 2004-07-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24868         * tree-inline.c (initialize_inlined_parameters): Pass proper function
24869         context to gimplify_body.
24870         (walk_tree): Don't walk into types twice.
24871         (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
24873         * tree-sra.c (generate_element_init): Remove any useless conversions.
24875         * gimplify.c (gimplify_conversion): Remove stripping useless
24876         conversions from here.
24877         (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
24878         (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
24879         Unshare before substituting PLACEHOLDER_EXPR.
24880         (gimplify_modify_expr_to_memset): Likewise.
24881         Pass address of TO to memset, not TO itself.
24882         (gimplify_init_constructor): Make copy of OBJECT so we have it each
24883         time we make an expression (to match a PLACEHOLDER_EXPR).
24885         * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
24886         VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
24887         * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
24888         * tree-ssa-dom.c (local_fold): Likewise.
24890         * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
24891         * langhooks.h (strct lang_hooks): New field type_max_size.
24892         * function.c (assign_temp): Call it.
24894 2004-07-03  Steven Bosscher  <stevenb@suse.de>
24896         * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
24897         * config/sh/sh.md: Convert the SH1 pipeline description to
24898         a DFA model.
24900 2004-07-02  Zack Weinberg  <zack@codesourcery.com>
24902         * c-decl.c (struct c_binding): Remove contour field; add
24903         depth, invisible, nested fields.
24904         (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
24905         (B_IN_EXTERNAL_SCOPE): New convenience macros.
24906         (bind): Add invisible and nested arguments. Initialize
24907         new fields of struct c_binding; adjust loop scanning for
24908         insertion point.
24909         (free_binding_and_advance): Clear structure with memset.
24910         (pop_scope): Adjust to match.  Set DECL_CONTEXT on everything
24911         in file scope, even if it's in external scope too.
24912         (pushdecl): Adjust to match.  Create invisible file-scope
24913         declarations for block-scope forward declarations of static functions.
24914         (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
24915         (undeclared_variable, lookup_label, declare_label, define_label)
24916         (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
24917         (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
24918         (store_parm_decls_oldstyle): Adjust to match.
24919         (diagnose_mismatched_decls): Correct handling of linkage clashes.
24920         (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
24922         * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
24923         (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
24925 2004-07-02  Richard Henderson  <rth@redhat.com>
24927         * c-decl.c (grokdeclarator): Don't frob current_function_decl
24928         around variable_size.
24929         (set_decl_nonlocal): Remove.
24930         (store_parm_decls): Add stmts for pending sizes.
24931         * calls.c (calls_function, calls_function_1): Remove.
24932         (precompute_arguments): Don't call it.
24933         * cfgexpand.c (set_save_expr_context): Remove.
24934         (tree_expand_cfg): Don't call it.
24935         * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
24936         (dwarf2out_finish): Likewise.
24937         * expr.c (emit_block_move): Adjust addresses to BLKmode.
24938         (store_constructor): Don't pre-evaluate SAVE_EXPR.
24939         (safe_from_p): Don't queue SAVE_EXPRs.
24940         (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
24941         or build plain VAR_DECLs.
24942         * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
24943         (fold): Likewise.
24944         (fold_checksum_tree): Don't special-case SAVE_EXPR.
24945         * function.c (free_after_compilation): Don't clear x_save_expr_regs.
24946         (put_var_into_stack): Don't handle SAVE_EXPR.
24947         (gen_mem_addressof): Likewise.
24948         * function.h (struct function): Remove x_save_expr_regs.
24949         (save_expr_regs): Remove.
24950         * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
24951         * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
24952         * stor-layout.c (variable_size): Don't set it.
24953         (force_type_save_exprs, force_type_save_exprs_1): Remove.
24954         * tree-inline.c (remap_save_expr): Remove fn argument.  Update
24955         all callers.  Don't set SAVE_EXPR_CONTEXT.
24956         * tree-inline.h (remap_save_expr): Update decl.
24957         * tree.c (save_expr): Update build size.
24958         (first_rtl_op): Don't handle SAVE_EXPR.
24959         (unsave_expr_1, contains_placeholder_p): Likewise.
24960         (decl_function_context): Likewise.
24961         * tree.def (SAVE_EXPR): Remove args 1 and 2.
24962         * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
24963         (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
24965 2004-07-03  Joseph S. Myers  <jsm@polyomino.org.uk>
24967         * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
24968         doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
24969         doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
24970         doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
24971         some first-person references and patronizing comments.  Based on
24972         printed manual.
24973         * doc/invoke.texi: Don't reference fortran@gnu.org.
24974         * doc/trouble.texi (Warning when a non-void function value is
24975         ignored): Rewrite.  From Russ Allbery and Chris Devers.
24977 2004-07-02  Daniel Berlin  <dberlin@dberlin.org)
24979         * tree-ssa-pre.c (bitmap_set_t): New.
24980         (bb_value_sets): avail_out is now a bitmap_set_t.
24981         (bitmap_find_leader): New function.
24982         (bitmap_value_insert_into_set): Ditto.
24983         (bitmap_set_copy): Ditto.
24984         (bitmap_value_replace_in_set): Ditto.
24985         (bitmap_set_contains_value): Ditto.
24986         (bitmap_set_new): Ditto.
24987         (bitmap_set_pool): New pool.
24988         (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
24989         (insert_aux): Ditto.
24990         (add_to_sets): Ditto.
24991         (compute_avail): Ditto
24992         (eliminate): Ditto.
24993         (init_pre): Ditto.
24994         (fini_pre): Ditto.
24995         (execute_pre): Ditto.
24997 2004-07-02  Roger Sayle  <roger@eyesopen.com>
24999         * config/rs6000/rs6000.c (struct processor_costs): New structure
25000         used to hold instruction latencies/sizes for processor types.
25001         (rs6000_cost): New global variable pointing to current CPU's costs.
25002         (rs6000_override_options): Initialize rs6000_cost to point to the
25003         appropriate cost table based upon rs6000_cpu and optimize_size.
25004         (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
25005         timings inline.
25007 2004-07-02  Richard Henderson  <rth@redhat.com>
25009         * expmed.c (make_tree): Don't use SET_DECL_RTL.
25011 2004-07-02  Steven Bosscher  <stevenb@suse.de>
25013         * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
25015 2004-07-01  Richard Henderson  <rth@redhat.com>
25017         * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
25018         (alpha_gp_save_rtx): Use assign_stack_local instead of
25019         gen_mem_addressof.
25021 2004-07-01  Richard Henderson  <rth@redhat.com>
25023         * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
25024         (alpha_rtx_cost_data): Update to match.
25025         (alpha_rtx_cost_size): New.
25026         (alpha_rtx_costs): Honor optimize_size.
25028 2004-07-01  Richard Henderson  <rth@redhat.com>
25030         * gimple-low.c (lower_function_body): Don't reset_block_changes here.
25031         * cfgexpand.c (tree_expand_cfg): Do it here.
25032         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
25033         * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
25034         * config/mips/mips.c (mips_output_mi_thunk): And here.
25035         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
25036         * config/sh/sh.c (sh_output_mi_thunk): And here.
25037         * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
25039 2004-07-01  Richard Henderson  <rth@redhat.com>
25041         * tree.def (RTL_EXPR): Remove.
25042         * c-typeck.c (lvalue_p): Don't handle it.
25043         * expr.c (safe_from_p): Likewise.
25044         (expand_expr_real_1): Likewise.
25045         * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
25046         (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
25047         * gengtype.c (adjust_field_tree_exp): Likewise.
25048         * stmt.c (warn_if_unused_value): Likewise.
25049         * tree-gimple.c (recalculate_side_effects): Likewise.
25050         * tree-pretty-print.c (dump_generic_node): Likewise.
25051         * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
25052         (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
25053         * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
25055         * stmt.c (struct stmt_status): Remove x_last_expr_type,
25056         x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
25057         (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
25058         (expand_expr_stmt): Merge with expand_expr_stmt_value.  Remove
25059         all the bits that tracked last_expr.
25060         (expand_end_bindings): Don't track last_expr.
25061         (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
25062         (clear_last_expr): Remove.
25063         (expand_asm): Don't call it.
25064         (expand_asm_operands, expand_end_cond): Likewise.
25065         (expand_naked_return, expand_null_return_1): Likewise.
25066         * c-typeck.c (c_begin_compound_stmt): Likewise.
25067         * cfgexpand.c (expand_block): Use expand_expr_stmt.
25068         * expr.c (expand_expr_real_1): Likewise.
25069         * tree.h: Update prototypes.
25071         * function.h (struct sequence_stack): Remove sequence_rtl_expr.
25072         (struct emit_status): Remove sequence_rtl_expr.
25073         (struct function): Remove x_rtl_expr_chain.
25074         (seq_rtl_expr, rtl_expr_chain): Remove.
25075         * function.c (struct temp_slot): Remove rtl_expr.
25076         (assign_stack_temp_for_type): Don't set it.
25077         (free_temp_slots, pop_temp_slots): Don't check it.
25078         (free_after_compilation): Don't clear x_rtl_expr_chain.
25079         (fixup_var_refs): Don't search it.
25080         (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
25081         * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
25082         or seq_rtl_expr.
25083         (push_topmost_sequence): Likewise.
25084         (end_sequence, init_emit): Likewise.
25085         (start_sequence_for_rtl_expr): Remove.
25086         * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
25087         * rtl.h (preserve_rtl_expr_result): Remove.
25089 2004-07-02  Kazu Hirata  <kazu@cs.umass.edu>
25091         * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
25092         tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
25093         typos.
25095 2004-07-02  Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
25097         * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
25098         (STANDARD_STARTFILE_PREFIX_2): Define.
25099         (standard_startfile_prefix_1): Initialize to
25100         STANDARD_STARTFILE_PREFIX_1.
25101         (standard_startfile_prefix_2): Initialize to
25102         STANDARD_STARTFILE_PREFIX_2.
25103         * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
25104         (STANDARD_STARTFILE_PREFIX_1): Define.
25105         (STANDARD_STARTFILE_PREFIX_2): Define.
25106         * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
25107         (STANDARD_STARTFILE_PREFIX_2): Document.
25109 2004-07-01  Richard Henderson  <rth@redhat.com>
25111         * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
25112         in order to disable scalarization.  Instead set a flag and wait
25113         for a candidate decl.
25115 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
25117         * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
25118         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
25119         Use terminology "testsuite" and "enumerated".
25121 2004-07-01  Richard Henderson  <rth@redhat.com>
25123         * dwarf2out.c (reg_save): Use INVALID_REGNUM.
25124         (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
25125         (initial_return_save): Likewise.
25126         (flush_queued_reg_saves): Remap register numbers.
25127         (dwarf2out_return_reg): Likewise.
25129 2004-07-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25131         * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
25133         * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
25134         access functions for lower bound and element size and only output
25135         if lower bound nonzero or element size not same as that of type.
25136         (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
25138 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
25140         * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
25142 2004-07-01  Per Bothner  <per@bothner.com>
25144         * final.c (final):  Fix typo reported by Aaron W. LaFramboise.
25146 2004-07-01  Jakub Jelinek  <jakub@redhat.com>
25148         * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
25149         bitfields as well.  STRIP_NOPS from src operand and PLUS_EXPR's
25150         first operand.  Don't optimize if the bitfield is volatile.
25152 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
25154         * c-pretty-print.c (pp_c_postfix_expression): Handle
25155         floating-point comparison operators.
25156         (pp_c_expression): Pass floating-point comparison
25157         operators to pp_c_postfix_expression.
25159 2004-07-01  Roger Sayle  <roger@eyesopen.com>
25161         * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
25162         rtx_cost instead of "had_mult" to determine whether the transformed
25163         expression is cheaper than the original.
25165 2004-07-01  Jerry Quinn  <jlquinn@optonline.net>
25167         * alias.c (get_alias_set, canon_rtx, get_addr,
25168         nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
25169         Use MEM_P.
25170         * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
25171         expand_builtin): Likewise.
25172         * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
25173         Likewise.
25174         * combine.c (can_combine_p, combinable_i3pat, try_combine,
25175         find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
25176         rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
25177         record_dead_and_set_regs_1, get_last_value_validate,
25178         mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
25179         * cse.c (check_dependence, canon_hash, equiv_constant,
25180         gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
25181         cse_around_loop, cse_check_loop_start, cse_set_around_loop,
25182         count_reg_usage): Likewise.
25183         * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
25184         cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
25185         cselib_record_sets): Likewise.
25186         * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
25187         dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
25188         * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
25189         * df.c (df_uses_record): Likewise.
25190         * dojump (do_jump): Likewise.
25191         * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
25192         loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
25193         decl_start_label): Likewise.
25194         * emit-rtl.c (gen_complex_constant_part, gen_highpart,
25195         operand_subword, change_address_1, make_safe_from): Likewise.
25196         * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
25197         stabilize, force_not_mem): Likewise.
25198         * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
25199         expand_mult_const, expand_divmod, emit_store_flag): Likewise.
25200         * expr.c (convert_move, convert_modes, emit_block_move,
25201         emit_group_load, emit_group_store, clear_storage, emit_move_insn,
25202         emit_move_insn_1, expand_assignment, store_expr,
25203         store_constructor_field, store_constructor, store_field,
25204         force_operand, safe_from_p, expand_expr_real_1, expand_increment):
25205         Likewise.
25206         * final.c (cleanup_subreg_operands, alter_subreg,
25207         get_mem_expr_from_op): Likewise.
25208         * flow.c (notice_stack_pointer_modification_1,
25209         init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
25210         Likewise.
25211         * function.c (mark_temp_addr_taken, preserve_temp_slots,
25212         preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
25213         optimize_bit_field, flush_addressof, purge_addressof_1,
25214         instantiate_decl, instantiate_virtual_regs_1, assign_parms,
25215         setjmp_protect, setjmp_protect_args, fix_lexical_addr,
25216         keep_stack_depressed): Likewise.
25217         * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
25218         noce_process_if_block, find_memory): Likewise.
25219         * integrate.c (subst_constants, allocate_initial_values): Likewise.
25220         * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
25221         update_equiv_regs): Likewise.
25222         * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
25223         maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
25224         * optabs.c (expand_abs, emit_unop_insn): Likewise.
25225         * passes.c (rest_of_handle_final): Likewise.
25226         * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
25227         move2add_note_store): Likewise.
25228         * ra-build.c (detect_remat_webs): Likewise.
25229         * ra-debug.c (dump_static_insn_cost): Likewise.
25230         * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
25231         * recog.c (validate_change, apply_change_group, cancel_changes,
25232         validate_replace_rtx_1, general_operand, register_operand,
25233         nonmemory_operand, push_operand, pop_operand, memory_operand,
25234         indirect_operand, asm_operand_ok, offsettable_memref_p,
25235         offsettable_nonstrict_memref_p, constrain_operands,
25236         store_data_bypass_p): Likewise.
25237         * reg-stack.c (subst_stack_regs_pat): Likewise.
25238         * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
25239         copy_cost, reg_scan_mark_refs): Likewise.
25240         * regmove.c (optimize_reg_copy_3, stack_memref_p,
25241         combine_stack_adjustments_for_block): Likewise.
25242         * regrename.c (copyprop_hardreg_forward_1): Likewise.
25243         * reload.c (can_reload_into, push_reload, decompose, immune_p,
25244         find_reloads, find_reloads_address, find_reloads_address_1,
25245         reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
25246         find_equiv_reg): Likewise.
25247         * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
25248         reload_as_needed, choose_reload_regs, emit_input_reload_insns,
25249         do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
25250         delete_address_reloads): Likewise.
25251         * resource.c (mark_referenced_resources): Likewise.
25252         * rtlanal.c (get_jump_table_offset, count_occurrences,
25253         reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
25254         reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
25255         num_sign_bit_copies1): Likewise.
25256         * rtlhooks.c (gen_lowpart_general): Likewise.
25257         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
25258         * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
25259         sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
25260         sdbout_global_decl): Likewise.
25261         * simplify-rtx.c (simplify_subreg): Likewise.
25262         * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
25263         expand_anon_union_decl, expand_end_case_type): Likewise.
25264         * unroll.c (calculate_giv_inc): Likewise.
25265         * var-tracking.c (stack_adjust_offset_pre_post,
25266         bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
25267         add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
25268         vt_add_function_parameters): Likewise.
25269         * varasm.c (make_var_volatile, notice_global_symbol,
25270         assemble_external, decode_addr_const, mark_weak,
25271         default_encode_section_info): Likewise.
25273 2004-07-01  Steven Bosscher  <stevenb@suse.de>
25275         * stmt.c (check_seenlabel): Remove.
25276         (pushcase, pushcase_range, expand_end_case_type): Don't call it.
25278 2004-07-01  Richard Henderson  <rth@redhat.com>
25280         * function.h (struct function): Remove x_function_call_count.
25281         (function_call_count): Remove.
25282         * calls.c (expand_call): Don't set it.
25283         * integrate.c (copy_rtx_and_substitute): Likewise.
25285         * function.h (struct function): Remove x_cleanup_label.
25286         (cleanup_label): Remove.
25287         * stmt.c (expand_value_return): Don't use it.
25288         * function.c (free_after_compilation): Don't set it.
25289         (expand_function_start): Likewise.  Remove parms_have_cleanups arg.
25290         * cfgexpand.c (tree_expand_cfg): Update call.
25291         * tree.h (expand_function_start): Update decl.
25293 2004-07-01  Joseph S. Myers  <jsm@polyomino.org.uk>
25295         PR c/1027
25296         * c-lang.c (c_initialize_diagnostics): Move from here ...
25297         * c-objc-common.c: ... to here.  Include "c-pretty-print.h".
25298         (c_tree_printer): Use pretty-printer to format %T.
25299         * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
25300         before '*' if not C++.
25301         (pp_c_direct_abstract_declarator): Don't try to print array upper
25302         bound for flexible array members.
25303         * c-tree.h: Include "diagnostic.h".
25304         (c_initialize_diagnostics): Declare.
25305         * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
25306         * c-format.c (format_type_warning): New function.  Improve
25307         diagnostics for incorrect format argument types.
25308         (check_format_types): Use it.  Add two parameters.  Use the
25309         TYPE_MAIN_VARIANT of wanted_type.
25310         (check_format_info_main): Pass new parameters to
25311         check_format_types.
25312         (struct format_wanted_type): Update comment.
25314 2004-07-01  Nick Clifton  <nickc@redhat.com>
25316         * target.h (struct gcc_target): Add new field to struct cxx:
25317         import_export_class.
25318         * target-def.h (TARGET_CXX): Initialise the new field.
25319         (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
25320         the new field.
25321         * doc/tm.texi: Document the new target hook.
25323 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
25325         * builtins.c (fold_builtin_classify): Fix typo.
25327 2004-07-01  Richard Henderson  <rth@redhat.com>
25329         * function.c (identify_blocks, identify_blocks_1): Remove.
25330         * function.h (identify_blocks): Remove.
25331         * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
25333 2004-07-01  Paolo Bonzini  <bonzini@gnu.org>
25335         * builtins.c (fold_builtin_classify): New.
25336         (fold_builtin_unordered_cmp): Fix commentary.
25337         (fold_builtin): Use it.
25338         * builtins.def: Define builtins for isnan,
25339         isnanf, isnanl, finite, finitef, finitel,
25340         isinf, isinff, isinfl.
25342 2004-07-01  Richard Henderson  <rth@redhat.com>
25344         * function.h (struct function): Remove dont_emit_block_notes.
25345         * gimple-low.c (lower_function_body): Don't set it.
25346         * cfgexpand.c (expand_block): Don't check it.
25347         * cfglayout.c (insn_locators_initialize): Likewise.
25348         * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
25349         * passes.c (rest_of_compilation): Likewise.
25350         * stmt.c (expand_start_bindings_and_block): Likewise.
25351         (expand_end_bindings): Likewise.
25353 2004-07-01  Richard Henderson  <rth@redhat.com>
25355         * cgraph.h (cgraph_build_static_cdtor): Declare.
25356         * cgraphunit.c (cgraph_build_static_cdtor): New.
25357         * c-objc-common.c (build_cdtor): Use it.
25358         * coverage.c (create_coverage): Likewise.
25359         * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
25360         * optabs.c (init_optabs): Don't set gcov_init_libfunc.
25362 See ChangeLog.11 for earlier changes.