OSDN Git Service

8ce4a8d1b783ee7c9e1f7646bff9d479b6560e7f
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
2
3         * combine.c (combine_simplify_rtx): Remove the "last"
4         parameter and its documentation.  Adjust recursive calls.
5         (simplify_logical): Always perform the only simplification
6         controlled by "last", if the simplified expression is
7         actually different.
8         (try_combine): Do not pass the "last" parameter to
9         combine_simplify_rtx.
10
11 2004-03-16  Richard Sandiford  <rsandifo@redhat.com>
12
13         PR target/14599
14         * config/mips/mips.md (UNSPEC_GP): New constant.
15         * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
16         an UNSPEC instead of (reg $gp).
17         (mips16_gp_pseudo_reg): Change accordingly.
18         (print_operand): Print $gp directly when handling CONST_GP_P.
19
20 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
21
22         * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
23         * longlong.h: Make code 68060 clean when compiling for m68060.
24
25 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
26
27         * config/m68k/m68k.md: Fix constraints for bitfield instructions.
28         * doc/md.texi: Clarify description of "i" constraint.
29
30 2004-03-15  James E Wilson  <wilson@specifixinc.com>
31
32         * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
33         Split store into store, fpstore, fpidxstore.  Fix all uses.
34         * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
35         Likewise.
36         * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
37         * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
38         * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
39         * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
40         ir_sr70_fstore): Likewise.
41
42 2004-03-15  Richard Henderson  <rth@redhat.com>
43
44         PR middle-end/14535
45         * except.c (collect_one_action_chain): Record action for cleanup
46         outer of exception spec.
47
48 2004-03-15  Ian Lance Taylor  <ian@wasabisystems.com>
49
50         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
51         Fix the check for abort and only do the mmap if we can.
52
53 2004-03-15  Eric Botcazou  <ebotcazou@act-europe.fr>
54
55         * config/sparc/sparc.h: Rework comments about the code model
56         in 64-bit environment and the mode 'Pmode'.
57         * doc/invoke.texi (SPARC options): Rework description of the
58         different code models supported in 64-bit environment.
59
60 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
61
62         * defaults.h (REVERSIBLE_CC_MODE): Define.
63         * jump.c (reversed_comparison_code_parts): Don't check if
64         REVERSIBLE_CC_MODE is defined.
65
66 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
67
68         * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
69         et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
70         hosthooks.h, params.h, ra-colorize.c, web.c,
71         config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
72         config/avr/avr-protos.h, config/avr/avr.md,
73         config/fr30/fr30-protos.h, config/fr30/fr30.md,
74         config/h8300/fixunssfsi.c, config/i386/darwin.h,
75         config/i386/freebsd.h, config/i386/freebsd64.h,
76         config/ia64/hpux.h, config/ia64/unwind-ia64.c,
77         config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
78         config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
79         config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
80         config/pa/pa64-regs.h, config/rs6000/aix41.h,
81         config/rs6000/aix43.h, config/rs6000/host-darwin.c,
82         config/sparc/aout.h, config/sparc/freebsd.h,
83         config/sparc/litecoff.h, config/vax/vax-protos.h,
84         doc/hostconfig.texi, doc/include/gcc-common.texi: Update
85         copyright.
86
87 2004-03-15  Paul Brook  <paul@codesourcery.com>
88
89         * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
90
91 2004-03-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
92
93         * c-pretty-print.c (pp_c_semicolon): Fix formatting.
94         (pp_c_cv_qualifier): Document.
95         (pp_c_space_for_pointer_operator): Likewise.
96         (pp_c_integer_constant): Likewise.
97         (pp_c_identifier): Likewise.
98         (pp_c_init_declarator): Don't print function body.
99
100 2004-03-14  Joseph S. Myers  <jsm@polyomino.org.uk>
101
102         * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
103         doc/install.texi, doc/invoke.texi, doc/makefile.texi,
104         doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
105         "gcc", "g++" and "g77" or mark up with appropriate markup.  Adjust
106         wording and grammar.
107
108 2004-03-14  Roger Sayle  <roger@eyesopen.com>
109
110         * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
111         with lang_hooks.foo ().
112         * builtins.c (expand_builtin_va_arg): Likewise.
113         * c-common.c (fname_as_string, c_common_truthvalue_conversion,
114         c_common_type_for_mode, c_common_nodes_and_builtins,
115         handle_mode_attribute, handle_vector_size_attribute): Likewise.
116         * c-convert.c (convert): Likewise.
117         * c-format.c (check_format_types): Likewise.
118         * c-objc-common.c (c_tree_printer): Likewise.
119         * c-typeck.c (build_unary_op, build_conditional_expr,
120         build_binary_op): Likewise.
121         * calls.c (try_to_integrate, expand_call,
122         emit_library_call_value_1): Likewise.
123         * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
124         Likewise.
125         * cgraphunit.c (record_call_1, cgraph_analyze_function,
126         cgraph_expand_function): Likewise.
127         * convert.c (convert_to_pointer, convert_to_integer): Likewise.
128         * coverage.c (build_fn_info_type, build_ctr_info_type,
129         build_gcov_info, create_coverage): Likewise.
130         * dbxout.c (dbxout_init): Likewise.
131         * diagnostic.c (diagnostic_report_current_function): Likewise.
132         * dojump.c (do_jump): Likewise.
133         * dwarf2out.c (dwarf2_name): Likewise.
134         * except.c (init_eh): Likewise.
135         * explow.c (expr_size, int_expr_size): Likewise.
136         * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
137         Likewise.
138         * expr.c (store_expr, store_constructor, safe_from_p,
139         expand_expr_real, do_store_flag, try_casesi): Likewise.
140         * function.c (push_function_context_to, pop_function_context_from,
141         free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
142         put_var_into_stack, allocate_struct_function, current_function_name):
143         Likewise.
144         * integrate.c (copy_decl_for_inlining, expand_inline_function):
145         Likewise.
146         * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
147         lhd_print_error_function): Likewise.
148         * opts.c (handle_option, decode_options): Likewise.
149         * passes.c (open_dump_file): Likewise.
150         * print-tree.c (print_node): Likewise.
151         * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
152         expand_decl_cleanup, emit_case_nodes): Likewise.
153         * stor-layout.c (variable_size): Likewise.
154         * toplev.c (announce_function, wrapup_global_declarations,
155         check_global_declarations, compile_file, default_tree_printer,
156         process_options, lang_dependent_init, finalize): Likewise.
157         * tree-dump.c (dequeue_and_dump): Likewise.
158         * tree-inline.c (remap_decl, remap_block, copy_body_r,
159         initialize_inlined_parameters, declare_return_variable,
160         inlinable_function_p, expand_call_inline, optimize_inline_calls,
161         walk_tree, copy_tree_r): Likewise.
162         * tree-optimize.c (tree_rest_of_compilation): Likewise.
163         * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
164         unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
165         variably_modified_type_p, dump_tree_statistics): Likewise.
166         * varasm.c (assemble_variable, compare_constant, copy_constant,
167         force_const_mem, compute_reloc_for_constant, output_constant,
168         output_addressed_constants, initializer_constant_valid_p): Likewise.
169
170 2004-03-14  Kelley Cook  <kcook@gcc.gnu.org>
171
172         * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
173
174 2004-03-14  Andreas Tobler  <a.tobler@schweiz.ch>
175
176         * doc/install.texi: Reflect autoconf and automake version for
177         libffi. Update autoconf version to 2.59.
178
179 2004-03-13  Roger Sayle  <roger@eyesopen.com>
180
181         * fold-const.c (negate_expr, operand_equal_for_comparison_p,
182         optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
183         make_range, build_range_check, fold_range_test, unextend,
184         constant_boolean_node, fold_binary_op_with_conditional_arg,
185         fold_truthop, fold_mathfn_compare, fold_inf_compare,
186         fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
187         with lang_hooks.foo ().
188
189 2004-03-14  Richard Earnshaw  <rearnsha@arm.com>
190
191         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
192
193 2004-03-13  Dara Hazeghi  <dhazeghi@yahoo.com>
194
195         * doc/install.texi: Note status of -fnew-ra.
196
197 2004-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
198
199         PR middle-end/14470
200         * expr.c (store_expr): Call emit_queue before generating the move
201         from the temporary to the original target.  Protect the temporary
202         from emit_queue.
203
204 2004-03-13  Jakub Jelinek  <jakub@redhat.com>
205
206         PR target/14533
207         * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
208         other than UNSPEC_GOTOFF.
209
210 2004-03-13  Richard Earnshaw  <rearnsha@arm.com>
211
212         * arm.c (arm_legitimate_address_p): New argument, OUTER.  Pass through
213         to arm_legitimate_index_p.  Update all callers with SET as default
214         value.
215         (arm_legitimate_index_p): New argument, OUTER.  Restrict the index
216         range if OUTER is a sign-extend operation on QImode.  Correctly
217         reject shift operations on sign-extended QImode addresses.
218         (bad_signed_byte_operand): Delete.
219         (arm_extendqisi_mem_op): New function.
220         * arm.h (EXTRA_CONSTRAINT_ARM): Delete.  Replace with...
221         (EXTRA_CONSTRAINT_STR_ARM): ... this.  Handle extended address
222         constraints.
223         (CONSTRAINT_LEN): New.
224         (EXTRA_CONSTRAINT): Delete.  Replace with...
225         (EXTRA_CONSTRAINT_STR): ... this.
226         (PREDICATE_CODES): Remove bad_signed_byte_operand.
227         * arm.md (extendqihi_insn): Use new constraint Uq.  Rework.  Length
228         is now always default.
229         (define_splits for bad sign-extend loads): Delete.
230         (arm_extendqisi, arm_extendqisi_v5): Likewise.
231         * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
232         Rework 'U' constraint to 'Uv'.
233         * arm-protos.h: Remove bad_signed_byte_operand.  Add
234         arm_extendqisi_mem_op.
235         * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
236         Add Uq constraint.
237
238 2004-03-13  Alan Modra  <amodra@bigpond.net.au>
239
240         * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
241         with targetm version.
242
243         PR target/14567
244         * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
245         (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
246         * config/rs6000/rs6000.c (rs6000_arg_size): New function.
247         Update all users of RS6000_ARG_SIZE.
248         (function_arg_advance): Count fregno using mode size.
249         (function_arg): Handle long double split over regs and memory.
250         (function_arg_partial_nregs): Likewise.
251         (rs6000_va_arg): Repackage complex args.
252
253 2004-03-13  Dean Ferreyra <dferreyra@igc.org>
254
255         PR target/14047
256         * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
257         (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
258         * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
259
260 2004-03-12  Jakub Jelinek  <jakub@redhat.com>
261
262         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
263         prototype.
264         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
265         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
266
267 2003-03-12  Andrew Pinski  <apinski@apple.com>
268
269         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
270         Use ret instead of result. Use addr instead of base.
271
272 2004-03-12  David Edelsohn  <edelsohn@gnu.org>
273
274         * doc/install.texi (*-ibm-aix*): Document assembler and achiver
275         fixes required by libstdc++ and update installation instructions
276         for libstdc++.a.
277
278 2004-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
279
280         * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
281         leading '@' on fastcall symbols before stripping suffix.
282
283 2004-03-12  Roger Sayle  <roger@eyesopen.com>
284
285         * combine.c (unmentioned_reg_p): New function to check whether an
286         expression is a "specialization" of another, i.e. that there are
287         no registers or memory references mentioned in the first that don't
288         appear in the second.
289         (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
290         (combine_instructions): Also try combining instructions using the
291         REG_EQUAL note from a preceding log-linked instruction.
292
293 2004-03-12  Roger Sayle  <roger@eyesopen.com>
294
295         * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
296
297 2004-03-12  Matt Austern  <austern@apple.com>
298
299         * target.h (struct gcc_target): New target hook, unwind_label.
300         * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
301         * output.h (default_emit_unwind_label): New function.
302         * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
303         (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
304         (TARGET_SUPPORTS_HIDDEN): New target macro.
305         * dwarf2out.c (struct dw_fde_struct): Add field for function decl
306         that corresponds to this FDE.
307         (FRAME_BEGIN_LABEL): Allow target to override default label.
308         (output_call_frame_info): If FDEs are linknonce, then use extra
309         indirection for FDE encoding, output a label for each FDE, and
310         output an empty label for each function without an FDE.
311         (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
312         * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
313         decls with DECL_ONE_ONLY set, if that macro is defined.
314         (make_decl_one_only): Don't use DECL_COMMON if we're compiling
315         for a SUPPORTS_ONE_ONLY target.
316         * config/darwin-protos.h (darwin_unique_section): Declare.
317         (darwin_asm_named_section): Likewise.
318         (darwin_section_type_flags): Likewise.
319         (darwin_non_lazy_pcrel): Likewise.
320         (darwin_emit_unwind_label): Likewise.
321         (darwin_make_decl_one_only): Likewise.
322         * config/darwin.c (machopic_finish): Get rid of tweak that
323         eliminate stubs for symbols that are defined.
324         (darwin_encode_section_info): Don't treat weak functions as defined.
325         (darwin_make_decl_one_only): Define.
326         (darwin_asm_named_section): Likewise.
327         (darwin_section_type_flags): Likewise.
328         (darwin_unique_section): Likewise.
329         (darwin_emit_unwind_label): Likewise.
330         (darwin_non_lazy_pcrel): Likewise.
331         (darwin_asm_output_dwarf_delta): Difference between two labels is
332         local only if both labels are local.
333         * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
334         (ASM_MAKE_LABEL_LINKONCE): Likewise.
335         (TARGET_SUPPORTS_HIDDEN): Likewise.
336         (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
337         (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
338         (FRAME_BEGIN_LABEL): Likewise.
339         (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
340         (ASM_DECLARE_FUNCTION_NAME): Likewise.
341         (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
342         (TARGET_ASM_UNIQUE_SECTION): Define.
343         (EH_FRAME_SECTION_NAME): Define.
344         (EH_FRAME_SECTION_ATTR): Likewise.
345         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
346         (TARGET_ASM_NAMED_SECTION): Likewise.
347         (TARGET_SECTION_TYPE_FLAGS): Likewise.
348         * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
349         TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
350         TARGET_ASM_EMIT_UNWIND_LABEL.
351         
352 2004-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
353
354         * builtins.c (expand_builtin_mathfn): Add pow10* to the
355         existing exp10* case.
356         (expand_builtin): Likewise.
357
358 2004-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
359
360         * doc/tm.texi (registers) <Values in Registers>: Add
361         entry for REGMODE_NATURAL_SIZE.
362
363 2004-03-12  Richard Henderson  <rth@redhat.com>
364
365         PR target/14547
366         * target.h (struct gcc_target): Move calls substructure before
367         booleans.  Add split_complex_arg.
368         * function.c (assign_parms, split_complex_args): Use it.
369         * calls.c (expand_call): Likewise.
370         (split_complex_values): Likewise.  Check for splittable types
371         before allocating memory.
372         (split_complex_types): Likewise.
373         * system.h (SPLIT_COMPLEX_ARGS): Poison.
374         * expr.h (SPLIT_COMPLEX_ARGS): Remove.
375         * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
376         * config/alpha/alpha.c (alpha_split_complex_arg): New.
377         (TARGET_SPLIT_COMPLEX_ARG): New.
378         * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
379         * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
380         (rs6000_override_options): Zap it for non-AIX.
381         (rs6000_function_value): Use targetm.calls.split_complex_arg.
382         * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
383         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
384         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
385         * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
386         SPLIT_COMPLEX_ARGS entry.
387
388 2004-03-11  Richard Henderson  <rth@redhat.com>
389
390         * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
391         (alpha_lookup_xfloating_lib_func): Use them, return rtx.
392         (alpha_emit_xfloating_arith): Update to match.
393         (alpha_emit_xfloating_compare): Likewise.
394         (alpha_emit_xfloating_cvt): Likewise.
395         (alpha_emit_xfloating_libcall): Take already built symbol,
396         mark call const.
397         * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
398         op1 in a register.
399
400 2004-03-11  Richard Henderson  <rth@redhat.com>
401
402         PR target/14539
403         * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
404
405         * simplify-rtx.c (simplify_relational_operation): Fix typo.
406
407 2004-03-11  Richard Henderson  <rth@redhat.com>
408
409         PR middle-end/14477
410         * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
411
412 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
413
414         PR target/14262
415         * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
416         defined, pass small BLKmode values in registers in the low-order part.
417
418 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
419
420         * combine.c (if_then_else_cond): Check for NULL return value of
421         simplify_gen_subreg.
422
423 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
424
425         PR target/14496
426         * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
427         TARGET_SINGLE_FLOAT.
428
429 2004-03-11  Steve Ellcey  <sje@cup.hp.com>
430
431         * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
432         * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
433         * config/ia64/ia64.c (ia64_init_libfuncs): New.
434         (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
435
436 2004-03-11  Roger Sayle  <roger@eyesopen.com>
437
438         * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
439         -((int)X>>C) where C is an integer constant one bit less than the
440         size of X into (unsigned)X>>C.  Similarly for unsigned->signed.
441         (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
442
443         * simplify-rtx.c (simplify_unary_operation): Also implement the
444         above transformations at the RTL level.
445
446 2004-03-11  Alan Modra  <amodra@bigpond.net.au>
447
448         * real.c (encode_ibm_extended): Do round low word.
449
450 2004-03-11  Ben Elliston  <bje@wasabisystems.com>
451
452         * config/arm/arm.md (is_xscale): Comment this attribute and move
453         it a bit further up in the file, closer to related attributes.
454
455 2004-03-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
456
457         * config/host-solaris.c (sol_gt_pch_use_address): Add
458         missing terminating marker to comment.
459
460 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
461
462         * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
463         (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
464         (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
465         (*movsf_mips16, *movdf_mips16):  Name unnamed patterns.  Use
466         move_operand as source predicate in all cases.
467         (*movdi_32bit): Renamed from movdi_internal.  Remove 'F' constraint.
468         Test reg_or_0_operand.  Use move_operand as source predicate.
469         (*movdi_64bit): Renamed from movdi_internal2.  Test reg_or_0_operand.
470         (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
471         (*movsi_internal): Renamed from movsi_internal.  Test reg_or_0_operand.
472         (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
473         (*movhi_internal): Renamed from movhi_internal.  Test reg_or_0_operand.
474         Use move_operand as source predicate.  Remove 'K' constraint.
475         (*movqi_internal): Likewise movqi_internal.
476         (*movsf_hardfloat): Renamed from movsf_internal1.  Test
477         reg_or_0_operand.  Use move_operand as source predicate.
478         (*movsf_softfloat): Likewise movsf_internal2.
479         (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
480         (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
481         (*movdf_softfloat): Likewise movdf_internal2.
482         * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
483         for DImode if !TARGET_64BIT.
484         (mips_legitimize_move): Simplify accordingly.
485
486 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
487
488         PR/14362
489         * var-tracking.c (struct variable_def): Added field refcount.
490         (variable_htab_free): Decrease the refcount and delete variable
491         only if there are no more references.
492         (unshare_variable): New function.
493         (vars_copy_1): Increase refcount instead of copying the variable.
494         (variable_union): Share the variables where possible, unshare
495         the variables if needed.
496         (variable_different_p): Return false if var1 and var2 are
497         the same structure.
498         (variable_was_changed): Init the refcount of new variable.
499         (set_frame_base_location): Unshare variable if needed.
500         (set_variable_part): Init the refcount of new variable.
501         Unshare the variables if needed.
502         (delete_variable_part): Unshare the variables if needed.
503         (emit_notes_for_differences_1): Init the refcount of new variable.
504         (vt_add_function_parameters): Do not add function parameters to
505         IN set of ENTRY_BLOCK_PTR because it is unused anyway.
506         (vt_initialize): Do not add frame_base_decl to IN set of
507         ENTRY_BLOCK_PTR because it is unused anyway.
508
509 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
510
511         * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
512         (vars_copy): Likewise.
513         (variable_union): Likewise.
514         (set_variable_part): Likewise.
515         (delete_variable_part): Likewise.
516
517 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
518
519         * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
520         ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
521         config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
522         config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
523         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
524         config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
525         config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
526         config/pdp11/pdp11.h, config/rs6000/rs6000.c,
527         config/stormy16/stormy16.c: Fix comment typos and formatting.
528
529 2004-03-11  Nathanael Nerode  <neroden@gcc.gnu.org>
530
531         * configure: Regenerate, since I forgot to while committing Paolo's
532         changes.
533
534 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
535
536         PR ada/14131
537         Move language detection to the top level.
538         * configure.ac: Remove code to detect languages,
539         it now lives exclusively in the top level.
540         * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
541         top level, renamed to ACX_PROG_GNAT.
542
543 2004-03-10  Richard Henderson  <rth@redhat.com>
544
545         * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
546         extra arguments.
547         * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
548         and host_xmake_file fragments.
549         * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
550         (gt_pch_restore): Similarly for gt_pch_use_address.
551         (default_gt_pch_get_address): New.
552         (mmap_gt_pch_get_address): Split out of gt_pch_save.
553         (default_gt_pch_use_address): Split out of gt_pch_restore.
554         (mmap_gt_pch_use_address): Likewise.
555         * hooks.c (hook_voidp_size_t_null): Remove.
556         (hook_bool_voidp_size_t_false): Remove.
557         * hooks.h: Likewise.
558         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
559         default_ or mmap_ definitions.
560         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
561         * hosthooks.h (struct host_hooks): Update gt_pch_get_address
562         and gt_pch_use_address.
563         * config/host-linux.c, config/host-solaris.c: New files.
564         * config/x-linux, config/x-solaris: New files.
565         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address): 
566         Update for changed definition.
567         (darwin_rs6000_gt_pch_use_address): Likewise.
568         * doc/hostconfig.texi: Update docs.
569
570 2004-03-10  Richard Henderson  <rth@redhat.com>
571
572         PR c/14517
573         * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
574         except for pedantic c90 mode.
575
576 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
577
578         * configure.ac: Bump AC_PREREQ to 2.59.
579         * configure: Regenerate.
580
581 2004-03-10  Uros Bizjak  <uros@kss-loka.si>
582
583         * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
584         (exp10_optab, exp2_optab): Define corresponding macros.
585         * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
586         * genopinit.c (optabs): Implement exp10_optab and exp2_optab
587         using exp10?f2 and exp2?f2 patterns.
588         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
589         using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
590         (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
591         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
592
593         * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
594         exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
595         exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
596
597 2004-03-10  Anthony Green  <green@redhat.com>
598
599         * doc/invoke.texi (ARM Options): Fix -mpfu typo.
600
601 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
602
603         * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
604         (TARGET_OS_AIX_CPP_BUILTINS): this.  Conditionally define
605         __LONGDOUBLE128.
606         * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
607         TARGET_OS_AIX_CPP_BUILTINS.
608         * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
609         * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
610         * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
611         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
612         previous change.
613
614 2004-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
615
616         * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
617
618 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
619
620         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
621         __LONGDOUBLE128 on AIX.
622
623 2004-03-10  Andrew Haley  <aph@redhat.com>
624
625         PR optimization/14381
626         * function.c (expand_function_end): Emit a blockage insn before
627         the epilogue when -fnon-call-exceptions is used.
628
629         * except.c (expand_start_all_catch): Make comment more accurate.
630
631 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
632
633         PR target/14480
634         * config/rs6000/t-rtems: Add missing file on branch.
635
636 2004-03-10  Ulrich Weigand  <uweigand@de.ibm.com>
637
638         * dbxout.c (dbxout_symbol_location): Do not output references
639         to optimized-out constant pool symbols.
640
641 2004-03-10  Andreas Schwab  <schwab@suse.de>
642
643         * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
644         twon34_r.
645
646 2004-03-09  James E Wilson  <wilson@specifixinc.com>
647
648         * alias.c (alias_sets_might_conflict_p): New.
649         * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
650         * common.opt (Wstrict-aliasing=): New.
651         * flags.h (warn_strict_aliasing): Change type to int.
652         * opts.c (warn_strict_aliasing): Change type to int.
653         (common_handle_option): Handle OPT_Wstrict_aliasing_.
654         * tree.h (alias_sets_might_conflict_p): Declare it.
655         * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
656
657 2004-03-10  Roman Zippel  <zippel@linux-m68k.org>
658
659         PR bootstrap/12371
660         * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
661         (CALL_USED_REGISTERS): Likewise.
662         (REG_CLASS_CONTENTS): Likewise.
663         (REG_ALLOC_ORDER): New.
664         (REGNO_REG_CLASS): Use regno_reg_class.
665         * config/m68k/m68k.c: Add regno_reg_class array.
666
667 2004-03-09  Steve Ellcey  <sje@cup.hp.com>
668
669         * config/ia64/ia64.md (divsi3): Fix algorithm.
670           (udivsi3): Ditto.
671           (setf_exp_xf): Remove '*' from name.
672         * testsuite/gcc.dg/20040309-1.c: New test.
673
674 2004-03-09  Ian Lance Taylor  <ian@wasabisystems.com>
675
676         * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
677         * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
678         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
679         * config/sparc/sparc.c (sparc_aout_select_section): Remove.
680         (sparc_aout_select_rtx_section): Don't check
681         SUNOS4_SHARED_LIBRARIES.
682         * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
683
684 2004-03-10  Hans-Peter Nilsson  <hp@axis.com>
685
686         PR other/14474
687         * doc/md.texi (Pattern Ordering, Dependent Patterns)
688         (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
689         INTERNALS".
690
691 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
692
693         * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
694         (LIBGCC_SPEC): Update to match.
695
696 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
697
698         * c-decl.c (last_function_parms, last_function_parm_tags)
699         (last_function_parm_others, current_function_parms)
700         (current_function_parm_tags, current_function_parm_others):
701         Delete.
702         (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
703         New macros.
704         (grokdeclarator): For function definitions, save the arg-info
705         block from the declarator in DECL_ARGUMENTS.
706         (grokparms): Do not write to last_function_parm*.  Use ARG_INFO_*
707         macros to operate on arg-info block.  Can assume ARG_INFO_PARMS
708         contains only PARM_DECLs.  Improve diagnostics.
709         (get_parm_info): Use ARG_INFO_* macros.  Improve comments and
710         diagnostics.  Disable some expensive checks if not ENABLE_CHECKING.
711         (store_parm_decls_newstyle): Take the function to operate on,
712         and an arg-info block, as arguments; don't get anything from
713         current_function_* globals.
714         (store_parm_decls_oldstyle): Likewise.
715         (store_parm_decls): Pass fndecl and its arg-info block down to
716         store_parm_decls_newstyle/oldstyle.  Send functions with empty
717         argument lists through store_parm_decls_newstyle to reduce
718         overhead.
719         (pushdecl): Comment on the problems with the call to copy_node.
720         Clear DECL_ARGUMENTS of the old node after copying it, if it
721         is an arg-info block instead of a chain of decls.
722         (start_function): Do not manipulate current_function_parm* or
723         last_function_parm*.
724
725 2004-03-09  Roger Sayle  <roger@eyesopen.com>
726             Andrew Pinski  <pinskia@physics.uc.edu>
727
728         * ifcvt.c (noce_try_sign_mask): New function to transform
729         "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
730         (noce_process_if_block): Call noce_try_sign_mask.
731
732 2004-03-09  Andrew Pinski  <apinski@apple.com>
733
734         * c-typeck.c (tagged_types_tu_compatible_p):
735         Fix typo.
736
737 2004-03-09  Roger Sayle  <roger@eyesopen.com>
738
739         * simplify-rtx.c (simplify_const_relational_operation): New function
740         renamed from simplify_relational_operation.
741         (simplify_relational_operation): Change prototype to accept an
742         additional mode argument.  Call simplify_const_relational_operation.
743         (simplify_gen_relational): Update simplify_relational_operation call.
744         (simplify_ternary_operation): Update simplify_relational_operation
745         subroutine call to use simplify_const_relational_operation instead.
746
747         * rtl.h (simplify_const_relational_operation): Prototype here.
748         (simplify_relational_operation): Add addtional mode argument.
749
750         * combine.c (combine_simplify_rtx): Update calls to
751         simplify_relational_operation.
752         (simplify_set): Likewise.
753         (gen_binary): Likewise.
754         * cse.c (fold_rtx): Likewise.
755         * dojump.c (compare_from_rtx): Likewise.
756         (do_compare_rtx_and_jump): Likewise.
757         * integrate.c (subst_constants): Likewise.
758         * unroll.c (simplify_cmp_and_jump_insns): Likewise.
759
760 2004-03-09  Kazu Hirata  <kazu@cs.umass.edu>
761
762         * config/m32r/m32r.md: Remove all define_peephole's.
763
764 2004-03-09  Alan Modra  <amodra@bigpond.net.au>
765
766         * config/rs6000/rs6000.md: Remove trailing whitespace.
767
768 2004-03-08  Eric Christopher  <echristo@redhat.com>
769
770         * Makefile.in (site.exp): Add libiconv variable definition.
771
772 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
773
774         * configure: Regenerate for config/accross.m4 correction.
775
776 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
777
778         PR target/14480
779         * config/rs6000/t-rtems: Add missing file on branch.
780
781 2004-03-08  Roger Sayle  <roger@eyesopen.com>
782
783         PR middle-end/14289
784         * c-typeck.c (c_mark_addressable): A register variable should
785         be considered global if its not automatic, i.e. TREE_PUBLIC,
786         TREE_STATIC or DECL_EXTERNAL.
787         * function.c (put_var_into_stack): Call abort when placing a
788         hard register into the stack, if x_parm_reg_stack_loc is NULL.
789
790 2004-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
791
792         * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
793         ("*extendqisi2_short_displ"): Likewise.
794
795 2004-03-08  Kazu Hirata  <kazu@cs.umass.edu>
796
797         * config/pdp11/pdp11.c (comparison_operator_index): Remove.
798         (comp_operator): Likewise.
799         * config/pdp11/pdp11-protos.h: Remove corresponding
800         prototypes.
801
802 2004-03-08  Eric Botcazou  <ebotcazou@act-europe.fr>
803
804         * expr.c (highest_pow2_factor_for_type): Rename into
805         highest_pow2_factor_for_target.  Use DECL_ALIGN instead of
806         TYPE_ALIGN when the target is a COMPONENT_REF.
807         (expand_assignment): Ajust call to highest_pow2_factor_for_type.
808
809 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
810
811         * config/rs6000/rs6000.c: Formatting fix.
812         (legitimate_offset_address_p): Correct offset range check.
813
814         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
815         -msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
816         and MASK_STRING.
817
818 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
819
820         * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
821         for little endian.
822         ("ashrdi3_no_power"): Disable for little endian.
823         (ashrdi3): Same.
824
825 2004-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
826
827         * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
828         builtins.
829
830 2004-03-08  Hans-Peter Nilsson  <hp@axis.com>
831
832         PR target/14471
833         * configure.ac (Target-specific assembler checks) <cris-*-*>: New
834         case, checking for -no-mul-bug-abort option.
835         * configure, config.in: Regenerate.
836         * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
837         and -mno-mul-bug-workaround.
838         * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
839         ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
840         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
841         Ditto.  Make attribute "slottable" dependent on TARGET_MUL_BUG.
842         * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
843         sure mulu.d is not last on cache-line.
844         * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
845         into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
846         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
847         (TARGET_SWITCHES): New options -mmul-bug-workaround and
848         -mno-mul-bug-workaround.
849         (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
850         (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
851         * config/cris/cris.c (cris_operand_extend_operator): Clarify
852         relation to MULT in head comment.
853         (cris_op_str): Abort for MULT.
854         (cris_print_operand) <case '!'>: New case.
855
856 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
857
858         PR debug/11983
859         * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
860         dw_val_class_vec.  Replace use throughout file.
861         (dw_float_const): Delete.
862         (dw_vec_const): New.
863         (dw_val_struct_union): Rename val_float to val_vec.  Replace use
864         throughout file.
865         (add_AT_vec): Rename from add_AT_float.  Add elt_size param.
866         (same_dw_val_p): Adjust vec comparison.  Use memcmp.
867         (size_of_die): Adjust dw_val_class_vec sizing.
868         (output_die): Output dw_val_class_vec.
869         (insert_int, extract_int, insert_float): New functions.
870         (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
871         Handle CONST_VECTOR.
872         (add_location_or_const_value_attribute): Handle CONST_VECTOR.
873
874 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
875
876         * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
877         AltiVec abi cannot co-exist.
878
879         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
880
881 2004-03-07  Jan Hubicka  <jh@suse.cz>
882
883         * except.c (emit_to_new_bb_before):  Break fallthru edges.
884
885 2004-03-07  Stephane Carrez  <stcarrez@nerim.fr>
886
887         * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
888         ("*lshrsi3"): Also accept an immediate for 68HC12.
889         ("*ashrsi3_const"): Likewise.
890         ("*ashrsi3"): Likewise.
891         ("*ashlsi3_const"): Likewise.
892         ("*ashlsi3"): Likewise.
893         ("cmphi_1_hc12"): Compare two hard register by pushing them and
894         comparing with a pop; don't use a split for that.
895         ("cmphi split"): Disable compare split for 68HC12.
896
897         * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
898         the status operands if they have side effects.
899
900 2004-03-07  Kazu Hirata  <kazu@cs.umass.edu>
901
902         * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
903         definition.
904         * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
905         config/h8300/h8300.h, config/ia64/ia64.h,
906         config/mcore/mcore.h, config/mmix/mmix.h,
907         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
908         config/stormy16/stormy16.h, config/v850/v850.h,
909         config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
910         * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
911         definition.
912
913 2004-03-07  Roger Sayle  <roger@eyesopen.com>
914
915         * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
916         <XOR_EXPR>: Fold x ^ x as zero.
917         <AND_EXPR>: Fold x & x as x.
918
919 2004-03-07  Roger Sayle  <roger@eyesopen.com>
920
921         * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
922         "foo++ == const" into "++foo == const+incr".
923
924 2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
925
926         * config/mips/mips.c (mips_in_small_data_p): Return false if
927         TARGET_ABICALLS.
928
929 2004-03-06  Stephane Carrez  <stcarrez@nerim.fr>
930
931         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
932         the stack register.
933         (expand_prologue): Don't make an interrupt or a trap handler a far
934         symbol.
935         (m68hc11_initial_elimination_offset): Likewise.
936
937 2004-03-06  Richard Henderson  <rth@redhat.com>
938
939         * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
940
941 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
942
943         * config/ns32k/ns32k-protos.h: Add a prototype for
944         ns32k_notice_update_cc.
945         * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
946         * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
947         ns32k_notice_update_cc.
948
949 2004-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
950
951         * config/s390/s390.md ("load_multiple", "*load_multiple_di",
952         "*load_multiple_si"): Allow only if reload_completed.
953         ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
954         Likewise.
955
956 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
957
958         * config/vax/vax-protos.h: Add a prototype for
959         vax_notice_update_cc.
960         * config/vax/vax.c (vax_notice_update_cc): New.
961         * config/vax/vax.h (NOTICE_UPDATE_CC): Call
962         vax_notice_update_cc.
963
964 2004-03-06  David Edelsohn  <edelsohn@gnu.org>
965
966         * collect2.c (main): Only export initfunc and finifunc if
967         LD_INIT_SWITCH not defined.
968         (scan_prog_file): Only export constructors and destructors if
969         LD_INIT_SWITCH not defined.  Only export symbols not found in
970         shared objects.
971
972 2004-03-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
973
974         * pa.md (icacheflush): Reorder operands to make match_scratch operand
975         last.
976         * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
977         from calls to gen_icacheflush.
978
979 2004-03-06  Richard Henderson  <rth@redhat.com>
980
981         * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
982         (TARGET_LONG_DOUBLE_128): New.
983         (TARGET_SWITCHES): Add long-double-{128,64}.
984         (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
985         (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
986         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
987         (WIDEST_HARDWARE_FP_SIZE): New.
988         (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
989         * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
990         if TARGET_VAX_FLOAT.
991         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
992         (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
993
994 2004-03-06  Richard Henderson  <rth@redhat.com>
995
996         * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
997         botched rtx class conversion.
998
999 2004-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1000
1001         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
1002         BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
1003
1004         * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
1005         macros.
1006         * fold-const.c (fold_mathfn_compare, fold): Likewise.
1007
1008 2004-03-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1009
1010         PR target/14343
1011         * config/i386/i386.md (movv2di_internal): Conditionalize on
1012         TARGET_SSE, not TARGET_SSE2.
1013
1014 2004-03-05  Chris Demetriou  <cgd@broadcom.com>
1015
1016         * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
1017         duplicated line.
1018
1019 2004-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1020
1021         * builtins.c: Consistently use logN not log* in comments.
1022
1023 2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>
1024
1025         * rtl.h (mem_expr_equal_p): Function prototype added.
1026         * cfgcleanup.c (merge_memattrs): New function.
1027         (flow_find_cross_jump): Call merge_memattrs for matching insns.
1028         * emit-rtl.c (mem_expr_equal_p): New function.
1029
1030 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
1031
1032         * objc/objc-act.c (synth_module_prologue): Const-qualify
1033         objc_selector type if using the GNU runtime; fix generated
1034         signatures for objc_msg_lookup and objc_msg_lookup_super
1035         to match what GNU ObjC headers provide; reformat and clean up.
1036         (synth_self_and_ucmd_args): Use previously constructed (and
1037         hence possibly const-qualified) objc_selector type.
1038
1039 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1040
1041         * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
1042
1043 2004-03-05  Jason Merrill  <jason@redhat.com>
1044
1045         * tree.h (TYPE_HASH): Use TYPE_UID.
1046         (TREE_HASH): New macro with old definition of TYPE_HASH.
1047         * tree.c (build_type_attribute_variant): Use iterative_hash_object.
1048         (build_array_type, build_function_type): Likewise.
1049         (build_method_type_directly): Likewise.
1050         (build_offset_type, build_complex_type): Likewise.
1051         (type_hash_list, attribute_hash_list): Likewise. Now static.
1052         * except.c: s/TYPE_HASH/TREE_HASH/.
1053
1054 2004-03-05  Bob Wilson  <bob.wilson@acm.org>
1055
1056         * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
1057         (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32).  Adjust
1058         __va_ndx by 2 words when referencing an argument on the stack.
1059         (xtensa_va_arg): Handle 16-byte aligned args.  Adjust __va_ndx by 2
1060         words when an arg on the stack is first seen.
1061
1062 2004-03-05  Paul Brook  <paul@codesourcery.com>
1063
1064         * arm.h (ARM_FLAG_VFP): Remove.
1065         (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
1066         * netbsd-elf.h (ARM_FLAG_VFP): Remove.
1067
1068 2004-03-05  Paul Brook  <paul@codesourcery.com>
1069
1070         * function.c (assign_parms): Include pretend alignment offset.
1071
1072 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1073
1074         * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
1075         FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
1076
1077 2004-03-05  Ian Lance Taylor  <ian@wasabisystems.com>
1078
1079         * configure.ac: When passing --enable-languages to subdir
1080         configure when host != build, make sure we don't pass an empty
1081         value.
1082         * configure: Regenerate.
1083
1084 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1085
1086         PR 13577
1087         * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
1088         options.
1089
1090 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
1091
1092         * simplify-rtx.c (simplify_relational_operation): If
1093         flag_wrapv is set, do not move terms between the two
1094         side of a relational operator.
1095
1096 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
1097
1098         * rtlanal.c: Include target.h and output.h
1099         (rtx_cost, address_cost, default_address_cost): Move from...
1100         * cse.c (rtx_cost, address_cost, default_address_cost):
1101         ... this file.
1102         * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
1103         * Makefile.in: Adjust dependencies.
1104
1105 2004-03-05  Paolo Bonzini <bonzini@gnu.org>
1106
1107         * cse.c (cse_end_of_basic_block): Make static.
1108         * local-alloc.c (function_invariant_p): Move to
1109         reload1.c.
1110         * loop.c (libcall_other_reg, record_excess_regs):
1111         Make static.
1112         * reload1.c (function_invariant_p): Moved here
1113         from local-alloc.c, made static.
1114         * rtl.h (cse_end_of_basic_block, function_invariant_p,
1115         libcall_other_reg, record_excess_regs): Remove
1116         declarations.
1117
1118 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1119
1120         * config/m32r/m32r.c (signed_comparison_operator): Add a
1121         missing parenthesis.
1122
1123 2004-03-04  Ian Lance Taylor  <ian@wasabisystems.com>
1124
1125         * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
1126         going to call mmap again.  Read the file into the right place.
1127         Give a fatal error if we have to relocate.
1128
1129 2004-03-04  Bob Wilson  <bob.wilson@acm.org>
1130
1131         * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
1132         (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
1133
1134 2004-03-05  Hans-Peter Nilsson  <hp@axis.com>
1135
1136         PR other/14354
1137         * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
1138         round the same.  When rounding, clear bits that would cause a
1139         second rounding in pack_d.
1140         (_fpmul_parts): Ditto.  Remove #if 0:d code.
1141
1142 2004-03-04  Ziemowit Laski  <zlaski@apple.com>
1143
1144         PR c++/14425, c++/14426
1145         * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
1146         vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
1147         Change C++ definitions to accept a 'const int' argument;
1148         the prototypes already do.
1149         * config/rs6000/rs6000.c (rs6000_common_init_builtins):
1150         Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
1151         v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
1152         v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
1153         v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
1154         v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
1155         end in ..._int; change them to accept an int instead of a char
1156         as the last parameter.
1157
1158 2004-03-04  Phil Edwards  <phil@codesourcery.com>
1159
1160         * genmultilib:  Change '=' to '-' when translating option names
1161         to directory names.
1162
1163 2004-03-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1164
1165         * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
1166         stack slot for temp used for result of BLKmode but in integral mode.
1167
1168 2004-03-04  Jan Hubicka  <jh@suse.cz>
1169
1170         * reload.c (find_reloads): Reorganize if seqeunce to switch.
1171
1172         * cfgrtl.c (rtl_redirect_edge_and_branch):  Set the source BB as dirty.
1173         (cfglayout_redirect_edge_and_branch):  Set the source BB as dirty.
1174
1175 2004-03-04  Steve Ellcey  <sje@cup.hp.com>
1176
1177         * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
1178         * testsuite/gcc.dg/20040303-1.c: New test.
1179
1180 2004-03-04  Steven Bosscher  <stevenb@suse.de>
1181
1182         * ppro.md: Rewrite as a DFA pipeline description.
1183         * i386.md: Remove all uses of the ppro_uops attribute.
1184         * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
1185         ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
1186         ix86_sched_reorder, ix86_variable_issue,
1187         struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
1188         TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
1189         (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
1190         (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
1191         * athlon.md (athlon_ssecmp_load): Fix comment
1192
1193 2004-03-04  Stuart Hastings  <stuart@apple.com>
1194
1195         * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
1196
1197 2004-03-04  Stuart Hastings  <stuart@apple.com>
1198
1199         * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
1200         686, tell Darwin assembler to allow prefetch insns, non-empty def
1201         of SUBTARGET_OPTION_TRANSLATE_TABLE.
1202
1203 2004-03-04  DJ Delorie  <dj@redhat.com>
1204
1205         PR optimization/14282
1206         * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
1207         between a call and the assignment of its return value.
1208
1209 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
1210
1211         * config/h8300/h8300.c: Put a comment for every function.
1212
1213 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
1214
1215         * config/h8300/h8300.md: Add comments about peephole2's.
1216
1217 2004-03-04  Steven Bosscher  <stevenb@suse.de>
1218
1219         * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
1220
1221 2004-03-04  Jan Hubicka  <jh@suse.cz>
1222
1223         * cfgcleanup.c (thread_jump): Update call of cselib_init.
1224         * cselib.c (cselib_record_memory): New static variable.
1225         (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
1226         Give up on memories when asked for.
1227         (cselib_init): Accept new argument.
1228         * cselib.h (cselib_init): Update prototype.
1229         * gcse.c (local_cprop_pass): Update call of cselib_init.
1230         * loop.c (load_mems): Update call of cselib_init.
1231         * postreload.c (reload_cse_regs_1): Update call of cselib_init.
1232         * sched-deps.c (sched_analyze): Update call of cselib_init.
1233
1234 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
1235             GP <gp@qnx.com>
1236
1237         * config/rs6000/rs6000.c (output_function_profiler): Append @plt
1238         when compiling PIC.
1239
1240 2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
1241
1242         PR/14362
1243         * var-tracking.c (track_expr_p): Do not track variables which
1244         should be ignored for debugging purposes.
1245
1246 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
1247
1248         * real.c (encode_ibm_extended): Don't bother rounding low double.
1249         * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
1250         when fmt->pnan < fmt->p.
1251
1252 2004-03-04  Eric Christopher  <echristo@redhat.com>
1253
1254         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
1255         only range of valid arg registers and fixed_regs.
1256
1257 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
1258
1259         PR target/14406
1260         * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
1261         (abstf2, abstf2_internal): New define_expand.
1262
1263 2004-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1264
1265         PR optimization/14235
1266         * expr.c (convert_move): Copy the source to a new pseudo
1267         when converting from a sub-word source to a larger-than-word
1268         register which conflicts with the source.
1269
1270 2004-03-03  Zack Weinberg  <zack@codesourcery.com>
1271
1272         PR 13728
1273         * c-decl.c (diagnose_mismatched_decls): Issue an error for two
1274         parameters with the same name, unless one is a forward decl.
1275         Do not issue a redundant-redeclaration warning for forward
1276         decls of parameters.
1277
1278 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
1279
1280         * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
1281         configuration.
1282
1283 2004-03-03  Ian Lance Taylor  <ian@wasabisystems.com>
1284
1285         * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
1286
1287 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
1288
1289         * target-def.h (TARGET_OPTF): Delete.
1290         * c-opts.c (TARGET_OPTF): Define.
1291
1292 2004-03-04  Jan Hubicka  <jh@suse.cz>
1293
1294         * cselib.c (cselib_finish): Fix another miss-application of my previous
1295         patch.
1296
1297 2004-03-03  Mike Stump  <mrs@apple.com>
1298
1299         Add framework support for darwin.
1300
1301         * c-incpath.c: Include target.h and machmode.h.
1302         (add_path): Use a consistent style for cpp_dir.  Initialize
1303         p->construct to 0.
1304         (add_cpp_dir_path): New.
1305         (register_include_chains): Add use of extra_includes callback.
1306         (hook_void_int): Add.
1307         (target_c_incpath): Add.
1308         * c-incpath.h (add_cpp_dir_path): New.
1309         (target_c_incpath_s): Add.
1310         (target_c_incpath): Add.
1311         (C_INCPATH_INIT): Add.
1312         * c-opts.c (c_common_missing_argument,
1313         c_common_handle_option): Add -F argument processing.
1314         * c.opt: Add -F argument processing.
1315         * gcc.c (trad_capable_cpp): Add -F argument processing.
1316         * cppfiles.c (find_file_in_dir): Update to use construct
1317         callback.
1318         (search_path_exhausted, cpp_get_path, cpp_get_buffer,
1319         cpp_get_prev): New.
1320         (_cpp_find_file): Use search_path_exhausted.
1321         (make_cpp_dir): Initialize construct to 0.
1322         * cpplib.h (missing_header_cb
1323         cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
1324         (cpp_callbacks): Add missing_header
1325         (cpp_dir): Add construct.
1326         * target-def.h: (TARGET_OPTF): New.
1327         * hooks.c (hook_void_int, hook_void_charptr): Add.
1328         * hooks.h (hook_void_int, hook_void_charptr): Add.
1329         * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
1330         $(MACHMODE_H) dependencies.
1331         * doc/invoke.texi (Darwin Options): Document -F.
1332         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
1333         (TARGET_OPTF): Add.
1334         * fix-header.c (target_c_incpath): Add.
1335
1336         * config/darwin-c.c: Add c-incpath.h include.
1337         (using_frameworks, find_subframework_file,
1338         find_subframework_header, add_system_framework_path,
1339         frameworks_in_use, num_frameworks, max_frameworks,
1340         add_framework, find_framework, struct framework_header,
1341         framework_header_dirs, framework_construct_pathname,
1342         find_subframework_file, add_system_framework_path,
1343         add_framework_path, framework_defaults,
1344         darwin_register_frameworks, find_subframework_header): Add.
1345         * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
1346         (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
1347         (CPP_SPEC): Add __APPLE_CC__ support.
1348         * t-darwin (darwin-c.o): Add c-incpath.h dependency.
1349
1350 2004-03-04  Jan Hubicka  <jh@suse.cz>
1351
1352         * cselib.c (cselib_finish): Fix miss-application of my previous
1353         patch.
1354
1355 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1356
1357         * hooks.c (hook_tree_tree_identity): New.
1358         * hooks.h: Add a prototype for hook_tree_tree_identity.
1359         * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
1360         instead of MD_ASM_CLOBBERS.
1361         * system.h (MD_ASM_CLOBBERS): Poison.
1362         * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
1363         (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
1364         * target.h (gcc_target): Add md_asm_clobbers.
1365         * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
1366         (ix86_md_asm_clobbers): New.
1367         * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
1368         * doc/tm.texi (MD_ASM_CLOBBERS): Change to
1369         TARGET_MD_ASM_CLOBBERS.
1370
1371 2004-03-03  Stuart Hastings  <stuart@apple.com>
1372
1373         * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
1374
1375 2004-03-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1376
1377         * config/sparc/sparc.c (noov_compare64_op): Fix typo.
1378
1379         * config/sparc/sparc.h (ASM_FLOAT): Delete.
1380         (ASM_DOUBLE): Likewise.
1381         (ASM_LONGDOUBLE): Likewise.
1382         * config/sparc/pbd.h (ASM_INT_OP): Delete.
1383
1384 2003-03-03  Richard Henderson  <rth@redhat.com>
1385
1386         PR opt/13862
1387         * cselib.c (cselib_record_sets): Don't record multiple sets in
1388         asm insns.
1389
1390 2004-03-03  Mostafa Hagog  <mustafa@il.ibm.com>
1391
1392         * common.opt: Add description of the new -fgcse-after-reload flag.
1393
1394         * flags.h (flag_gcse_after_reload): Declaration of global variable.
1395
1396         * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
1397         reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
1398         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
1399         get_bb_avail_insn, hash_scan_set_after_reload,
1400         compute_hash_table_after_reload, eliminate_partially_redundant_loads,
1401         gcse_after_reload, get_bb_avail_insn): New functions to implement
1402         gcse-after-reload.
1403         (gcse_after_reload_main): New function, the main entry point to
1404         gcse-after-reload.
1405
1406         * rtl.h (gcse_after_reload_main): Declaration of the new function.
1407
1408         * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
1409
1410         * toplev.c (flag_gcse_after_reload): Initialization.
1411
1412         * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
1413
1414         * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
1415         PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
1416         the gcse after reload optimization.
1417
1418         * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
1419         GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
1420         parameters.
1421
1422         * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
1423
1424 2004-03-03  Nicolas Pitre <nico@cam.org>
1425
1426         * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
1427         small negative values.
1428
1429 2004-03-03  Jan Hubicka  <jh@suse.cz>
1430
1431         * cselib.c (hash_table):  Remove GTY marker.
1432         (reg_values): Turn into array.
1433         (used_regs): Likewise.
1434         (n_used_regs): New static variable.
1435         (reg_values_old): Kill.
1436         (clear_table): Update uses of arrays.
1437         (cselib_lookup): Likewise.
1438         (cselib_record_set): Likewise.
1439         (cselib_init): Likewise.
1440         (cselib_finish): Likewise.
1441         (cselib_udpate_varray_sizes): Kill.
1442         * cselib.h (cselib_update_varray_sizes): Kill.
1443
1444 2004-03-03  Paul Brook  <paul@codesourcery.com>
1445
1446         * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
1447
1448 2004-03-03  Jan Hubicka  <jh@suse.cz>
1449
1450         * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
1451         Rename from ...; make statistics transparent.
1452         (ggc_alloc_cleared, ggc_realloc_stat): ... these.
1453         (loc_descriptor): New structure.
1454         (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
1455         add_statistics):
1456         New static function.
1457         (ggc_record_overhead, dump_statistics): New global function.
1458         * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
1459         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
1460         from ...; accept locations
1461         (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
1462         ggc_realloc, ggc_alloc_typed):  ... this one.
1463         from ...; accept locations
1464         * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
1465         ggc_alloc_stat): Rename from ... ; pass locations
1466         * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
1467         ... this one.
1468         (ggc_alloc_stat): Record overehead.
1469         * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
1470         ggc_realloc, ggc_alloc_typed):  Turn to macros
1471         (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
1472         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
1473         (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
1474         * langhooks.h (lhd_make_node): Declare.
1475         (LANG_HOOKS_MAKE_TYPE): Default to new function,
1476         * langhooks.c (lhd_make_node): New.
1477         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
1478         locations.
1479         (rtx_alloc, swallow_copy_rtx): ... this one.
1480         * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
1481         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
1482         * toplpev.c (finalize): Dump stats.
1483         * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
1484         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
1485         Rename from ... ; pass locators.
1486         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
1487         build?,  build_decl): Declare.
1488         * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
1489         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
1490         Declare.
1491         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
1492         build?,  build_decl): New macros.
1493         * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
1494         * statistics.h: New file.
1495
1496 2004-03-03  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1497             Richard Sandiford  <rsandifo@redhat.com>
1498
1499         * config/mips/mips.h (MASK_FIX_SB1): Bump.
1500         (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
1501         (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
1502         * config/mips/mips.c (mips_output_division): Fill the branch delay
1503         slot with a nop if TARGET_FIX_R4000.  Extend R4000 workarounds to
1504         TARGET_FIX_R4400.
1505         (mips_output_division): Adjust accordingly.
1506         (override_options): Make -march=r4400 imply -mfix-r4400 by default.
1507         * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
1508
1509 2004-03-03  Paolo Bonzini  <bonzini@gnu.org>
1510
1511         * alias.c (rtx_equal_for_memref_p): Use predicates
1512         to test rtx classes and new rtx class codes, possibly
1513         splitting conditionals that tested against '<' and 'o'.
1514         * caller-save.c (save_call_clobbered_regs): Likewise.
1515         * combine.c (contains_muldiv, find_split_point, subst,
1516         combine_simplify_rtx, simplify_if_then_else,
1517         simplify_set, simplify_logical, expand_compound_operation,
1518         make_compound_operation, if_then_else_cond, known_cond,
1519         apply_distributive_law, cached_nonzero_bits,
1520         cached_num_sign_bit_copies, simplify_shift_const,
1521         gen_binary, simplify_comparison, update_table_tick,
1522         record_value_for_reg, get_lsat_value_validate): Likewise.
1523         * cse.c (mention_regs, find_best_addr, find_comparison_args,
1524         fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
1525         Likewise.
1526         * emit-rtl.c (copy_insn_1): Likewise.
1527         * expr.c (force_operand): Likewise.
1528         * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
1529         * flow.c (notice_stack_pointer_modification_1,
1530         invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
1531         and_reg_cond, elim_reg_cond): Likewise.
1532         * function.c (update_epilogue_consts): Likewise.
1533         * genattrtab.c (attr_rtx_1): Likewise.
1534         * genopinit.c (gen_insn): Likewise.
1535         * integrate.c (subst_constants): Likewise.
1536         * jump.c (reversed_comparison_code_parts,
1537         reversed_comparison_code, delete_related_insns,
1538         rtx_renumbered_equal_p): Likewise.
1539         * local-alloc.c (block_alloc): Likewise.
1540         * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
1541         canonicalize_condition): Likewise.
1542         * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
1543         Likewise.
1544         * optabs.c (add_equal_node, expand_binop): Likewise.
1545         * predict.c (estimate_probability): Likewise.
1546         * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
1547         * recog.c (validate_replace_rtx_1, comparison_operator,
1548         offsettable_address_p, constrain_operands): Likewise.
1549         * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
1550         Likewise.
1551         * regclass.c (scan_one_insn): Likewise.
1552         * regmove.c (stable_and_no_regs_but_for_p): Likewise.
1553         * regrename.c (kill_autoinc_value): Likewise.
1554         * reload.c (find_reusable_reload, find_reloads,
1555         reg_overlap_mentioned_for_reload_p): Likewise.
1556         * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
1557         * rtl.c (copy_rtx): Likewise.
1558         * rtl.h (CONSTANT_P, INSN_P): Likewise.
1559         * rtlanal.c (commutative_operand_precedence): Likewise.
1560         * sched-deps.c (conditions_mutex_p): Likewise.
1561         * sched-rgn.c (is_cfg_nonregular): Likewise.
1562         * simplify-rtx.c (simplify_gen_binary,
1563         simplify_gen_relational, simplify_replace_rtx,
1564         simplify_unary_operation, simplify_binary_operation,
1565         simplify_ternary_operation, simplify_rtx): Likewise.
1566         * unroll.c (reg_dead_after_loop): Likewise.
1567         * config/alpha/alpha.c (alpha_swapped_comparison_operator,
1568         print_operand): Likewise.
1569         * config/arc/arc.c (proper_comparison_operator): Likewise.
1570         * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
1571         Likewise.
1572         * config/avr/avr.c (_reg_unused_after): Likewise.
1573         * config/frv/frv.c (frv_ifcvt_modify_tests,
1574         frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
1575         * config/i386/i386.c (ix86_comparison_operator,
1576         ix86_carry_flag_operator, fcmov_comparison_operator,
1577         arith_or_logical_operator, print_operand,
1578         ix86_expand_binary_operator, ix86_binary_operator_ok):
1579         Likewise.
1580         * config/i386/i386.md: Likewise.
1581         * config/ia64/ia64.c (not_postinc_memory_operand,
1582         ia64_print_operand, update_set_flags, errata_emit_nops):
1583         Likewise.
1584         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
1585         CONSTRAINT_OK_FOR_S): Likewise.
1586         * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
1587         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
1588         ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
1589         ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
1590         Likewise.
1591         * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
1592         eqne_comparison_operator, signed_comparison_operator):
1593         Likewise.
1594         * config/mips/mips.c (cmp_op, symbolic_expression_p):
1595         Likewise.
1596         * config/mmix/mmix (mmix_foldable_comparison_operator,
1597         mmix_comparison_operator): Likewise.
1598         * config/pa/pa.c (hppa_legitimize_address): Likewise.
1599         * config/rs6000/rs6000.c (stmw_operation,
1600         branch_comparison_operator, trap_comparison_operator,
1601         ccr_bit): Likewise.
1602         * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
1603         * config/s390/s390.c (s390_alc_comparison,
1604         s390_slb_comparison):L Likewise.
1605         * config/sh/sh.c (gen_block_redirect, reg_unused_after):
1606         Likewise.
1607         * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
1608         noov_compare_op, noov_compare64_op, v9_regcmp_op,
1609         emit_hard_tfmode_operation, reg_unused_after)
1610         * doc/md.texi, doc/rtl.texi: Likewise.
1611
1612         * ra-debug.c: Add 2004 to list of copyright years.
1613         * unroll.c: Likewise.
1614
1615         * combine.c (simplify_logical): Remove dummy test,
1616         (apply_distributive_law): Fix typo in comment.
1617         GET_CODE (x) == AND so x is a commutative binary op.
1618         * jump.c (delete_related_insns): simplify loop
1619         condition, move testing of RTX codes inside the loop.
1620         (rtx_renumbered_equal_p): do not use RTX_CODE.
1621         * rtl.c (rtx_class): Declare as enum rtx_class.
1622         * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
1623         Move to RTX_COMM_COMPARE class.
1624         (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
1625         Move to RTX_CONST_OBJ class.
1626         * rtl.h (enum rtx_class): New declaration,
1627         (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
1628         RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
1629         RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
1630         RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
1631         RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
1632         ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
1633         SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
1634         OBJECT_P): New macros.
1635         * config/sparc/sparc.c (noov_compare_op): Remove register
1636         from parameter.
1637
1638 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
1639
1640         * target.h: Remove texi jargons in comments.
1641
1642 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1643
1644         * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
1645         threshold to 0x4f.
1646
1647         Revert:
1648         2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
1649         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
1650         as well.
1651         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
1652         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
1653
1654 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1655
1656         * doc/md.texi (cbranchmode4): New.
1657
1658 2004-03-02  Eric Christopher  <echristo@redhat.com>
1659
1660         * config/mips/mips16.S: Change fixsfsi and fixdfsi to
1661         fix_trunc.
1662         * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
1663         * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
1664         * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
1665         * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
1666
1667 2004-03-02  Richard Henderson  <rth@redhat.com>
1668
1669         PR middle-end/11767
1670         * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
1671         * optabs.c (prepare_cmp_insn): Force trapping memories to registers
1672         before the compare, if flag_non_call_exceptions.
1673
1674 2004-03-02  Richard Henderson  <rth@redhat.com>
1675
1676         PR middle-end/14327
1677         * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
1678         emitting the label, not after.
1679
1680 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1681
1682         * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
1683         (m68hc11_mov_addr_mode): Likewise.
1684         (m68hc11_override_options): Initialize them based on target.
1685         (register_indirect_p): Allow a MEM for indirect addressing modes and
1686         use flags to control what is allowed.
1687         (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
1688         supported addressing modes.
1689         (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
1690         (go_if_legitimate_address_internal): Likewise.
1691         (m68hc11_indirect_p): Likewise and check the mode.
1692         (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
1693
1694 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1695
1696         * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
1697         (expand_builtin_setjmp_setup): Use
1698         targetm.builtin_setjmp_frame_value instead of
1699         BUILTIN_SETJMP_FRAME_VALUE.
1700         * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
1701         * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
1702         (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
1703         * target.h (gcc_target): Add builtin_setjmp_frame_value.
1704         * targhooks.c (default_builtin_setjmp_frame_value): New.
1705         * targhooks.h: Add a prototype for
1706         default_builtin_setjmp_frame_value.
1707         * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
1708         TARGET_BUILTIN_SETJMP_FRAME_VALUE.
1709
1710 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1711
1712         * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
1713         sequences of moves.
1714         (add peepholes): New peepholes to optimize sequences adding small
1715         constants.
1716         (bset peepholes): New peepholes to transform an OR in a bset form
1717         (bclr peepholes): Likewise for bclr form.
1718         (cmp peepholes): New peepholes to avoid register copies when comparing.
1719
1720 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1721
1722         * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
1723         to separate push from moves.
1724         ("*pushdf_internal"): Likewise.
1725         ("*pushsf_internal"): Likewise.
1726         ("*pushsi_internal"): Likewise.
1727         ("movdi_internal"): Use define_insn_and_split; non push operand.
1728         ("movdf_internal"): Likewise.
1729         ("movsf_internal"): Likewise.
1730         ("movsi_internal"): Likewise.
1731         ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
1732         ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
1733         ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
1734
1735 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1736
1737         * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
1738         ("cmphi_z_used", "cmpqi_z_used"): Likewise.
1739         ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
1740         ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
1741         ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
1742         ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
1743         ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
1744         ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
1745         ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
1746         ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
1747         ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
1748
1749 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1750
1751         * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
1752         (SOFT_XY_REGNUM): Define.
1753         (cmp split): Use the above instead of hard coded numbers.
1754         (8-bit op split): No need to check the mode; allow Q_REG.
1755         (ashift split): Adjust the first operand if it uses the SP and we
1756         are pushing the shifted value.
1757         (plus shift split): Fix when a source is in register D+X.
1758         ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
1759
1760 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
1761
1762         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
1763         comparing with Z register.
1764
1765 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1766
1767         * cfgloop.h (struct loop_desc): Removed.
1768         (struct loop): Fields simple, desc and has_desc removed.
1769         (simple_loop_p, count_loop_iterations): Declaration removed.
1770         * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
1771         (unmark_altered, blocks_invariant_registers, unmark_altered_insn
1772         blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
1773         invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
1774         simple_loop_exit_p, variable_initial_value, variable_initial_values,
1775         simple_condition_p, simple_increment, count_strange_loop_iterations,
1776         inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
1777         Removed.
1778         * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
1779
1780 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1781
1782         * genattrtab.c: Don't handle MATCH_INSN.
1783         * genrecog.c: Likewise.
1784         * gensupport.c: Likewise.
1785         * rtl.def (match_insn): Remove.
1786         * doc/md.texi (match_insn, match_insn2): Remove.
1787
1788 2004-03-02  Mark Mitchell  <mark@codesourcery.com>
1789
1790         * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
1791         macro results in memory allocation.
1792
1793 2004-03-02  David O'Brien  <obrien@FreeBSD.org>
1794
1795         * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
1796         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
1797         %(fbsd_dynamic_linker),
1798         (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
1799         config/i386/freebsd.h
1800         * config/arm/freebsd.h: Ditto.
1801         * config/i386/freebsd.h: Ditto.
1802         * config/i386/freebsd64.h: Ditto.
1803         * config/ia64/freebsd.h: Ditto.
1804         * config/rs6000/sysv4.h: Ditto.
1805         * config/sparc/freebsd.h: Ditto.
1806
1807 2004-03-02  Loren James Rittle  <ljrittle@acm.org>
1808
1809         * gcc/doc/install.texi (*-*-freebsd*): Update target information.
1810
1811 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1812
1813         * rtl.def (define_combine): Remove.
1814
1815 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1816
1817         * config/h8300/h8300.md: Tweak formatting.
1818
1819 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1820
1821         * config/h8300/h8300.md (*cmphi_h8300): Rename to
1822         *cmphi_h8300_znvc.
1823         (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
1824
1825 2004-03-01  Mark Mitchell  <mark@codesourcery.com>
1826
1827         PR bootstrap/14356
1828         * gcc.c (process_command): Remove const-qualification from argv.
1829         (main): Likewise.
1830
1831 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
1832
1833         * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
1834         pushqi1_h8300hs_advanced.  Adjust its caller.
1835         (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
1836         Adjust its caller.
1837
1838 2004-03-02  Nicolas Roche  <roche@act-europe.fr>
1839
1840         * Makefile.in (install-libgcc, install-multilib): Pass
1841         mkinstalldirs var to libgcc.mk.
1842
1843 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1844
1845         * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
1846         * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
1847
1848 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
1849
1850         * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
1851         * config/h8300/h8300.md: Split several peephole2's, each into
1852         two.
1853
1854 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1855
1856         * dominance.c (recount_dominator): Handle postdominators.
1857
1858 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
1859
1860         * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
1861         (NUM_SYMBOL_TYPES): Likewise.
1862         (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
1863         (mips_unspec_address): Declare.
1864         (mips_gotoff_page, mips_gotoff_global): Delete.
1865         * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
1866         * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
1867         (mips_symbolic_constant_p, mips_symbolic_address_p)
1868         (mips_symbol_insns): Handle new symbol types.
1869         (general_symbolic_operand): New predicate.
1870         (mips_unspec_address): Make extern.
1871         (mips_gotoff_page, mips_gotoff_global): Delete.
1872         (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
1873         Handle new symbol types.
1874         * config/mips/mips.md (*lea_high64, *lea64): New patterns.
1875         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
1876         mips_unspec_address directly.
1877         * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
1878         the documentation of -mexplicit-relocs.
1879
1880 2004-03-01  Jeff Law  <law@redhat.com>
1881
1882         * fold-const.c (fold): An equality comparison of a non-weak object
1883         against zero has a known result.  Similarly an equality comparison
1884         of the address of two non-weak, unaliased symbols has a known result.
1885
1886         * ggc-page.c (struct page_entry): New field PREV.
1887         (ggc_alloc): Update PREV field appropriately.
1888         (sweep_pages): Likewise.
1889         (ggc_free): Likewise.  Use PREV field rather than loop to
1890         improve ggc_free performance.
1891
1892 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
1893
1894         * config/mips/mips.c (mips_output_division): Use the division
1895         instruction to fill the delay slot of a zero check.
1896         (mips_idiv_insns): Adjust accordingly.
1897
1898 2004-03-01  Nathanael Nerode  <neroden@gcc.gnu.org>
1899
1900         * config.gcc: Create a default tmake_file for linux, and use
1901         it in all but two linux clauses.  Comment those two.
1902
1903 2004-03-01  Paolo Bonzini  <bonzini@gnu.org>
1904
1905         * combine.c (try_combine):  Do not refer to is_replaced.
1906         (gen_lowpart_for_combine):  Perverse subregs now have a
1907         more politically correct name.
1908         * cse.c (cse_insn): Likewise.
1909         * jump.c: Fix bogus reference to delete_insn.
1910
1911 2004-02-29  Mark Mitchell  <mark@codesourcery.com>
1912
1913         PR debug/14328
1914         * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
1915         constants as signed values.
1916
1917         PR middle-end/13448
1918         * c-tree.h (readonly_warning): Rename to ...
1919         (readonly_error): ... this.
1920         * c-typeck.c (build_unary_op): Adjust accordingly.
1921         (readonly_warning): Rename to ...
1922         (readonly_error): ... this and issue errors, not warnings.
1923         (build_modify_expr): Call readonly_error, not readonly_warning.
1924         (c_expand_asm_operands): Likewise.
1925         * tree-inline.c (optimize_inline_calls): Do not inline functions
1926         after errors have occurred.
1927
1928 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
1929
1930         * configure.ac: Rearrange some threading code for clarity;
1931         add section comment.
1932         * configure: Regenerate.
1933
1934 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
1935
1936         * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
1937         typos.
1938         * doc/cppopts.texi: Fix a typo.
1939
1940 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
1941
1942         * config/i386/i386.md: Fix formatting.
1943
1944 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
1945
1946         * configure.ac: Add some comments delineating sections of code.
1947
1948         * doc/install.texi: Note that libada uses autoconf 2.57 also.
1949
1950         * doc/install.texi: Fix idiot typo in previous commit.
1951
1952         * doc/install.texi: Update for conversion of intl to autoconf 2.57.
1953
1954 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
1955
1956         * config/h8300/h8300.md: Add comments about peephole2's.
1957
1958 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
1959
1960         * config/h8300/h8300.md: Tweak operand numbers of some
1961         peephole2's.
1962
1963 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
1964
1965         * config/h8300/h8300.md: Tweak comments about peephole2's.
1966
1967 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
1968
1969         PR middle-end/14203
1970         * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
1971         instead of testing whether DECL_RTL is not NULL.
1972
1973 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
1974
1975         * config/sh/sh.c: Fix formatting.
1976
1977 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
1978
1979         * config/sh/sh.c: Convert to ISO-C.
1980
1981 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
1982
1983         * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
1984         my previous patch.
1985
1986         * config/darwin.h (machopic_finish): Output stub even if the
1987         symbol is already defined.
1988
1989 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1990
1991         * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
1992
1993 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
1994
1995         * genattr.c (main): Don't define
1996         TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
1997         * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
1998         (DFA_PIPELINE_INTERFACE): Likewise.
1999         * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
2000         (DFA_PIPELINE_INTERFACE): Likewise.
2001
2002 2004-02-28  Richard Sandiford  <rsandifo@redhat.com>
2003
2004         * config/mips/mips.md (tstsi, tstdi): Delete.
2005
2006 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2007
2008         * config/mips/mips.c (override_options): Remove an obsolete
2009         duplicate definition of the "e" constraint.
2010         * config/mips/mips.h: Update a comment accordingly.
2011
2012 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2013
2014         * config/mips/mips.md: Complete the unfinished R4000
2015         multiply/shift errata workaround.  Improve documentation.
2016         (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
2017         has a hilo hazard.
2018         (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
2019         (muldi3, muldi3_internal): Likewise.
2020         (muldi3_internal2): Remove, replacing with...
2021         (muldi3_mult3, muldi3_r4000): ...these new patterns.
2022         (mulsidi3): Take the errata into account.
2023         (mulsidi3_32bit): Remove, replacing with...
2024         (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
2025         (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
2026         (umulsidi3): Take the errata into account.
2027         (umulsidi3_32bit): Remove, replacing with..
2028         (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
2029         (umulsi3_highpart, umulsi3_highpart_internal): Disable if
2030         TARGET_FIX_R4000.
2031         (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
2032         (smuldi3_highpart, umuldi3_highpart): Likewise.
2033         * doc/invoke.texi: Document the errata workaround.
2034
2035 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2036
2037         * config/mips/mips-protos.h (mips_idiv_insns): Declare.
2038         * config/mips/mips.h (MASK_FIX_SB1): Bump.
2039         (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
2040         (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
2041         * config/mips/mips.c (mips_idiv_insns): New function.
2042         (override_options): Make -march=r4000 imply -mfix-r4000 by default.
2043         (mips_output_division): Add a workaround for the R4000 divide/shift
2044         errata.
2045         * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
2046         the length of an "idiv" instruction.
2047         * doc/invoke.texi: Document the new switches.
2048
2049 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2050
2051         * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
2052         TARGET_SCHED_IS_COSTLY_DEPENDENCE.
2053
2054 2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2055
2056         PR optimization/14229
2057         * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
2058
2059 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
2060
2061         * fold-const.c (fold): Strip NOPs that change the signedness
2062         for RSHIFT too.  Expand comment.
2063
2064 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
2065
2066         PR optimization/7871
2067         * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
2068         from or to call insns.
2069
2070 2004-02-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2071
2072         PR optimization/7871
2073         * flow.c (propagate_one_insn): Interpret calls as setting global
2074         registers, not merely clobbering them.
2075
2076 2004-02-27  Dale Johannesen  <dalej@apple.com>
2077
2078         * config/darwin.c (machopic_output_possible_stub_label):  Remove.
2079         config/darwin-protos.h:  Ditto.
2080         config/darwin.h:  Remove call to it.
2081         * combine.c (distribute_notes): Do not place a REG_DEAD note
2082         when value is both set and used.
2083
2084 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2085
2086         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
2087         as well.
2088         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
2089         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
2090
2091 2004-02-27  Andrew Pinski  <apinski@apple.com>
2092
2093         * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
2094         Speedup common case of the type values being in the same order.
2095
2096 2004-02-27  Steve Ellcey  <sje@cup.hp.com>
2097
2098         * config/ia64/ia64.h (no-inline-float-divide): New option.
2099         * config/ia64/ia64.h (no-inline-int-divide): New option.
2100         * config/ia64/ia64.h (no-inline-sqrt): New option.
2101         (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
2102         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
2103         * config/ia64/ia64.c (ia64_override_options): Modify error
2104         checking for inlined division/sqrt.
2105
2106 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2107
2108         * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
2109         ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
2110         value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
2111         config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
2112         copyright.
2113
2114 2004-02-27  Paul Brook  <paul@codesourcery.com>
2115
2116         * function.c (assign_parms): Don't count pretend args for alignment.
2117
2118 2004-02-27  Richard Henderson  <rth@redhat.com>
2119
2120         * passes.c: New file.
2121         * Makefile.in (OBJS-common): Add it.
2122         * diagnostic.c (rtl_dump_and_exit): Move decl ...
2123         * flags.h (rtl_dump_and_exit): ... here.
2124         * output.h (size_directive_output, last_assemble_variable_decl):
2125         Move from toplev.c.
2126         * rtl.h (reg_alloc): Move from toplev.c.
2127         * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
2128         struct dump_file_info, enum dump_file_index, dump_file_tbl,
2129         open_dump_file, close_dump_file, rest_of_decl_compilation,
2130         rest_of_type_compilation, rest_of_handle_final,
2131         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
2132         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
2133         rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
2134         rest_of_handle_regrename, rest_of_handle_reorder_blocks,
2135         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
2136         rest_of_handle_tracer, rest_of_handle_if_conversion,
2137         rest_of_handle_if_after_combine, rest_of_handle_web,
2138         rest_of_handle_branch_prob,
2139         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
2140         rest_of_handle_addressof, rest_of_handle_sibling_calls,
2141         rest_of_handle_jump_bypass, rest_of_handle_inlining,
2142         rest_of_handle_null_pointer, rest_of_handle_combine,
2143         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
2144         rest_of_handle_gcse, rest_of_handle_loop_optimize,
2145         rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
2146         (decode_d_option): Use enable_rtl_dump_file.
2147         (compile_file, finalize, do_compile): Move profile+combine+graph
2148         cleanup to finish_optimization_passes.
2149         * toplev.h (init_optimization_passes, finish_optimization_passes,
2150         enable_rtl_dump_file): Declare.
2151
2152 2004-02-27  Eric Botcazou  <ebotcazou@act-europe.fr>
2153             Roger Sayle  <roger@eyesopen.com>
2154
2155         * fold-const.c (fold): Revert 2004-02-25 change.  Use the original
2156         operands to build a tree with swapped operands.
2157         * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
2158         'unsignedp' predicate to specify the signedness.
2159
2160 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2161
2162         * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
2163         expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
2164         params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
2165         comment typos and formatting.  Follow spelling conventions.
2166
2167 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
2168
2169         * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
2170         fix_truncsfsi2.
2171
2172         * config/rs6000/spe.md: Delete spe_efsctuiz.
2173         Add spe_fixuns_truncsfsi2.
2174         Add spe_fix_truncsfsi2.
2175
2176 2004-02-26  Eric Christopher  <echristo@redhat.com>
2177
2178         * c-lex.c (c_lex_string_translate): New variable.
2179         (lex_string): Use to determine string translation.
2180         * c-pragma.h: Prototype.
2181         * c-parse.in (start_string_translation): New. Set above.
2182         (stop_string_translation): Ditto.
2183         (attribute, attribute_list, asm_def, asm_stmt,
2184         asm_operand): Use above functions.
2185         * cp/parser.c (cp_parser_declaration): Translate strings
2186         unless token is RID_EXTERN. Set c_lex_string_translate
2187         for recursive use.
2188         (cp_parser_asm_definition): Only translate argument strings
2189         to asms.
2190         (cp_parser_asm_operand_list): Ditto.
2191         (cp_parser_attribute_list): Do not translate attribute strings.
2192
2193 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2194
2195         * stmt.c (expand_start_case_dummy): Remove.
2196         * tree.h: Remove the corresponding prototype.
2197
2198 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2199
2200         * builtins.c (apply_args_register_offset): Remove.
2201         * tree.h: Remove the corresponding prototype.
2202
2203 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2204
2205         * stor-layout.c (is_pending_size): Remove.
2206         * tree.h: Remove the corresponding prototype.
2207
2208 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2209
2210         * recog.c (validate_replace_src): Remove.
2211         * recog.h: Remove the corresponding prototype.
2212
2213 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2214
2215         * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
2216         MAYBE_REG_PARM_STACK_SPACE.
2217         * function.c: Likewise.
2218         * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
2219         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
2220         * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
2221         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
2222
2223 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2224
2225         * c-decl.c (c_expand_deferred_function): Remove.
2226         * c-tree.h: Remove the corresponding prototype.
2227
2228 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
2229
2230         * postreload.c (reload_cse_move2add): Generate just a PLUS
2231         instead of an entire SET.
2232
2233 2004-02-26  Jan Hubicka  <jh@suse.cz>
2234
2235         * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
2236         /pentium4m.
2237         * i386.c (override_options): Add support for new CPUs.
2238         * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
2239         (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
2240         constants.
2241         * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
2242
2243 2004-02-26  Bob Wilson  <bob.wilson@acm.org>
2244
2245         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
2246
2247 2004-02-26  Eric Botcazou  <ebotcazou@act-europe.fr>
2248
2249         * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
2250         (sparc_emit_fixunsdi): New prototype.
2251         * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
2252         (sparc_emit_fixunsdi): New function.
2253         * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
2254         operand 1.  Pass SFmode to sparc_emit_floatunsdi.
2255         (floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
2256         to sparc_emit_floatunsdi.
2257         (fixuns_truncsfdi2): New expander.
2258         (fixuns_truncdfdi2): Likewise.
2259
2260 2004-02-26  Alan Modra  <amodra@bigpond.net.au>
2261
2262         * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
2263         unless HAVE_cc0.
2264
2265 2004-02-25  Richard Henderson  <rth@redhat.com>
2266
2267         * explow.c (force_reg): Call mark_reg_pointer as appropriate.
2268         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
2269         use (op0-op1) == 0 if op0 is a pointer.
2270         * config/alpha/alpha.md (cmpdi): Use some_operand.
2271         (three comparison combine splits): Remove.
2272
2273 2004-02-25  Richard Henderson  <rth@redhat.com>
2274
2275         PR c/12794
2276         * c-common.c (handle_alias_attribute): Reject the attribute if
2277         current_function_decl is set.
2278
2279 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
2280
2281         * config.gcc: Add comment describing extra_gcc_objs.
2282         i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
2283         * configure.ac (extra_gcc_objs): New substitution variable.
2284         (host_extra_gcc_objs): Don't substitute.
2285         * configure: Regenerate.
2286         * Makefile.in: Use extra_gcc_objs.
2287
2288 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
2289
2290         * doc/contrib.texi: Add an entry for myself.
2291
2292 2004-02-25  Jan Hubicka  <jh@suse.cz>
2293
2294         * basic-block.h (make_eh_edge, break_superblocks): Declare.
2295         * cfgbuild.c (make_eh_edge):  Make global.
2296         * cfglayout.c (break_superblocks): Likewise; fix memory leak.
2297         * except.c (build_post_landing_pads, connect_post_landing_pads,
2298         dw2_build_landing_pads, sjlj_emit_function_enter,
2299         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
2300         sjlj_build_landing_pads): Update CFG.
2301         (emit_to_new_bb_before): New function.
2302         (finish_eh_generation): Do not rebuild the CFG.
2303
2304 2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2305
2306         * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
2307         target_cpu_default defines.
2308         * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
2309         * pa.h (TARGET_DEFAULT): Likewise.
2310
2311 2004-02-25  Eric Botcazou  <ebotcazou@act-europe.fr>
2312
2313         * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
2314         comparisons with regard to signedness.
2315
2316 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
2317
2318         * arm.c (thumb_legitimize_address): New function.
2319         * arm-protos.h: Prototype it.
2320         * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
2321         (LEGITIMIZE_ADDRESS): Use it.
2322
2323 2004-02-25  J"orn Rennecke <joern.rennecke@superh.com>
2324
2325         * reload1.c (reload): Only spill eliminable register with multiple
2326         adjacent elimination alternatives if all alternatives fail.
2327
2328 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
2329
2330         * arm.c (arm_legitimate_index_p): For QImode the range of an offset
2331         is -4095...+4095 inclusive.
2332
2333 2004-02-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
2334
2335         * doc/install.texi (sparc-sun-solaris2* specific notes): Document
2336         the bootstrap failure with Sun CC 5.4 and 5.5.
2337
2338 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
2339
2340         * cse.c (cse_change_cc_mode_insns): Stop at any instruction
2341         which modifies NEWREG.
2342         (cse_condition_code_reg): Update the mode of CC_REG in
2343         CC_SRC_INSN on our own.
2344
2345 2004-02-24  Michael Matz  <matz@suse.de>
2346
2347         * config/i386/i386.c (ix86_comp_type_attributes): Check for
2348         regparm attributes.
2349
2350 2004-02-24  Richard Henderson  <rth@redhat.com>
2351
2352         * toplev.c (dump_file_tbl): Rename from dump_file.
2353         * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
2354         cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
2355         config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
2356         config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
2357         loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
2358         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
2359         toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
2360         s/rtl_dump_file/dump_file/g.
2361
2362 2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
2363
2364         * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
2365         (spe_fixuns_truncsfsi2): Delete.
2366
2367         * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
2368         (fixuns_truncsfsi2): Delete.
2369
2370 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
2371
2372         PR/14240
2373         * rtlanal.c (replace_label): Fix replacing labels in constant pool.
2374
2375 2004-02-24  Geoffrey Keating  <geoffk@apple.com>
2376
2377         * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
2378
2379 2004-02-24  Jason Merrill  <jason@redhat.com>
2380
2381         * tree.c (check_qualified_type): New fn.
2382         (get_qualified_type): Use it.  If type already has the desired
2383         quals, just return it.
2384         * tree.h: Declare it.
2385
2386 2003-02-24  Sanjiv Kumar Gupta  <sanjivg@noida.hcltech.com>
2387
2388         * target-def.h (TARGET_SCHED_INIT_GLOBAL,
2389         TARGET_SCHED_FINISH_GLOBAL): New macros.
2390
2391         * target.h (md_init_global, md_finish_global): Function
2392         declarations corresponding to new target macros.
2393
2394         * haifa-sched.c (sched_init, sched_finish): Allow target to
2395         call the new schedular hooks.
2396
2397         * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
2398         call to update_life_info.
2399
2400         * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
2401         flag_schedule_insns for SH4.
2402
2403         * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
2404         find_set_regmode_weight, find_insn_regmode_weight,
2405         find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
2406         sh_variable_issue, high_pressure, ready_reorder,
2407         rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
2408         functions used to throttle the insn movement in first
2409         scheduling pass for SH.
2410
2411         * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
2412         TARGET_SCHED_FINISH_GLOBAL.
2413
2414 2004-02-24  Alexandre Oliva  <aoliva@redhat.com>
2415
2416         Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
2417         2004-02-05  Alexandre Oliva  <aoliva@redhat.com>
2418         * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
2419         symbols in sections named by the user.
2420         2004-01-30  Alexandre Oliva  <aoliva@redhat.com>
2421         * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
2422         2004-01-27  Alexandre Oliva  <aoliva@redhat.com>
2423         * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
2424         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
2425         the above.
2426         2004-01-20  Alexandre Oliva  <aoliva@redhat.com>
2427         * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
2428         one more pseudo to further improve code generation.
2429         2004-01-19  Alexandre Oliva  <aoliva@redhat.com>
2430         * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
2431         inside UNSPEC.
2432         2004-01-16  Alexandre Oliva  <aoliva@redhat.com>
2433         * config/frv/frv.c (frv_legitimate_address_p): Added
2434         allow_double_reg_p argument.  Adjust all callers.  Use it to
2435         decide whether to enable double-register indirect addressing.
2436         (frv_funcdesc_alias_set): Remove.
2437         (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
2438         register.  Emit movdi_ldd.
2439         (ldd_address_operand): New.
2440         * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
2441         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
2442         (PREDICATE_CODES): Add ldd_address_operand.
2443         * config/frv/frv.md (movdi_ldd): New.
2444         (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
2445         intermediate computations if possible.
2446         (symGOTOFF2reg_i): Fix harmless typo.
2447         2003-12-18  Alexandre Oliva  <aoliva@redhat.com>
2448         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
2449         relocated p_vaddr to vaddr type.
2450         * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
2451         * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
2452         (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
2453         MEM, or use a funcdesc alias set.  Use regular move instead of
2454         ldd.
2455         (dbl_memory_one_insn_operand): Recognize function descriptors by
2456         type or by alias set, and don't split them.
2457         * config/frv/frv.md (call, call_value): Never use call_internal
2458         for fdpic.
2459         (call_internal, call_value_internal): Never match for FDPIC.
2460         (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
2461         call_value_fdpicsi): Require FDPIC.
2462         (ldd): Removed.
2463         2003-12-17  Alexandre Oliva  <aoliva@redhat.com>
2464         * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
2465         * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
2466         (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
2467         FDPIC.  Compute data base address.
2468         * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
2469         before the other self-specs are processed.
2470         * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
2471         Build with -fPIC.
2472         2003-12-15  Alexandre Oliva  <aoliva@redhat.com>
2473         * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
2474         inhibit_libc is defined.
2475         2003-12-12  Alexandre Oliva  <aoliva@redhat.com>
2476         * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
2477         __FRV_FDPIC__.
2478         (__RELOC_POINTER): Define.
2479         (_Unwind_IteratePhdrCallback): Use it.
2480         * config/frv/frv.h (Twrite): Define.
2481         (TRANSFER_FROM_TRAMPOLINE): Use it.
2482         * config/frv/linux.h (INVOKE__main): Undefine.
2483         (Twrite): Override.
2484         2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
2485         * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
2486         (-mlibrary-pic): Emphasize that this option generates EABI code.
2487         (-mcpu): Add fr550.
2488         (-mpack): Remove.
2489         2003-11-30  Alexandre Oliva  <aoliva@redhat.com>
2490         * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
2491         and CONSTs in FDPIC mode.
2492         * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
2493         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
2494         * config/frv/frv.c (move_source_operand): Don't accept symbolic
2495         constants.
2496         * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
2497         rather than 'i' constraint for the 2-instruction alternative.
2498         (*movsi_2word): New, incorporating existing int_2word_operand splitter.
2499         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
2500         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
2501         EXTRA_CONSTRAINT_FOR_Y.
2502         (EXTRA_CONSTRAINT): Remove handling of 'Y'.
2503         * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
2504         (addsi3): Change 'Y' constraint to 'Q'.
2505         2003-11-27  Richard Sandiford  <rsandifo@redhat.com>
2506         * reload.c (CONST_POOL_OK_P): New macro.
2507         (find_reloads): Use it to decide whether a constant can be forced
2508         into memory.
2509         * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
2510         constant satisfies got12_operand.
2511         (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
2512         (frv_legitimate_address_p): Check for valid unspec offsets using
2513         got12_operand rather than frv_legitimate_fdpic_operand_p.
2514         (frv_legitimate_fdpic_operand_p): Delete.
2515         (frv_emit_movsi): Abort if we try to use the FDPIC register during
2516         or after reload.
2517         (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
2518         TARGET_FDPIC.
2519         * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
2520         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
2521         * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
2522         (frv_fdpic_fptr_operand): Don't declare here.
2523         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
2524         rather than fdpic_got12_operand.
2525         (PREDICATE_CODES): Remove symbolic_operand entry.  Add entries for
2526         got12_operand and const_unspec_operand.
2527         * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
2528         (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
2529         (symbolic_operand): Remove.
2530         (const_unspec_operand): New predicate.
2531         * config/frv/frv.md (*movsi_got): Use got12_operand.
2532         (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
2533         2003-11-18  Richard Sandiford  <rsandifo@redhat.com>
2534         * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
2535         * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
2536         * config/frv/frv.c (frv_unspec): New structure.
2537         (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
2538         (frv_print_operand_memory_reference): Use frv_const_unspec_p to
2539         validate CONST indices.  Use frv_output_const_unspec to print them.
2540         (frv_print_operand): Update call to unspec_got_name.  Use
2541         frv_output_const_unspec to print constant unspecs.
2542         (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
2543         Reject UNSPECs otherwise.
2544         (unspec_got_name): Take the relocation number as argument, not an
2545         rtx containing it.
2546         (frv_output_addr_const_extra): Remove, replacing with...
2547         (frv_output_const_unspec): ...this new function.
2548         (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
2549         (gpr_or_int12_operand): Use fdpic_got12_operand.
2550         (dbl_memory_one_insn_operand): Likewise.
2551         (fdpic_got12_operand): Use frv_const_unspec_p.
2552         (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
2553         are already legitimate.  Use frv_small_data_reloc_p when deciding
2554         whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
2555         2003-11-18  Alexandre Oliva  <aoliva@redhat.com>
2556         * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
2557         * config/frv/libgcc-frv.ver: ... frv-specific symbols.  New file.
2558         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
2559         label, for real this time.
2560         * config/frv/frv.c (frv_local_funcdesc_p): Update to new
2561         representation of visibility.
2562         (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
2563         such.
2564         2003-11-17  Richard Sandiford  <rsandifo@redhat.com>
2565         * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
2566         (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
2567         * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
2568         it was explicitly disabled.
2569         (frv_stack_info): There is no need to save the link register in every
2570         frame unless TARGET_LINKED_FP is true.
2571         (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
2572         frame pointer if the stack pointer might change value.
2573         (frv_return_addr_rtx): Check and process "count" argument.
2574         2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
2575         * config/frv/frv-protos.h (frv_legitimize_address): Remove.
2576         (frv_find_base_term): Declare.
2577         * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
2578         (FIND_BASE_TERM): Define.
2579         (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
2580         small_data_register_operand, small_data_symbolic_operand.  Add
2581         symbolic_operand.
2582         * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
2583         (frv_print_operand_memory_reference, output_move_single): Remove
2584         special handling for unlegitimized sdata addresses.
2585         (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
2586         and symbolic addresses.
2587         (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
2588         (frv_find_base_term): New function.
2589         (int_2word_operand): Check specifically for symbolic address constants.
2590         (pic_register_operand, pic_symbolic_operand): Delete.
2591         (small_data_register_operand, small_data_symbolic_operand): Delete.
2592         (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
2593         Allow UNSPEC_GOT constants if !TARGET_FDPIC.
2594         (move_source_operand): Only accept CONSTs if they're a two-insn
2595         symbolic constant.
2596         (fdpic_got12_operand): Don't require TARGET_FDPIC.
2597         (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
2598         using gen_symGOTOFF2reg*.
2599         (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
2600         (frv_rtx_costs): Give all MEM addresses a cost of 0.  Give MEMs
2601         themselves a cost of 3 insns.
2602         * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
2603         Change predicate to symbolic_operand.
2604         (*movsi_high_got, *movsi_lo_sum_got): Likewise.
2605         (*movsi_lda_sdata): Delete.
2606         (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
2607         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
2608         * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
2609         frv-*-*linux*.
2610         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
2611         label.
2612         * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
2613         -multilib-library-pic.
2614         (LINK_SPEC): Add -z text for -mfdpic.
2615         * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
2616         * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
2617         * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
2618         Override.
2619         (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
2620         FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
2621         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
2622         crtstuff-generated files.
2623         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
2624         * config.gcc: Add frv-*-*linux*.
2625         * config/frv/linux.h, config/frv/t-linux: New.
2626         2003-10-06  Alexandre Oliva  <aoliva@redhat.com>
2627         * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
2628         when -mfdpic even if a linker script is explicitly listed.
2629         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
2630         * config/frv/frv.c (frv_override_options): Clear asm_out
2631         unaligned_op for SImode on FDPIC.
2632         (frv_emit_movsi): Use compute_reloc_for_constant to compute the
2633         argument passed to decl_readonly_section.
2634         (frv_assemble_integer): Revert 2003-09-30's change, but make the
2635         whole block run with FDPIC even with -fno-PIC.
2636         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
2637         * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
2638         symbol or label plus offset to memory.
2639         (frv_emit_movsi): Emit GPREL only if -mgprel-ro.  Emit 32-bit
2640         GOTOFF and GPREL for LABEL_REF.
2641         * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
2642         -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
2643         (MASK_GPREL_RO, TARGET_GPREL_RO): New.
2644         (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
2645         * doc/invoke.texi: Document them.
2646         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
2647         * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
2648         (frv_splittable_got_operand): Removed.
2649         * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
2650         LO_SUM.  Add comments.
2651         (frv_override_options): Moved enabling of FDPIC to
2652         DRIVER_SELF_SPECS.  Don't enable MASK_DWORD.
2653         (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
2654         (frv_legitimize_fdpic_address): Don't duplicate logic in
2655         frv_emit_movsi.
2656         (frv_gen_GPsym2reg): New.
2657         (unspec_got_name): Added gprel.
2658         (frv_expand_fdpic_call): Add support for inlining PLTs.
2659         (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
2660         (gpr_or_int12_operand): Added GPREL12.
2661         (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
2662         (small_data_symbolic_operand): Fail if FDPIC.
2663         (fdpic_splittable_got_operand): Removed.
2664         (fdpic_got12_operand): Added GPREL12.
2665         (frv_emit_movsi): Reorganize to avoid duplication.  Emit GPREL
2666         when appropriate.  Fix sdata GOTOFF.
2667         (frv_legitimate_constant_p): Require legitimate PIC operand for
2668         FDPIC with pic, but only a legitimate fdpic operand for non-pic.
2669         (frv_assemble_integer): Move FDPIC funcdesc handling out of
2670         flag_pic case.
2671         (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
2672         frv_assemble_integer fails.
2673         * config/frv/frv.h (DRIVER_SELF_SPECS): New.
2674         (SUBTARGET_DRIVER_SELF_SPECS): New.
2675         (ASM_SPEC): Don't pass -mno-fdpic.
2676         (LINK_SPEC): Pass -melf32frvfd for FDPIC.
2677         (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
2678         (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
2679         -multilib-library-pic.
2680         (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
2681         condexec_si_media_operator, condexec_sf_add_operator and
2682         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
2683         and condexec_sf_unary_operator.
2684         * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
2685         New.
2686         (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
2687         movsi_internal.  Give them internal names.  movsi_got has type
2688         int.
2689         (fdpic got splitters): Remove.
2690         (symGPREL2reg, symGPREL2reg_hilo): New.
2691         * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
2692         to -mlibrary-pic.  Map -multilib-library-pic to it.
2693         * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
2694         Document.
2695         2003-09-28  Alexandre Oliva  <aoliva@redhat.com>
2696         * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
2697         (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
2698         (frv_cannot_force_const_mem): New function.
2699         (const_small_data_p, plus_small_data_p): Update comments on sdata
2700         on FDPIC.
2701         (frv_override_options): Set flag_pie for FDPIC too.
2702         (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
2703         call-saved registers on FDPIC.
2704         (frv_stack_info): Don't preserve the PIC register on FDPIC, and
2705         don't force LR to be preserved.
2706         (frv_expand_prologue): Likewise.
2707         (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
2708         (frv_frame_pointer_required): Don't force it just because the
2709         FDPIC register is used.
2710         (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
2711         operand only if !condexec_p.
2712         (frv_legitimize_address): Return the FDPIC-legitimized address.
2713         Don't match small data here on FDPIC.
2714         (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
2715         symbols.  Use TRUE/FALSE instead of 1/0.
2716         (frv_local_funcdesc_p): New.
2717         (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
2718         immediates when possible.
2719         (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
2720         (dbl_memory_one_insn_operand): Accept addresses that add a REG and
2721         an UNSPEC_GOT.
2722         (frv_emit_movsi): Handle FDPIC before small data.  Use GOTOFF and
2723         12-bit immediates when possible.
2724         (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
2725         are not legitimate pic operands.
2726         (frv_in_small_data_p): Re-enable for FDPIC.
2727         * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
2728         (FRV_GLOBAL_P): Removed.
2729         * config/frv/frv.md: Add modes to CONSTs.
2730         (movsi_got): New.
2731         (movsi_lo_sum_got): Use separate matches instead of match_dup.
2732         (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
2733         (fdpic splittable operations): Match on flag_pic != 1.
2734         2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
2735         * config/frv/frv.c (frv_asm_out_constructor,
2736         frv_asm_out_destructor): Pass to frv_assemble_integer the size in
2737         bytes, not bits.
2738         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
2739         * config/frv/frv.c (frv_assemble_integer): Reject complex
2740         expressions referencing function SYMBOL_REFs.
2741         * config/frv/frv.c (frv_function_symbol_referenced_p): New.
2742         (move_source_operand): Reject CONSTs that reference function
2743         SYMBOL_REFs on FDPIC.
2744         (frv_emit_movsi): If we get such a CONST, break it up.
2745         * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
2746         (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
2747         * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
2748         MEM.
2749         (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
2750         (frv_trampoline_size): Increase for FDPIC.
2751         * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
2752         (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
2753         * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
2754         Disable use of GOTOFF for now.
2755         (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
2756         Disable use of small data in FDPIC for now.
2757         (frv_asm_output_mi_thunk): Implement for FDPIC.
2758         * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
2759         * config/frv/frv.c (frv_asm_out_constructor): Use
2760         frv_assemble_integer for FDPIC pointers.
2761         (frv_asm_out_destructor): Likewise.
2762         * config/frv/frv.md (ldd): Fix order of operands.  Use
2763         address_operand for input.
2764         2003-09-18  DJ Delorie  <dj@redhat.com>
2765         * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
2766         (unspec_got_name): Correct typo.
2767         (frv_emit_movsi): Pre-expand splittable GOTs.
2768         (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
2769         * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
2770         (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
2771         * config/frv/t-frv: Add -mfdpic multilibs.
2772         * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
2773         (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
2774         * config/frv/frv.c (frv_override_options): -mfdpic assumes
2775         flag_pic, default to 32-bit pics, require DWORD ops.
2776         (frv_override_options): Add W and Z constraints.
2777         (frv_expand_prologue): No pic prologue for -mfdpic.
2778         (frv_asm_output_mi_thunk): Support -mfdpic (soon).
2779         (frv_print_operand_memory_reference): Handle GOT constants.
2780         (frv_legitimate_address_p): Allow GOT constants.
2781         (frv_legitimize_address): Handle GOT addresses too.
2782         (frv_legitimate_fdpic_operand_p): New.
2783         (frv_legitimize_fdpic_address): New.
2784         (unspec_got_name): New.
2785         (frv_output_addr_const_extra): New.
2786         (frv_expand_fdpic_call): New.
2787         (frv_fdpic_fptr_operand): New.
2788         (gpr_or_int12_operand): Handle GOT operands.
2789         (int_2word_operand): Handle GOT operands.
2790         (fdpic_operand): New.
2791         (fdpic_splittable_got_operand): New.
2792         (fdpic_got12_operand): New.
2793         (frv_emit_movsi): Handle GOT operands.
2794         (frv_assemble_integer): -mfdpic doesn't use rofixups.
2795         (frv_print_operand): Support 'g' code for GOT operands.
2796         * config/frv/frv-protos.h: Add prototypes as needed.
2797         * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
2798         R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
2799         R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
2800         R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
2801         R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
2802         R_FRV_GOTOFFLO): New.
2803         (movsi_high_got, movsi_lo_sum_got): New.
2804         (*movsi_pic): Don't use this splitter for -mfdpic.
2805         (addsi3): Allow GOT references also.
2806         (call, call_value): Handle -mfdpic separately.
2807         (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
2808         call_value_fdpicsi): New.
2809         (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
2810         symGOTOFF2reg_i): New.
2811         * config/frv/frv.h (MASK_FDPIC): New.
2812         (TARGET_FDPIC): New.
2813         (TARGET_SWITCHES): Add -mfdpic.
2814         (FDPIC_FPTR_REGNO): New.
2815         (FDPIC_REGNO): New.
2816         (OUR_FDPIC_REG): New.
2817         (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
2818         FDPIC_CALL_REGS.
2819         (REG_CLASS_NAMES): Likewise.
2820         (REG_CLASS_CONTENTS): Likewise.
2821         (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
2822         (EXTRA_CONSTRAINT): Add it here.
2823         (FRV_GLOBAL_P): New.
2824         (OUTPUT_ADDR_CONST_EXTRA): New.
2825
2826 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
2827
2828         * config/sparc/sparc.h: Remove commented-out definitions of
2829         TARGET_EDOM and GEN_ERRNO_RTX.
2830
2831 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
2832
2833         * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
2834         df_analyse with df_analyze.
2835
2836 2004-02-24  Alan Modra  <amodra@bigpond.net.au>
2837
2838         * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
2839         beginning of block.
2840
2841 2004-02-23  James E Wilson  <wilson@specifixinc.com>
2842
2843         * calls.c (precompute_arguments): Update comment.
2844
2845 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2846
2847         * et-forest.c: Replace et_occurences with et_occurrences.
2848
2849 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2850
2851         * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
2852         with iv_analyze.
2853
2854 2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>
2855
2856         * config/i386/i386.c: Rename pni to sse3.
2857         * config/i386/i386.h: Likewise.
2858         * config/i386/i386.md: Likewise.
2859         * config/i386/pmmintrin.h: Likewise.
2860         * doc/extend.texi: Likewise.
2861         * doc/invoke.texi: Likewise.
2862
2863 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
2864             Kazu Hirata  <kazu@cs.umass.edu>
2865
2866         Remove -fwritable-strings.
2867         * c-common.c (fix_string_type): Don't check
2868         flag_writable_strings.
2869         (fix_string_type): Likewise.
2870         * c-opts.c (set_std_c89): Don't initialize
2871         flag_writable_strings.
2872         (set_std_c99): Likewise.
2873         * common.opt (fwritable-strings): Remove.
2874         * flags.h: Remove the external declaration of
2875         flag_writable_strings.
2876         * opts.c (common_handle_option) <OPT_fwritable_strings>:
2877         Remove.
2878         * toplev.c (flag_writable_strings): Remove.
2879         (f_options): Remove an entry for writable-strings.
2880         * varasm.c (const_hash_1) <STRING_CST>: Don't check
2881         flag_writable_strings.
2882         (compare_constant) <STRING_CST>: Likewise.
2883         (build_constant_desc): Likewise.
2884         * config/darwin.c (machopic_select_section): Likewise.
2885         * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
2886         * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
2887         * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
2888         * config/mips/mips.c (mips_select_section): Likewise.
2889         (mips_encode_section_info): Likewise.
2890         * config/pa/pa.c (pa_select_section): Likewise.
2891         * config/pa/pa.h (TEXT_SPACE_P): Likewise.
2892         * config/v850/v850.c (v850_select_section): Likewise.
2893         * doc/invoke.texi (-fwritable-strings): Remove.
2894         (-fno-const-strings): Don't mention -fwritable-strings.
2895         * doc/trouble.texi: Don't mention -fwritable-strings.
2896
2897 2003-02-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2898
2899         * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
2900
2901 2004-02-23  Dale Johannesen  <dalej@apple.com>
2902
2903         * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
2904         (movdf_hardfloat64):  Ditto.
2905         (movdf_softfloat64):  Ditto.
2906
2907 2004-02-23  Fariborz Jahanian <fjahanian@apple.com>
2908         * config/rs6000/rs6000.c (function_arg): call to
2909         rs6000_mixed_function_arg for DFmode moved to allow
2910         normal DFmode incoming register assignment.
2911
2912 2004-02-23  Dale Johannesen  <dalej@apple.com>
2913
2914         * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
2915         (movdf_hardfloat64):  Ditto.
2916
2917 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2918
2919         * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
2920         config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
2921         copyright.
2922
2923 2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
2924
2925         PR c/14156
2926         * c-typeck.c (c_expand_return): Change check for VAR_DECL
2927         to use DECL_P instead.
2928
2929         * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
2930         * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
2931
2932 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
2933
2934         * Makefile.in (opts.o): Depend on target.h.
2935         * opts.c (decode_options): Use targetm.default_short_enums
2936         instead of DEFAULT_SHORT_ENUMS.
2937         * system.h (DEFAULT_SHORT_ENUMS): Poison.
2938         * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
2939         (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
2940         * target.h (gcc_target): Add default_short_enums.
2941         * config/cris/cris.h: Remove a comment about
2942         DEFAULT_SHORT_ENUMS.
2943         * config/ip2k/ip2k.h: Likewise.
2944         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
2945         TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
2946
2947 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
2948             Falk Hueffner  <falk@debian.org>
2949
2950         PR c/14188
2951         * builtins.c (expand_builtin_va_arg): Emit an informative message
2952         if a trap is generated.
2953         * c-typeck.c (build_function_call): Likewise.
2954
2955 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
2956
2957         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
2958         fopen.
2959         * libgcov.c: Include sys/stat.h.
2960         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
2961         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
2962         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
2963         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
2964
2965 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
2966
2967         * reorg.c: Remove comments about dead ports.
2968
2969 2004-02-22  Christopher Faylor  <cgf@redhat.com>
2970
2971         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
2972         extra host object file when targetting cygwin rather than generic
2973         object files.
2974
2975 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
2976
2977         Merge from tree-ssa:
2978         2003-11-20  Richard Henderson  <rth@redhat.com>
2979
2980                 * tree-inline.c (insert_decl_map): New.
2981                 (remap_decl, remap_type, remap_block, copy_body_r,
2982                 initialize_inlined_parameters, declare_return_variable,
2983                 remap_save_expr): Use it.
2984
2985         * function.c (copy_body_r): Add mapping from id->ret_label to
2986         id->ret_label.  Revert test for ret_label.
2987
2988 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
2989
2990         * genoutput.c (process_template): Strip trailing whitespace in @
2991         templates and issue a warning if there was any.
2992
2993 2004-02-21  Christopher Faylor  <cgf@redhat.com>
2994
2995         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
2996         object file when targetting cygwin.
2997         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
2998         overridden by top-level Makefile.
2999
3000 2004-02-21  Roger Sayle  <roger@eyesopen.com>
3001
3002         * config/i386/i386.c (standard_80387_constant_p): Also prefer
3003         the x87's load constant instructions when optimizing for size.
3004
3005 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
3006
3007         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
3008         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
3009         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
3010         * fold-const.c: Likewise.
3011         * simplify-rtx.c: Likewise.
3012
3013 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
3014
3015         * combine.c (can_combine_p): Don't ignore SETs marked with
3016         REG_EH_REGION notes.
3017         (try_combine): When attemting to fix unrecognized insns, don't
3018         split a PARALLEL that contains the original i2.
3019
3020 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
3021
3022         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
3023         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
3024         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
3025         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
3026         (vector, pixel, bool): #define to __vector, __pixel and __bool.
3027         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
3028         portion of header.
3029         (__altivec_link_error_invalid_argument): Remove prototype; will use
3030         __builtin_altivec_compiletime_error("vec_*") instead.
3031         (vec_*): Fix/complete set of available operation overloads given the
3032         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
3033         cv-correctness of pointer arguments; in C, always check for correct
3034         argument types before macro expansion.
3035         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
3036         defining Darwin/PowerPC-specific '-f[no-]altivec' and
3037         '-W[no-]altivec-long-deprecated' switches.
3038         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
3039         '__vector', '__pixel' and '__bool' macros using
3040         '__attribute__((altivec(...)))' types.
3041         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
3042         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
3043         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
3044         New type nodes.
3045         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
3046         handling '-W[no-]altivec-long-deprecated'.
3047         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
3048         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
3049         altivec_expand_dst_builtin): Remove casts from integer literals.
3050         (altivec_expand_builtin): Likewise; handle expansion of new
3051         '__builtin_altivec_compiletime_error' function.
3052         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
3053         types, and make them distinct from other vector types; register
3054         '__builtin_altivec_compiletime_error' function.
3055         (print_operand): For 'P', print a full target register name instead of
3056         merely its number.
3057         (rs6000_attribute_table): Add "altivec" attribute.
3058         (rs6000_handle_altivec_attribute): New function.
3059         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
3060         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
3061         maps to).
3062         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
3063         declare.
3064         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
3065
3066 2004-02-20  James E Wilson  <wilson@specifixinc.com>
3067
3068         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
3069         check.
3070         (shift_mix4left+2): Delete redundant pattern.
3071
3072 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3073
3074         * alias.c (OUTGOING_REGNO): Don't define the default.
3075         * builtins.c (OUTGOING_REGNO): Likewise.
3076         (INCOMING_REGNO): Likewise.
3077         (apply_args_register_offset): Always use OUTGOING_REGNO.
3078         * combine.c (OUTGOING_REGNO): Likewise.
3079         * sibcall.c (OUTGOING_REGNO): Likewise.
3080         * defaults.h (INCOMING_REGNO): Provide the default.
3081         (OUTGOING_REGNO): Likewise.
3082
3083 2004-02-21  Jan Hubicka  <jh@suse.cz>
3084
3085         * params.def (max-peeled-insns, max-completely-peeled-insns,
3086         max-once-peeled-insns): Set to 400.
3087
3088 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3089
3090         PR c++/12007
3091         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
3092         are set for parameters before outputing debugging information.
3093
3094 2004-02-20  Falk Hueffner  <falk@debian.org>
3095
3096         PR target/14201
3097         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
3098         numbers.
3099
3100 2004-02-20  Per Bothner  <per@bothner.com>
3101
3102         * input.h:  Don't #include line-map.h.  It may cause link problems
3103         with undefined linemap_line_start when line-map.h is included but
3104         line-map.o is not linked, as currently happens with gengtype on
3105         compilers that don't support inline.
3106         * toplev.c:  So we do have to explicitly #include line-map.h here.
3107
3108 2004-02-20  Richard Henderson  <rth@redhat.com>
3109
3110         * doc/invoke.texi: Add -Wvariadic-macros.
3111
3112 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3113
3114         * haifa-sched.c (sched_emit_insn): Remove.
3115         * sched-int.h: Remove the corresponding prototype.
3116
3117 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3118
3119         Revert:
3120         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3121         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
3122         * system.h (DEFAULT_SHORT_ENUMS): Poison.
3123         * config/cris/cris.h: Remove a comment about
3124         DEFAULT_SHORT_ENUMS.
3125         * config/ip2k/ip2k.h: Likewise.
3126         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
3127
3128 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
3129             Tom Tromey  <tromey@redhat.com>
3130
3131         * doc/install.texi: Moved --disable-libgcj and
3132         --with-system-zlib documentation to new section for
3133         Java-specific options.
3134         Added explicit Cross-Compiler-Specific Options subheading.
3135         Added section for Java-specific options.
3136
3137 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
3138
3139         * doc/install.texi (Building the Ada compiler): Remove
3140         example.
3141
3142 2004-02-20  James E Wilson  <wilson@specifixinc.com>
3143
3144         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
3145
3146 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3147
3148         * gcc.c (process_command): Allow translation of the copyright
3149         symbol but not the rest of the copyright message.
3150         * gcov.c (print_version): Likewise.  Allow translation of the
3151         message about warranty.
3152
3153 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
3154
3155         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
3156         predicate.
3157         ("*andsi_clear"): Tweak constraints to not match postincrement.
3158         Adjust the predicate to exclude a volatile memory reference.
3159         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
3160         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
3161
3162 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
3163
3164         * move-if-change: Remove.
3165         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
3166         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
3167         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
3168         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
3169         (s-gtyp-gen, s-iov): Use the top level move-if-change.
3170         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
3171
3172 2004-02-19  James E Wilson  <wilson@specifixinc.com>
3173
3174         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
3175         for operand2.  Add condition that requires register_operand operand2
3176         before reload.
3177
3178 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
3179             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
3180
3181         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
3182         * config/mips/mips.md: Expand comment above unaligned loads and stores.
3183
3184 2004-02-19  Richard Henderson  <rth@redhat.com>
3185
3186         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
3187         * tree.c (build0, build1, build2, build3, build4): Split out from...
3188         (build): ... here.  Call them.
3189         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
3190
3191         * convert.c (convert_to_integer): Remove extra build argument.
3192         * tree-inline.c (expand_call_inline): Likewise.
3193
3194 2004-02-19  Richard Henderson  <rth@redhat.com>
3195
3196         * c-opts.c (warn_variadic_macros): New.
3197         (c_common_handle_option): Set it.
3198         (sanitize_cpp_opts): Copy it to cpp_opts.
3199         * c.opt (Wvariadic-macros): New.
3200         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
3201         * cppinit.c (cpp_create_reader): Initialize it.
3202         * cppmacro.c (parse_params): Check it.
3203
3204 2004-02-19  David Daney <ddaney@avtrex.com>
3205
3206         PR preprocessor/14198
3207         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
3208         builtin_assert ("machine=mips")
3209
3210 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3211
3212         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
3213         * system.h (DEFAULT_SHORT_ENUMS): Poison.
3214         * config/cris/cris.h: Remove a comment about
3215         DEFAULT_SHORT_ENUMS.
3216         * config/ip2k/ip2k.h: Likewise.
3217         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
3218
3219 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
3220
3221         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
3222         when passing single SFmode quantities in general registers,
3223         put them in the high half.
3224
3225 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
3226
3227         * doc/md.texi (Standard Names): Document additional dependency on
3228         fix pattern.
3229
3230         * optabs.c (ftruncify): Remove.
3231         (expand_fix): Manually inline ftruncify above.
3232         (can_fix_p): Add FIXME note.
3233
3234 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
3235
3236         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
3237         spe_fixuns_truncsfsi2.
3238
3239         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
3240         fixuns_truncsfsi2.
3241
3242 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
3243
3244         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
3245         * testsuite/gcc.dg/20040219-1.c: New test.
3246
3247 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
3248
3249         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
3250         "*subsf3_cconly"): Subtraction is not commutative.
3251
3252 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
3253
3254         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
3255         (sdbout_symbol): If called before sdbout_init, queue DECL for
3256         later and return.
3257         (sdbout_init): Set sdbout_initialized true, process decls
3258         queued earlier by sdbout_symbol.
3259         (sdbout_finish): Use size_t for index variable.
3260
3261 2004-02-19  Jeff Law  <law@redhat.com>
3262
3263         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
3264         for unordered comparison codes.
3265
3266 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
3267
3268         * reload1.c (reload): Correct comment.
3269         (scan_paradoxical_subregs): Remove #if 0 and old comment.
3270         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
3271         register variables are not used by reload.
3272
3273 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
3274
3275         PR target/14209
3276         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
3277         constraints to not match postincrement.  Adjust the predicate to
3278         exclude a volatile memory reference.
3279
3280 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3281
3282         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
3283
3284 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3285
3286         * hooks.c (hook_void_tree_int): Remove.
3287         (hook_void_constcharptr): Likewise.
3288         (hook_int_void_0): Likewise.
3289         * hooks.h: Remove the prototypes for the above three
3290         functions.
3291         * targhooks.c (hook_bool_machine_mode_true): Remove.
3292         * targhooks.h: Remove the prototype for
3293         hook_bool_machine_mode_true.
3294
3295 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3296
3297         * emit-rtl.c (subreg_realpart_p): Remove.
3298         (reorder_insns_with_line_notes): Likewise.
3299         (end_full_sequence): Likewise.
3300         * rtl.h: Remove the prototype for the above functions.
3301
3302 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3303
3304         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
3305         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
3306         config/iq2000/iq2000.h, config/m32r/m32r.h,
3307         config/pdp11/pdp11.h, config/sparc/sparc.h,
3308         config/xtensa/xtensa.h: Remove commented-out or useless
3309         definitions of CASE_VECTOR_PC_RELATIVE.
3310
3311 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3312
3313         * loop.c (all_sets_invariant_p): Remove.
3314
3315 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
3316
3317         PR target/12916
3318         * config/sparc/sparc.h (NPARM_REGS): Delete.
3319         (BASE_RETURN_VALUE_REG): Likewise.
3320         (BASE_OUTGOING_VALUE_REG): Likewise.
3321         (BASE_PASSING_ARG_REG): Likewise.
3322         (BASE_INCOMING_ARG_REG): Likewise.
3323         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
3324         TARGET_ARCH64, not TARGET_V9.
3325         (function_arg_slotno): Dispatch based on the mode class.
3326         Handle vector modes like floating-point modes.
3327         (function_arg_record_value_1): Handle vector types like
3328         floating-point types.
3329         (function_arg_record_value_2): Likewise.
3330         Calculate regno after mode transformation.
3331         (function_arg): Handle vector modes like floating-point modes.
3332         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
3333         If ARCH64, do not recheck alignment.
3334         (function_arg_pass_by_reference): Reorder the conditions.
3335         (sparc_return_in_memory): Move after function_arg_padding.
3336         Implement calling conventions for vector modes.
3337         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
3338         (function_value): Move scope of 'regbase'.
3339         Implement calling conventions for vector modes.
3340         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
3341         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
3342         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
3343         the argument is passed by reference.
3344         (sparc_type_code): Handle vector types.
3345
3346 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
3347
3348         * function.c (assign_parms): When building decl_rtl for
3349         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
3350
3351 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
3352
3353         * expr.c (is_aligning_offset): Check if we are aligning the
3354         expressions's address over BIGGEST_ALIGNMENT in bytes, not
3355         in bits.
3356
3357 2003-02-18  Matt Austern  <austern@apple.com>
3358
3359         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
3360         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
3361         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
3362         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
3363         spec string.
3364         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
3365
3366 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
3367
3368         * dwarf2out.c (loclabel_num): Move outside #ifdef
3369         DWARF2_DEBUGGING_INFO and mark with GTY(()).
3370         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
3371         Mark with GTY(()).
3372         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
3373         Allocate memory with ggc_alloc.  No need to copy anything.
3374         (ia64_hpux_file_end): Update to match.
3375
3376 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
3377
3378         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
3379         by default.
3380
3381 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
3382
3383         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
3384         ("divmodtisi3"): Likewise.
3385         ("udivmoddi4", "udivmodtidi3"): Likewise.
3386         ("divmodsi4", "divmoddisi3"): Likewise.
3387         ("udivmodsi4", "udivmoddisi3"): Likewise.
3388         ("udivsi3", "umodsi3"): Likewise.
3389
3390 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
3391
3392         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
3393         placeholder insn when chunkifying the pool.
3394
3395 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3396
3397         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
3398         generating PIC code.
3399
3400 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3401
3402         * config/h8300/h8300-protos.h: Add a prototype for
3403         h8300_expand_branch.
3404         * config/h8300/h8300.c (h8300_expand_branch): New.
3405         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
3406         bgtu, beq, bne): Call h8300_expand_branch().
3407
3408 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3409
3410         * config/h8300/h8300-protos.h: Add prototypes for
3411         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
3412         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
3413         (h8300_hard_regno_mode_ok): Likewise.
3414         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
3415         h8300_hard_regno_nregs().
3416         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
3417
3418 2004-02-18  Per Bothner  <per@bothner.com>
3419
3420         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
3421         partly reverts my 2003-10-01 change, because we're back to logically
3422         including <command line> inside the main line.
3423         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
3424         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
3425         Fixes PR preprocessor/14103.
3426
3427         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
3428         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
3429         (cpp_push_include):  Don't need to increment pfile's line field.
3430         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
3431
3432         * c-ppoutput.c (print struct):  New first_time field.
3433         (init_pp_output):  Set print.first_time.
3434         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
3435         which is set also for (say) <command line>.  Clear print.first_time.
3436
3437         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
3438         does not match the code, so fix both.
3439         (should_stack_file):  Inline include_pch_p function.
3440         (include_pch_p):  Remove pointless function.
3441
3442         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
3443
3444 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3445
3446         * config/h8300/h8300.md (four define_peephole2's): Use
3447         h8300_regs_ok_for_stm().
3448
3449 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3450
3451         * config/h8300/h8300-protos.h: Update the prototype for
3452         expand_a_rotate().
3453         * config/h8300/h8300.c (expand_a_rotate): Remove the first
3454         argument.
3455         * config/h8300/h8300.md: Update all callers.
3456
3457 2004-02-18  Jan Hubicka  <jh@suse.cz>
3458
3459         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
3460         floats.
3461         (simplify_binary_operation): Deal with logicals on floats.
3462
3463         * i386.md (SSE fabs splitters): Emit new patterns.
3464         (SSE cmov splitters): Likewise.
3465         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
3466         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
3467         subregs.
3468         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
3469         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
3470
3471 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3472
3473         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
3474         by hand.
3475         (output_a_rotate): Tweak a comment.
3476         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
3477         (*rotlhi3_1): Change to rotlhi3_1.
3478         (*rotlsi3_1): Change to rotlsi3_1.
3479
3480 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
3481
3482         PR target/13866
3483         * arm.c (load_multiple_operation): Don't insist that the source reg
3484         of a post-increment component is the same as the destination.
3485         (store_multiple_operation): Likewise.
3486
3487 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3488
3489         * config/h8300/h8300.md: Move movsf patterns into one section
3490         of the file.
3491
3492 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3493
3494         * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
3495         loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
3496         xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
3497         config/mips/linux64.h, config/pa/pa-64.h,
3498         config/rs6000/aix51.h, config/rs6000/aix52.h,
3499         config/rs6000/spe.md, config/sparc/linux.h,
3500         config/sparc/linux64.h: Update copyright.
3501
3502 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
3503
3504         * config/h8300/h8300.md: Move push patterns into one
3505         section of the file.
3506
3507 2004-02-18  Mark Mitchell <mark@codesourcery.com>
3508
3509         PR c++/11326
3510         * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
3511         fntype.
3512
3513 2004-02-18  Paul Brook  <paul@codesourcery.com>
3514
3515         * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
3516
3517 2004-02-18  Paul Brook  <paul@codesourcery.com>
3518
3519         PR debug/12934
3520         * dwarf2out.c (loc_descriptor_from_tree): Handle
3521         EXPR_WITH_FILE_LOCATION.
3522
3523 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
3524
3525         * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
3526         testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
3527         trailing whitespace from instructions.
3528
3529 2004-02-17  Geoffrey Keating  <geoffk@apple.com>
3530
3531         * configure.ac: When generating auto-build.h, pass
3532         --enable-languages to the sub-configure.
3533         Put quotes around ${program_transform_name} when generating
3534         name of as, ld, nm, objdump.
3535         * configure: Regenerate.
3536
3537 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
3538
3539         * Makefile.in (s-check, s-config, s-conditions, s-flags)
3540         (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
3541         (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
3542         (s-preds, s-iov): Do not depend on move-if-change.
3543
3544 2004-02-17  James E Wilson  <wilson@specifixinc.com>
3545
3546         * caller-save.c (insert_restore): Pass mem through copy_rtx.
3547         (insert_save): Likewise.
3548
3549 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3550
3551         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
3552         warning.
3553
3554 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3555
3556         * config/h8300/h8300.md (*one_complsi2_h8300): Change to
3557         *one_cmplsi2_h8300.
3558         (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
3559
3560 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3561
3562         * config/h8300/h8300-protos.h: Update the prototype of
3563         fix_bit_operand().
3564         * config/h8300/h8300.c (fix_bit_operand): Remove the second
3565         argument "what".
3566         * config/h8300/h8300.md: Update all callers.
3567
3568 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3569
3570         * config/h8300/h8300.c (fix_bit_operand): Change the name of
3571         the last argument to "code" from "type".
3572
3573 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3574
3575         * config/h8300/h8300.c: Remove an extern declaration of
3576         rtx_equal_function_value_matters.
3577
3578 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3579
3580         * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
3581         by hand.
3582         * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
3583         (*iorqi3_1): Change to iorqi3_1.
3584         (*xorqi3_1): Change to xorqi3_1.
3585
3586 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3587
3588         * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
3589         typos.
3590
3591 2004-02-17  Jan Hubicka  <jh@suse.cz>
3592
3593         * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
3594
3595 2004-02-18  Alan Modra  <amodra@bigpond.net.au>
3596
3597         PR optimization/14119
3598         * combine.c (try_combine): When attemting to fix unrecognized insns,
3599         don't delete SETs marked with REG_EH_REGION notes.
3600
3601 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
3602
3603         * combine.c (simplify_if_then_else): Do not replace
3604         (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
3605         modes differ.
3606
3607 2004-02017  Steven Bosscher  <stevenb@suse.de>
3608
3609         * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
3610         function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
3611         tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
3612         * ada/utils.c: Likewise.
3613         * cp/decl.c: Likewise.
3614         * f/com.c: Likewise.
3615         * java/class.c: Likewise.
3616
3617 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3618
3619         * config/h8300/h8300.md: Fix comment typos.
3620
3621 2004-02-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3622
3623         * config/mips/t-iris6gld: Renamed to ...
3624         * config/mips/t-irix-gld: ... this.
3625         * config.gcc (mips-sgi-irix6*): Reflect this
3626         (mips-sgi-irix5*): Use it with GNU ld.
3627
3628         * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
3629         to ...
3630         * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
3631         * config/mips/t-irix-gld: Reflect this.
3632         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
3633
3634         * config/mips/iris5gld.h: New file.
3635         * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
3636         Only use collect2 without gas.
3637
3638         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
3639         Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
3640         (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
3641         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
3642
3643         * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
3644         * config/mips/iris5.h: ... here.
3645
3646         * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
3647         IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
3648         (STARTFILE_SPEC, ENDFILE_SPEC): Define.
3649
3650         * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
3651         using irix_startfile_spec, irix_endfile_spec.
3652
3653 2004-02-16  Gunther Nikl  <gni@gecko.de>
3654
3655         * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
3656
3657 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3658
3659         * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
3660         insns by hand.
3661
3662 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3663
3664         * cfghooks.c (split_edge): Speed up updating of dominators.
3665
3666 2004-02-17  Mark Mitchell  <mark@codesourcery.com>
3667
3668         PR c++/11326
3669         * c-common.c (flag_abi_version): Remove.
3670         * c-common.h (flag_abi_version): Likewise.
3671         * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
3672         * c.opt (fabi-version): Remove.
3673         * calls.c (expand_call): Always pass a function type to
3674         struct_value_rtx.  Use convert_memory_address.
3675         * common.opt (fabi-version): Add it.
3676         * flags.h (flag_abi_version): Likewise.
3677         (abi_version_at_least): New macro.
3678         * opts.c (common_handle_option): Add OPT_fabi_version.
3679         * toplev.c (flag_abi_version): Define it.
3680         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
3681         New function.
3682         (ia64_output_mi_thunk): Use it.
3683         (ia64_struct_value_rtx): Likewise.
3684
3685 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3686
3687         * config/h8300/h8300.c (h8300_emit_stack_adjustment):
3688         Don't generate insns by hand.
3689
3690 2004-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
3691
3692         PR c++/14178
3693         * doc/invoke.texi (fabi-version): The default is 2 now.
3694
3695 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3696
3697         * loop-iv.c: New file.
3698         * Makefile.in (loop-iv.o): New.
3699         * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
3700         * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
3701         num_loop_branches): New functions.
3702         * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
3703         iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
3704         find_simple_exit, iv_number_of_iterations, iv_analysis_done,
3705         get_simple_loop_desc, free_simple_loop_desc): Declare.
3706         (simple_loop_desc): New inline function.
3707         (struct rtx_iv, struct niter_desc): New.
3708         * cfgloopmanip.c (loopify): Specify semantics more precisely.
3709         * expr.c (force_operand): Handle subregs of expressions created by
3710         loop unroller.
3711         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
3712         parts of the initialization to toplev.c
3713         * loop-unroll.c (loop_exit_at_end_p): New.
3714         (unroll_and_peel_loops): Call iv_analysis_done.
3715         (decide_peel_once_rolling, decide_peel_completely,
3716         decide_unroll_stupid, decide_unroll_constant_iterations,
3717         decide_unroll_runtime_iterations, decide_peel_simple,
3718         peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
3719         unroll_loop_runtime_iterations): Use new simple loop analysis.
3720         * loop-unswitch.c (compare_and_jump_seq): New.
3721         (may_unswitch_on_p): Renamed to ...
3722         (may_unswitch_on): Use new iv analysis.
3723         (reversed_condition): Export.
3724         (unswitch_single_loop, unswitch_loop): Use new iv analysis.
3725         * predict.c (estimate_probability): Use new simple loop analysis.
3726         * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
3727         canon_condition, simplify_using_condition): Declare.
3728         * stor-layout.c (get_mode_bounds): New.
3729         * toplev.c (rest_of_handle_loop2): Some parts of
3730         initialization/finalization moved here from loop-init.c.
3731
3732 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
3733
3734         * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
3735         pointer.
3736         (CALL_USED_REGISTERS): Likewise.
3737         (REG_ALLOC_ORDER): Likewise.
3738         (REG_CLASS) <GENERAL_REGS>: Likewise.
3739
3740 2004-02-16  Geoffrey Keating  <geoffk@apple.com>
3741
3742         * doc/md.texi (Insn Canonicalizations): Document left-chaining
3743         in associative operators.
3744         * rtlanal.c (commutative_operand_precedence): Create some new
3745         variables.  Prefer a commutative operand on the left, then
3746         binary expressions, then NEG and NOT.
3747
3748 2004-02-16  Matthias Klose  <doko@debian.org>
3749
3750         * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
3751         in terms of SHLIB_SOVERSION.
3752         * config/m68k/t-slibgcc-elf-ver: New file.
3753         * config/pa/t-slibgcc-elf-ver: New file.
3754         * config.gcc (m68k-linux, parisc-linux): Use them when not
3755         sjlj exceptions are not configured.
3756
3757 2004-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
3758
3759         * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
3760
3761 2004-02-16  Zack Weinberg  <zack@codesourcery.com>
3762
3763         * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
3764
3765 2004-02-16  Joseph S. Myers  <jsm@polyomino.org.uk>
3766
3767         * doc/sourcebuild.texi: Mention backends.html.
3768
3769 2004-02-16  Kazu Hirata  <kazu@cs.umass.edu>
3770
3771         * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
3772         line-map.c, line-map.h, var-tracking.c: Fix comment
3773         formatting.
3774
3775 2004-02-16  Richard Henderson  <rth@redhat.com>
3776
3777         * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
3778
3779         * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
3780
3781 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
3782
3783         * config/h8300/h8300.md: Remove unnecessary parallels from
3784         all define_insn and define_split patterns.
3785
3786 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
3787
3788         * config/h8300/h8300.md: Remove explicit (set_attr "cc"
3789         "clobber").
3790
3791 2004-02-15  Bernardo Innocenti  <bernie@develer.com>
3792
3793         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
3794         '%#'.
3795
3796 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
3797
3798         * config/ia64/ia64.c, config/mips/mips.c,
3799         config/mmix/mmix-modes.def: Fix comment typos.
3800
3801 2004-02-15  Roger Sayle  <roger@eyesopen.com>
3802
3803         * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
3804         (get_directive_line): Remove unused function prototype.
3805
3806 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
3807
3808         * tree-inline.c (copy_body_r): Do not replace ret_label.
3809
3810 2004-02-14  Jan Hubicka  <jh@suse.cz>
3811
3812         * i386.c (x86_four_jump_limit): New variable.
3813         (k8_avoid_jump_misspredicts): Rename to ...
3814         (ix86_avoid_jump_misspredicts): .. this one.
3815         (ix86_pad_returns): Break out from ...
3816         (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
3817         to.
3818         * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
3819
3820 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
3821
3822         * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
3823         PARALLEL is NULL.
3824
3825 2004-02-14  Per Bothner  <per@bothner.com>
3826
3827         * fix-header.c (line_table):  Move local variable in main to global.
3828         * scan.h (line_table):  Use it.
3829         * scan-decls.c (scan_decls):  Need to call linemap_lookup on token's
3830         line (recently renamed to src_loc) before calling recognized_function.
3831
3832 2004-02-14  Matt Kraai  <kraai@alumni.cmu.edu>
3833
3834         * Makefile.in: Fix comment typos.
3835
3836 2004-02-14  Olivier Hainque  <hainque@act-europe.fr>
3837
3838         * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
3839         for start_value when it is directly moved into reg, and factorize
3840         the retrieval of GET_MODE (reg).
3841
3842 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
3843
3844         * config/mips/mips-protos.h (mips_load_got_page): Delete.
3845         (mips_load_got_global): Delete.
3846         (mips_gotoff_page): Declare.
3847         * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
3848         (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
3849         UNSPEC_LOAD_GOT pattern rather than a MEM.
3850         (*load_got[sd]i): New patterns.
3851         * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
3852         (mips_load_got_page, mips_load_got_global): Delete.
3853         (mips_gotoff_page): New function.
3854         (override_options): Don't initialize mips_got_alias_set.
3855
3856 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
3857
3858         * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
3859         (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
3860         (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
3861         (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
3862         (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
3863         * config/mips/mips.c: Fix some overly-long lines.
3864         (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
3865         (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
3866
3867 2004-02-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3868
3869         * configure.ac: Search for as, ld below libexec/gcc.
3870         * configure: Regenerate.
3871
3872 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
3873
3874         * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
3875         __builtin_arm_setwcx ().
3876         * config/arm/arm.c (arm_expand_builtin): Generate operands
3877         correctly and reverse their order in call to gen_iwmmxt_tmcr ().
3878
3879 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
3880
3881         * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
3882         and "wmuluh" to "wmulsm" and "wmulum", respectively.
3883         * config/arm/arm.h (enum arm_builtins): Rename enumerators to
3884         ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
3885         * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
3886         (_mm_mulhi_pu16): Likewise.
3887
3888 2004-02-13  Zack Weinberg  <zack@codesourcery.com>
3889
3890         * xcoffout.c (xcoff_assign_fundamental_type_number): Check
3891         DECL_NAME != 0 before dereferencing.
3892
3893 2004-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
3894
3895         * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
3896         (s390_output_addr_const_extra): Declare.
3897         (s390_output_pool_entry): Remove FILE * argument.
3898         * config/s390/s390.c (s390_output_symbolic_const): Remove.
3899         (s390_output_addr_const_extra): New function.
3900         (print_operand_address): Call output_addr_const instead of
3901         s390_output_symbolic_const.
3902         (print_operand): Likewise.
3903         (s390_output_pool_entry): Use assemble_integer for symbolic constants.
3904         Remove FILE * argument.
3905         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
3906         * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
3907         call.
3908
3909 2004-02-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3910
3911         * cfgloopanal.c (mark_irreducible_loops): Rewriten.
3912         (struct edge, struct vertex, struct graph): New.
3913         (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
3914         free_graph): New functions.
3915
3916 2004-02-12  Chris Demetriou  <cgd@broadcom.com>
3917
3918         * config/mips/mips.md (casesi_internal, casesi_internal_di):
3919         Use ".set macro" to avoid warnings about multi-instruction
3920         macros, since they're intentional.
3921
3922 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
3923
3924         * config/darwin.h: Add include guards.  Remove old, now incorrect,
3925         comment about STANDARD_EXEC_PREFIX.
3926
3927         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
3928         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
3929         for installing .1 manpages.  Add rules for installing cpp
3930         and gcov manpages under their installed names.
3931
3932 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
3933
3934         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
3935         host, but try LD_FOR_TARGET first.
3936         * configure: Rebuilt.
3937
3938 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
3939
3940         * dbxout.c: Move declaration of dbxout_type_decl outside
3941         #ifdef DBX_DEBUGGING_INFO.
3942         * c-parse.in: Don't give the asmdef production a type.
3943
3944 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
3945
3946         * debug.h (struct gcc_debug_hooks): Add type_decl field.
3947         (debug_nothing_tree_int): Prototype.
3948         (dwarf_debug_hooks): Delete, unused.
3949         * debug.c (do_nothing_debug_hooks): Update.
3950         (debug_nothing_tree_int): New function.
3951         * langhooks.h (struct lang_hooks_for_decls):
3952         Remove builtin_type_decls field.
3953         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
3954         (LANG_HOOKS_DECLS): Update.
3955         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
3956         Use debug_hooks->type_decl.
3957         * dbxout.c (preinit_symbols): New static.
3958         (dbx_debug_hooks, xcoff_debug_hooks): Update.
3959         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
3960         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
3961         for symbols to output.
3962         (dbxout_type_decl): New function.
3963         (dbxout_symbol): If called before dbxout_init has run, queue
3964         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
3965         to TYPE_DECLs before emitting them.
3966         * xcoffout.c (assign_type_number): Delete.
3967         (xcoff_type_numbers): New static table.
3968         (xcoff_assign_fundamental_type_number): New function.
3969         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
3970         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
3971         * sdbout.c: Include varray.h.
3972         (deferred_global_decls): New static.
3973         (sdb_debug_hooks): Update.
3974         (sdbout_global_decl): If we can't emit something right now,
3975         remember it in deferred_global_decls.
3976         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
3977         (sdbout_init): Initialize deferred_global_decls.
3978         * Makefile.in: Update dependencies of sdbout.o.
3979         * dwarf2out.c (dwarf2out_type_decl): New function.
3980         (dwarf2_debug_hooks): Update.
3981         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
3982         * c-decl.c (getdecls): Just return 0.
3983         (check_for_loop_decls): Don't use getdecls.
3984         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
3985         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
3986
3987 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
3988
3989         * config/s390/s390.c (s390_sched_reorder2): Remove.
3990         (TARGET_SCHED_REORDER2): Do not redefine.
3991
3992 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
3993
3994         * c-parse.in (maybe_type_qual): Delete.
3995         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
3996         (asm_argument): New grammar rules.
3997         (extdef_1): Use asmdef.
3998         (maybeasm): Move down with other asm rules; use simple_asm_expr.
3999         (xexpr): Move up with other expression rules.
4000         (stmt): Use asm_stmt.
4001
4002         * c-typeck.c (build_asm_expr): New function - body mostly
4003         pulled from build_asm_stmt.
4004         (build_asm_stmt): Just handle tacking on the volatile qualifier.
4005         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
4006
4007 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
4008
4009         PR bootstrap/13617
4010         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
4011         (mips_declare_object): Make variadic.
4012         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
4013         mips_output_aligned_decl_common.
4014         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
4015         (mips_declare_object): Make variadic.