OSDN Git Service

[gcc/ChangeLog]
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-03-24  Ziemowit Laski  <zlaski@apple.com>
2
3         * objc/objc-act.c (objc_comptypes): Treat comparisons
4         between 'Class' and '<class> *' as explicitly invalid.
5
6 2004-03-24  David Edelsohn  <edelsohn@gnu.org>
7
8         * doc/invoke.texi (-frename-registers: Add enabled at -O3.
9         (-fprofile-values): Add enabled with profile-{generate,use}.
10         (-fvpt): Same.
11         (-ftracer): Add enabled with profile-use.
12         (-funit-at-a-time): Add enabled at -O2,-O3.
13         (-funroll-loops): Add enabled with profile-use.
14         (-funswitch-loops): Add enabled with profile-use.  Remove duplicates.
15         (max-gcse-passes): Mention default.
16         (max-cse-path-length): Mention default.
17
18 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
19
20         * Makefile.in (STRICT2_WARN): Reorder.
21         * configure.ac: Check for -Wold-style-definition, and use it
22         in strict1_warn if it's available.
23         * configure: Regnerate.
24
25 2004-03-24  Paul Brook  <paul@nowt.org>
26
27         * config.gcc <arm>: Add --with-abi=
28         * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
29         thumb_far_jump_used): Remove prototypes.
30         (arm_needs_doubleword_align): Add prototype.
31         (thumb_compute_initial_elimination_offset): Ditto.
32         * config/arm/arm.c (arm_get_frame_offsets): New function.
33         (use_return_insn, output_return_instruction, arm_output_epilogue,
34         arm_output_function_epilogue, arm_compute_initial_elimination_offset,
35         arm_expand_prologue, thumb_expand_epilogue): Use it.
36         (arm_abi, target_abi_name, all_arm_abis): New variables.
37         (arm_override_options): Set them.  Set structure padding for AAPCS.
38         (arm_return_in_memory): Update ABI check.
39         (arm_init_cumulative_args): Initialize can_split.
40         (arm_needs_doubleword_align): New function.
41         (arm_function_arg): Don't split args after pushing to stack. Handle
42         doubleword/even reg alignment.
43         (arm_va_arg): Handle all doubleword aligned args.
44         (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
45         on ABI, not CPU.
46         (arm_compute_save_reg0_reg12_mask): Fix comment.
47         (thumb_get_frame_size, thumb_get_frame_size): Remove.
48         (thumb_jump_far_used_p): Remove superfluous argument.  Return save
49         value for alignment.
50         (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
51         to match.
52         (thumb_compute_initial_elimination_offset): New function.
53         (thumb_expand_prologue): Use arm_get_frame_offsets.  Remove
54         unneccessary rounding.
55         * config/arm/arm.h (target_abi_name): Declare.
56         (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
57         arm_abi_type, ARM_DEFAULT_ABI): Define.
58         (ARM_FLAG_ATPCS): Remove.
59         (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
60         (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
61         (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
62         TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
63         (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
64         Contitionalize on ABI, not CPU.
65         (struct arm_stack_offsets): Define.
66         (struct machine_function): Add stack_offsets.  Remove frame_size.
67         (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
68         pushed.
69         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
70         doubleword alignment.
71         (THUMB_INITIAL_ELIMINATION_OFFSET,
72         ARM_INITIAL_ELIMINATION_OFFSET): Remove.
73         (INITIAL_ELIMINATION_OFFSET): Call functions directly.
74         * config/arm/arm.md (align_8): Enable for all targets.
75         * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
76         (ARM_DEFAULT_ABI): Define.
77         * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
78         -mstructure-size-boundary.
79
80 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
81
82         * configure.ac: Check for -Wno-variadic-macros; don't use
83         -pedantic (in stage 1 or a simple 'make all') unless it's available,
84         and if it's available, use it.  Also, clean up check for
85         -Wno-long-long.
86         * configure: Regenerate.
87
88 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
89
90         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
91         * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
92         (MULTILIB_DEFAULTS): Use it.
93         (MIPS_CPU_STRING_DEFAULT): Remove.
94         (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
95         (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120.  Make
96         EABI64 -mlong32 the default ABI.  Enforce the default architecture.
97         * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
98         march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
99         (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
100         (MULTILIB_EXCEPTIONS): Change choice of multilibs.  Update comments
101         accordingly.
102
103 2004-03-24  DJ Delorie  <dj@redhat.com>
104             Richard Sandiford  <rsandifo@redhat.com>
105
106         * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
107         (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
108         (ASM_SPEC): Pass down -mfix-vr4122-bugs.
109         * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
110         in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
111         (mips_init_libfuncs): Use special functions for divsi3 and modsi3
112         if TARGET_FIX_VR4122.
113         * config/mips/mips.md (define_attr length): Account for nops inserted
114         after macc and dmult when using -mfix-vr4122-bugs.
115         (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
116         * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
117         LIB2FUNCS_EXTRA.  Add config/mips/vr4122-div.S.
118         * config/mips/vr4122-div.S: New file.
119         * doc/invoke.texi: Document -mfix-vr4122-bugs.
120
121 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
122
123         * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
124         (TARGET_MIPS4130): New macro.
125         (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
126         * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
127         (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
128         with PROCESSOR_R4130.
129         * config/mips/mips.md (define_attr cpu): Add r4130.
130         * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
131
132 2004-03-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
133             Richard Sandiford  <rsandifo@redhat.com>
134
135         * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
136
137 2004-03-24  Alexandre Oliva  <aoliva@redhat.com>
138
139         PR preprocessor/14438
140         * cpplib.c (do_pragma): Remove line_change call after pragma
141         handler.
142
143 2004-03-23  Ian Lance Taylor  <ian@wasabisystems.com>
144
145         * doc/extend.texi (ARM Built-in Functions): Replace with correct
146         declarations.
147
148 2004-03-23  Roger Sayle  <roger@eyesopen.com>
149
150         * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
151         if flag_unsafe_math_optimizations.
152         * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
153         and TARGET_80387 expand using truncdfsf2_noop pattern.
154         (truncxfsf2): Likewise using truncxfsf2_noop.
155         (truncxfdf2): Likewise using truncxfdf2_noop.
156         (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
157
158 2004-03-23  Ziemowit Laski  <zlaski@apple.com>
159
160         * hooks.c (hook_constcharptr_tree_null): New hook.
161         * hooks.h (hook_constcharptr_tree_null): New prototype.
162         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
163         * target.h (mangle_fundamental_type): New target hook.
164         * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
165         target hook at rs6000_mangle_fundamental_type.
166         (rs6000_mangle_fundamental_type): New function.
167         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
168
169 2004-03-23  Zack Weinberg  <zack@codesourcery.com>
170
171         PR 12267, 12391, 12560, 13129, 14114, 14133
172         * c-tree.h: Forward declare struct c_binding.  Declare
173         c_override_bindings_to_false.  Update prototypes.
174         (struct lang_identifier): Update comments.  Change fields to be
175         struct c_binding *.
176         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
177         (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
178         (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
179         (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
180         * c-common.h: Update prototypes.
181         * c-decl.c (struct c_scope): Update commentary.  Remove names,
182         names_last, parms, parms_last, tags, and shadowed fields.  Add
183         bindings and depth fields.
184         (scope_freelist): Move to more appropriate location.
185         (c_print_identifier): Update for changes to struct lang_identifier.
186         (objc_mark_locals_volatile): Update for new bindings structures.
187         (global_bindings_p): Honor c_override_global_bindings_to_false.
188         (pushlevel): Rename to push_scope; take no arguments; use the
189         scope_freelist; initialize scope->depth and check for overflow.
190         (poplevel): Rename to pop_scope; totally rewritten for new bindings
191         structures.
192         (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
193         C_DECL_INVISIBLE, for certain decisions.  Adjust some diagnostics.
194         Improve some commentary.  Adjust handling of forward parm decls.
195         (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
196         Preserve C_DECL_IN_EXTERNAL_SCOPE.
197         (warn_if_shadowing): Correct indentation.  Improve diagnostics.
198         (pushdecl): Remove unnecessary assertion.  Short-circuit anonymous
199         decls.  Rewrite for new bindings structures.  Improve commentary.
200         Eliminate the copy_node call.
201         (implicit_decl_warning): Use the "diag" idiom (as seen in
202         locate_old_decl) to reduce code duplication; call locate_old_decl
203         if appropriate.  Relocate to remove need for forward declaration.
204         (implicitly_declare): Adjust for new bindings structures.  Kludge
205         around Objective-C not-really-builtin functions.
206         (undeclared_variable): Improve diagnostics.  If current_function_decl
207         is nonnull but current_function_scope is null, use current_scope.
208         Use bind.
209         (lookup_tag): Adjust for new bindings structures.  Kludge around
210         Objective-C's tag declarations that wind up in the external scope.
211         (lookup_name): Adjust for new bindings structures.  Kludge around
212         c-common.c's pseudo-typedefs that wind up in the external scope.
213         (lookup_name_current_level): Rename lookup_name_in_scope; take a
214         second argument indicating the scope to examine; rewrite for
215         new bindings structures.
216         (c_init_decl_processing): Adjust for renamed functions.  Do not
217         initialize current_file_decl, first_builtin_decl, last_builtin_decl.
218         First scope pushed is the external scope, not the global scope.
219         (builtin_function): Use bind, not pushdecl.  Adjust other bits
220         for new data structures.  Keep track of builtins that should be
221         made visible automatically.
222         (start_decl): Adjust diagnostics.  Remove unnecessary call to
223         expand_decl.
224         (grokparms): Return 0 if arg_types is error_mark_node.
225         (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
226         reversed sense.  Rewrite for new bindings structures.  Do not
227         leave any decls in the scope, to prevent pop_scope from doing
228         contradictory things with them.
229         (finish_struct, finish_enum): Remove redundant diagnostics.
230         (build_enumerator): Don't cascade diagnostics for error_mark_node.
231         Mark location where -pedantic changes the meaning of the program.
232         (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
233         parameter decls into the function's scope structure using bind.
234         Warn here about function definitions in the wrong style.
235         Adjust diagnostics.
236         (store_parm_decls): Correct the determination of whether a
237         function was defined with a prototype.
238         (c_write_global_declarations): Operate on all file decls and on
239         the external scope.  Split body of the loop to...
240         (c_write_global_declarations_1): ... this new function, to avoid
241         code duplication.
242         (truly_local_externals, first_builtin_decl, last_builtin_decl)
243         (make_scope, pop_scope, in_parm_level_p, set_block)
244         (any_external_decl, record_external_decl, bind_label, getdecls)
245         (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
246         (c_reset_state): Delete.
247         (visible_builtins, c_override_global_bindings_to_false)
248         (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
249         (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
250         (external_scope, binding_freelist, bind, free_binding_and_advance)
251         (push_file_scope, pop_file_scope): New.
252         (pushtag, pushdecl_top_level, lookup_label, declare_label)
253         (define_label, c_make_fname_decl, finish_decl)
254         (mark_forward_parm_decls, build_compound_literal)
255         (grokdeclarator, start_function, check_for_loop_decls)
256         (identifier_global_value, record_builtin_type): Minor adjustments
257         for new bindings structures.  Improve diagnostics and commentary.
258         * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
259         pushlevel/poplevel respectively.
260         (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
261         * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
262         Warn about YYDEBUG not being defined only if -dy.  Remove no-longer-
263         correct loop over multiple translation units; call fatal_error if
264         requested to compile more than one file at once.  (This disables
265         IMA temporarily - an up-front error being preferable to a crash.)
266         * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
267         (all actions): Adjust calls to pushlevel/poplevel.
268         (parsing_iso_function_signature): Delete.
269         (extdef_1): Fold into extdef.
270         (old_style_parm_decls_1): Fold into old_style_parm_decls.  Don't
271         warn here about function definitions in the wrong style.
272         (after_tyle_declarator, parm_declarator_starttypename)
273         (parm_declarator_nostarttypename, notype_declarator): Remove
274         commented-out productions.
275         (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
276         an empty TREE_LIST node.  Adjust calls to get_parm_info.
277         (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
278         to suppress -Wold-style-definition after this error.
279         (c_parse_file): Don't clear the binding stack or call
280         finish_fname_decls here.  Correct comment.
281         * c-typeck.c (same_translation_unit_p): Export.
282         (common_type): Use c_override_global_bindings_to_false, not
283         pushlevel/poplevel/declare_parm_level.
284         * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
285         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
286         and LANG_HOOKS_GETDECLS with do-nothing stubs.
287         * objc/objc-lang.c: Likewise.
288         * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
289         get_parm_info.
290         (OBJC_VOID_AT_END): Delete; replace all uses
291         with void_list_node.
292         (generate_forward_declaration_to_string_table): Delete.
293         * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
294
295         * coverage.c (create_coverage): Don't pushdecl anything.
296         * langhooks.c (lhd_clear_binding_stack): Call
297         lang_hooks.decls.poplevel, not poplevel.
298         * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
299         circular list rather than going into an infinite loop.
300
301 2004-03-23  Olivier Hainque  <hainque@act-europe.fr>
302
303         * optabs.c (expand_binop): When synthesizing double word rotates
304         from single word shifts, use a new register target if the provided
305         target is not a REG already.
306
307 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
308
309         * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
310         * c-common.c (handle_mode_attribute): Add extra arg to
311         build_pointer_type_for_mode and build_reference_type_for_mode.
312         * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
313         for INTEGER_CST.
314         * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
315         Chain pointers via TYPE_NEXT_PTR_TO.
316         (build_reference_type_for_mode): Similarly.
317         (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
318         and build_reference_type_for_mode.
319         (tree_check4_failed): New function.
320         * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
321         (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
322         (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
323         Add check.
324
325 2004-03-23  Roger Sayle  <roger@eyesopen.com>
326
327         * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
328         A is nonnegative or B is nonnegative.  Similarly A|B is nonnegative
329         when both A and B are nonnegative.
330         (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
331         nonzero.
332
333 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
334
335         * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
336         VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
337
338 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
339
340         PR optimization/14669
341         * fold-const.c (fold): Only unwiden integer comparisons for equality
342         and inequality operators, or when the signedness doesn't change.
343
344 2004-03-23  Jakub Jelinek  <jakub@redhat.com>
345
346         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
347         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
348         * config/sparc/t-linux: New file.
349
350 2004-03-23  Richard Sandiford  <rsandifo@redhat.com>
351
352         * gcse.c (can_assign_to_reg_p): New function, split out from...
353         (want_to_gcse_p): ...here.
354         (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
355         the rhs of a store.
356
357 2004-03-22  Diego Novillo  <dnovillo@redhat.com>
358
359         * c-typeck.c (same_translation_unit_p): Fix pasto.
360
361 2004-03-22  David Edelsohn  <edelsohn@gnu.org>
362
363         * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
364         (PARAM_MAX_SCHED_REGION_INSNS): New.
365         * sched-rgn.c: Include params.h
366         (MAX_RGN_BLOCKS): Delete.
367         (MAX_RGN_INSNS): Delete.
368         (too_large): Return bool.  Convert to PARAM_VALUE.
369         * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
370         * doc/invoke.texi (param): Document max-sched-region-blocks and
371         max-sched-region-insns.
372
373 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
374
375         * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
376         for base types.
377
378 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
379
380         * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
381         change.
382
383 2004-03-22  Jakub Jelinek  <jakub@redhat.com>
384
385         PR c/14069
386         * c-decl.c (finish_struct): Change type of incorrect flexible array
387         field into error_mark_node.
388
389 2004-03-22  Andrew Pinski  <pinskia@physics.uc.edu>
390
391         PR target/14580
392         * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
393         who are not local for Darwin PIC.
394
395 2004-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
396
397         * regrename.c (regrename_optimize): Set regs_ever_live for all
398         registers introduced as replacement.
399
400 2004-03-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
401
402         PR middle-end/14470
403         * expr.c (mark_queue): New function.
404         (emit_insns_enqueued_after_mark): New function replacing
405         emit_queue.  Clear the body of emitted queued insns.
406         (emit_queue): Call emit_insns_enqueued_after_mark.
407         (store_expr): Mark the increment queue on entry.  Emit
408         only the incrementations queued when expanding the source.
409
410 2004-03-22  Nathanael Nerode  <neroden@gcc.gnu.org>
411
412         * configure.ac: Allow --disable-coverage-flags (for the future benefit
413         of top level bootstrap, and consistency).  Reindent.
414         * configure: Regenerate.
415
416 2004-03-21  Kazu Hirata  <kazu@cs.umass.edu>
417
418         * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
419         ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
420         unnecessary casts.
421
422 2004-03-22  Danny Smith  <dannysmith@users.sourceforge.net>
423
424         PR target/14291
425         * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
426         __MINGW32__.
427
428 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
429
430         * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
431         to nonimmediate_operand.
432         ("*doloop_di"): Likewise.
433
434 2004-03-21  Alexandre Oliva  <aoliva@redhat.com>
435
436         * real.h (struct real_value): Use the same type for all
437         bitfields.  Rename exp to uexp.
438         (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
439         Adjust all uses of exp...
440         * builtins.c: ... here, ...
441         * emit-rtl.c: ... here, and ...
442         * real.c: ... and here.
443
444 2004-03-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
445
446         * pretty-print.c (pp_base_maybe_space): New function.
447         * pretty-print.h (pp_base_maybe_space): Declare.
448         (pp_maybe_space): New macro.
449
450 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
451
452         * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
453
454 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
455
456         * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
457         of using register multiplication cost.
458         (expand_mult): Adapt choose_mult_variant call.
459         (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
460         of MODE; pass appropriate cost bound.  Adjust result when
461         performing signed multiplication by a negative constant.
462         Don't use intermediate modes larger than word_mode.
463
464 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
465
466         * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
467         * emit-rtl.c (component_ref_for_mem_expr): Likewise.
468         (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
469         * explow.c (expr_size): Likewise.
470         * expr.h (placeholder_list, find_placeholder): Deleted.
471         * expr.c (store_constructor): Likewise.
472         (get_inner_reference): Likewise.  Also don't call find_placeholder.
473         (placeholder_list, find_placeholder): Deleted.
474         (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
475         (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
476         (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
477         * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
478         * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
479         Likewise.
480         * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
481         (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
482         * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
483         (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
484         Clean up by using first_rtl_op.
485         (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
486         (substitute_placeholder_in_expr): New function.
487         * tree.def (WITH_RECORD_EXPR): Deleted.
488         * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
489         (substitute_placeholder_in_expr): New.
490
491 2004-03-21  Andrew Pinski  <pinskia@gcc.gnu.org>
492
493         * dojump.c (prefer_and_bit_test): Fix which part of
494         the and_test is replaced.
495
496 2004-03-21  Joseph S. Myers  <jsm@polyomino.org.uk>
497
498         * frontends.texi: Add missing line.
499
500 2004-03-21  Zack Weinberg  <zack@codesourcery.com>
501             Chris Devers  <cdevers@pobox.com>
502             Joseph S. Myers  <jsm@polyomino.org.uk>
503
504         * doc/frontends.texi: Rewrite.
505         * doc/gcc.texi: Update last modification date.
506
507 2004-03-21  Josef Zlomek  <zlomekj@suse.cz>
508
509         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
510         message before redirecting the edge.
511
512 2004-03-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
513
514         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
515         flag.
516         * explow.c (force_not_mem): Set REG_POINTER flag according to
517         MEM_POINTER one.
518         * rtl.h (MEM_POINTER): New macro.
519         (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
520         for MEM_POINTER.
521
522 2004-03-20  Roger Sayle  <roger@eyesopen.com>
523
524         PR target/13889
525         * cse.c (fold_rtx): Avoid substituting constants into unary
526         conversion operations.
527
528 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
529
530         * fold-const.c (fold): Replace "expr" with "t".
531
532 2004-03-20  Ian Lance Taylor  <ian@wasabisystems.com>
533
534         PR c/12373
535         * c-typeck.c (tagged_types_tu_compatible_p): Don't use
536         DECL_ORIGINAL_TYPE if there isn't one.
537
538 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
539
540         * fold-const.c (fold): Replace "final_type" with "type".
541         Remove variable "final_type".
542
543 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
544
545         * fold-const.c (fold): Constify "type".
546         Replace "TREE_TYPE (t)" with "type".
547
548 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
549
550         * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
551         dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
552         via (*targetm.foo) () with targetm.foo ().
553
554 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
555
556         PR other/14630
557         * doc/install.texi: Add info directory category and entry.
558
559 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
560
561         * fold-const.c (fold): Replace "t" with "tem" where it is used
562         as a temporary variable.  Remove "orig_t" and all of its uses.
563
564 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
565
566         * fold-const.c (fold): Remove variable "invert".
567         Move the handling of relational expressions that can be folded
568         to a constant ...
569         (fold_relational_const): ... here.
570         (tree_expr_nonzero_p): New.
571
572 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
573
574         PR c/14635
575         * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
576         DEF_GCC_BUILTIN.
577
578 2004-03-20  Richard Sandiford  <rsandifo@redhat.com>
579
580         * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
581         (GTFILES): Add $(srcdir)/dojump.h.
582         (gt-dojump.h): New dependency.
583         * dojump.c (and_reg, and_test, shift_test): New static variables.
584         (prefer_and_bit_test): New function.
585         (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
586
587 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
588
589         * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
590         expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
591         reorg.c, tree.h: Fix comment typos.
592
593 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
594
595         * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
596         c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
597         cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
598         haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
599         sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
600         vmsdbgout.c: Replace calls via (*targetm.foo) () with
601         targetm.foo ().
602
603 2004-03-19  Ziemowit Laski  <zlaski@apple.com>
604
605         * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
606         vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
607         always_inline attribute.
608         * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
609         Treat expansion as completed even if literal argument is
610         invalid (so that other expansions are not tried in vain).
611
612 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
613
614         * loop-doloop.c (add_test): Replace GEN_INT (0) with
615         const0_rtx.
616
617 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
618
619         * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
620         ...
621         (fold_abs_const): ... here.
622
623 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
624
625         * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
626
627 2004-03-19  Denis Chertykov  <denisc@overta.ru>
628
629         PR target/11520
630         * config/avr/avr.md ("call_insn"): Handle explicit integer
631         specially.
632         (call_value_insn): Likewise.
633
634 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
635
636         * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
637
638 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
639
640         * fold-const.c (negate_expr): Move the handling of constants
641         ...
642         (fold_negate_const): ... here.
643
644 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
645
646         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
647         * langhooks.h (struct lang_hooks_for_types): New field hash_types.
648         * tree.c (debug_no_type_hash): Deleted.
649         (type_hash_canon): Abort if passed a variant.
650         Check lang_hooks.types.hash_types.
651         (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
652         (build_array_type): Remove unnecessary allocation of pointer type.
653         (build_complex_type): Properly qualify resulting type.
654
655 2004-03-19  Paolo Bonzini  <bonzini@gnu.org>
656
657         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
658
659 2004-03-19  Richard Sandiford  <rsandifo@redhat.com>
660
661         * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
662         (expand_mult): ...here.
663         (extract_high_half): New, split out from expand_mult_highpart.
664         (expand_highpart_optab): Likewise.  Don't clobber target prematurely.
665         (expand_highpart): Evaluate the cost of a shift/add sequence,
666         then see if any of the specialized optabs are cheaper.
667
668 2004-03-18  Ian Lance Taylor  <ian@wasabisystems.com>
669
670         * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
671
672 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
673
674         * convert.c (convert_to_real): Add more math builtins.
675
676 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
677
678         * convert.c (convert_to_real): Reformat using switch stmt.
679
680 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
681
682         * c-common.c (pointer_int_sum): Do not complain about using
683         pointers to pointers-to-members.
684
685 2004-03-18  Kazu Hirata  <kazu@cs.umass.edu>
686
687         * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
688         have moved to the target hooks structure".
689
690 2004-03-18  James E Wilson  <wilson@specifixinc.com>
691
692         * config/mips/mips.md (type): Split move into arith and fmove.  Split
693         hilo into mthilo and mfhilo.  Add trap.  Delete icmp.  Fix all uses.
694         * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
695         Likewise.
696         * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
697         Likewise.
698         * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
699         rm7_fp_quick): Likewise.
700         * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
701         rm9k_fquick): Likewise.
702         * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
703         Likewise.
704         (ir_sr70_icmp): Delete.
705
706 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
707
708         * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
709         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
710         (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
711         (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
712         (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
713         Protect with proper check.
714         (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
715         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
716         * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
717         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
718         * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
719         * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
720         not TYPE_FIELDS.
721         * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
722
723 2004-03-18  Mostafa Hagog  <mustafa@il.ibm.com>
724
725         * gcse.c (eliminate_partially_redundant_loads): Reject change if
726         dest is set between beginning and current insn.
727
728 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
729
730         * c-decl.c (grokdeclarator): Do not complain about redeclaring
731         visible "static" identifiers "extern" in a local scope.
732         * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
733         post-increments/decrements.
734
735 2004-03-18  Bob Wilson  <bob.wilson@acm.org>
736
737         * config/xtensa/xtensa.c (current_function_arg_words): Delete.
738         (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
739         (xtensa_va_start): Remove assignment to current_function_arg_words.
740
741 2004-03-18  Richard Sandiford  <rsandifo@redhat.com>
742
743         * alias.c (record_set): Detect the case where a register is assigned
744         a new value that has the same base term as the old one.
745
746 2004-03-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
747
748         * doloop.c: Removed.
749         * loop-doloop.c: New file.
750         * Makefile.in (doloop.o): Remove.
751         (loop-doloop.o): New.
752         * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
753         * cfgloopanal.c (get_loop_level): New function.
754         * loop-iv.c (iv_number_of_iterations): Handle case when loop
755         is leaved immediatelly.
756         * loop.c (strength_reduce): Do not call doloop optimization.
757         * loop.h (LOOP_BCT): Removed.
758         * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
759         (rest_of_handle_loop2): Call doloop_optimize_loops.
760         (rest_of_compilation): Test for optimizations moved to
761         rest_of_handle_loop2.
762
763 2004-03-17  Fariborz Jahanian <fjahanian@apple.com>
764
765         * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
766         for mixed mode.
767         (rs6000_emit_prologue): Ditto.
768         (rs6000_emit_epilogue): Ditto.
769         * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
770         macro for mixed mode.
771
772 2004-03-18  Jan Hubicka  <jh@suse.cz>
773
774         * predict.c (propagate_freq): Compute correctly frequency of
775         EXIT_BLOCK.
776
777 2004-03-17  Eric Christopher  <echristo@redhat.com>
778
779         * builtins.c (apply_args_size): Use reg_raw_mode.
780         (apply_result_size): Ditto.
781
782 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
783
784         PR target/14620
785         * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
786
787 2004-03-17  Jakub Jelinek  <jakub@redhat.com>
788
789         * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
790         32-bit builds when defaulting to 32-bit.
791
792 2004-03-17  Jan Hubicka  <jh@suse.cz>
793
794         * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
795         array.
796
797 2004-03-17  James E Wilson  <wilson@specifixinc.com>
798
799         * config/mips/mips.md (zero_extendsidi2): Add length attribute.
800         (hazard_nop): Change type to nop.
801         (type): Split arith into arith, shift, slt, clz.  Delete darith.
802         Fix all uses.  Change arith to multi if more than one insn emitted.
803         * config/mips/5400.md (ir_vr54_arith): Likewise.
804         * config/mips/5500.md (ir_vr55_arith): Likewise.
805         * config/mips/7000.md (rm7_int_other): Likewise.
806         * config/mips/9000.md (rm9k_int): Likewise.
807         * config/mips/sr71k.md (ir_sr70_arith): Likewise.
808
809 2004-03-17  Joel Brobecker  <brobecker@gnat.com>
810
811         * dwarf2out.c (subrange_type_die): Define new variable "subtype"
812         to hold the subtype tree instead of recomputing it several times.
813
814 2004-03-17  Kazu Hirata  <kazu@cs.umass.edu>
815
816         * config/mn10300/mn10300.c (notice_update_cc): Don't handle
817         CC_INVERT.
818         * config/mn10300/mn10300.md (cc): Remove "invert".
819
820 2004-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
821
822         * builtins.c (integer_valued_real_p): Add builtin rint.
823         (fold_builtin): Likewise.
824         * convert.c (convert_to_real): Likewise.
825
826         * convert.c (convert_to_real): Fix typos in `long double'
827         builtins.
828
829 2004-03-16  Mark Mitchell  <mark@codesourcery.com>
830
831         PR c++/14481
832         * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
833         generated COMPOUND_EXPRs.
834
835 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
836
837         * config/h8300/t-rtems (h8300-*-rtems*): New.
838
839 2004-03-16  Eric Christopher  <echristo@redhat.com>
840
841         * doc/cppopts.texi(fwide-exec-charset): Fix typo.
842
843 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
844
845         * config/i386/i386-protos.h: Add a prototype for
846         ix86_reverse_condition.
847         * config/i386/i386.c (ix86_reverse_condition): New.
848         * config/i386/i386.h (REVERSE_CONDITION): Use
849         ix86_reverse_condition.
850         * config/i386/i386.md: Use ix86_reverse_condition instead of
851         REVERSE_CONDITION.
852
853 2004-03-16  J. Brobecker  <brobecker@gnat.com>
854
855         * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
856
857 2004-03-16  Nathanael Nerode  <neroden@gcc.gnu.org>
858
859         PR bootstrap/12974
860         * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
861
862 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
863
864         * c-common.c (c_common_type_for_mode): Build vector types on
865         demand.
866         (handle_mode_attribute): Deprecate using the mode attribute
867         to create vector types.  Fix indentation.
868         (vector_type_node_list): Remove.
869         (handle_vector_size_attribute): Create vector types on demand.
870         Strip a NON_LVALUE_EXPR from the attribute if there is one.
871         * c-typeck.c (comptypes): Make vector types compatible if they
872         have the same underlying mode.
873         (convert_for_assignment): Use comptypes to convert between
874         vector types.
875         * tree.c (build_common_tree_nodes_2): Do not create vector types.
876         * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
877         vector types.
878         * tree.h: Remove vector types.
879         * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
880         * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
881         (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
882         V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
883         * doc/extend.texi (Vector Types): Document how to use the
884         vector_size attribute to create vectors, rather than mode.
885
886         * config/arm/mmintrin.h: Use vector_size attribute, not mode.
887         * config/i386/emmintrin.h: Likewise.
888         * config/i386/mmintrin.h: Likewise.
889         * config/i386/xmmintrin.h: Likewise.
890         * config/sh/ushmedia.h: Likewise.
891
892 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
893
894         * config/freebsd-spec.h, config/arc/arc-protos.h,
895         config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
896         config/arm/linux-gas.h, config/arm/semi.h,
897         config/cris/cris-protos.h, config/i386/xm-djgpp.h,
898         config/ia64/freebsd.h, config/mips/7000.md,
899         config/mips/9000.md, config/ns32k/ns32k-protos.h,
900         config/sparc/pbd.h: Update copyright.
901
902 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
903
904         PR target/14577
905         * config.gcc: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff.
906
907 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
908
909         * combine.c (combine_simplify_rtx): Remove the "last"
910         parameter and its documentation.  Adjust recursive calls.
911         (simplify_logical): Always perform the only simplification
912         controlled by "last", if the simplified expression is
913         actually different.
914         (try_combine): Do not pass the "last" parameter to
915         combine_simplify_rtx.
916
917 2004-03-16  Richard Sandiford  <rsandifo@redhat.com>
918
919         PR target/14599
920         * config/mips/mips.md (UNSPEC_GP): New constant.
921         * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
922         an UNSPEC instead of (reg $gp).
923         (mips16_gp_pseudo_reg): Change accordingly.
924         (print_operand): Print $gp directly when handling CONST_GP_P.
925
926 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
927
928         * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
929         * longlong.h: Make code 68060 clean when compiling for m68060.
930
931 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
932
933         * config/m68k/m68k.md: Fix constraints for bitfield instructions.
934         * doc/md.texi: Clarify description of "i" constraint.
935
936 2004-03-15  James E Wilson  <wilson@specifixinc.com>
937
938         * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
939         Split store into store, fpstore, fpidxstore.  Fix all uses.
940         * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
941         Likewise.
942         * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
943         * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
944         * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
945         * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
946         ir_sr70_fstore): Likewise.
947
948 2004-03-15  Richard Henderson  <rth@redhat.com>
949
950         PR middle-end/14535
951         * except.c (collect_one_action_chain): Record action for cleanup
952         outer of exception spec.
953
954 2004-03-15  Ian Lance Taylor  <ian@wasabisystems.com>
955
956         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
957         Fix the check for abort and only do the mmap if we can.
958
959 2004-03-15  Eric Botcazou  <ebotcazou@act-europe.fr>
960
961         * config/sparc/sparc.h: Rework comments about the code model
962         in 64-bit environment and the mode 'Pmode'.
963         * doc/invoke.texi (SPARC options): Rework description of the
964         different code models supported in 64-bit environment.
965
966 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
967
968         * defaults.h (REVERSIBLE_CC_MODE): Define.
969         * jump.c (reversed_comparison_code_parts): Don't check if
970         REVERSIBLE_CC_MODE is defined.
971
972 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
973
974         * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
975         et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
976         hosthooks.h, params.h, ra-colorize.c, web.c,
977         config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
978         config/avr/avr-protos.h, config/avr/avr.md,
979         config/fr30/fr30-protos.h, config/fr30/fr30.md,
980         config/h8300/fixunssfsi.c, config/i386/darwin.h,
981         config/i386/freebsd.h, config/i386/freebsd64.h,
982         config/ia64/hpux.h, config/ia64/unwind-ia64.c,
983         config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
984         config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
985         config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
986         config/pa/pa64-regs.h, config/rs6000/aix41.h,
987         config/rs6000/aix43.h, config/rs6000/host-darwin.c,
988         config/sparc/aout.h, config/sparc/freebsd.h,
989         config/sparc/litecoff.h, config/vax/vax-protos.h,
990         doc/hostconfig.texi, doc/include/gcc-common.texi: Update
991         copyright.
992
993 2004-03-15  Paul Brook  <paul@codesourcery.com>
994
995         * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
996
997 2004-03-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
998
999         * c-pretty-print.c (pp_c_semicolon): Fix formatting.
1000         (pp_c_cv_qualifier): Document.
1001         (pp_c_space_for_pointer_operator): Likewise.
1002         (pp_c_integer_constant): Likewise.
1003         (pp_c_identifier): Likewise.
1004         (pp_c_init_declarator): Don't print function body.
1005
1006 2004-03-14  Joseph S. Myers  <jsm@polyomino.org.uk>
1007
1008         * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
1009         doc/install.texi, doc/invoke.texi, doc/makefile.texi,
1010         doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
1011         "gcc", "g++" and "g77" or mark up with appropriate markup.  Adjust
1012         wording and grammar.
1013
1014 2004-03-14  Roger Sayle  <roger@eyesopen.com>
1015
1016         * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
1017         with lang_hooks.foo ().
1018         * builtins.c (expand_builtin_va_arg): Likewise.
1019         * c-common.c (fname_as_string, c_common_truthvalue_conversion,
1020         c_common_type_for_mode, c_common_nodes_and_builtins,
1021         handle_mode_attribute, handle_vector_size_attribute): Likewise.
1022         * c-convert.c (convert): Likewise.
1023         * c-format.c (check_format_types): Likewise.
1024         * c-objc-common.c (c_tree_printer): Likewise.
1025         * c-typeck.c (build_unary_op, build_conditional_expr,
1026         build_binary_op): Likewise.
1027         * calls.c (try_to_integrate, expand_call,
1028         emit_library_call_value_1): Likewise.
1029         * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
1030         Likewise.
1031         * cgraphunit.c (record_call_1, cgraph_analyze_function,
1032         cgraph_expand_function): Likewise.
1033         * convert.c (convert_to_pointer, convert_to_integer): Likewise.
1034         * coverage.c (build_fn_info_type, build_ctr_info_type,
1035         build_gcov_info, create_coverage): Likewise.
1036         * dbxout.c (dbxout_init): Likewise.
1037         * diagnostic.c (diagnostic_report_current_function): Likewise.
1038         * dojump.c (do_jump): Likewise.
1039         * dwarf2out.c (dwarf2_name): Likewise.
1040         * except.c (init_eh): Likewise.
1041         * explow.c (expr_size, int_expr_size): Likewise.
1042         * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
1043         Likewise.
1044         * expr.c (store_expr, store_constructor, safe_from_p,
1045         expand_expr_real, do_store_flag, try_casesi): Likewise.
1046         * function.c (push_function_context_to, pop_function_context_from,
1047         free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
1048         put_var_into_stack, allocate_struct_function, current_function_name):
1049         Likewise.
1050         * integrate.c (copy_decl_for_inlining, expand_inline_function):
1051         Likewise.
1052         * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
1053         lhd_print_error_function): Likewise.
1054         * opts.c (handle_option, decode_options): Likewise.
1055         * passes.c (open_dump_file): Likewise.
1056         * print-tree.c (print_node): Likewise.
1057         * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
1058         expand_decl_cleanup, emit_case_nodes): Likewise.
1059         * stor-layout.c (variable_size): Likewise.
1060         * toplev.c (announce_function, wrapup_global_declarations,
1061         check_global_declarations, compile_file, default_tree_printer,
1062         process_options, lang_dependent_init, finalize): Likewise.
1063         * tree-dump.c (dequeue_and_dump): Likewise.
1064         * tree-inline.c (remap_decl, remap_block, copy_body_r,
1065         initialize_inlined_parameters, declare_return_variable,
1066         inlinable_function_p, expand_call_inline, optimize_inline_calls,
1067         walk_tree, copy_tree_r): Likewise.
1068         * tree-optimize.c (tree_rest_of_compilation): Likewise.
1069         * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
1070         unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
1071         variably_modified_type_p, dump_tree_statistics): Likewise.
1072         * varasm.c (assemble_variable, compare_constant, copy_constant,
1073         force_const_mem, compute_reloc_for_constant, output_constant,
1074         output_addressed_constants, initializer_constant_valid_p): Likewise.
1075
1076 2004-03-14  Kelley Cook  <kcook@gcc.gnu.org>
1077
1078         * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
1079
1080 2004-03-14  Andreas Tobler  <a.tobler@schweiz.ch>
1081
1082         * doc/install.texi: Reflect autoconf and automake version for
1083         libffi. Update autoconf version to 2.59.
1084
1085 2004-03-13  Roger Sayle  <roger@eyesopen.com>
1086
1087         * fold-const.c (negate_expr, operand_equal_for_comparison_p,
1088         optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
1089         make_range, build_range_check, fold_range_test, unextend,
1090         constant_boolean_node, fold_binary_op_with_conditional_arg,
1091         fold_truthop, fold_mathfn_compare, fold_inf_compare,
1092         fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
1093         with lang_hooks.foo ().
1094
1095 2004-03-14  Richard Earnshaw  <rearnsha@arm.com>
1096
1097         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
1098
1099 2004-03-13  Dara Hazeghi  <dhazeghi@yahoo.com>
1100
1101         * doc/install.texi: Note status of -fnew-ra.
1102
1103 2004-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1104
1105         PR middle-end/14470
1106         * expr.c (store_expr): Call emit_queue before generating the move
1107         from the temporary to the original target.  Protect the temporary
1108         from emit_queue.
1109
1110 2004-03-13  Jakub Jelinek  <jakub@redhat.com>
1111
1112         PR target/14533
1113         * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
1114         other than UNSPEC_GOTOFF.
1115
1116 2004-03-13  Richard Earnshaw  <rearnsha@arm.com>
1117
1118         * arm.c (arm_legitimate_address_p): New argument, OUTER.  Pass through
1119         to arm_legitimate_index_p.  Update all callers with SET as default
1120         value.
1121         (arm_legitimate_index_p): New argument, OUTER.  Restrict the index
1122         range if OUTER is a sign-extend operation on QImode.  Correctly
1123         reject shift operations on sign-extended QImode addresses.
1124         (bad_signed_byte_operand): Delete.
1125         (arm_extendqisi_mem_op): New function.
1126         * arm.h (EXTRA_CONSTRAINT_ARM): Delete.  Replace with...
1127         (EXTRA_CONSTRAINT_STR_ARM): ... this.  Handle extended address
1128         constraints.
1129         (CONSTRAINT_LEN): New.
1130         (EXTRA_CONSTRAINT): Delete.  Replace with...
1131         (EXTRA_CONSTRAINT_STR): ... this.
1132         (PREDICATE_CODES): Remove bad_signed_byte_operand.
1133         * arm.md (extendqihi_insn): Use new constraint Uq.  Rework.  Length
1134         is now always default.
1135         (define_splits for bad sign-extend loads): Delete.
1136         (arm_extendqisi, arm_extendqisi_v5): Likewise.
1137         * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
1138         Rework 'U' constraint to 'Uv'.
1139         * arm-protos.h: Remove bad_signed_byte_operand.  Add
1140         arm_extendqisi_mem_op.
1141         * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
1142         Add Uq constraint.
1143
1144 2004-03-13  Alan Modra  <amodra@bigpond.net.au>
1145
1146         * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
1147         with targetm version.
1148
1149         PR target/14567
1150         * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
1151         (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
1152         * config/rs6000/rs6000.c (rs6000_arg_size): New function.
1153         Update all users of RS6000_ARG_SIZE.
1154         (function_arg_advance): Count fregno using mode size.
1155         (function_arg): Handle long double split over regs and memory.
1156         (function_arg_partial_nregs): Likewise.
1157         (rs6000_va_arg): Repackage complex args.
1158
1159 2004-03-13  Dean Ferreyra <dferreyra@igc.org>
1160
1161         PR target/14047
1162         * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
1163         (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
1164         * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
1165
1166 2004-03-12  Jakub Jelinek  <jakub@redhat.com>
1167
1168         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
1169         prototype.
1170         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
1171         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
1172
1173 2003-03-12  Andrew Pinski  <apinski@apple.com>
1174
1175         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1176         Use ret instead of result. Use addr instead of base.
1177
1178 2004-03-12  David Edelsohn  <edelsohn@gnu.org>
1179
1180         * doc/install.texi (*-ibm-aix*): Document assembler and achiver
1181         fixes required by libstdc++ and update installation instructions
1182         for libstdc++.a.
1183
1184 2004-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
1185
1186         * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
1187         leading '@' on fastcall symbols before stripping suffix.
1188
1189 2004-03-12  Roger Sayle  <roger@eyesopen.com>
1190
1191         * combine.c (unmentioned_reg_p): New function to check whether an
1192         expression is a "specialization" of another, i.e. that there are
1193         no registers or memory references mentioned in the first that don't
1194         appear in the second.
1195         (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
1196         (combine_instructions): Also try combining instructions using the
1197         REG_EQUAL note from a preceding log-linked instruction.
1198
1199 2004-03-12  Roger Sayle  <roger@eyesopen.com>
1200
1201         * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
1202
1203 2004-03-12  Matt Austern  <austern@apple.com>
1204
1205         * target.h (struct gcc_target): New target hook, unwind_label.
1206         * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
1207         * output.h (default_emit_unwind_label): New function.
1208         * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
1209         (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
1210         (TARGET_SUPPORTS_HIDDEN): New target macro.
1211         * dwarf2out.c (struct dw_fde_struct): Add field for function decl
1212         that corresponds to this FDE.
1213         (FRAME_BEGIN_LABEL): Allow target to override default label.
1214         (output_call_frame_info): If FDEs are linknonce, then use extra
1215         indirection for FDE encoding, output a label for each FDE, and
1216         output an empty label for each function without an FDE.
1217         (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
1218         * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
1219         decls with DECL_ONE_ONLY set, if that macro is defined.
1220         (make_decl_one_only): Don't use DECL_COMMON if we're compiling
1221         for a SUPPORTS_ONE_ONLY target.
1222         * config/darwin-protos.h (darwin_unique_section): Declare.
1223         (darwin_asm_named_section): Likewise.
1224         (darwin_section_type_flags): Likewise.
1225         (darwin_non_lazy_pcrel): Likewise.
1226         (darwin_emit_unwind_label): Likewise.
1227         (darwin_make_decl_one_only): Likewise.
1228         * config/darwin.c (machopic_finish): Get rid of tweak that
1229         eliminate stubs for symbols that are defined.
1230         (darwin_encode_section_info): Don't treat weak functions as defined.
1231         (darwin_make_decl_one_only): Define.
1232         (darwin_asm_named_section): Likewise.
1233         (darwin_section_type_flags): Likewise.
1234         (darwin_unique_section): Likewise.
1235         (darwin_emit_unwind_label): Likewise.
1236         (darwin_non_lazy_pcrel): Likewise.
1237         (darwin_asm_output_dwarf_delta): Difference between two labels is
1238         local only if both labels are local.
1239         * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
1240         (ASM_MAKE_LABEL_LINKONCE): Likewise.
1241         (TARGET_SUPPORTS_HIDDEN): Likewise.
1242         (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
1243         (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
1244         (FRAME_BEGIN_LABEL): Likewise.
1245         (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
1246         (ASM_DECLARE_FUNCTION_NAME): Likewise.
1247         (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
1248         (TARGET_ASM_UNIQUE_SECTION): Define.
1249         (EH_FRAME_SECTION_NAME): Define.
1250         (EH_FRAME_SECTION_ATTR): Likewise.
1251         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
1252         (TARGET_ASM_NAMED_SECTION): Likewise.
1253         (TARGET_SECTION_TYPE_FLAGS): Likewise.
1254         * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
1255         TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
1256         TARGET_ASM_EMIT_UNWIND_LABEL.
1257
1258 2004-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1259
1260         * builtins.c (expand_builtin_mathfn): Add pow10* to the
1261         existing exp10* case.
1262         (expand_builtin): Likewise.
1263
1264 2004-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1265
1266         * doc/tm.texi (registers) <Values in Registers>: Add
1267         entry for REGMODE_NATURAL_SIZE.
1268
1269 2004-03-12  Richard Henderson  <rth@redhat.com>
1270
1271         PR target/14547
1272         * target.h (struct gcc_target): Move calls substructure before
1273         booleans.  Add split_complex_arg.
1274         * function.c (assign_parms, split_complex_args): Use it.
1275         * calls.c (expand_call): Likewise.
1276         (split_complex_values): Likewise.  Check for splittable types
1277         before allocating memory.
1278         (split_complex_types): Likewise.
1279         * system.h (SPLIT_COMPLEX_ARGS): Poison.
1280         * expr.h (SPLIT_COMPLEX_ARGS): Remove.
1281         * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
1282         * config/alpha/alpha.c (alpha_split_complex_arg): New.
1283         (TARGET_SPLIT_COMPLEX_ARG): New.
1284         * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
1285         * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
1286         (rs6000_override_options): Zap it for non-AIX.
1287         (rs6000_function_value): Use targetm.calls.split_complex_arg.
1288         * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
1289         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
1290         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
1291         * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
1292         SPLIT_COMPLEX_ARGS entry.
1293
1294 2004-03-11  Richard Henderson  <rth@redhat.com>
1295
1296         * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
1297         (alpha_lookup_xfloating_lib_func): Use them, return rtx.
1298         (alpha_emit_xfloating_arith): Update to match.
1299         (alpha_emit_xfloating_compare): Likewise.
1300         (alpha_emit_xfloating_cvt): Likewise.
1301         (alpha_emit_xfloating_libcall): Take already built symbol,
1302         mark call const.
1303         * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
1304         op1 in a register.
1305
1306 2004-03-11  Richard Henderson  <rth@redhat.com>
1307
1308         PR target/14539
1309         * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
1310
1311         * simplify-rtx.c (simplify_relational_operation): Fix typo.
1312
1313 2004-03-11  Richard Henderson  <rth@redhat.com>
1314
1315         PR middle-end/14477
1316         * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
1317
1318 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
1319
1320         PR target/14262
1321         * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
1322         defined, pass small BLKmode values in registers in the low-order part.
1323
1324 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
1325
1326         * combine.c (if_then_else_cond): Check for NULL return value of
1327         simplify_gen_subreg.
1328
1329 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
1330
1331         PR target/14496
1332         * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
1333         TARGET_SINGLE_FLOAT.
1334
1335 2004-03-11  Steve Ellcey  <sje@cup.hp.com>
1336
1337         * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
1338         * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
1339         * config/ia64/ia64.c (ia64_init_libfuncs): New.
1340         (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
1341
1342 2004-03-11  Roger Sayle  <roger@eyesopen.com>
1343
1344         * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
1345         -((int)X>>C) where C is an integer constant one bit less than the
1346         size of X into (unsigned)X>>C.  Similarly for unsigned->signed.
1347         (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
1348
1349         * simplify-rtx.c (simplify_unary_operation): Also implement the
1350         above transformations at the RTL level.
1351
1352 2004-03-11  Alan Modra  <amodra@bigpond.net.au>
1353
1354         * real.c (encode_ibm_extended): Do round low word.
1355
1356 2004-03-11  Ben Elliston  <bje@wasabisystems.com>
1357
1358         * config/arm/arm.md (is_xscale): Comment this attribute and move
1359         it a bit further up in the file, closer to related attributes.
1360
1361 2004-03-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
1362
1363         * config/host-solaris.c (sol_gt_pch_use_address): Add
1364         missing terminating marker to comment.
1365
1366 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
1367
1368         * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
1369         (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
1370         (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
1371         (*movsf_mips16, *movdf_mips16):  Name unnamed patterns.  Use
1372         move_operand as source predicate in all cases.
1373         (*movdi_32bit): Renamed from movdi_internal.  Remove 'F' constraint.
1374         Test reg_or_0_operand.  Use move_operand as source predicate.
1375         (*movdi_64bit): Renamed from movdi_internal2.  Test reg_or_0_operand.
1376         (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
1377         (*movsi_internal): Renamed from movsi_internal.  Test reg_or_0_operand.
1378         (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
1379         (*movhi_internal): Renamed from movhi_internal.  Test reg_or_0_operand.
1380         Use move_operand as source predicate.  Remove 'K' constraint.
1381         (*movqi_internal): Likewise movqi_internal.
1382         (*movsf_hardfloat): Renamed from movsf_internal1.  Test
1383         reg_or_0_operand.  Use move_operand as source predicate.
1384         (*movsf_softfloat): Likewise movsf_internal2.
1385         (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
1386         (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
1387         (*movdf_softfloat): Likewise movdf_internal2.
1388         * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
1389         for DImode if !TARGET_64BIT.
1390         (mips_legitimize_move): Simplify accordingly.
1391
1392 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
1393
1394         PR/14362
1395         * var-tracking.c (struct variable_def): Added field refcount.
1396         (variable_htab_free): Decrease the refcount and delete variable
1397         only if there are no more references.
1398         (unshare_variable): New function.
1399         (vars_copy_1): Increase refcount instead of copying the variable.
1400         (variable_union): Share the variables where possible, unshare
1401         the variables if needed.
1402         (variable_different_p): Return false if var1 and var2 are
1403         the same structure.
1404         (variable_was_changed): Init the refcount of new variable.
1405         (set_frame_base_location): Unshare variable if needed.
1406         (set_variable_part): Init the refcount of new variable.
1407         Unshare the variables if needed.
1408         (delete_variable_part): Unshare the variables if needed.
1409         (emit_notes_for_differences_1): Init the refcount of new variable.
1410         (vt_add_function_parameters): Do not add function parameters to
1411         IN set of ENTRY_BLOCK_PTR because it is unused anyway.
1412         (vt_initialize): Do not add frame_base_decl to IN set of
1413         ENTRY_BLOCK_PTR because it is unused anyway.
1414
1415 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
1416
1417         * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
1418         (vars_copy): Likewise.
1419         (variable_union): Likewise.
1420         (set_variable_part): Likewise.
1421         (delete_variable_part): Likewise.
1422
1423 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
1424
1425         * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
1426         ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
1427         config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
1428         config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
1429         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
1430         config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
1431         config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
1432         config/pdp11/pdp11.h, config/rs6000/rs6000.c,
1433         config/stormy16/stormy16.c: Fix comment typos and formatting.
1434
1435 2004-03-11  Nathanael Nerode  <neroden@gcc.gnu.org>
1436
1437         * configure: Regenerate, since I forgot to while committing Paolo's
1438         changes.
1439
1440 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
1441
1442         PR ada/14131
1443         Move language detection to the top level.
1444         * configure.ac: Remove code to detect languages,
1445         it now lives exclusively in the top level.
1446         * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
1447         top level, renamed to ACX_PROG_GNAT.
1448
1449 2004-03-10  Richard Henderson  <rth@redhat.com>
1450
1451         * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
1452         extra arguments.
1453         * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
1454         and host_xmake_file fragments.
1455         * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
1456         (gt_pch_restore): Similarly for gt_pch_use_address.
1457         (default_gt_pch_get_address): New.
1458         (mmap_gt_pch_get_address): Split out of gt_pch_save.
1459         (default_gt_pch_use_address): Split out of gt_pch_restore.
1460         (mmap_gt_pch_use_address): Likewise.
1461         * hooks.c (hook_voidp_size_t_null): Remove.
1462         (hook_bool_voidp_size_t_false): Remove.
1463         * hooks.h: Likewise.
1464         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
1465         default_ or mmap_ definitions.
1466         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
1467         * hosthooks.h (struct host_hooks): Update gt_pch_get_address
1468         and gt_pch_use_address.
1469         * config/host-linux.c, config/host-solaris.c: New files.
1470         * config/x-linux, config/x-solaris: New files.
1471         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
1472         Update for changed definition.
1473         (darwin_rs6000_gt_pch_use_address): Likewise.
1474         * doc/hostconfig.texi: Update docs.
1475
1476 2004-03-10  Richard Henderson  <rth@redhat.com>
1477
1478         PR c/14517
1479         * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
1480         except for pedantic c90 mode.
1481
1482 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
1483
1484         * configure.ac: Bump AC_PREREQ to 2.59.
1485         * configure: Regenerate.
1486
1487 2004-03-10  Uros Bizjak  <uros@kss-loka.si>
1488
1489         * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
1490         (exp10_optab, exp2_optab): Define corresponding macros.
1491         * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
1492         * genopinit.c (optabs): Implement exp10_optab and exp2_optab
1493         using exp10?f2 and exp2?f2 patterns.
1494         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
1495         using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
1496         (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
1497         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
1498
1499         * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
1500         exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
1501         exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
1502
1503 2004-03-10  Anthony Green  <green@redhat.com>
1504
1505         * doc/invoke.texi (ARM Options): Fix -mpfu typo.
1506
1507 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
1508
1509         * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
1510         (TARGET_OS_AIX_CPP_BUILTINS): this.  Conditionally define
1511         __LONGDOUBLE128.
1512         * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
1513         TARGET_OS_AIX_CPP_BUILTINS.
1514         * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
1515         * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
1516         * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
1517         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
1518         previous change.
1519
1520 2004-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1521
1522         * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
1523
1524 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
1525
1526         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1527         __LONGDOUBLE128 on AIX.
1528
1529 2004-03-10  Andrew Haley  <aph@redhat.com>
1530
1531         PR optimization/14381
1532         * function.c (expand_function_end): Emit a blockage insn before
1533         the epilogue when -fnon-call-exceptions is used.
1534
1535         * except.c (expand_start_all_catch): Make comment more accurate.
1536
1537 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
1538
1539         PR target/14480
1540         * config/rs6000/t-rtems: Add missing file on branch.
1541
1542 2004-03-10  Ulrich Weigand  <uweigand@de.ibm.com>
1543
1544         * dbxout.c (dbxout_symbol_location): Do not output references
1545         to optimized-out constant pool symbols.
1546
1547 2004-03-10  Andreas Schwab  <schwab@suse.de>
1548
1549         * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
1550         twon34_r.
1551
1552 2004-03-09  James E Wilson  <wilson@specifixinc.com>
1553
1554         * alias.c (alias_sets_might_conflict_p): New.
1555         * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
1556         * common.opt (Wstrict-aliasing=): New.
1557         * flags.h (warn_strict_aliasing): Change type to int.
1558         * opts.c (warn_strict_aliasing): Change type to int.
1559         (common_handle_option): Handle OPT_Wstrict_aliasing_.
1560         * tree.h (alias_sets_might_conflict_p): Declare it.
1561         * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
1562
1563 2004-03-10  Roman Zippel  <zippel@linux-m68k.org>
1564
1565         PR bootstrap/12371
1566         * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
1567         (CALL_USED_REGISTERS): Likewise.
1568         (REG_CLASS_CONTENTS): Likewise.
1569         (REG_ALLOC_ORDER): New.
1570         (REGNO_REG_CLASS): Use regno_reg_class.
1571         * config/m68k/m68k.c: Add regno_reg_class array.
1572
1573 2004-03-09  Steve Ellcey  <sje@cup.hp.com>
1574
1575         * config/ia64/ia64.md (divsi3): Fix algorithm.
1576           (udivsi3): Ditto.
1577           (setf_exp_xf): Remove '*' from name.
1578         * testsuite/gcc.dg/20040309-1.c: New test.
1579
1580 2004-03-09  Ian Lance Taylor  <ian@wasabisystems.com>
1581
1582         * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
1583         * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
1584         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
1585         * config/sparc/sparc.c (sparc_aout_select_section): Remove.
1586         (sparc_aout_select_rtx_section): Don't check
1587         SUNOS4_SHARED_LIBRARIES.
1588         * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
1589
1590 2004-03-10  Hans-Peter Nilsson  <hp@axis.com>
1591
1592         PR other/14474
1593         * doc/md.texi (Pattern Ordering, Dependent Patterns)
1594         (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
1595         INTERNALS".
1596
1597 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
1598
1599         * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
1600         (LIBGCC_SPEC): Update to match.
1601
1602 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
1603
1604         * c-decl.c (last_function_parms, last_function_parm_tags)
1605         (last_function_parm_others, current_function_parms)
1606         (current_function_parm_tags, current_function_parm_others):
1607         Delete.
1608         (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
1609         New macros.
1610         (grokdeclarator): For function definitions, save the arg-info
1611         block from the declarator in DECL_ARGUMENTS.
1612         (grokparms): Do not write to last_function_parm*.  Use ARG_INFO_*
1613         macros to operate on arg-info block.  Can assume ARG_INFO_PARMS
1614         contains only PARM_DECLs.  Improve diagnostics.
1615         (get_parm_info): Use ARG_INFO_* macros.  Improve comments and
1616         diagnostics.  Disable some expensive checks if not ENABLE_CHECKING.
1617         (store_parm_decls_newstyle): Take the function to operate on,
1618         and an arg-info block, as arguments; don't get anything from
1619         current_function_* globals.
1620         (store_parm_decls_oldstyle): Likewise.
1621         (store_parm_decls): Pass fndecl and its arg-info block down to
1622         store_parm_decls_newstyle/oldstyle.  Send functions with empty
1623         argument lists through store_parm_decls_newstyle to reduce
1624         overhead.
1625         (pushdecl): Comment on the problems with the call to copy_node.
1626         Clear DECL_ARGUMENTS of the old node after copying it, if it
1627         is an arg-info block instead of a chain of decls.
1628         (start_function): Do not manipulate current_function_parm* or
1629         last_function_parm*.
1630
1631 2004-03-09  Roger Sayle  <roger@eyesopen.com>
1632             Andrew Pinski  <pinskia@physics.uc.edu>
1633
1634         * ifcvt.c (noce_try_sign_mask): New function to transform
1635         "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
1636         (noce_process_if_block): Call noce_try_sign_mask.
1637
1638 2004-03-09  Andrew Pinski  <apinski@apple.com>
1639
1640         * c-typeck.c (tagged_types_tu_compatible_p):
1641         Fix typo.
1642
1643 2004-03-09  Roger Sayle  <roger@eyesopen.com>
1644
1645         * simplify-rtx.c (simplify_const_relational_operation): New function
1646         renamed from simplify_relational_operation.
1647         (simplify_relational_operation): Change prototype to accept an
1648         additional mode argument.  Call simplify_const_relational_operation.
1649         (simplify_gen_relational): Update simplify_relational_operation call.
1650         (simplify_ternary_operation): Update simplify_relational_operation
1651         subroutine call to use simplify_const_relational_operation instead.
1652
1653         * rtl.h (simplify_const_relational_operation): Prototype here.
1654         (simplify_relational_operation): Add addtional mode argument.
1655
1656         * combine.c (combine_simplify_rtx): Update calls to
1657         simplify_relational_operation.
1658         (simplify_set): Likewise.
1659         (gen_binary): Likewise.
1660         * cse.c (fold_rtx): Likewise.
1661         * dojump.c (compare_from_rtx): Likewise.
1662         (do_compare_rtx_and_jump): Likewise.
1663         * integrate.c (subst_constants): Likewise.
1664         * unroll.c (simplify_cmp_and_jump_insns): Likewise.
1665
1666 2004-03-09  Kazu Hirata  <kazu@cs.umass.edu>
1667
1668         * config/m32r/m32r.md: Remove all define_peephole's.
1669
1670 2004-03-09  Alan Modra  <amodra@bigpond.net.au>
1671
1672         * config/rs6000/rs6000.md: Remove trailing whitespace.
1673
1674 2004-03-08  Eric Christopher  <echristo@redhat.com>
1675
1676         * Makefile.in (site.exp): Add libiconv variable definition.
1677
1678 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
1679
1680         * configure: Regenerate for config/accross.m4 correction.
1681
1682 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
1683
1684         PR target/14480
1685         * config/rs6000/t-rtems: Add missing file on branch.
1686
1687 2004-03-08  Roger Sayle  <roger@eyesopen.com>
1688
1689         PR middle-end/14289
1690         * c-typeck.c (c_mark_addressable): A register variable should
1691         be considered global if its not automatic, i.e. TREE_PUBLIC,
1692         TREE_STATIC or DECL_EXTERNAL.
1693         * function.c (put_var_into_stack): Call abort when placing a
1694         hard register into the stack, if x_parm_reg_stack_loc is NULL.
1695
1696 2004-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
1697
1698         * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
1699         ("*extendqisi2_short_displ"): Likewise.
1700
1701 2004-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1702
1703         * config/pdp11/pdp11.c (comparison_operator_index): Remove.
1704         (comp_operator): Likewise.
1705         * config/pdp11/pdp11-protos.h: Remove corresponding
1706         prototypes.
1707
1708 2004-03-08  Eric Botcazou  <ebotcazou@act-europe.fr>
1709
1710         * expr.c (highest_pow2_factor_for_type): Rename into
1711         highest_pow2_factor_for_target.  Use DECL_ALIGN instead of
1712         TYPE_ALIGN when the target is a COMPONENT_REF.
1713         (expand_assignment): Ajust call to highest_pow2_factor_for_type.
1714
1715 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
1716
1717         * config/rs6000/rs6000.c: Formatting fix.
1718         (legitimate_offset_address_p): Correct offset range check.
1719
1720         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
1721         -msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
1722         and MASK_STRING.
1723
1724 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
1725
1726         * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
1727         for little endian.
1728         ("ashrdi3_no_power"): Disable for little endian.
1729         (ashrdi3): Same.
1730
1731 2004-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1732
1733         * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
1734         builtins.
1735
1736 2004-03-08  Hans-Peter Nilsson  <hp@axis.com>
1737
1738         PR target/14471
1739         * configure.ac (Target-specific assembler checks) <cris-*-*>: New
1740         case, checking for -no-mul-bug-abort option.
1741         * configure, config.in: Regenerate.
1742         * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
1743         and -mno-mul-bug-workaround.
1744         * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
1745         ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
1746         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
1747         Ditto.  Make attribute "slottable" dependent on TARGET_MUL_BUG.
1748         * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
1749         sure mulu.d is not last on cache-line.
1750         * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
1751         into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
1752         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
1753         (TARGET_SWITCHES): New options -mmul-bug-workaround and
1754         -mno-mul-bug-workaround.
1755         (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
1756         (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
1757         * config/cris/cris.c (cris_operand_extend_operator): Clarify
1758         relation to MULT in head comment.
1759         (cris_op_str): Abort for MULT.
1760         (cris_print_operand) <case '!'>: New case.
1761
1762 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
1763
1764         PR debug/11983
1765         * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
1766         dw_val_class_vec.  Replace use throughout file.
1767         (dw_float_const): Delete.
1768         (dw_vec_const): New.
1769         (dw_val_struct_union): Rename val_float to val_vec.  Replace use
1770         throughout file.
1771         (add_AT_vec): Rename from add_AT_float.  Add elt_size param.
1772         (same_dw_val_p): Adjust vec comparison.  Use memcmp.
1773         (size_of_die): Adjust dw_val_class_vec sizing.
1774         (output_die): Output dw_val_class_vec.
1775         (insert_int, extract_int, insert_float): New functions.
1776         (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
1777         Handle CONST_VECTOR.
1778         (add_location_or_const_value_attribute): Handle CONST_VECTOR.
1779
1780 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
1781
1782         * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
1783         AltiVec abi cannot co-exist.
1784
1785         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
1786
1787 2004-03-07  Jan Hubicka  <jh@suse.cz>
1788
1789         * except.c (emit_to_new_bb_before):  Break fallthru edges.
1790
1791 2004-03-07  Stephane Carrez  <stcarrez@nerim.fr>
1792
1793         * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
1794         ("*lshrsi3"): Also accept an immediate for 68HC12.
1795         ("*ashrsi3_const"): Likewise.
1796         ("*ashrsi3"): Likewise.
1797         ("*ashlsi3_const"): Likewise.
1798         ("*ashlsi3"): Likewise.
1799         ("cmphi_1_hc12"): Compare two hard register by pushing them and
1800         comparing with a pop; don't use a split for that.
1801         ("cmphi split"): Disable compare split for 68HC12.
1802
1803         * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
1804         the status operands if they have side effects.
1805
1806 2004-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1807
1808         * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
1809         definition.
1810         * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
1811         config/h8300/h8300.h, config/ia64/ia64.h,
1812         config/mcore/mcore.h, config/mmix/mmix.h,
1813         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
1814         config/stormy16/stormy16.h, config/v850/v850.h,
1815         config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
1816         * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
1817         definition.
1818
1819 2004-03-07  Roger Sayle  <roger@eyesopen.com>
1820
1821         * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
1822         <XOR_EXPR>: Fold x ^ x as zero.
1823         <AND_EXPR>: Fold x & x as x.
1824
1825 2004-03-07  Roger Sayle  <roger@eyesopen.com>
1826
1827         * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
1828         "foo++ == const" into "++foo == const+incr".
1829
1830 2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
1831
1832         * config/mips/mips.c (mips_in_small_data_p): Return false if
1833         TARGET_ABICALLS.
1834
1835 2004-03-06  Stephane Carrez  <stcarrez@nerim.fr>
1836
1837         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
1838         the stack register.
1839         (expand_prologue): Don't make an interrupt or a trap handler a far
1840         symbol.
1841         (m68hc11_initial_elimination_offset): Likewise.
1842
1843 2004-03-06  Richard Henderson  <rth@redhat.com>
1844
1845         * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
1846
1847 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1848
1849         * config/ns32k/ns32k-protos.h: Add a prototype for
1850         ns32k_notice_update_cc.
1851         * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
1852         * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
1853         ns32k_notice_update_cc.
1854
1855 2004-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
1856
1857         * config/s390/s390.md ("load_multiple", "*load_multiple_di",
1858         "*load_multiple_si"): Allow only if reload_completed.
1859         ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
1860         Likewise.
1861
1862 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1863
1864         * config/vax/vax-protos.h: Add a prototype for
1865         vax_notice_update_cc.
1866         * config/vax/vax.c (vax_notice_update_cc): New.
1867         * config/vax/vax.h (NOTICE_UPDATE_CC): Call
1868         vax_notice_update_cc.
1869
1870 2004-03-06  David Edelsohn  <edelsohn@gnu.org>
1871
1872         * collect2.c (main): Only export initfunc and finifunc if
1873         LD_INIT_SWITCH not defined.
1874         (scan_prog_file): Only export constructors and destructors if
1875         LD_INIT_SWITCH not defined.  Only export symbols not found in
1876         shared objects.
1877
1878 2004-03-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1879
1880         * pa.md (icacheflush): Reorder operands to make match_scratch operand
1881         last.
1882         * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
1883         from calls to gen_icacheflush.
1884
1885 2004-03-06  Richard Henderson  <rth@redhat.com>
1886
1887         * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
1888         (TARGET_LONG_DOUBLE_128): New.
1889         (TARGET_SWITCHES): Add long-double-{128,64}.
1890         (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
1891         (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
1892         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
1893         (WIDEST_HARDWARE_FP_SIZE): New.
1894         (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
1895         * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
1896         if TARGET_VAX_FLOAT.
1897         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
1898         (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
1899
1900 2004-03-06  Richard Henderson  <rth@redhat.com>
1901
1902         * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
1903         botched rtx class conversion.
1904
1905 2004-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1906
1907         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
1908         BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
1909
1910         * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
1911         macros.
1912         * fold-const.c (fold_mathfn_compare, fold): Likewise.
1913
1914 2004-03-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1915
1916         PR target/14343
1917         * config/i386/i386.md (movv2di_internal): Conditionalize on
1918         TARGET_SSE, not TARGET_SSE2.
1919
1920 2004-03-05  Chris Demetriou  <cgd@broadcom.com>
1921
1922         * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
1923         duplicated line.
1924
1925 2004-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1926
1927         * builtins.c: Consistently use logN not log* in comments.
1928
1929 2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>
1930
1931         * rtl.h (mem_expr_equal_p): Function prototype added.
1932         * cfgcleanup.c (merge_memattrs): New function.
1933         (flow_find_cross_jump): Call merge_memattrs for matching insns.
1934         * emit-rtl.c (mem_expr_equal_p): New function.
1935
1936 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
1937
1938         * objc/objc-act.c (synth_module_prologue): Const-qualify
1939         objc_selector type if using the GNU runtime; fix generated
1940         signatures for objc_msg_lookup and objc_msg_lookup_super
1941         to match what GNU ObjC headers provide; reformat and clean up.
1942         (synth_self_and_ucmd_args): Use previously constructed (and
1943         hence possibly const-qualified) objc_selector type.
1944
1945 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1946
1947         * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
1948
1949 2004-03-05  Jason Merrill  <jason@redhat.com>
1950
1951         * tree.h (TYPE_HASH): Use TYPE_UID.
1952         (TREE_HASH): New macro with old definition of TYPE_HASH.
1953         * tree.c (build_type_attribute_variant): Use iterative_hash_object.
1954         (build_array_type, build_function_type): Likewise.
1955         (build_method_type_directly): Likewise.
1956         (build_offset_type, build_complex_type): Likewise.
1957         (type_hash_list, attribute_hash_list): Likewise. Now static.
1958         * except.c: s/TYPE_HASH/TREE_HASH/.
1959
1960 2004-03-05  Bob Wilson  <bob.wilson@acm.org>
1961
1962         * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
1963         (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32).  Adjust
1964         __va_ndx by 2 words when referencing an argument on the stack.
1965         (xtensa_va_arg): Handle 16-byte aligned args.  Adjust __va_ndx by 2
1966         words when an arg on the stack is first seen.
1967
1968 2004-03-05  Paul Brook  <paul@codesourcery.com>
1969
1970         * arm.h (ARM_FLAG_VFP): Remove.
1971         (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
1972         * netbsd-elf.h (ARM_FLAG_VFP): Remove.
1973
1974 2004-03-05  Paul Brook  <paul@codesourcery.com>
1975
1976         * function.c (assign_parms): Include pretend alignment offset.
1977
1978 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1979
1980         * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
1981         FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
1982
1983 2004-03-05  Ian Lance Taylor  <ian@wasabisystems.com>
1984
1985         * configure.ac: When passing --enable-languages to subdir
1986         configure when host != build, make sure we don't pass an empty
1987         value.
1988         * configure: Regenerate.
1989
1990 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1991
1992         PR 13577
1993         * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
1994         options.
1995
1996 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
1997
1998         * simplify-rtx.c (simplify_relational_operation): If
1999         flag_wrapv is set, do not move terms between the two
2000         side of a relational operator.
2001
2002 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
2003
2004         * rtlanal.c: Include target.h and output.h
2005         (rtx_cost, address_cost, default_address_cost): Move from...
2006         * cse.c (rtx_cost, address_cost, default_address_cost):
2007         ... this file.
2008         * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
2009         * Makefile.in: Adjust dependencies.
2010
2011 2004-03-05  Paolo Bonzini <bonzini@gnu.org>
2012
2013         * cse.c (cse_end_of_basic_block): Make static.
2014         * local-alloc.c (function_invariant_p): Move to
2015         reload1.c.
2016         * loop.c (libcall_other_reg, record_excess_regs):
2017         Make static.
2018         * reload1.c (function_invariant_p): Moved here
2019         from local-alloc.c, made static.
2020         * rtl.h (cse_end_of_basic_block, function_invariant_p,
2021         libcall_other_reg, record_excess_regs): Remove
2022         declarations.
2023
2024 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
2025
2026         * config/m32r/m32r.c (signed_comparison_operator): Add a
2027         missing parenthesis.
2028
2029 2004-03-04  Ian Lance Taylor  <ian@wasabisystems.com>
2030
2031         * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
2032         going to call mmap again.  Read the file into the right place.
2033         Give a fatal error if we have to relocate.
2034
2035 2004-03-04  Bob Wilson  <bob.wilson@acm.org>
2036
2037         * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
2038         (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
2039
2040 2004-03-05  Hans-Peter Nilsson  <hp@axis.com>
2041
2042         PR other/14354
2043         * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
2044         round the same.  When rounding, clear bits that would cause a
2045         second rounding in pack_d.
2046         (_fpmul_parts): Ditto.  Remove #if 0:d code.
2047
2048 2004-03-04  Ziemowit Laski  <zlaski@apple.com>
2049
2050         PR c++/14425, c++/14426
2051         * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
2052         vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
2053         Change C++ definitions to accept a 'const int' argument;
2054         the prototypes already do.
2055         * config/rs6000/rs6000.c (rs6000_common_init_builtins):
2056         Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
2057         v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
2058         v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
2059         v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
2060         v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
2061         end in ..._int; change them to accept an int instead of a char
2062         as the last parameter.
2063
2064 2004-03-04  Phil Edwards  <phil@codesourcery.com>
2065
2066         * genmultilib:  Change '=' to '-' when translating option names
2067         to directory names.
2068
2069 2004-03-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2070
2071         * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
2072         stack slot for temp used for result of BLKmode but in integral mode.
2073
2074 2004-03-04  Jan Hubicka  <jh@suse.cz>
2075
2076         * reload.c (find_reloads): Reorganize if seqeunce to switch.
2077
2078         * cfgrtl.c (rtl_redirect_edge_and_branch):  Set the source BB as dirty.
2079         (cfglayout_redirect_edge_and_branch):  Set the source BB as dirty.
2080
2081 2004-03-04  Steve Ellcey  <sje@cup.hp.com>
2082
2083         * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
2084         * testsuite/gcc.dg/20040303-1.c: New test.
2085
2086 2004-03-04  Steven Bosscher  <stevenb@suse.de>
2087
2088         * ppro.md: Rewrite as a DFA pipeline description.
2089         * i386.md: Remove all uses of the ppro_uops attribute.
2090         * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
2091         ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
2092         ix86_sched_reorder, ix86_variable_issue,
2093         struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
2094         TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
2095         (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
2096         (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
2097         * athlon.md (athlon_ssecmp_load): Fix comment
2098
2099 2004-03-04  Stuart Hastings  <stuart@apple.com>
2100
2101         * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
2102
2103 2004-03-04  Stuart Hastings  <stuart@apple.com>
2104
2105         * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
2106         686, tell Darwin assembler to allow prefetch insns, non-empty def
2107         of SUBTARGET_OPTION_TRANSLATE_TABLE.
2108
2109 2004-03-04  DJ Delorie  <dj@redhat.com>
2110
2111         PR optimization/14282
2112         * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
2113         between a call and the assignment of its return value.
2114
2115 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2116
2117         * config/h8300/h8300.c: Put a comment for every function.
2118
2119 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2120
2121         * config/h8300/h8300.md: Add comments about peephole2's.
2122
2123 2004-03-04  Steven Bosscher  <stevenb@suse.de>
2124
2125         * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
2126
2127 2004-03-04  Jan Hubicka  <jh@suse.cz>
2128
2129         * cfgcleanup.c (thread_jump): Update call of cselib_init.
2130         * cselib.c (cselib_record_memory): New static variable.
2131         (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
2132         Give up on memories when asked for.
2133         (cselib_init): Accept new argument.
2134         * cselib.h (cselib_init): Update prototype.
2135         * gcse.c (local_cprop_pass): Update call of cselib_init.
2136         * loop.c (load_mems): Update call of cselib_init.
2137         * postreload.c (reload_cse_regs_1): Update call of cselib_init.
2138         * sched-deps.c (sched_analyze): Update call of cselib_init.
2139
2140 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
2141             GP <gp@qnx.com>
2142
2143         * config/rs6000/rs6000.c (output_function_profiler): Append @plt
2144         when compiling PIC.
2145
2146 2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
2147
2148         PR/14362
2149         * var-tracking.c (track_expr_p): Do not track variables which
2150         should be ignored for debugging purposes.
2151
2152 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2153
2154         * real.c (encode_ibm_extended): Don't bother rounding low double.
2155         * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
2156         when fmt->pnan < fmt->p.
2157
2158 2004-03-04  Eric Christopher  <echristo@redhat.com>
2159
2160         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
2161         only range of valid arg registers and fixed_regs.
2162
2163 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2164
2165         PR target/14406
2166         * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
2167         (abstf2, abstf2_internal): New define_expand.
2168
2169 2004-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2170
2171         PR optimization/14235
2172         * expr.c (convert_move): Copy the source to a new pseudo
2173         when converting from a sub-word source to a larger-than-word
2174         register which conflicts with the source.
2175
2176 2004-03-03  Zack Weinberg  <zack@codesourcery.com>
2177
2178         PR 13728
2179         * c-decl.c (diagnose_mismatched_decls): Issue an error for two
2180         parameters with the same name, unless one is a forward decl.
2181         Do not issue a redundant-redeclaration warning for forward
2182         decls of parameters.
2183
2184 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
2185
2186         * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
2187         configuration.
2188
2189 2004-03-03  Ian Lance Taylor  <ian@wasabisystems.com>
2190
2191         * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
2192
2193 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2194
2195         * target-def.h (TARGET_OPTF): Delete.
2196         * c-opts.c (TARGET_OPTF): Define.
2197
2198 2004-03-04  Jan Hubicka  <jh@suse.cz>
2199
2200         * cselib.c (cselib_finish): Fix another miss-application of my previous
2201         patch.
2202
2203 2004-03-03  Mike Stump  <mrs@apple.com>
2204
2205         Add framework support for darwin.
2206
2207         * c-incpath.c: Include target.h and machmode.h.
2208         (add_path): Use a consistent style for cpp_dir.  Initialize
2209         p->construct to 0.
2210         (add_cpp_dir_path): New.
2211         (register_include_chains): Add use of extra_includes callback.
2212         (hook_void_int): Add.
2213         (target_c_incpath): Add.
2214         * c-incpath.h (add_cpp_dir_path): New.
2215         (target_c_incpath_s): Add.
2216         (target_c_incpath): Add.
2217         (C_INCPATH_INIT): Add.
2218         * c-opts.c (c_common_missing_argument,
2219         c_common_handle_option): Add -F argument processing.
2220         * c.opt: Add -F argument processing.
2221         * gcc.c (trad_capable_cpp): Add -F argument processing.
2222         * cppfiles.c (find_file_in_dir): Update to use construct
2223         callback.
2224         (search_path_exhausted, cpp_get_path, cpp_get_buffer,
2225         cpp_get_prev): New.
2226         (_cpp_find_file): Use search_path_exhausted.
2227         (make_cpp_dir): Initialize construct to 0.
2228         * cpplib.h (missing_header_cb
2229         cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
2230         (cpp_callbacks): Add missing_header
2231         (cpp_dir): Add construct.
2232         * target-def.h: (TARGET_OPTF): New.
2233         * hooks.c (hook_void_int, hook_void_charptr): Add.
2234         * hooks.h (hook_void_int, hook_void_charptr): Add.
2235         * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
2236         $(MACHMODE_H) dependencies.
2237         * doc/invoke.texi (Darwin Options): Document -F.
2238         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
2239         (TARGET_OPTF): Add.
2240         * fix-header.c (target_c_incpath): Add.
2241
2242         * config/darwin-c.c: Add c-incpath.h include.
2243         (using_frameworks, find_subframework_file,
2244         find_subframework_header, add_system_framework_path,
2245         frameworks_in_use, num_frameworks, max_frameworks,
2246         add_framework, find_framework, struct framework_header,
2247         framework_header_dirs, framework_construct_pathname,
2248         find_subframework_file, add_system_framework_path,
2249         add_framework_path, framework_defaults,
2250         darwin_register_frameworks, find_subframework_header): Add.
2251         * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
2252         (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
2253         (CPP_SPEC): Add __APPLE_CC__ support.
2254         * t-darwin (darwin-c.o): Add c-incpath.h dependency.
2255
2256 2004-03-04  Jan Hubicka  <jh@suse.cz>
2257
2258         * cselib.c (cselib_finish): Fix miss-application of my previous
2259         patch.
2260
2261 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2262
2263         * hooks.c (hook_tree_tree_identity): New.
2264         * hooks.h: Add a prototype for hook_tree_tree_identity.
2265         * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
2266         instead of MD_ASM_CLOBBERS.
2267         * system.h (MD_ASM_CLOBBERS): Poison.
2268         * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
2269         (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
2270         * target.h (gcc_target): Add md_asm_clobbers.
2271         * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
2272         (ix86_md_asm_clobbers): New.
2273         * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
2274         * doc/tm.texi (MD_ASM_CLOBBERS): Change to
2275         TARGET_MD_ASM_CLOBBERS.
2276
2277 2004-03-03  Stuart Hastings  <stuart@apple.com>
2278
2279         * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
2280
2281 2004-03-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
2282
2283         * config/sparc/sparc.c (noov_compare64_op): Fix typo.
2284
2285         * config/sparc/sparc.h (ASM_FLOAT): Delete.
2286         (ASM_DOUBLE): Likewise.
2287         (ASM_LONGDOUBLE): Likewise.
2288         * config/sparc/pbd.h (ASM_INT_OP): Delete.
2289
2290 2003-03-03  Richard Henderson  <rth@redhat.com>
2291
2292         PR opt/13862
2293         * cselib.c (cselib_record_sets): Don't record multiple sets in
2294         asm insns.
2295
2296 2004-03-03  Mostafa Hagog  <mustafa@il.ibm.com>
2297
2298         * common.opt: Add description of the new -fgcse-after-reload flag.
2299
2300         * flags.h (flag_gcse_after_reload): Declaration of global variable.
2301
2302         * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
2303         reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
2304         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2305         get_bb_avail_insn, hash_scan_set_after_reload,
2306         compute_hash_table_after_reload, eliminate_partially_redundant_loads,
2307         gcse_after_reload, get_bb_avail_insn): New functions to implement
2308         gcse-after-reload.
2309         (gcse_after_reload_main): New function, the main entry point to
2310         gcse-after-reload.
2311
2312         * rtl.h (gcse_after_reload_main): Declaration of the new function.
2313
2314         * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
2315
2316         * toplev.c (flag_gcse_after_reload): Initialization.
2317
2318         * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
2319
2320         * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2321         PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
2322         the gcse after reload optimization.
2323
2324         * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2325         GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
2326         parameters.
2327
2328         * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
2329
2330 2004-03-03  Nicolas Pitre <nico@cam.org>
2331
2332         * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
2333         small negative values.
2334
2335 2004-03-03  Jan Hubicka  <jh@suse.cz>
2336
2337         * cselib.c (hash_table):  Remove GTY marker.
2338         (reg_values): Turn into array.
2339         (used_regs): Likewise.
2340         (n_used_regs): New static variable.
2341         (reg_values_old): Kill.
2342         (clear_table): Update uses of arrays.
2343         (cselib_lookup): Likewise.
2344         (cselib_record_set): Likewise.
2345         (cselib_init): Likewise.
2346         (cselib_finish): Likewise.
2347         (cselib_udpate_varray_sizes): Kill.
2348         * cselib.h (cselib_update_varray_sizes): Kill.
2349
2350 2004-03-03  Paul Brook  <paul@codesourcery.com>
2351
2352         * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
2353
2354 2004-03-03  Jan Hubicka  <jh@suse.cz>
2355
2356         * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
2357         Rename from ...; make statistics transparent.
2358         (ggc_alloc_cleared, ggc_realloc_stat): ... these.
2359         (loc_descriptor): New structure.
2360         (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
2361         add_statistics):
2362         New static function.
2363         (ggc_record_overhead, dump_statistics): New global function.
2364         * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2365         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
2366         from ...; accept locations
2367         (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2368         ggc_realloc, ggc_alloc_typed):  ... this one.
2369         from ...; accept locations
2370         * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
2371         ggc_alloc_stat): Rename from ... ; pass locations
2372         * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
2373         ... this one.
2374         (ggc_alloc_stat): Record overehead.
2375         * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2376         ggc_realloc, ggc_alloc_typed):  Turn to macros
2377         (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2378         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
2379         (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
2380         * langhooks.h (lhd_make_node): Declare.
2381         (LANG_HOOKS_MAKE_TYPE): Default to new function,
2382         * langhooks.c (lhd_make_node): New.
2383         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
2384         locations.
2385         (rtx_alloc, swallow_copy_rtx): ... this one.
2386         * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
2387         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
2388         * toplpev.c (finalize): Dump stats.
2389         * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
2390         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
2391         Rename from ... ; pass locators.
2392         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2393         build?,  build_decl): Declare.
2394         * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
2395         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
2396         Declare.
2397         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2398         build?,  build_decl): New macros.
2399         * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
2400         * statistics.h: New file.
2401
2402 2004-03-03  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2403             Richard Sandiford  <rsandifo@redhat.com>
2404
2405         * config/mips/mips.h (MASK_FIX_SB1): Bump.
2406         (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
2407         (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
2408         * config/mips/mips.c (mips_output_division): Fill the branch delay
2409         slot with a nop if TARGET_FIX_R4000.  Extend R4000 workarounds to
2410         TARGET_FIX_R4400.
2411         (mips_output_division): Adjust accordingly.
2412         (override_options): Make -march=r4400 imply -mfix-r4400 by default.
2413         * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
2414
2415 2004-03-03  Paolo Bonzini  <bonzini@gnu.org>
2416
2417         * alias.c (rtx_equal_for_memref_p): Use predicates
2418         to test rtx classes and new rtx class codes, possibly
2419         splitting conditionals that tested against '<' and 'o'.
2420         * caller-save.c (save_call_clobbered_regs): Likewise.
2421         * combine.c (contains_muldiv, find_split_point, subst,
2422         combine_simplify_rtx, simplify_if_then_else,
2423         simplify_set, simplify_logical, expand_compound_operation,
2424         make_compound_operation, if_then_else_cond, known_cond,
2425         apply_distributive_law, cached_nonzero_bits,
2426         cached_num_sign_bit_copies, simplify_shift_const,
2427         gen_binary, simplify_comparison, update_table_tick,
2428         record_value_for_reg, get_lsat_value_validate): Likewise.
2429         * cse.c (mention_regs, find_best_addr, find_comparison_args,
2430         fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
2431         Likewise.
2432         * emit-rtl.c (copy_insn_1): Likewise.
2433         * expr.c (force_operand): Likewise.
2434         * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
2435         * flow.c (notice_stack_pointer_modification_1,
2436         invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
2437         and_reg_cond, elim_reg_cond): Likewise.
2438         * function.c (update_epilogue_consts): Likewise.
2439         * genattrtab.c (attr_rtx_1): Likewise.
2440         * genopinit.c (gen_insn): Likewise.
2441         * integrate.c (subst_constants): Likewise.
2442         * jump.c (reversed_comparison_code_parts,
2443         reversed_comparison_code, delete_related_insns,
2444         rtx_renumbered_equal_p): Likewise.
2445         * local-alloc.c (block_alloc): Likewise.
2446         * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
2447         canonicalize_condition): Likewise.
2448         * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
2449         Likewise.
2450         * optabs.c (add_equal_node, expand_binop): Likewise.
2451         * predict.c (estimate_probability): Likewise.
2452         * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
2453         * recog.c (validate_replace_rtx_1, comparison_operator,
2454         offsettable_address_p, constrain_operands): Likewise.
2455         * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
2456         Likewise.
2457         * regclass.c (scan_one_insn): Likewise.
2458         * regmove.c (stable_and_no_regs_but_for_p): Likewise.
2459         * regrename.c (kill_autoinc_value): Likewise.
2460         * reload.c (find_reusable_reload, find_reloads,
2461         reg_overlap_mentioned_for_reload_p): Likewise.
2462         * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
2463         * rtl.c (copy_rtx): Likewise.
2464         * rtl.h (CONSTANT_P, INSN_P): Likewise.
2465         * rtlanal.c (commutative_operand_precedence): Likewise.
2466         * sched-deps.c (conditions_mutex_p): Likewise.
2467         * sched-rgn.c (is_cfg_nonregular): Likewise.
2468         * simplify-rtx.c (simplify_gen_binary,
2469         simplify_gen_relational, simplify_replace_rtx,
2470         simplify_unary_operation, simplify_binary_operation,
2471         simplify_ternary_operation, simplify_rtx): Likewise.
2472         * unroll.c (reg_dead_after_loop): Likewise.
2473         * config/alpha/alpha.c (alpha_swapped_comparison_operator,
2474         print_operand): Likewise.
2475         * config/arc/arc.c (proper_comparison_operator): Likewise.
2476         * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
2477         Likewise.
2478         * config/avr/avr.c (_reg_unused_after): Likewise.
2479         * config/frv/frv.c (frv_ifcvt_modify_tests,
2480         frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
2481         * config/i386/i386.c (ix86_comparison_operator,
2482         ix86_carry_flag_operator, fcmov_comparison_operator,
2483         arith_or_logical_operator, print_operand,
2484         ix86_expand_binary_operator, ix86_binary_operator_ok):
2485         Likewise.
2486         * config/i386/i386.md: Likewise.
2487         * config/ia64/ia64.c (not_postinc_memory_operand,
2488         ia64_print_operand, update_set_flags, errata_emit_nops):
2489         Likewise.
2490         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
2491         CONSTRAINT_OK_FOR_S): Likewise.
2492         * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
2493         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
2494         ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
2495         ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
2496         Likewise.
2497         * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
2498         eqne_comparison_operator, signed_comparison_operator):
2499         Likewise.
2500         * config/mips/mips.c (cmp_op, symbolic_expression_p):
2501         Likewise.
2502         * config/mmix/mmix (mmix_foldable_comparison_operator,
2503         mmix_comparison_operator): Likewise.
2504         * config/pa/pa.c (hppa_legitimize_address): Likewise.
2505         * config/rs6000/rs6000.c (stmw_operation,
2506         branch_comparison_operator, trap_comparison_operator,
2507         ccr_bit): Likewise.
2508         * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
2509         * config/s390/s390.c (s390_alc_comparison,
2510         s390_slb_comparison):L Likewise.
2511         * config/sh/sh.c (gen_block_redirect, reg_unused_after):
2512         Likewise.
2513         * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
2514         noov_compare_op, noov_compare64_op, v9_regcmp_op,
2515         emit_hard_tfmode_operation, reg_unused_after)
2516         * doc/md.texi, doc/rtl.texi: Likewise.
2517
2518         * ra-debug.c: Add 2004 to list of copyright years.
2519         * unroll.c: Likewise.
2520
2521         * combine.c (simplify_logical): Remove dummy test,
2522         (apply_distributive_law): Fix typo in comment.
2523         GET_CODE (x) == AND so x is a commutative binary op.
2524         * jump.c (delete_related_insns): simplify loop
2525         condition, move testing of RTX codes inside the loop.
2526         (rtx_renumbered_equal_p): do not use RTX_CODE.
2527         * rtl.c (rtx_class): Declare as enum rtx_class.
2528         * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
2529         Move to RTX_COMM_COMPARE class.
2530         (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
2531         Move to RTX_CONST_OBJ class.
2532         * rtl.h (enum rtx_class): New declaration,
2533         (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
2534         RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
2535         RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
2536         RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
2537         RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
2538         ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
2539         SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
2540         OBJECT_P): New macros.
2541         * config/sparc/sparc.c (noov_compare_op): Remove register
2542         from parameter.
2543
2544 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2545
2546         * target.h: Remove texi jargons in comments.
2547
2548 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2549
2550         * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
2551         threshold to 0x4f.
2552
2553         Revert:
2554         2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2555         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
2556         as well.
2557         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
2558         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
2559
2560 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2561
2562         * doc/md.texi (cbranchmode4): New.
2563
2564 2004-03-02  Eric Christopher  <echristo@redhat.com>
2565
2566         * config/mips/mips16.S: Change fixsfsi and fixdfsi to
2567         fix_trunc.
2568         * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
2569         * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
2570         * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
2571         * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
2572
2573 2004-03-02  Richard Henderson  <rth@redhat.com>
2574
2575         PR middle-end/11767
2576         * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
2577         * optabs.c (prepare_cmp_insn): Force trapping memories to registers
2578         before the compare, if flag_non_call_exceptions.
2579
2580 2004-03-02  Richard Henderson  <rth@redhat.com>
2581
2582         PR middle-end/14327
2583         * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
2584         emitting the label, not after.
2585
2586 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2587
2588         * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
2589         (m68hc11_mov_addr_mode): Likewise.
2590         (m68hc11_override_options): Initialize them based on target.
2591         (register_indirect_p): Allow a MEM for indirect addressing modes and
2592         use flags to control what is allowed.
2593         (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
2594         supported addressing modes.
2595         (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
2596         (go_if_legitimate_address_internal): Likewise.
2597         (m68hc11_indirect_p): Likewise and check the mode.
2598         (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
2599
2600 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2601
2602         * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
2603         (expand_builtin_setjmp_setup): Use
2604         targetm.builtin_setjmp_frame_value instead of
2605         BUILTIN_SETJMP_FRAME_VALUE.
2606         * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
2607         * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
2608         (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
2609         * target.h (gcc_target): Add builtin_setjmp_frame_value.
2610         * targhooks.c (default_builtin_setjmp_frame_value): New.
2611         * targhooks.h: Add a prototype for
2612         default_builtin_setjmp_frame_value.
2613         * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
2614         TARGET_BUILTIN_SETJMP_FRAME_VALUE.
2615
2616 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2617
2618         * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
2619         sequences of moves.
2620         (add peepholes): New peepholes to optimize sequences adding small
2621         constants.
2622         (bset peepholes): New peepholes to transform an OR in a bset form
2623         (bclr peepholes): Likewise for bclr form.
2624         (cmp peepholes): New peepholes to avoid register copies when comparing.
2625
2626 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2627
2628         * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
2629         to separate push from moves.
2630         ("*pushdf_internal"): Likewise.
2631         ("*pushsf_internal"): Likewise.
2632         ("*pushsi_internal"): Likewise.
2633         ("movdi_internal"): Use define_insn_and_split; non push operand.
2634         ("movdf_internal"): Likewise.
2635         ("movsf_internal"): Likewise.
2636         ("movsi_internal"): Likewise.
2637         ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
2638         ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
2639         ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
2640
2641 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2642
2643         * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
2644         ("cmphi_z_used", "cmpqi_z_used"): Likewise.
2645         ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
2646         ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
2647         ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
2648         ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
2649         ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
2650         ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
2651         ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
2652         ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
2653         ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
2654
2655 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2656
2657         * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
2658         (SOFT_XY_REGNUM): Define.
2659         (cmp split): Use the above instead of hard coded numbers.
2660         (8-bit op split): No need to check the mode; allow Q_REG.
2661         (ashift split): Adjust the first operand if it uses the SP and we
2662         are pushing the shifted value.
2663         (plus shift split): Fix when a source is in register D+X.
2664         ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
2665
2666 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2667
2668         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
2669         comparing with Z register.
2670
2671 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2672
2673         * cfgloop.h (struct loop_desc): Removed.
2674         (struct loop): Fields simple, desc and has_desc removed.
2675         (simple_loop_p, count_loop_iterations): Declaration removed.
2676         * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
2677         (unmark_altered, blocks_invariant_registers, unmark_altered_insn
2678         blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
2679         invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
2680         simple_loop_exit_p, variable_initial_value, variable_initial_values,
2681         simple_condition_p, simple_increment, count_strange_loop_iterations,
2682         inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
2683         Removed.
2684         * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
2685
2686 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2687
2688         * genattrtab.c: Don't handle MATCH_INSN.
2689         * genrecog.c: Likewise.
2690         * gensupport.c: Likewise.
2691         * rtl.def (match_insn): Remove.
2692         * doc/md.texi (match_insn, match_insn2): Remove.
2693
2694 2004-03-02  Mark Mitchell  <mark@codesourcery.com>
2695
2696         * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
2697         macro results in memory allocation.
2698
2699 2004-03-02  David O'Brien  <obrien@FreeBSD.org>
2700
2701         * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
2702         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
2703         %(fbsd_dynamic_linker),
2704         (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
2705         config/i386/freebsd.h
2706         * config/arm/freebsd.h: Ditto.
2707         * config/i386/freebsd.h: Ditto.
2708         * config/i386/freebsd64.h: Ditto.
2709         * config/ia64/freebsd.h: Ditto.
2710         * config/rs6000/sysv4.h: Ditto.
2711         * config/sparc/freebsd.h: Ditto.
2712
2713 2004-03-02  Loren James Rittle  <ljrittle@acm.org>
2714
2715         * gcc/doc/install.texi (*-*-freebsd*): Update target information.
2716
2717 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2718
2719         * rtl.def (define_combine): Remove.
2720
2721 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2722
2723         * config/h8300/h8300.md: Tweak formatting.
2724
2725 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2726
2727         * config/h8300/h8300.md (*cmphi_h8300): Rename to
2728         *cmphi_h8300_znvc.
2729         (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
2730
2731 2004-03-01  Mark Mitchell  <mark@codesourcery.com>
2732
2733         PR bootstrap/14356
2734         * gcc.c (process_command): Remove const-qualification from argv.
2735         (main): Likewise.
2736
2737 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2738
2739         * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
2740         pushqi1_h8300hs_advanced.  Adjust its caller.
2741         (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
2742         Adjust its caller.
2743
2744 2004-03-02  Nicolas Roche  <roche@act-europe.fr>
2745
2746         * Makefile.in (install-libgcc, install-multilib): Pass
2747         mkinstalldirs var to libgcc.mk.
2748
2749 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2750
2751         * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
2752         * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
2753
2754 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2755
2756         * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
2757         * config/h8300/h8300.md: Split several peephole2's, each into
2758         two.
2759
2760 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2761
2762         * dominance.c (recount_dominator): Handle postdominators.
2763
2764 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
2765
2766         * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
2767         (NUM_SYMBOL_TYPES): Likewise.
2768         (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
2769         (mips_unspec_address): Declare.
2770         (mips_gotoff_page, mips_gotoff_global): Delete.
2771         * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
2772         * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
2773         (mips_symbolic_constant_p, mips_symbolic_address_p)
2774         (mips_symbol_insns): Handle new symbol types.
2775         (general_symbolic_operand): New predicate.
2776         (mips_unspec_address): Make extern.
2777         (mips_gotoff_page, mips_gotoff_global): Delete.
2778         (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
2779         Handle new symbol types.
2780         * config/mips/mips.md (*lea_high64, *lea64): New patterns.
2781         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
2782         mips_unspec_address directly.
2783         * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
2784         the documentation of -mexplicit-relocs.
2785
2786 2004-03-01  Jeff Law  <law@redhat.com>
2787
2788         * fold-const.c (fold): An equality comparison of a non-weak object
2789         against zero has a known result.  Similarly an equality comparison
2790         of the address of two non-weak, unaliased symbols has a known result.
2791
2792         * ggc-page.c (struct page_entry): New field PREV.
2793         (ggc_alloc): Update PREV field appropriately.
2794         (sweep_pages): Likewise.
2795         (ggc_free): Likewise.  Use PREV field rather than loop to
2796         improve ggc_free performance.
2797
2798 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
2799
2800         * config/mips/mips.c (mips_output_division): Use the division
2801         instruction to fill the delay slot of a zero check.
2802         (mips_idiv_insns): Adjust accordingly.
2803
2804 2004-03-01  Nathanael Nerode  <neroden@gcc.gnu.org>
2805
2806         * config.gcc: Create a default tmake_file for linux, and use
2807         it in all but two linux clauses.  Comment those two.
2808
2809 2004-03-01  Paolo Bonzini  <bonzini@gnu.org>
2810
2811         * combine.c (try_combine):  Do not refer to is_replaced.
2812         (gen_lowpart_for_combine):  Perverse subregs now have a
2813         more politically correct name.
2814         * cse.c (cse_insn): Likewise.
2815         * jump.c: Fix bogus reference to delete_insn.
2816
2817 2004-02-29  Mark Mitchell  <mark@codesourcery.com>
2818
2819         PR debug/14328
2820         * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
2821         constants as signed values.
2822
2823         PR middle-end/13448
2824         * c-tree.h (readonly_warning): Rename to ...
2825         (readonly_error): ... this.
2826         * c-typeck.c (build_unary_op): Adjust accordingly.
2827         (readonly_warning): Rename to ...
2828         (readonly_error): ... this and issue errors, not warnings.
2829         (build_modify_expr): Call readonly_error, not readonly_warning.
2830         (c_expand_asm_operands): Likewise.
2831         * tree-inline.c (optimize_inline_calls): Do not inline functions
2832         after errors have occurred.
2833
2834 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
2835
2836         * configure.ac: Rearrange some threading code for clarity;
2837         add section comment.
2838         * configure: Regenerate.
2839
2840 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2841
2842         * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
2843         typos.
2844         * doc/cppopts.texi: Fix a typo.
2845
2846 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2847
2848         * config/i386/i386.md: Fix formatting.
2849
2850 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
2851
2852         * configure.ac: Add some comments delineating sections of code.
2853
2854         * doc/install.texi: Note that libada uses autoconf 2.57 also.
2855
2856         * doc/install.texi: Fix idiot typo in previous commit.
2857
2858         * doc/install.texi: Update for conversion of intl to autoconf 2.57.
2859
2860 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2861
2862         * config/h8300/h8300.md: Add comments about peephole2's.
2863
2864 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2865
2866         * config/h8300/h8300.md: Tweak operand numbers of some
2867         peephole2's.
2868
2869 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2870
2871         * config/h8300/h8300.md: Tweak comments about peephole2's.
2872
2873 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
2874
2875         PR middle-end/14203
2876         * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
2877         instead of testing whether DECL_RTL is not NULL.
2878
2879 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2880
2881         * config/sh/sh.c: Fix formatting.
2882
2883 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2884
2885         * config/sh/sh.c: Convert to ISO-C.
2886
2887 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
2888
2889         * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
2890         my previous patch.
2891
2892         * config/darwin.h (machopic_finish): Output stub even if the
2893         symbol is already defined.
2894
2895 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2896
2897         * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
2898
2899 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2900
2901         * genattr.c (main): Don't define
2902         TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
2903         * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
2904         (DFA_PIPELINE_INTERFACE): Likewise.
2905         * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
2906         (DFA_PIPELINE_INTERFACE): Likewise.
2907
2908 2004-02-28  Richard Sandiford  <rsandifo@redhat.com>
2909
2910         * config/mips/mips.md (tstsi, tstdi): Delete.
2911
2912 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2913
2914         * config/mips/mips.c (override_options): Remove an obsolete
2915         duplicate definition of the "e" constraint.
2916         * config/mips/mips.h: Update a comment accordingly.
2917
2918 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2919
2920         * config/mips/mips.md: Complete the unfinished R4000
2921         multiply/shift errata workaround.  Improve documentation.
2922         (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
2923         has a hilo hazard.
2924         (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
2925         (muldi3, muldi3_internal): Likewise.
2926         (muldi3_internal2): Remove, replacing with...
2927         (muldi3_mult3, muldi3_r4000): ...these new patterns.
2928         (mulsidi3): Take the errata into account.
2929         (mulsidi3_32bit): Remove, replacing with...
2930         (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
2931         (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
2932         (umulsidi3): Take the errata into account.
2933         (umulsidi3_32bit): Remove, replacing with..
2934         (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
2935         (umulsi3_highpart, umulsi3_highpart_internal): Disable if
2936         TARGET_FIX_R4000.
2937         (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
2938         (smuldi3_highpart, umuldi3_highpart): Likewise.
2939         * doc/invoke.texi: Document the errata workaround.
2940
2941 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2942
2943         * config/mips/mips-protos.h (mips_idiv_insns): Declare.
2944         * config/mips/mips.h (MASK_FIX_SB1): Bump.
2945         (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
2946         (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
2947         * config/mips/mips.c (mips_idiv_insns): New function.
2948         (override_options): Make -march=r4000 imply -mfix-r4000 by default.
2949         (mips_output_division): Add a workaround for the R4000 divide/shift
2950         errata.
2951         * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
2952         the length of an "idiv" instruction.
2953         * doc/invoke.texi: Document the new switches.
2954
2955 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2956
2957         * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
2958         TARGET_SCHED_IS_COSTLY_DEPENDENCE.
2959
2960 2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2961
2962         PR optimization/14229
2963         * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
2964
2965 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
2966
2967         * fold-const.c (fold): Strip NOPs that change the signedness
2968         for RSHIFT too.  Expand comment.
2969
2970 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
2971
2972         PR optimization/7871
2973         * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
2974         from or to call insns.
2975
2976 2004-02-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2977
2978         PR optimization/7871
2979         * flow.c (propagate_one_insn): Interpret calls as setting global
2980         registers, not merely clobbering them.
2981
2982 2004-02-27  Dale Johannesen  <dalej@apple.com>
2983
2984         * config/darwin.c (machopic_output_possible_stub_label):  Remove.
2985         config/darwin-protos.h:  Ditto.
2986         config/darwin.h:  Remove call to it.
2987         * combine.c (distribute_notes): Do not place a REG_DEAD note
2988         when value is both set and used.
2989
2990 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2991
2992         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
2993         as well.
2994         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
2995         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
2996
2997 2004-02-27  Andrew Pinski  <apinski@apple.com>
2998
2999         * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
3000         Speedup common case of the type values being in the same order.
3001
3002 2004-02-27  Steve Ellcey  <sje@cup.hp.com>
3003
3004         * config/ia64/ia64.h (no-inline-float-divide): New option.
3005         * config/ia64/ia64.h (no-inline-int-divide): New option.
3006         * config/ia64/ia64.h (no-inline-sqrt): New option.
3007         (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
3008         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
3009         * config/ia64/ia64.c (ia64_override_options): Modify error
3010         checking for inlined division/sqrt.
3011
3012 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3013
3014         * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
3015         ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
3016         value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
3017         config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
3018         copyright.
3019
3020 2004-02-27  Paul Brook  <paul@codesourcery.com>
3021
3022         * function.c (assign_parms): Don't count pretend args for alignment.
3023
3024 2004-02-27  Richard Henderson  <rth@redhat.com>
3025
3026         * passes.c: New file.
3027         * Makefile.in (OBJS-common): Add it.
3028         * diagnostic.c (rtl_dump_and_exit): Move decl ...
3029         * flags.h (rtl_dump_and_exit): ... here.
3030         * output.h (size_directive_output, last_assemble_variable_decl):
3031         Move from toplev.c.
3032         * rtl.h (reg_alloc): Move from toplev.c.
3033         * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
3034         struct dump_file_info, enum dump_file_index, dump_file_tbl,
3035         open_dump_file, close_dump_file, rest_of_decl_compilation,
3036         rest_of_type_compilation, rest_of_handle_final,
3037         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
3038         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
3039         rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
3040         rest_of_handle_regrename, rest_of_handle_reorder_blocks,
3041         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
3042         rest_of_handle_tracer, rest_of_handle_if_conversion,
3043         rest_of_handle_if_after_combine, rest_of_handle_web,
3044         rest_of_handle_branch_prob,
3045         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
3046         rest_of_handle_addressof, rest_of_handle_sibling_calls,
3047         rest_of_handle_jump_bypass, rest_of_handle_inlining,
3048         rest_of_handle_null_pointer, rest_of_handle_combine,
3049         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3050         rest_of_handle_gcse, rest_of_handle_loop_optimize,
3051         rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
3052         (decode_d_option): Use enable_rtl_dump_file.
3053         (compile_file, finalize, do_compile): Move profile+combine+graph
3054         cleanup to finish_optimization_passes.
3055         * toplev.h (init_optimization_passes, finish_optimization_passes,
3056         enable_rtl_dump_file): Declare.
3057
3058 2004-02-27  Eric Botcazou  <ebotcazou@act-europe.fr>
3059             Roger Sayle  <roger@eyesopen.com>
3060
3061         * fold-const.c (fold): Revert 2004-02-25 change.  Use the original
3062         operands to build a tree with swapped operands.
3063         * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
3064         'unsignedp' predicate to specify the signedness.
3065
3066 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
3067
3068         * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
3069         expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
3070         params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
3071         comment typos and formatting.  Follow spelling conventions.
3072
3073 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
3074
3075         * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
3076         fix_truncsfsi2.
3077
3078         * config/rs6000/spe.md: Delete spe_efsctuiz.
3079         Add spe_fixuns_truncsfsi2.
3080         Add spe_fix_truncsfsi2.
3081
3082 2004-02-26  Eric Christopher  <echristo@redhat.com>
3083
3084         * c-lex.c (c_lex_string_translate): New variable.
3085         (lex_string): Use to determine string translation.
3086         * c-pragma.h: Prototype.
3087         * c-parse.in (start_string_translation): New. Set above.
3088         (stop_string_translation): Ditto.
3089         (attribute, attribute_list, asm_def, asm_stmt,
3090         asm_operand): Use above functions.
3091         * cp/parser.c (cp_parser_declaration): Translate strings
3092         unless token is RID_EXTERN. Set c_lex_string_translate
3093         for recursive use.
3094         (cp_parser_asm_definition): Only translate argument strings
3095         to asms.
3096         (cp_parser_asm_operand_list): Ditto.
3097         (cp_parser_attribute_list): Do not translate attribute strings.
3098
3099 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3100
3101         * stmt.c (expand_start_case_dummy): Remove.
3102         * tree.h: Remove the corresponding prototype.
3103
3104 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3105
3106         * builtins.c (apply_args_register_offset): Remove.
3107         * tree.h: Remove the corresponding prototype.
3108
3109 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3110
3111         * stor-layout.c (is_pending_size): Remove.
3112         * tree.h: Remove the corresponding prototype.
3113
3114 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3115
3116         * recog.c (validate_replace_src): Remove.
3117         * recog.h: Remove the corresponding prototype.
3118
3119 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3120
3121         * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
3122         MAYBE_REG_PARM_STACK_SPACE.
3123         * function.c: Likewise.
3124         * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
3125         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3126         * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
3127         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3128
3129 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3130
3131         * c-decl.c (c_expand_deferred_function): Remove.
3132         * c-tree.h: Remove the corresponding prototype.
3133
3134 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3135
3136         * postreload.c (reload_cse_move2add): Generate just a PLUS
3137         instead of an entire SET.
3138
3139 2004-02-26  Jan Hubicka  <jh@suse.cz>
3140
3141         * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
3142         /pentium4m.
3143         * i386.c (override_options): Add support for new CPUs.
3144         * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
3145         (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
3146         constants.
3147         * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
3148
3149 2004-02-26  Bob Wilson  <bob.wilson@acm.org>
3150
3151         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
3152
3153 2004-02-26  Eric Botcazou  <ebotcazou@act-europe.fr>
3154
3155         * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
3156         (sparc_emit_fixunsdi): New prototype.
3157         * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
3158         (sparc_emit_fixunsdi): New function.
3159         * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
3160         operand 1.  Pass SFmode to sparc_emit_floatunsdi.
3161         (floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
3162         to sparc_emit_floatunsdi.
3163         (fixuns_truncsfdi2): New expander.
3164         (fixuns_truncdfdi2): Likewise.
3165
3166 2004-02-26  Alan Modra  <amodra@bigpond.net.au>
3167
3168         * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
3169         unless HAVE_cc0.
3170
3171 2004-02-25  Richard Henderson  <rth@redhat.com>
3172
3173         * explow.c (force_reg): Call mark_reg_pointer as appropriate.
3174         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
3175         use (op0-op1) == 0 if op0 is a pointer.
3176         * config/alpha/alpha.md (cmpdi): Use some_operand.
3177         (three comparison combine splits): Remove.
3178
3179 2004-02-25  Richard Henderson  <rth@redhat.com>
3180
3181         PR c/12794
3182         * c-common.c (handle_alias_attribute): Reject the attribute if
3183         current_function_decl is set.
3184
3185 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
3186
3187         * config.gcc: Add comment describing extra_gcc_objs.
3188         i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
3189         * configure.ac (extra_gcc_objs): New substitution variable.
3190         (host_extra_gcc_objs): Don't substitute.
3191         * configure: Regenerate.
3192         * Makefile.in: Use extra_gcc_objs.
3193
3194 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
3195
3196         * doc/contrib.texi: Add an entry for myself.
3197
3198 2004-02-25  Jan Hubicka  <jh@suse.cz>
3199
3200         * basic-block.h (make_eh_edge, break_superblocks): Declare.
3201         * cfgbuild.c (make_eh_edge):  Make global.
3202         * cfglayout.c (break_superblocks): Likewise; fix memory leak.
3203         * except.c (build_post_landing_pads, connect_post_landing_pads,
3204         dw2_build_landing_pads, sjlj_emit_function_enter,
3205         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3206         sjlj_build_landing_pads): Update CFG.
3207         (emit_to_new_bb_before): New function.
3208         (finish_eh_generation): Do not rebuild the CFG.
3209
3210 2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3211
3212         * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
3213         target_cpu_default defines.
3214         * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
3215         * pa.h (TARGET_DEFAULT): Likewise.
3216
3217 2004-02-25  Eric Botcazou  <ebotcazou@act-europe.fr>
3218
3219         * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
3220         comparisons with regard to signedness.
3221
3222 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
3223
3224         * arm.c (thumb_legitimize_address): New function.
3225         * arm-protos.h: Prototype it.
3226         * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
3227         (LEGITIMIZE_ADDRESS): Use it.
3228
3229 2004-02-25  J"orn Rennecke <joern.rennecke@superh.com>
3230
3231         * reload1.c (reload): Only spill eliminable register with multiple
3232         adjacent elimination alternatives if all alternatives fail.
3233
3234 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
3235
3236         * arm.c (arm_legitimate_index_p): For QImode the range of an offset
3237         is -4095...+4095 inclusive.
3238
3239 2004-02-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
3240
3241         * doc/install.texi (sparc-sun-solaris2* specific notes): Document
3242         the bootstrap failure with Sun CC 5.4 and 5.5.
3243
3244 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
3245
3246         * cse.c (cse_change_cc_mode_insns): Stop at any instruction
3247         which modifies NEWREG.
3248         (cse_condition_code_reg): Update the mode of CC_REG in
3249         CC_SRC_INSN on our own.
3250
3251 2004-02-24  Michael Matz  <matz@suse.de>
3252
3253         * config/i386/i386.c (ix86_comp_type_attributes): Check for
3254         regparm attributes.
3255
3256 2004-02-24  Richard Henderson  <rth@redhat.com>
3257
3258         * toplev.c (dump_file_tbl): Rename from dump_file.
3259         * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
3260         cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
3261         config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
3262         config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
3263         loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
3264         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
3265         toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
3266         s/rtl_dump_file/dump_file/g.
3267
3268 2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
3269
3270         * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
3271         (spe_fixuns_truncsfsi2): Delete.
3272
3273         * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
3274         (fixuns_truncsfsi2): Delete.
3275
3276 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
3277
3278         PR/14240
3279         * rtlanal.c (replace_label): Fix replacing labels in constant pool.
3280
3281 2004-02-24  Geoffrey Keating  <geoffk@apple.com>
3282
3283         * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
3284
3285 2004-02-24  Jason Merrill  <jason@redhat.com>
3286
3287         * tree.c (check_qualified_type): New fn.
3288         (get_qualified_type): Use it.  If type already has the desired
3289         quals, just return it.
3290         * tree.h: Declare it.
3291
3292 2003-02-24  Sanjiv Kumar Gupta  <sanjivg@noida.hcltech.com>
3293
3294         * target-def.h (TARGET_SCHED_INIT_GLOBAL,
3295         TARGET_SCHED_FINISH_GLOBAL): New macros.
3296
3297         * target.h (md_init_global, md_finish_global): Function
3298         declarations corresponding to new target macros.
3299
3300         * haifa-sched.c (sched_init, sched_finish): Allow target to
3301         call the new schedular hooks.
3302
3303         * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
3304         call to update_life_info.
3305
3306         * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
3307         flag_schedule_insns for SH4.
3308
3309         * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
3310         find_set_regmode_weight, find_insn_regmode_weight,
3311         find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
3312         sh_variable_issue, high_pressure, ready_reorder,
3313         rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
3314         functions used to throttle the insn movement in first
3315         scheduling pass for SH.
3316
3317         * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
3318         TARGET_SCHED_FINISH_GLOBAL.
3319
3320 2004-02-24  Alexandre Oliva  <aoliva@redhat.com>
3321
3322         Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
3323         2004-02-05  Alexandre Oliva  <aoliva@redhat.com>
3324         * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
3325         symbols in sections named by the user.
3326         2004-01-30  Alexandre Oliva  <aoliva@redhat.com>
3327         * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
3328         2004-01-27  Alexandre Oliva  <aoliva@redhat.com>
3329         * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
3330         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
3331         the above.
3332         2004-01-20  Alexandre Oliva  <aoliva@redhat.com>
3333         * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
3334         one more pseudo to further improve code generation.
3335         2004-01-19  Alexandre Oliva  <aoliva@redhat.com>
3336         * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
3337         inside UNSPEC.
3338         2004-01-16  Alexandre Oliva  <aoliva@redhat.com>
3339         * config/frv/frv.c (frv_legitimate_address_p): Added
3340         allow_double_reg_p argument.  Adjust all callers.  Use it to
3341         decide whether to enable double-register indirect addressing.
3342         (frv_funcdesc_alias_set): Remove.
3343         (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
3344         register.  Emit movdi_ldd.
3345         (ldd_address_operand): New.
3346         * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
3347         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
3348         (PREDICATE_CODES): Add ldd_address_operand.
3349         * config/frv/frv.md (movdi_ldd): New.
3350         (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
3351         intermediate computations if possible.
3352         (symGOTOFF2reg_i): Fix harmless typo.
3353         2003-12-18  Alexandre Oliva  <aoliva@redhat.com>
3354         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
3355         relocated p_vaddr to vaddr type.
3356         * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
3357         * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
3358         (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
3359         MEM, or use a funcdesc alias set.  Use regular move instead of
3360         ldd.
3361         (dbl_memory_one_insn_operand): Recognize function descriptors by
3362         type or by alias set, and don't split them.
3363         * config/frv/frv.md (call, call_value): Never use call_internal
3364         for fdpic.
3365         (call_internal, call_value_internal): Never match for FDPIC.
3366         (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
3367         call_value_fdpicsi): Require FDPIC.
3368         (ldd): Removed.
3369         2003-12-17  Alexandre Oliva  <aoliva@redhat.com>
3370         * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
3371         * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
3372         (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
3373         FDPIC.  Compute data base address.
3374         * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
3375         before the other self-specs are processed.
3376         * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
3377         Build with -fPIC.
3378         2003-12-15  Alexandre Oliva  <aoliva@redhat.com>
3379         * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
3380         inhibit_libc is defined.
3381         2003-12-12  Alexandre Oliva  <aoliva@redhat.com>
3382         * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
3383         __FRV_FDPIC__.
3384         (__RELOC_POINTER): Define.
3385         (_Unwind_IteratePhdrCallback): Use it.
3386         * config/frv/frv.h (Twrite): Define.
3387         (TRANSFER_FROM_TRAMPOLINE): Use it.
3388         * config/frv/linux.h (INVOKE__main): Undefine.
3389         (Twrite): Override.
3390         2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
3391         * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
3392         (-mlibrary-pic): Emphasize that this option generates EABI code.
3393         (-mcpu): Add fr550.
3394         (-mpack): Remove.
3395         2003-11-30  Alexandre Oliva  <aoliva@redhat.com>
3396         * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
3397         and CONSTs in FDPIC mode.
3398         * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
3399         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
3400         * config/frv/frv.c (move_source_operand): Don't accept symbolic
3401         constants.
3402         * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
3403         rather than 'i' constraint for the 2-instruction alternative.
3404         (*movsi_2word): New, incorporating existing int_2word_operand splitter.
3405         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
3406         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
3407         EXTRA_CONSTRAINT_FOR_Y.
3408         (EXTRA_CONSTRAINT): Remove handling of 'Y'.
3409         * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
3410         (addsi3): Change 'Y' constraint to 'Q'.
3411         2003-11-27  Richard Sandiford  <rsandifo@redhat.com>
3412         * reload.c (CONST_POOL_OK_P): New macro.
3413         (find_reloads): Use it to decide whether a constant can be forced
3414         into memory.
3415         * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
3416         constant satisfies got12_operand.
3417         (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
3418         (frv_legitimate_address_p): Check for valid unspec offsets using
3419         got12_operand rather than frv_legitimate_fdpic_operand_p.
3420         (frv_legitimate_fdpic_operand_p): Delete.
3421         (frv_emit_movsi): Abort if we try to use the FDPIC register during
3422         or after reload.
3423         (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
3424         TARGET_FDPIC.
3425         * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
3426         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
3427         * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
3428         (frv_fdpic_fptr_operand): Don't declare here.
3429         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
3430         rather than fdpic_got12_operand.
3431         (PREDICATE_CODES): Remove symbolic_operand entry.  Add entries for
3432         got12_operand and const_unspec_operand.
3433         * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
3434         (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
3435         (symbolic_operand): Remove.
3436         (const_unspec_operand): New predicate.
3437         * config/frv/frv.md (*movsi_got): Use got12_operand.
3438         (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
3439         2003-11-18  Richard Sandiford  <rsandifo@redhat.com>
3440         * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
3441         * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
3442         * config/frv/frv.c (frv_unspec): New structure.
3443         (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
3444         (frv_print_operand_memory_reference): Use frv_const_unspec_p to
3445         validate CONST indices.  Use frv_output_const_unspec to print them.
3446         (frv_print_operand): Update call to unspec_got_name.  Use
3447         frv_output_const_unspec to print constant unspecs.
3448         (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
3449         Reject UNSPECs otherwise.
3450         (unspec_got_name): Take the relocation number as argument, not an
3451         rtx containing it.
3452         (frv_output_addr_const_extra): Remove, replacing with...
3453         (frv_output_const_unspec): ...this new function.
3454         (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
3455         (gpr_or_int12_operand): Use fdpic_got12_operand.
3456         (dbl_memory_one_insn_operand): Likewise.
3457         (fdpic_got12_operand): Use frv_const_unspec_p.
3458         (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
3459         are already legitimate.  Use frv_small_data_reloc_p when deciding
3460         whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
3461         2003-11-18  Alexandre Oliva  <aoliva@redhat.com>
3462         * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
3463         * config/frv/libgcc-frv.ver: ... frv-specific symbols.  New file.
3464         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
3465         label, for real this time.
3466         * config/frv/frv.c (frv_local_funcdesc_p): Update to new
3467         representation of visibility.
3468         (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
3469         such.
3470         2003-11-17  Richard Sandiford  <rsandifo@redhat.com>
3471         * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
3472         (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
3473         * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
3474         it was explicitly disabled.
3475         (frv_stack_info): There is no need to save the link register in every
3476         frame unless TARGET_LINKED_FP is true.
3477         (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
3478         frame pointer if the stack pointer might change value.
3479         (frv_return_addr_rtx): Check and process "count" argument.
3480         2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
3481         * config/frv/frv-protos.h (frv_legitimize_address): Remove.
3482         (frv_find_base_term): Declare.
3483         * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
3484         (FIND_BASE_TERM): Define.
3485         (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
3486         small_data_register_operand, small_data_symbolic_operand.  Add
3487         symbolic_operand.
3488         * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
3489         (frv_print_operand_memory_reference, output_move_single): Remove
3490         special handling for unlegitimized sdata addresses.
3491         (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
3492         and symbolic addresses.
3493         (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
3494         (frv_find_base_term): New function.
3495         (int_2word_operand): Check specifically for symbolic address constants.
3496         (pic_register_operand, pic_symbolic_operand): Delete.
3497         (small_data_register_operand, small_data_symbolic_operand): Delete.
3498         (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
3499         Allow UNSPEC_GOT constants if !TARGET_FDPIC.
3500         (move_source_operand): Only accept CONSTs if they're a two-insn
3501         symbolic constant.
3502         (fdpic_got12_operand): Don't require TARGET_FDPIC.
3503         (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
3504         using gen_symGOTOFF2reg*.
3505         (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
3506         (frv_rtx_costs): Give all MEM addresses a cost of 0.  Give MEMs
3507         themselves a cost of 3 insns.
3508         * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
3509         Change predicate to symbolic_operand.
3510         (*movsi_high_got, *movsi_lo_sum_got): Likewise.
3511         (*movsi_lda_sdata): Delete.
3512         (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
3513         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
3514         * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
3515         frv-*-*linux*.
3516         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
3517         label.
3518         * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
3519         -multilib-library-pic.
3520         (LINK_SPEC): Add -z text for -mfdpic.
3521         * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
3522         * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
3523         * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
3524         Override.
3525         (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
3526         FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
3527         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
3528         crtstuff-generated files.
3529         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
3530         * config.gcc: Add frv-*-*linux*.
3531         * config/frv/linux.h, config/frv/t-linux: New.
3532         2003-10-06  Alexandre Oliva  <aoliva@redhat.com>
3533         * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
3534         when -mfdpic even if a linker script is explicitly listed.
3535         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
3536         * config/frv/frv.c (frv_override_options): Clear asm_out
3537         unaligned_op for SImode on FDPIC.
3538         (frv_emit_movsi): Use compute_reloc_for_constant to compute the
3539         argument passed to decl_readonly_section.
3540         (frv_assemble_integer): Revert 2003-09-30's change, but make the
3541         whole block run with FDPIC even with -fno-PIC.
3542         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
3543         * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
3544         symbol or label plus offset to memory.
3545         (frv_emit_movsi): Emit GPREL only if -mgprel-ro.  Emit 32-bit
3546         GOTOFF and GPREL for LABEL_REF.
3547         * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
3548         -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
3549         (MASK_GPREL_RO, TARGET_GPREL_RO): New.
3550         (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
3551         * doc/invoke.texi: Document them.
3552         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
3553         * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
3554         (frv_splittable_got_operand): Removed.
3555         * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
3556         LO_SUM.  Add comments.
3557         (frv_override_options): Moved enabling of FDPIC to
3558         DRIVER_SELF_SPECS.  Don't enable MASK_DWORD.
3559         (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
3560         (frv_legitimize_fdpic_address): Don't duplicate logic in
3561         frv_emit_movsi.
3562         (frv_gen_GPsym2reg): New.
3563         (unspec_got_name): Added gprel.
3564         (frv_expand_fdpic_call): Add support for inlining PLTs.
3565         (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
3566         (gpr_or_int12_operand): Added GPREL12.
3567         (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
3568         (small_data_symbolic_operand): Fail if FDPIC.
3569         (fdpic_splittable_got_operand): Removed.
3570         (fdpic_got12_operand): Added GPREL12.
3571         (frv_emit_movsi): Reorganize to avoid duplication.  Emit GPREL
3572         when appropriate.  Fix sdata GOTOFF.
3573         (frv_legitimate_constant_p): Require legitimate PIC operand for
3574         FDPIC with pic, but only a legitimate fdpic operand for non-pic.
3575         (frv_assemble_integer): Move FDPIC funcdesc handling out of
3576         flag_pic case.
3577         (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
3578         frv_assemble_integer fails.
3579         * config/frv/frv.h (DRIVER_SELF_SPECS): New.
3580         (SUBTARGET_DRIVER_SELF_SPECS): New.
3581         (ASM_SPEC): Don't pass -mno-fdpic.
3582         (LINK_SPEC): Pass -melf32frvfd for FDPIC.
3583         (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
3584         (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
3585         -multilib-library-pic.
3586         (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
3587         condexec_si_media_operator, condexec_sf_add_operator and
3588         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
3589         and condexec_sf_unary_operator.
3590         * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
3591         New.
3592         (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
3593         movsi_internal.  Give them internal names.  movsi_got has type
3594         int.
3595         (fdpic got splitters): Remove.
3596         (symGPREL2reg, symGPREL2reg_hilo): New.
3597         * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
3598         to -mlibrary-pic.  Map -multilib-library-pic to it.
3599         * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
3600         Document.
3601         2003-09-28  Alexandre Oliva  <aoliva@redhat.com>
3602         * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
3603         (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
3604         (frv_cannot_force_const_mem): New function.
3605         (const_small_data_p, plus_small_data_p): Update comments on sdata
3606         on FDPIC.
3607         (frv_override_options): Set flag_pie for FDPIC too.
3608         (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
3609         call-saved registers on FDPIC.
3610         (frv_stack_info): Don't preserve the PIC register on FDPIC, and
3611         don't force LR to be preserved.
3612         (frv_expand_prologue): Likewise.
3613         (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
3614         (frv_frame_pointer_required): Don't force it just because the
3615         FDPIC register is used.
3616         (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
3617         operand only if !condexec_p.
3618         (frv_legitimize_address): Return the FDPIC-legitimized address.
3619         Don't match small data here on FDPIC.
3620         (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
3621         symbols.  Use TRUE/FALSE instead of 1/0.
3622         (frv_local_funcdesc_p): New.
3623         (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
3624         immediates when possible.
3625         (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
3626         (dbl_memory_one_insn_operand): Accept addresses that add a REG and
3627         an UNSPEC_GOT.
3628         (frv_emit_movsi): Handle FDPIC before small data.  Use GOTOFF and
3629         12-bit immediates when possible.
3630         (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
3631         are not legitimate pic operands.
3632         (frv_in_small_data_p): Re-enable for FDPIC.
3633         * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
3634         (FRV_GLOBAL_P): Removed.
3635         * config/frv/frv.md: Add modes to CONSTs.
3636         (movsi_got): New.
3637         (movsi_lo_sum_got): Use separate matches instead of match_dup.
3638         (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
3639         (fdpic splittable operations): Match on flag_pic != 1.
3640         2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
3641         * config/frv/frv.c (frv_asm_out_constructor,
3642         frv_asm_out_destructor): Pass to frv_assemble_integer the size in
3643         bytes, not bits.
3644         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
3645         * config/frv/frv.c (frv_assemble_integer): Reject complex
3646         expressions referencing function SYMBOL_REFs.
3647         * config/frv/frv.c (frv_function_symbol_referenced_p): New.
3648         (move_source_operand): Reject CONSTs that reference function
3649         SYMBOL_REFs on FDPIC.
3650         (frv_emit_movsi): If we get such a CONST, break it up.
3651         * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
3652         (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
3653         * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
3654         MEM.
3655         (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
3656         (frv_trampoline_size): Increase for FDPIC.
3657         * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
3658         (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
3659         * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
3660         Disable use of GOTOFF for now.
3661         (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
3662         Disable use of small data in FDPIC for now.
3663         (frv_asm_output_mi_thunk): Implement for FDPIC.
3664         * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
3665         * config/frv/frv.c (frv_asm_out_constructor): Use
3666         frv_assemble_integer for FDPIC pointers.
3667         (frv_asm_out_destructor): Likewise.
3668         * config/frv/frv.md (ldd): Fix order of operands.  Use
3669         address_operand for input.
3670         2003-09-18  DJ Delorie  <dj@redhat.com>
3671         * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
3672         (unspec_got_name): Correct typo.
3673         (frv_emit_movsi): Pre-expand splittable GOTs.
3674         (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
3675         * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
3676         (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
3677         * config/frv/t-frv: Add -mfdpic multilibs.
3678         * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
3679         (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
3680         * config/frv/frv.c (frv_override_options): -mfdpic assumes
3681         flag_pic, default to 32-bit pics, require DWORD ops.
3682         (frv_override_options): Add W and Z constraints.
3683         (frv_expand_prologue): No pic prologue for -mfdpic.
3684         (frv_asm_output_mi_thunk): Support -mfdpic (soon).
3685         (frv_print_operand_memory_reference): Handle GOT constants.
3686         (frv_legitimate_address_p): Allow GOT constants.
3687         (frv_legitimize_address): Handle GOT addresses too.
3688         (frv_legitimate_fdpic_operand_p): New.
3689         (frv_legitimize_fdpic_address): New.
3690         (unspec_got_name): New.
3691         (frv_output_addr_const_extra): New.
3692         (frv_expand_fdpic_call): New.
3693         (frv_fdpic_fptr_operand): New.
3694         (gpr_or_int12_operand): Handle GOT operands.
3695         (int_2word_operand): Handle GOT operands.
3696         (fdpic_operand): New.
3697         (fdpic_splittable_got_operand): New.
3698         (fdpic_got12_operand): New.
3699         (frv_emit_movsi): Handle GOT operands.
3700         (frv_assemble_integer): -mfdpic doesn't use rofixups.
3701         (frv_print_operand): Support 'g' code for GOT operands.
3702         * config/frv/frv-protos.h: Add prototypes as needed.
3703         * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
3704         R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
3705         R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
3706         R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
3707         R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
3708         R_FRV_GOTOFFLO): New.
3709         (movsi_high_got, movsi_lo_sum_got): New.
3710         (*movsi_pic): Don't use this splitter for -mfdpic.
3711         (addsi3): Allow GOT references also.
3712         (call, call_value): Handle -mfdpic separately.
3713         (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
3714         call_value_fdpicsi): New.
3715         (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
3716         symGOTOFF2reg_i): New.
3717         * config/frv/frv.h (MASK_FDPIC): New.
3718         (TARGET_FDPIC): New.
3719         (TARGET_SWITCHES): Add -mfdpic.
3720         (FDPIC_FPTR_REGNO): New.
3721         (FDPIC_REGNO): New.
3722         (OUR_FDPIC_REG): New.
3723         (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
3724         FDPIC_CALL_REGS.
3725         (REG_CLASS_NAMES): Likewise.
3726         (REG_CLASS_CONTENTS): Likewise.
3727         (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
3728         (EXTRA_CONSTRAINT): Add it here.
3729         (FRV_GLOBAL_P): New.
3730         (OUTPUT_ADDR_CONST_EXTRA): New.
3731
3732 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
3733
3734         * config/sparc/sparc.h: Remove commented-out definitions of
3735         TARGET_EDOM and GEN_ERRNO_RTX.
3736
3737 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
3738
3739         * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
3740         df_analyse with df_analyze.
3741
3742 2004-02-24  Alan Modra  <amodra@bigpond.net.au>
3743
3744         * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
3745         beginning of block.
3746
3747 2004-02-23  James E Wilson  <wilson@specifixinc.com>
3748
3749         * calls.c (precompute_arguments): Update comment.
3750
3751 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3752
3753         * et-forest.c: Replace et_occurences with et_occurrences.
3754
3755 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3756
3757         * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
3758         with iv_analyze.
3759
3760 2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>
3761
3762         * config/i386/i386.c: Rename pni to sse3.
3763         * config/i386/i386.h: Likewise.
3764         * config/i386/i386.md: Likewise.
3765         * config/i386/pmmintrin.h: Likewise.
3766         * doc/extend.texi: Likewise.
3767         * doc/invoke.texi: Likewise.
3768
3769 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
3770             Kazu Hirata  <kazu@cs.umass.edu>
3771
3772         Remove -fwritable-strings.
3773         * c-common.c (fix_string_type): Don't check
3774         flag_writable_strings.
3775         (fix_string_type): Likewise.
3776         * c-opts.c (set_std_c89): Don't initialize
3777         flag_writable_strings.
3778         (set_std_c99): Likewise.
3779         * common.opt (fwritable-strings): Remove.
3780         * flags.h: Remove the external declaration of
3781         flag_writable_strings.
3782         * opts.c (common_handle_option) <OPT_fwritable_strings>:
3783         Remove.
3784         * toplev.c (flag_writable_strings): Remove.
3785         (f_options): Remove an entry for writable-strings.
3786         * varasm.c (const_hash_1) <STRING_CST>: Don't check
3787         flag_writable_strings.
3788         (compare_constant) <STRING_CST>: Likewise.
3789         (build_constant_desc): Likewise.
3790         * config/darwin.c (machopic_select_section): Likewise.
3791         * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
3792         * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
3793         * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
3794         * config/mips/mips.c (mips_select_section): Likewise.
3795         (mips_encode_section_info): Likewise.
3796         * config/pa/pa.c (pa_select_section): Likewise.
3797         * config/pa/pa.h (TEXT_SPACE_P): Likewise.
3798         * config/v850/v850.c (v850_select_section): Likewise.
3799         * doc/invoke.texi (-fwritable-strings): Remove.
3800         (-fno-const-strings): Don't mention -fwritable-strings.
3801         * doc/trouble.texi: Don't mention -fwritable-strings.
3802
3803 2003-02-23  Nathanael Nerode  <neroden@gcc.gnu.org>
3804
3805         * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
3806
3807 2004-02-23  Dale Johannesen  <dalej@apple.com>
3808
3809         * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
3810         (movdf_hardfloat64):  Ditto.
3811         (movdf_softfloat64):  Ditto.
3812
3813 2004-02-23  Fariborz Jahanian <fjahanian@apple.com>
3814         * config/rs6000/rs6000.c (function_arg): call to
3815         rs6000_mixed_function_arg for DFmode moved to allow
3816         normal DFmode incoming register assignment.
3817
3818 2004-02-23  Dale Johannesen  <dalej@apple.com>
3819
3820         * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
3821         (movdf_hardfloat64):  Ditto.
3822
3823 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3824
3825         * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
3826         config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
3827         copyright.
3828
3829 2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
3830
3831         PR c/14156
3832         * c-typeck.c (c_expand_return): Change check for VAR_DECL
3833         to use DECL_P instead.
3834
3835         * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
3836         * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
3837
3838 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3839
3840         * Makefile.in (opts.o): Depend on target.h.
3841         * opts.c (decode_options): Use targetm.default_short_enums
3842         instead of DEFAULT_SHORT_ENUMS.
3843         * system.h (DEFAULT_SHORT_ENUMS): Poison.
3844         * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
3845         (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
3846         * target.h (gcc_target): Add default_short_enums.
3847         * config/cris/cris.h: Remove a comment about
3848         DEFAULT_SHORT_ENUMS.
3849         * config/ip2k/ip2k.h: Likewise.
3850         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
3851         TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
3852
3853 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
3854             Falk Hueffner  <falk@debian.org>
3855
3856         PR c/14188
3857         * builtins.c (expand_builtin_va_arg): Emit an informative message
3858         if a trap is generated.
3859         * c-typeck.c (build_function_call): Likewise.
3860
3861 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
3862
3863         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
3864         fopen.
3865         * libgcov.c: Include sys/stat.h.
3866         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
3867         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
3868         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
3869         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
3870
3871 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
3872
3873         * reorg.c: Remove comments about dead ports.
3874
3875 2004-02-22  Christopher Faylor  <cgf@redhat.com>
3876
3877         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
3878         extra host object file when targetting cygwin rather than generic
3879         object files.
3880
3881 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
3882
3883         Merge from tree-ssa:
3884         2003-11-20  Richard Henderson  <rth@redhat.com>
3885
3886                 * tree-inline.c (insert_decl_map): New.
3887                 (remap_decl, remap_type, remap_block, copy_body_r,
3888                 initialize_inlined_parameters, declare_return_variable,
3889                 remap_save_expr): Use it.
3890
3891         * function.c (copy_body_r): Add mapping from id->ret_label to
3892         id->ret_label.  Revert test for ret_label.
3893
3894 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
3895
3896         * genoutput.c (process_template): Strip trailing whitespace in @
3897         templates and issue a warning if there was any.
3898
3899 2004-02-21  Christopher Faylor  <cgf@redhat.com>
3900
3901         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
3902         object file when targetting cygwin.
3903         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
3904         overridden by top-level Makefile.
3905
3906 2004-02-21  Roger Sayle  <roger@eyesopen.com>
3907
3908         * config/i386/i386.c (standard_80387_constant_p): Also prefer
3909         the x87's load constant instructions when optimizing for size.
3910
3911 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
3912
3913         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
3914         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
3915         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
3916         * fold-const.c: Likewise.
3917         * simplify-rtx.c: Likewise.
3918
3919 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
3920
3921         * combine.c (can_combine_p): Don't ignore SETs marked with
3922         REG_EH_REGION notes.
3923         (try_combine): When attemting to fix unrecognized insns, don't
3924         split a PARALLEL that contains the original i2.
3925
3926 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
3927
3928         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
3929         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
3930         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
3931         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
3932         (vector, pixel, bool): #define to __vector, __pixel and __bool.
3933         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
3934         portion of header.
3935         (__altivec_link_error_invalid_argument): Remove prototype; will use
3936         __builtin_altivec_compiletime_error("vec_*") instead.
3937         (vec_*): Fix/complete set of available operation overloads given the
3938         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
3939         cv-correctness of pointer arguments; in C, always check for correct
3940         argument types before macro expansion.
3941         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
3942         defining Darwin/PowerPC-specific '-f[no-]altivec' and
3943         '-W[no-]altivec-long-deprecated' switches.
3944         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
3945         '__vector', '__pixel' and '__bool' macros using
3946         '__attribute__((altivec(...)))' types.
3947         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
3948         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
3949         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
3950         New type nodes.
3951         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
3952         handling '-W[no-]altivec-long-deprecated'.
3953         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
3954         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
3955         altivec_expand_dst_builtin): Remove casts from integer literals.
3956         (altivec_expand_builtin): Likewise; handle expansion of new
3957         '__builtin_altivec_compiletime_error' function.
3958         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
3959         types, and make them distinct from other vector types; register
3960         '__builtin_altivec_compiletime_error' function.
3961         (print_operand): For 'P', print a full target register name instead of
3962         merely its number.
3963         (rs6000_attribute_table): Add "altivec" attribute.
3964         (rs6000_handle_altivec_attribute): New function.
3965         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
3966         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
3967         maps to).
3968         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
3969         declare.
3970         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
3971
3972 2004-02-20  James E Wilson  <wilson@specifixinc.com>
3973
3974         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
3975         check.
3976         (shift_mix4left+2): Delete redundant pattern.
3977
3978 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3979
3980         * alias.c (OUTGOING_REGNO): Don't define the default.
3981         * builtins.c (OUTGOING_REGNO): Likewise.
3982         (INCOMING_REGNO): Likewise.
3983         (apply_args_register_offset): Always use OUTGOING_REGNO.
3984         * combine.c (OUTGOING_REGNO): Likewise.
3985         * sibcall.c (OUTGOING_REGNO): Likewise.
3986         * defaults.h (INCOMING_REGNO): Provide the default.
3987         (OUTGOING_REGNO): Likewise.
3988
3989 2004-02-21  Jan Hubicka  <jh@suse.cz>
3990
3991         * params.def (max-peeled-insns, max-completely-peeled-insns,
3992         max-once-peeled-insns): Set to 400.
3993
3994 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3995
3996         PR c++/12007
3997         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
3998         are set for parameters before outputing debugging information.
3999
4000 2004-02-20  Falk Hueffner  <falk@debian.org>
4001
4002         PR target/14201
4003         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
4004         numbers.
4005
4006 2004-02-20  Per Bothner  <per@bothner.com>
4007
4008         * input.h:  Don't #include line-map.h.  It may cause link problems
4009         with undefined linemap_line_start when line-map.h is included but
4010         line-map.o is not linked, as currently happens with gengtype on
4011         compilers that don't support inline.
4012         * toplev.c:  So we do have to explicitly #include line-map.h here.
4013
4014 2004-02-20  Richard Henderson  <rth@redhat.com>
4015
4016         * doc/invoke.texi: Add -Wvariadic-macros.
4017
4018 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4019
4020         * haifa-sched.c (sched_emit_insn): Remove.
4021         * sched-int.h: Remove the corresponding prototype.
4022
4023 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4024
4025         Revert:
4026         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4027         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4028         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4029         * config/cris/cris.h: Remove a comment about
4030         DEFAULT_SHORT_ENUMS.
4031         * config/ip2k/ip2k.h: Likewise.
4032         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4033
4034 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
4035             Tom Tromey  <tromey@redhat.com>
4036
4037         * doc/install.texi: Moved --disable-libgcj and
4038         --with-system-zlib documentation to new section for
4039         Java-specific options.
4040         Added explicit Cross-Compiler-Specific Options subheading.
4041         Added section for Java-specific options.
4042
4043 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
4044
4045         * doc/install.texi (Building the Ada compiler): Remove
4046         example.
4047
4048 2004-02-20  James E Wilson  <wilson@specifixinc.com>
4049
4050         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
4051
4052 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
4053
4054         * gcc.c (process_command): Allow translation of the copyright
4055         symbol but not the rest of the copyright message.
4056         * gcov.c (print_version): Likewise.  Allow translation of the
4057         message about warranty.
4058
4059 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
4060
4061         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
4062         predicate.
4063         ("*andsi_clear"): Tweak constraints to not match postincrement.
4064         Adjust the predicate to exclude a volatile memory reference.
4065         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
4066         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
4067
4068 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
4069
4070         * move-if-change: Remove.
4071         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
4072         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
4073         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
4074         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
4075         (s-gtyp-gen, s-iov): Use the top level move-if-change.
4076         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
4077
4078 2004-02-19  James E Wilson  <wilson@specifixinc.com>
4079
4080         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
4081         for operand2.  Add condition that requires register_operand operand2
4082         before reload.
4083
4084 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
4085             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4086
4087         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
4088         * config/mips/mips.md: Expand comment above unaligned loads and stores.
4089
4090 2004-02-19  Richard Henderson  <rth@redhat.com>
4091
4092         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
4093         * tree.c (build0, build1, build2, build3, build4): Split out from...
4094         (build): ... here.  Call them.
4095         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
4096
4097         * convert.c (convert_to_integer): Remove extra build argument.
4098         * tree-inline.c (expand_call_inline): Likewise.
4099
4100 2004-02-19  Richard Henderson  <rth@redhat.com>
4101
4102         * c-opts.c (warn_variadic_macros): New.
4103         (c_common_handle_option): Set it.
4104         (sanitize_cpp_opts): Copy it to cpp_opts.
4105         * c.opt (Wvariadic-macros): New.
4106         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
4107         * cppinit.c (cpp_create_reader): Initialize it.
4108         * cppmacro.c (parse_params): Check it.
4109
4110 2004-02-19  David Daney <ddaney@avtrex.com>
4111
4112         PR preprocessor/14198
4113         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
4114         builtin_assert ("machine=mips")
4115
4116 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4117
4118         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4119         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4120         * config/cris/cris.h: Remove a comment about
4121         DEFAULT_SHORT_ENUMS.
4122         * config/ip2k/ip2k.h: Likewise.
4123         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4124
4125 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
4126
4127         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
4128         when passing single SFmode quantities in general registers,
4129         put them in the high half.
4130
4131 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
4132
4133         * doc/md.texi (Standard Names): Document additional dependency on
4134         fix pattern.
4135
4136         * optabs.c (ftruncify): Remove.
4137         (expand_fix): Manually inline ftruncify above.
4138         (can_fix_p): Add FIXME note.
4139
4140 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
4141
4142         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
4143         spe_fixuns_truncsfsi2.
4144
4145         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
4146         fixuns_truncsfsi2.
4147
4148 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
4149
4150         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
4151         * testsuite/gcc.dg/20040219-1.c: New test.
4152
4153 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
4154
4155         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
4156         "*subsf3_cconly"): Subtraction is not commutative.
4157
4158 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
4159
4160         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
4161         (sdbout_symbol): If called before sdbout_init, queue DECL for
4162         later and return.
4163         (sdbout_init): Set sdbout_initialized true, process decls
4164         queued earlier by sdbout_symbol.
4165         (sdbout_finish): Use size_t for index variable.
4166
4167 2004-02-19  Jeff Law  <law@redhat.com>
4168
4169         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
4170         for unordered comparison codes.
4171
4172 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
4173
4174         * reload1.c (reload): Correct comment.
4175         (scan_paradoxical_subregs): Remove #if 0 and old comment.
4176         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
4177         register variables are not used by reload.
4178
4179 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
4180
4181         PR target/14209
4182         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
4183         constraints to not match postincrement.  Adjust the predicate to
4184         exclude a volatile memory reference.
4185
4186 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4187
4188         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
4189
4190 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4191
4192         * hooks.c (hook_void_tree_int): Remove.
4193         (hook_void_constcharptr): Likewise.
4194         (hook_int_void_0): Likewise.
4195         * hooks.h: Remove the prototypes for the above three
4196         functions.
4197         * targhooks.c (hook_bool_machine_mode_true): Remove.
4198         * targhooks.h: Remove the prototype for
4199         hook_bool_machine_mode_true.
4200
4201 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4202
4203         * emit-rtl.c (subreg_realpart_p): Remove.
4204         (reorder_insns_with_line_notes): Likewise.
4205         (end_full_sequence): Likewise.
4206         * rtl.h: Remove the prototype for the above functions.
4207
4208 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4209
4210         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
4211         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
4212         config/iq2000/iq2000.h, config/m32r/m32r.h,
4213         config/pdp11/pdp11.h, config/sparc/sparc.h,
4214         config/xtensa/xtensa.h: Remove commented-out or useless
4215         definitions of CASE_VECTOR_PC_RELATIVE.
4216
4217 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4218
4219         * loop.c (all_sets_invariant_p): Remove.
4220
4221 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
4222
4223         PR target/12916
4224         * config/sparc/sparc.h (NPARM_REGS): Delete.
4225         (BASE_RETURN_VALUE_REG): Likewise.
4226         (BASE_OUTGOING_VALUE_REG): Likewise.
4227         (BASE_PASSING_ARG_REG): Likewise.
4228         (BASE_INCOMING_ARG_REG): Likewise.
4229         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
4230         TARGET_ARCH64, not TARGET_V9.
4231         (function_arg_slotno): Dispatch based on the mode class.
4232         Handle vector modes like floating-point modes.
4233         (function_arg_record_value_1): Handle vector types like
4234         floating-point types.
4235         (function_arg_record_value_2): Likewise.
4236         Calculate regno after mode transformation.
4237         (function_arg): Handle vector modes like floating-point modes.
4238         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
4239         If ARCH64, do not recheck alignment.
4240         (function_arg_pass_by_reference): Reorder the conditions.
4241         (sparc_return_in_memory): Move after function_arg_padding.
4242         Implement calling conventions for vector modes.
4243         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
4244         (function_value): Move scope of 'regbase'.
4245         Implement calling conventions for vector modes.
4246         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
4247         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
4248         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
4249         the argument is passed by reference.
4250         (sparc_type_code): Handle vector types.
4251
4252 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
4253
4254         * function.c (assign_parms): When building decl_rtl for
4255         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
4256
4257 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
4258
4259         * expr.c (is_aligning_offset): Check if we are aligning the
4260         expressions's address over BIGGEST_ALIGNMENT in bytes, not
4261         in bits.
4262
4263 2003-02-18  Matt Austern  <austern@apple.com>
4264
4265         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
4266         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
4267         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
4268         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
4269         spec string.
4270         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
4271
4272 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
4273
4274         * dwarf2out.c (loclabel_num): Move outside #ifdef
4275         DWARF2_DEBUGGING_INFO and mark with GTY(()).
4276         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
4277         Mark with GTY(()).
4278         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
4279         Allocate memory with ggc_alloc.  No need to copy anything.
4280         (ia64_hpux_file_end): Update to match.
4281
4282 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
4283
4284         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
4285         by default.
4286
4287 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
4288
4289         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
4290         ("divmodtisi3"): Likewise.
4291         ("udivmoddi4", "udivmodtidi3"): Likewise.
4292         ("divmodsi4", "divmoddisi3"): Likewise.
4293         ("udivmodsi4", "udivmoddisi3"): Likewise.
4294         ("udivsi3", "umodsi3"): Likewise.
4295
4296 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
4297
4298         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
4299         placeholder insn when chunkifying the pool.
4300
4301 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4302
4303         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
4304         generating PIC code.
4305
4306 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4307
4308         * config/h8300/h8300-protos.h: Add a prototype for
4309         h8300_expand_branch.
4310         * config/h8300/h8300.c (h8300_expand_branch): New.
4311         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
4312         bgtu, beq, bne): Call h8300_expand_branch().
4313
4314 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4315
4316         * config/h8300/h8300-protos.h: Add prototypes for
4317         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
4318         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
4319         (h8300_hard_regno_mode_ok): Likewise.
4320         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
4321         h8300_hard_regno_nregs().
4322         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
4323
4324 2004-02-18  Per Bothner  <per@bothner.com>
4325
4326         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
4327         partly reverts my 2003-10-01 change, because we're back to logically
4328         including <command line> inside the main line.
4329         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
4330         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
4331         Fixes PR preprocessor/14103.
4332
4333         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
4334         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
4335         (cpp_push_include):  Don't need to increment pfile's line field.
4336         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
4337
4338         * c-ppoutput.c (print struct):  New first_time field.
4339         (init_pp_output):  Set print.first_time.
4340         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
4341         which is set also for (say) <command line>.  Clear print.first_time.
4342
4343         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
4344         does not match the code, so fix both.
4345         (should_stack_file):  Inline include_pch_p function.
4346         (include_pch_p):  Remove pointless function.
4347
4348         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
4349
4350 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4351
4352         * config/h8300/h8300.md (four define_peephole2's): Use
4353         h8300_regs_ok_for_stm().
4354
4355 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4356
4357         * config/h8300/h8300-protos.h: Update the prototype for
4358         expand_a_rotate().
4359         * config/h8300/h8300.c (expand_a_rotate): Remove the first
4360         argument.
4361         * config/h8300/h8300.md: Update all callers.
4362
4363 2004-02-18  Jan Hubicka  <jh@suse.cz>
4364
4365         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
4366         floats.
4367         (simplify_binary_operation): Deal with logicals on floats.
4368
4369         * i386.md (SSE fabs splitters): Emit new patterns.
4370         (SSE cmov splitters): Likewise.
4371         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
4372         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
4373         subregs.
4374         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
4375         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
4376
4377 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4378
4379         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
4380         by hand.
4381         (output_a_rotate): Tweak a comment.
4382         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
4383         (*rotlhi3_1): Change to rotlhi3_1.
4384         (*rotlsi3_1): Change to rotlsi3_1.
4385
4386 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
4387
4388         PR target/13866
4389         * arm.c (load_multiple_operation): Don't insist that the source reg
4390         of a post-increment component is the same as the destination.
4391         (store_multiple_operation): Likewise.
4392
4393 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4394
4395         * config/h8300/h8300.md: Move movsf patterns into one section
4396         of the file.
4397
4398 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4399
4400         * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
4401         loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
4402         xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
4403         config/mips/linux64.h, config/pa/pa-64.h,
4404         config/rs6000/aix51.h, config/rs6000/aix52.h,
4405         config/rs6000/spe.md, config/sparc/linux.h,
4406         config/sparc/linux64.h: Update copyright.
4407
4408 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4409
4410         * config/h8300/h8300.md: Move push patterns into one
4411         section of the file.
4412
4413 2004-02-18  Mark Mitchell <mark@codesourcery.com>
4414
4415         PR c++/11326
4416         * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
4417         fntype.
4418
4419 2004-02-18  Paul Brook  <paul@codesourcery.com>
4420
4421         * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
4422
4423 2004-02-18  Paul Brook  <paul@codesourcery.com>
4424
4425         PR debug/12934
4426         * dwarf2out.c (loc_descriptor_from_tree): Handle
4427         EXPR_WITH_FILE_LOCATION.
4428
4429 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
4430
4431         * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
4432         testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
4433         trailing whitespace from instructions.
4434
4435 2004-02-17  Geoffrey Keating  <geoffk@apple.com>
4436
4437         * configure.ac: When generating auto-build.h, pass
4438         --enable-languages to the sub-configure.
4439         Put quotes around ${program_transform_name} when generating
4440         name of as, ld, nm, objdump.
4441         * configure: Regenerate.
4442
4443 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
4444
4445         * Makefile.in (s-check, s-config, s-conditions, s-flags)
4446         (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
4447         (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
4448         (s-preds, s-iov): Do not depend on move-if-change.
4449
4450 2004-02-17  James E Wilson  <wilson@specifixinc.com>
4451
4452         * caller-save.c (insert_restore): Pass mem through copy_rtx.
4453         (insert_save): Likewise.
4454
4455 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4456
4457         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
4458         warning.
4459
4460 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4461
4462         * config/h8300/h8300.md (*one_complsi2_h8300): Change to
4463         *one_cmplsi2_h8300.
4464         (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
4465
4466 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4467
4468         * config/h8300/h8300-protos.h: Update the prototype of
4469         fix_bit_operand().
4470         * config/h8300/h8300.c (fix_bit_operand): Remove the second
4471         argument "what".
4472         * config/h8300/h8300.md: Update all callers.
4473
4474 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4475
4476         * config/h8300/h8300.c (fix_bit_operand): Change the name of
4477         the last argument to "code" from "type".
4478
4479 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4480
4481         * config/h8300/h8300.c: Remove an extern declaration of
4482         rtx_equal_function_value_matters.
4483
4484 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4485
4486         * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
4487         by hand.
4488         * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
4489         (*iorqi3_1): Change to iorqi3_1.
4490         (*xorqi3_1): Change to xorqi3_1.
4491
4492 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4493
4494         * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
4495         typos.
4496
4497 2004-02-17  Jan Hubicka  <jh@suse.cz>
4498
4499         * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
4500
4501 2004-02-18  Alan Modra  <amodra@bigpond.net.au>
4502
4503         PR optimization/14119
4504         * combine.c (try_combine): When attemting to fix unrecognized insns,
4505         don't delete SETs marked with REG_EH_REGION notes.
4506
4507 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
4508
4509         * combine.c (simplify_if_then_else): Do not replace
4510         (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
4511         modes differ.
4512
4513 2004-02017  Steven Bosscher  <stevenb@suse.de>
4514
4515         * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
4516         function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
4517         tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
4518         * ada/utils.c: Likewise.
4519         * cp/decl.c: Likewise.
4520         * f/com.c: Likewise.
4521         * java/class.c: Likewise.
4522
4523 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4524
4525         * config/h8300/h8300.md: Fix comment typos.
4526
4527 2004-02-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4528
4529         * config/mips/t-iris6gld: Renamed to ...
4530         * config/mips/t-irix-gld: ... this.
4531         * config.gcc (mips-sgi-irix6*): Reflect this
4532         (mips-sgi-irix5*): Use it with GNU ld.
4533
4534         * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
4535         to ...
4536         * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
4537         * config/mips/t-irix-gld: Reflect this.
4538         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4539
4540         * config/mips/iris5gld.h: New file.
4541         * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
4542         Only use collect2 without gas.
4543
4544         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
4545         Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
4546         (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
4547         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4548
4549         * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
4550         * config/mips/iris5.h: ... here.
4551
4552         * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
4553         IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
4554         (STARTFILE_SPEC, ENDFILE_SPEC): Define.
4555
4556         * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
4557         using irix_startfile_spec, irix_endfile_spec.
4558
4559 2004-02-16  Gunther Nikl  <gni@gecko.de>
4560
4561         * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
4562
4563 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4564
4565         * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
4566         insns by hand.
4567
4568 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4569
4570         * cfghooks.c (split_edge): Speed up updating of dominators.
4571
4572 2004-02-17  Mark Mitchell  <mark@codesourcery.com>
4573
4574         PR c++/11326
4575         * c-common.c (flag_abi_version): Remove.
4576         * c-common.h (flag_abi_version): Likewise.
4577         * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
4578         * c.opt (fabi-version): Remove.
4579         * calls.c (expand_call): Always pass a function type to
4580         struct_value_rtx.  Use convert_memory_address.
4581         * common.opt (fabi-version): Add it.
4582         * flags.h (flag_abi_version): Likewise.
4583         (abi_version_at_least): New macro.
4584         * opts.c (common_handle_option): Add OPT_fabi_version.
4585         * toplev.c (flag_abi_version): Define it.
4586         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
4587         New function.
4588         (ia64_output_mi_thunk): Use it.
4589         (ia64_struct_value_rtx): Likewise.
4590
4591 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4592
4593         * config/h8300/h8300.c (h8300_emit_stack_adjustment):
4594         Don't generate insns by hand.
4595
4596 2004-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
4597
4598         PR c++/14178
4599         * doc/invoke.texi (fabi-version): The default is 2 now.
4600
4601 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4602
4603         * loop-iv.c: New file.
4604         * Makefile.in (loop-iv.o): New.
4605         * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
4606         * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
4607         num_loop_branches): New functions.
4608         * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
4609         iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
4610         find_simple_exit, iv_number_of_iterations, iv_analysis_done,
4611         get_simple_loop_desc, free_simple_loop_desc): Declare.
4612         (simple_loop_desc): New inline function.
4613         (struct rtx_iv, struct niter_desc): New.
4614         * cfgloopmanip.c (loopify): Specify semantics more precisely.
4615         * expr.c (force_operand): Handle subregs of expressions created by
4616         loop unroller.
4617         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
4618         parts of the initialization to toplev.c
4619         * loop-unroll.c (loop_exit_at_end_p): New.
4620         (unroll_and_peel_loops): Call iv_analysis_done.
4621         (decide_peel_once_rolling, decide_peel_completely,
4622         decide_unroll_stupid, decide_unroll_constant_iterations,
4623         decide_unroll_runtime_iterations, decide_peel_simple,
4624         peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
4625         unroll_loop_runtime_iterations): Use new simple loop analysis.
4626         * loop-unswitch.c (compare_and_jump_seq): New.
4627         (may_unswitch_on_p): Renamed to ...
4628         (may_unswitch_on): Use new iv analysis.
4629         (reversed_condition): Export.
4630         (unswitch_single_loop, unswitch_loop): Use new iv analysis.
4631         * predict.c (estimate_probability): Use new simple loop analysis.
4632         * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
4633         canon_condition, simplify_using_condition): Declare.
4634         * stor-layout.c (get_mode_bounds): New.
4635         * toplev.c (rest_of_handle_loop2): Some parts of
4636         initialization/finalization moved here from loop-init.c.
4637
4638 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4639
4640         * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
4641         pointer.
4642         (CALL_USED_REGISTERS): Likewise.
4643         (REG_ALLOC_ORDER): Likewise.
4644         (REG_CLASS) <GENERAL_REGS>: Likewise.
4645
4646 2004-02-16  Geoffrey Keating  <geoffk@apple.com>
4647
4648         * doc/md.texi (Insn Canonicalizations): Document left-chaining
4649         in associative operators.
4650         * rtlanal.c (commutative_operand_precedence): Create some new
4651         variables.  Prefer a commutative operand on the left, then
4652         binary expressions, then NEG and NOT.
4653
4654 2004-02-16  Matthias Klose  <doko@debian.org>
4655
4656         * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
4657         in terms of SHLIB_SOVERSION.
4658         * config/m68k/t-slibgcc-elf-ver: New file.
4659         * config/pa/t-slibgcc-elf-ver: New file.
4660         * config.gcc (m68k-linux, parisc-linux): Use them when not
4661         sjlj exceptions are not configured.
4662
4663 2004-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
4664
4665         * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
4666
4667 2004-02-16  Zack Weinberg  <zack@codesourcery.com>
4668
4669         * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
4670
4671 2004-02-16  Joseph S. Myers  <jsm@polyomino.org.uk>
4672
4673         * doc/sourcebuild.texi: Mention backends.html.
4674
4675 2004-02-16  Kazu Hirata  <kazu@cs.umass.edu>
4676
4677         * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
4678         line-map.c, line-map.h, var-tracking.c: Fix comment
4679         formatting.
4680
4681 2004-02-16  Richard Henderson  <rth@redhat.com>
4682
4683         * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
4684
4685         * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
4686
4687 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
4688
4689         * config/h8300/h8300.md: Remove unnecessary parallels from
4690         all define_insn and define_split patterns.
4691
4692 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
4693
4694         * config/h8300/h8300.md: Remove explicit (set_attr "cc"
4695         "clobber").
4696
4697 2004-02-15  Bernardo Innocenti  <bernie@develer.com>
4698
4699         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
4700         '%#'.
4701
4702 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
4703
4704         * config/ia64/ia64.c, config/mips/mips.c,
4705         config/mmix/mmix-modes.def: Fix comment typos.
4706
4707 2004-02-15  Roger Sayle  <roger@eyesopen.com>
4708
4709         * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
4710         (get_directive_line): Remove unused function prototype.
4711
4712 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
4713
4714         * tree-inline.c (copy_body_r): Do not replace ret_label.
4715
4716 2004-02-14  Jan Hubicka  <jh@suse.cz>
4717
4718         * i386.c (x86_four_jump_limit): New variable.
4719         (k8_avoid_jump_misspredicts): Rename to ...
4720         (ix86_avoid_jump_misspredicts): .. this one.
4721         (ix86_pad_returns): Break out from ...
4722         (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
4723         to.
4724         * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
4725
4726 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
4727
4728         * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
4729         PARALLEL is NULL.
4730
4731 2004-02-14  Per Bothner  <per@bothner.com>
4732
4733         * fix-header.c (line_table):  Move local variable in main to global.
4734         * scan.h (line_table):  Use it.
4735         * scan-decls.c (scan_decls):  Need to call linemap_lookup on token's
4736         line (recently renamed to src_loc) before calling recognized_function.
4737
4738 2004-02-14  Matt Kraai  <kraai@alumni.cmu.edu>
4739
4740         * Makefile.in: Fix comment typos.
4741
4742 2004-02-14  Olivier Hainque  <hainque@act-europe.fr>
4743
4744         * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
4745         for start_value when it is directly moved into reg, and factorize
4746         the retrieval of GET_MODE (reg).
4747
4748 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
4749
4750         * config/mips/mips-protos.h (mips_load_got_page): Delete.
4751         (mips_load_got_global): Delete.
4752         (mips_gotoff_page): Declare.
4753         * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
4754         (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
4755         UNSPEC_LOAD_GOT pattern rather than a MEM.
4756         (*load_got[sd]i): New patterns.
4757         * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
4758         (mips_load_got_page, mips_load_got_global): Delete.
4759         (mips_gotoff_page): New function.
4760         (override_options): Don't initialize mips_got_alias_set.
4761
4762 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
4763
4764         * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
4765         (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
4766         (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
4767         (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
4768         (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
4769         * config/mips/mips.c: Fix some overly-long lines.
4770         (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
4771         (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
4772
4773 2004-02-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4774
4775         * configure.ac: Search for as, ld below libexec/gcc.
4776         * configure: Regenerate.
4777
4778 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
4779
4780         * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
4781         __builtin_arm_setwcx ().
4782         * config/arm/arm.c (arm_expand_builtin): Generate operands
4783         correctly and reverse their order in call to gen_iwmmxt_tmcr ().
4784
4785 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
4786
4787         * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
4788         and "wmuluh" to "wmulsm" and "wmulum", respectively.
4789         * config/arm/arm.h (enum arm_builtins): Rename enumerators to
4790         ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
4791         * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
4792         (_mm_mulhi_pu16): Likewise.
4793
4794 2004-02-13  Zack Weinberg  <zack@codesourcery.com>
4795
4796         * xcoffout.c (xcoff_assign_fundamental_type_number): Check
4797         DECL_NAME != 0 before dereferencing.
4798
4799 2004-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
4800
4801         * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
4802         (s390_output_addr_const_extra): Declare.
4803         (s390_output_pool_entry): Remove FILE * argument.
4804         * config/s390/s390.c (s390_output_symbolic_const): Remove.
4805         (s390_output_addr_const_extra): New function.
4806         (print_operand_address): Call output_addr_const instead of
4807         s390_output_symbolic_const.
4808         (print_operand): Likewise.
4809         (s390_output_pool_entry): Use assemble_integer for symbolic constants.
4810         Remove FILE * argument.
4811         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
4812         * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
4813         call.
4814
4815 2004-02-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4816
4817         * cfgloopanal.c (mark_irreducible_loops): Rewriten.
4818         (struct edge, struct vertex, struct graph): New.
4819         (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
4820         free_graph): New functions.
4821
4822 2004-02-12  Chris Demetriou  <cgd@broadcom.com>
4823
4824         * config/mips/mips.md (casesi_internal, casesi_internal_di):
4825         Use ".set macro" to avoid warnings about multi-instruction
4826         macros, since they're intentional.
4827
4828 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
4829
4830         * config/darwin.h: Add include guards.  Remove old, now incorrect,
4831         comment about STANDARD_EXEC_PREFIX.
4832
4833         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
4834         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
4835         for installing .1 manpages.  Add rules for installing cpp
4836         and gcov manpages under their installed names.
4837
4838 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
4839
4840         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
4841         host, but try LD_FOR_TARGET first.
4842         * configure: Rebuilt.
4843
4844 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
4845
4846         * dbxout.c: Move declaration of dbxout_type_decl outside
4847         #ifdef DBX_DEBUGGING_INFO.
4848         * c-parse.in: Don't give the asmdef production a type.
4849
4850 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
4851
4852         * debug.h (struct gcc_debug_hooks): Add type_decl field.
4853         (debug_nothing_tree_int): Prototype.
4854         (dwarf_debug_hooks): Delete, unused.
4855         * debug.c (do_nothing_debug_hooks): Update.
4856         (debug_nothing_tree_int): New function.
4857         * langhooks.h (struct lang_hooks_for_decls):
4858         Remove builtin_type_decls field.
4859         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
4860         (LANG_HOOKS_DECLS): Update.
4861         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
4862         Use debug_hooks->type_decl.
4863         * dbxout.c (preinit_symbols): New static.
4864         (dbx_debug_hooks, xcoff_debug_hooks): Update.
4865         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
4866         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
4867         for symbols to output.
4868         (dbxout_type_decl): New function.
4869         (dbxout_symbol): If called before dbxout_init has run, queue
4870         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
4871         to TYPE_DECLs before emitting them.
4872         * xcoffout.c (assign_type_number): Delete.
4873         (xcoff_type_numbers): New static table.
4874         (xcoff_assign_fundamental_type_number): New function.
4875         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
4876         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
4877         * sdbout.c: Include varray.h.
4878         (deferred_global_decls): New static.
4879         (sdb_debug_hooks): Update.
4880         (sdbout_global_decl): If we can't emit something right now,
4881         remember it in deferred_global_decls.
4882         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
4883         (sdbout_init): Initialize deferred_global_decls.
4884         * Makefile.in: Update dependencies of sdbout.o.
4885         * dwarf2out.c (dwarf2out_type_decl): New function.
4886         (dwarf2_debug_hooks): Update.
4887         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
4888         * c-decl.c (getdecls): Just return 0.
4889         (check_for_loop_decls): Don't use getdecls.
4890         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
4891         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
4892
4893 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
4894
4895         * config/s390/s390.c (s390_sched_reorder2): Remove.
4896         (TARGET_SCHED_REORDER2): Do not redefine.
4897
4898 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
4899
4900         * c-parse.in (maybe_type_qual): Delete.
4901         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
4902         (asm_argument): New grammar rules.
4903         (extdef_1): Use asmdef.
4904         (maybeasm): Move down with other asm rules; use simple_asm_expr.
4905         (xexpr): Move up with other expression rules.
4906         (stmt): Use asm_stmt.
4907
4908         * c-typeck.c (build_asm_expr): New function - body mostly
4909         pulled from build_asm_stmt.
4910         (build_asm_stmt): Just handle tacking on the volatile qualifier.
4911         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
4912
4913 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
4914
4915         PR bootstrap/13617
4916         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
4917         (mips_declare_object): Make variadic.
4918         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
4919         mips_output_aligned_decl_common.
4920         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
4921         (mips_declare_object): Make variadic.
4922
4923 2004-02-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4924
4925         * function.c (update_epilogue_consts): Teach about binary operations.
4926
4927         * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
4928         previous MEM_VOLATILE in REF.
4929         * function.c (fixup_var_refs): Save volatile_ok and set to 1.
4930         * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
4931
4932 2004-02-12  Gunther Nikl  <gni@gecko.de>
4933
4934         * config.gcc: Restore support for m68k-openbsd.
4935
4936 2004-02-12  Jan Hubicka  <jh@suse.cz>
4937
4938         * tree-optimize.c (tree_rest_of_compilation): Do not release
4939         DECL_ARGUMENTS.
4940
4941 2004-02-11  Matt Kraai  <kraai@alumni.cmu.edu>
4942
4943         * doc/install.texi: Fix the spelling of "explicitly".
4944
4945 2004-02-11  Eric Christopher  <echristo@redhat.com>
4946
4947         * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
4948         duplicate argument structure of cpp_interpret_string.
4949         * cpphash.h: Move prototype...
4950         * cpplib.h: Here.
4951         * cpplib.c: Fix calls to match new function signature.
4952
4953 2004-02-11  Joseph S. Myers  <jsm@polyomino.org.uk>
4954
4955         PR c/456
4956         * cppexp.c (num_binary_op): Don't allow comma operators in #if
4957         constant expressions at all outside C99 mode if pedantic.
4958
4959 2004-02-11  Uros Bizjak  <uros@kss-loka.si>
4960
4961         * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
4962         (log10_optab, log2_optab): Define corresponding macros.
4963         * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
4964         * genopinit.c (optabs): Implement log10_optab and log2_optab
4965         using log10?f2 and log2?f2 patterns.
4966         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
4967         using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
4968         (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
4969         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
4970
4971         * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
4972         log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
4973         log2, log2f and log2l built-ins as inline x87 intrinsics.
4974
4975 2004-02-11  Richard Henderson  <rth@redhat.com>
4976
4977         PR target/1532
4978         * flow.c (insn_dead_p): A clobber of a dead hard register is a
4979         dead insn after reload.
4980
4981 2004-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
4982
4983         * tree.h (frame_base_decl): Add GTY marker.
4984         * var-tracking.c (frame_base_decl): Likewise.
4985
4986 2004-02-11  Daniel Berlin  <dberlin@dberlin.org>
4987
4988         * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
4989         incorrect, hunk.
4990         (add_location_or_const_value_attribute): Use text_section_label,
4991         not TEXT_SECTION_NAME.
4992
4993 2004-02-11  Per Bothner  <per@bothner.com>
4994
4995         Represent column numbers using line-map's source_location.
4996         The "next available source_location" is now managed internally by
4997         line-maps.c rather than by clients.
4998         * line-map.h (struct line_map):  New field column_bits.
4999         <from_line>:  Rename field to start_location.
5000         (struct line_maps):  New fields highest_location and max_column_hint.
5001         (linemap_check_files_exited):  New declaration.
5002         (linemap_line_start):  New declaration.
5003         (linemap_add):  Remove from_line parameter; use highest_location field.
5004         (SOURCE_LINE, LAST_SOURCE_LINE):  Modify to use column_bits.
5005         (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION):  New macros.
5006         (CURRENT_LINE_MAP):  Remove macro.
5007         (linemap_position_for_column):  New inline function.
5008         * line-map.c (linemap_init):  Clear new fields.
5009         (linemap_check_files_exited):  New function, extracted from ...
5010         (linemap_free):  Use linemap_check_files_exited.
5011         (linemap_add):  Remove from_line parameter.  Various updates.
5012         (linemap_line_start):  New function.
5013         (linemap_lookeup):  Update for new field names.
5014         * cpphash.h (struct cpp_reader) <map>:  Field removed.  Because
5015         linemap_position_for_column may unpredictably change the current map,
5016         it is cleaner and simpler for us to not cache it in cpp_reader.
5017         (struct cpp_buffer):  New sysp field.
5018         Changed warned_cplusplus_comments and from_stage3 to bitfields.
5019         * cppinit.c (cpp_read_min_file):  pfile->map no longer exists.
5020         * cpplib.c (do_line, do_linemarker, _cpp_do_file_change):  Get
5021         current map using linemap_lookup.
5022         (do_linemarker):  Also set buffer's sysp field.
5023         (destringize_and_run):  No longer need to decrement current line.
5024         * cppfiles.c (_cpp_stack_file):  Set sysp from and in buffer.
5025         (search_path_head, open_file_failed):  Use buffer's sysp.
5026         (cpp_make_system_header):  Get current map using linemap_lookup.
5027         Also set buffer's sysp flag.
5028         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use linemap_lookup.
5029         * cpphash.h (CPP_INCREMENT_LINE):  New macro.
5030         (struct cpp_buffer):  Moved fields saved_cur, saved_rlimit to ...
5031         (struct cpp_reader):  ... and adding saved_line_base field.
5032         * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
5033         Update accordingly.  Don't adjust line.
5034         (_cpp_scan_out_logical_line):  Use CPP_INCREMENT_LINE.
5035         * cpphash.c (CPP_IN_SYSTEM_HEADER):  Replaced macro by ...
5036         (cpp_in_system_header):  ... new inline function, using buffer's sysp.
5037         * cpperror.c (_cpp_begin_message):  Update to use cpp_in_system_header.
5038         * cpplex.c (_cpp_lex_direct):  Likewise.
5039         * cppmacro.c (_cpp_builtin_macro_text):  Likewise.
5040         * cppmacro.c (_cpp_create_definition):  Use buffer's sysp field.
5041         * cpplib.h (struct cpp_token):  Rename line field to src_loc.
5042         Remove col field as it is now subsumed by src_loc.
5043         * cpperror.c:  Update various field, parameter, and macro names.
5044         (print_location):  If col==0, try SOURCE_COLUMN of line.
5045         (cpp_error):  Use cur_token's src_loc field, rather than line+col.
5046         * cpplib.c (do_diagnostic):  Token's src_loc fields replaces line+col.
5047         * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
5048         _cpp_skip_block_comment):  Use CPP_INCREMENT_LINE.
5049         (_cpp_temp_token):  Replace cpp_token's line+col fields by src_loc.
5050         (_cpp_get_fresh_line):  Don't need to adjust line for missing newline.
5051         (_cpp_lex_direct):  Use linemap_position_for_column.
5052         * c-ppoutput.c (maybe_print_line, print_line):  Don't take map
5053         parameter.  Instead get it from the line_table global.  Adjust callers.
5054         (print):  Remove map field.  Replace line field to src_line.
5055         (init_pp_output, account_for_newlines, maybe_print_line):  Adjust.
5056         (cb_line_change):  Use SOURCE_COLUMN.  Minor optimizations.
5057         (pp_file_change):  Use MAIN_FILE_P since we cannot checked print.map.
5058         Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
5059         * cpptrad.c (copy_comment):  Rename variable.
5060         * c-lex.c (map):  Remove static variable, for same reason we removed
5061         cpp_reader's map field.
5062         (cb_line_change, cb_def_pragma, cb_define, cb_undef):  Hence we need
5063         to call linemap_lookup.
5064         (cb_line_change):  Token's line field replaced by src_loc.
5065         (fe_file_change):  Use MAINFILE_P and LAST_SOURCE_LINE macros.
5066         Don't save new_map.
5067
5068         * cpphash.h, cpperror.c, cpplib.h:  Some renames of fileline to
5069         source_location.
5070
5071 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
5072
5073         * config/rs6000/altivec.md (*movv4si_internal): At least one
5074         operand must be register_operand.
5075         (*movv8hi_internal1): Likewise.
5076         (*movv16qi_internal1): Likewise.
5077         (*movv4sf_internal1): Likewise.
5078
5079 2004-02-10  Aldy Hernandez  <aldyh@redhat.com>
5080
5081         * config/rs6000/spe.md ("*movv2si_internal"): Check for register
5082         operand.
5083         (movv4hi_internal): Same.
5084         (movv2sf_internal): Same.
5085         (movv1di_internal): Same.
5086
5087 2004-02-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
5088
5089         * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
5090         TARGET_OLDABI consistently.
5091         * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
5092         mips_va_arg,override_options,compute_frame_size,
5093         mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
5094         ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
5095         and TARGET_OLDABI consistently.
5096         * config/mips/mips.md (exception_receiver): Likewise.
5097         * config/mips/linux64.h: Likewise.
5098
5099 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
5100
5101         * gcc/config/rs6000/rs6000.c (rs6000_override_options)
5102         Set AltiVec ABI and vrsave as default for ppc64 linux.
5103         (init_cumulative_args): Post error, if try to return
5104         value in AltiVec register without enable AltiVec.
5105         (function_arg_advance): Ditto for passing arguments.
5106
5107 2004-02-11  Richard Sandiford  <rsandifo@redhat.com>
5108
5109         * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
5110         a label before updating its usage count.
5111
5112 2004-02-10  Matt Kraai  <kraai@alumni.cmu.edu>
5113
5114         * doc/install.texi: Remove extra cd.
5115
5116 2004-02-10  Ziemowit Laski  <zlaski@apple.com>
5117
5118         * c-common.c (vector_size_helper): Remove; call
5119         reconstruct_complex_type() instead.
5120         * tree.c (reconstruct_complex_type): New function
5121         (formerly vector_size_helper() in c-common.c).
5122         (make_vector): Make externally visible.
5123         * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
5124
5125 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
5126
5127         * config/h8300/h8300-protos.h: Add a prototype for
5128         h8300_regs_ok_for_stm.
5129         * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
5130         * config/h8300/h8300.md (stm_h8300s_2_advanced,
5131         stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
5132         stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
5133         stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
5134         ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
5135         ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
5136         ldm_h8300s_4_normal, ldm_h8300s_4): Use
5137         h8300_regs_ok_for_stm().
5138
5139 2004-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
5140
5141         PR c/14088
5142         * real.c (real_from_string): Look for 'X' as well as 'x' in
5143         hexfloat strings.
5144
5145 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
5146
5147         * config/h8300/h8300.md: Remove an incorrect comment about
5148         peephole2.  Add comments.
5149
5150 2004-02-10  Josef Zlomek  <zlomekj@suse.cz>
5151
5152         PR/14058
5153         * emit-rtl.c (set_decl_incoming_rtl): New.
5154         * tree.h (set_decl_incoming_rtl): New.
5155         * function.c (assign_parms): Use set_decl_incoming_rtl for setting
5156         DECL_INCOMING_RTL.
5157         * ada/misc.c (adjust_decl_rtl): Likewise.
5158
5159 2004-02-10  Per Bothner  <per@bothner.com>
5160
5161         * c-opts.c (c_common_post_options):   Don't emit working directory
5162         in cpp output if -P was specified.
5163
5164 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
5165
5166         PR c/14092
5167         * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
5168         negate_expr back to the original type.
5169
5170 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
5171
5172         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
5173         bump retaddr here.
5174
5175 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
5176
5177         * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
5178         gen_lowpart_SUBREG): Move under the file in which they
5179         are actually declared.
5180
5181 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>
5182
5183         * doc/sourcebuild.texi: Add libada documentation.
5184
5185         * doc/install.texi: Update documentation on Ada build, now
5186         that the GNAT lib and tools are built automatically.
5187
5188 2004-02-10  Richard Sandiford  <rsandifo@redhat.com>
5189
5190         * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
5191         && TARGET_IRIX.
5192
5193 2004-02-09  Ziemowit Laski  <zlaski@apple.com>
5194
5195         * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
5196         boundaries outside build_component_ref() call (a macro in ObjC++).
5197
5198 2004-02-09  Bob Wilson  <bob.wilson@acm.org>
5199
5200         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
5201         (init_cumulative_args): Likewise.
5202         (a7_overlap_mentioned_p): Delete prototype.
5203         * config/xtensa/xtensa.c (struct machine_function): Replace
5204         incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
5205         Add set_frame_ptr_insn field.
5206         (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
5207         (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
5208         if the operand is an argument in a7.  If so, copy a7 to a new pseudo
5209         at the function entry and replace the operand with the pseudo.
5210         (init_cumulative_args): Remove unused arguments.  Add new "incoming"
5211         argument and record this flag in CUMULATIVE_ARGS.
5212         (function_arg): Remove result_mode and special-case code to handle
5213         arguments in a7.  Instead, set need_a7_copy flag when there is an
5214         incoming argument in a7.
5215         (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
5216         and use the value recorded in cfun->machine->set_frame_ptr_insn.
5217         (xtensa_builtin_saveregs): Check for negative gp_left value.  Set
5218         need_a7_copy and vararg_a7 flags.  Use move_block_from_reg instead of
5219         special-case code.
5220         (a7_overlap_mentioned_p): Delete.
5221         * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
5222         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
5223         arguments to init_cumulative_args and pass "incoming" flag instead.
5224         (BLOCK_REG_PADDING): Delete.
5225         * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
5226         checks for reload_in_progress and reload_completed.  Update calls to
5227         xtensa_copy_incoming_a7.
5228         (ashlsi3): Rename existing insn to ashlsi3_internal.  Add expander
5229         to call xtensa_copy_incoming_a7.
5230
5231 2004-02-09  DJ Delorie  <dj@redhat.com>
5232
5233         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
5234         longer modify standard_exec_prefix, standard_bindir_prefix, or
5235         standard_startfile_prefix.
5236
5237 2004-02-09  James E Wilson  <wilson@specifixinc.com>
5238
5239         PR c++/11295
5240         * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
5241         to expand_expr_real call, and pass in alt_rtl as last argument.
5242
5243         PR libstdc++/5625
5244         * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
5245         * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
5246         * builtins.def (BUILT_IN_EXTEND_POINTER): New.
5247         * except.c (expand_builtin_extend_pointer): New.
5248         * except.h (expand_builtin_extend_pointer): Declare.
5249
5250 2004-02-09  David Edelsohn  <edelsohn@gnu.org>
5251
5252         * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
5253         unaligned loads and stores.
5254
5255 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5256
5257         * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
5258         * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
5259
5260         * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
5261         * config/mips/iris5.h: ... here.
5262         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
5263
5264         * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
5265         * config/mips/iris5.h: ... here.
5266
5267 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5268
5269         * configure.ac: Remove default executable files before AC_PROG_CC.
5270         * configure: Regenerate.
5271
5272 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
5273
5274         PR target/13721
5275         * config/h8300/h8300.c (byte_reg): Call abort() if asked to
5276         print a operand other than a register.
5277
5278 2004-02-09  Roger Sayle  <roger@eyesopen.com>
5279
5280         * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
5281         tree code rather than call fold_convert, which doesn't specify a
5282         default floating point to integer conversion.
5283
5284 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
5285
5286         * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
5287         code to support SGS assembler.  Reformat adjacent code where possible.
5288         * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
5289         definition.
5290         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
5291         for '%#'.
5292         * config/m68k/linux.h, config/m68k/m68k.c,
5293         * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
5294         macros and asm_printf() format strings.
5295         * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
5296         * config/m68k/linux.h: Update copyright.
5297         * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
5298
5299 2004-02-08  Andreas Schwab  <schwab@suse.de>
5300             Bernardo Innocenti  <bernie@develer.com>
5301
5302         * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
5303         REGISTER_PREFIX.
5304         * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
5305         frame pointer register, overridable by OS targets.
5306         * (M68K_REGNAME): Macro to obtain register name for asm output,
5307         eventually replacing %a6 with M68K_FP_REG_NAME.
5308         * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
5309         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
5310         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
5311         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
5312         * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
5313
5314 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
5315
5316         * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
5317         hook_rtx_tree_int_null.
5318         * targhooks.c (default_struct_value_rtx): Remove.
5319         * targhooks.h: Remove the prototype for
5320         default_struct_value_rtx.
5321         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
5322         config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
5323         config/ip2k/ip2k.c, config/iq2000/iq2000.c,
5324         config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
5325         config/mn10300/mn10300.c, config/pdp11/pdp11.c,
5326         config/rs6000/rs6000.c, config/s390/s390.c,
5327         config/stormy16/stormy16.c, config/v850/v850.c,
5328         config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
5329         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
5330
5331 2004-02-08  Joseph S. Myers  <jsm@polyomino.org.uk>
5332
5333         * README.Portability: Change "ISO C89" to "ISO C90".
5334         * c-parse.in (primary, initelt): Likewise.
5335
5336 2004-02-08  Richard Sandiford  <rsandifo@redhat.com>
5337
5338         * real.c (encode_ibm_extended): Normalize the input value before
5339         converting it to a double.  Handle the case where a normal value
5340         rounds to infinity.
5341
5342 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
5343
5344         * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
5345         warning.
5346         * cse.c (preferrable): Change to preferable. Update all of its
5347         callers.
5348         * genautomata.c (ainsn): Change
5349         first_ainsn_with_given_equialence_num to
5350         first_ainsn_with_given_equivalence_num.  Update all of its
5351         references.
5352
5353 2004-02-08  Jan Hubicka  <jh@suse.cz>
5354
5355         * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
5356
5357 2004-02-07  David Edelsohn  <edelsohn@gnu.org>
5358
5359         * function.c (assign_parms): Fix formatting.
5360
5361 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5362
5363         * default.h (PROMOTE_PROTOTYPES): Remove.
5364         * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
5365         STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
5366         EXPAND_BUILTIN_SAVEREGS): Poison.
5367         * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
5368         hook_bool_tree_false.
5369         (TARGET_PROMOTE_PROTOTYPES): Likewise.
5370         * target.h: Replace SETUP_INCOMING_VARARGS with
5371         targetm.calls.setup_incoming_varargs().
5372         * targhooks.c (default_promote_function_return): Remove.
5373         (default_promote_prototypes): Likewise.
5374         (default_struct_value_rtx): Always abort().
5375         (default_expand_builtin_saveregs): Always print an error
5376         message.
5377         (default_setup_incoming_varargs): Do nothing.
5378         (default_pretend_outgoing_varargs_named): Don't depend on
5379         SETUP_INCOMING_VARARGS.
5380         * targhooks.h: Remove the prototype for
5381         default_promote_function_return and
5382         default_promote_prototypes.
5383
5384 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5385
5386         * system.h (SHARED_SECTION_ASM_OP): Poison.
5387         * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
5388         * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
5389
5390 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
5391
5392         Bug 13856
5393         * c-decl.c (diagnose_mismatched_decls): Only give special
5394         treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
5395         is also true.
5396         (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
5397         DECL_FUNCTION_CODE when defining a built-in function.
5398         Don't update DECL_ESTIMATED_INSNS.
5399         * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
5400         FUNCTION_DECLs.
5401         * tree.h: Delete DECL_ESTIMATED_INSNS.
5402         * tree-inline.c (struct inline_data): Delete inlined_insns field.
5403         (expand_call_inline, optimize_inline_calls): Don't update
5404         DECL_ESTIMATED_INSNS nor inlined_insns.
5405         * cgraphunit.c (cgraph_analyze_function): Don't update
5406         DECL_ESTIMATED_INSNS.
5407
5408 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
5409
5410         * c-common.c (shadow_warning): Delete.
5411         * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
5412         * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
5413         * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
5414         * c-parse.in (free_parser_stacks): Delete.
5415
5416 2004-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
5417
5418         * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
5419         config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
5420         Use the top level mkinstalldirs, not the one in the gcc subdir.
5421         * mkinstalldirs: Remove (from the gcc subdir).
5422
5423 2004-02-07  Roger Sayle  <roger@eyesopen.com>
5424
5425         PR middle-end/13696
5426         * fold-const.c (fold_convert): New function to provide type
5427         conversion to the middle-end without using convert.
5428         (negate_expr, associate_trees, size_diffop, omit_one_operand,
5429         operand_equal_for_comparison_p, pedantic_omit_one_operand,
5430         invert_truthvalue, optimize_bit_field_compare, range_binop,
5431         decode_field_reference, make_range, build_range_check, unextend,
5432         fold_truthop, extract_muldiv_1, fold_mathfn_compare,
5433         fold_binary_op_with_conditional_arg, fold_inf_compare,
5434         fold_single_bit_test, fold, multiple_of_p): Replace all calls to
5435         convert with calls to fold_convert.
5436
5437 2004-02-07  Jan Hubicka  <jh@suse.cz>
5438
5439         * genrecog.c (find_operand): add extra argument stop.
5440         (validate_pattern): Verify that mach_dup is duplicating operand
5441         defined lexically earlier.
5442
5443 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5444
5445         * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
5446         * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
5447         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
5448         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5449         config/ia64/ia64.h, config/ip2k/ip2k.h,
5450         config/iq2000/iq2000.h, config/mips/iris5.h,
5451         config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
5452         config/rs6000/aix51.h, config/rs6000/aix52.h,
5453         config/rs6000/darwin.h, config/rs6000/rs6000.h,
5454         config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
5455         config/sparc/linux.h, config/sparc/linux64.h,
5456         config/sparc/netbsd-elf.h, config/sparc/sparc.h,
5457         config/xtensa/xtensa.h: Remove the definitions of
5458         MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
5459         MAX_WCHAR_TYPE_SIZE.
5460         * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
5461         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
5462
5463 2004-02-07  Stephane Carrez  <stcarrez@nerim.fr>
5464
5465         PR bootstrap/13990
5466         * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
5467         gen_rtx_NE.
5468
5469 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
5470
5471         * var-tracking.c (vt_add_function_parameters): Surround checkings by
5472         #ifdef ENABLE_CHECKING and #endif.
5473
5474 2004-02-07  Roger Sayle  <roger@eyesopen.com>
5475
5476         * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
5477         either (-A)-B or (-B)-A, if A or B is easily negated respectively.
5478         (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
5479         integer types and floating point with unsafe_math_optimizations.
5480         Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
5481         Optimize A - B as A + (-B), if B is easily negated.
5482
5483 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5484
5485         * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
5486         config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
5487         config/m32r/linux.h, config/rs6000/ppc64-fp.c,
5488         config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
5489         Update copyright.
5490
5491 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5492
5493         * c-ppoutput.c, var-tracking.c: Fix comment typos.
5494
5495 2004-02-06  James E Wilson  <wilson@specifixinc.com>
5496
5497         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
5498         glibc 2.3 or better.
5499
5500 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5501
5502         * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
5503         to FLOAT_LIB_COMPARE_RETURNS_BOOL.
5504
5505 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
5506
5507         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
5508         (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
5509         (SHLIB_MKMAP_OPTS): Delete.
5510         (TARGET_LIBGCC2_CFLAGS): Add -specs.
5511         (bispecs): Add rule.
5512         * config/rs6000/libgcc-ppc64.ver: New file.
5513         * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
5514         (__floatdidf, __floatdisf): Optimize multiply.
5515         (__fixunstfdi): New function.
5516         * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
5517         real and imag parts larger than one register.
5518         (function_arg): Correct type of reg used when fp arg split partially
5519         to stack.
5520         * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
5521         and __MACH__ or __powerpc64__.
5522
5523 2004-02-06  Roger Sayle  <roger@eyesopen.com>
5524             Ulrich Weigand  <uweigand@de.ibm.com>
5525
5526         * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
5527         of gen_highpart or gen_lowpart when the floating point format is
5528         wider than the result mode.
5529
5530 2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
5531
5532         * dwarf2out.c (loclabel_num): Move into #ifdef
5533         DWARF2_DEBUGGING_INFO.
5534
5535 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
5536
5537         * objc/objc-act.c (build_super_template) the 'class' field of
5538         'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
5539         (get_super_receiver): Likewise.
5540
5541 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5542
5543         * reload1.c (check_eliminable_occurrences): Optimize the reset
5544         of can_eliminate.
5545         (eliminate_regs_in_insn): Likewise.
5546
5547 2004-02-06  Daniel Berlin <dberlin@dberlin.org>
5548             Josef Zlomek  <zlomekj@suse.cz>
5549
5550         * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
5551         at the beginning of function, call dwarf2out_var_location for
5552         NOTE_INSN_VAR_LOCATION note.
5553         (struct var_loc_node, struct var_loc_list_def, loclabel_num,
5554         decl_loc_table): New.
5555         (lookup_decl_loc): New function.
5556         (add_var_loc_to_decl): New function.
5557         (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
5558         only if can_use_fbreg.
5559         (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
5560         functions.
5561         (loc_descriptor): Likewise. Process VAR_LOCATION.
5562         (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
5563         (loc_descriptor_from_tree): Call mem_loc_descriptor with
5564         can_use_fbreg == true.
5565         (add_location_or_const_value_attribute): Added parameter enum
5566         dwarf_attribute attr, generate attribute ATTR.  Create the location list.
5567         (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
5568         (gen_formal_parameter_die): Call add_location_or_const_value_attribute
5569         with attr == DW_AT_location.
5570         (gen_subprogram_die): Generate the location list for DW_AT_frame_base
5571         if frame_base_decl is defined and has a location list.
5572         (gen_variable_die): Call add_location_or_const_value_attribute with
5573         attr == DW_AT_location.
5574         (dwarf2out_var_location): New function.
5575         (dwarf2out_begin_function): New function.
5576         (dwarf2out_init): Create decl_loc_table.
5577
5578 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
5579
5580         * loop.c (force_movables): Transitively increase the priorities of
5581         all insns forces by an insn, not just the first one.
5582
5583 2004-02-06  Josef Zlomek  <zlomekj@suse.cz>
5584             Daniel Berlin <dberlin@dberlin.org>
5585
5586         Josef Zlomek  <zlomekj@suse.cz>
5587         * Makefile.in (var-tracking.o): New.
5588         * common.opt (fvar-tracking): New.
5589         * flags.h (flag_var_tracking): New.
5590         * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
5591         * opts.c (common_handle_option): Add OPT_fvar_tracking.
5592         * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
5593         * rtl.c (note_insn_name): Likewise.
5594         * rtl.def (VAR_LOCATION): New.
5595         * rtl.h (NOTE_VAR_LOCATION): New.
5596         (NOTE_VAR_LOCATION_DECL): New.
5597         (NOTE_VAR_LOCATION_LOC): New.
5598         (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
5599         (variable_tracking_main): New exported function.
5600         * timevar.def (TV_VAR_TRACKING): New.
5601         * toplev.c (enum dump_file_index): Added DFI_vartrack.
5602         (dump_file): "vartrack" was added (-dV).
5603         (flag_var_tracking): New.
5604         (f_options): "var-tracking" was added.
5605         (rest_of_handle_variable_tracking): New function.
5606         (rest_of_compilation): Run variable tracking.
5607         (process_options): If user has not specified flag_var_tracking set it
5608         according to optimize, debug_info_level and debug_hooks.
5609         * tree.h (frame_base_decl): New.
5610         * var-tracking.c: New file.
5611         * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
5612         (ia64_override_options): Set flags to run variable tracking in machine
5613         dependent reorg instead of toplev.c.
5614         (ia64_reorg): Run variable tracking if wanted.
5615         * doc/invoke.texi: Mention variable tracking in -dV,
5616         add and -fvar-tracking.
5617         * doc/passes.texi: Added variable tracking pass.
5618
5619         Daniel Berlin <dberlin@dberlin.org>
5620         * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
5621         * dbxout.c (dbx_debug_hooks): Likewise.
5622         (xcoff_debug): Likewise.
5623         * debug.c (do_nothing_debug_hooks): Likewise.
5624         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5625         * dwarfout.c (dwarf_debug_hooks): Likewise.
5626         * sdbout.c (sdb_debug_hooks): Likewise.
5627         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5628         * final.c (final_scan_insn): Call var_location debug hook for each
5629         NOTE_INSN_VAR_LOCATION.
5630
5631 2004-02-06  Jan Hubicka  <jh@suse.cz>
5632
5633         * flow.c (update_life_info): Allocate reg_deaths when called from
5634         scheudler.
5635         (attempt_auto_inc):  Update life ranges accordingly.
5636
5637 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
5638
5639         PR debug/11816
5640         * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
5641
5642 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
5643
5644         * cfganal.c (flow_call_edges_add): Never split a libcall block.
5645
5646 2004-02-06  Daniel Berlin  <dberlin@dberlin.org>
5647
5648         * dwarf2out.c (output_loc_list): Don't use deltas if we have
5649         a separate line info table in use.
5650         Use the correct size for terminators.
5651         (output_die): Use offset, not delta.
5652
5653 2004-02-06  H.J. Lu  <hongjiu.lu@intel.com>
5654
5655         * doc/invoke.texi: Remove the pni option from -mfpmath=.
5656
5657 2004-02-06  Jan Hubicka  <jh@suse.cz>
5658
5659         * recog.c (split_all_insns): Do not update reg info.
5660         * regrename.c (regrename_optimize): Likewise.
5661         * toplev.c (rest_of_handle_reorder_blocks): Likewise.
5662         * flow.c (struct propagate_block_info): Add insn_num field.
5663         (reg_deaths): New array.
5664         (life_analysis): Free reg_deaths info.
5665         (allocate_reg_life_data): Allocate reg_deaths array.
5666         (propagate_one_insn): Use new array.
5667         (init_propagate_block): Initialize it.
5668         (free_propagate_block_info): Finish compuation of
5669         REG_LIVE_LENGTH
5670         (attempt_auto_inc): Sanity check that REG_INFO is not
5671         computed at same time.
5672         (mark_used_regs): Update new array.
5673
5674         * reg-stack.c (subst_stack_regs): Unshare clobbers before
5675         substitution.
5676
5677 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5678
5679         * config/s390/s390.md (*extendsiqi2_short_displ): Change to
5680         *extendqisi2_short_displ.
5681
5682 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
5683
5684         * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
5685         * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
5686         (emit_library_call_value_1): Likewise pass nargs.
5687         * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
5688         * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
5689         * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
5690         parameter instead of scanning TYPE_ARGS_TYPES to count args.
5691         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
5692         prototype.
5693         * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
5694         (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
5695         (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
5696         * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
5697         INIT_CUMULATIVE_ARGS.
5698         * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
5699         * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
5700         config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
5701         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
5702         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
5703         config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
5704         config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
5705         config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
5706         config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
5707         config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
5708         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
5709         config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
5710
5711 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5712
5713         * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
5714         possible.
5715
5716 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5717
5718         * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
5719         note containing (plus (reg) (const_int)), where reg is an
5720         eliminable reg, then perform the register elimination without
5721         depending on eliminate_regs().
5722
5723 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5724
5725         * config/arc/arc.c (arc_return_in_memory): Check the return
5726         value of int_size_in_bytes against -1.  Don't check
5727         TREE_ADDRESSABLE.
5728         * config/avr/avr.c (avr_return_in_memory): Check the return
5729         value of int_size_in_bytes against -1.
5730         * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
5731         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
5732         Likewise.
5733         * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
5734         * config/stormy16/stormy16.c (xstormy16_return_in_memory):
5735         Likewise.
5736
5737 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5738
5739         * config/frv/frv-protos.h: Remove the prototype for
5740         frv_setup_incoming_varargs.
5741         * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
5742         (frv_setup_incoming_varargs): Make it static.
5743         * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
5744
5745 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5746
5747         * config/fr30/fr30-protos.h: Remove the prototype for
5748         fr30_setup_incoming_varargs.
5749         Update the prototypes for fr30_num_arg_regs and
5750         fr30_function_arg_partial_nregs.
5751         * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
5752         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5753         (fr30_setup_incoming_varargs): Make it static.
5754         Add argument second_time.  Don't do anything when second_time
5755         is nonzero.
5756         (fr30_num_arg_regs): Change the type of the first argument to
5757         enum machine_mode.
5758         (fr30_function_arg_partial_nregs): Change the type of the
5759         second argument to enum machine_mode.
5760         * config/fr30/fr30.h (STRUCT_VALUE): Remove.
5761         (SETUP_INCOMING_VARARGS): Remove.
5762
5763 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5764
5765         * config/arc/arc-protos.h: Remove the prototype for
5766         arc_setup_incoming_varargs.
5767         * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
5768         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5769         (arc_setup_incoming_varargs): Make it static.
5770         (arc_external_libcall): Likewise.
5771         * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
5772         Remove the commented-out definition of
5773         ASM_OUTPUT_EXTERNAL_LIBCALL.
5774
5775 2004-02-05  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
5776
5777         * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
5778         to $$(slibdir) in the installation commands.
5779
5780 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
5781
5782         * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
5783         with inner_regno, not regno.
5784         * rtlanal.c (refers_to_regno_p): Same.
5785
5786 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5787
5788         * config.gcc: Remove i370 support.
5789
5790 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
5791
5792         * doc/install.texi:  Update automake and autoconf version
5793         requirements.  Note where to find gcj automake version.
5794
5795 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
5796
5797         * Makefile.in (generate-manpages): Move dependencies to ...
5798         (man): here.
5799         * doc/makefile.texi: Document new targets.
5800         * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
5801
5802 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
5803
5804         PR/13485
5805         Makefile.in (srcextra):  Add a level of indirection to ...
5806         (gcc.srcextra): ... here.
5807         (po-generated): Delete.
5808         (po/$(PACKAGE).pot: Use srcextra instead of po-generated.  Depend on
5809         options.c.
5810         (start.encap): Remove superfluous lang.srcextra dependency.
5811         objc/Make-lang.in (po-generated):  Delete.
5812
5813 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5814
5815         * config/ia64/ia64.c (REG_GP): Remove.
5816
5817 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5818
5819         * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
5820
5821 2004-02-05  Devang Patel  <dpatel@apple.com>
5822
5823         * dwarf2out.c (force_type_die): Look up input type itself
5824         instead of root_type() of type.
5825
5826 2004-02-05  Andreas Krebbel  <krebbel1@de.ibm.com>
5827
5828         * config/s390/s390.md ("*tmqidi_ext"): New insn.
5829         ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
5830         pre-reload splitters are transformed to post-reload
5831         define_insn_and_split patterns.
5832         ("*tmqisi_ext"): Renamed old "*tmqi_ext".
5833
5834 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5835
5836         * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
5837         TARGET_PROMOTE_PROTOTYPES.
5838
5839 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5840
5841         PR middle-end/13750
5842         Revert:
5843         2004-01-15  Geoffrey Keating  <geoffk@apple.com>
5844         PR pch/13361
5845         * c-typeck.c (constructor_asmspec): Delete.
5846         (struct initializer_stack): Delete field 'asmspec'.
5847         (start_init): Delete saving of asmspec.
5848         (finish_init): Don't update constructor_asmspec.
5849         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
5850         * stmt.c (expand_asm): Duplicate strings from tree.
5851         (expand_asm_operands): Likewise.
5852         * tree.c (tree_size): Update computation of size of STRING_CST.
5853         (make_node): Don't make STRING_CST nodes.
5854         (build_string): Allocate string with tree node.
5855         * tree.def (STRING_CST): Update comment.
5856         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
5857         (tree_string): Place contents of string in tree node.
5858         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
5859         from tree.
5860
5861 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
5862
5863         * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
5864         msgid.
5865
5866 2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
5867
5868         * config/rs6000/altivec.md (*movv4si_internal): At least one
5869         operand must be altivec_register_operand.
5870         (*movv8hi_internal1): Likewise.
5871         (*movv16qi_internal1): Likewise.
5872         (*movv4sf_internal1): Likewise.
5873
5874 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
5875
5876         * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
5877         * configure: Regenerate.
5878
5879 2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
5880
5881         * doc/install.texi: Update description of --gxx-include-dir to
5882         give correct default value.
5883
5884 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5885
5886         * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
5887         8 with MAC_REG.
5888
5889 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5890
5891         * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
5892         gen_rtx_PARALLEL.
5893
5894 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5895
5896         * emit-rtl.c: Update the comment about the file.
5897
5898 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
5899
5900         * sourcebuild.texi (Test Idioms): Update testcase naming
5901         conventions.
5902
5903 2004-02-04  Per Bothner  <per@bothner.com>
5904
5905         Partially revert/redo 2003-10-01 change; fix -fworking-directory.
5906         * c-ppoutput.c (pp_dir_change):  New function.
5907         * c-common.h (pp_dir_change):  New declaration.
5908         * cpplib.h (struct cpp_options):  Remove working_directory field.
5909         * cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
5910         (cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
5911         Don't handle -fworking_directory here, but in c_common_post_options.
5912         (read_original_directory): Don't back up when done.
5913         Don't clear no-longer used working_directory flag.
5914         * cpplib.h:  Update declarations to match.
5915         * c-lex.c (cb_dir_change):  Move to c-opts.c.
5916         (init_c_lex):  Don't set dir_change callback here, since we want
5917         to set it even if flag_preprocess_only.
5918         * c-opts.c (cb_dir_change):  Function moved from c-lex.c.
5919         (c_common_post_options):  Set dir_change callback.
5920         Call pp_dir_change if approporiate.
5921         (finish_options):  Don't call cpp_find_main_file here.  Hence remove
5922         unneeded parameter and result. Do LC_RENAME for <built-in>.
5923         (c_common_post_options):  Call cpp_read_main_file here instead.
5924         (c_common_init):  Update accordingly.
5925         (push_command_line_include):  Don't cpp_push_main_file.
5926         Do LC_RENAME rather than LC_LEASE to get back to main file.
5927         Compared to pre-10-01 version, inline cpp_rename_to_main_file.
5928         (c_common_parse_file):  Call cpp_read_main_file for subsequent main
5929         files, but call finish_options for all files.
5930         * c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
5931         * fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
5932         cpp_find_main_file + cpp_push_main_file.
5933         * c-lex.c (fe_file_change):  Don't set main_input_filename here.
5934         * opts.c (handle_options):  Only set main_input_filename first time.
5935
5936 2004-02-05  Ian Lance Taylor  <ian@wasabisystems.com>
5937
5938         * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
5939
5940 2004-02-04  Geoffrey Keating  <geoffk@apple.com>
5941
5942         * reload.c (find_equiv_reg): When checking for register overlap,
5943         don't index hard_regno_nregs with a pseudo-reg.
5944
5945 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
5946
5947         * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
5948
5949 2004-02-04  David Edelsohn  <edelsohn@gnu.org>
5950
5951         * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
5952         against FIRST_PSEUDO_REGISTER.
5953
5954 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5955
5956         * Makefile.in: Move target, host overrides after per-language
5957         fragments.
5958
5959         * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
5960         (GNATLIBCFLAGS): Remove -g.
5961
5962 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5963
5964         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
5965         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
5966         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
5967         config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
5968         config/pdp11/pdp11.c, config/rs6000/rs6000.c,
5969         config/sparc/sparc.c, config/vax/vax.c: Revert the
5970         replacements of "FALLTHRU" with "Fall through" done in the
5971         previous patch.
5972
5973 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5974
5975         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
5976         config/arm/arm.c, config/arm/arm.md,
5977         config/cris/cris-protos.h, config/fr30/fr30.c,
5978         config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
5979         config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
5980         config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
5981         config/ip2k/ip2k.md, config/ip2k/libgcc.S,
5982         config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
5983         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
5984         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
5985         config/ns32k/netbsd.h, config/ns32k/ns32k.c,
5986         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
5987         config/rs6000/darwin-ldouble.c, config/s390/s390.h,
5988         config/s390/s390.md, config/sparc/netbsd-elf.h,
5989         config/sparc/openbsd.h, config/sparc/sparc.c,
5990         config/xtensa/lib2funcs.S: Fix comment formatting.
5991
5992 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5993
5994         * config/alpha/alpha.c, config/arc/arc.c,
5995         config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
5996         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
5997         config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
5998         config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
5999         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6000         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
6001         config/iq2000/iq2000.c, config/m32r/m32r.c,
6002         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
6003         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
6004         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
6005         config/rs6000/rs6000.h, config/sparc/sparc.c,
6006         config/vax/vax.c: Fix comment typos.  Follow spelling
6007         conventions.
6008
6009 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6010
6011         * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
6012         caller-save.c, df.h, genconfig.c, global.c, lcm.c,
6013         ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
6014         sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
6015         config/arm/fpa.md, config/arm/iwmmxt.md,
6016         config/arm/netbsd-elf.h, config/arm/netbsd.h,
6017         config/m68hc11/m68hc11.md, config/mips/iris5.h,
6018         config/mn10300/mn10300.md, config/rs6000/altivec.md,
6019         config/sparc/netbsd-elf.h: Update copyright.
6020
6021 2004-02-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
6022
6023         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
6024         for all modes whose size is greater than 8 bytes if ARCH32.
6025         (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
6026         by reference if ARCH32.
6027
6028 2004-02-04  Aldy Hernandez  <aldyh@redhat.com>
6029
6030         * cgraphunit.c (cgraph_postorder): Fix typo in comment.
6031
6032 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
6033
6034         * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
6035         to before adddi3 insn patterns.
6036         ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
6037         "reload_insi"): Move to before addsi3 insn patterns.
6038
6039 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
6040
6041         * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
6042         parameter.  Use it instead of current_function_is_thunk.
6043         * function.h (struct function): Update documentation for is_thunk.
6044         * tree.h (CALL_FROM_THUNK_P): New macro.
6045         * config/alpha/alpha.c (alpha_sa_mask): Do not check
6046         no_new_pseudos when testing current_function_is_thunk.
6047         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
6048
6049 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6050
6051         * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
6052         TARGET_SETUP_INCOMING_VARARGS.
6053
6054 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6055
6056         * emit-rtl.c (gen_rtx): Remove.
6057         * genattrtab.c: Don't mention gen_rtx in a comment.
6058         * rtl.h: Remove the prototype for gen_rtx.
6059         * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
6060
6061 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6062
6063         * config/arc/arc.h, config/fr30/fr30.h
6064         (SETUP_INCOMING_VARARGS): Remove the target-independent
6065         comments.
6066         * doc/tm.texi: Don't mention deprecated target macros.
6067
6068 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6069
6070         * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
6071         target-independent comment.
6072
6073 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6074
6075         * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
6076         mention deprecated target macros.
6077
6078 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6079
6080         * config.gcc: Remove obsolete ports and configurations.
6081         * config/linux-aout.h, config/netware.h,
6082         config/t-linux-gnulibc1, config/d30v/abi,
6083         config/d30v/d30v-protos.h, config/d30v/d30v.c,
6084         config/d30v/d30v.h, config/d30v/d30v.md,
6085         config/d30v/libgcc1.asm, config/d30v/t-d30v,
6086         config/dsp16xx/dsp16xx-modes.def,
6087         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
6088         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
6089         config/i370/README, config/i370/i370-c.c,
6090         config/i370/i370-protos.h, config/i370/i370.c,
6091         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6092         config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
6093         config/i386/freebsd-aout.h, config/i386/linux-aout.h,
6094         config/i386/moss.h, config/i386/netware.h,
6095         config/i386/svr3.ifile, config/i386/svr3dbx.h,
6096         config/i386/svr3gas.h, config/i386/svr3z.ifile,
6097         config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
6098         config/i960/i960-c.c, config/i960/i960-coff.h,
6099         config/i960/i960-modes.def, config/i960/i960-protos.h,
6100         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6101         config/i960/rtems.h, config/i960/t-960bare,
6102         config/m68k/hp310.h, config/m68k/hp320.h,
6103         config/m68k/hp320base.h, config/m68k/m68kv4.h,
6104         config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
6105         Remove.
6106         * doc/extend.texi, doc/install.texi, doc/invoke.texi,
6107         doc/md.texi: Remove mentions of obsolete ports.
6108
6109 2004-02-04  Jan Hubicka  <jh@suse.cz>
6110
6111         * alias.c (find_base_term, get_addr):  Do not dereference NULL
6112         pointer when all VALUE's locations has been invalidated.
6113         (rtx_equal_for_memref_p): Simplify checking of VALUEs.
6114
6115 2004-02-03  Wolfgang Bangerth  <bangerth@dealii.org>
6116
6117         * doc/invoke.texi (x86 options): Fix spelling/wording.
6118
6119 2004-02-03  Richard Sandiford  <rsandifo@redhat.com>
6120
6121         * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
6122         put the original string in a comment.
6123         * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
6124         * config/mips/mips.c (mips_output_ascii): Likewise.
6125         * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
6126
6127 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6128
6129         * system.h (GIV_SORT_CRITERION): Poison.
6130         * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
6131         * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
6132
6133 2004-02-03  Roger Sayle  <roger@eyesopen.com>
6134
6135         PR target/9348
6136         * expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
6137         multiplies with a multiplication of the wrong signedness, its the
6138         signedness of the multiplication that we've performed that needs to
6139         be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
6140         if expand_mult_highpart_adjust places the result in target.
6141
6142 2004-02-03  Richard Henderson  <rth@redhat.com>
6143
6144         * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
6145
6146 2004-02-03  J"orn Rennecke <joern.rennecke@superh.com>
6147
6148         * config.gcc (sh[234]l): Use little endian fragments.
6149
6150 2004-02-03  Paul Koning  <pkoning@equallogic.com>
6151
6152         * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
6153         * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
6154         * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
6155         encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
6156         floating point format.
6157         (pdp11_f_format, pdp11_d_format): New real_format descriptors for
6158         the above functions.
6159         (output_move_quad): Output float values in correct target format.
6160         (legitimate_const_double_p): New function.
6161         * config/pdp11/pdp11.h: Fix typos.
6162         (FLOAT_WORDS_BIG_ENDIAN): Add definition.
6163         (TARGET_FLOAT_FORMAT): Ditto.
6164         (pdp11_f_format, pdp11_d_format): Add external declarations.
6165         (MAX_REGS_PER_ADDRESS): Corrected.
6166         (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
6167         (PRINT_OPERAND): Output float literals in target format.
6168
6169 2004-02-03  Mark Mitchell  <mark@codesourcery.com>
6170
6171         PR c++/13975
6172         * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
6173         TI_PRIVATE.
6174         (access_public_node): Redefine.
6175         (access_protected_node): Likewise.
6176         (access_private_node): Likewise.
6177         * tree.c (build_common_tree_nodes): Create access_public_node,
6178         access_protected_node, and access_private_node.
6179
6180 2004-02-03  Steve Ellcey  <sje@cup.hp.com>
6181
6182         * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
6183         (MASK_INLINE_INT_DIV_THR): Ditto.
6184         (MASK_INLINE_SQRT_LAT): Ditto.
6185         (MASK_INLINE_SQRT_THR): Ditto.
6186         (MASK_DWARF2_ASM): Ditto.
6187         (MASK_EARLY_STOP_BITS): Ditto.
6188
6189 2004-02-02  Paul Brook  <paul@codesourcery.com>
6190
6191         Merge from csl-arm-branch.
6192
6193         2004-01-30  Paul Brook  <paul@codesourcery.com>
6194
6195         * aof.h (REGISTER_NAMES): Add vfp reg names
6196         (ADDITIONAL_REGISTER_NAMES): Ditto.
6197         * aout.h (REGISTER_NAMES): Ditto.
6198         (ADDITIONAL_REGISTER_NAMES): Ditto.
6199         * arm-protos.h: Update/Add Prototypes.
6200         * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
6201         Only allow 0.0 for VFP.
6202         (fp_consts_inited): Rename from fpa_consts_inited.  Update users.
6203         (values_fp): Rename from values_fpa.  Update Users.
6204         (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
6205         Update users.  Only check valid constants for this hardware.
6206         (arm_float_rhs_operand): Rename from fpa_rhs_operand.  Update Users.
6207         Only allow consts for FPA.
6208         (arm_float_add_operand): Rename from fpa_add_operand.  Update users.
6209         Only allow consts for FPA.
6210         (use_return_insn): Check for saved VFP regs.
6211         (arm_legitimate_address_p): Handle VFP DFmode addressing.
6212         (arm_legitimize_address): Ditto.
6213         (arm_general_register_operand): New function.
6214         (vfp_mem_operand): New function.
6215         (vfp_compare_operand): New function.
6216         (vfp_secondary_reload_class): New function.
6217         (arm_float_compare_operand): New function.
6218         (vfp_print_multi): New function.
6219         (vfp_output_fstmx): New function.
6220         (vfp_emit_fstm): New function.
6221         (arm_output_epilogue): Output VPF reg restore code.
6222         (arm_expand_prologue): Output VFP reg save code.
6223         (arm_print_operand): Add 'P'.
6224         (arm_hard_regno_mode_ok): Return modes for VFP regs.
6225         (arm_regno_class): Return classes for VFP regs.
6226         (arm_compute_initial_elimination_offset): Include space for VFP regs.
6227         (arm_get_frame_size): Ditto.
6228         * arm.h (FIXED_REGISTERS): Add VFP regs.
6229         (CALL_USED_REGISTERS): Ditto.
6230         (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
6231         (FIRST_VFP_REGNUM): Define.
6232         (LAST_VFP_REGNUM): Define.
6233         (IS_VFP_REGNUM): Define.
6234         (FIRST_PSEUDO_REGISTER): Include VFP regs.
6235         (HARD_REGNO_NREGS): Handle VFP regs.
6236         (REG_ALLOC_ORDER): Add VFP regs.
6237         (enum reg_class): Add VFP_REGS.
6238         (REG_CLASS_NAMES): Ditto.
6239         (REG_CLASS_CONTENTS): Ditto.
6240         (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
6241         (REG_CLASS_FROM_LETTER): Add 'w'.
6242         (EXTRA_CONSTRAINT_ARM): Add 'U'.
6243         (EXTRA_MEMORY_CONSTRAINT): Define.
6244         (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
6245         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
6246         (REGISTER_MOVE_COST): Ditto.
6247         (PREDICATE_CODES): Add arm_general_register_operand,
6248         arm_float_compare_operand and vfp_compare_operand.
6249         * arm.md (various): Rename as above.
6250         (divsf3): Enable when TARGET_VFP.
6251         (divdf3): Ditto.
6252         (movdfcc): Ditto.
6253         (sqrtsf2): Ditto.
6254         (sqrtdf2): Ditto.
6255         (arm_movdi): Disable when TARGET_VFP.
6256         (arm_movsi_insn): Ditto.
6257         (movsi): Only split with general regs.
6258         (cmpsf): Use arm_float_compare_operand.
6259         (push_fp_multi): Restrict to TARGET_FPA.
6260         (vfp.md): Include.
6261         * vfp.md: New file.
6262         * fpa.md (various): Rename as above.
6263         * doc/md.texi: Document ARM w and U constraints.
6264
6265         2004-01-15  Paul Brook  <paul@codesourcery.com>
6266
6267         * config.gcc: Add with_fpu.  Allow with-float=softfp.
6268         * config/arm/arm.c (arm_override_options): Rename *-s to *s.
6269         Break out of loop when we find a float-abi.  Fix typo.
6270         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
6271         Set -mfloat-abi=.
6272         * doc/install.texi: Document --with-fpu.
6273
6274         2003-01-14  Paul Brook  <paul@codesourcery.com>
6275
6276         * config.gcc (with_arch): Add armv6.
6277         * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
6278         * config/arm/arm.c (arm_overrride_options): Ditto.
6279
6280         2004-01-08  Richard Earnshaw  <rearnsha@arm.com>
6281
6282         * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
6283         (FL_ARCH6): Renamed from FL_ARCH6J.
6284         (arm_arch3m): Renamed from arm_fast_multiply.
6285         (arm_arch6): Renamed from arm_arch6j.
6286         * arm.h: Update all uses of above.
6287         * arm-cores.def: Likewise.
6288         * arm.md: Likewise.
6289
6290         * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
6291         not arm6j.  Add entry for arch armv6.
6292
6293         2004-01-07  Richard Earnshaw  <rearnsha@arm.com>
6294
6295         * arm.c (arm_emit_extendsi): Delete.
6296         * arm-protos.h (arm_emit_extendsi): Delete.
6297         * arm.md (zero_extendhisi2): Also handle zero-extension of
6298         non-subregs.
6299         (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
6300         (thumb_zero_extendhisi2): Only match if not v6.
6301         (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
6302         (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
6303         (thumb_extendqisi2): Likewise.
6304         (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
6305         (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
6306         (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
6307         (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
6308         (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
6309         (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
6310         (arm_zero_extendhisi2addsi): Remove subreg.  Add attributes.
6311         (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
6312         (arm_extendqisi2addsi): Likewise.
6313
6314         2003-12-31  Mark Mitchell  <mark@codesourcery.com>
6315
6316         Revert this change:
6317         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6318         + REG addressing modes.
6319
6320         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6321         + REG addressing modes.
6322
6323         2003-12-30  Mark Mitchell  <mark@codesourcery.com>
6324
6325         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
6326         CONSTANT_P_RTX.
6327
6328         2003-30-12  Paul Brook  <paul@codesourcery.com>
6329
6330         * longlong.h: protect arm inlines with !defined (__thumb__)
6331
6332         2003-30-12  Paul Brook  <paul@codesourcery.com>
6333
6334         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
6335
6336         2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>
6337
6338         * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
6339         change.
6340
6341         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
6342
6343         * builtins.c (expand_builtin_apply_args_1): Add pretend args size
6344         to the virtual incoming args pointer for downward stacks.
6345
6346         2003-12-29  Paul Brook  <paul@codesourcery.com>
6347
6348         * config/arm/arm-cores.def: Add cost function.
6349         * config/arm/arm.c (arm_*_rtx_costs): New functions.
6350         (arm_rtx_costs): Remove
6351         (struct processors): Add rtx_costs field.
6352         (all_cores, all_architectures): Ditto.
6353         (arm_override_options): Set targetm.rtx_costs.
6354         (thumb_rtx_costs): New function.
6355         (arm_rtx_costs_1): Remove cases handled elsewhere.
6356         * config/arm/arm.h (processor_type): Add COSTS parameter.
6357
6358         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
6359
6360         * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
6361         (arm926ejs.md): Include it.
6362         * config/arm/arm926ejs.md: New pipeline description.
6363
6364         2003-12-24  Paul Brook  <paul@codesourcery.com>
6365
6366         * config/arm/arm.c (arm_arch6j): New variable.
6367         (arm_override_options): Set it.
6368         (arm_emit_extendsi): New function.
6369         * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
6370         * config/arm/arm.h (arm_arch6j): Declare.
6371         * config/arm/arm.md: Add sign/zero extend insns.
6372
6373         2003-12-23  Paul Brook  <paul@codesourcery.com>
6374
6375         * config/arm/arm.c (all_architectures): Add armv6.
6376         * doc/invoke.texi: Document it.
6377
6378         2003-12-19  Paul Brook  <paul@codesourcery.com>
6379
6380         * config/arm/arm.md: Add load1 and load_byte "type" attrs.  Modify
6381         insn patterns to match.
6382         * config/arm/arm-generic.md: Ditto.
6383         * config/arm/cirrus.md: Ditto.
6384         * config/arm/fpa.md: Ditto.
6385         * config/amm/iwmmxt.md: Ditto.
6386         * config/arm/arm1026ejs.md: Ditto.
6387         * config/arm/arm1135jfs.md: Ditto.  Add insn_reservation and bypasses
6388         for 11_loadb.
6389
6390         2003-12-18  Nathan Sidwell  <nathan@codesourcery.com>
6391
6392         * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
6393         * config/arm/arm.c (arm_adjust_cost): Check shift cost for
6394         TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
6395         (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
6396         arm_no_early_mul_dep): Correctly deal with conditional execution,
6397         parallels and single shift operations.
6398         (arm_no_early_alu_shift_value_dep): Define.
6399         * arm.md (attr type): Replace 'normal' with 'alu',
6400         'alu_shift' and 'alu_shift_reg'.
6401         (attr core_cycles): Adjust.
6402         (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
6403         *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
6404         *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
6405         *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
6406         *arith_shiftsi_compare0_scratch, *sub_shiftsi,
6407         *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
6408         *if_shift_move, *if_move_shift, *if_shift_shift): Set type
6409         attribute appropriately.
6410         * config/arm/arm1026ejs.md (alu_op): Adjust.
6411         (alu_shift_op, alu_shift_reg_op): New.
6412         * config/arm/arm1136.md: Add better bypasses for early
6413         registers. Remove load[234] and store[234] bypasses.
6414         (11_alu_op): Adjust.
6415         (11_alu_shift_op, 11_alu_shift_reg_op): New.
6416
6417         2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
6418
6419         * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
6420         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
6421         * config/arm/arm.c (arm_no_early_store_addr_dep,
6422         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
6423         * config/arm/arm1026ejs.md: Add load-store bypass.
6424         * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
6425         Add bypasses between instructions.
6426
6427         2003-12-10  Paul Brook  <paul@codesourcery.com>
6428
6429         * config/arm/arm.c (arm_fpu_model): New variable.
6430         (arm_fload_abi): New variable.
6431         (target_fpe_name): Rename from target_fp_name.
6432         (target_fpu_name): New variable.
6433         (arm_is_cirrus): Remove.
6434         (fpu_desc): New struct.
6435         (all_fpus): Define.
6436         (pf_model_for_fpu): Define.
6437         (all_loat_abis): Define.
6438         (arm_override_options): Set fp arch flags based on -mfpu=
6439         and -float-abi=.
6440         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
6441         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
6442         (*): Use new TARGET_* flags.
6443         * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
6444         (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
6445         (TARGET_SOFT_FLOAT): Ditto.
6446         (TARGET_SOFT_FLOAT_ABI): New.
6447         (TARGET_MAVERICK): Rename from TARGET_CIRRUS.  No longer implies
6448         TARGET_HARD_FLOAT.
6449         (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
6450         (TARGET_OPTIONS): Add -mfpu=.
6451         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
6452         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
6453         (arm_pf_model): Define.
6454         (arm_float_abi_type): Define.
6455         (fputype): Add FPUTYPE_VFP.  Change SOFT_FPA->NONE
6456         * config/arm/arm.md: Use new TARGET_* flags.
6457         * config/arm/cirrus.md: Ditto.
6458         * config/arm/fpa.md: Ditto.
6459         * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
6460         * config/arm/semi.h (ASM_SPEC): Ditto.
6461         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
6462         (FPUTYPE_DEFAULT): Set to VFP.
6463         * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
6464
6465         2003-11-22  Phil Edwards  <phil@codesourcery.com>
6466
6467         PR target/12476
6468         * config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
6469         'bx' instead of 'b' to avoid branch range restrictions.  Output
6470         the thunk immediately before the thunked-to function.
6471         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
6472         .thumb_func if a thunk is being generated.  Emit .code 16 along
6473         with .thumb_func if a thunk is not being generated.
6474
6475         2003-11-15  Nicolas Pitre <nico@cam.org>
6476
6477         * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
6478         arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
6479         * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
6480         (lshrdi3_iwmmxt): Renamed from lshrdi3.
6481         * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
6482
6483         2003-11-12  Steve Woodford  <scw@wasabisystems.com>
6484             Ian Lance Taylor  <ian@wasabisystems.com>
6485
6486         * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
6487         code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
6488
6489         2003-11-05  Phil Edwards  <phil@codesourcery.com>
6490
6491         * config/arm/arm.md (insn):  Add new V6 instruction names.
6492         (generic_sched):  New attr.
6493         * config/arm/arm-generic.md:  Use generic_sched here.
6494         * config/arm/arm1026ejs.md:  Do not model fetch/issue/decode
6495         stages of pipeline.  Adjust latency counts accordingly.
6496         * config/arm/arm1136jfs.md:  New file.
6497
6498         2003-10-28  Mark Mitchell  <mark@codesourcery.com>
6499
6500         * config/arm/arm.h (processor_type): New enumeration type.
6501         (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
6502         ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
6503         (CPP_CPU_ARCH_SPEC): Likewise.
6504         * config/arm/arm.c (arm_tune): New variable.
6505         (all_cores): Use cores.def.
6506         (all_architectures): Add representative processor.
6507         (arm_override_options): Restructure way in which tuning
6508         information is deduced.
6509         * arm.md: Update "insn" and "type" attributes throughout.
6510         (insn): New attribute.
6511         (type): Compute "mult" from "insn" attribute.  Add load2,
6512         load3, load4 alternatives.
6513         (arm automaton): Move to arm-generic.md.
6514         * config/arm/arm-cores.def: New file.
6515         * config/arm/arm-generic.md: Likewise.
6516         * config/arm/arm1026ejs.md: Likewise.
6517
6518 2004-02-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
6519
6520         * doc/invoke.texi (SPARC options): Remove -mflat and
6521         all -mxxx (xxx:chip) options.
6522         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
6523         * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
6524         * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
6525         * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
6526         * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
6527         * config/sparc/sparc.c: Likewise.
6528         (sparc_output_function_prologue): Remove TARGET_FLAT handling.
6529         (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
6530         (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
6531         (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
6532         (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
6533         (sparc_flat_must_save_register_p): Likewise.
6534         (sparc_flat_compute_frame_size): Likewise.
6535         (sparc_flat_save_restore): Likewise.
6536         (sparc_flat_function_prologue): Likewise.
6537         (sparc_flat_function_epilogue): Likewise.
6538         (sparc_flat_epilogue_delay_slots): Likewise.
6539         (sparc_flat_eligible_for_epilogue_delay): Likewise.
6540         (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
6541         * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
6542         (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
6543         (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
6544         (CONDITIONAL_REGISTER_USAGE): Likewise.
6545         (FRAME_POINTER_REQUIRED): Likewise.
6546         (INITIAL_ELIMINATION_OFFSET): Likewise.
6547         (BASE_RETURN_VALUE_REG): Likewise.
6548         (BASE_OUTGOING_VALUE_REG): Likewise.
6549         (BASE_PASSING_ARG_REG): Likewise.
6550         (BASE_INCOMING_ARG_REG): Likewise.
6551         (INCOMING_REGNO): Likewise.
6552         (OUTGOING_REGNO): Likewise.
6553         (LOCAL_REGNO): Likewise.
6554         (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
6555         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
6556         (EPILOGUE_USES): Likewise.
6557         * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
6558         ("flat" attribute): Delete.
6559         (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
6560         handling.
6561         (call followed by jump define_peephole's): Delete.
6562         (exception_receiver): Likewise.
6563         (builtin_setjmp_receiver): Likewise.
6564         * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
6565
6566 2004-02-03  Paolo Bonzini  <bonzini@gnu.org>
6567
6568         PR c/11658
6569         PR c/13994
6570         * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
6571         on langhooks.h.
6572         * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
6573         * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
6574         Include langhooks.h.  Replace c_common_truthvalue_conversion
6575         with the truthvalue_conversion language hook throughout.
6576         (expr_no_commas): Call default_conversion before save_expr
6577         for the first term of the production 'x ? : y'.
6578         * c-common.c (c_common_truthvalue_conversion): Remove
6579         obsolete block.  Invoke recursively the hook instead
6580         of this function.
6581         * c-convert.c (convert): handle ERROR_MARK_NODE.
6582         * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
6583         returned by the truthvalue_conversion language hook.
6584         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
6585         c_objc_common_truthvalue_conversion.
6586         * c-objc-common.c (c_objc_common_truthvalue_conversion):
6587         New function.
6588         * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
6589         * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
6590         c_objc_common_truthvalue_conversion.
6591
6592 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6593
6594         * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
6595         of gen_rtx.
6596         (LIBCALL_VALUE): Likewise.
6597         * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
6598         gen_rtx_CC0 instead of gen_rtx.
6599         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
6600         gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
6601         (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
6602         gen_rtx.
6603         (m68hc11_emit_logical): Likewise.
6604
6605 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6606
6607         * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
6608         config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
6609         config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
6610         config/m32r/m32r.md, config/m68hc11/m68hc11.c,
6611         config/mips/mips.md, config/mmix/mmix.c,
6612         config/mn10300/mn10300.c, config/mn10300/mn10300.md,
6613         config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
6614         config/rs6000/altivec.md, config/s390/s390.c,
6615         config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
6616         config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
6617         Use const0_rtx instead of GEN_INT (0).  Do the same for other
6618         constants that are readily available.
6619
6620 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6621
6622         * doloop.c, optabs.c, regmove.c, sched-deps.c,
6623         config/i386/i386.c, config/i386/i386.md: Use const0_rtx
6624         instead of GEN_INT (0).  Do the same for other constants that
6625         are readily available.
6626
6627 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6628
6629         * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
6630         gen_rtx.
6631         * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
6632         instead of gen_rtx.
6633         * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
6634         gen_rtx.
6635         * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
6636         gen_rtx_ASHIFT instead of gen_rtx.
6637         (udivmodqi4): Likewise.
6638
6639 2004-02-02  Richard Henderson  <rth@redhat.com>
6640
6641         PR target/13789
6642         * expr.c (store_expr): Use force_operand before emit_move_insn.
6643
6644 2004-02-02  Jeff Law  <law@redhat.com>
6645             Roger Sayle  <roger@eyesopen.com>
6646
6647         * tree.c (commutative_tree_code, associative_tree_code): New
6648         functions.
6649         (iterative_hash_expr): Use commutative_tree_code.
6650         * tree.h (commutative_tree_code, associative_tree_code): Declare.
6651         * fold-const.c (operand_equal_p): Use commutative_tree_code
6652         rather than inlining the commutativity check.
6653         (fold): Likewise.
6654
6655 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
6656
6657         * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
6658         * config/frv/frv-protos.h: Remove the prototype for
6659         frv_function_arg_keep_as_reference.
6660         * config/frv/frv.c (frv_function_arg_keep_as_reference):
6661         Remove.
6662         * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
6663         * config/stormy16/stormy16.h: Remove the commented-out
6664         definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
6665
6666 2004-02-03  Alan Modra  <amodra@bigpond.net.au>
6667
6668         PR target/13914
6669         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
6670         for retaddr_column.
6671
6672 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
6673
6674         * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
6675         gen_rtx.
6676
6677 2004-02-02  Eric Christopher  <echristo@redhat.com>
6678             Zack Weinberg  <zack@codesourcery.com>
6679
6680         * c-opts.c (c_common_handle_option): Add -finput-charset.
6681         * c.opt: Ditto.
6682         * cppcharset.c (one_iso88591_to_utf8): Remove.
6683         (convert_iso88591_utf8): Ditto.
6684         (conversion_tab): Remove 8859-1 converter.
6685         (_cpp_input_to_utf8): Remove.
6686         (_cpp_init_iconv_buffer): Ditto.
6687         (_cpp_close_iconv_buffer): Ditto.
6688         (_cpp_convert_input): New function.
6689         (_cpp_default_encoding): Ditto.
6690         * cpphash.h: Add/remove prototypes for above.
6691         * cppfiles.c (read_file_guts): Use _cpp_convert_input.
6692         * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
6693         for narrow execution and input character sets.
6694         * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
6695         * doc/cppopts.texi: Document -finput-charset.
6696
6697 2004-02-02  David Edelsohn  <edelsohn@gnu.org>
6698
6699         * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
6700         against FIRST_PSEUDO_REGISTER.
6701
6702 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
6703
6704         * doc/invoke.texi (SPARC options): Further improve.
6705
6706 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
6707
6708         * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
6709         config/h8300/h8300.c, config/ip2k/ip2k.md,
6710         config/iq2000/iq2000.c, config/mips/mips.c,
6711         config/rs6000/rs6000.c, config/rs6000/rs6000.md,
6712         config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
6713         config/v850/v850.md: Fix indentation.
6714
6715 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
6716
6717         * config/sparc/sparc.c (function_arg_slotno): Align TImode
6718         arguments on a 16-byte boundary in the parameter array if ARCH64.
6719         Split handling of TFmode.
6720
6721 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
6722
6723         * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
6724         Don't test CONSTANT_P (x).
6725         (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
6726         ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
6727         Fix misindentation.
6728
6729 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
6730
6731         * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
6732
6733 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
6734
6735         * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
6736         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
6737         config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
6738         config/iq2000/iq2000.c, config/m32r/m32r.c,
6739         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
6740         config/mn10300/mn10300.c, config/rs6000/rs6000.c,
6741         config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
6742         config/stormy16/stormy16.c, config/v850/v850.md,
6743         config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
6744
6745 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
6746
6747         * config/mcore/mcore.c (block_move_sequence): Replace
6748         gen_rtx_CONST_INT with GEN_INT.
6749
6750 2004-02-02  Jan Hubicka  <jh@suse.cz>
6751
6752         * alias.c (record_set): Use hard_regno_nregs.
6753         * bt-load.c (find_btr_reference, note_btr_set): Likewise.
6754         * builtins.c (apply_args_size): Likewise.
6755         * caller-save.c (setup_save_areas, save_call_clobbered_regs,
6756         mark_set_regs, add_stored_regs, mark_referenced_regs,
6757         insert_restore, insert_save, insert_one_insn): Likewise.
6758         * cfgcleanup.c: Include regs.h
6759         (mark_effect, mentions_nonequal_regs): Likewise.
6760         * cfgrtl.c (mark_killed_regs): Likewise
6761         * combine.c (update_table_tick, record_value_for_reg,
6762         record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
6763         reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
6764         reg_bitfield_target_p, distribute_notes): Likewise.
6765         * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
6766         exp_equiv_p, cse_insn): Likewise.
6767         * cselib.c (cselib_lookup): Likewise.
6768         (cselib_invalidate_regno, cselib_record_set): Likewise.
6769         * df.c (df_ref_record): Likewise.
6770         * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
6771         Likewise.
6772         * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
6773         count_or_remove_death_notes_bb): Likewise.
6774         * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
6775         * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
6776         mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
6777         * integrate.c (mark_stores): Likewise.
6778         * jump.c (delete_prior_computation): Likewise.
6779         * lcm.c (reg_dies, reg_becomes_live): Likewise.
6780         * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
6781         * loop.c (LOOP_REGNO_NREGS): Likewise.
6782         * postreload.c (reload_combine, reload_combine_note_store,
6783         reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
6784         * ra-colorize.c (combine, color_usable_p, get_free_reg,
6785         calculate_dont_begin, calculate_dont_begin, colorize_one_web,
6786         try_recolor_web, insert_coalesced_conflicts, check_colors,
6787         break_precolored_alias): Likewise.
6788         * ra-debug.c: Include regs.h
6789         (ra_print_rtx_object): Likewise.
6790         * ra-rewrite (choose_spill_colors): Likewise.
6791         (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
6792         * ra.c (init_ra): Likewise.
6793         * recog.c (reg_fits_class_p, peep2_reg_dead_p,
6794         peep2_find_free_register): Likewise.
6795         * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
6796         * regclass.c (hard_regno_nregs): New array.
6797         (init_reg_modes_once): Initialize it.
6798         (choose_hard_reg_mode): Use it.
6799         (record_reg_classes): Likewise.
6800         * regmove.c (mark_flags_life_zones): Likewise.
6801         * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
6802         scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
6803         copy_value, maybe_mode_change, find_oldest_value_reg,
6804         copyprop_hardreg_forward_1):
6805         * regs.h (hard_regno_nregs): Declare.
6806         * realod.c (reload_inner_reg_of_subreg): Use it.
6807         (push_reload, combine_reloads, find_dummy_reload,
6808         hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
6809         refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
6810         reload_adjust_reg_for_mode): Likewise.
6811         * reload1.c (compute_use_by_pseudos, count_pseudo,
6812         count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
6813         spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
6814         clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
6815         allocate_reload_reg, choose_reload_regs, emit_reload_insns,
6816         delete_output_reload): Likewise.
6817         * resource.c (update_live_status, mark_referenced_resources,
6818         mark_set_resources, mark_target_live_regs): Likewise.
6819         * rtlanal.c:  Include regs.h
6820         (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
6821         dead_or_set_regno_p, find_regno_note, find_reg_fusage,
6822         subreg_regno_offset, subreg_offset_representable_p,
6823         hoist_test_store): Likewise.
6824         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
6825         * sched-rgn.c (check_live_1, update_live_1): Likewise.
6826         * stmt.c: Include regs.h
6827         (decl_conflicts_with_clobbers_p): Likewise.
6828         * varasm.c (make_decl_rtl): Likewise.
6829         * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
6830
6831 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
6832
6833         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
6834         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
6835         config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
6836         config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
6837         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
6838         config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
6839         config/iq2000/iq2000.h, config/m32r/m32r.c,
6840         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6841         config/m68hc11/m68hc11.md, config/m68k/m68k.md,
6842         config/mcore/mcore.c, config/mcore/mcore.h,
6843         config/mcore/mcore.md, config/mips/mips.c,
6844         config/ns32k/ns32k.h, config/ns32k/ns32k.md,
6845         config/rs6000/rs6000.c, config/s390/s390.c,
6846         config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
6847         config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
6848         "gen_rtx (FOO, " with "gen_rtx_FOO (".
6849
6850 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
6851
6852         * config/h8300/h8300.md (two peephole2's): New.
6853
6854 2004-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
6855
6856         * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
6857         (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
6858         (ASM_CPU_SPEC): Likewise
6859         * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
6860         (ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.
6861
6862 2004-02-01  Roger Sayle  <roger@eyesopen.com>
6863
6864         * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
6865         isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
6866         (expand_builtin): Always call expand_builtin_pow.
6867
6868 2004-02-01  Roger Sayle  <roger@eyesopen.com>
6869
6870         * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
6871         BUILT_IN_SIGNBITL): New GCC builtins.
6872         * builtins.c (expand_builtin_signbit): New function to RTL expand
6873         calls to signbit, signbitf and signbitl as inline intrinsics.
6874         (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
6875         (fold_builtin_signbit): New function to perform constant folding
6876         of signbit, signbitf and signbitl.
6877         (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
6878
6879         * doc/extend.texi: Document new signbit{,f,l} builtins.
6880
6881 2004-02-01  Richard Sandiford  <rsandifo@redhat.com>
6882
6883         * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
6884
6885 2004-02-01  Chris Demetriou  <cgd@broadcom.com>
6886
6887         * config/mips/mips.h (PREDICATE_CODES): Remove entries for
6888         "mips_const_double_ok" and "simple_memory_operand", which were
6889         removed from the MIPS port with the mips-3_4-rewrite branch merge.
6890         * config/mips/mips.c (mips16_lay_out_constants): Update comment
6891         for removal of simple_memory_operand.
6892
6893 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6894
6895         * config/c4x/c4x.md: Use GEN_INT instead of
6896         gen_rtx (CONST_INT, ...).
6897
6898 2004-01-31  Richard Henderson  <rth@redhat.com>
6899
6900         * varasm.c (output_constant_pool): Don't zap the pool.
6901
6902 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6903
6904         * genrecog.c (decision_type): Add DT_const_int.
6905         (write_cond) [DT_const_int]: Print a comparison against small
6906         constant.
6907         (write_node): Simplify comparisons against small constants
6908         before printing tests.
6909
6910 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6911
6912         * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
6913         instead of gen_rtx_CONST_INT.
6914
6915 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6916
6917         * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
6918         instead of gen_rtx_CONST_INT.
6919
6920 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6921
6922         * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
6923         hook_bool_CUMULATIVE_ARGS_false.
6924         * targhooks.c (default_strict_argument_naming): Rename to
6925         hook_bool_CUMULATIVE_ARGS_false.
6926         * targhooks.h: Update the prototype for
6927         default_strict_argument_naming.
6928
6929 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6930
6931         * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
6932         * config/sh/sh.h: Likewise.
6933         * config/sh/sh.md: Likewise.
6934
6935 2004-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
6936
6937         * doc/invoke.texi (SPARC options): Restructure and update.
6938
6939 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6940
6941         * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
6942         STRICT_ARGUMENT_NAMING): Poison.
6943         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
6944         hook_bool_tree_false.
6945         * targhooks.c (default_promote_function_args): Remove.
6946         (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
6947         Don't check incoming.
6948         (default_strict_argument_naming): Don't use
6949         STRICT_ARGUMENT_NAMING.
6950         * targhooks.h: Remove the prototype for
6951         default_promote_function_args.
6952
6953 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6954
6955         * config/i386/i386-protos.h: Remove the prototype for
6956         ix86_setup_incoming_varargs.
6957         * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
6958         (ix86_setup_incoming_varargs): Make it static.
6959         * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
6960
6961 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6962
6963         * alloc-pool.c: Fix comment typos.
6964         * builtin-types.def: Likewise.
6965         * builtins.def: Likewise.
6966         * c-pretty-print.c: Likewise.
6967         * df.h: Likewise.
6968         * reload1.c: Likewise.
6969
6970 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6971
6972         * doc/invoke.texi: Follow spelling conventions.
6973         * doc/tm.texi: Likewise.
6974
6975 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6976
6977         * doc/install.texi: Fix typos.
6978         * doc/invoke.texi: Likewise.
6979
6980 2004-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
6981
6982         * config/s390/s390.c (s390_decompose_address): Do not treat virtual
6983         registers as pointers.
6984         * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
6985
6986 2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
6987
6988         * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
6989         and restore it to gen_lowpart_general on exit.
6990         (gen_lowpart_for_combine): Adjust all callers to go through
6991         gen_lowpart.
6992         * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
6993         and restore it to gen_lowpart_general on exit.
6994         (gen_lowpart_if_possible): Adjust all callers to go through
6995         gen_lowpart.
6996         * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
6997         (gen_lowpart): Declare as pointer to function, initialized to
6998         gen_lowpart_general.
6999         * rtl.h (gen_lowpart): Declare as pointer to function.
7000
7001 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
7002
7003         * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
7004         * calls.c: Likewise.
7005         * emit-rtl.c: Likewise.
7006         * function.c: Likewise.
7007         * reload1.c: Likewise.
7008         * config/i386/cygming.h: Likewise.
7009         * config/i386/i386.c: Likewise.
7010         * config/i386/winnt.c: Likewise.
7011
7012 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
7013
7014         PR bootstrap/9249
7015         * doc/install.texi: document --enable-__cxa_atexit option.
7016         * configure.ac: Disable __cxa_atexit if not supported.
7017         * configure: Regenerate.
7018
7019 2003-01-30  Daniel Berlin  <dberlin@dberlin.org>
7020
7021         * ggc-zone.c (ggc_free): New function.
7022
7023 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7024
7025         alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
7026         cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
7027         flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
7028         ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
7029         tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
7030         config/alpha/alpha.c, config/alpha/alpha.h,
7031         config/alpha/alpha.md, config/alpha/unicosmk.h,
7032         config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
7033         config/c4x/c4x-protos.h, config/c4x/c4x.md,
7034         config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
7035         config/frv/frvend.c, config/i386/cygming.h,
7036         config/i386/djgpp.h, config/i386/emmintrin.h,
7037         config/i386/gthr-win32.c, config/i386/i386-interix.h,
7038         config/i386/i386-protos.h, config/i386/openbsd.h,
7039         config/i386/winnt.c, config/i386/xm-mingw32.h,
7040         config/i386/xmmintrin.h, config/ia64/ia64.md,
7041         config/iq2000/iq2000.md, config/m32r/m32r.md,
7042         config/m68k/m68k.md, config/mcore/mcore-elf.h,
7043         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
7044         config/mips/iris5gas.h, config/mips/iris6.h,
7045         config/mips/iris6gas.h, config/mips/linux.h,
7046         config/mips/mips.md, config/mips/netbsd.h,
7047         config/mips/openbsd.h, config/mips/windiss.h,
7048         config/pa/fptr.c, config/rs6000/aix.h,
7049         config/rs6000/altivec.h, config/rs6000/darwin.h,
7050         config/rs6000/xcoff.h, config/s390/s390-protos.h,
7051         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
7052         config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
7053         config/sparc/sol2.h: Update copyright.
7054
7055 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
7056
7057         * Makefile.in (abs_docdir, abs_srcdir): Define.
7058         (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
7059
7060 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7061
7062         * genconfig.c (main): Have CC0_P check its operand even on a
7063         target without cc0.
7064
7065 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7066
7067         * config/alpha/alpha.c: Remove mentions of deprecates macros
7068         in comments, remove some target-independent comments about target
7069         macros, and/or add minimal function comments for target hook
7070         implementations.
7071         * config/avr/avr.c: Likewise.
7072         * config/ia64/ia64.h: Likewise.
7073         * config/ip2k/ip2k.c: Likewise.
7074         * config/iq2000/iq2000.c: Likewise.
7075         * config/m32r/m32r.h: Likewise.
7076         * config/m68hc11/m68hc11.c: Likewise.
7077         * config/mcore/mcore.c: Likewise.
7078         * config/mmix/mmix.c: Likewise.
7079         * config/mn10300/mn10300.c: Likewise.
7080         * config/pa/pa.c: Likewise.
7081         * config/pdp11/pdp11.c: Likewise.
7082         * config/rs6000/rs6000.h: Likewise.
7083         * config/sh/sh.c: Likewise.
7084         * config/sh/sh.h: Likewise.
7085         * config/sparc/sparc.c: Likewise.
7086         * config/sparc/sparc.h: Likewise.
7087         * config/stormy16/stormy16.c: Likewise.
7088         * config/xtensa/xtensa.c: Likewise.
7089
7090 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
7091
7092         PR optimization/12147
7093         * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
7094         RELOAD_FOR_OPADDR_ADDR.
7095         (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
7096         might be reused as RELOAD_FOR_OPADDR_ADDR register.
7097
7098 2004-01-30  Jan Hubicka  <jh@suse.cz>
7099
7100         * reload.c (get_secondary_mem): Fix updating of
7101         secondary_memlocs_elim_used.
7102
7103 2004-01-30  Richard Henderson  <rth@redhat.com>
7104
7105         * varasm.c (struct rtx_const, struct pool_constant): Remove.
7106         (MAX_RTX_HASH_TABLE): Remove.
7107         (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
7108         (first_pool, last_pool, pool_offset): Remove.
7109         (struct rtx_constant_pool): Split out from ...
7110         (struct varasm_status): ... here.  Reference one via pointer.
7111         (struct constant_descriptor_rtx): Merge struct pool_constant.
7112         (SYMHASH): Remove.
7113         (decode_rtx_const): Remove.
7114         (const_hash_rtx, compare_constant_rtx): Remove.
7115         (record_constant_rtx): Remove.
7116         (const_desc_rtx_hash, const_desc_rtx_eq): New.
7117         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
7118         (const_rtx_hash_1, const_rtx_hash): New.
7119         (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
7120         (simplify_subtraction): Use simplify_rtx.
7121         (force_const_mem): Rewrite to use new data structures.
7122         (find_pool_constant): Likewise.
7123         (get_pool_constant, get_pool_constant_mark,
7124         get_pool_constant_for_function, get_pool_mode,
7125         get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
7126         (output_constant_pool_2): Split out from output_constant_pool.
7127         (output_constant_pool_1): Likewise.  Use new pool datastructures.
7128         (output_constant_pool): Zap entire pool datastructure.
7129         (mark_constant): Use new pool datastructures.
7130         (mark_constants): Use for_each_rtx.
7131         (mark_constant_pool): Use new pool datastructures.
7132
7133 2004-01-30  Fariborz Jahanian <fjahanian@apple.com>
7134
7135         * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
7136         Copy operands[1] to pseudo for simplify_gen_subreg.
7137
7138 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7139
7140         * gcse.c (bypass_block): Fix a typo in the previous check-in
7141         to the file.
7142
7143 2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
7144
7145         * toplev.c: Include alloc-pool.h.
7146         * Makefile.in (toplev.c): Update dependencies.
7147
7148 2004-01-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7149
7150         * combine.c (simplify_shift_const, case XOR): Be careful when
7151         commuting XOR with ASHIFTRT.
7152
7153 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7154             Eric Botcazou  <ebotcazou@libertysurf.fr>
7155
7156         * config/sparc/sparc-protos.h: Remove the prototype for
7157         sparc_builtin_saveregs.
7158         * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7159         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7160         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7161         (TARGET_STRUCT_VALUE_RTX): Likewise.
7162         (TARGET_RETURN_IN_MEMORY): Likewise.
7163         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7164         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7165         (sparc_builtin_saveregs): Make it static.
7166         (sparc_promote_prototypes): New.
7167         (sparc_struct_value_rtx): Likewise.
7168         (sparc_return_in_memory): Likewise.
7169         * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
7170         (PROMOTE_FUNCTION_RETURN): Likewise.
7171         (RETURN_IN_MEMORY): Likewise.
7172         (STRUCT_VALUE): Likewise.
7173         (STRUCT_VALUE_INCOMING): Likewise.
7174         (EXPAND_BUILTIN_SAVEREGS): Likewise.
7175         (STRICT_ARGUMENT_NAMING): Likewise.
7176         (PROMOTE_PROTOTYPES): Likewise.
7177
7178         * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
7179
7180 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7181
7182         PR c/12818
7183         * varasm.c (const_hash_1) <STRING_CST>: Use the
7184         address to compute the hash value if flag_writable_strings.
7185         (compare_constant) <STRING_CST>: Compare the addresses
7186         if flag_writable_strings.
7187         (build_constant_desc): Do not copy the expression for a
7188         STRING_CST if flag_writable_strings.
7189
7190 2004-01-30  Jan Hubicka  <jh@suse.cz>
7191
7192         * alloc-pool.c: Include hashtab.h
7193         (alloc_pool_descriptor): New structure
7194         (alloc_pool_hash): New global variable.
7195         (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
7196         (create_alloc_pool): Update statistics.
7197         (free_alloc_pool): Likewise.
7198         (pool_alloc): Likewise.
7199         (output_info): New structure
7200         (print_statistics, dump_alloc_pool_statistics): New function.
7201         * alloc-pool.h (alloc_pool_def): Turn name to be constant.
7202         (dump_alloc_pool_statistics): Declare.
7203         * toplev.c (finalize):  Dump statistics.
7204
7205         * reload.c (secondary_memlocs_elim_used): New static variable.
7206         (get_secondary_mem): Update it.
7207         (find_reloads): Use it.
7208
7209 2004-01-30  Steven Bosscher <s.bosscher@student.tudelft.nl>
7210
7211         * toplev.c: Fix broken checkin of 2003-12-30, again.
7212
7213 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
7214
7215         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
7216         s390*-*-* targets by specifying a 'nop' insn.
7217         * configure: Regenerate.
7218
7219 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7220
7221         PR target/11475
7222         * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
7223
7224 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
7225
7226         * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
7227         of addr when creating MEM copy.
7228
7229 2004-01-29  Devang Patel  <dpatel@apple.com>
7230
7231         * dwarf2out.c (gen_field_die): Do not equate decl number to die.
7232
7233 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
7234
7235         PR inline-asm/6162
7236         * reload.c (find_reloads): Only support one pair of commutative
7237         operands.
7238
7239 2004-01-29  Roger Sayle  <roger@eyesopen.com>
7240
7241         PR java/13824
7242         * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
7243         as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
7244         recursion.
7245
7246 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
7247
7248         * config/frv/frv.c: Don't mention deprecated macros in
7249         comments.  Remove some target-independent comments about
7250         target macros.
7251         * config/frv/frv.h: Likewise.
7252
7253 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7254
7255         * cfghooks.c (split_block): Set probability and count of the
7256         new edge.
7257
7258 2005-01-29  Josef Zlomek  <zlomekj@suse.cz>
7259
7260         * dwarf2out.c (struct die_struct): Added field decl_id.
7261         (decl_die_table): Changed to hash table.
7262         (decl_die_table_allocated): Deleted.
7263         (decl_die_table_in_use): Deleted.
7264         (DECL_DIE_TABLE_INCREMENT): Deleted.
7265         (decl_die_table_hash): New function.
7266         (decl_die_table_eq): New function.
7267         (lookup_decl_die): Lookup in a hash table.
7268         (equate_decl_number_to_die): Insert into a hash table.
7269         (dwarf2out_init): Init hash table decl_die_table.
7270
7271 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
7272
7273         PR optimization/13424
7274         * expr.c (store_constructor): Revert 2003-12-03 change.
7275
7276         * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
7277         expected before returning early.  Avoid sharing RTL if they
7278         need to be changed.
7279
7280         * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
7281         handling so that memory attributes are preserved.  Don't call
7282         ix86_set_move_mem_attrs.
7283         (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
7284         (ix86_expand_clrstr): Rename src argument to
7285         dst.  Rework rep_stos and strset handling so that memory attributes
7286         are preserved.
7287         (ix86_expand_strlen): Pass src argument to
7288         ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
7289         memory attributes are preserved.
7290         (ix86_expand_strlensi_unroll_1): Add src argument.  Use
7291         change_address instead of gen_rtx_MEM.
7292         * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
7293         expanders.
7294         (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
7295         strmovqi, strmovqi_rex64): Remove.
7296         (rep_mov*, strmov*): Prefix insn names with *.
7297         (strset, strset_singleop, rep_stos): New expanders.
7298         (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
7299         strsetqi, strsetqi_rex64): Remove.
7300         (rep_stos*, strset*): Prefix insn names with *.
7301         (rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
7302         to SImode.
7303         (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
7304         are preserved.
7305         (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
7306         Prefix insn names with *.
7307         (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
7308         (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
7309         (strlenqi_1): New expander.
7310         * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
7311
7312 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7313
7314         * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
7315         * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
7316         verify_flow_info): Declaration removed.
7317         * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
7318         (debug_bb, debug_bb_n): Add argument to dump_bb call.
7319         * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
7320         try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
7321         instead of delete_block.
7322         * cfghooks.c: Include timevar.h and toplev.h.
7323         (cfg_hooks): Define here.
7324         (verify_flow_info, dump_bb): Moved from cfg.c.
7325         (redirect_edge_and_branch, redirect_edge_and_branch_force,
7326         split_block, split_block_after_labels, move_block_after,
7327         delete_basic_block, split_edge, create_basic_block,
7328         create_empty_bb, can_merge_blocks_p, merge_blocks,
7329         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
7330         New functions.
7331         * cfghooks.h (struct cfg_hooks): Added fields name,
7332         make_forwarder_block, tidy_fallthru_edge and
7333         move_block_after. Changed type of verify_flow_info, dump_bb,
7334         split_block fields. Renamed cfgh_split_edge and delete_block
7335         fields.
7336         (redirect_edge_and_branch, redirect_edge_and_branch_force,
7337         split_block, delete_block, split_edge, create_basic_block,
7338         can_merge_blocks_p, merge_blocks): Macros removed.
7339         (cfg_hooks): Do not export.
7340         (verify_flow_info, dump_bb, redirect_edge_and_branch,
7341         redirect_edge_and_branch_force, split_block, split_block_after_labels,
7342         move_block_after, delete_basic_block, split_edge, create_basic_block,
7343         create_empty_bb, can_merge_blocks_p, merge_blocks,
7344         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
7345         Declare.
7346         (cfg_layout_rtl_cfg_hooks): Declare.
7347         * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
7348         New functions.
7349         (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
7350         (redirect_edge_with_latch_update): Removed.
7351         (make_forwarder_block): Moved to cfghooks.c, semantics changed.
7352         * cfgloopmanip.c (remove_bbs): Do not update dominators here.
7353         * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
7354         rtl_delete_block, rtl_split_block, rtl_merge_blocks,
7355         tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
7356         cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
7357         cfghooks.c.
7358         (rtl_create_basic_block): Coding style fix.
7359         (rtl_tidy_fallthru_edge, rtl_move_block_after,
7360         rtl_make_forwarder_block): New functions.
7361         (update_cfg_after_block_merging): Removed.
7362         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
7363         * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
7364         to dump_bb.
7365         * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
7366         find_if_case_2): Don't update dominators.
7367         * timevar.def (TV_CFG_VERIFY): New.
7368         * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
7369         * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
7370         * cfgloopmanip.c (split_loop_bb): Don't update dominators.
7371         (remove_bbs): Don't call remove_bbs.
7372         (create_preheader): Use make_forwarder_block.
7373         (mfb_keep_just, mfb_update_loops): New static functions.
7374
7375 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
7376
7377         * config/avr/avr.h: Remove target-independent comments about
7378         target macros.
7379
7380 2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
7381
7382         * timevar.c (timevar_print): Mention when checking is enabled.
7383
7384 2004-01-28  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
7385
7386         * c-lex.c (c_lex): Rename to...
7387         (c_lex_with_flags): Add new parameter to get CPP flags.
7388         (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
7389         * c-pragma.h (c_lex_with_flags): Declare.
7390
7391 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7392
7393         * config/mcore/mcore.c (mcore_external_libcall): Add a
7394         comment.
7395         (mcore_return_in_memory): Likewise.
7396
7397 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7398
7399         * config/mcore/mcore-protos.h: Remove the prototype for
7400         mcore_setup_incoming_varargs.
7401         * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
7402         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
7403         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7404         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7405         (TARGET_STRUCT_VALUE_RTX): Likewise.
7406         (TARGET_RETURN_IN_MEMORY): Likewise.
7407         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7408         (mcore_setup_incoming_varargs): Make it static.  Receive the
7409         first argument by reference.  Add argument second_time.
7410         (mcore_external_libcall): New.
7411         (mcore_return_in_memory): Likewise.
7412         * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
7413         (PROMOTE_FUNCTION_RETURN): Likewise.
7414         (STRUCT_VALUE): Likewise.
7415         (RETURN_IN_MEMORY): Likewise.
7416         (SETUP_INCOMING_VARARGS): Likewise.
7417         (PROMOTE_PROTOTYPES): Likewise.
7418         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7419
7420 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7421
7422         * config/m32r/m32r-protos.h: Remove the prototype for
7423         m32r_setup_incoming_varargs.
7424         * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
7425         (TARGET_STRUCT_VALUE_RTX): Likewise.
7426         (TARGET_RETURN_IN_MEMORY): Likewise.
7427         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7428         (m32r_return_in_memory): New.
7429         (m32r_setup_incoming_varargs): Make it static.
7430         * config/m32r/m32r.h: Remove #undef of
7431         ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
7432         definitions of PROMOTE_FUNCTION_ARGS and
7433         PROMOTE_FUNCTION_RETURN.
7434         (PROMOTE_PROTOTYPES): Remove.
7435         (RETURN_IN_MEMORY): Likewise.
7436         (STRUCT_VALUE): Likewise.
7437
7438 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7439
7440         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
7441         (TARGET_STRUCT_VALUE_RTX): Likewise.
7442         (m68k_struct_value_rtx): Likewise.
7443         * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
7444         STRUCT_VALUE_REGNUM.
7445         (PROMOTE_PROTOTYPES): Remove.
7446         * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
7447         STRUCT_VALUE_REGNUM.
7448         * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
7449         * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
7450
7451 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7452
7453         * config/stormy16/stormy16.c
7454         (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
7455         TARGET_BUILD_BUILTIN_VA_LIST.
7456
7457 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7458
7459         * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
7460         (TARGET_STRUCT_VALUE_RTX): Likewise.
7461         (TARGET_RETURN_IN_MEMORY): Likewise.
7462         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7463         (v850_return_in_memory): Likewise.
7464         (v850_setup_incoming_varargs): Likewise.
7465         * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
7466         (SETUP_INCOMING_VARARGS): Likewise.
7467         (RETURN_IN_MEMORY): Likewise.
7468         (STRUCT_VALUE): Likewise.
7469
7470 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7471
7472         * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
7473         (fr30_setup_incoming_varargs): Don't use
7474         STRICT_ARGUMENT_NAMING.
7475         * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
7476         (STRICT_ARGUMENT_NAMING): Likewise.
7477
7478 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7479
7480         * config/frv/frv-protos.h: Remove the prototype for
7481         frv_expand_builtin_saveregs.
7482         * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
7483         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7484         (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
7485         STRUCT_VALUE_REGNUM.
7486         (frv_expand_builtin_saveregs): Make it static.
7487         (frv_struct_value_rtx): New.
7488         * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
7489
7490 2004-01-29  Jan Hubicka  <jh@suse.cz>
7491
7492         PR c++/12850
7493         * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
7494         initial pointers.
7495         * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
7496         for functions that will be only inlined.
7497         (cgraph_mark_function_to_output): Likewise.
7498         (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
7499         do not clear function body.
7500         * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
7501         (tree_rest_of_compilation): Reorganize the logic releasing function
7502         body to use callgraph datastructure.
7503
7504 2004-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7505
7506         * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
7507         to register_operand.
7508
7509 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
7510
7511         * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
7512         (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
7513         match_operand expressions so that all match_dups appear
7514         lexically after their corresponding match_operands.
7515
7516 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7517
7518         * config/h8300/h8300.c (WORD_REG_USED): Use
7519         HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
7520         (compute_saved_regs): Likewise.
7521         (h8300_expand_prologue): Likewise.  Allocate locals after
7522         saving registers.
7523         (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
7524         of FRAME_POINTER_REGNUM.  Deallocate locals before saving
7525         registers.
7526         (h8300_initial_elimination_offset): Adjust for the new frame
7527         layout, which swaps flips the order of locals and saved
7528         registers.
7529         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
7530         (HARD_FRAME_POINTER_REGNUM): New.
7531         (ELIMINABLE_REGS): Add an elimination rule from
7532         FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
7533         (REGISTER_NAMES): Add fp.
7534         * config/h8300/h8300.md (FP_REG): Change to 11.
7535         (HFP_REG): New.
7536
7537 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7538
7539         * genrecog.c (write_node): Remove a useless local variable.
7540
7541 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
7542
7543         * Makefile.in (options.c options.h): Use stamp file s-options to
7544         avoid unnecessary rebuilds.
7545         (options.o): New target listing dependencies.
7546         (gtyp-gen.h): Use stamp file s-gtyp-gen.
7547         (STAGESTUFF): Add s-gtyp-gen.
7548
7549 2004-01-28  Richard Henderson  <rth@redhat.com>
7550
7551         * ggc.h (ggc_free): Declare.
7552         * ggc-common.c (ggc_realloc): Use it.
7553         * ggc-page.c: Remove lots of inline markers.
7554         (globals): Add free_object_list.
7555         (ggc_alloc): Tidy.
7556         (ggc_free, validate_free_objects): New.
7557         (poison_pages): Provide default.
7558         (ggc_collect): Call validate_free_objects; emit markers to
7559         the debug file.
7560
7561 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
7562             Jim Wilson  <wilson@specifixinc.com>
7563
7564         * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
7565         Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
7566         scratch pointer.
7567         (ia64_secondary_reload_class): Delete case GR_REGS.
7568         * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
7569         Do not allocate a scratch register.
7570         (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
7571
7572 2004-01-28  Jan Hubicka  <jh@suse.cz>
7573
7574         * gcse.c (bypass_block): Prevent edges to be unified when we are
7575         about to emit compenstation code.
7576
7577 2004-01-28  Nick Clifton  <nickc@redhat.com>
7578
7579         * config/arm/arm.c (arm_expand_builtin): Force second argument of
7580         the setcwx insn into a register.
7581
7582 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
7583
7584         * config/fp-bit.c (pack_d): When using paired doubles to implement
7585         a long double, round the high part separately.
7586         (unpack_d): Fix the case in which the high part is a power of two
7587         and the low part is a nonzero value of the opposite sign.
7588
7589 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7590
7591         * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
7592         (TARGET_STRUCT_VALUE_RTX): Likewise.
7593         (c4x_external_libcall): Likewise.
7594         (c4x_struct_value_rtx): Likewise.
7595         * config/c4x/c4x.h: Remove.
7596         (STRUCT_VALUE_REGNUM): Likewise.
7597         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7598
7599 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7600
7601         * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
7602         (TARGET_STRUCT_VALUE_RTX): Likewise.
7603         * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
7604         (STRUCT_VALUE): Likewise.
7605         (PROMOTE_PROTOTYPES): Likewise.
7606
7607 2004-01-27  Roger Sayle  <roger@eyesopen.com>
7608
7609         * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
7610         CONST_INT before using INTVAL.
7611
7612 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
7613
7614         * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
7615         * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
7616         frame if !TARGET_BACKCHAIN.
7617         * config/s390/s390.md ("allocate_stack"): Use pattern only if
7618         TARGET_BACKCHAIN.
7619         * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
7620
7621 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
7622
7623         * ia64.c (ia64_function_arg): When placing HFAs in integer
7624         registers, do not special case the mode used for complex
7625         types.  Do not advance int_regs until the current register
7626         is full.
7627
7628 2004-01-27  Richard Sandiford  <rsandifo@redhat.com>
7629
7630         PR target/7297
7631         * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
7632
7633 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
7634
7635         * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
7636         slow, unaligned loads and stores while debugging.  Fix formatting.
7637
7638 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
7639
7640         * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
7641         of computing wmode.
7642         (restore_stack_nonlocal): Same.
7643
7644 2004-01-27  Devang Patel <dpatel@apple.com>
7645
7646         * Makefile.in (dwarf2out.o): Depend on input.h
7647         * dbxout.c (dbx_debug_hooks): Add new empty hook for
7648         imported_module_or_decl.
7649         (xcoff_debug_hooks): Same.
7650         * sdbout.c (sdb_debug_hooks): Same.
7651         * vmsdbgout.c (vmsdbg_debug_hooks): Same.
7652         * debug.c (do_nothing_debug_hooks): Same.
7653         (debug_nothing_tree_tree): New function.
7654         * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
7655         * dwarf2out.c: Include input.h.
7656         (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
7657         (remove_child_TAG): New function.
7658         (dwarf_tag_name): Handle DW_TAG_imported_module.
7659         (gen_subprogram_die): Equate decl number to declaration die. Do not
7660         remove all children dies while reusing declaration die for definition.
7661         Instead, selectively remove only formal parameters.
7662         (gen_variable_die): Equate variable decl to declaration die.
7663         (gen_field_die): Equate field decl to line number.
7664         (force_namespace_die): Replace it with ...
7665         (force_decl_die): ... this.
7666         (force_type_die): New function.
7667         (setup_namespace_context): Replace use of force_namespace_die() with
7668         force_decl_die().
7669         (gen_namespace_die): Same.
7670         (dwarf2out_imported_module_or_decl): New function.
7671
7672 2004-01-27  Bob Wilson  <bob.wilson@acm.org>
7673
7674         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
7675         on CQImode and CHImode incoming arguments in register a7.
7676         (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
7677         * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
7678         * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
7679         xtensa_copy_incoming_a7 before reload.
7680
7681 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
7682
7683         * coverage.c (get_coverage_counts): Give a different message
7684         if flag_guess_branch_prob is set.
7685         * predict.c (counts_to_freqs): Return an int.
7686         (estimate_bb_frequencies): If counts_to_freqs returns zero,
7687         calculate estimates.
7688
7689 2004-01-27  Kazu Hirata  <kazu@cs.umass.edu>
7690
7691         * config/iq2000/iq2000-protos.h: Remove the prototype for
7692         iq2000_setup_incoming_varargs.
7693         * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7694         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7695         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7696         (TARGET_STRUCT_VALUE_RTX): Likewise.
7697         (TARGET_RETURN_IN_MEMORY): Likewise.
7698         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7699         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7700         (iq2000_return_in_memory): Likewise.
7701         (iq2000_setup_incoming_varargs): Make it static.  Receive the
7702         first argument by reference.
7703         * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
7704         (PROMOTE_FUNCTION_RETURN): Likewise.
7705         (PROMOTE_PROTOTYPES): Likewise.
7706         (RETURN_IN_MEMORY): Likewise.
7707         (STRUCT_VALUE): Likewise.
7708         (SETUP_INCOMING_VARARGS): Likewise.
7709         (STRICT_ARGUMENT_NAMING): Likewise.
7710
7711 2004-01-24  James A. Morrison  <ja2morri@uwaterloo.ca>
7712
7713         * fixinc/fixinc.c (test_test): Initialize res.
7714         (start_flexer): Initialize pz_cmd_save.
7715
7716 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
7717
7718         * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
7719         SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
7720
7721 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
7722
7723         PR 7198
7724         * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
7725         (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
7726         (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
7727         Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
7728         Possibly rename pattern for consistency.
7729         Remove ??? comments suggesting that this be done.
7730         (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
7731         New patterns.
7732         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
7733         (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
7734         (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
7735         (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
7736         Update to match.
7737
7738 2004-01-27  Ian Lance Taylor  <ian@wasabisystems.com>
7739
7740         * config/arm/arm.c (output_return_instruction): Only restore IP
7741         into SP if frame_pointer_needed.
7742
7743 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
7744
7745         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
7746         for SCmode and DCmode if ARCH32.
7747         (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
7748         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
7749         if ARCH32.
7750         (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
7751         if ARCH32.
7752         (BASE_OUTGOING_VALUE_REG): Likewise.
7753
7754 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
7755
7756         PR target/10904
7757         PR target/13058
7758         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
7759         Forbid mode changes from SImode for lower FP regs if ARCH64.
7760
7761 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
7762
7763         * Makefile.in (bt-load.o): Depend on except.h.
7764         * bt-load.c (except.h): #include.
7765         (compute_defs_uses_and_gen): If insn at end of BB can throw
7766         within this function, consider registers used by it unavailable for
7767         btr migration.
7768         (move_btr_def): If insn at end of BB can throw, insert before rather
7769         than after.
7770
7771         * flags.h (flag_btr_bb_exclusive): Declare.
7772         * toplev.c (flag_btr_bb_exclusive): New variable.
7773         (f_options): Add btr-bb-exclusive.
7774         * bt-load.c (augment_live_range): Restore old behaviour if
7775         flag_btr_bb_exclusive is set.
7776         * common.opt: Add entry for -fbtr-bb-exclusive.
7777         * opts.c (common_handle_options): Same.
7778         * doc/invoke.texi: Document -fbtr-bb-exclusive.
7779
7780         * bt-load.c (btrs_live_at_end): New variable.
7781         (compute_defs_uses_and_gen): Compute its pointed-to array.
7782         (clear_btr_from_live_range, add_btr_to_live_range): Update it.
7783         (augment_live_range): When augmenting with a new dominator,
7784         use only its btrs_live_at_end set, but also add in the full set
7785         of the old dominator.
7786         (btr_def_live_range): Use btrs_live_at_end.
7787         (move_btr_def): Set other_btr_uses_before_def, and move new set
7788         to the end of the basic block, if appropriate.
7789         (migrate_btr_defs): Allocate and free btrs_live_at_end.
7790
7791         * bt-load.c (basic_block_freq): Remove outdated comment.
7792
7793 2004-01-27  Alan Modra  <amodra@bigpond.net.au>
7794
7795         * config/rs6000/rs6000.h: Correct target_flags free bits comment.
7796         (PREDICATE_CODES): Remove duplicate.
7797         * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
7798         (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
7799         (MASK_PROFILE_KERNEL): Adjust define.
7800
7801 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
7802
7803         * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
7804         of long string literals from 32 bytes to sizeof (void *) when !-Os
7805         and to 1 with -Os.
7806
7807 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7808
7809         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
7810         constant addresses in the normal mode.
7811
7812 2004-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7813
7814         * system.h (CHAR_BITFIELD): Delete.
7815         (BOOL_BITFIELD): New.
7816         * c-decl.c (c_scope): Use BOOL_BITFIELD.
7817         * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
7818
7819 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7820
7821         * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7822         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7823         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7824         (TARGET_STRUCT_VALUE_RTX): Likewise.
7825         (TARGET_RETURN_IN_MEMORY): Likewise.
7826         (arc_return_in_memory): Likewise.
7827         * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
7828         (PROMOTE_FUNCTION_RETURN): Likewise.
7829         (RETURN_IN_MEMORY): Likewise.
7830         (STRUCT_VALUE): Likewise.
7831
7832 2004-01-26  Richard Henderson  <rth@redhat.com>
7833
7834         * c-parse.in (extension): Use itype.
7835         (SAVE_EXT_FLAGS): Don't allocate a tree.
7836         (RESTORE_EXT_FLAGS): Don't read a tree.
7837
7838 2004-01-26  Jan Hubicka  <jh@suse.cz>
7839
7840         * cselib.c (discard_useless_values):  Clear out value pointer pointing
7841         to datastructure to be recycled.
7842
7843 2004-01-25  Jan Hubicka  <jh@suse.cz>
7844
7845         * genextract.c (main): Do not output the memset when not checking.
7846
7847 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7848
7849         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
7850         switch statement instead of a chain of if statements.
7851
7852 2004-01-26  Jeff Law  <law@redhat.com>
7853
7854         * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
7855         acute accents for Petur Runolfsson's entry.
7856
7857 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7858
7859         * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
7860         (TARGET_RETURN_IN_MEMORY): Likewise.
7861         * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
7862         (RETURN_IN_MEMORY): Likewise.
7863
7864 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
7865
7866          * config/rs6000/rs6000.c (rs6000_emit_move): split slow
7867          unaligned load/store into smaller loads and stores.
7868
7869 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
7870
7871         * function.c (assign_parms): Do not assign
7872         long long argument to memory in prologue if
7873         is it loaded into register.
7874
7875 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
7876
7877          PR middle-end/13779
7878          * expr.c (emit_group_load): split constant
7879          correctly into register components of PARALLEL insn.
7880
7881 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
7882
7883         * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
7884         Use adjust_address_nv directly with appropriate mode.
7885         (restore_stack_nonlocal): Ditto.
7886
7887 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7888
7889         * config/xtensa/xtensa-protos.h: Remove the prototype for
7890         xtensa_builtin_saveregs.
7891         * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7892         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7893         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7894         (TARGET_STRUCT_VALUE_RTX): Likewise.
7895         (TARGET_RETURN_IN_MEMORY): Likewise.
7896         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7897         (xtensa_builtin_saveregs): Make it static.
7898         (xtensa_return_in_memory): New.
7899         * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
7900         (PROMOTE_FUNCTION_RETURN): Likewise.
7901         (PROMOTE_PROTOTYPES): Likewise.
7902         (STRUCT_VALUE): Likewise.
7903         (RETURN_IN_MEMORY): Likewise.
7904         (EXPAND_BUILTIN_SAVEREGS): Likewise.
7905
7906 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7907
7908         * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
7909         (arm_setup_incoming_varargs): Likewise.
7910         * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
7911
7912 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7913
7914         * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
7915         (cris_setup_incoming_varargs): Likewise.
7916         * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
7917
7918 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7919
7920         * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
7921         (ns32k_struct_value_rtx): Likewise.
7922         * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
7923         NS32K_STRUCT_VALUE_REGNUM.
7924
7925 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7926
7927         * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7928         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7929         (TARGET_STRUCT_VALUE_RTX): Likewise.
7930         (arm_struct_value_rtx): Likewise.
7931         * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
7932         (STRUCT_VALUE): Likewise.
7933         (STRUCT_VALUE_REGNUM): Likewise.
7934         (PROMOTE_PROTOTYPES): Likewise.
7935
7936 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7937
7938         * config/ia64/ia64-protos.h: Remove the prototype for
7939         ia64_setup_incoming_varargs and ia64_return_in_memory.
7940         * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
7941         (TARGET_RETURN_IN_MEMORY): Likewise.
7942         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7943         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7944         (ia64_setup_incoming_varargs): Adjust the arguments to meet
7945         the requirement of TARGET_SETUP_INCOMING_VARARGS.
7946         (ia64_return_in_memory): Make it static.  Change the return
7947         type to bool from int.  Add an argument.
7948         (ia64_struct_value_rtx): New.
7949         * config/ia64/ia64.h: Remove commented-out definitions of
7950         PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
7951         PROMOTE_PROTOTYPES.
7952         (RETURN_IN_MEMORY): Remove.
7953         (STRUCT_VALUE_REGNUM): Likewise.
7954         (STRICT_ARGUMENT_NAMING): Likewise.
7955
7956 2004-01-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
7957
7958         PR target/13666
7959         * config/sparc/sparc.c (function_arg_union_value): New function.
7960         (function_arg): Use it to deal with unions.
7961         (function_value): Likewise.  Define 'regbase' only for ARCH64.
7962         Replace a conditional statement by a simpler one.
7963
7964 2004-01-26  Richard Sandiford  <rsandifo@redhat.com>
7965
7966         * config/mips/mips.c (mips16_optimize_gp): Delete.
7967         (mips_reorg): Don't call it.
7968
7969 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7970
7971         * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
7972         (floatunsqihf2): Remove operand 6.
7973         (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
7974         fix patterns.
7975         (ldi_conditional, ldf_conditional): Validate operands.
7976
7977 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7978
7979         * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
7980         (HAVE_GAS_HIDDEN): Undefine as interim measure.
7981
7982 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7983
7984         * config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
7985         memory references if TARGET_EXPOSE_LDP nonzero.
7986
7987 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7988
7989         * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
7990
7991 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7992
7993         * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
7994         invalid operand combinations.
7995
7996 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7997
7998         * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
7999         c4x_legitimate_address_p.  Fix post_modify check.
8000
8001         * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
8002         * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
8003
8004 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8005
8006         * config/pa/pa-protos.h: Remove the prototype for
8007         hppa_builtin_saveregs.  Add a prototype for
8008         pa_return_in_memory.
8009         * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
8010         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8011         (TARGET_STRUCT_VALUE_RTX): Likewise.
8012         (TARGET_RETURN_IN_MEMORY): Likewise.
8013         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8014         (pa_struct_value_rtx): Likewise.
8015         (pa_return_in_memory): Likewise.
8016         * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
8017         PA_STRUCT_VALUE_REGNUM.
8018         (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
8019         (EXPAND_BUILTIN_SAVEREGS): Remove.
8020         (PROMOTE_PROTOTYPES): Likewise.
8021         (PROMOTE_FUNCTION_RETURN): Likewise.
8022
8023 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8024
8025         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
8026         (TARGET_STRUCT_VALUE_RTX): Likewise.
8027         (vax_struct_value_rtx): Likewise.
8028         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
8029         VAX_STRUCT_VALUE_REGNUM.
8030         (PROMOTE_PROTOTYPES): Remove.
8031
8032 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
8033
8034         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
8035
8036 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
8037
8038         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
8039         and MIPS64 have HI/LO interlocks.  Update comment.
8040
8041 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8042
8043         * config/stormy16/stormy16-protos.h: Remove the prototype for
8044         xstormy16_setup_incoming_varargs.
8045         * config/stormy16/stormy16.c
8046         (xstormy16_setup_incoming_varargs): Remove.
8047         (xstormy16_return_in_memory): New.
8048         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
8049         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8050         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8051         (TARGET_STRUCT_VALUE_RTX): Likewise.
8052         (TARGET_RETURN_IN_MEMORY): Likewise.
8053         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
8054         (PROMOTE_FUNCTION_RETURN): Likewise
8055         (PROMOTE_PROTOTYPES): Likewise
8056         (RETURN_IN_MEMORY): Likewise
8057         (STRUCT_VALUE): Likewise
8058         (SETUP_INCOMING_VARARGS): Likewise
8059
8060 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
8061
8062         * config/mips/mips.c (mips_offset_within_object_p): New function.
8063         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
8064         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
8065         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
8066
8067 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8068
8069         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
8070         (PROMOTE_FUNCTION_RETURN): Likewise.
8071
8072 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8073
8074         * config/mn10300/mn10300-protos.h: Remove the prototype for
8075         mn10300_builtin_saveregs.
8076         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
8077         (TARGET_STRUCT_VALUE_RTX): Likewise.
8078         (TARGET_RETURN_IN_MEMORY): Likewise.
8079         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8080         (mn10300_return_in_memory): Likewise.
8081         (mn10300_builtin_saveregs): Make it static.
8082         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
8083         (RETURN_IN_MEMORY): Likewise.
8084         (STRUCT_VALUE): Likewise.
8085         (EXPAND_BUILTIN_SAVEREGS): Likewise.
8086
8087 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
8088
8089         PR bootstrap/13853
8090         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
8091
8092 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8093
8094         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
8095         using ccr.
8096
8097 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8098
8099         * config/i860/i860-protos.h: Remove the prototype for
8100         i860_saveregs.
8101         * config/i860/i860.c (i860_saveregs): Make it static.
8102         (i860_struct_value_rtx): New.
8103         (TARGET_STRUCT_VALUE_RTX): Likewise.
8104         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8105         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
8106         I860_STRUCT_VALUE_REGNUM.
8107         (EXPAND_BUILTIN_SAVEREGS): Remove.
8108
8109 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8110
8111         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
8112         (TARGET_RETURN_IN_MEMORY): Likewise.
8113         (m68hc11_struct_value_rtx): Likewise.
8114         (m68hc11_return_in_memory): Likewise.
8115         * config/m68hc11/m68hc11.h: Remove a commented-out definition
8116         of PROMOTE_PROTOTYPES.
8117         (RETURN_IN_MEMORY): Remove.
8118         (STRUCT_VALUE_REGNUM): Likewise.
8119
8120 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8121
8122         * config/mmix/mmix-protos.h: Remove the prototype for
8123         mmix_setup_incoming_varargs.
8124         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8125         (TARGET_STRUCT_VALUE_RTX): Likewise.
8126         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8127         (mmix_setup_incoming_varargs): Make it static.
8128         (mmix_struct_value_rtx): New.
8129         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
8130         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
8131         (STRUCT_VALUE_REGNUM): Remove.
8132         (SETUP_INCOMING_VARARGS): Likewise.
8133
8134 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8135
8136         * config/mips/mips-protos.h: Remove the prototypes for
8137         mips_setup_incoming_varargs and mips_return_in_memory.
8138         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8139         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8140         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8141         (TARGET_STRUCT_VALUE_RTX): Likewise.
8142         (TARGET_RETURN_IN_MEMORY): Likewise.
8143         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8144         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8145         (mips_setup_incoming_varargs): Match the prototype for
8146         TARGET_SETUP_INCOMING_VARARGS.
8147         (mips_return_in_memory): Make it static.  Add argument fntype.
8148         (mips_strict_argument_naming): New.
8149         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
8150         (PROMOTE_FUNCTION_ARGS): Likewise.
8151         (PROMOTE_FUNCTION_RETURN): Likewise.
8152         (STRUCT_VALUE): Likewise.
8153         (RETURN_IN_MEMORY): Likewise.
8154         (SETUP_INCOMING_VARARGS): Likewise.
8155         (STRICT_ARGUMENT_NAMING): Likewise.
8156
8157 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8158
8159         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
8160         (TARGET_RETURN_IN_MEMORY): Likewise.
8161         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8162         (ip2k_return_in_memory): Likewise.
8163         (ip2k_setup_incoming_varargs): Likewise.
8164         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
8165         (STRUCT_VALUE): Likewise.
8166         (STRUCT_VALUE_INCOMING): Likewise.
8167         (SETUP_INCOMING_VARARGS): Likewise.
8168
8169 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8170
8171         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
8172         (TARGET_RETURN_IN_MEMORY): Likewise.
8173         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8174         (avr_return_in_memory): Remove.
8175         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
8176         (STRUCT_VALUE): Likewise.
8177         (STRUCT_VALUE_INCOMING): Likewise.
8178         (STRICT_ARGUMENT_NAMING): Likewise.
8179
8180 2004-01-25  Jan Hubicka  <jh@suse.cz>
8181
8182         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
8183
8184 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
8185
8186         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
8187         (mips_regno_mode_ok_for_base_p): Declare.
8188         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
8189         (FRAME_POINTER_REGNUM): Renumber to 78.
8190         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
8191         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
8192         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
8193         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
8194         (REG_MODE_OK_FOR_BASE_P): Likewise.
8195         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
8196         entry for 77 to "$arg" and entry for 78 to "$frame".
8197         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
8198         (mips_reg_mode_ok_for_base_p): Remove.
8199         (mips_regno_mode_ok_for_base_p): New function, derived from old
8200         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
8201         restrictions unless we're being strict.
8202         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
8203
8204 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8205
8206         * c-common.h: Fix comment typos.
8207         * c-decl.c: Likewise.
8208         * cgraphunit.c: Likewise.
8209         * combine.c: Likewise.
8210         * et-forest.c: Likewise.
8211         * flow.c: Likewise.
8212         * function.c: Likewise.
8213         * ifcvt.c: Likewise.
8214         * integrate.c: Likewise.
8215         * jump.c: Likewise.
8216         * postreload.c: Likewise.
8217         * varray.c: Likewise.
8218
8219 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8220
8221         * doc/frontends.texi: Update copyright.
8222         * doc/gcov.texi: Likewise.
8223         * doc/gty.texi: Likewise.
8224         * doc/sourcebuild.texi: Likewise.
8225         * doc/standards.texi: Likewise.
8226
8227 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
8228
8229         PR target/12978
8230         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
8231         Remove movstrqi_small because it conflicts with movstrqi_large.
8232
8233 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8234
8235         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8236         (TARGET_STRUCT_VALUE_RTX): Likewise.
8237         (cris_struct_value_rtx): Likewise.
8238         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
8239         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
8240         STRUCT_VALUE_REGNUM.
8241         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
8242
8243 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
8244
8245         PR bootstrap/13848
8246         * cse.c (cse_cc_succs): Change the mode of the source expression
8247         as soon as decide we need a new mode.  Don't permit changing modes
8248         if we found a match in a successor block.
8249         (cse_condition_code_reg): Save original mode of source expression
8250         so that we know whether we have to change the mode in other
8251         insns.
8252
8253 2004-01-24  Jan Hubicka  <jh@suse.cz>
8254
8255         * emit-rtl.c (change_address, adjust_address_1, offset_address,
8256         widen_memory_access):  Return early when there is nothing to change.
8257
8258 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
8259
8260         * simplify-rtx.c (simplify_relational_operation): Don't
8261         simplify address == constant into address + -constant == 0.
8262
8263 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8264
8265         * gcc.c (process_command): Don't internationalize the
8266         Copyright message.
8267         * mips-tfile.c (main): Likewise.
8268
8269 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
8270
8271         * cse.c: (cse_cc_succs) Fix comparison warning.
8272
8273 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8274
8275         * config/h8300/h8300.md: Remove extraneous USE in expanders.
8276
8277 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8278
8279         * config/h8300/h8300-protos.h: Provide prototypes for
8280         h8300_legitimate_constant_p and h8300_legitimate_address_p.
8281         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
8282         (h8300_rtx_ok_for_base_p): Likewise.
8283         (h8300_legitimate_address_p): Likewise.
8284         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
8285         h8300_legitimate_constant_p.
8286         (RTX_OK_FOR_BASE_P): Remove.
8287         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
8288
8289 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8290
8291         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
8292         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
8293         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
8294         (REG_OK_FOR_BASE_STRICT_P): Likewise.
8295         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
8296         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
8297         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
8298         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
8299
8300 2004-01-24  Jan Hubicka  <jh@suse.cz>
8301
8302         * cselib.c (remove_useless_values):  Do not access discarded values.
8303
8304 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
8305
8306         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
8307         arrays.
8308
8309 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
8310
8311         * recog.c: Fix a typo in copyright.
8312
8313 2004-01-23  Andrew Pinski  <apinski@apple.com>
8314
8315         * config/rs6000/rs6000.md (call): Fix misappiled patch.
8316         (call_value): Likewise.
8317
8318 2004-01-23  Richard Henderson  <rth@redhat.com>
8319
8320         PR opt/12941
8321         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
8322         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
8323         if SHIFT_COUNT_TRUNCATED is set.
8324
8325 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
8326
8327         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
8328         separate real and imaginary parts.
8329         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
8330
8331 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
8332
8333         PR target/13674
8334         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
8335         loading into GPR.
8336
8337 2004-01-23  Jan Hubicka  <jh@suse.cz>
8338
8339         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
8340         change.
8341
8342         * alloc-pool.c (align_four): Kill.
8343         (create_alloc_pool): Align size to eight.
8344         (free_alloc_pool, free_pool): Invalidate deallocated data.
8345
8346 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
8347
8348         PR gcc/1532
8349         * cse.c (cse_change_cc_mode): New static function.
8350         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
8351         (cse_condition_code_reg): New function.
8352         * rtl.h (cse_condition_code_reg): Declare.
8353         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
8354         * target.h (struct gcc_target): Add fixed_condition_code_regs and
8355         cc_modes_compatible.
8356         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8357         (TARGET_CC_MODES_COMPATIBLE): Define.
8358         (TARGET_INITIALIZER): Add new initializers.
8359         * targhooks.c (default_cc_modes_compatible): New function.
8360         * targhooks.c (default_cc_modes_compatible): Declare.
8361         * hooks.c (hook_bool_intp_intp_false): New function.
8362         * hooks.h (hook_bool_intp_intp_false): Declare.
8363         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8364         (TARGET_CC_MODES_COMPATIBLE): Define.
8365         (ix86_fixed_condition_code_regs): New static function.
8366         (ix86_cc_modes_compatible): Likewise.
8367         * doc/tm.texi (Condition Code): Document new hooks.
8368
8369 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8370
8371         * fixinc/inclhack.def (bad_lval): Renamed to ...
8372         (alpha_bad_lval): ... this.
8373         Removed file list.
8374         Restrict to alpha*-dec-osf*.
8375         * fixinc/fixincl.x: Regenerate.
8376         * fixinc/tests/base/dirent.h: Remove, moving test ...
8377         * fixinc/tests/base/testing.h: ... here, reflecting new name.
8378
8379 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
8380
8381         PR c/13814
8382         * c-decl.c (diagnose_mismatched_decls): Also discard a
8383         built-in if we encounter an old-style definition with the
8384         same name.
8385
8386 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
8387
8388         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
8389         set to default{32,64}.
8390
8391 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
8392
8393         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
8394         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
8395
8396 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
8397             Olivier Hainque  <hainque@act-europe.fr>
8398
8399         * fold-const.c (fold_binary_op_with_conditional_arg): Only
8400         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
8401
8402 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
8403
8404         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
8405         size for minipool references.
8406
8407 2004-01-23  Roger Sayle  <roger@eyesopen.com>
8408
8409         * real.c (real_floor, real_ceil): Tweak to allow input and output
8410         arguments to overlap.
8411         (real_round): New function to implement round(3m) semantics.
8412         * real.h (real_round): Prototype here.
8413         * builtins.c (fold_builtin_round): New function to constant fold
8414         round, roundf and roundl.
8415         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
8416
8417 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
8418
8419         PR optimization/13819
8420         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
8421         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
8422         (sh_handle_sp_switch_attribute): Remove warning.
8423
8424 2003-11-30  Jan Hubicka  <jh@suse.cz>
8425
8426         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
8427
8428 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
8429
8430         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
8431         may or may not return non-NIL.
8432         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
8433         check CANNOT_CHANGE_MODE_CLASS
8434
8435 2004-01-23  Jan Hubicka  <jh@suse.cz>
8436
8437         * basic-block.h (PROP_POSTRELOAD): New macro.
8438         (CLEANUP_LOG_LINKS): New.
8439         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
8440         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
8441
8442         * cselib.c (value_pool): New.
8443         (new_cselib_val): Use pool.
8444         (cselib_init): Initialize value_pool
8445         (cselib_finish): Free pool.
8446
8447 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
8448
8449         * config/sparc/sparc.c (scan_record_type): New function.
8450         (function_arg_slotno): Use it to determine which kinds of
8451         registers the record can be passed in.
8452
8453 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
8454
8455         * config/pa/fptr.c: Fix old-style definition.
8456
8457 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
8458
8459         PR optimization/13724
8460         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
8461         represents the zero bits produced by a ZERO_EXTEND operation.
8462
8463 2004-01-22  Roger Sayle  <roger@eyesopen.com>
8464
8465         PR optimization/13821
8466         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
8467         correctly calculate the lowpart offset of the contracted subreg.
8468
8469 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
8470
8471         * doc/invoke.texi (Optimize Options): Note that --param arguments
8472         are subject to change without notice.
8473
8474 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8475
8476         * config.gcc (mips-sgi-irix6*o32): Removed.
8477         * config/mips/iris6-o32-as.h: Likewise.
8478         * config/mips/iris6-o32-gas.h: Likewise.
8479         * config/mips/iris6-o32.h: Likewise.
8480
8481 2004-01-22  Jan Hubicka  <jh@suse.cz>
8482
8483         * cfgcleanup.c (first_pass): New static variable.
8484         (try_forward_edges):  Add work limiting check for threading.
8485         (try_crossjump_bb):  Add work limiting check for crossjumping.
8486         (try_optimize_cfg):  Maintain first pass variable.
8487
8488 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
8489
8490         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
8491         handles complex and vector modes.
8492
8493 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
8494
8495         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
8496         (REG_OK_FOR_BASE_P_STRICT): Likewise.
8497         (STRICT): Likewise.
8498
8499 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
8500
8501         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
8502         (genrtl_for_stmt): Remove emit_nop calls.
8503
8504 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8505
8506         PR target/13713
8507         PR target/13324
8508         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
8509         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
8510         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
8511
8512 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
8513
8514         * config/arm/arm.c: Include "debug.h".
8515         (thumb_pushpop): Take two new arguments.  Add some commentary.
8516         Output frame information when pushing.
8517         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
8518         thumb_pushpop.
8519         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
8520         offset, and pass it to thumb_pushpop.  Output CFI information.
8521         (thumb_expand_prologue): Add some frame-related markers and notes.
8522
8523 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
8524
8525         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
8526         for TARGET_64BIT.
8527         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
8528         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
8529
8530 2004-01-22  Roger Sayle  <roger@eyesopen.com>
8531             Paolo Bonzini  <bonzini@gnu.org>
8532
8533         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
8534         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
8535         * rtl.h (subreg_lsb_1): Prototype here.
8536         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
8537         sign extensions.
8538
8539 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
8540
8541         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
8542         macro need not be defined if jump-tables should contain
8543         relative addresses only when -fPIC or -fPIC is in effect.
8544
8545 2004-01-22  Jan Hubicka  <jh@suse.cz>
8546
8547         * alias.c (reg_base_value): Turn into varray.
8548         (reg_base_value_size): Kill.
8549         (old_reg_base_value): New deletable varray.
8550         (alias_invariant_size): New variable.
8551         (REG_BASE_VALUE): Update to use varray.
8552         (find_base_value): Likewise.
8553         (record_set): Likewise.
8554         (record_base_value): Likewise.
8555         (memrefs_conflict_p): Likewise.
8556         (record_set): Likewise
8557         (record_base_value): Likewise.
8558         (memrefs_conflict_p): Use alias_invariant_size.
8559         (init_alias_analysis): Use varray; set alias_invariant_size;
8560         rescale other arrays to be sized by maxreg.
8561         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
8562
8563 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
8564
8565         * config/sparc/sparc.c (function_arg_slotno): Use
8566         FLOAT_TYPE_P to detect FP fields in structures.
8567         (function_arg_record_value_1): Likewise.
8568         (function_arg_record_value_2): Likewise.
8569
8570 2004-01-22  Jan Hubicka  <jh@suse.cz>
8571
8572         * function.c (allocate_struct_function): Do not initialize expr, emit
8573         and varasm.
8574         (prepare_function_start): Do it here.
8575         * c-parse.in (maybe_type_qual): Do not produce line number notes.
8576
8577 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
8578
8579         PR target/13559
8580         * config/sparc/sparc.c (function_arg_record_value_3): Revert
8581         to 'word_mode' once the first slot has been filled.
8582
8583 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
8584
8585         * config/sparc/sparc.c (function_arg_record_value_1): Fix
8586         computation of the number of integer registers required.
8587
8588 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
8589
8590         * config/i386/i386.md: Simplify certain comparisons of
8591         const_int.
8592
8593 2004-01-21  Andrew Pinski  <apinski@apple.com>
8594
8595         PR target/13785
8596         * config/rs6000/rs6000.md (call_value): Force operand
8597         1 not operand 0 into a register.
8598
8599 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
8600
8601         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
8602         unwind-dw2-fde.h: Update copyright.
8603
8604 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8605
8606         * pa-protos.h: Update copyright.
8607         * pa.h: Likewise.
8608         * pa.md: Likewise.
8609
8610 2004-01-21  Caroline Tice  <ctice@apple.com>
8611
8612         PR target/12308
8613         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
8614         flags register.
8615         (fix_truncdfdi2): Likewise.
8616         (fix_truncsfdi2): Likewise.
8617         (*fix_truncdi_1): Likewise.
8618         (fix_truncxfsi2): Likewise.
8619         (fix_truncdfsi2): Likewise.
8620         (fix_truncsfsi2): Likewise.
8621         (*fix_truncsi_1): Likewise.
8622         (fix_truncxfhi2): Likewise.
8623         (fix_truncdfhi2): Likewise.
8624         (fix_truncsfhi2): Likewise.
8625         (*fix_trunchi_1): Likewise.
8626
8627 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
8628
8629         * alias.c, basic-block.h, c-common.c, c-common.h,
8630         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
8631         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
8632         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
8633         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
8634         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
8635         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
8636         genautomata.c, genconditions.c, genemit.c, genflags.c,
8637         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
8638         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
8639         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
8640         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
8641         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
8642         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
8643         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
8644         unwind.h, varray.c, varray.h: Update copyright.
8645
8646 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
8647
8648         * config/h8300/coff.h: Update copyright.
8649         * config/h8300/elf.h: Likewise.
8650         * config/h8300/h8300-protos.h: Likewise.
8651         * config/h8300/h8300.c: Likewise.
8652         * config/h8300/h8300.h: Likewise.
8653         * config/h8300/h8300.md: Likewise.
8654
8655 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8656
8657         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
8658         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
8659         ultrix_unistd): New hacks.
8660         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
8661         ULTRIX_CONST2_CHECK): Add checks.
8662         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
8663         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
8664         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
8665         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
8666         * fixinc/tests/base/locale.h: New file.
8667         * fixinc/fixincl.x: Rebuilt.
8668
8669 2004-01-21  Andreas Jaeger  <aj@suse.de>
8670             Michael Matz  <matz@suse.de>
8671
8672         * doc/extend.texi (Extended Asm): Clarify memory clobber.
8673
8674 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
8675
8676         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
8677         _Jv_RegisterClasses through a function pointer.
8678
8679 2004-01-21  Falk Hueffner  <falk@debian.org>
8680
8681         PR target/12898
8682         * config/alpha/alpha.c (alpha_emit_set_const_1): If
8683         no_new_pseudos, use gen_rtx_SET directly for SImode constants
8684         which need multiple instructions to emit.
8685
8686 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
8687
8688         * config/m32r/m32r.h (CPP_SPEC): Define.
8689
8690 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
8691
8692         * c-decl.c (merge_decls): Kill different_binding_level and
8693         different_tu arguments; simplify throughout.
8694         (duplicate_decls): Likewise.
8695         (pushdecl, merge_translation_unit_decls): Update calls to
8696         duplicate_decls.
8697
8698 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8699
8700         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
8701         $(SYSTEM_H).
8702         (print-rtl1.o): Depend on $(SYSTEM_H).
8703
8704 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
8705
8706         PR bootstrap/12730
8707         * configure.ac: Delete definition and subsitution of docdir.
8708         Add info, man, srcman and srcinfo to target hooks. Create doc/
8709         directory.
8710         * configure: Regenerate.
8711         * Makefile.in: Don't substitute docdir and delete all references
8712         throughout.
8713         (MAKEINFOFLAGS): Define.
8714         (stmp-docobjdir): Delete.
8715         (INFOFILES, MANFILES): Define.
8716         (info): Call lang.info, srcinfo and lang.srcinfo.
8717         (generated-manpages): Call lang.man, srcman and lang.srcman.
8718         (srcinfo, srcman): New rules to copy back files to source directory.
8719         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
8720         (install-man): Revamp rule.
8721         (clean): Update dvi directory.
8722         (distclean): Delete TAGS from front end directorys.
8723         (maintainer-clean): Delete all document files in source directory.
8724
8725         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
8726         (objc.srcman, objc.srcinfo): Likewise.
8727
8728 2004-01-20  Bruce Korb  <bkorb@gnu.org>
8729
8730         * fixinc/inclhack.def(math_exception): bypass only for glibc.
8731         (matherr_decl): rename & relocate as exception_structure.
8732         This fix must precede the math_exception fix.
8733
8734 2004-01-20  Roger Sayle  <roger@eyesopen.com>
8735
8736         * fold-const.c (fold_convert): Rename to fold_convert_const.
8737         (fold_convert_const): Change arguments to take a tree_code,
8738         a type and the operand/expression to be converted.  Return
8739         NULL_TREE if no simplification is possible.  Add support for
8740         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
8741         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
8742         Adjust call to fold_convert to match new fold_convert_const.
8743         Avoid modifying the tree passed to fold in-place.
8744
8745 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
8746
8747         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
8748         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
8749         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
8750
8751 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8752
8753         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
8754         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
8755         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
8756         (emit_move_sequence): Check scratch_reg first in various if statements.
8757         Extend source simplification to handle all 64-bit CONST_INTs.
8758         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
8759         frame size.
8760         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
8761         frame offset calculations.
8762         * pa.h (NEW_HP_ASSEMBLER): Add comment.
8763         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
8764         LEGITIMATE_64BIT_CONST_INT_P): Define.
8765         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
8766         any CONST_INT as legitimate during and after reload.
8767         (VAL_32_BITS_P, INT_32_BITS): Define.
8768         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
8769
8770 2004-01-20  Jan Hubicka  <jh@suse.cz>
8771
8772         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
8773         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
8774         containing hard regs are shared.
8775         (gen_hard_reg_clobber): New function.
8776         (hard_reg_clobbers): New array.
8777         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
8778         (copy_rtx): Do not copy clobbers containing hard regs.
8779         * rtl.h (gen_hard_reg_clobber): Declare.
8780
8781 2004-01-20  Jan Hubicka  <jh@suse.cz>
8782
8783         * varray.c:  Include hashtab.h
8784         (varray_descriptor): New structure.
8785         (hash_descriptor, eq_descriptor, varray_descriptor,
8786         print_statistics): New static functions
8787         (varray_init, varray_grow): Update statistics
8788         (dump_varray_statistics): New function.
8789         * varray.h (dump_varray_statistics): Declare.
8790         * toplev.c (finalize): Call it.
8791         * Makefile.in (varray.o): Add dependency.
8792
8793 2004-01-20  Jan Hubicka  <jh@suse.cz>
8794
8795         * cselib.c: Include alloc-pool.h
8796         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
8797         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
8798         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
8799         unchain_one_elt_loc_list_pool, unchain_one_value,
8800         new_cselib_val): Simplify using allocpool.
8801         (cselib_init): Initialize allocpools.
8802         (cselib_finish): Finish allocpools.
8803         * Makefile.in (cselib.o): Depend on alloc-pool.h
8804
8805 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
8806
8807         * config/mips/mips.c (mips_load_call_address): Make the call insn
8808         use $gp if it could be calling a lazy binding stub.
8809
8810 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
8811
8812         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
8813         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8814         (TARGET_STRUCT_VALUE_RTX): Likewise.
8815         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
8816         (PROMOTE_FUNCTION_RETURN): Remove.
8817         (STRUCT_VALUE): Remove.
8818
8819 2004-01-20  Denis Chertykov  <denisc@overta.ru>
8820
8821         PR bootstrap/13735
8822         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
8823         register as pointer after reload.
8824
8825 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8826
8827         PR optimization/12440
8828         * loop.c: Include ggc.h.
8829         (loop_optimize): Run garbage collector between optimization of loops.
8830         * Makefile.in (loop.o): Add GGC_H dependency.
8831
8832 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
8833
8834         * gcc/config/rs6000/rs6000.c (function_arg) Handle
8835         vector register special in function without prototype.
8836         (function_arg_advance): Vector parameters get always
8837         GPRs allocated for the linux64 target.
8838
8839 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
8840
8841         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
8842         not TARGET_M32RX_MASK.
8843
8844 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
8845
8846         PR target/13557
8847         * config/sparc/sparc.c (function_arg): Reorder the cases.
8848
8849 2004-01-19  Per Bothner  <per@bothner.com>
8850
8851         Move cpp_reader's line_maps field to a shared global.
8852         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
8853         and change the type to a pointer rather than a struct.
8854         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
8855         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
8856         Likewise.
8857         * cppfiles.c (validate_pch):  Likewise.
8858         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
8859         Likewise.
8860         * cpperror.c (print_location):  Likewise.
8861         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
8862         * cppinit.c (cpp_create_reader):  Handle new parameter.
8863         (cpp_destroy):  Don't free line_maps - that's no longer our job.
8864         * input.h (line_table):  New variable.
8865         * toplev.c (line_table):  Declare variable.
8866         (general_init):  Initialize line_table.
8867         * c-opts.c (c_common_init_options):  Pass line_table to
8868         cpp_create_reader.
8869         * fix-header.c (read_scan_file):  New local variable line_table.
8870         Initialize, and pass it to cpp_create_reader.
8871         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
8872         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
8873
8874 2004-01-19  Per Bothner  <per@bothner.com>
8875
8876         Implement a cache for linemap_lookup.
8877         * line-map.h (struct_line_maps):  Add cache field.
8878         * line-map.c (linemap_init):  Zero cache field.
8879         (linemap_add):  Set cache field to offset of newly allocated map.
8880         (linemap_lookup):  Use and set cache field.
8881
8882 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8883
8884         PR optimization/13567
8885         * cse.c (cse_basic_block): Call cse_insn with a non-null
8886         libcall_insn for the last SET insn of a no-confilict block.
8887
8888 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
8889
8890         * Makefile.in (target_noncanonical, program_transform_name): Use
8891         immediate define instead of deferred.
8892         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
8893         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
8894         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
8895         deferred backquote.
8896
8897 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
8898
8899         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
8900         true unconditionally.
8901         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
8902         Remove.
8903         (build_unary_op, build_modify_expr): Don't handle extended
8904         lvalues.
8905         (build_component_ref, build_conditional_expr): Call non_lvalue
8906         instead of pedantic_non_lvalue.
8907         (build_c_cast): Don't condition use of non_lvalue on pedantic.
8908         * fold-const.c (fold): Don't check pedantic directly for
8909         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
8910         passed to pedantic_non_lvalue.
8911         * doc/extend.texi: Remove documentation of extended lvalues.
8912
8913 2004-01-19  Roger Sayle  <roger@eyesopen.com>
8914
8915         PR optimization/5263
8916         * simplify-rtx.c (associative_constant_p): Delete.
8917         (simplify_associative_operation): Rewrite to linearize terms, and
8918         attempt to simplify new term against both left and right subterms.
8919         (simplify_binary_operation): Call swap_commutative_operands_p on
8920         op0 and op1, not trueop0 and trueop1.  Move the initialization of
8921         trueop0 and trueop1 down to where first needed.
8922         (simplify_relational_operation): Likewise.
8923         * rtlanal.c (commutative_operand_precedence): Also order constant
8924         operands using avoid_constant_pool_reference.
8925
8926 2004-01-19  Richard Henderson  <rth@redhat.com>
8927
8928         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
8929         don't check memory mode.
8930         (unaligned_memory_operand): Likewise.
8931         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
8932         abort for op0 not MEM.
8933
8934         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
8935         is not a reg, copy to a scratch first.
8936         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
8937         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
8938         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
8939         (reload_inqi, reload_inhi): Fix mode of op0.
8940         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
8941         reload_outhi_help): Likewise.  Use define_insn_and_split.
8942
8943         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
8944         as well as $29 dead.
8945
8946 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
8947
8948         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
8949         "tls_object" for thread-local objects.
8950         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
8951         "#tls" for thread-local sections.
8952         * configure.ac (thread-local checks): Specify --fatal-warnings in
8953         every binutils-specific checks.  For sparc*-*-*, test whether the
8954         OS is Solaris and the tools are native and act accordingly.
8955         * configure: Rebuild.
8956
8957 2004-01-19  Jeff Law  <law@redhat.com>
8958
8959         * contrib.texi: Update Paolo Carlini's entry.  New entries for
8960         Jerry Quinn and Petur Runolfsson.
8961
8962 2004-01-19  Roger Sayle  <roger@eyesopen.com>
8963
8964         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
8965         size, don't use the larger zero-extending loads.
8966
8967 2004-01-19  Richard Henderson  <rth@redhat.com>
8968
8969         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
8970         * alpha.md (UNSPEC_NT_LDA): Remove.
8971         (UNSPEC_CVTLQ, cvtlq): New.
8972         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
8973         (extendsidi2_fix): Remove.
8974         (extendsidi2 splitter): Use cvtlq.
8975         (extendsidi2 fp peepholes): Remove.
8976         (cvtql): Use SFmode instead of SImode.
8977         (fix_trunc?fsi): Update to match.
8978         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
8979         (movsi): Rename from movsi_nofix, remove f alternatives.
8980         (movsi_nt_vms): Similarly.
8981         (movsi_fix, movsi_nt_vms_fix): Remove.
8982         (nt_lda): Remove.
8983         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
8984
8985 2004-01-19  Jan Hubicka  <jh@suse.cz>
8986
8987         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
8988         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
8989         list.
8990         (cgraph_remove_unreachable_nodes): New function
8991         (cgraph_decide_inlining_of_small_function): Fix pasto.
8992         (cgraph_decide_inlining_incrementally): Fix pasto.
8993         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
8994
8995 2004-01-19  Steven Bosscher  <stevenb@suse.de>
8996
8997         * gengtype.c (header_file): Make it static.
8998         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
8999         * gengtype.h (header_file): No longer extern.
9000
9001 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9002
9003         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
9004         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
9005         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
9006
9007 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9008
9009         * stmt.c (HAVE_casesi): Define it not already defined.
9010         (HAVE_tablejump): Likewise.
9011         (expand_end_case_type): Resort to the binary tree method if
9012         neither casesi or tablejump is available.
9013
9014 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
9015
9016         * final.c (final_scan_insn): Make non-static again.
9017         * output.h (final_scan_insn): Re-add prototype.
9018         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
9019         to final_scan_insn call.
9020         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
9021         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
9022         * config/pa/pa.c (output_lbranch, output_call): Likewise.
9023         * config/sh/sh.c (print_slot): Likewise.
9024         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
9025         (output_sibcall, sparc_flat_function_epilogue): Likewise.
9026
9027 2004-01-18  Jan Hubicka  <jh@suse.cz>
9028
9029         * basic-block.h (try_redirect_by_replacing_jump): Declare.
9030         * cfgcleanup.c (try_optimize_cfg): Use it.
9031         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
9032         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
9033         Kill hack.
9034         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
9035
9036         Revert:
9037         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9038
9039                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9040                 even after reload, just don't remove the actual jump tables.
9041
9042 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9043
9044         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
9045
9046 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
9047
9048         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
9049         the size of a pointer in bytes.
9050
9051 2004-01-18  Roger Sayle  <roger@eyesopen.com>
9052
9053         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
9054         live "next" variable, which could lead to an infinite loop.
9055
9056 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
9057
9058         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
9059         block.
9060
9061         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9062         Check for NULL in the chain and remove repeated code.
9063
9064 2004-01-18  Jan Hubicka  <jh@suse.cz>
9065
9066         * coverage.c (checksum_string): Rename to ...
9067         (coverage_checksum_string): ... this one, Use crc32_string; recognize
9068         names containing random number and zero the number out in order to get
9069         match.
9070
9071 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
9072
9073         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
9074
9075 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9076
9077         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
9078         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
9079         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
9080         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
9081         doc/trouble.texi: Remove trailing whitespace.
9082
9083 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
9084
9085         PR target/7618
9086         * config/mips/mips.c: Include cfglayout.h.
9087         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9088         (mips_unspec_offset_high): Add temporary register argument.
9089         (mips_load_call_address): New function, split out from...
9090         (mips_expand_call): ...here.
9091         (mips_output_cplocal): New function.
9092         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
9093         (mips_emit_loadgp): New function, split out from...
9094         (mips_expand_prologue): ...here.
9095         (mips_output_mi_thunk): New function.
9096
9097 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
9098
9099         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
9100         mcpu32): Remove redundant checks for implied target predefines.
9101
9102 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
9103
9104         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9105         Return type is unsigned int not int.
9106         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9107         Likewise.
9108
9109 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9110
9111         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
9112         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
9113         "GNU/Linux" and "Microsoft Windows" terminology.
9114
9115 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9116
9117         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
9118         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
9119         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
9120         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
9121         @smallexample instead of @example.
9122
9123 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
9124
9125         * objc/objc-act.c (build_objc_method_call): Use target
9126         hooks instead of macros to determine if ..._stret
9127         dispatchers should be used (NeXT runtime only).
9128
9129 2004-01-17  Roger Sayle  <roger@eyesopen.com>
9130
9131         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
9132         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
9133
9134 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
9135
9136         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
9137         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
9138         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
9139         macros.
9140         * reload1.c (emit_reload_insns): Use them.
9141         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
9142         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
9143         for NULL PATTERN.
9144
9145 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
9146
9147         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
9148         (final_scan_insn): Update to take an additional SEEN argument.  Emit
9149         a line note after the prologue.  Make static.
9150         (line_note_exists): Remove.
9151         (final): Don't initialize line_note_exists.  Update call to
9152         final_scan_insn.
9153         * output.h (final_scan_insn): Remove prologue.
9154         * function.c (set_insn_locators): Update comment.
9155         (thread_prologue_and_epilogue_insns): Add a comment.
9156
9157 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
9158
9159         PR target/10781
9160         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9161         Prototype.
9162         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9163         New function.
9164         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
9165         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
9166         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
9167
9168 2004-01-17  Jan Hubicka  <jh@suse.cz>
9169
9170         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
9171         commit.
9172
9173         * toplev.c (HAVE_conditional_execution): Provide default.
9174         (rest_of_handle_reorder_blocks): For conditional_execution target
9175         update liveness once after all transformations
9176         (rest_of_compilation): Do crossjumping before ce3.
9177
9178 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
9179
9180         * alias.c (new_alias_set): Mark last_alias_set for PCH.
9181         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
9182         for PCH.
9183         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
9184         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
9185         (get_TOC_alias_set): Mark 'set' for PCH.
9186
9187 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9188
9189         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9190         even after reload, just don't remove the actual jump tables.
9191
9192 2004-01-17  J. Brobecker  <brobecker@gnat.com>
9193
9194         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
9195         Remove checks for is_ada() and TREE_UNSIGNED.
9196         (subrange_type_die): Emit a byte_size attribute if the subrange
9197         type size is different from the base type size.
9198         (modified_type_die): Replace call to is_ada_subrange_type() by
9199         call to is_subrange_type().
9200
9201 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
9202
9203         * config/sh/sh.c: Include ggc.h.
9204
9205 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9206
9207         * Makefile.in (MD5_H): New.
9208         (fold-const.o): Depend on md5.h.
9209         (dwarf2out.o): Likewise.
9210         (cppfiles.o): Likewise.
9211         * cppfiles.c: Include md5.h.
9212         (should_stack_file): Check against list read from PCH file.
9213         (struct pchf_data): New.
9214         (pchf): New variable.
9215         (struct pchf_adder_info): New.
9216         (pchf_adder): New.
9217         (pchf_save_compare): New.
9218         (_cpp_save_file_entries): New.
9219         (_cpp_read_file_entries): New.
9220         (struct pchf_compare_data): New.
9221         (pchf_compare): New.
9222         (check_file_against_entries): New.
9223         * cpphash.h (_cpp_save_file_entries): Prototype.
9224         (_cpp_read_file_entries): Prototype.
9225         * cpppch.c (cpp_write_pch_state): Write the list of headers.
9226         (cpp_read_state): Read the list of headers.
9227
9228 2004-01-17  Jan Hubicka  <jh@suse.cz>
9229
9230         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
9231         builtin_expect specially.
9232         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
9233         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
9234         * invoke.texi (max-inline-insns-single): Set to 100.
9235         (large-function-insns): Set to 3000.
9236
9237 2004-01-16  Eric Christopher  <echristo@redhat.com>
9238             Chandrakala Chavva <cchavva@redhat.com>
9239
9240         * cppcharset.c (one_iso88591_to_utf8): New function.
9241         (convert_iso88591_utf8): Ditto. Use.
9242         (conversion_tab): Use.
9243         (_cpp_input_to_utf8): New function.
9244         (_cpp_init_iconv_buffer): Ditto.
9245         (_cpp_close_iconv_buffer): Ditto.
9246         * cpphash.h: Prototype new functions.
9247         (cpp_buffer): Add input_cset_desc.
9248         * cppinit.c: Add input_charset default.
9249         * cpplib.c (cpp_push_buffer): Support init and
9250         close of iconv.
9251         * cpplib.h (cpp_options): Add input_charset.
9252
9253 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9254
9255         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
9256         * config/alpha/unicosmk.h: Remove a commented-out definition
9257         of ASM_OUTPUT_SECTION_NAME.
9258         * config/stormy16/stormy16.h: Likewise.
9259
9260 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9261
9262         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
9263         (alpha___extern_prefix_sys_stat): ... this.
9264         Apply to <sys/mount.h>, too.
9265         Tweak to match more variations.
9266         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
9267
9268         * fixinc/inclhack.def (alpha___extern_prefix,
9269         alpha___extern_prefix_standards): New hacks to obey
9270         __PRAGMA_EXTERN_PREFIX.
9271         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
9272         test.
9273         * fixinc/tests/base/standards.h: Likewise.
9274
9275         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
9276         variations.
9277         New testcase.
9278         * fixinc/tests/base/pthread.h: Handle it.
9279
9280         * fixincl/inclhack.def (bad_lval): Sort file list.
9281         Add many missing files up to Tru64 UNIX V5.1B.
9282         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
9283         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
9284         order.
9285
9286         * fixinc/fixincl.x: Regenerate.
9287
9288 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
9289
9290         * version.c (version_string): Change to 3.5.0.
9291         * doc/include/gcc-common.texi (version-GCC): Likewise.
9292
9293 2004-01-16  Jan Hubicka  <jh@suse.cz>
9294
9295         * i386.md (load_tp_di): Fix pasto.
9296
9297         PR opt/13608
9298         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
9299
9300         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
9301         pp_c_character_constant, pp_c_floating_constant,
9302         pp_c_additive_expression, pp_c_shift_expression,
9303         pp_c_equality_expression, pp_c_and_expression,
9304         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
9305         pp_c_logical_and_expression): Remove inline modifier.
9306         * dwarf2out.c (get_AT): Likewise.
9307         * et-forest.c (et_splay): Likewise.
9308         * ra.h (ra_alloc, ra_calloc): Likewise
9309
9310 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9311
9312         * config/frv/frv-protos.h: Fix comment formatting.
9313         * config/frv/frv.c: Likewise.
9314         * config/frv/frv.h: Likewise.
9315         * config/frv/frv.md: Likewise.
9316         * config/frv/frvbegin.c: Likewise.
9317         * config/frv/frvend.c: Likewise.
9318
9319 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9320
9321         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
9322         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
9323         LINKER_DOES_NOT_WORK_WITH_DWARF2.
9324         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
9325
9326 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
9327
9328         PR 11864
9329         * postreload.c (reload_cse_simplify_operands): Don't remove
9330         implicit extension from LOAD_EXTEND_OP.
9331
9332 2004-01-16  Jan Hubicka  <jh@suse.cz>
9333
9334         PR opt/11350
9335         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
9336         after reload.
9337         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
9338         rtl_try_redirect_by_replacing_branch): Likewise.
9339
9340 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
9341
9342         PR pch/13689
9343         * alias.c (struct alias_set_entry): Mark for GC.
9344         (alias_sets): Make static, mark for GC.
9345         (record_alias_subset): Use GC to allocate alias structures.
9346         * varray.c (element): Make generic varrays GCed.
9347
9348         PR pch/13361
9349         * c-typeck.c (constructor_asmspec): Delete.
9350         (struct initializer_stack): Delete field 'asmspec'.
9351         (start_init): Delete saving of asmspec.
9352         (finish_init): Don't update constructor_asmspec.
9353         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
9354         * stmt.c (expand_asm): Duplicate strings from tree.
9355         (expand_asm_operands): Likewise.
9356         * tree.c (tree_size): Update computation of size of STRING_CST.
9357         (make_node): Don't make STRING_CST nodes.
9358         (build_string): Allocate string with tree node.
9359         * tree.def (STRING_CST): Update comment.
9360         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
9361         (tree_string): Place contents of string in tree node.
9362         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
9363         from tree.
9364
9365         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
9366         altivec operands.
9367
9368 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9369
9370         * c-common.h: Fix comment formatting.
9371         * c-cppbuiltin.c: Likewise.
9372         * c-pragma.c: Likewise.
9373         * calls.c: Likewise.
9374         * collect2.c: Likewise.
9375         * cppcharset.c: Likewise.
9376         * cpptrad.c: Likewise.
9377         * dbxout.c: Likewise.
9378         * defaults.h: Likewise.
9379         * dwarf2out.c: Likewise.
9380         * fold-const.c: Likewise.
9381         * genautomata.c: Likewise.
9382         * genconditions.c: Likewise.
9383         * genflags.c: Likewise.
9384         * gengtype.c: Likewise.
9385         * integrate.c: Likewise.
9386         * loop.c: Likewise.
9387         * predict.c: Likewise.
9388         * sdbout.c: Likewise.
9389
9390 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
9391
9392         * config/ia64/ia64.md (*movti_internal): C output template
9393         extracted to ia64.c.
9394         (*movti_internal_reg): Delete.
9395         (reload_inti, reload_outti): Use the correct mode on operand 2
9396         in the first place, don't fix it up in the output template.
9397         (movtf, reload_ointf, reload_outtf): New expanders.
9398         (*movtf_internal): New define_insn_and_split.
9399         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
9400         make static; do not hand TFmode CONST_DOUBLEs to split_double.
9401         (ia64_split_tmode_move): New function, body mostly pulled
9402         from ia64.md:*movti_internal.
9403         (ia64_function_arg_words): New function, extracted common
9404         logic from ia64_function_arg et seq.
9405         (ia64_function_arg_offset): Likewise.  Handle correctly the
9406         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
9407         (ia64_function_arg, ia64_function_arg_partial_nregs)
9408         (ia64_function_arg_advance): Use ia64_function_arg_words and
9409         ia64_function_arg_offset.
9410         (ia64_function_value): TCmode does not go in float regs.
9411         (ia64_secondary_reload_class): Also handle TFmode.
9412         * config/ia64/ia64-protos.h: Remove prototype for
9413         ia64_split_timode; add prototype for ia64_split_tmode_move.
9414
9415 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
9416
9417         * Makefile.in (MAINT): Make it an immediate assignment.
9418
9419 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9420
9421         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
9422
9423 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9424
9425         * config/h8300/coff.h: Replace Hitachi with Renesas.
9426         * config/h8300/elf.h: Likewise.
9427         * config/h8300/h8300-protos.h: Likewise.
9428         * config/h8300/h8300.c: Likewise.
9429         * config/h8300/h8300.h: Likewise.
9430         * config/h8300/h8300.md: Likewise.
9431         * config/h8300/lib1funcs.asm: Likewise.
9432
9433 2004-01-15  Andrew Pinski  <apinski@apple.com>
9434
9435         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
9436         around it.
9437
9438 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9439
9440         * config/h8300/h8300.c (h8300_return_in_memory): New.
9441         (TARGET_STRUCT_VALUE_RTX): Likewise.
9442         (TARGET_RETURN_IN_MEMORY): Likewise.
9443         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
9444         (RETURN_IN_MEMORY): Likewise.
9445
9446 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
9447
9448         PR optimization/13375
9449         * gcse.c (handle_avail_expr): Just return if the source is not a
9450         single set.
9451
9452 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
9453             Daniel Jacobowitz  <drow@mvista.com>
9454
9455         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
9456         (EQUIV): Define.
9457         (ARM_FUNC_ALIAS): New macro.
9458         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
9459         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
9460
9461 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9462
9463         PR optimization/12372
9464         * calls.c (expand_call): Add call_fusage data for stack arguments in
9465         constant calls.
9466
9467 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
9468
9469         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
9470         (rs6000_elf_declare_function_name): Formatting.
9471         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
9472
9473 2004-01-15  Jan Hubicka  <jh@suse.cz>
9474
9475         PR bootstrap/13692
9476         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
9477         previous patch.
9478
9479 2004-01-15  Richard Henderson  <rth@redhat.com>
9480
9481         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
9482         integer regs of the same call-savedness.
9483
9484 2004-01-15  Andreas Schwab  <schwab@suse.de>
9485
9486         PR bootstrap/13562
9487         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
9488         status for NOTB/NOTW/NEGW methods.
9489
9490 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9491
9492         * doc/invoke.texi: Update dump file names.  Fix a typo.
9493
9494 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9495
9496         * builtins.c (expand_builtin_va_end): Don't use
9497         EXPAND_BUILTIN_VA_END.
9498         * system.h (EXPAND_BUILTIN_VA_END): Poison.
9499         * config/d30v/d30v.h: Remove a commented-out definition of
9500         EXPAND_BUILTIN_VA_END.
9501         * config/stormy16/stormy16.h: Likewise.
9502
9503 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9504
9505         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
9506         * targhooks.c (default_struct_value_rtx): Don't use
9507         STRUCT_VALUE_INCOMING_REGNUM.
9508
9509 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
9510
9511         PR bootstrap/12744
9512         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
9513         GENINSRC and not parsedir.  Define srcextra as a langhook.
9514         * configure: Regenerate.
9515         * Makefile.in: Suppress default .l.c rule.  Don't substitute
9516         parsedir and delete all references throughout.  Conditionally define
9517         rule for srcextra dependent on GENINSRC.
9518         (stmp-docobjdir): Delete.
9519         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
9520         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
9521         and gengtype-yacc.h back to source directory.
9522         (maintainer-clean): Delete all parse files in source directory.
9523         (distclean): Delete generated files.
9524
9525         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
9526         (objc-parse.c, objc-parse.y): Don't use parsedir.
9527         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
9528         directory if requested.
9529         (po-generated): Don't use parsedir.
9530         (objc.maintainer-clean): Delete above files from source directory.
9531
9532 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9533
9534         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
9535
9536 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9537
9538         * doc/tm.texi: Replace RETURN_IN_MEMORY with
9539         TARGET_RETURN_IN_MEMORY.
9540
9541 2004-01-15  Jan Hubicka  <jh@suse.cz>
9542
9543         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
9544         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
9545         functions accepting SSE arguments
9546         (function_arg): Warn only when asked to warn.
9547         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
9548
9549 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
9550
9551         * c-parse.in (stmts_and_decls): Make label at end of compound
9552         statement a hard error.
9553
9554 2004-01-14  Jan Hubicka  <jh@suse.cz>
9555
9556         * cgraph.c (create_edge): Use local.redefined_extern_inline.
9557         * cgraph.h (cgraph_local_info): Sort fields by size; add
9558         redefined_extern_inline
9559         (cgraph_global_info): Sort fields by size.
9560         (cgraph_node): Likewise.
9561         * cgraphunit.c (cgraph_finalize_function): Se
9562         local.redefined_extern_inline on redefinition.
9563         (cgraph_analyze_function): Use it; fix formating.
9564
9565 2004-01-14  Jan Hubicka  <jh@suse.cz>
9566
9567         PR c++/10776
9568         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
9569         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
9570         bitmaps
9571         (cache_size): New variable
9572         (add_dependence): Update use; canonize early memory locations
9573         (sched_analyze_1): Likewise.
9574         (sched_analyze_2): Likewise.
9575         (init_dependency_caches): Initialize bitmaps.
9576         (free_dependency_caches): Free bitmaps
9577
9578 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9579
9580         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
9581         targetm.calls.strict_argument_naming().
9582         * target.h: Likewise.
9583
9584 2004-01-14  Richard Henderson  <rth@redhat.com>
9585
9586         PR debug/13231
9587         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
9588         instructions.
9589
9590 2004-01-14  Richard Henderson  <rth@redhat.com>
9591
9592         PR c++/12491
9593         * except.c (struct eh_region): Add u.fixup.resolved.
9594         (resolve_one_fixup_region): Split out from ...
9595         (resolve_fixup_regions): ... here.
9596
9597 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9598
9599         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
9600
9601 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9602
9603         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
9604         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
9605         (STRUCT_VALUE): Remove.
9606
9607 2004-01-14  Steven Bosscher  <stevenb@suse.de>
9608
9609         * system.h: Poison PROMOTED_MODE
9610         * integrate.c (expand_inline_function): Don't mention the
9611         PROMOTED_MODE.
9612         * loop.c (update_giv_derive): Same.
9613         * tree.h (DECL_RTL): Same.
9614
9615 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
9616
9617         PR target/9365
9618         * sh.c (gen_block_redirect): Add special handling of RETURN.
9619         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
9620         far branch target (i.e. it's a return).
9621
9622 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9623
9624         * regrename.c (find_oldest_value_reg): Fix a warning.
9625
9626 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
9627
9628         PR bootstrap/12527
9629         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
9630         Move linux-gas.h and linux-elf.h before aout.h.
9631         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
9632         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
9633
9634 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9635
9636         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
9637         (CONST_INT, VOIDmode, ...).
9638
9639 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
9640
9641         * regrename.c (find_oldest_value_reg): If the replacement uses
9642         multiple hard registers, check that all of them are in CLASS.
9643
9644 2004-01-14  Jan Hubicka  <jh@suse.cz>
9645
9646         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
9647         impossible.
9648
9649 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
9650
9651         * Makefile.in: Define MAINT from --enable-maintainer-mode.
9652
9653 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9654
9655         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
9656         Calculate always vrsave_mask if TARGET_ALTIVEC.
9657         (rs6000_emit_prologue): Emit code for vrsave
9658         only if TARGET_ALTIVEC_VRSAVE.
9659         (rs6000_emit_epilogue): Likewise.
9660
9661 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
9662
9663         * config/sparc/sparc.md (tie_add32): Fix pasto.
9664         (tie_add64): Likewise.
9665
9666 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9667
9668         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
9669
9670 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9671
9672         * config/iq2000/iq2000-protos.h: Fix comment formatting.
9673         * config/iq2000/iq2000.c: Likewise.
9674         * config/iq2000/iq2000.md: Likewise.
9675
9676 2004-01-14  J. Brobecker  <brobecker@gnat.com>
9677
9678         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
9679         (subrange_type_die): Add handle for nameless subrange types.
9680
9681 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9682
9683         * config/h8300/h8300-protos.h: Replace do_movsi with
9684         h8300_expand_movsi.
9685         * config/h8300/h8300.c (do_movsi): Change to
9686         h8300_expand_movsi.
9687         * config/h8300/h8300.md (movsi): Replace do_movsi with
9688         h8300_expand_movsi.
9689         (movsf): Likewise.
9690
9691 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9692
9693         * config/h8300/h8300.c (dosize): Change to
9694         h8300_emit_stack_adjustment.  Update callers.
9695
9696 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9697
9698         * config/h8300/h8300.md (movstrictqi): Add an alternative with
9699         the source being post_inc.  Tighten the predicate for the
9700         destination to register_operand.
9701         (movstricthi): Likewise.
9702
9703 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9704
9705         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
9706         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
9707         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
9708
9709 2004-01-14  Jan Hubicka  <jh@suse.cz>
9710
9711         Partial fix PR c++/12850
9712         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
9713         at zero nest level.
9714
9715 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
9716
9717         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
9718         pseudo-register.
9719
9720 2004-01-13  Devang Patel <dpatel@apple.com
9721
9722         PR debug/7078
9723         * dbxout.c (dbxout_symbol_name): Emit mangled names for
9724         NAMESPACE_DECL memebers.
9725
9726 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
9727
9728         PR c++/12709
9729         * c-common.c (finish_fname_decls): Use the chain only if the
9730         tree is an expr_stmt.
9731
9732 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
9733
9734         * rtl.def: Add comment about new option in automata_option.
9735
9736         * genautomata.c (PROGRESS_OPTION): New macro.
9737         (progress_flag): New global variable.
9738         (gen_automata_option): Process `progress'.
9739         (transform_insn_regexps, check_unit_distributions_to_automata,
9740         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
9741         expand_automata, write_automata): Print about the progress only if
9742         progress_flag.  Remove fflush.
9743         (initiate_automaton_gen): Process command line flag `-progress'.
9744
9745         * doc/md.texi: Describe the new option.
9746
9747 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9748
9749         * cfg.c (dump_bb): Dump entry edges.
9750
9751 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
9752
9753         * arm.c (thumb_legitimate_address_p): Only allow constant pool
9754         references from SImode.
9755         * arm.md (thumb_movhi_insn): Don't allow minipool references.
9756
9757 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9758
9759         * system.h (TEXT_SECTION): Poison.
9760         * varasm.c (text_section): Don't use TEXT_SECTION.
9761         * config/sh/sh.c (sh_file_start): Fix a comment typo.
9762         * doc/tm.texi (TEXT_SECTION): Remove.
9763
9764 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
9765
9766         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
9767
9768 2004-01-12  James E Wilson  <wilson@specifixinc.com>
9769
9770         * unwind-libunwind.c: Delete.
9771
9772 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
9773
9774         PR 13656
9775         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
9776         oldtype is set, set *newtypep or *oldtypep too.  Do not set
9777         them at the very end.
9778         (validate_proto_after_old_defn): Restructure for comprehensibility;
9779         make error messages clearer.
9780
9781 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
9782
9783         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
9784         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
9785         * varray.c: No need to prototype error.
9786         (varray_check_failed): Wrap long string onto two lines.
9787         (varray_underflow): New function.
9788
9789 2004-01-13  Steven Bosscher  <stevenb@suse.de>
9790
9791         PR c++/13376
9792         * function.h (struct function): Kill `name' field.
9793         (current_function_name): Make it an extern function.
9794         * function.c (current_function_name): New function.
9795         * graph.c: Update all uses of current_function_name.
9796         * gcse.c: Likewise.
9797         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
9798         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
9799         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
9800         instead of a strcmp with "main".
9801
9802 2004-01-13  Jan Hubicka  <jh@suse.cz>
9803
9804         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
9805
9806         * cgraphunit.c (cgraph_optimize_function):  Always do
9807         optimize_inline_calls when there is always_inline callee.
9808         (cgraph_decide_inlining): Fix formating.
9809         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
9810         functions.
9811         (expand_call_inline): Likewise.
9812         * toplev.h (sorry): Fix prototype.
9813
9814 2004-01-12  Roger Sayle  <roger@eyesopen.com>
9815
9816         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
9817         conditional jumps that drop through to unconditional jumps or the
9818         end of the sequence.
9819
9820 2004-01-13  Jan Hubicka  <jh@suse.cz>
9821
9822         * alias.c (new_alias_set): Construct the alias_set varray.
9823         (init_alias_once): Don't do it here.
9824
9825 2004-01-12  Marc Espie <espie@openbsd.org>
9826
9827         * system.h: handle YYBYACC like YYBISON.
9828
9829 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
9830
9831         PR target/10847
9832         * config.gcc: No longer includes conflicting header sparc/sol2.h when
9833         building on sparc64-*-openbsd*.
9834
9835 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
9836
9837         PR debug/13539
9838         * dbxout.c (dbxout_type): Protected inheritance is not
9839         private but protected.
9840
9841 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
9842
9843         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
9844
9845 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
9846
9847         PR optimization/12508.
9848         * combine.c (try_combine): Remove a dead set in a parallel
9849         even if its destination is a subreg.
9850
9851         Revert:
9852         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
9853         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
9854         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
9855
9856 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
9857
9858         * real.c: Update copyright date.
9859         * emit-rtl.c: Likewise.
9860         * rtl.h: Likewise.
9861         * dwarf2out.c: Likewise.
9862         * config/rs6000/darwin-ldouble.c: Likewise.
9863         * config/rs6000/rs6000.md: Likewise.
9864
9865 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
9866
9867         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
9868         TFmode to SImode libfuncs.
9869
9870 2004-01-12  Roger Sayle  <roger@eyesopen.com>
9871
9872         PR middle-end/11397
9873         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
9874
9875 2004-01-12  Jan Hubicka  <jh@suse.cz>
9876
9877         PR opt/12826
9878         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
9879         stored.
9880
9881         PR opt/12863
9882         * cfgcleanup.c (label_is_jump_target_p): Move to...
9883         * rtlanal.c (label_is_jump_target_p): ... here.
9884         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
9885         edges unified with branch edges.
9886
9887 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
9888
9889         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
9890         high word of an integral CONST_DOUBLE.
9891
9892 2004-01-12  Paul Brook  <paul@codesourcery.com>
9893
9894         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
9895
9896 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
9897
9898         PR target/13585
9899         * sh-protos.h (check_use_sfunc_addr): Declare.
9900         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
9901         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
9902
9903 2004-01-12  Jan Hubicka  <jh@suse.cz>
9904
9905         * alias.c:  Invlude varray.h
9906         (alias_sets): Turn into varray.
9907         (get_alias_set_entry): Use VARRAY; mark inline.
9908         (mems_in_disjoint_alias_sets_p): Mark inline.
9909         (record_alias_subset): Use varray.
9910         (init_alias_once): Initialize varray.
9911         (new_alias_set): Grow array.
9912         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
9913
9914 2004-01-12  Jan Hubicka  <jh@suse.cz>
9915
9916         Partial fix for PR opt/10776 II
9917         * cselib.c: Include params.h
9918         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
9919         locations.
9920         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
9921         * Makefile.in (cselib.o): Depend on params.h
9922
9923 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
9924
9925         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
9926         simplify_unary_operation if the operand has a known mode.
9927
9928 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
9929
9930         PR target/13534
9931         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
9932         predicate to handle 'ld' conform addresses.
9933         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
9934         contraint.
9935         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
9936         are memory contraints.
9937         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
9938         New prototype.
9939         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
9940         Change 'o' to 'Y' constraint.
9941         (*movdf_softfloat64): Ditto.
9942
9943 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
9944
9945         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
9946         brace-enclosed syntax in all C output statements.
9947
9948 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
9949
9950         PR target/13401
9951         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
9952         Objective-C language type value is 14.
9953
9954 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
9955
9956         PR c/12148
9957         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
9958         `int' in a number of places to make sure we always have a SImode
9959         and not a HImode.  Add a 'L' suffix to a number of constants.
9960
9961 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9962
9963         * pa.c: Don't include obstack.h.
9964
9965         * pa.md: Correct constraint in pattern for loading PIC label address.
9966
9967 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
9968
9969         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
9970          before defining.
9971
9972 2004-01-11  Steven Bosscher  <stevenb@suse.de>
9973
9974         PR fortran/9972
9975         * toplev.c (rest_of_handle_inline): Also consider functions
9976         for deferral if the language is GNU F77.
9977
9978 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
9979
9980         * c-decl.c (diagnose_arglist_conflict): Add missing space to
9981         diagnostic messages.
9982
9983 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
9984
9985         PR middle-end/13392
9986         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
9987         to drop through label.  Don't fall back to SCC even when conditional
9988         jump has not been found.
9989
9990 2004-01-11  Jan Hubicka  <jh@suse.cz>
9991
9992         * invoke.texi: Fix syntax error in previous patch.
9993
9994         Partial fix for PR opt/10776
9995         * Makefile.in (reload.o): Include param.h
9996         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
9997         * reload.c: Include params.h.
9998         (find_equiv_reg): Work limiting check.
9999         * invoke.texi: Document.
10000
10001 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
10002
10003         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
10004         out-of-bounds accesses to string constants.  Simplify mips16
10005         case accordingly.
10006
10007 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
10008
10009         PR optimization/13469
10010         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
10011         reload_cse_regs (-fnon-call-exceptions only).
10012
10013 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
10014
10015         * config/mcore/lib1.asm: Fix comment formatting.
10016         * config/mcore/mcore-elf.h: Likewise.
10017         * config/mcore/mcore.c: Likewise.
10018         * config/mcore/mcore.h: Likewise.
10019         * config/mcore/mcore.md: Likewise.
10020
10021 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
10022
10023         * c-decl.c (duplicate_decls): Break apart into...
10024         (diagnose_arglist_conflict, validate_proto_after_old_defn)
10025         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
10026         ... these new functions.  Restructure for comprehensibility.
10027         Remove various archaic special cases.  Always report the
10028         location of the previous declaration when a diagnostic is issued.
10029         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
10030         (match_builtin_function_types): Delete unnecessary forward declaration.
10031
10032 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
10033
10034         * genautomata.c (make_automaton, NDFA_to_DFA):
10035         Print progress bars with '.' characters instead of '*'.
10036         (build_automaton): Change notes to match.
10037
10038 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
10039
10040         * config/m32r/m32r.md: Use define_constants for unspec and
10041         unspec_volatile.
10042
10043 2004-01-10  Jan Hubicka  <jh@suse.cz>
10044
10045         PR opt/11635
10046         * expr.c (expand_expr_real):  More curefully expand union casts.
10047
10048 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
10049
10050         * config/m32r/m32r.md (flush_icache): Use 1 for
10051         unspec_volatile.
10052
10053 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
10054             James E Wilson  <wilson@specifixinc.com>
10055
10056         PR debug/12860
10057         * dbxout.c (dbxout_symbol): Remove initialization of
10058         current_sym_code, current_sym_value, and current_sym_addr.
10059         (dbxout_symbol_location): Same.
10060         (dbxout_prepare_symbol): Zero current_sym_code,
10061         current_sym_value, and current_sym_addr.
10062
10063 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
10064
10065         * tree.c (get_unwidened): Reorder conditions so that the null pointer
10066         check is done first.
10067
10068 2004-01-09  Eric Christopher  <echristo@redhat.com>
10069
10070         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
10071         if we're running mark_constant_function.
10072
10073 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
10074
10075         PR target/12561
10076         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
10077
10078 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
10079
10080         PR debug/11231
10081         * dbxout.c (dbxout_type_fields): Return if any item is
10082         error_mark_node or the type is error_mark_node.
10083
10084 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
10085
10086         * config/rs6000/darwin-ldouble.c: Add big comment explaining
10087         exactly what is expected as a 'long double'.
10088         (_xlqadd): When a value to be returned is representable as a
10089         'double', just return it directly, do not construct it using a union.
10090         Also, correct final fixup.
10091         (_xlqmul): Likewise.
10092         (_xlqdiv): Likewise.
10093         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
10094
10095         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
10096
10097 2004-01-09  Richard Henderson  <rth@redhat.com>
10098
10099         * recog.c (constrain_operands): Validate mem operands.
10100
10101 2004-01-09   James E Wilson  <wilson@specifixinc.com>
10102
10103         * gcc.c (init_spec): Remove -lunwind from shared case.
10104         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
10105
10106 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
10107
10108         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
10109         * configure: Regenerate
10110
10111 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
10112
10113         PR c/11234
10114         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
10115         between function and object pointers.
10116         (digest_init): When comparing a pointer to function type to the
10117         target type, only apply TREE_TYPE once to the pointer to function
10118         type.
10119         * except.c (for_each_eh_label_1): Treat data as a pointer to a
10120         function pointer rather than casting it to a function pointer.
10121         (for_each_eh_label): Update caller.
10122         * recog.h (struct insn_data): Use a struct or union for output.
10123         * genoutput.c (output_insn_data): Update.
10124         * final.c (get_insn_template): Update.
10125
10126 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
10127
10128         * expr.h (expand_expr): Make it a macro, not a function.
10129         (expand_expr_real): New function.
10130         * expr.c (store_expr): Adjust logic for deciding whether or not to
10131         copy the value returned by expand_expr.
10132         (expand_expr): Rename to ...
10133         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
10134         calls to language hooks.
10135         * c-common.h (c_expand_expr): Adjust prototype.
10136         * c-common.c (c_expand_expr): Add alt_rtl parameter.
10137         * langhooks-def.h (lhd_expand_expr): Change prototype.
10138         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
10139         * langhooks.h (lang_hooks): Change type of expand_expr.
10140         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
10141         (last_expr_alt_rtl): Likewise.
10142         (expand_expr_stmt_value): Set last_expr_alt_rtl.
10143         (clear_last_expr): Clear it.
10144         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
10145         (expand_end_bindings): Save and restor last_expr_alt_rtl.
10146         * tree.def (RTL_EXPR): Give it an additional operand.
10147         * tree.h (RTL_EXPR_ALT_RTL): New macro.
10148
10149 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10150
10151         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
10152         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
10153
10154 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10155
10156         PR target/13380.
10157         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
10158         or (ne:SI (reg:CC 17) (const_int 0)).
10159         Be specific about modes wherever possible.
10160
10161 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10162
10163         * config/m32r/m32r.c (m32r_expand_block_move): Call
10164         gen_movestrsi_internal with two more arguments.
10165         (m32r_output_block_move): Adjust operand numbers.
10166         Properly update the source and destination pointers.
10167         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
10168         'r+'.  Change the set detinations to match_operand.
10169
10170 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10171
10172         * final.c (FIRST_INSN_ADDRESS): Remove.
10173         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
10174         * system.h (FIRST_INSN_ADDRESS): Poison.
10175         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
10176         * config/m32r/m32r-protos.h: Remove the prototype for
10177         m32r_first_insn_address.
10178         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
10179         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
10180         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
10181
10182 2004-01-09  J. Brobecker  <brobecker@gnat.com>
10183
10184         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
10185         we just created.
10186         (is_ada_subrange_type): DIEs for enumeration subtypes should be
10187         emitted as subrange types too.
10188         (subrange_type_die): Add handling of enumeration subtypes.
10189
10190 2004-01-08  Richard Henderson  <rth@redhat.com>
10191
10192         PR opt/12441
10193         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
10194         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10195         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10196         (ix86_address_cost): Be prepared for SUBREGed registers.
10197         (legitimate_address_p): Accept SUBREGed registers.
10198
10199 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
10200
10201         * Makefile.in: Rename configure.in to configure.ac
10202         * doc/sourcebuild.texi: Likewise.
10203         * configure: Regenerate.
10204         * config.in: Regenerate.
10205
10206 2004-01-08  Stuart Hastings  <stuart@apple.com>
10207
10208         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
10209
10210 2004-01-08  Jan Hubicka  <jh@suse.cz>
10211
10212         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
10213
10214 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
10215
10216         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
10217         (UNSPEC_FIX_TRUNC_TF): New constant.
10218         (movtf_internal): Make splitter active only when insn is active.
10219         (extenddftf2): Rewrite to properly load zero into low part.
10220         (extenddftf2_internal): New.
10221         (extendsftf2): Rewrite.
10222         (truncdftf2): Correct length.
10223         (floatditf2): Delete.
10224         (fix_trunc_helper): New.
10225         (fix_trunctfdi2): Use fix_trunc_helper.
10226         (fix_trunctfsi2): Likewise.fix_trunc
10227         (fix_trunctfsi2_internal): New.
10228
10229         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
10230         addresses are legitimate on Darwin even when flag_pic.
10231         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
10232         non-offsettable addresses for loads of TFmode constants.
10233
10234 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10235
10236         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
10237         variables in the appropriate bss section.
10238
10239 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
10240
10241         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
10242         target_flags has MASK_POWERPC64 when -m64.
10243         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
10244         to 620, 630, power3, power4 and rs64a entries.
10245         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
10246
10247 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
10248
10249         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
10250         floating-point constants.
10251
10252 2004-01-08  J. Brobecker  <brobecker@gnat.com>
10253
10254         * dwarf2out.c (subrange_type_die): Add context_die parameter.
10255         Create the subrange_type DIE using the given context DIE.
10256         (modified_type_die): Update call to subrange_type_die.
10257
10258 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
10259
10260         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
10261         Add multiple-include guard.
10262
10263 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
10264
10265         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
10266         all vector constant loadable by vsplt*.
10267         (output_vec_const_move): Likewise.
10268
10269 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
10270
10271         PR c/6024
10272         * c-typeck.c (comptypes): Only treat enumerated types in the same
10273         translation unit as compatible with each other when they are the
10274         same type.
10275         * doc/extend.texi: Update.
10276
10277 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
10278
10279         PR c/12165
10280         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
10281         array type from the array element type.
10282
10283 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
10284
10285         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
10286         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
10287         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
10288         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
10289         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
10290
10291 2004-01-06  Eric Christopher  <echristo@redhat.com>
10292
10293         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
10294         (DWARF2_DEBUGGING_INFO): Define.
10295         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
10296         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
10297         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
10298         for irix as.
10299         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
10300         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
10301         * config/mips/iris5gas.h: Ditto.
10302         (DBX_DEBUGGING_INFO): Remove.
10303         (DWARF2_DEBUGGING_INFO): Ditto.
10304         (MIPS_DEBUGGING_INFO): Ditto.
10305         (PREFERRED_DEBUGGING_TYPE): Ditto.
10306         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
10307         (PREFERRED_DEBUGGING_TYPE): Ditto.
10308         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
10309         * config/mips/elf64.h: Ditto.
10310
10311 2004-01-06  Jan Hubicka  <jh@suse.cz>
10312
10313         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
10314         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
10315
10316 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
10317
10318         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
10319         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
10320         * config/rs6000/darwin-ldouble.c: New.
10321
10322         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
10323         for constants.
10324         (constant_subword): Delete.
10325         * rtl.h (constant_subword): Delete prototype.
10326         (immed_double_const): Is not in varasm.c.
10327         * simplify-rtx.c (simplify_immed_subreg): New.
10328         (simplify_subreg): Use simplify_immed_subreg.
10329
10330         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
10331         than trying to generate RTL directly.
10332         (fix_trunctfsi2): Use expand_fix rather than trying to generate
10333         RTL directly.
10334
10335         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
10336
10337 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
10338
10339         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
10340         function into a separate macro.
10341         (read_only_data_section): Add void argument.
10342         (private_data_section): Same.
10343         (read_only_private_data_section): Same.
10344         (toc_section): Same.
10345
10346 2004-01-06  Jan Hubicka  <jh@suse.cz>
10347
10348         * invoke.texi:  Remove typo in last change.
10349
10350         PR target/10301
10351         * config.gcc: Accept opteron and athlon-64 as variants
10352         of k8.
10353         * i386.c (override_options): Likewise.
10354         * invoke.texi (i386 -mtune): Expand documentation.
10355
10356 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
10357
10358         * alias.c: Fix comment typos.
10359         * builtins.c: Likewise.
10360         * cfg.c: Likewise.
10361         * df.c: Likewise.
10362         * dominance.c: Likewise.
10363         * dwarf2out.c: Likewise.
10364         * emit-rtl.c: Likewise.
10365         * expr.c: Likewise.
10366         * final.c: Likewise.
10367         * fold-const.c: Likewise.
10368         * gcse.c: Likewise.
10369         * genattrtab.c: Likewise.
10370         * genrecog.c: Likewise.
10371         * gensupport.c: Likewise.
10372         * ggc-zone.c: Likewise.
10373         * integrate.c: Likewise.
10374         * local-alloc.c: Likewise.
10375         * loop.c: Likewise.
10376         * recog.c: Likewise.
10377         * regmove.c: Likewise.
10378         * reg-stack.c: Likewise.
10379         * reorg.c: Likewise.
10380         * rtlanal.c: Likewise.
10381         * rtl.h: Likewise.
10382         * sched-ebb.c: Likewise.
10383         * simplify-rtx.c: Likewise.
10384         * toplev.c: Likewise.
10385         * varasm.c: Likewise.
10386
10387 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
10388
10389         * doc/install.texi: Fix typos.
10390         * doc/invoke.texi: Likewise.
10391         * doc/md.texi: Likewise.
10392
10393 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10394
10395         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
10396
10397 2004-01-06  Jan Hubicka  <jh@suse.cz>
10398
10399         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
10400         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
10401         of MMX_REGPARM.
10402         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
10403         add MMX_REGPARM.
10404         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
10405         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
10406         (MMX_REGPARM_MAX): Similarly for -mmmx.
10407
10408 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10409
10410         * config/sh/linux.h: Fix comment formatting.
10411         * config/sh/netbsd-elf.h: Likewise.
10412         * config/sh/sh.c: Likewise.
10413         * config/sh/sh.h: Likewise.
10414         * config/sh/vxworks.h: Likewise.
10415
10416 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10417
10418         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
10419         * toplev.c (output_file_directive): Don't use
10420         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
10421
10422 2004-01-05  Steven Bosscher <s.bosscher@student.tudelft.nl>
10423
10424         * toplev.c: Fix broken checkin of 2003-12-30.
10425
10426 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
10427
10428         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
10429         (USING_MMAP): We don't support non-mmap.
10430         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
10431         large objects.
10432         (struct page_entry): Remove bytes_free.
10433         (struct page_table_chain): Remove.
10434         (struct globals): Remove page_table member.
10435         (loookup_page_table_entry): Function deleted.
10436         (set_page_table_entry): Ditto.
10437         (ggc_allocated_p): No longer need page table lookups.
10438         (ggc_marked_p): Ditto.
10439         (alloc_small_page): Don't care about bytes_free anymore.
10440         (alloc_large_page): Round up size.
10441         (ggc_alloc_zone_1): Mark large objects as such, and calculate
10442         their size the new way.
10443         Remove page table lookups and setting.
10444         (ggc_get_size): Calculate large object size the new way.
10445         (sweep_pages): Redo to account for fact that we no longer have
10446         bytes_free.
10447         (ggc_collect): No longer need to reincrement bytes_free.
10448         (ggc_pch_alloc_object): Handle new large objects properly.
10449         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
10450
10451 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10452
10453         * doc/invoke.texi: Remove a page break.
10454
10455 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10456
10457         * config/avr/avr.c (avr_output_function_prologue): Remove an
10458         extra pair of curly braces.
10459
10460 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10461
10462         * config/mn10300/mn10300.c: Fix comment formatting.
10463         * config/mn10300/mn10300.h: Likewise.
10464
10465 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10466
10467         * tree.h: Update documentation on nothrow_flag.
10468         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
10469         types.
10470
10471 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10472
10473         * doc/invoke.texi: Remove traces of dead ports.
10474
10475 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
10476
10477         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
10478         option.
10479
10480 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
10481
10482         PR target/12945
10483         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
10484         counter labels.
10485         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
10486         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
10487         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
10488         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
10489         (mips_symbol_insns): Don't trust the local/global classification.
10490         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
10491         (override_options): Make -mabicalls -fno-unit-at-a-time imply
10492         -mno-explicit-relocs.
10493         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
10494         between local and global symbols.
10495
10496 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
10497
10498         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
10499         (mips_preferred_reload_class): Declare.
10500         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
10501         (EXTRA_CONSTRAINT): Update accordingly.
10502         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
10503         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
10504         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
10505         mips_dangerous_for_la25_p.
10506         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
10507         if mips_dangerous_for_la25_p.
10508
10509 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
10510
10511         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
10512         warning.
10513
10514 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
10515
10516         * configure.ac: Use AC_PROG_CPP_WERROR.
10517         * configure: Regenerate.
10518
10519 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
10520
10521         * .cvsignore: Add autom4te.cache.
10522
10523 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
10524
10525         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
10526         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
10527         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
10528         then architecture options, then ABI options.  General rewording.
10529
10530 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
10531
10532         PR c/3414
10533         * doc/extend.texi: Clarify definition of malloc attribute.
10534
10535 2004-01-04  Jan Hubicka  <jh@suse.cz>
10536
10537         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
10538         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
10539         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
10540         (cgraph_inline_p): Add extra argument reason.
10541         * cgraphunit.c: Minor formating fixes.
10542         cgraph_first_inlined_callee): New functions.
10543         (record_call_1): Record builtins too.
10544         (cgraph_analyze_function): Update inline_failed messages.
10545         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
10546         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
10547         (cgraph_check_inline_limits): Likewise; Add argument reason.
10548         (cgraph_set_inline_failed): New static function.
10549         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
10550         reasons.
10551         (cgraph_inline_p): Add new argument reason.
10552         * tree-inline.c (expand_call_inline):  Update warning.
10553
10554 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
10555
10556         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
10557         with modern equivalents.
10558         * configure: Regenerate.
10559
10560         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
10561         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
10562         * configure: Regenerate.
10563
10564         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
10565
10566         * configure.in: Rename to configure.ac.
10567         * configure.ac: Renamed from configure.in; make minimum necessary
10568         changes for autoconf 2.5x.
10569         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
10570         * configure: Regenerate with autoconf 2.57.
10571
10572 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
10573
10574         * config/mips/linux.h: Fix comment formatting.
10575         * config/mips/mips.c: Likewise.
10576         * config/mips/mips.h: Likewise.
10577         * config/mips/mips.md: Likewise.
10578         * config/mips/netbsd.h: Likewise.
10579         * config/mips/windiss.h: Likewise.
10580
10581 2004-01-02  Richard Henderson  <rth@redhat.com>
10582
10583         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
10584         for sse and 387; add suppression for mmx.
10585
10586 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
10587
10588         * loop.c (loop_optimize): Free all loops_info's mems.
10589
10590         * c-typeck.c (finish_init): Free spelling_base before
10591         setting it again.
10592
10593         * cfgloop.c (flow_loops_find): Always free the sbitmap
10594         headers.
10595
10596         * predict.c (estimate_probability): Free bbs after being
10597         done with it.
10598
10599 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
10600
10601         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
10602         const_8bit_operand and call_address_operand.
10603
10604 2004-01-02  Jan Hubicka  <jh@suse.cz>
10605
10606         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
10607         when there is nothing to inline but warnings are requested.
10608         (cgraph_decide_inlining):  Fix memory leak.
10609
10610 2004-01-02  Jan Hubicka  <jh@suse.cz>
10611
10612         * expr.c (store_constructor):  Fix pasto in previous patch.
10613
10614 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
10615
10616         * config/i386/cygming.h: Fix comment formatting.
10617         * config/i386/djgpp.h: Likewise.
10618         * config/i386/gthr-win32.c: Likewise.
10619         * config/i386/i386-interix.h: Likewise.
10620         * config/i386/i386.c: Likewise.
10621         * config/i386/i386.h: Likewise.
10622         * config/i386/openbsd.h: Likewise.
10623         * config/i386/winnt.c: Likewise.
10624         * config/i386/xm-mingw32.h: Likewise.
10625
10626 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
10627
10628         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
10629         copyright and last modification dates.
10630
10631 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
10632
10633         * doc/install.texi (Specific): Mention x86_64.
10634
10635 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
10636
10637         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
10638         Call force_operand on plus_constant result.
10639
10640 2004-01-01  Jan Hubicka  <jh@suse.cz>
10641
10642         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
10643         * expr.c (store_constructor): Use vec_init pattern.
10644         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
10645         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
10646         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
10647         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
10648         New patterns.
10649         (sse2_unpc?pd): Fix pattern.
10650         (sse2_movlpd): Kill.
10651         (sse2_movsd): Deal with movlpd too.
10652         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
10653         (ix86_expand_vector_init): New.
10654         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
10655         * md.texi (vec_set, vec_extract): Document
10656
10657 2003-12-31  Jan Hubicka  <jh@suse.cz>
10658
10659         PR opt/13473
10660         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
10661         ASM input operands
10662
10663         PR opt/12617
10664         * toplev.c (dump_file_index): Reorder ce3 and bbro.
10665         (dump_file): Likewise.
10666         (rest_of_compilation): Likewise.
10667
10668         PR debug/13367
10669         * cgraph.c (cgraph_function_possibly_inlined):  Even with
10670         flag_really_no_inline we inline always_inline functions.
10671         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
10672         for non-always_inline functions when there is flag_really_no_inline.
10673         (cgraph_decide_inlining): Limit work done when not inlining.
10674         (cgraph_decide_inlining_incrementally): Likewise.
10675         (cgraph_optimize_function): Check whether something got inlined.
10676         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
10677         extern inline functions when not inlining.
10678
10679         * opts.c (decode_options):  Disable crossjumping at -O1
10680         * invoke.texi (-O1): Document change.
10681
10682 See ChangeLog.10 for earlier changes.