OSDN Git Service

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