OSDN Git Service

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