OSDN Git Service

* configure.ac: Check for -Wno-variadic-macros; don't use
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-03-24  Nathanael Nerode  <neroden@gcc.gnu.org>
2
3         * configure.ac: Check for -Wno-variadic-macros; don't use
4         -pedantic (in stage 1 or a simple 'make all') unless it's available,
5         and if it's available, use it.  Also, clean up check for
6         -Wno-long-long.
7         * configure: Regenerate.
8
9 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
10
11         * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
12         * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
13         (MULTILIB_DEFAULTS): Use it.
14         (MIPS_CPU_STRING_DEFAULT): Remove.
15         (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
16         (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120.  Make
17         EABI64 -mlong32 the default ABI.  Enforce the default architecture.
18         * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
19         march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
20         (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
21         (MULTILIB_EXCEPTIONS): Change choice of multilibs.  Update comments
22         accordingly.
23
24 2004-03-24  DJ Delorie  <dj@redhat.com>
25             Richard Sandiford  <rsandifo@redhat.com>
26
27         * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
28         (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
29         (ASM_SPEC): Pass down -mfix-vr4122-bugs.
30         * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
31         in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
32         (mips_init_libfuncs): Use special functions for divsi3 and modsi3
33         if TARGET_FIX_VR4122.
34         * config/mips/mips.md (define_attr length): Account for nops inserted
35         after macc and dmult when using -mfix-vr4122-bugs.
36         (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
37         * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
38         LIB2FUNCS_EXTRA.  Add config/mips/vr4122-div.S.
39         * config/mips/vr4122-div.S: New file.
40         * doc/invoke.texi: Document -mfix-vr4122-bugs.
41
42 2004-03-24  Richard Sandiford  <rsandifo@redhat.com>
43
44         * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
45         (TARGET_MIPS4130): New macro.
46         (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
47         * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
48         (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
49         with PROCESSOR_R4130.
50         * config/mips/mips.md (define_attr cpu): Add r4130.
51         * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
52
53 2004-03-24  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
54             Richard Sandiford  <rsandifo@redhat.com>
55
56         * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
57
58 2004-03-24  Alexandre Oliva  <aoliva@redhat.com>
59
60         PR preprocessor/14438
61         * cpplib.c (do_pragma): Remove line_change call after pragma
62         handler.
63
64 2004-03-23  Ian Lance Taylor  <ian@wasabisystems.com>
65
66         * doc/extend.texi (ARM Built-in Functions): Replace with correct
67         declarations.
68
69 2004-03-23  Roger Sayle  <roger@eyesopen.com>
70
71         * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
72         if flag_unsafe_math_optimizations.
73         * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
74         and TARGET_80387 expand using truncdfsf2_noop pattern.
75         (truncxfsf2): Likewise using truncxfsf2_noop.
76         (truncxfdf2): Likewise using truncxfdf2_noop.
77         (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
78
79 2004-03-23  Ziemowit Laski  <zlaski@apple.com>
80
81         * hooks.c (hook_constcharptr_tree_null): New hook.
82         * hooks.h (hook_constcharptr_tree_null): New prototype.
83         * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
84         * target.h (mangle_fundamental_type): New target hook.
85         * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
86         target hook at rs6000_mangle_fundamental_type.
87         (rs6000_mangle_fundamental_type): New function.
88         * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
89
90 2004-03-23  Zack Weinberg  <zack@codesourcery.com>
91
92         PR 12267, 12391, 12560, 13129, 14114, 14133
93         * c-tree.h: Forward declare struct c_binding.  Declare
94         c_override_bindings_to_false.  Update prototypes.
95         (struct lang_identifier): Update comments.  Change fields to be
96         struct c_binding *.
97         (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
98         (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
99         (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
100         (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
101         * c-common.h: Update prototypes.
102         * c-decl.c (struct c_scope): Update commentary.  Remove names,
103         names_last, parms, parms_last, tags, and shadowed fields.  Add
104         bindings and depth fields.
105         (scope_freelist): Move to more appropriate location.
106         (c_print_identifier): Update for changes to struct lang_identifier.
107         (objc_mark_locals_volatile): Update for new bindings structures.
108         (global_bindings_p): Honor c_override_global_bindings_to_false.
109         (pushlevel): Rename to push_scope; take no arguments; use the
110         scope_freelist; initialize scope->depth and check for overflow.
111         (poplevel): Rename to pop_scope; totally rewritten for new bindings
112         structures.
113         (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
114         C_DECL_INVISIBLE, for certain decisions.  Adjust some diagnostics.
115         Improve some commentary.  Adjust handling of forward parm decls.
116         (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
117         Preserve C_DECL_IN_EXTERNAL_SCOPE.
118         (warn_if_shadowing): Correct indentation.  Improve diagnostics.
119         (pushdecl): Remove unnecessary assertion.  Short-circuit anonymous
120         decls.  Rewrite for new bindings structures.  Improve commentary.
121         Eliminate the copy_node call.
122         (implicit_decl_warning): Use the "diag" idiom (as seen in
123         locate_old_decl) to reduce code duplication; call locate_old_decl
124         if appropriate.  Relocate to remove need for forward declaration.
125         (implicitly_declare): Adjust for new bindings structures.  Kludge
126         around Objective-C not-really-builtin functions.
127         (undeclared_variable): Improve diagnostics.  If current_function_decl
128         is nonnull but current_function_scope is null, use current_scope.
129         Use bind.
130         (lookup_tag): Adjust for new bindings structures.  Kludge around
131         Objective-C's tag declarations that wind up in the external scope.
132         (lookup_name): Adjust for new bindings structures.  Kludge around
133         c-common.c's pseudo-typedefs that wind up in the external scope.
134         (lookup_name_current_level): Rename lookup_name_in_scope; take a
135         second argument indicating the scope to examine; rewrite for
136         new bindings structures.
137         (c_init_decl_processing): Adjust for renamed functions.  Do not
138         initialize current_file_decl, first_builtin_decl, last_builtin_decl.
139         First scope pushed is the external scope, not the global scope.
140         (builtin_function): Use bind, not pushdecl.  Adjust other bits
141         for new data structures.  Keep track of builtins that should be
142         made visible automatically.
143         (start_decl): Adjust diagnostics.  Remove unnecessary call to
144         expand_decl.
145         (grokparms): Return 0 if arg_types is error_mark_node.
146         (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
147         reversed sense.  Rewrite for new bindings structures.  Do not
148         leave any decls in the scope, to prevent pop_scope from doing
149         contradictory things with them.
150         (finish_struct, finish_enum): Remove redundant diagnostics.
151         (build_enumerator): Don't cascade diagnostics for error_mark_node.
152         Mark location where -pedantic changes the meaning of the program.
153         (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
154         parameter decls into the function's scope structure using bind.
155         Warn here about function definitions in the wrong style.
156         Adjust diagnostics.
157         (store_parm_decls): Correct the determination of whether a
158         function was defined with a prototype.
159         (c_write_global_declarations): Operate on all file decls and on
160         the external scope.  Split body of the loop to...
161         (c_write_global_declarations_1): ... this new function, to avoid
162         code duplication.
163         (truly_local_externals, first_builtin_decl, last_builtin_decl)
164         (make_scope, pop_scope, in_parm_level_p, set_block)
165         (any_external_decl, record_external_decl, bind_label, getdecls)
166         (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
167         (c_reset_state): Delete.
168         (visible_builtins, c_override_global_bindings_to_false)
169         (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
170         (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
171         (external_scope, binding_freelist, bind, free_binding_and_advance)
172         (push_file_scope, pop_file_scope): New.
173         (pushtag, pushdecl_top_level, lookup_label, declare_label)
174         (define_label, c_make_fname_decl, finish_decl)
175         (mark_forward_parm_decls, build_compound_literal)
176         (grokdeclarator, start_function, check_for_loop_decls)
177         (identifier_global_value, record_builtin_type): Minor adjustments
178         for new bindings structures.  Improve diagnostics and commentary.
179         * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
180         pushlevel/poplevel respectively.
181         (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
182         * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
183         Warn about YYDEBUG not being defined only if -dy.  Remove no-longer-
184         correct loop over multiple translation units; call fatal_error if
185         requested to compile more than one file at once.  (This disables
186         IMA temporarily - an up-front error being preferable to a crash.)
187         * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
188         (all actions): Adjust calls to pushlevel/poplevel.
189         (parsing_iso_function_signature): Delete.
190         (extdef_1): Fold into extdef.
191         (old_style_parm_decls_1): Fold into old_style_parm_decls.  Don't
192         warn here about function definitions in the wrong style.
193         (after_tyle_declarator, parm_declarator_starttypename)
194         (parm_declarator_nostarttypename, notype_declarator): Remove
195         commented-out productions.
196         (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
197         an empty TREE_LIST node.  Adjust calls to get_parm_info.
198         (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
199         to suppress -Wold-style-definition after this error.
200         (c_parse_file): Don't clear the binding stack or call
201         finish_fname_decls here.  Correct comment.
202         * c-typeck.c (same_translation_unit_p): Export.
203         (common_type): Use c_override_global_bindings_to_false, not
204         pushlevel/poplevel/declare_parm_level.
205         * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
206         LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
207         and LANG_HOOKS_GETDECLS with do-nothing stubs.
208         * objc/objc-lang.c: Likewise.
209         * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
210         get_parm_info.
211         (OBJC_VOID_AT_END): Delete; replace all uses
212         with void_list_node.
213         (generate_forward_declaration_to_string_table): Delete.
214         * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
215
216         * coverage.c (create_coverage): Don't pushdecl anything.
217         * langhooks.c (lhd_clear_binding_stack): Call
218         lang_hooks.decls.poplevel, not poplevel.
219         * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
220         circular list rather than going into an infinite loop.
221
222 2004-03-23  Olivier Hainque  <hainque@act-europe.fr>
223
224         * optabs.c (expand_binop): When synthesizing double word rotates
225         from single word shifts, use a new register target if the provided
226         target is not a REG already.
227
228 2004-03-23  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
229
230         * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
231         * c-common.c (handle_mode_attribute): Add extra arg to
232         build_pointer_type_for_mode and build_reference_type_for_mode.
233         * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
234         for INTEGER_CST.
235         * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
236         Chain pointers via TYPE_NEXT_PTR_TO.
237         (build_reference_type_for_mode): Similarly.
238         (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
239         and build_reference_type_for_mode.
240         (tree_check4_failed): New function.
241         * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
242         (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
243         (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
244         Add check.
245
246 2004-03-23  Roger Sayle  <roger@eyesopen.com>
247
248         * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
249         A is nonnegative or B is nonnegative.  Similarly A|B is nonnegative
250         when both A and B are nonnegative.
251         (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
252         nonzero.
253
254 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
255
256         * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
257         VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
258
259 2004-03-23  Kazu Hirata  <kazu@cs.umass.edu>
260
261         PR optimization/14669
262         * fold-const.c (fold): Only unwiden integer comparisons for equality
263         and inequality operators, or when the signedness doesn't change.
264
265 2004-03-23  Jakub Jelinek  <jakub@redhat.com>
266
267         * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
268         * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
269         * config/sparc/t-linux: New file.
270
271 2004-03-23  Richard Sandiford  <rsandifo@redhat.com>
272
273         * gcse.c (can_assign_to_reg_p): New function, split out from...
274         (want_to_gcse_p): ...here.
275         (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
276         the rhs of a store.
277
278 2004-03-22  Diego Novillo  <dnovillo@redhat.com>
279
280         * c-typeck.c (same_translation_unit_p): Fix pasto.
281
282 2004-03-22  David Edelsohn  <edelsohn@gnu.org>
283
284         * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
285         (PARAM_MAX_SCHED_REGION_INSNS): New.
286         * sched-rgn.c: Include params.h
287         (MAX_RGN_BLOCKS): Delete.
288         (MAX_RGN_INSNS): Delete.
289         (too_large): Return bool.  Convert to PARAM_VALUE.
290         * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
291         * doc/invoke.texi (param): Document max-sched-region-blocks and
292         max-sched-region-insns.
293
294 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
295
296         * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
297         for base types.
298
299 2004-03-22  Joel Brobecker  <brobecker@gnat.com>
300
301         * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
302         change.
303
304 2004-03-22  Jakub Jelinek  <jakub@redhat.com>
305
306         PR c/14069
307         * c-decl.c (finish_struct): Change type of incorrect flexible array
308         field into error_mark_node.
309
310 2004-03-22  Andrew Pinski  <pinskia@physics.uc.edu>
311
312         PR target/14580
313         * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
314         who are not local for Darwin PIC.
315
316 2004-03-22  Ulrich Weigand  <uweigand@de.ibm.com>
317
318         * regrename.c (regrename_optimize): Set regs_ever_live for all
319         registers introduced as replacement.
320
321 2004-03-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
322
323         PR middle-end/14470
324         * expr.c (mark_queue): New function.
325         (emit_insns_enqueued_after_mark): New function replacing
326         emit_queue.  Clear the body of emitted queued insns.
327         (emit_queue): Call emit_insns_enqueued_after_mark.
328         (store_expr): Mark the increment queue on entry.  Emit
329         only the incrementations queued when expanding the source.
330
331 2004-03-22  Nathanael Nerode  <neroden@gcc.gnu.org>
332
333         * configure.ac: Allow --disable-coverage-flags (for the future benefit
334         of top level bootstrap, and consistency).  Reindent.
335         * configure: Regenerate.
336
337 2004-03-21  Kazu Hirata  <kazu@cs.umass.edu>
338
339         * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
340         ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
341         unnecessary casts.
342
343 2004-03-22  Danny Smith  <dannysmith@users.sourceforge.net>
344
345         PR target/14291
346         * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
347         __MINGW32__.
348
349 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
350
351         * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
352         to nonimmediate_operand.
353         ("*doloop_di"): Likewise.
354
355 2004-03-21  Alexandre Oliva  <aoliva@redhat.com>
356
357         * real.h (struct real_value): Use the same type for all
358         bitfields.  Rename exp to uexp.
359         (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
360         Adjust all uses of exp...
361         * builtins.c: ... here, ...
362         * emit-rtl.c: ... here, and ...
363         * real.c: ... and here.
364
365 2004-03-21  Gabriel Dos Reis  <gdr@integrable-solutions.net>
366
367         * pretty-print.c (pp_base_maybe_space): New function.
368         * pretty-print.h (pp_base_maybe_space): Declare.
369         (pp_maybe_space): New macro.
370
371 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
372
373         * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
374
375 2004-03-21  Ulrich Weigand  <uweigand@de.ibm.com>
376
377         * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
378         of using register multiplication cost.
379         (expand_mult): Adapt choose_mult_variant call.
380         (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
381         of MODE; pass appropriate cost bound.  Adjust result when
382         performing signed multiplication by a negative constant.
383         Don't use intermediate modes larger than word_mode.
384
385 2004-03-21  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
386
387         * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
388         * emit-rtl.c (component_ref_for_mem_expr): Likewise.
389         (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
390         * explow.c (expr_size): Likewise.
391         * expr.h (placeholder_list, find_placeholder): Deleted.
392         * expr.c (store_constructor): Likewise.
393         (get_inner_reference): Likewise.  Also don't call find_placeholder.
394         (placeholder_list, find_placeholder): Deleted.
395         (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
396         (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
397         (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
398         * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
399         * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
400         Likewise.
401         * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
402         (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
403         * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
404         (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
405         Clean up by using first_rtl_op.
406         (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
407         (substitute_placeholder_in_expr): New function.
408         * tree.def (WITH_RECORD_EXPR): Deleted.
409         * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
410         (substitute_placeholder_in_expr): New.
411
412 2004-03-21  Andrew Pinski  <pinskia@gcc.gnu.org>
413
414         * dojump.c (prefer_and_bit_test): Fix which part of
415         the and_test is replaced.
416
417 2004-03-21  Joseph S. Myers  <jsm@polyomino.org.uk>
418
419         * frontends.texi: Add missing line.
420
421 2004-03-21  Zack Weinberg  <zack@codesourcery.com>
422             Chris Devers  <cdevers@pobox.com>
423             Joseph S. Myers  <jsm@polyomino.org.uk>
424
425         * doc/frontends.texi: Rewrite.
426         * doc/gcc.texi: Update last modification date.
427
428 2004-03-21  Josef Zlomek  <zlomekj@suse.cz>
429
430         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
431         message before redirecting the edge.
432
433 2004-03-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
434
435         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
436         flag.
437         * explow.c (force_not_mem): Set REG_POINTER flag according to
438         MEM_POINTER one.
439         * rtl.h (MEM_POINTER): New macro.
440         (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
441         for MEM_POINTER.
442
443 2004-03-20  Roger Sayle  <roger@eyesopen.com>
444
445         PR target/13889
446         * cse.c (fold_rtx): Avoid substituting constants into unary
447         conversion operations.
448
449 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
450
451         * fold-const.c (fold): Replace "expr" with "t".
452
453 2004-03-20  Ian Lance Taylor  <ian@wasabisystems.com>
454
455         PR c/12373
456         * c-typeck.c (tagged_types_tu_compatible_p): Don't use
457         DECL_ORIGINAL_TYPE if there isn't one.
458
459 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
460
461         * fold-const.c (fold): Replace "final_type" with "type".
462         Remove variable "final_type".
463
464 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
465
466         * fold-const.c (fold): Constify "type".
467         Replace "TREE_TYPE (t)" with "type".
468
469 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
470
471         * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
472         dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
473         via (*targetm.foo) () with targetm.foo ().
474
475 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
476
477         PR other/14630
478         * doc/install.texi: Add info directory category and entry.
479
480 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
481
482         * fold-const.c (fold): Replace "t" with "tem" where it is used
483         as a temporary variable.  Remove "orig_t" and all of its uses.
484
485 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
486
487         * fold-const.c (fold): Remove variable "invert".
488         Move the handling of relational expressions that can be folded
489         to a constant ...
490         (fold_relational_const): ... here.
491         (tree_expr_nonzero_p): New.
492
493 2004-03-20  Joseph S. Myers  <jsm@polyomino.org.uk>
494
495         PR c/14635
496         * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
497         DEF_GCC_BUILTIN.
498
499 2004-03-20  Richard Sandiford  <rsandifo@redhat.com>
500
501         * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
502         (GTFILES): Add $(srcdir)/dojump.h.
503         (gt-dojump.h): New dependency.
504         * dojump.c (and_reg, and_test, shift_test): New static variables.
505         (prefer_and_bit_test): New function.
506         (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
507
508 2004-03-20  Kazu Hirata  <kazu@cs.umass.edu>
509
510         * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
511         expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
512         reorg.c, tree.h: Fix comment typos.
513
514 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
515
516         * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
517         c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
518         cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
519         haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
520         sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
521         vmsdbgout.c: Replace calls via (*targetm.foo) () with
522         targetm.foo ().
523
524 2004-03-19  Ziemowit Laski  <zlaski@apple.com>
525
526         * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
527         vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
528         always_inline attribute.
529         * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
530         Treat expansion as completed even if literal argument is
531         invalid (so that other expansions are not tried in vain).
532
533 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
534
535         * loop-doloop.c (add_test): Replace GEN_INT (0) with
536         const0_rtx.
537
538 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
539
540         * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
541         ...
542         (fold_abs_const): ... here.
543
544 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
545
546         * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
547
548 2004-03-19  Denis Chertykov  <denisc@overta.ru>
549
550         PR target/11520
551         * config/avr/avr.md ("call_insn"): Handle explicit integer
552         specially.
553         (call_value_insn): Likewise.
554
555 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
556
557         * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
558
559 2004-03-19  Kazu Hirata  <kazu@cs.umass.edu>
560
561         * fold-const.c (negate_expr): Move the handling of constants
562         ...
563         (fold_negate_const): ... here.
564
565 2004-03-19  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
566
567         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
568         * langhooks.h (struct lang_hooks_for_types): New field hash_types.
569         * tree.c (debug_no_type_hash): Deleted.
570         (type_hash_canon): Abort if passed a variant.
571         Check lang_hooks.types.hash_types.
572         (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
573         (build_array_type): Remove unnecessary allocation of pointer type.
574         (build_complex_type): Properly qualify resulting type.
575
576 2004-03-19  Paolo Bonzini  <bonzini@gnu.org>
577
578         * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
579
580 2004-03-19  Richard Sandiford  <rsandifo@redhat.com>
581
582         * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
583         (expand_mult): ...here.
584         (extract_high_half): New, split out from expand_mult_highpart.
585         (expand_highpart_optab): Likewise.  Don't clobber target prematurely.
586         (expand_highpart): Evaluate the cost of a shift/add sequence,
587         then see if any of the specialized optabs are cheaper.
588
589 2004-03-18  Ian Lance Taylor  <ian@wasabisystems.com>
590
591         * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
592
593 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
594
595         * convert.c (convert_to_real): Add more math builtins.
596
597 2004-03-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
598
599         * convert.c (convert_to_real): Reformat using switch stmt.
600
601 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
602
603         * c-common.c (pointer_int_sum): Do not complain about using
604         pointers to pointers-to-members.
605
606 2004-03-18  Kazu Hirata  <kazu@cs.umass.edu>
607
608         * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
609         have moved to the target hooks structure".
610
611 2004-03-18  James E Wilson  <wilson@specifixinc.com>
612
613         * config/mips/mips.md (type): Split move into arith and fmove.  Split
614         hilo into mthilo and mfhilo.  Add trap.  Delete icmp.  Fix all uses.
615         * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
616         Likewise.
617         * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
618         Likewise.
619         * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
620         rm7_fp_quick): Likewise.
621         * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
622         rm9k_fquick): Likewise.
623         * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
624         Likewise.
625         (ir_sr70_icmp): Delete.
626
627 2004-03-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
628
629         * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
630         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
631         (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
632         (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
633         (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
634         Protect with proper check.
635         (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
636         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
637         * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
638         (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
639         * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
640         * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
641         not TYPE_FIELDS.
642         * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
643
644 2004-03-18  Mostafa Hagog  <mustafa@il.ibm.com>
645
646         * gcse.c (eliminate_partially_redundant_loads): Reject change if
647         dest is set between beginning and current insn.
648
649 2004-03-18  Mark Mitchell  <mark@codesourcery.com>
650
651         * c-decl.c (grokdeclarator): Do not complain about redeclaring
652         visible "static" identifiers "extern" in a local scope.
653         * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
654         post-increments/decrements.
655
656 2004-03-18  Bob Wilson  <bob.wilson@acm.org>
657
658         * config/xtensa/xtensa.c (current_function_arg_words): Delete.
659         (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
660         (xtensa_va_start): Remove assignment to current_function_arg_words.
661
662 2004-03-18  Richard Sandiford  <rsandifo@redhat.com>
663
664         * alias.c (record_set): Detect the case where a register is assigned
665         a new value that has the same base term as the old one.
666
667 2004-03-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
668
669         * doloop.c: Removed.
670         * loop-doloop.c: New file.
671         * Makefile.in (doloop.o): Remove.
672         (loop-doloop.o): New.
673         * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
674         * cfgloopanal.c (get_loop_level): New function.
675         * loop-iv.c (iv_number_of_iterations): Handle case when loop
676         is leaved immediatelly.
677         * loop.c (strength_reduce): Do not call doloop optimization.
678         * loop.h (LOOP_BCT): Removed.
679         * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
680         (rest_of_handle_loop2): Call doloop_optimize_loops.
681         (rest_of_compilation): Test for optimizations moved to
682         rest_of_handle_loop2.
683
684 2004-03-17  Fariborz Jahanian <fjahanian@apple.com>
685
686         * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
687         for mixed mode.
688         (rs6000_emit_prologue): Ditto.
689         (rs6000_emit_epilogue): Ditto.
690         * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
691         macro for mixed mode.
692
693 2004-03-18  Jan Hubicka  <jh@suse.cz>
694
695         * predict.c (propagate_freq): Compute correctly frequency of
696         EXIT_BLOCK.
697
698 2004-03-17  Eric Christopher  <echristo@redhat.com>
699
700         * builtins.c (apply_args_size): Use reg_raw_mode.
701         (apply_result_size): Ditto.
702
703 2004-03-17  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
704
705         PR target/14620
706         * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
707
708 2004-03-17  Jakub Jelinek  <jakub@redhat.com>
709
710         * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
711         32-bit builds when defaulting to 32-bit.
712
713 2004-03-17  Jan Hubicka  <jh@suse.cz>
714
715         * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
716         array.
717
718 2004-03-17  James E Wilson  <wilson@specifixinc.com>
719
720         * config/mips/mips.md (zero_extendsidi2): Add length attribute.
721         (hazard_nop): Change type to nop.
722         (type): Split arith into arith, shift, slt, clz.  Delete darith.
723         Fix all uses.  Change arith to multi if more than one insn emitted.
724         * config/mips/5400.md (ir_vr54_arith): Likewise.
725         * config/mips/5500.md (ir_vr55_arith): Likewise.
726         * config/mips/7000.md (rm7_int_other): Likewise.
727         * config/mips/9000.md (rm9k_int): Likewise.
728         * config/mips/sr71k.md (ir_sr70_arith): Likewise.
729
730 2004-03-17  Joel Brobecker  <brobecker@gnat.com>
731
732         * dwarf2out.c (subrange_type_die): Define new variable "subtype"
733         to hold the subtype tree instead of recomputing it several times.
734
735 2004-03-17  Kazu Hirata  <kazu@cs.umass.edu>
736
737         * config/mn10300/mn10300.c (notice_update_cc): Don't handle
738         CC_INVERT.
739         * config/mn10300/mn10300.md (cc): Remove "invert".
740
741 2004-03-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
742
743         * builtins.c (integer_valued_real_p): Add builtin rint.
744         (fold_builtin): Likewise.
745         * convert.c (convert_to_real): Likewise.
746
747         * convert.c (convert_to_real): Fix typos in `long double'
748         builtins.
749
750 2004-03-16  Mark Mitchell  <mark@codesourcery.com>
751
752         PR c++/14481
753         * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
754         generated COMPOUND_EXPRs.
755
756 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
757
758         * config/h8300/t-rtems (h8300-*-rtems*): New.
759
760 2004-03-16  Eric Christopher  <echristo@redhat.com>
761
762         * doc/cppopts.texi(fwide-exec-charset): Fix typo.
763
764 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
765
766         * config/i386/i386-protos.h: Add a prototype for
767         ix86_reverse_condition.
768         * config/i386/i386.c (ix86_reverse_condition): New.
769         * config/i386/i386.h (REVERSE_CONDITION): Use
770         ix86_reverse_condition.
771         * config/i386/i386.md: Use ix86_reverse_condition instead of
772         REVERSE_CONDITION.
773
774 2004-03-16  J. Brobecker  <brobecker@gnat.com>
775
776         * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
777
778 2004-03-16  Nathanael Nerode  <neroden@gcc.gnu.org>
779
780         PR bootstrap/12974
781         * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
782
783 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
784
785         * c-common.c (c_common_type_for_mode): Build vector types on
786         demand.
787         (handle_mode_attribute): Deprecate using the mode attribute
788         to create vector types.  Fix indentation.
789         (vector_type_node_list): Remove.
790         (handle_vector_size_attribute): Create vector types on demand.
791         Strip a NON_LVALUE_EXPR from the attribute if there is one.
792         * c-typeck.c (comptypes): Make vector types compatible if they
793         have the same underlying mode.
794         (convert_for_assignment): Use comptypes to convert between
795         vector types.
796         * tree.c (build_common_tree_nodes_2): Do not create vector types.
797         * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
798         vector types.
799         * tree.h: Remove vector types.
800         * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
801         * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
802         (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
803         V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
804         * doc/extend.texi (Vector Types): Document how to use the
805         vector_size attribute to create vectors, rather than mode.
806
807         * config/arm/mmintrin.h: Use vector_size attribute, not mode.
808         * config/i386/emmintrin.h: Likewise.
809         * config/i386/mmintrin.h: Likewise.
810         * config/i386/xmmintrin.h: Likewise.
811         * config/sh/ushmedia.h: Likewise.
812
813 2004-03-16  Kazu Hirata  <kazu@cs.umass.edu>
814
815         * config/freebsd-spec.h, config/arc/arc-protos.h,
816         config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
817         config/arm/linux-gas.h, config/arm/semi.h,
818         config/cris/cris-protos.h, config/i386/xm-djgpp.h,
819         config/ia64/freebsd.h, config/mips/7000.md,
820         config/mips/9000.md, config/ns32k/ns32k-protos.h,
821         config/sparc/pbd.h: Update copyright.
822
823 2004-03-16  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
824
825         PR target/14577
826         * config.gcc: Switch sh-*-rtems* to ELF.  Add sh-*-rtemscoff.
827
828 2004-03-16  Paolo Bonzini  <bonzini@gnu.org>
829
830         * combine.c (combine_simplify_rtx): Remove the "last"
831         parameter and its documentation.  Adjust recursive calls.
832         (simplify_logical): Always perform the only simplification
833         controlled by "last", if the simplified expression is
834         actually different.
835         (try_combine): Do not pass the "last" parameter to
836         combine_simplify_rtx.
837
838 2004-03-16  Richard Sandiford  <rsandifo@redhat.com>
839
840         PR target/14599
841         * config/mips/mips.md (UNSPEC_GP): New constant.
842         * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
843         an UNSPEC instead of (reg $gp).
844         (mips16_gp_pseudo_reg): Change accordingly.
845         (print_operand): Print $gp directly when handling CONST_GP_P.
846
847 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
848
849         * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
850         * longlong.h: Make code 68060 clean when compiling for m68060.
851
852 2004-03-16  Richard Zidlicky  <rz@linux-m68k.org>
853
854         * config/m68k/m68k.md: Fix constraints for bitfield instructions.
855         * doc/md.texi: Clarify description of "i" constraint.
856
857 2004-03-15  James E Wilson  <wilson@specifixinc.com>
858
859         * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
860         Split store into store, fpstore, fpidxstore.  Fix all uses.
861         * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
862         Likewise.
863         * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
864         * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
865         * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
866         * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
867         ir_sr70_fstore): Likewise.
868
869 2004-03-15  Richard Henderson  <rth@redhat.com>
870
871         PR middle-end/14535
872         * except.c (collect_one_action_chain): Record action for cleanup
873         outer of exception spec.
874
875 2004-03-15  Ian Lance Taylor  <ian@wasabisystems.com>
876
877         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
878         Fix the check for abort and only do the mmap if we can.
879
880 2004-03-15  Eric Botcazou  <ebotcazou@act-europe.fr>
881
882         * config/sparc/sparc.h: Rework comments about the code model
883         in 64-bit environment and the mode 'Pmode'.
884         * doc/invoke.texi (SPARC options): Rework description of the
885         different code models supported in 64-bit environment.
886
887 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
888
889         * defaults.h (REVERSIBLE_CC_MODE): Define.
890         * jump.c (reversed_comparison_code_parts): Don't check if
891         REVERSIBLE_CC_MODE is defined.
892
893 2004-03-15  Kazu Hirata  <kazu@cs.umass.edu>
894
895         * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
896         et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
897         hosthooks.h, params.h, ra-colorize.c, web.c,
898         config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
899         config/avr/avr-protos.h, config/avr/avr.md,
900         config/fr30/fr30-protos.h, config/fr30/fr30.md,
901         config/h8300/fixunssfsi.c, config/i386/darwin.h,
902         config/i386/freebsd.h, config/i386/freebsd64.h,
903         config/ia64/hpux.h, config/ia64/unwind-ia64.c,
904         config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
905         config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
906         config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
907         config/pa/pa64-regs.h, config/rs6000/aix41.h,
908         config/rs6000/aix43.h, config/rs6000/host-darwin.c,
909         config/sparc/aout.h, config/sparc/freebsd.h,
910         config/sparc/litecoff.h, config/vax/vax-protos.h,
911         doc/hostconfig.texi, doc/include/gcc-common.texi: Update
912         copyright.
913
914 2004-03-15  Paul Brook  <paul@codesourcery.com>
915
916         * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
917
918 2004-03-15  Gabriel Dos Reis  <gdr@integrable-solutions.net>
919
920         * c-pretty-print.c (pp_c_semicolon): Fix formatting.
921         (pp_c_cv_qualifier): Document.
922         (pp_c_space_for_pointer_operator): Likewise.
923         (pp_c_integer_constant): Likewise.
924         (pp_c_identifier): Likewise.
925         (pp_c_init_declarator): Don't print function body.
926
927 2004-03-14  Joseph S. Myers  <jsm@polyomino.org.uk>
928
929         * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
930         doc/install.texi, doc/invoke.texi, doc/makefile.texi,
931         doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
932         "gcc", "g++" and "g77" or mark up with appropriate markup.  Adjust
933         wording and grammar.
934
935 2004-03-14  Roger Sayle  <roger@eyesopen.com>
936
937         * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
938         with lang_hooks.foo ().
939         * builtins.c (expand_builtin_va_arg): Likewise.
940         * c-common.c (fname_as_string, c_common_truthvalue_conversion,
941         c_common_type_for_mode, c_common_nodes_and_builtins,
942         handle_mode_attribute, handle_vector_size_attribute): Likewise.
943         * c-convert.c (convert): Likewise.
944         * c-format.c (check_format_types): Likewise.
945         * c-objc-common.c (c_tree_printer): Likewise.
946         * c-typeck.c (build_unary_op, build_conditional_expr,
947         build_binary_op): Likewise.
948         * calls.c (try_to_integrate, expand_call,
949         emit_library_call_value_1): Likewise.
950         * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
951         Likewise.
952         * cgraphunit.c (record_call_1, cgraph_analyze_function,
953         cgraph_expand_function): Likewise.
954         * convert.c (convert_to_pointer, convert_to_integer): Likewise.
955         * coverage.c (build_fn_info_type, build_ctr_info_type,
956         build_gcov_info, create_coverage): Likewise.
957         * dbxout.c (dbxout_init): Likewise.
958         * diagnostic.c (diagnostic_report_current_function): Likewise.
959         * dojump.c (do_jump): Likewise.
960         * dwarf2out.c (dwarf2_name): Likewise.
961         * except.c (init_eh): Likewise.
962         * explow.c (expr_size, int_expr_size): Likewise.
963         * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
964         Likewise.
965         * expr.c (store_expr, store_constructor, safe_from_p,
966         expand_expr_real, do_store_flag, try_casesi): Likewise.
967         * function.c (push_function_context_to, pop_function_context_from,
968         free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
969         put_var_into_stack, allocate_struct_function, current_function_name):
970         Likewise.
971         * integrate.c (copy_decl_for_inlining, expand_inline_function):
972         Likewise.
973         * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
974         lhd_print_error_function): Likewise.
975         * opts.c (handle_option, decode_options): Likewise.
976         * passes.c (open_dump_file): Likewise.
977         * print-tree.c (print_node): Likewise.
978         * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
979         expand_decl_cleanup, emit_case_nodes): Likewise.
980         * stor-layout.c (variable_size): Likewise.
981         * toplev.c (announce_function, wrapup_global_declarations,
982         check_global_declarations, compile_file, default_tree_printer,
983         process_options, lang_dependent_init, finalize): Likewise.
984         * tree-dump.c (dequeue_and_dump): Likewise.
985         * tree-inline.c (remap_decl, remap_block, copy_body_r,
986         initialize_inlined_parameters, declare_return_variable,
987         inlinable_function_p, expand_call_inline, optimize_inline_calls,
988         walk_tree, copy_tree_r): Likewise.
989         * tree-optimize.c (tree_rest_of_compilation): Likewise.
990         * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
991         unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
992         variably_modified_type_p, dump_tree_statistics): Likewise.
993         * varasm.c (assemble_variable, compare_constant, copy_constant,
994         force_const_mem, compute_reloc_for_constant, output_constant,
995         output_addressed_constants, initializer_constant_valid_p): Likewise.
996
997 2004-03-14  Kelley Cook  <kcook@gcc.gnu.org>
998
999         * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
1000
1001 2004-03-14  Andreas Tobler  <a.tobler@schweiz.ch>
1002
1003         * doc/install.texi: Reflect autoconf and automake version for
1004         libffi. Update autoconf version to 2.59.
1005
1006 2004-03-13  Roger Sayle  <roger@eyesopen.com>
1007
1008         * fold-const.c (negate_expr, operand_equal_for_comparison_p,
1009         optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
1010         make_range, build_range_check, fold_range_test, unextend,
1011         constant_boolean_node, fold_binary_op_with_conditional_arg,
1012         fold_truthop, fold_mathfn_compare, fold_inf_compare,
1013         fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
1014         with lang_hooks.foo ().
1015
1016 2004-03-14  Richard Earnshaw  <rearnsha@arm.com>
1017
1018         * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
1019
1020 2004-03-13  Dara Hazeghi  <dhazeghi@yahoo.com>
1021
1022         * doc/install.texi: Note status of -fnew-ra.
1023
1024 2004-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1025
1026         PR middle-end/14470
1027         * expr.c (store_expr): Call emit_queue before generating the move
1028         from the temporary to the original target.  Protect the temporary
1029         from emit_queue.
1030
1031 2004-03-13  Jakub Jelinek  <jakub@redhat.com>
1032
1033         PR target/14533
1034         * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
1035         other than UNSPEC_GOTOFF.
1036
1037 2004-03-13  Richard Earnshaw  <rearnsha@arm.com>
1038
1039         * arm.c (arm_legitimate_address_p): New argument, OUTER.  Pass through
1040         to arm_legitimate_index_p.  Update all callers with SET as default
1041         value.
1042         (arm_legitimate_index_p): New argument, OUTER.  Restrict the index
1043         range if OUTER is a sign-extend operation on QImode.  Correctly
1044         reject shift operations on sign-extended QImode addresses.
1045         (bad_signed_byte_operand): Delete.
1046         (arm_extendqisi_mem_op): New function.
1047         * arm.h (EXTRA_CONSTRAINT_ARM): Delete.  Replace with...
1048         (EXTRA_CONSTRAINT_STR_ARM): ... this.  Handle extended address
1049         constraints.
1050         (CONSTRAINT_LEN): New.
1051         (EXTRA_CONSTRAINT): Delete.  Replace with...
1052         (EXTRA_CONSTRAINT_STR): ... this.
1053         (PREDICATE_CODES): Remove bad_signed_byte_operand.
1054         * arm.md (extendqihi_insn): Use new constraint Uq.  Rework.  Length
1055         is now always default.
1056         (define_splits for bad sign-extend loads): Delete.
1057         (arm_extendqisi, arm_extendqisi_v5): Likewise.
1058         * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
1059         Rework 'U' constraint to 'Uv'.
1060         * arm-protos.h: Remove bad_signed_byte_operand.  Add
1061         arm_extendqisi_mem_op.
1062         * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
1063         Add Uq constraint.
1064
1065 2004-03-13  Alan Modra  <amodra@bigpond.net.au>
1066
1067         * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
1068         with targetm version.
1069
1070         PR target/14567
1071         * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
1072         (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
1073         * config/rs6000/rs6000.c (rs6000_arg_size): New function.
1074         Update all users of RS6000_ARG_SIZE.
1075         (function_arg_advance): Count fregno using mode size.
1076         (function_arg): Handle long double split over regs and memory.
1077         (function_arg_partial_nregs): Likewise.
1078         (rs6000_va_arg): Repackage complex args.
1079
1080 2004-03-13  Dean Ferreyra <dferreyra@igc.org>
1081
1082         PR target/14047
1083         * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
1084         (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
1085         * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
1086
1087 2004-03-12  Jakub Jelinek  <jakub@redhat.com>
1088
1089         * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
1090         prototype.
1091         * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
1092         * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
1093
1094 2003-03-12  Andrew Pinski  <apinski@apple.com>
1095
1096         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1097         Use ret instead of result. Use addr instead of base.
1098
1099 2004-03-12  David Edelsohn  <edelsohn@gnu.org>
1100
1101         * doc/install.texi (*-ibm-aix*): Document assembler and achiver
1102         fixes required by libstdc++ and update installation instructions
1103         for libstdc++.a.
1104
1105 2004-03-12  Danny Smith  <dannysmith@users.sourceforge.net>
1106
1107         * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
1108         leading '@' on fastcall symbols before stripping suffix.
1109
1110 2004-03-12  Roger Sayle  <roger@eyesopen.com>
1111
1112         * combine.c (unmentioned_reg_p): New function to check whether an
1113         expression is a "specialization" of another, i.e. that there are
1114         no registers or memory references mentioned in the first that don't
1115         appear in the second.
1116         (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
1117         (combine_instructions): Also try combining instructions using the
1118         REG_EQUAL note from a preceding log-linked instruction.
1119
1120 2004-03-12  Roger Sayle  <roger@eyesopen.com>
1121
1122         * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
1123
1124 2004-03-12  Matt Austern  <austern@apple.com>
1125
1126         * target.h (struct gcc_target): New target hook, unwind_label.
1127         * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
1128         * output.h (default_emit_unwind_label): New function.
1129         * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
1130         (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
1131         (TARGET_SUPPORTS_HIDDEN): New target macro.
1132         * dwarf2out.c (struct dw_fde_struct): Add field for function decl
1133         that corresponds to this FDE.
1134         (FRAME_BEGIN_LABEL): Allow target to override default label.
1135         (output_call_frame_info): If FDEs are linknonce, then use extra
1136         indirection for FDE encoding, output a label for each FDE, and
1137         output an empty label for each function without an FDE.
1138         (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
1139         * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
1140         decls with DECL_ONE_ONLY set, if that macro is defined.
1141         (make_decl_one_only): Don't use DECL_COMMON if we're compiling
1142         for a SUPPORTS_ONE_ONLY target.
1143         * config/darwin-protos.h (darwin_unique_section): Declare.
1144         (darwin_asm_named_section): Likewise.
1145         (darwin_section_type_flags): Likewise.
1146         (darwin_non_lazy_pcrel): Likewise.
1147         (darwin_emit_unwind_label): Likewise.
1148         (darwin_make_decl_one_only): Likewise.
1149         * config/darwin.c (machopic_finish): Get rid of tweak that
1150         eliminate stubs for symbols that are defined.
1151         (darwin_encode_section_info): Don't treat weak functions as defined.
1152         (darwin_make_decl_one_only): Define.
1153         (darwin_asm_named_section): Likewise.
1154         (darwin_section_type_flags): Likewise.
1155         (darwin_unique_section): Likewise.
1156         (darwin_emit_unwind_label): Likewise.
1157         (darwin_non_lazy_pcrel): Likewise.
1158         (darwin_asm_output_dwarf_delta): Difference between two labels is
1159         local only if both labels are local.
1160         * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
1161         (ASM_MAKE_LABEL_LINKONCE): Likewise.
1162         (TARGET_SUPPORTS_HIDDEN): Likewise.
1163         (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
1164         (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
1165         (FRAME_BEGIN_LABEL): Likewise.
1166         (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
1167         (ASM_DECLARE_FUNCTION_NAME): Likewise.
1168         (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
1169         (TARGET_ASM_UNIQUE_SECTION): Define.
1170         (EH_FRAME_SECTION_NAME): Define.
1171         (EH_FRAME_SECTION_ATTR): Likewise.
1172         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
1173         (TARGET_ASM_NAMED_SECTION): Likewise.
1174         (TARGET_SECTION_TYPE_FLAGS): Likewise.
1175         * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
1176         TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
1177         TARGET_ASM_EMIT_UNWIND_LABEL.
1178
1179 2004-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1180
1181         * builtins.c (expand_builtin_mathfn): Add pow10* to the
1182         existing exp10* case.
1183         (expand_builtin): Likewise.
1184
1185 2004-03-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
1186
1187         * doc/tm.texi (registers) <Values in Registers>: Add
1188         entry for REGMODE_NATURAL_SIZE.
1189
1190 2004-03-12  Richard Henderson  <rth@redhat.com>
1191
1192         PR target/14547
1193         * target.h (struct gcc_target): Move calls substructure before
1194         booleans.  Add split_complex_arg.
1195         * function.c (assign_parms, split_complex_args): Use it.
1196         * calls.c (expand_call): Likewise.
1197         (split_complex_values): Likewise.  Check for splittable types
1198         before allocating memory.
1199         (split_complex_types): Likewise.
1200         * system.h (SPLIT_COMPLEX_ARGS): Poison.
1201         * expr.h (SPLIT_COMPLEX_ARGS): Remove.
1202         * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
1203         * config/alpha/alpha.c (alpha_split_complex_arg): New.
1204         (TARGET_SPLIT_COMPLEX_ARG): New.
1205         * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
1206         * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
1207         (rs6000_override_options): Zap it for non-AIX.
1208         (rs6000_function_value): Use targetm.calls.split_complex_arg.
1209         * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
1210         * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
1211         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
1212         * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
1213         SPLIT_COMPLEX_ARGS entry.
1214
1215 2004-03-11  Richard Henderson  <rth@redhat.com>
1216
1217         * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
1218         (alpha_lookup_xfloating_lib_func): Use them, return rtx.
1219         (alpha_emit_xfloating_arith): Update to match.
1220         (alpha_emit_xfloating_compare): Likewise.
1221         (alpha_emit_xfloating_cvt): Likewise.
1222         (alpha_emit_xfloating_libcall): Take already built symbol,
1223         mark call const.
1224         * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
1225         op1 in a register.
1226
1227 2004-03-11  Richard Henderson  <rth@redhat.com>
1228
1229         PR target/14539
1230         * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
1231
1232         * simplify-rtx.c (simplify_relational_operation): Fix typo.
1233
1234 2004-03-11  Richard Henderson  <rth@redhat.com>
1235
1236         PR middle-end/14477
1237         * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
1238
1239 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
1240
1241         PR target/14262
1242         * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
1243         defined, pass small BLKmode values in registers in the low-order part.
1244
1245 2004-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
1246
1247         * combine.c (if_then_else_cond): Check for NULL return value of
1248         simplify_gen_subreg.
1249
1250 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
1251
1252         PR target/14496
1253         * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
1254         TARGET_SINGLE_FLOAT.
1255
1256 2004-03-11  Steve Ellcey  <sje@cup.hp.com>
1257
1258         * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
1259         * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
1260         * config/ia64/ia64.c (ia64_init_libfuncs): New.
1261         (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
1262
1263 2004-03-11  Roger Sayle  <roger@eyesopen.com>
1264
1265         * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
1266         -((int)X>>C) where C is an integer constant one bit less than the
1267         size of X into (unsigned)X>>C.  Similarly for unsigned->signed.
1268         (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
1269
1270         * simplify-rtx.c (simplify_unary_operation): Also implement the
1271         above transformations at the RTL level.
1272
1273 2004-03-11  Alan Modra  <amodra@bigpond.net.au>
1274
1275         * real.c (encode_ibm_extended): Do round low word.
1276
1277 2004-03-11  Ben Elliston  <bje@wasabisystems.com>
1278
1279         * config/arm/arm.md (is_xscale): Comment this attribute and move
1280         it a bit further up in the file, closer to related attributes.
1281
1282 2004-03-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
1283
1284         * config/host-solaris.c (sol_gt_pch_use_address): Add
1285         missing terminating marker to comment.
1286
1287 2004-03-11  Richard Sandiford  <rsandifo@redhat.com>
1288
1289         * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
1290         (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
1291         (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
1292         (*movsf_mips16, *movdf_mips16):  Name unnamed patterns.  Use
1293         move_operand as source predicate in all cases.
1294         (*movdi_32bit): Renamed from movdi_internal.  Remove 'F' constraint.
1295         Test reg_or_0_operand.  Use move_operand as source predicate.
1296         (*movdi_64bit): Renamed from movdi_internal2.  Test reg_or_0_operand.
1297         (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
1298         (*movsi_internal): Renamed from movsi_internal.  Test reg_or_0_operand.
1299         (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
1300         (*movhi_internal): Renamed from movhi_internal.  Test reg_or_0_operand.
1301         Use move_operand as source predicate.  Remove 'K' constraint.
1302         (*movqi_internal): Likewise movqi_internal.
1303         (*movsf_hardfloat): Renamed from movsf_internal1.  Test
1304         reg_or_0_operand.  Use move_operand as source predicate.
1305         (*movsf_softfloat): Likewise movsf_internal2.
1306         (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
1307         (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
1308         (*movdf_softfloat): Likewise movdf_internal2.
1309         * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
1310         for DImode if !TARGET_64BIT.
1311         (mips_legitimize_move): Simplify accordingly.
1312
1313 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
1314
1315         PR/14362
1316         * var-tracking.c (struct variable_def): Added field refcount.
1317         (variable_htab_free): Decrease the refcount and delete variable
1318         only if there are no more references.
1319         (unshare_variable): New function.
1320         (vars_copy_1): Increase refcount instead of copying the variable.
1321         (variable_union): Share the variables where possible, unshare
1322         the variables if needed.
1323         (variable_different_p): Return false if var1 and var2 are
1324         the same structure.
1325         (variable_was_changed): Init the refcount of new variable.
1326         (set_frame_base_location): Unshare variable if needed.
1327         (set_variable_part): Init the refcount of new variable.
1328         Unshare the variables if needed.
1329         (delete_variable_part): Unshare the variables if needed.
1330         (emit_notes_for_differences_1): Init the refcount of new variable.
1331         (vt_add_function_parameters): Do not add function parameters to
1332         IN set of ENTRY_BLOCK_PTR because it is unused anyway.
1333         (vt_initialize): Do not add frame_base_decl to IN set of
1334         ENTRY_BLOCK_PTR because it is unused anyway.
1335
1336 2004-03-11  Josef Zlomek  <zlomekj@suse.cz>
1337
1338         * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
1339         (vars_copy): Likewise.
1340         (variable_union): Likewise.
1341         (set_variable_part): Likewise.
1342         (delete_variable_part): Likewise.
1343
1344 2004-03-11  Kazu Hirata  <kazu@cs.umass.edu>
1345
1346         * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
1347         ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
1348         config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
1349         config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
1350         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
1351         config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
1352         config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
1353         config/pdp11/pdp11.h, config/rs6000/rs6000.c,
1354         config/stormy16/stormy16.c: Fix comment typos and formatting.
1355
1356 2004-03-11  Nathanael Nerode  <neroden@gcc.gnu.org>
1357
1358         * configure: Regenerate, since I forgot to while committing Paolo's
1359         changes.
1360
1361 2004-03-08  Paolo Bonzini  <bonzini@gnu.org>
1362
1363         PR ada/14131
1364         Move language detection to the top level.
1365         * configure.ac: Remove code to detect languages,
1366         it now lives exclusively in the top level.
1367         * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
1368         top level, renamed to ACX_PROG_GNAT.
1369
1370 2004-03-10  Richard Henderson  <rth@redhat.com>
1371
1372         * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
1373         extra arguments.
1374         * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
1375         and host_xmake_file fragments.
1376         * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
1377         (gt_pch_restore): Similarly for gt_pch_use_address.
1378         (default_gt_pch_get_address): New.
1379         (mmap_gt_pch_get_address): Split out of gt_pch_save.
1380         (default_gt_pch_use_address): Split out of gt_pch_restore.
1381         (mmap_gt_pch_use_address): Likewise.
1382         * hooks.c (hook_voidp_size_t_null): Remove.
1383         (hook_bool_voidp_size_t_false): Remove.
1384         * hooks.h: Likewise.
1385         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
1386         default_ or mmap_ definitions.
1387         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
1388         * hosthooks.h (struct host_hooks): Update gt_pch_get_address
1389         and gt_pch_use_address.
1390         * config/host-linux.c, config/host-solaris.c: New files.
1391         * config/x-linux, config/x-solaris: New files.
1392         * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
1393         Update for changed definition.
1394         (darwin_rs6000_gt_pch_use_address): Likewise.
1395         * doc/hostconfig.texi: Update docs.
1396
1397 2004-03-10  Richard Henderson  <rth@redhat.com>
1398
1399         PR c/14517
1400         * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
1401         except for pedantic c90 mode.
1402
1403 2004-03-10  Kelley Cook  <kcook@gcc.gnu.org>
1404
1405         * configure.ac: Bump AC_PREREQ to 2.59.
1406         * configure: Regenerate.
1407
1408 2004-03-10  Uros Bizjak  <uros@kss-loka.si>
1409
1410         * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
1411         (exp10_optab, exp2_optab): Define corresponding macros.
1412         * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
1413         * genopinit.c (optabs): Implement exp10_optab and exp2_optab
1414         using exp10?f2 and exp2?f2 patterns.
1415         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
1416         using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
1417         (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
1418         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
1419
1420         * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
1421         exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
1422         exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
1423
1424 2004-03-10  Anthony Green  <green@redhat.com>
1425
1426         * doc/invoke.texi (ARM Options): Fix -mpfu typo.
1427
1428 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
1429
1430         * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
1431         (TARGET_OS_AIX_CPP_BUILTINS): this.  Conditionally define
1432         __LONGDOUBLE128.
1433         * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
1434         TARGET_OS_AIX_CPP_BUILTINS.
1435         * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
1436         * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
1437         * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
1438         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
1439         previous change.
1440
1441 2004-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1442
1443         * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
1444
1445 2004-03-10  David Edelsohn  <edelsohn@gnu.org>
1446
1447         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1448         __LONGDOUBLE128 on AIX.
1449
1450 2004-03-10  Andrew Haley  <aph@redhat.com>
1451
1452         PR optimization/14381
1453         * function.c (expand_function_end): Emit a blockage insn before
1454         the epilogue when -fnon-call-exceptions is used.
1455
1456         * except.c (expand_start_all_catch): Make comment more accurate.
1457
1458 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
1459
1460         PR target/14480
1461         * config/rs6000/t-rtems: Add missing file on branch.
1462
1463 2004-03-10  Ulrich Weigand  <uweigand@de.ibm.com>
1464
1465         * dbxout.c (dbxout_symbol_location): Do not output references
1466         to optimized-out constant pool symbols.
1467
1468 2004-03-10  Andreas Schwab  <schwab@suse.de>
1469
1470         * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
1471         twon34_r.
1472
1473 2004-03-09  James E Wilson  <wilson@specifixinc.com>
1474
1475         * alias.c (alias_sets_might_conflict_p): New.
1476         * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
1477         * common.opt (Wstrict-aliasing=): New.
1478         * flags.h (warn_strict_aliasing): Change type to int.
1479         * opts.c (warn_strict_aliasing): Change type to int.
1480         (common_handle_option): Handle OPT_Wstrict_aliasing_.
1481         * tree.h (alias_sets_might_conflict_p): Declare it.
1482         * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
1483
1484 2004-03-10  Roman Zippel  <zippel@linux-m68k.org>
1485
1486         PR bootstrap/12371
1487         * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
1488         (CALL_USED_REGISTERS): Likewise.
1489         (REG_CLASS_CONTENTS): Likewise.
1490         (REG_ALLOC_ORDER): New.
1491         (REGNO_REG_CLASS): Use regno_reg_class.
1492         * config/m68k/m68k.c: Add regno_reg_class array.
1493
1494 2004-03-09  Steve Ellcey  <sje@cup.hp.com>
1495
1496         * config/ia64/ia64.md (divsi3): Fix algorithm.
1497           (udivsi3): Ditto.
1498           (setf_exp_xf): Remove '*' from name.
1499         * testsuite/gcc.dg/20040309-1.c: New test.
1500
1501 2004-03-09  Ian Lance Taylor  <ian@wasabisystems.com>
1502
1503         * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
1504         * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
1505         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
1506         * config/sparc/sparc.c (sparc_aout_select_section): Remove.
1507         (sparc_aout_select_rtx_section): Don't check
1508         SUNOS4_SHARED_LIBRARIES.
1509         * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
1510
1511 2004-03-10  Hans-Peter Nilsson  <hp@axis.com>
1512
1513         PR other/14474
1514         * doc/md.texi (Pattern Ordering, Dependent Patterns)
1515         (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
1516         INTERNALS".
1517
1518 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
1519
1520         * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
1521         (LIBGCC_SPEC): Update to match.
1522
1523 2004-03-09  Zack Weinberg  <zack@codesourcery.com>
1524
1525         * c-decl.c (last_function_parms, last_function_parm_tags)
1526         (last_function_parm_others, current_function_parms)
1527         (current_function_parm_tags, current_function_parm_others):
1528         Delete.
1529         (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
1530         New macros.
1531         (grokdeclarator): For function definitions, save the arg-info
1532         block from the declarator in DECL_ARGUMENTS.
1533         (grokparms): Do not write to last_function_parm*.  Use ARG_INFO_*
1534         macros to operate on arg-info block.  Can assume ARG_INFO_PARMS
1535         contains only PARM_DECLs.  Improve diagnostics.
1536         (get_parm_info): Use ARG_INFO_* macros.  Improve comments and
1537         diagnostics.  Disable some expensive checks if not ENABLE_CHECKING.
1538         (store_parm_decls_newstyle): Take the function to operate on,
1539         and an arg-info block, as arguments; don't get anything from
1540         current_function_* globals.
1541         (store_parm_decls_oldstyle): Likewise.
1542         (store_parm_decls): Pass fndecl and its arg-info block down to
1543         store_parm_decls_newstyle/oldstyle.  Send functions with empty
1544         argument lists through store_parm_decls_newstyle to reduce
1545         overhead.
1546         (pushdecl): Comment on the problems with the call to copy_node.
1547         Clear DECL_ARGUMENTS of the old node after copying it, if it
1548         is an arg-info block instead of a chain of decls.
1549         (start_function): Do not manipulate current_function_parm* or
1550         last_function_parm*.
1551
1552 2004-03-09  Roger Sayle  <roger@eyesopen.com>
1553             Andrew Pinski  <pinskia@physics.uc.edu>
1554
1555         * ifcvt.c (noce_try_sign_mask): New function to transform
1556         "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
1557         (noce_process_if_block): Call noce_try_sign_mask.
1558
1559 2004-03-09  Andrew Pinski  <apinski@apple.com>
1560
1561         * c-typeck.c (tagged_types_tu_compatible_p):
1562         Fix typo.
1563
1564 2004-03-09  Roger Sayle  <roger@eyesopen.com>
1565
1566         * simplify-rtx.c (simplify_const_relational_operation): New function
1567         renamed from simplify_relational_operation.
1568         (simplify_relational_operation): Change prototype to accept an
1569         additional mode argument.  Call simplify_const_relational_operation.
1570         (simplify_gen_relational): Update simplify_relational_operation call.
1571         (simplify_ternary_operation): Update simplify_relational_operation
1572         subroutine call to use simplify_const_relational_operation instead.
1573
1574         * rtl.h (simplify_const_relational_operation): Prototype here.
1575         (simplify_relational_operation): Add addtional mode argument.
1576
1577         * combine.c (combine_simplify_rtx): Update calls to
1578         simplify_relational_operation.
1579         (simplify_set): Likewise.
1580         (gen_binary): Likewise.
1581         * cse.c (fold_rtx): Likewise.
1582         * dojump.c (compare_from_rtx): Likewise.
1583         (do_compare_rtx_and_jump): Likewise.
1584         * integrate.c (subst_constants): Likewise.
1585         * unroll.c (simplify_cmp_and_jump_insns): Likewise.
1586
1587 2004-03-09  Kazu Hirata  <kazu@cs.umass.edu>
1588
1589         * config/m32r/m32r.md: Remove all define_peephole's.
1590
1591 2004-03-09  Alan Modra  <amodra@bigpond.net.au>
1592
1593         * config/rs6000/rs6000.md: Remove trailing whitespace.
1594
1595 2004-03-08  Eric Christopher  <echristo@redhat.com>
1596
1597         * Makefile.in (site.exp): Add libiconv variable definition.
1598
1599 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
1600
1601         * configure: Regenerate for config/accross.m4 correction.
1602
1603 2004-03-08  Joel Sherrill  <joel@oarcorp.com>
1604
1605         PR target/14480
1606         * config/rs6000/t-rtems: Add missing file on branch.
1607
1608 2004-03-08  Roger Sayle  <roger@eyesopen.com>
1609
1610         PR middle-end/14289
1611         * c-typeck.c (c_mark_addressable): A register variable should
1612         be considered global if its not automatic, i.e. TREE_PUBLIC,
1613         TREE_STATIC or DECL_EXTERNAL.
1614         * function.c (put_var_into_stack): Call abort when placing a
1615         hard register into the stack, if x_parm_reg_stack_loc is NULL.
1616
1617 2004-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
1618
1619         * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
1620         ("*extendqisi2_short_displ"): Likewise.
1621
1622 2004-03-08  Kazu Hirata  <kazu@cs.umass.edu>
1623
1624         * config/pdp11/pdp11.c (comparison_operator_index): Remove.
1625         (comp_operator): Likewise.
1626         * config/pdp11/pdp11-protos.h: Remove corresponding
1627         prototypes.
1628
1629 2004-03-08  Eric Botcazou  <ebotcazou@act-europe.fr>
1630
1631         * expr.c (highest_pow2_factor_for_type): Rename into
1632         highest_pow2_factor_for_target.  Use DECL_ALIGN instead of
1633         TYPE_ALIGN when the target is a COMPONENT_REF.
1634         (expand_assignment): Ajust call to highest_pow2_factor_for_type.
1635
1636 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
1637
1638         * config/rs6000/rs6000.c: Formatting fix.
1639         (legitimate_offset_address_p): Correct offset range check.
1640
1641         * config/rs6000/rs6000.c (rs6000_override_options): Don't override
1642         -msoft-float by -mcpu.  Consolidate similar code for MASK_MULTIPLE
1643         and MASK_STRING.
1644
1645 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
1646
1647         * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
1648         for little endian.
1649         ("ashrdi3_no_power"): Disable for little endian.
1650         (ashrdi3): Same.
1651
1652 2004-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1653
1654         * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
1655         builtins.
1656
1657 2004-03-08  Hans-Peter Nilsson  <hp@axis.com>
1658
1659         PR target/14471
1660         * configure.ac (Target-specific assembler checks) <cris-*-*>: New
1661         case, checking for -no-mul-bug-abort option.
1662         * configure, config.in: Regenerate.
1663         * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
1664         and -mno-mul-bug-workaround.
1665         * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
1666         ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
1667         ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
1668         Ditto.  Make attribute "slottable" dependent on TARGET_MUL_BUG.
1669         * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
1670         sure mulu.d is not last on cache-line.
1671         * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
1672         into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
1673         (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
1674         (TARGET_SWITCHES): New options -mmul-bug-workaround and
1675         -mno-mul-bug-workaround.
1676         (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
1677         (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
1678         * config/cris/cris.c (cris_operand_extend_operator): Clarify
1679         relation to MULT in head comment.
1680         (cris_op_str): Abort for MULT.
1681         (cris_print_operand) <case '!'>: New case.
1682
1683 2004-03-08  Alan Modra  <amodra@bigpond.net.au>
1684
1685         PR debug/11983
1686         * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
1687         dw_val_class_vec.  Replace use throughout file.
1688         (dw_float_const): Delete.
1689         (dw_vec_const): New.
1690         (dw_val_struct_union): Rename val_float to val_vec.  Replace use
1691         throughout file.
1692         (add_AT_vec): Rename from add_AT_float.  Add elt_size param.
1693         (same_dw_val_p): Adjust vec comparison.  Use memcmp.
1694         (size_of_die): Adjust dw_val_class_vec sizing.
1695         (output_die): Output dw_val_class_vec.
1696         (insert_int, extract_int, insert_float): New functions.
1697         (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
1698         Handle CONST_VECTOR.
1699         (add_location_or_const_value_attribute): Handle CONST_VECTOR.
1700
1701 2004-03-07  Aldy Hernandez  <aldyh@redhat.com>
1702
1703         * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
1704         AltiVec abi cannot co-exist.
1705
1706         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
1707
1708 2004-03-07  Jan Hubicka  <jh@suse.cz>
1709
1710         * except.c (emit_to_new_bb_before):  Break fallthru edges.
1711
1712 2004-03-07  Stephane Carrez  <stcarrez@nerim.fr>
1713
1714         * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
1715         ("*lshrsi3"): Also accept an immediate for 68HC12.
1716         ("*ashrsi3_const"): Likewise.
1717         ("*ashrsi3"): Likewise.
1718         ("*ashlsi3_const"): Likewise.
1719         ("*ashlsi3"): Likewise.
1720         ("cmphi_1_hc12"): Compare two hard register by pushing them and
1721         comparing with a pop; don't use a split for that.
1722         ("cmphi split"): Disable compare split for 68HC12.
1723
1724         * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
1725         the status operands if they have side effects.
1726
1727 2004-03-07  Kazu Hirata  <kazu@cs.umass.edu>
1728
1729         * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
1730         definition.
1731         * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
1732         config/h8300/h8300.h, config/ia64/ia64.h,
1733         config/mcore/mcore.h, config/mmix/mmix.h,
1734         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
1735         config/stormy16/stormy16.h, config/v850/v850.h,
1736         config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
1737         * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
1738         definition.
1739
1740 2004-03-07  Roger Sayle  <roger@eyesopen.com>
1741
1742         * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
1743         <XOR_EXPR>: Fold x ^ x as zero.
1744         <AND_EXPR>: Fold x & x as x.
1745
1746 2004-03-07  Roger Sayle  <roger@eyesopen.com>
1747
1748         * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
1749         "foo++ == const" into "++foo == const+incr".
1750
1751 2004-03-07  Richard Sandiford  <rsandifo@redhat.com>
1752
1753         * config/mips/mips.c (mips_in_small_data_p): Return false if
1754         TARGET_ABICALLS.
1755
1756 2004-03-06  Stephane Carrez  <stcarrez@nerim.fr>
1757
1758         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
1759         the stack register.
1760         (expand_prologue): Don't make an interrupt or a trap handler a far
1761         symbol.
1762         (m68hc11_initial_elimination_offset): Likewise.
1763
1764 2004-03-06  Richard Henderson  <rth@redhat.com>
1765
1766         * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
1767
1768 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1769
1770         * config/ns32k/ns32k-protos.h: Add a prototype for
1771         ns32k_notice_update_cc.
1772         * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
1773         * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
1774         ns32k_notice_update_cc.
1775
1776 2004-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
1777
1778         * config/s390/s390.md ("load_multiple", "*load_multiple_di",
1779         "*load_multiple_si"): Allow only if reload_completed.
1780         ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
1781         Likewise.
1782
1783 2004-03-06  Kazu Hirata  <kazu@cs.umass.edu>
1784
1785         * config/vax/vax-protos.h: Add a prototype for
1786         vax_notice_update_cc.
1787         * config/vax/vax.c (vax_notice_update_cc): New.
1788         * config/vax/vax.h (NOTICE_UPDATE_CC): Call
1789         vax_notice_update_cc.
1790
1791 2004-03-06  David Edelsohn  <edelsohn@gnu.org>
1792
1793         * collect2.c (main): Only export initfunc and finifunc if
1794         LD_INIT_SWITCH not defined.
1795         (scan_prog_file): Only export constructors and destructors if
1796         LD_INIT_SWITCH not defined.  Only export symbols not found in
1797         shared objects.
1798
1799 2004-03-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1800
1801         * pa.md (icacheflush): Reorder operands to make match_scratch operand
1802         last.
1803         * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
1804         from calls to gen_icacheflush.
1805
1806 2004-03-06  Richard Henderson  <rth@redhat.com>
1807
1808         * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
1809         (TARGET_LONG_DOUBLE_128): New.
1810         (TARGET_SWITCHES): Add long-double-{128,64}.
1811         (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
1812         (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
1813         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
1814         (WIDEST_HARDWARE_FP_SIZE): New.
1815         (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
1816         * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
1817         if TARGET_VAX_FLOAT.
1818         * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
1819         (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
1820
1821 2004-03-06  Richard Henderson  <rth@redhat.com>
1822
1823         * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
1824         botched rtx class conversion.
1825
1826 2004-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1827
1828         * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
1829         BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
1830
1831         * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
1832         macros.
1833         * fold-const.c (fold_mathfn_compare, fold): Likewise.
1834
1835 2004-03-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1836
1837         PR target/14343
1838         * config/i386/i386.md (movv2di_internal): Conditionalize on
1839         TARGET_SSE, not TARGET_SSE2.
1840
1841 2004-03-05  Chris Demetriou  <cgd@broadcom.com>
1842
1843         * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
1844         duplicated line.
1845
1846 2004-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1847
1848         * builtins.c: Consistently use logN not log* in comments.
1849
1850 2004-03-05  Andreas Krebbel  <krebbel1@de.ibm.com>
1851
1852         * rtl.h (mem_expr_equal_p): Function prototype added.
1853         * cfgcleanup.c (merge_memattrs): New function.
1854         (flow_find_cross_jump): Call merge_memattrs for matching insns.
1855         * emit-rtl.c (mem_expr_equal_p): New function.
1856
1857 2004-03-05  Ziemowit Laski  <zlaski@apple.com>
1858
1859         * objc/objc-act.c (synth_module_prologue): Const-qualify
1860         objc_selector type if using the GNU runtime; fix generated
1861         signatures for objc_msg_lookup and objc_msg_lookup_super
1862         to match what GNU ObjC headers provide; reformat and clean up.
1863         (synth_self_and_ucmd_args): Use previously constructed (and
1864         hence possibly const-qualified) objc_selector type.
1865
1866 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1867
1868         * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
1869
1870 2004-03-05  Jason Merrill  <jason@redhat.com>
1871
1872         * tree.h (TYPE_HASH): Use TYPE_UID.
1873         (TREE_HASH): New macro with old definition of TYPE_HASH.
1874         * tree.c (build_type_attribute_variant): Use iterative_hash_object.
1875         (build_array_type, build_function_type): Likewise.
1876         (build_method_type_directly): Likewise.
1877         (build_offset_type, build_complex_type): Likewise.
1878         (type_hash_list, attribute_hash_list): Likewise. Now static.
1879         * except.c: s/TYPE_HASH/TREE_HASH/.
1880
1881 2004-03-05  Bob Wilson  <bob.wilson@acm.org>
1882
1883         * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
1884         (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32).  Adjust
1885         __va_ndx by 2 words when referencing an argument on the stack.
1886         (xtensa_va_arg): Handle 16-byte aligned args.  Adjust __va_ndx by 2
1887         words when an arg on the stack is first seen.
1888
1889 2004-03-05  Paul Brook  <paul@codesourcery.com>
1890
1891         * arm.h (ARM_FLAG_VFP): Remove.
1892         (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
1893         * netbsd-elf.h (ARM_FLAG_VFP): Remove.
1894
1895 2004-03-05  Paul Brook  <paul@codesourcery.com>
1896
1897         * function.c (assign_parms): Include pretend alignment offset.
1898
1899 2004-03-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1900
1901         * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
1902         FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
1903
1904 2004-03-05  Ian Lance Taylor  <ian@wasabisystems.com>
1905
1906         * configure.ac: When passing --enable-languages to subdir
1907         configure when host != build, make sure we don't pass an empty
1908         value.
1909         * configure: Regenerate.
1910
1911 2004-03-05  Nathan Sidwell  <nathan@codesourcery.com>
1912
1913         PR 13577
1914         * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
1915         options.
1916
1917 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
1918
1919         * simplify-rtx.c (simplify_relational_operation): If
1920         flag_wrapv is set, do not move terms between the two
1921         side of a relational operator.
1922
1923 2004-03-05  Paolo Bonzini  <bonzini@gnu.org>
1924
1925         * rtlanal.c: Include target.h and output.h
1926         (rtx_cost, address_cost, default_address_cost): Move from...
1927         * cse.c (rtx_cost, address_cost, default_address_cost):
1928         ... this file.
1929         * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
1930         * Makefile.in: Adjust dependencies.
1931
1932 2004-03-05  Paolo Bonzini <bonzini@gnu.org>
1933
1934         * cse.c (cse_end_of_basic_block): Make static.
1935         * local-alloc.c (function_invariant_p): Move to
1936         reload1.c.
1937         * loop.c (libcall_other_reg, record_excess_regs):
1938         Make static.
1939         * reload1.c (function_invariant_p): Moved here
1940         from local-alloc.c, made static.
1941         * rtl.h (cse_end_of_basic_block, function_invariant_p,
1942         libcall_other_reg, record_excess_regs): Remove
1943         declarations.
1944
1945 2004-03-05  Kazu Hirata  <kazu@cs.umass.edu>
1946
1947         * config/m32r/m32r.c (signed_comparison_operator): Add a
1948         missing parenthesis.
1949
1950 2004-03-04  Ian Lance Taylor  <ian@wasabisystems.com>
1951
1952         * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
1953         going to call mmap again.  Read the file into the right place.
1954         Give a fatal error if we have to relocate.
1955
1956 2004-03-04  Bob Wilson  <bob.wilson@acm.org>
1957
1958         * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
1959         (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
1960
1961 2004-03-05  Hans-Peter Nilsson  <hp@axis.com>
1962
1963         PR other/14354
1964         * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
1965         round the same.  When rounding, clear bits that would cause a
1966         second rounding in pack_d.
1967         (_fpmul_parts): Ditto.  Remove #if 0:d code.
1968
1969 2004-03-04  Ziemowit Laski  <zlaski@apple.com>
1970
1971         PR c++/14425, c++/14426
1972         * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
1973         vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
1974         Change C++ definitions to accept a 'const int' argument;
1975         the prototypes already do.
1976         * config/rs6000/rs6000.c (rs6000_common_init_builtins):
1977         Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
1978         v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
1979         v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
1980         v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
1981         v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
1982         end in ..._int; change them to accept an int instead of a char
1983         as the last parameter.
1984
1985 2004-03-04  Phil Edwards  <phil@codesourcery.com>
1986
1987         * genmultilib:  Change '=' to '-' when translating option names
1988         to directory names.
1989
1990 2004-03-04  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1991
1992         * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
1993         stack slot for temp used for result of BLKmode but in integral mode.
1994
1995 2004-03-04  Jan Hubicka  <jh@suse.cz>
1996
1997         * reload.c (find_reloads): Reorganize if seqeunce to switch.
1998
1999         * cfgrtl.c (rtl_redirect_edge_and_branch):  Set the source BB as dirty.
2000         (cfglayout_redirect_edge_and_branch):  Set the source BB as dirty.
2001
2002 2004-03-04  Steve Ellcey  <sje@cup.hp.com>
2003
2004         * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
2005         * testsuite/gcc.dg/20040303-1.c: New test.
2006
2007 2004-03-04  Steven Bosscher  <stevenb@suse.de>
2008
2009         * ppro.md: Rewrite as a DFA pipeline description.
2010         * i386.md: Remove all uses of the ppro_uops attribute.
2011         * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
2012         ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
2013         ix86_sched_reorder, ix86_variable_issue,
2014         struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
2015         TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
2016         (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
2017         (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
2018         * athlon.md (athlon_ssecmp_load): Fix comment
2019
2020 2004-03-04  Stuart Hastings  <stuart@apple.com>
2021
2022         * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
2023
2024 2004-03-04  Stuart Hastings  <stuart@apple.com>
2025
2026         * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
2027         686, tell Darwin assembler to allow prefetch insns, non-empty def
2028         of SUBTARGET_OPTION_TRANSLATE_TABLE.
2029
2030 2004-03-04  DJ Delorie  <dj@redhat.com>
2031
2032         PR optimization/14282
2033         * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
2034         between a call and the assignment of its return value.
2035
2036 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2037
2038         * config/h8300/h8300.c: Put a comment for every function.
2039
2040 2004-03-04  Kazu Hirata  <kazu@cs.umass.edu>
2041
2042         * config/h8300/h8300.md: Add comments about peephole2's.
2043
2044 2004-03-04  Steven Bosscher  <stevenb@suse.de>
2045
2046         * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
2047
2048 2004-03-04  Jan Hubicka  <jh@suse.cz>
2049
2050         * cfgcleanup.c (thread_jump): Update call of cselib_init.
2051         * cselib.c (cselib_record_memory): New static variable.
2052         (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
2053         Give up on memories when asked for.
2054         (cselib_init): Accept new argument.
2055         * cselib.h (cselib_init): Update prototype.
2056         * gcse.c (local_cprop_pass): Update call of cselib_init.
2057         * loop.c (load_mems): Update call of cselib_init.
2058         * postreload.c (reload_cse_regs_1): Update call of cselib_init.
2059         * sched-deps.c (sched_analyze): Update call of cselib_init.
2060
2061 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
2062             GP <gp@qnx.com>
2063
2064         * config/rs6000/rs6000.c (output_function_profiler): Append @plt
2065         when compiling PIC.
2066
2067 2004-03-04  Josef Zlomek  <zlomekj@suse.cz>
2068
2069         PR/14362
2070         * var-tracking.c (track_expr_p): Do not track variables which
2071         should be ignored for debugging purposes.
2072
2073 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2074
2075         * real.c (encode_ibm_extended): Don't bother rounding low double.
2076         * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
2077         when fmt->pnan < fmt->p.
2078
2079 2004-03-04  Eric Christopher  <echristo@redhat.com>
2080
2081         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
2082         only range of valid arg registers and fixed_regs.
2083
2084 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2085
2086         PR target/14406
2087         * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
2088         (abstf2, abstf2_internal): New define_expand.
2089
2090 2004-03-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2091
2092         PR optimization/14235
2093         * expr.c (convert_move): Copy the source to a new pseudo
2094         when converting from a sub-word source to a larger-than-word
2095         register which conflicts with the source.
2096
2097 2004-03-03  Zack Weinberg  <zack@codesourcery.com>
2098
2099         PR 13728
2100         * c-decl.c (diagnose_mismatched_decls): Issue an error for two
2101         parameters with the same name, unless one is a forward decl.
2102         Do not issue a redundant-redeclaration warning for forward
2103         decls of parameters.
2104
2105 2004-03-04  David Edelsohn  <edelsohn@gnu.org>
2106
2107         * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
2108         configuration.
2109
2110 2004-03-03  Ian Lance Taylor  <ian@wasabisystems.com>
2111
2112         * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
2113
2114 2004-03-04  Alan Modra  <amodra@bigpond.net.au>
2115
2116         * target-def.h (TARGET_OPTF): Delete.
2117         * c-opts.c (TARGET_OPTF): Define.
2118
2119 2004-03-04  Jan Hubicka  <jh@suse.cz>
2120
2121         * cselib.c (cselib_finish): Fix another miss-application of my previous
2122         patch.
2123
2124 2004-03-03  Mike Stump  <mrs@apple.com>
2125
2126         Add framework support for darwin.
2127
2128         * c-incpath.c: Include target.h and machmode.h.
2129         (add_path): Use a consistent style for cpp_dir.  Initialize
2130         p->construct to 0.
2131         (add_cpp_dir_path): New.
2132         (register_include_chains): Add use of extra_includes callback.
2133         (hook_void_int): Add.
2134         (target_c_incpath): Add.
2135         * c-incpath.h (add_cpp_dir_path): New.
2136         (target_c_incpath_s): Add.
2137         (target_c_incpath): Add.
2138         (C_INCPATH_INIT): Add.
2139         * c-opts.c (c_common_missing_argument,
2140         c_common_handle_option): Add -F argument processing.
2141         * c.opt: Add -F argument processing.
2142         * gcc.c (trad_capable_cpp): Add -F argument processing.
2143         * cppfiles.c (find_file_in_dir): Update to use construct
2144         callback.
2145         (search_path_exhausted, cpp_get_path, cpp_get_buffer,
2146         cpp_get_prev): New.
2147         (_cpp_find_file): Use search_path_exhausted.
2148         (make_cpp_dir): Initialize construct to 0.
2149         * cpplib.h (missing_header_cb
2150         cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
2151         (cpp_callbacks): Add missing_header
2152         (cpp_dir): Add construct.
2153         * target-def.h: (TARGET_OPTF): New.
2154         * hooks.c (hook_void_int, hook_void_charptr): Add.
2155         * hooks.h (hook_void_int, hook_void_charptr): Add.
2156         * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
2157         $(MACHMODE_H) dependencies.
2158         * doc/invoke.texi (Darwin Options): Document -F.
2159         * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
2160         (TARGET_OPTF): Add.
2161         * fix-header.c (target_c_incpath): Add.
2162
2163         * config/darwin-c.c: Add c-incpath.h include.
2164         (using_frameworks, find_subframework_file,
2165         find_subframework_header, add_system_framework_path,
2166         frameworks_in_use, num_frameworks, max_frameworks,
2167         add_framework, find_framework, struct framework_header,
2168         framework_header_dirs, framework_construct_pathname,
2169         find_subframework_file, add_system_framework_path,
2170         add_framework_path, framework_defaults,
2171         darwin_register_frameworks, find_subframework_header): Add.
2172         * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
2173         (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
2174         (CPP_SPEC): Add __APPLE_CC__ support.
2175         * t-darwin (darwin-c.o): Add c-incpath.h dependency.
2176
2177 2004-03-04  Jan Hubicka  <jh@suse.cz>
2178
2179         * cselib.c (cselib_finish): Fix miss-application of my previous
2180         patch.
2181
2182 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2183
2184         * hooks.c (hook_tree_tree_identity): New.
2185         * hooks.h: Add a prototype for hook_tree_tree_identity.
2186         * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
2187         instead of MD_ASM_CLOBBERS.
2188         * system.h (MD_ASM_CLOBBERS): Poison.
2189         * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
2190         (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
2191         * target.h (gcc_target): Add md_asm_clobbers.
2192         * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
2193         (ix86_md_asm_clobbers): New.
2194         * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
2195         * doc/tm.texi (MD_ASM_CLOBBERS): Change to
2196         TARGET_MD_ASM_CLOBBERS.
2197
2198 2004-03-03  Stuart Hastings  <stuart@apple.com>
2199
2200         * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
2201
2202 2004-03-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
2203
2204         * config/sparc/sparc.c (noov_compare64_op): Fix typo.
2205
2206         * config/sparc/sparc.h (ASM_FLOAT): Delete.
2207         (ASM_DOUBLE): Likewise.
2208         (ASM_LONGDOUBLE): Likewise.
2209         * config/sparc/pbd.h (ASM_INT_OP): Delete.
2210
2211 2003-03-03  Richard Henderson  <rth@redhat.com>
2212
2213         PR opt/13862
2214         * cselib.c (cselib_record_sets): Don't record multiple sets in
2215         asm insns.
2216
2217 2004-03-03  Mostafa Hagog  <mustafa@il.ibm.com>
2218
2219         * common.opt: Add description of the new -fgcse-after-reload flag.
2220
2221         * flags.h (flag_gcse_after_reload): Declaration of global variable.
2222
2223         * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
2224         reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
2225         is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2226         get_bb_avail_insn, hash_scan_set_after_reload,
2227         compute_hash_table_after_reload, eliminate_partially_redundant_loads,
2228         gcse_after_reload, get_bb_avail_insn): New functions to implement
2229         gcse-after-reload.
2230         (gcse_after_reload_main): New function, the main entry point to
2231         gcse-after-reload.
2232
2233         * rtl.h (gcse_after_reload_main): Declaration of the new function.
2234
2235         * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
2236
2237         * toplev.c (flag_gcse_after_reload): Initialization.
2238
2239         * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
2240
2241         * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2242         PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
2243         the gcse after reload optimization.
2244
2245         * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2246         GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
2247         parameters.
2248
2249         * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
2250
2251 2004-03-03  Nicolas Pitre <nico@cam.org>
2252
2253         * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
2254         small negative values.
2255
2256 2004-03-03  Jan Hubicka  <jh@suse.cz>
2257
2258         * cselib.c (hash_table):  Remove GTY marker.
2259         (reg_values): Turn into array.
2260         (used_regs): Likewise.
2261         (n_used_regs): New static variable.
2262         (reg_values_old): Kill.
2263         (clear_table): Update uses of arrays.
2264         (cselib_lookup): Likewise.
2265         (cselib_record_set): Likewise.
2266         (cselib_init): Likewise.
2267         (cselib_finish): Likewise.
2268         (cselib_udpate_varray_sizes): Kill.
2269         * cselib.h (cselib_update_varray_sizes): Kill.
2270
2271 2004-03-03  Paul Brook  <paul@codesourcery.com>
2272
2273         * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
2274
2275 2004-03-03  Jan Hubicka  <jh@suse.cz>
2276
2277         * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
2278         Rename from ...; make statistics transparent.
2279         (ggc_alloc_cleared, ggc_realloc_stat): ... these.
2280         (loc_descriptor): New structure.
2281         (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
2282         add_statistics):
2283         New static function.
2284         (ggc_record_overhead, dump_statistics): New global function.
2285         * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2286         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
2287         from ...; accept locations
2288         (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2289         ggc_realloc, ggc_alloc_typed):  ... this one.
2290         from ...; accept locations
2291         * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
2292         ggc_alloc_stat): Rename from ... ; pass locations
2293         * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
2294         ... this one.
2295         (ggc_alloc_stat): Record overehead.
2296         * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2297         ggc_realloc, ggc_alloc_typed):  Turn to macros
2298         (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2299         ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
2300         (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
2301         * langhooks.h (lhd_make_node): Declare.
2302         (LANG_HOOKS_MAKE_TYPE): Default to new function,
2303         * langhooks.c (lhd_make_node): New.
2304         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
2305         locations.
2306         (rtx_alloc, swallow_copy_rtx): ... this one.
2307         * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
2308         * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
2309         * toplpev.c (finalize): Dump stats.
2310         * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
2311         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
2312         Rename from ... ; pass locators.
2313         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2314         build?,  build_decl): Declare.
2315         * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
2316         build_tree_list_stat, tree_cons_stat, build?_stat,  build_decl_stat):
2317         Declare.
2318         (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2319         build?,  build_decl): New macros.
2320         * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
2321         * statistics.h: New file.
2322
2323 2004-03-03  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2324             Richard Sandiford  <rsandifo@redhat.com>
2325
2326         * config/mips/mips.h (MASK_FIX_SB1): Bump.
2327         (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
2328         (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
2329         * config/mips/mips.c (mips_output_division): Fill the branch delay
2330         slot with a nop if TARGET_FIX_R4000.  Extend R4000 workarounds to
2331         TARGET_FIX_R4400.
2332         (mips_output_division): Adjust accordingly.
2333         (override_options): Make -march=r4400 imply -mfix-r4400 by default.
2334         * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
2335
2336 2004-03-03  Paolo Bonzini  <bonzini@gnu.org>
2337
2338         * alias.c (rtx_equal_for_memref_p): Use predicates
2339         to test rtx classes and new rtx class codes, possibly
2340         splitting conditionals that tested against '<' and 'o'.
2341         * caller-save.c (save_call_clobbered_regs): Likewise.
2342         * combine.c (contains_muldiv, find_split_point, subst,
2343         combine_simplify_rtx, simplify_if_then_else,
2344         simplify_set, simplify_logical, expand_compound_operation,
2345         make_compound_operation, if_then_else_cond, known_cond,
2346         apply_distributive_law, cached_nonzero_bits,
2347         cached_num_sign_bit_copies, simplify_shift_const,
2348         gen_binary, simplify_comparison, update_table_tick,
2349         record_value_for_reg, get_lsat_value_validate): Likewise.
2350         * cse.c (mention_regs, find_best_addr, find_comparison_args,
2351         fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
2352         Likewise.
2353         * emit-rtl.c (copy_insn_1): Likewise.
2354         * expr.c (force_operand): Likewise.
2355         * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
2356         * flow.c (notice_stack_pointer_modification_1,
2357         invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
2358         and_reg_cond, elim_reg_cond): Likewise.
2359         * function.c (update_epilogue_consts): Likewise.
2360         * genattrtab.c (attr_rtx_1): Likewise.
2361         * genopinit.c (gen_insn): Likewise.
2362         * integrate.c (subst_constants): Likewise.
2363         * jump.c (reversed_comparison_code_parts,
2364         reversed_comparison_code, delete_related_insns,
2365         rtx_renumbered_equal_p): Likewise.
2366         * local-alloc.c (block_alloc): Likewise.
2367         * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
2368         canonicalize_condition): Likewise.
2369         * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
2370         Likewise.
2371         * optabs.c (add_equal_node, expand_binop): Likewise.
2372         * predict.c (estimate_probability): Likewise.
2373         * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
2374         * recog.c (validate_replace_rtx_1, comparison_operator,
2375         offsettable_address_p, constrain_operands): Likewise.
2376         * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
2377         Likewise.
2378         * regclass.c (scan_one_insn): Likewise.
2379         * regmove.c (stable_and_no_regs_but_for_p): Likewise.
2380         * regrename.c (kill_autoinc_value): Likewise.
2381         * reload.c (find_reusable_reload, find_reloads,
2382         reg_overlap_mentioned_for_reload_p): Likewise.
2383         * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
2384         * rtl.c (copy_rtx): Likewise.
2385         * rtl.h (CONSTANT_P, INSN_P): Likewise.
2386         * rtlanal.c (commutative_operand_precedence): Likewise.
2387         * sched-deps.c (conditions_mutex_p): Likewise.
2388         * sched-rgn.c (is_cfg_nonregular): Likewise.
2389         * simplify-rtx.c (simplify_gen_binary,
2390         simplify_gen_relational, simplify_replace_rtx,
2391         simplify_unary_operation, simplify_binary_operation,
2392         simplify_ternary_operation, simplify_rtx): Likewise.
2393         * unroll.c (reg_dead_after_loop): Likewise.
2394         * config/alpha/alpha.c (alpha_swapped_comparison_operator,
2395         print_operand): Likewise.
2396         * config/arc/arc.c (proper_comparison_operator): Likewise.
2397         * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
2398         Likewise.
2399         * config/avr/avr.c (_reg_unused_after): Likewise.
2400         * config/frv/frv.c (frv_ifcvt_modify_tests,
2401         frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
2402         * config/i386/i386.c (ix86_comparison_operator,
2403         ix86_carry_flag_operator, fcmov_comparison_operator,
2404         arith_or_logical_operator, print_operand,
2405         ix86_expand_binary_operator, ix86_binary_operator_ok):
2406         Likewise.
2407         * config/i386/i386.md: Likewise.
2408         * config/ia64/ia64.c (not_postinc_memory_operand,
2409         ia64_print_operand, update_set_flags, errata_emit_nops):
2410         Likewise.
2411         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
2412         CONSTRAINT_OK_FOR_S): Likewise.
2413         * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
2414         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
2415         ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
2416         ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
2417         Likewise.
2418         * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
2419         eqne_comparison_operator, signed_comparison_operator):
2420         Likewise.
2421         * config/mips/mips.c (cmp_op, symbolic_expression_p):
2422         Likewise.
2423         * config/mmix/mmix (mmix_foldable_comparison_operator,
2424         mmix_comparison_operator): Likewise.
2425         * config/pa/pa.c (hppa_legitimize_address): Likewise.
2426         * config/rs6000/rs6000.c (stmw_operation,
2427         branch_comparison_operator, trap_comparison_operator,
2428         ccr_bit): Likewise.
2429         * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
2430         * config/s390/s390.c (s390_alc_comparison,
2431         s390_slb_comparison):L Likewise.
2432         * config/sh/sh.c (gen_block_redirect, reg_unused_after):
2433         Likewise.
2434         * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
2435         noov_compare_op, noov_compare64_op, v9_regcmp_op,
2436         emit_hard_tfmode_operation, reg_unused_after)
2437         * doc/md.texi, doc/rtl.texi: Likewise.
2438
2439         * ra-debug.c: Add 2004 to list of copyright years.
2440         * unroll.c: Likewise.
2441
2442         * combine.c (simplify_logical): Remove dummy test,
2443         (apply_distributive_law): Fix typo in comment.
2444         GET_CODE (x) == AND so x is a commutative binary op.
2445         * jump.c (delete_related_insns): simplify loop
2446         condition, move testing of RTX codes inside the loop.
2447         (rtx_renumbered_equal_p): do not use RTX_CODE.
2448         * rtl.c (rtx_class): Declare as enum rtx_class.
2449         * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
2450         Move to RTX_COMM_COMPARE class.
2451         (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
2452         Move to RTX_CONST_OBJ class.
2453         * rtl.h (enum rtx_class): New declaration,
2454         (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
2455         RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
2456         RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
2457         RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
2458         RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
2459         ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
2460         SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
2461         OBJECT_P): New macros.
2462         * config/sparc/sparc.c (noov_compare_op): Remove register
2463         from parameter.
2464
2465 2004-03-03  Kazu Hirata  <kazu@cs.umass.edu>
2466
2467         * target.h: Remove texi jargons in comments.
2468
2469 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2470
2471         * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
2472         threshold to 0x4f.
2473
2474         Revert:
2475         2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2476         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
2477         as well.
2478         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
2479         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
2480
2481 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2482
2483         * doc/md.texi (cbranchmode4): New.
2484
2485 2004-03-02  Eric Christopher  <echristo@redhat.com>
2486
2487         * config/mips/mips16.S: Change fixsfsi and fixdfsi to
2488         fix_trunc.
2489         * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
2490         * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
2491         * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
2492         * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
2493
2494 2004-03-02  Richard Henderson  <rth@redhat.com>
2495
2496         PR middle-end/11767
2497         * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
2498         * optabs.c (prepare_cmp_insn): Force trapping memories to registers
2499         before the compare, if flag_non_call_exceptions.
2500
2501 2004-03-02  Richard Henderson  <rth@redhat.com>
2502
2503         PR middle-end/14327
2504         * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
2505         emitting the label, not after.
2506
2507 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2508
2509         * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
2510         (m68hc11_mov_addr_mode): Likewise.
2511         (m68hc11_override_options): Initialize them based on target.
2512         (register_indirect_p): Allow a MEM for indirect addressing modes and
2513         use flags to control what is allowed.
2514         (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
2515         supported addressing modes.
2516         (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
2517         (go_if_legitimate_address_internal): Likewise.
2518         (m68hc11_indirect_p): Likewise and check the mode.
2519         (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
2520
2521 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2522
2523         * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
2524         (expand_builtin_setjmp_setup): Use
2525         targetm.builtin_setjmp_frame_value instead of
2526         BUILTIN_SETJMP_FRAME_VALUE.
2527         * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
2528         * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
2529         (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
2530         * target.h (gcc_target): Add builtin_setjmp_frame_value.
2531         * targhooks.c (default_builtin_setjmp_frame_value): New.
2532         * targhooks.h: Add a prototype for
2533         default_builtin_setjmp_frame_value.
2534         * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
2535         TARGET_BUILTIN_SETJMP_FRAME_VALUE.
2536
2537 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2538
2539         * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
2540         sequences of moves.
2541         (add peepholes): New peepholes to optimize sequences adding small
2542         constants.
2543         (bset peepholes): New peepholes to transform an OR in a bset form
2544         (bclr peepholes): Likewise for bclr form.
2545         (cmp peepholes): New peepholes to avoid register copies when comparing.
2546
2547 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2548
2549         * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
2550         to separate push from moves.
2551         ("*pushdf_internal"): Likewise.
2552         ("*pushsf_internal"): Likewise.
2553         ("*pushsi_internal"): Likewise.
2554         ("movdi_internal"): Use define_insn_and_split; non push operand.
2555         ("movdf_internal"): Likewise.
2556         ("movsf_internal"): Likewise.
2557         ("movsi_internal"): Likewise.
2558         ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
2559         ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
2560         ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
2561
2562 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2563
2564         * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
2565         ("cmphi_z_used", "cmpqi_z_used"): Likewise.
2566         ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
2567         ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
2568         ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
2569         ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
2570         ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
2571         ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
2572         ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
2573         ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
2574         ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
2575
2576 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2577
2578         * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
2579         (SOFT_XY_REGNUM): Define.
2580         (cmp split): Use the above instead of hard coded numbers.
2581         (8-bit op split): No need to check the mode; allow Q_REG.
2582         (ashift split): Adjust the first operand if it uses the SP and we
2583         are pushing the shifted value.
2584         (plus shift split): Fix when a source is in register D+X.
2585         ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
2586
2587 2004-03-02  Stephane Carrez  <stcarrez@nerim.fr>
2588
2589         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
2590         comparing with Z register.
2591
2592 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2593
2594         * cfgloop.h (struct loop_desc): Removed.
2595         (struct loop): Fields simple, desc and has_desc removed.
2596         (simple_loop_p, count_loop_iterations): Declaration removed.
2597         * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
2598         (unmark_altered, blocks_invariant_registers, unmark_altered_insn
2599         blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
2600         invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
2601         simple_loop_exit_p, variable_initial_value, variable_initial_values,
2602         simple_condition_p, simple_increment, count_strange_loop_iterations,
2603         inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
2604         Removed.
2605         * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
2606
2607 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2608
2609         * genattrtab.c: Don't handle MATCH_INSN.
2610         * genrecog.c: Likewise.
2611         * gensupport.c: Likewise.
2612         * rtl.def (match_insn): Remove.
2613         * doc/md.texi (match_insn, match_insn2): Remove.
2614
2615 2004-03-02  Mark Mitchell  <mark@codesourcery.com>
2616
2617         * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
2618         macro results in memory allocation.
2619
2620 2004-03-02  David O'Brien  <obrien@FreeBSD.org>
2621
2622         * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
2623         * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
2624         %(fbsd_dynamic_linker),
2625         (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
2626         config/i386/freebsd.h
2627         * config/arm/freebsd.h: Ditto.
2628         * config/i386/freebsd.h: Ditto.
2629         * config/i386/freebsd64.h: Ditto.
2630         * config/ia64/freebsd.h: Ditto.
2631         * config/rs6000/sysv4.h: Ditto.
2632         * config/sparc/freebsd.h: Ditto.
2633
2634 2004-03-02  Loren James Rittle  <ljrittle@acm.org>
2635
2636         * gcc/doc/install.texi (*-*-freebsd*): Update target information.
2637
2638 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2639
2640         * rtl.def (define_combine): Remove.
2641
2642 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2643
2644         * config/h8300/h8300.md: Tweak formatting.
2645
2646 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2647
2648         * config/h8300/h8300.md (*cmphi_h8300): Rename to
2649         *cmphi_h8300_znvc.
2650         (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
2651
2652 2004-03-01  Mark Mitchell  <mark@codesourcery.com>
2653
2654         PR bootstrap/14356
2655         * gcc.c (process_command): Remove const-qualification from argv.
2656         (main): Likewise.
2657
2658 2004-03-02  Kazu Hirata  <kazu@cs.umass.edu>
2659
2660         * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
2661         pushqi1_h8300hs_advanced.  Adjust its caller.
2662         (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
2663         Adjust its caller.
2664
2665 2004-03-02  Nicolas Roche  <roche@act-europe.fr>
2666
2667         * Makefile.in (install-libgcc, install-multilib): Pass
2668         mkinstalldirs var to libgcc.mk.
2669
2670 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2671
2672         * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
2673         * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
2674
2675 2004-03-01  Kazu Hirata  <kazu@cs.umass.edu>
2676
2677         * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
2678         * config/h8300/h8300.md: Split several peephole2's, each into
2679         two.
2680
2681 2004-03-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2682
2683         * dominance.c (recount_dominator): Handle postdominators.
2684
2685 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
2686
2687         * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
2688         (NUM_SYMBOL_TYPES): Likewise.
2689         (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
2690         (mips_unspec_address): Declare.
2691         (mips_gotoff_page, mips_gotoff_global): Delete.
2692         * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
2693         * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
2694         (mips_symbolic_constant_p, mips_symbolic_address_p)
2695         (mips_symbol_insns): Handle new symbol types.
2696         (general_symbolic_operand): New predicate.
2697         (mips_unspec_address): Make extern.
2698         (mips_gotoff_page, mips_gotoff_global): Delete.
2699         (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
2700         Handle new symbol types.
2701         * config/mips/mips.md (*lea_high64, *lea64): New patterns.
2702         (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
2703         mips_unspec_address directly.
2704         * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
2705         the documentation of -mexplicit-relocs.
2706
2707 2004-03-01  Jeff Law  <law@redhat.com>
2708
2709         * fold-const.c (fold): An equality comparison of a non-weak object
2710         against zero has a known result.  Similarly an equality comparison
2711         of the address of two non-weak, unaliased symbols has a known result.
2712
2713         * ggc-page.c (struct page_entry): New field PREV.
2714         (ggc_alloc): Update PREV field appropriately.
2715         (sweep_pages): Likewise.
2716         (ggc_free): Likewise.  Use PREV field rather than loop to
2717         improve ggc_free performance.
2718
2719 2004-03-01  Richard Sandiford  <rsandifo@redhat.com>
2720
2721         * config/mips/mips.c (mips_output_division): Use the division
2722         instruction to fill the delay slot of a zero check.
2723         (mips_idiv_insns): Adjust accordingly.
2724
2725 2004-03-01  Nathanael Nerode  <neroden@gcc.gnu.org>
2726
2727         * config.gcc: Create a default tmake_file for linux, and use
2728         it in all but two linux clauses.  Comment those two.
2729
2730 2004-03-01  Paolo Bonzini  <bonzini@gnu.org>
2731
2732         * combine.c (try_combine):  Do not refer to is_replaced.
2733         (gen_lowpart_for_combine):  Perverse subregs now have a
2734         more politically correct name.
2735         * cse.c (cse_insn): Likewise.
2736         * jump.c: Fix bogus reference to delete_insn.
2737
2738 2004-02-29  Mark Mitchell  <mark@codesourcery.com>
2739
2740         PR debug/14328
2741         * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
2742         constants as signed values.
2743
2744         PR middle-end/13448
2745         * c-tree.h (readonly_warning): Rename to ...
2746         (readonly_error): ... this.
2747         * c-typeck.c (build_unary_op): Adjust accordingly.
2748         (readonly_warning): Rename to ...
2749         (readonly_error): ... this and issue errors, not warnings.
2750         (build_modify_expr): Call readonly_error, not readonly_warning.
2751         (c_expand_asm_operands): Likewise.
2752         * tree-inline.c (optimize_inline_calls): Do not inline functions
2753         after errors have occurred.
2754
2755 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
2756
2757         * configure.ac: Rearrange some threading code for clarity;
2758         add section comment.
2759         * configure: Regenerate.
2760
2761 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2762
2763         * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
2764         typos.
2765         * doc/cppopts.texi: Fix a typo.
2766
2767 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2768
2769         * config/i386/i386.md: Fix formatting.
2770
2771 2004-02-29  Nathanael Nerode  <neroden@gcc.gnu.org>
2772
2773         * configure.ac: Add some comments delineating sections of code.
2774
2775         * doc/install.texi: Note that libada uses autoconf 2.57 also.
2776
2777         * doc/install.texi: Fix idiot typo in previous commit.
2778
2779         * doc/install.texi: Update for conversion of intl to autoconf 2.57.
2780
2781 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2782
2783         * config/h8300/h8300.md: Add comments about peephole2's.
2784
2785 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2786
2787         * config/h8300/h8300.md: Tweak operand numbers of some
2788         peephole2's.
2789
2790 2004-02-29  Kazu Hirata  <kazu@cs.umass.edu>
2791
2792         * config/h8300/h8300.md: Tweak comments about peephole2's.
2793
2794 2004-02-29  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
2795
2796         PR middle-end/14203
2797         * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
2798         instead of testing whether DECL_RTL is not NULL.
2799
2800 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2801
2802         * config/sh/sh.c: Fix formatting.
2803
2804 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2805
2806         * config/sh/sh.c: Convert to ISO-C.
2807
2808 2004-02-28  Andrew Pinski  <pinskia@physics.uc.edu>
2809
2810         * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
2811         my previous patch.
2812
2813         * config/darwin.h (machopic_finish): Output stub even if the
2814         symbol is already defined.
2815
2816 2004-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2817
2818         * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
2819
2820 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2821
2822         * genattr.c (main): Don't define
2823         TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
2824         * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
2825         (DFA_PIPELINE_INTERFACE): Likewise.
2826         * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
2827         (DFA_PIPELINE_INTERFACE): Likewise.
2828
2829 2004-02-28  Richard Sandiford  <rsandifo@redhat.com>
2830
2831         * config/mips/mips.md (tstsi, tstdi): Delete.
2832
2833 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2834
2835         * config/mips/mips.c (override_options): Remove an obsolete
2836         duplicate definition of the "e" constraint.
2837         * config/mips/mips.h: Update a comment accordingly.
2838
2839 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2840
2841         * config/mips/mips.md: Complete the unfinished R4000
2842         multiply/shift errata workaround.  Improve documentation.
2843         (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
2844         has a hilo hazard.
2845         (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
2846         (muldi3, muldi3_internal): Likewise.
2847         (muldi3_internal2): Remove, replacing with...
2848         (muldi3_mult3, muldi3_r4000): ...these new patterns.
2849         (mulsidi3): Take the errata into account.
2850         (mulsidi3_32bit): Remove, replacing with...
2851         (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
2852         (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
2853         (umulsidi3): Take the errata into account.
2854         (umulsidi3_32bit): Remove, replacing with..
2855         (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
2856         (umulsi3_highpart, umulsi3_highpart_internal): Disable if
2857         TARGET_FIX_R4000.
2858         (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
2859         (smuldi3_highpart, umuldi3_highpart): Likewise.
2860         * doc/invoke.texi: Document the errata workaround.
2861
2862 2004-02-28  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
2863
2864         * config/mips/mips-protos.h (mips_idiv_insns): Declare.
2865         * config/mips/mips.h (MASK_FIX_SB1): Bump.
2866         (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
2867         (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
2868         * config/mips/mips.c (mips_idiv_insns): New function.
2869         (override_options): Make -march=r4000 imply -mfix-r4000 by default.
2870         (mips_output_division): Add a workaround for the R4000 divide/shift
2871         errata.
2872         * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
2873         the length of an "idiv" instruction.
2874         * doc/invoke.texi: Document the new switches.
2875
2876 2004-02-28  Kazu Hirata  <kazu@cs.umass.edu>
2877
2878         * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
2879         TARGET_SCHED_IS_COSTLY_DEPENDENCE.
2880
2881 2004-02-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2882
2883         PR optimization/14229
2884         * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
2885
2886 2004-02-28  Eric Botcazou  <ebotcazou@act-europe.fr>
2887
2888         * fold-const.c (fold): Strip NOPs that change the signedness
2889         for RSHIFT too.  Expand comment.
2890
2891 2004-02-27  Ian Lance Taylor  <ian@wasabisystems.com>
2892
2893         PR optimization/7871
2894         * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
2895         from or to call insns.
2896
2897 2004-02-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2898
2899         PR optimization/7871
2900         * flow.c (propagate_one_insn): Interpret calls as setting global
2901         registers, not merely clobbering them.
2902
2903 2004-02-27  Dale Johannesen  <dalej@apple.com>
2904
2905         * config/darwin.c (machopic_output_possible_stub_label):  Remove.
2906         config/darwin-protos.h:  Ditto.
2907         config/darwin.h:  Remove call to it.
2908         * combine.c (distribute_notes): Do not place a REG_DEAD note
2909         when value is both set and used.
2910
2911 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2912
2913         * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
2914         as well.
2915         * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
2916         * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
2917
2918 2004-02-27  Andrew Pinski  <apinski@apple.com>
2919
2920         * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
2921         Speedup common case of the type values being in the same order.
2922
2923 2004-02-27  Steve Ellcey  <sje@cup.hp.com>
2924
2925         * config/ia64/ia64.h (no-inline-float-divide): New option.
2926         * config/ia64/ia64.h (no-inline-int-divide): New option.
2927         * config/ia64/ia64.h (no-inline-sqrt): New option.
2928         (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
2929         * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
2930         * config/ia64/ia64.c (ia64_override_options): Modify error
2931         checking for inlined division/sqrt.
2932
2933 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2934
2935         * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
2936         ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
2937         value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
2938         config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
2939         copyright.
2940
2941 2004-02-27  Paul Brook  <paul@codesourcery.com>
2942
2943         * function.c (assign_parms): Don't count pretend args for alignment.
2944
2945 2004-02-27  Richard Henderson  <rth@redhat.com>
2946
2947         * passes.c: New file.
2948         * Makefile.in (OBJS-common): Add it.
2949         * diagnostic.c (rtl_dump_and_exit): Move decl ...
2950         * flags.h (rtl_dump_and_exit): ... here.
2951         * output.h (size_directive_output, last_assemble_variable_decl):
2952         Move from toplev.c.
2953         * rtl.h (reg_alloc): Move from toplev.c.
2954         * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
2955         struct dump_file_info, enum dump_file_index, dump_file_tbl,
2956         open_dump_file, close_dump_file, rest_of_decl_compilation,
2957         rest_of_type_compilation, rest_of_handle_final,
2958         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
2959         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
2960         rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
2961         rest_of_handle_regrename, rest_of_handle_reorder_blocks,
2962         rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
2963         rest_of_handle_tracer, rest_of_handle_if_conversion,
2964         rest_of_handle_if_after_combine, rest_of_handle_web,
2965         rest_of_handle_branch_prob,
2966         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
2967         rest_of_handle_addressof, rest_of_handle_sibling_calls,
2968         rest_of_handle_jump_bypass, rest_of_handle_inlining,
2969         rest_of_handle_null_pointer, rest_of_handle_combine,
2970         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
2971         rest_of_handle_gcse, rest_of_handle_loop_optimize,
2972         rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
2973         (decode_d_option): Use enable_rtl_dump_file.
2974         (compile_file, finalize, do_compile): Move profile+combine+graph
2975         cleanup to finish_optimization_passes.
2976         * toplev.h (init_optimization_passes, finish_optimization_passes,
2977         enable_rtl_dump_file): Declare.
2978
2979 2004-02-27  Eric Botcazou  <ebotcazou@act-europe.fr>
2980             Roger Sayle  <roger@eyesopen.com>
2981
2982         * fold-const.c (fold): Revert 2004-02-25 change.  Use the original
2983         operands to build a tree with swapped operands.
2984         * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
2985         'unsignedp' predicate to specify the signedness.
2986
2987 2004-02-27  Kazu Hirata  <kazu@cs.umass.edu>
2988
2989         * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
2990         expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
2991         params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
2992         comment typos and formatting.  Follow spelling conventions.
2993
2994 2004-02-26  Aldy Hernandez  <aldyh@redhat.com>
2995
2996         * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
2997         fix_truncsfsi2.
2998
2999         * config/rs6000/spe.md: Delete spe_efsctuiz.
3000         Add spe_fixuns_truncsfsi2.
3001         Add spe_fix_truncsfsi2.
3002
3003 2004-02-26  Eric Christopher  <echristo@redhat.com>
3004
3005         * c-lex.c (c_lex_string_translate): New variable.
3006         (lex_string): Use to determine string translation.
3007         * c-pragma.h: Prototype.
3008         * c-parse.in (start_string_translation): New. Set above.
3009         (stop_string_translation): Ditto.
3010         (attribute, attribute_list, asm_def, asm_stmt,
3011         asm_operand): Use above functions.
3012         * cp/parser.c (cp_parser_declaration): Translate strings
3013         unless token is RID_EXTERN. Set c_lex_string_translate
3014         for recursive use.
3015         (cp_parser_asm_definition): Only translate argument strings
3016         to asms.
3017         (cp_parser_asm_operand_list): Ditto.
3018         (cp_parser_attribute_list): Do not translate attribute strings.
3019
3020 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3021
3022         * stmt.c (expand_start_case_dummy): Remove.
3023         * tree.h: Remove the corresponding prototype.
3024
3025 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3026
3027         * builtins.c (apply_args_register_offset): Remove.
3028         * tree.h: Remove the corresponding prototype.
3029
3030 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3031
3032         * stor-layout.c (is_pending_size): Remove.
3033         * tree.h: Remove the corresponding prototype.
3034
3035 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3036
3037         * recog.c (validate_replace_src): Remove.
3038         * recog.h: Remove the corresponding prototype.
3039
3040 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3041
3042         * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
3043         MAYBE_REG_PARM_STACK_SPACE.
3044         * function.c: Likewise.
3045         * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
3046         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3047         * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
3048         (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3049
3050 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3051
3052         * c-decl.c (c_expand_deferred_function): Remove.
3053         * c-tree.h: Remove the corresponding prototype.
3054
3055 2004-02-26  Kazu Hirata  <kazu@cs.umass.edu>
3056
3057         * postreload.c (reload_cse_move2add): Generate just a PLUS
3058         instead of an entire SET.
3059
3060 2004-02-26  Jan Hubicka  <jh@suse.cz>
3061
3062         * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
3063         /pentium4m.
3064         * i386.c (override_options): Add support for new CPUs.
3065         * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
3066         (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
3067         constants.
3068         * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
3069
3070 2004-02-26  Bob Wilson  <bob.wilson@acm.org>
3071
3072         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
3073
3074 2004-02-26  Eric Botcazou  <ebotcazou@act-europe.fr>
3075
3076         * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
3077         (sparc_emit_fixunsdi): New prototype.
3078         * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
3079         (sparc_emit_fixunsdi): New function.
3080         * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
3081         operand 1.  Pass SFmode to sparc_emit_floatunsdi.
3082         (floatunsdidf2): Use 'general_operand' for operand 1.  Pass DFmode
3083         to sparc_emit_floatunsdi.
3084         (fixuns_truncsfdi2): New expander.
3085         (fixuns_truncdfdi2): Likewise.
3086
3087 2004-02-26  Alan Modra  <amodra@bigpond.net.au>
3088
3089         * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
3090         unless HAVE_cc0.
3091
3092 2004-02-25  Richard Henderson  <rth@redhat.com>
3093
3094         * explow.c (force_reg): Call mark_reg_pointer as appropriate.
3095         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
3096         use (op0-op1) == 0 if op0 is a pointer.
3097         * config/alpha/alpha.md (cmpdi): Use some_operand.
3098         (three comparison combine splits): Remove.
3099
3100 2004-02-25  Richard Henderson  <rth@redhat.com>
3101
3102         PR c/12794
3103         * c-common.c (handle_alias_attribute): Reject the attribute if
3104         current_function_decl is set.
3105
3106 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
3107
3108         * config.gcc: Add comment describing extra_gcc_objs.
3109         i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
3110         * configure.ac (extra_gcc_objs): New substitution variable.
3111         (host_extra_gcc_objs): Don't substitute.
3112         * configure: Regenerate.
3113         * Makefile.in: Use extra_gcc_objs.
3114
3115 2004-02-25  Kelley Cook  <kcook@gcc.gnu.org>
3116
3117         * doc/contrib.texi: Add an entry for myself.
3118
3119 2004-02-25  Jan Hubicka  <jh@suse.cz>
3120
3121         * basic-block.h (make_eh_edge, break_superblocks): Declare.
3122         * cfgbuild.c (make_eh_edge):  Make global.
3123         * cfglayout.c (break_superblocks): Likewise; fix memory leak.
3124         * except.c (build_post_landing_pads, connect_post_landing_pads,
3125         dw2_build_landing_pads, sjlj_emit_function_enter,
3126         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3127         sjlj_build_landing_pads): Update CFG.
3128         (emit_to_new_bb_before): New function.
3129         (finish_eh_generation): Do not rebuild the CFG.
3130
3131 2004-02-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3132
3133         * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
3134         target_cpu_default defines.
3135         * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
3136         * pa.h (TARGET_DEFAULT): Likewise.
3137
3138 2004-02-25  Eric Botcazou  <ebotcazou@act-europe.fr>
3139
3140         * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
3141         comparisons with regard to signedness.
3142
3143 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
3144
3145         * arm.c (thumb_legitimize_address): New function.
3146         * arm-protos.h: Prototype it.
3147         * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
3148         (LEGITIMIZE_ADDRESS): Use it.
3149
3150 2004-02-25  J"orn Rennecke <joern.rennecke@superh.com>
3151
3152         * reload1.c (reload): Only spill eliminable register with multiple
3153         adjacent elimination alternatives if all alternatives fail.
3154
3155 2004-02-25  Richard Earnshaw  <rearnsha@arm.com>
3156
3157         * arm.c (arm_legitimate_index_p): For QImode the range of an offset
3158         is -4095...+4095 inclusive.
3159
3160 2004-02-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
3161
3162         * doc/install.texi (sparc-sun-solaris2* specific notes): Document
3163         the bootstrap failure with Sun CC 5.4 and 5.5.
3164
3165 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
3166
3167         * cse.c (cse_change_cc_mode_insns): Stop at any instruction
3168         which modifies NEWREG.
3169         (cse_condition_code_reg): Update the mode of CC_REG in
3170         CC_SRC_INSN on our own.
3171
3172 2004-02-24  Michael Matz  <matz@suse.de>
3173
3174         * config/i386/i386.c (ix86_comp_type_attributes): Check for
3175         regparm attributes.
3176
3177 2004-02-24  Richard Henderson  <rth@redhat.com>
3178
3179         * toplev.c (dump_file_tbl): Rename from dump_file.
3180         * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
3181         cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
3182         config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
3183         config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
3184         loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
3185         ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
3186         toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
3187         s/rtl_dump_file/dump_file/g.
3188
3189 2004-02-24  Aldy Hernandez  <aldyh@redhat.com>
3190
3191         * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
3192         (spe_fixuns_truncsfsi2): Delete.
3193
3194         * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
3195         (fixuns_truncsfsi2): Delete.
3196
3197 2004-02-24  Josef Zlomek  <zlomekj@suse.cz>
3198
3199         PR/14240
3200         * rtlanal.c (replace_label): Fix replacing labels in constant pool.
3201
3202 2004-02-24  Geoffrey Keating  <geoffk@apple.com>
3203
3204         * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
3205
3206 2004-02-24  Jason Merrill  <jason@redhat.com>
3207
3208         * tree.c (check_qualified_type): New fn.
3209         (get_qualified_type): Use it.  If type already has the desired
3210         quals, just return it.
3211         * tree.h: Declare it.
3212
3213 2003-02-24  Sanjiv Kumar Gupta  <sanjivg@noida.hcltech.com>
3214
3215         * target-def.h (TARGET_SCHED_INIT_GLOBAL,
3216         TARGET_SCHED_FINISH_GLOBAL): New macros.
3217
3218         * target.h (md_init_global, md_finish_global): Function
3219         declarations corresponding to new target macros.
3220
3221         * haifa-sched.c (sched_init, sched_finish): Allow target to
3222         call the new schedular hooks.
3223
3224         * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
3225         call to update_life_info.
3226
3227         * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
3228         flag_schedule_insns for SH4.
3229
3230         * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
3231         find_set_regmode_weight, find_insn_regmode_weight,
3232         find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
3233         sh_variable_issue, high_pressure, ready_reorder,
3234         rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
3235         functions used to throttle the insn movement in first
3236         scheduling pass for SH.
3237
3238         * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
3239         TARGET_SCHED_FINISH_GLOBAL.
3240
3241 2004-02-24  Alexandre Oliva  <aoliva@redhat.com>
3242
3243         Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
3244         2004-02-05  Alexandre Oliva  <aoliva@redhat.com>
3245         * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
3246         symbols in sections named by the user.
3247         2004-01-30  Alexandre Oliva  <aoliva@redhat.com>
3248         * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
3249         2004-01-27  Alexandre Oliva  <aoliva@redhat.com>
3250         * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
3251         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
3252         the above.
3253         2004-01-20  Alexandre Oliva  <aoliva@redhat.com>
3254         * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
3255         one more pseudo to further improve code generation.
3256         2004-01-19  Alexandre Oliva  <aoliva@redhat.com>
3257         * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
3258         inside UNSPEC.
3259         2004-01-16  Alexandre Oliva  <aoliva@redhat.com>
3260         * config/frv/frv.c (frv_legitimate_address_p): Added
3261         allow_double_reg_p argument.  Adjust all callers.  Use it to
3262         decide whether to enable double-register indirect addressing.
3263         (frv_funcdesc_alias_set): Remove.
3264         (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
3265         register.  Emit movdi_ldd.
3266         (ldd_address_operand): New.
3267         * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
3268         * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
3269         (PREDICATE_CODES): Add ldd_address_operand.
3270         * config/frv/frv.md (movdi_ldd): New.
3271         (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
3272         intermediate computations if possible.
3273         (symGOTOFF2reg_i): Fix harmless typo.
3274         2003-12-18  Alexandre Oliva  <aoliva@redhat.com>
3275         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
3276         relocated p_vaddr to vaddr type.
3277         * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
3278         * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
3279         (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
3280         MEM, or use a funcdesc alias set.  Use regular move instead of
3281         ldd.
3282         (dbl_memory_one_insn_operand): Recognize function descriptors by
3283         type or by alias set, and don't split them.
3284         * config/frv/frv.md (call, call_value): Never use call_internal
3285         for fdpic.
3286         (call_internal, call_value_internal): Never match for FDPIC.
3287         (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
3288         call_value_fdpicsi): Require FDPIC.
3289         (ldd): Removed.
3290         2003-12-17  Alexandre Oliva  <aoliva@redhat.com>
3291         * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
3292         * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
3293         (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
3294         FDPIC.  Compute data base address.
3295         * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
3296         before the other self-specs are processed.
3297         * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
3298         Build with -fPIC.
3299         2003-12-15  Alexandre Oliva  <aoliva@redhat.com>
3300         * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
3301         inhibit_libc is defined.
3302         2003-12-12  Alexandre Oliva  <aoliva@redhat.com>
3303         * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
3304         __FRV_FDPIC__.
3305         (__RELOC_POINTER): Define.
3306         (_Unwind_IteratePhdrCallback): Use it.
3307         * config/frv/frv.h (Twrite): Define.
3308         (TRANSFER_FROM_TRAMPOLINE): Use it.
3309         * config/frv/linux.h (INVOKE__main): Undefine.
3310         (Twrite): Override.
3311         2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
3312         * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
3313         (-mlibrary-pic): Emphasize that this option generates EABI code.
3314         (-mcpu): Add fr550.
3315         (-mpack): Remove.
3316         2003-11-30  Alexandre Oliva  <aoliva@redhat.com>
3317         * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
3318         and CONSTs in FDPIC mode.
3319         * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
3320         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
3321         * config/frv/frv.c (move_source_operand): Don't accept symbolic
3322         constants.
3323         * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
3324         rather than 'i' constraint for the 2-instruction alternative.
3325         (*movsi_2word): New, incorporating existing int_2word_operand splitter.
3326         2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
3327         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
3328         EXTRA_CONSTRAINT_FOR_Y.
3329         (EXTRA_CONSTRAINT): Remove handling of 'Y'.
3330         * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
3331         (addsi3): Change 'Y' constraint to 'Q'.
3332         2003-11-27  Richard Sandiford  <rsandifo@redhat.com>
3333         * reload.c (CONST_POOL_OK_P): New macro.
3334         (find_reloads): Use it to decide whether a constant can be forced
3335         into memory.
3336         * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
3337         constant satisfies got12_operand.
3338         (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
3339         (frv_legitimate_address_p): Check for valid unspec offsets using
3340         got12_operand rather than frv_legitimate_fdpic_operand_p.
3341         (frv_legitimate_fdpic_operand_p): Delete.
3342         (frv_emit_movsi): Abort if we try to use the FDPIC register during
3343         or after reload.
3344         (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
3345         TARGET_FDPIC.
3346         * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
3347         2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
3348         * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
3349         (frv_fdpic_fptr_operand): Don't declare here.
3350         * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
3351         rather than fdpic_got12_operand.
3352         (PREDICATE_CODES): Remove symbolic_operand entry.  Add entries for
3353         got12_operand and const_unspec_operand.
3354         * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
3355         (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
3356         (symbolic_operand): Remove.
3357         (const_unspec_operand): New predicate.
3358         * config/frv/frv.md (*movsi_got): Use got12_operand.
3359         (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
3360         2003-11-18  Richard Sandiford  <rsandifo@redhat.com>
3361         * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
3362         * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
3363         * config/frv/frv.c (frv_unspec): New structure.
3364         (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
3365         (frv_print_operand_memory_reference): Use frv_const_unspec_p to
3366         validate CONST indices.  Use frv_output_const_unspec to print them.
3367         (frv_print_operand): Update call to unspec_got_name.  Use
3368         frv_output_const_unspec to print constant unspecs.
3369         (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
3370         Reject UNSPECs otherwise.
3371         (unspec_got_name): Take the relocation number as argument, not an
3372         rtx containing it.
3373         (frv_output_addr_const_extra): Remove, replacing with...
3374         (frv_output_const_unspec): ...this new function.
3375         (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
3376         (gpr_or_int12_operand): Use fdpic_got12_operand.
3377         (dbl_memory_one_insn_operand): Likewise.
3378         (fdpic_got12_operand): Use frv_const_unspec_p.
3379         (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
3380         are already legitimate.  Use frv_small_data_reloc_p when deciding
3381         whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
3382         2003-11-18  Alexandre Oliva  <aoliva@redhat.com>
3383         * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
3384         * config/frv/libgcc-frv.ver: ... frv-specific symbols.  New file.
3385         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
3386         label, for real this time.
3387         * config/frv/frv.c (frv_local_funcdesc_p): Update to new
3388         representation of visibility.
3389         (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
3390         such.
3391         2003-11-17  Richard Sandiford  <rsandifo@redhat.com>
3392         * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
3393         (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
3394         * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
3395         it was explicitly disabled.
3396         (frv_stack_info): There is no need to save the link register in every
3397         frame unless TARGET_LINKED_FP is true.
3398         (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
3399         frame pointer if the stack pointer might change value.
3400         (frv_return_addr_rtx): Check and process "count" argument.
3401         2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
3402         * config/frv/frv-protos.h (frv_legitimize_address): Remove.
3403         (frv_find_base_term): Declare.
3404         * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
3405         (FIND_BASE_TERM): Define.
3406         (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
3407         small_data_register_operand, small_data_symbolic_operand.  Add
3408         symbolic_operand.
3409         * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
3410         (frv_print_operand_memory_reference, output_move_single): Remove
3411         special handling for unlegitimized sdata addresses.
3412         (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
3413         and symbolic addresses.
3414         (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
3415         (frv_find_base_term): New function.
3416         (int_2word_operand): Check specifically for symbolic address constants.
3417         (pic_register_operand, pic_symbolic_operand): Delete.
3418         (small_data_register_operand, small_data_symbolic_operand): Delete.
3419         (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
3420         Allow UNSPEC_GOT constants if !TARGET_FDPIC.
3421         (move_source_operand): Only accept CONSTs if they're a two-insn
3422         symbolic constant.
3423         (fdpic_got12_operand): Don't require TARGET_FDPIC.
3424         (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
3425         using gen_symGOTOFF2reg*.
3426         (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
3427         (frv_rtx_costs): Give all MEM addresses a cost of 0.  Give MEMs
3428         themselves a cost of 3 insns.
3429         * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
3430         Change predicate to symbolic_operand.
3431         (*movsi_high_got, *movsi_lo_sum_got): Likewise.
3432         (*movsi_lda_sdata): Delete.
3433         (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
3434         2003-11-05  Alexandre Oliva  <aoliva@redhat.com>
3435         * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
3436         frv-*-*linux*.
3437         * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
3438         label.
3439         * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
3440         -multilib-library-pic.
3441         (LINK_SPEC): Add -z text for -mfdpic.
3442         * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
3443         * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
3444         * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
3445         Override.
3446         (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
3447         FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
3448         * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
3449         crtstuff-generated files.
3450         2003-10-31  Alexandre Oliva  <aoliva@redhat.com>
3451         * config.gcc: Add frv-*-*linux*.
3452         * config/frv/linux.h, config/frv/t-linux: New.
3453         2003-10-06  Alexandre Oliva  <aoliva@redhat.com>
3454         * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
3455         when -mfdpic even if a linker script is explicitly listed.
3456         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
3457         * config/frv/frv.c (frv_override_options): Clear asm_out
3458         unaligned_op for SImode on FDPIC.
3459         (frv_emit_movsi): Use compute_reloc_for_constant to compute the
3460         argument passed to decl_readonly_section.
3461         (frv_assemble_integer): Revert 2003-09-30's change, but make the
3462         whole block run with FDPIC even with -fno-PIC.
3463         2003-10-02  Alexandre Oliva  <aoliva@redhat.com>
3464         * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
3465         symbol or label plus offset to memory.
3466         (frv_emit_movsi): Emit GPREL only if -mgprel-ro.  Emit 32-bit
3467         GOTOFF and GPREL for LABEL_REF.
3468         * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
3469         -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
3470         (MASK_GPREL_RO, TARGET_GPREL_RO): New.
3471         (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
3472         * doc/invoke.texi: Document them.
3473         2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
3474         * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
3475         (frv_splittable_got_operand): Removed.
3476         * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
3477         LO_SUM.  Add comments.
3478         (frv_override_options): Moved enabling of FDPIC to
3479         DRIVER_SELF_SPECS.  Don't enable MASK_DWORD.
3480         (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
3481         (frv_legitimize_fdpic_address): Don't duplicate logic in
3482         frv_emit_movsi.
3483         (frv_gen_GPsym2reg): New.
3484         (unspec_got_name): Added gprel.
3485         (frv_expand_fdpic_call): Add support for inlining PLTs.
3486         (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
3487         (gpr_or_int12_operand): Added GPREL12.
3488         (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
3489         (small_data_symbolic_operand): Fail if FDPIC.
3490         (fdpic_splittable_got_operand): Removed.
3491         (fdpic_got12_operand): Added GPREL12.
3492         (frv_emit_movsi): Reorganize to avoid duplication.  Emit GPREL
3493         when appropriate.  Fix sdata GOTOFF.
3494         (frv_legitimate_constant_p): Require legitimate PIC operand for
3495         FDPIC with pic, but only a legitimate fdpic operand for non-pic.
3496         (frv_assemble_integer): Move FDPIC funcdesc handling out of
3497         flag_pic case.
3498         (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
3499         frv_assemble_integer fails.
3500         * config/frv/frv.h (DRIVER_SELF_SPECS): New.
3501         (SUBTARGET_DRIVER_SELF_SPECS): New.
3502         (ASM_SPEC): Don't pass -mno-fdpic.
3503         (LINK_SPEC): Pass -melf32frvfd for FDPIC.
3504         (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
3505         (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
3506         -multilib-library-pic.
3507         (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
3508         condexec_si_media_operator, condexec_sf_add_operator and
3509         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
3510         and condexec_sf_unary_operator.
3511         * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
3512         New.
3513         (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
3514         movsi_internal.  Give them internal names.  movsi_got has type
3515         int.
3516         (fdpic got splitters): Remove.
3517         (symGPREL2reg, symGPREL2reg_hilo): New.
3518         * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
3519         to -mlibrary-pic.  Map -multilib-library-pic to it.
3520         * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
3521         Document.
3522         2003-09-28  Alexandre Oliva  <aoliva@redhat.com>
3523         * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
3524         (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
3525         (frv_cannot_force_const_mem): New function.
3526         (const_small_data_p, plus_small_data_p): Update comments on sdata
3527         on FDPIC.
3528         (frv_override_options): Set flag_pie for FDPIC too.
3529         (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
3530         call-saved registers on FDPIC.
3531         (frv_stack_info): Don't preserve the PIC register on FDPIC, and
3532         don't force LR to be preserved.
3533         (frv_expand_prologue): Likewise.
3534         (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
3535         (frv_frame_pointer_required): Don't force it just because the
3536         FDPIC register is used.
3537         (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
3538         operand only if !condexec_p.
3539         (frv_legitimize_address): Return the FDPIC-legitimized address.
3540         Don't match small data here on FDPIC.
3541         (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
3542         symbols.  Use TRUE/FALSE instead of 1/0.
3543         (frv_local_funcdesc_p): New.
3544         (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
3545         immediates when possible.
3546         (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
3547         (dbl_memory_one_insn_operand): Accept addresses that add a REG and
3548         an UNSPEC_GOT.
3549         (frv_emit_movsi): Handle FDPIC before small data.  Use GOTOFF and
3550         12-bit immediates when possible.
3551         (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
3552         are not legitimate pic operands.
3553         (frv_in_small_data_p): Re-enable for FDPIC.
3554         * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
3555         (FRV_GLOBAL_P): Removed.
3556         * config/frv/frv.md: Add modes to CONSTs.
3557         (movsi_got): New.
3558         (movsi_lo_sum_got): Use separate matches instead of match_dup.
3559         (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
3560         (fdpic splittable operations): Match on flag_pic != 1.
3561         2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
3562         * config/frv/frv.c (frv_asm_out_constructor,
3563         frv_asm_out_destructor): Pass to frv_assemble_integer the size in
3564         bytes, not bits.
3565         2003-09-19  Alexandre Oliva  <aoliva@redhat.com>
3566         * config/frv/frv.c (frv_assemble_integer): Reject complex
3567         expressions referencing function SYMBOL_REFs.
3568         * config/frv/frv.c (frv_function_symbol_referenced_p): New.
3569         (move_source_operand): Reject CONSTs that reference function
3570         SYMBOL_REFs on FDPIC.
3571         (frv_emit_movsi): If we get such a CONST, break it up.
3572         * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
3573         (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
3574         * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
3575         MEM.
3576         (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
3577         (frv_trampoline_size): Increase for FDPIC.
3578         * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
3579         (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
3580         * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
3581         Disable use of GOTOFF for now.
3582         (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
3583         Disable use of small data in FDPIC for now.
3584         (frv_asm_output_mi_thunk): Implement for FDPIC.
3585         * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
3586         * config/frv/frv.c (frv_asm_out_constructor): Use
3587         frv_assemble_integer for FDPIC pointers.
3588         (frv_asm_out_destructor): Likewise.
3589         * config/frv/frv.md (ldd): Fix order of operands.  Use
3590         address_operand for input.
3591         2003-09-18  DJ Delorie  <dj@redhat.com>
3592         * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
3593         (unspec_got_name): Correct typo.
3594         (frv_emit_movsi): Pre-expand splittable GOTs.
3595         (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
3596         * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
3597         (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
3598         * config/frv/t-frv: Add -mfdpic multilibs.
3599         * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
3600         (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
3601         * config/frv/frv.c (frv_override_options): -mfdpic assumes
3602         flag_pic, default to 32-bit pics, require DWORD ops.
3603         (frv_override_options): Add W and Z constraints.
3604         (frv_expand_prologue): No pic prologue for -mfdpic.
3605         (frv_asm_output_mi_thunk): Support -mfdpic (soon).
3606         (frv_print_operand_memory_reference): Handle GOT constants.
3607         (frv_legitimate_address_p): Allow GOT constants.
3608         (frv_legitimize_address): Handle GOT addresses too.
3609         (frv_legitimate_fdpic_operand_p): New.
3610         (frv_legitimize_fdpic_address): New.
3611         (unspec_got_name): New.
3612         (frv_output_addr_const_extra): New.
3613         (frv_expand_fdpic_call): New.
3614         (frv_fdpic_fptr_operand): New.
3615         (gpr_or_int12_operand): Handle GOT operands.
3616         (int_2word_operand): Handle GOT operands.
3617         (fdpic_operand): New.
3618         (fdpic_splittable_got_operand): New.
3619         (fdpic_got12_operand): New.
3620         (frv_emit_movsi): Handle GOT operands.
3621         (frv_assemble_integer): -mfdpic doesn't use rofixups.
3622         (frv_print_operand): Support 'g' code for GOT operands.
3623         * config/frv/frv-protos.h: Add prototypes as needed.
3624         * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
3625         R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
3626         R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
3627         R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
3628         R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
3629         R_FRV_GOTOFFLO): New.
3630         (movsi_high_got, movsi_lo_sum_got): New.
3631         (*movsi_pic): Don't use this splitter for -mfdpic.
3632         (addsi3): Allow GOT references also.
3633         (call, call_value): Handle -mfdpic separately.
3634         (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
3635         call_value_fdpicsi): New.
3636         (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
3637         symGOTOFF2reg_i): New.
3638         * config/frv/frv.h (MASK_FDPIC): New.
3639         (TARGET_FDPIC): New.
3640         (TARGET_SWITCHES): Add -mfdpic.
3641         (FDPIC_FPTR_REGNO): New.
3642         (FDPIC_REGNO): New.
3643         (OUR_FDPIC_REG): New.
3644         (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
3645         FDPIC_CALL_REGS.
3646         (REG_CLASS_NAMES): Likewise.
3647         (REG_CLASS_CONTENTS): Likewise.
3648         (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
3649         (EXTRA_CONSTRAINT): Add it here.
3650         (FRV_GLOBAL_P): New.
3651         (OUTPUT_ADDR_CONST_EXTRA): New.
3652
3653 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
3654
3655         * config/sparc/sparc.h: Remove commented-out definitions of
3656         TARGET_EDOM and GEN_ERRNO_RTX.
3657
3658 2004-02-24  Kazu Hirata  <kazu@cs.umass.edu>
3659
3660         * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
3661         df_analyse with df_analyze.
3662
3663 2004-02-24  Alan Modra  <amodra@bigpond.net.au>
3664
3665         * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
3666         beginning of block.
3667
3668 2004-02-23  James E Wilson  <wilson@specifixinc.com>
3669
3670         * calls.c (precompute_arguments): Update comment.
3671
3672 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3673
3674         * et-forest.c: Replace et_occurences with et_occurrences.
3675
3676 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3677
3678         * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
3679         with iv_analyze.
3680
3681 2004-02-23  Kelley Cook  <kcook@gcc.gnu.org>
3682
3683         * config/i386/i386.c: Rename pni to sse3.
3684         * config/i386/i386.h: Likewise.
3685         * config/i386/i386.md: Likewise.
3686         * config/i386/pmmintrin.h: Likewise.
3687         * doc/extend.texi: Likewise.
3688         * doc/invoke.texi: Likewise.
3689
3690 2004-02-23  Zack Weinberg  <zack@codesourcery.com>
3691             Kazu Hirata  <kazu@cs.umass.edu>
3692
3693         Remove -fwritable-strings.
3694         * c-common.c (fix_string_type): Don't check
3695         flag_writable_strings.
3696         (fix_string_type): Likewise.
3697         * c-opts.c (set_std_c89): Don't initialize
3698         flag_writable_strings.
3699         (set_std_c99): Likewise.
3700         * common.opt (fwritable-strings): Remove.
3701         * flags.h: Remove the external declaration of
3702         flag_writable_strings.
3703         * opts.c (common_handle_option) <OPT_fwritable_strings>:
3704         Remove.
3705         * toplev.c (flag_writable_strings): Remove.
3706         (f_options): Remove an entry for writable-strings.
3707         * varasm.c (const_hash_1) <STRING_CST>: Don't check
3708         flag_writable_strings.
3709         (compare_constant) <STRING_CST>: Likewise.
3710         (build_constant_desc): Likewise.
3711         * config/darwin.c (machopic_select_section): Likewise.
3712         * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
3713         * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
3714         * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
3715         * config/mips/mips.c (mips_select_section): Likewise.
3716         (mips_encode_section_info): Likewise.
3717         * config/pa/pa.c (pa_select_section): Likewise.
3718         * config/pa/pa.h (TEXT_SPACE_P): Likewise.
3719         * config/v850/v850.c (v850_select_section): Likewise.
3720         * doc/invoke.texi (-fwritable-strings): Remove.
3721         (-fno-const-strings): Don't mention -fwritable-strings.
3722         * doc/trouble.texi: Don't mention -fwritable-strings.
3723
3724 2003-02-23  Nathanael Nerode  <neroden@gcc.gnu.org>
3725
3726         * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
3727
3728 2004-02-23  Dale Johannesen  <dalej@apple.com>
3729
3730         * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
3731         (movdf_hardfloat64):  Ditto.
3732         (movdf_softfloat64):  Ditto.
3733
3734 2004-02-23  Fariborz Jahanian <fjahanian@apple.com>
3735         * config/rs6000/rs6000.c (function_arg): call to
3736         rs6000_mixed_function_arg for DFmode moved to allow
3737         normal DFmode incoming register assignment.
3738
3739 2004-02-23  Dale Johannesen  <dalej@apple.com>
3740
3741         * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
3742         (movdf_hardfloat64):  Ditto.
3743
3744 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3745
3746         * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
3747         config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
3748         copyright.
3749
3750 2004-02-23  Andrew Pinski  <pinskia@physics.uc.edu>
3751
3752         PR c/14156
3753         * c-typeck.c (c_expand_return): Change check for VAR_DECL
3754         to use DECL_P instead.
3755
3756         * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
3757         * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
3758
3759 2004-02-23  Kazu Hirata  <kazu@cs.umass.edu>
3760
3761         * Makefile.in (opts.o): Depend on target.h.
3762         * opts.c (decode_options): Use targetm.default_short_enums
3763         instead of DEFAULT_SHORT_ENUMS.
3764         * system.h (DEFAULT_SHORT_ENUMS): Poison.
3765         * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
3766         (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
3767         * target.h (gcc_target): Add default_short_enums.
3768         * config/cris/cris.h: Remove a comment about
3769         DEFAULT_SHORT_ENUMS.
3770         * config/ip2k/ip2k.h: Likewise.
3771         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
3772         TARGET_DEFAULT_SHORT_ENUMS.  Update the description.
3773
3774 2004-02-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
3775             Falk Hueffner  <falk@debian.org>
3776
3777         PR c/14188
3778         * builtins.c (expand_builtin_va_arg): Emit an informative message
3779         if a trap is generated.
3780         * c-typeck.c (build_function_call): Likewise.
3781
3782 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
3783
3784         * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
3785         fopen.
3786         * libgcov.c: Include sys/stat.h.
3787         * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
3788         * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
3789         * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
3790         * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
3791
3792 2004-02-22  Kazu Hirata  <kazu@cs.umass.edu>
3793
3794         * reorg.c: Remove comments about dead ports.
3795
3796 2004-02-22  Christopher Faylor  <cgf@redhat.com>
3797
3798         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
3799         extra host object file when targetting cygwin rather than generic
3800         object files.
3801
3802 2004-02-22  Josef Zlomek  <zlomekj@suse.cz>
3803
3804         Merge from tree-ssa:
3805         2003-11-20  Richard Henderson  <rth@redhat.com>
3806
3807                 * tree-inline.c (insert_decl_map): New.
3808                 (remap_decl, remap_type, remap_block, copy_body_r,
3809                 initialize_inlined_parameters, declare_return_variable,
3810                 remap_save_expr): Use it.
3811
3812         * function.c (copy_body_r): Add mapping from id->ret_label to
3813         id->ret_label.  Revert test for ret_label.
3814
3815 2004-02-22  Jakub Jelinek  <jakub@redhat.com>
3816
3817         * genoutput.c (process_template): Strip trailing whitespace in @
3818         templates and issue a warning if there was any.
3819
3820 2004-02-21  Christopher Faylor  <cgf@redhat.com>
3821
3822         * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
3823         object file when targetting cygwin.
3824         * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
3825         overridden by top-level Makefile.
3826
3827 2004-02-21  Roger Sayle  <roger@eyesopen.com>
3828
3829         * config/i386/i386.c (standard_80387_constant_p): Also prefer
3830         the x87's load constant instructions when optimizing for size.
3831
3832 2004-02-21  Kazu Hirata  <kazu@cs.umass.edu>
3833
3834         * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
3835         * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
3836         * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
3837         * fold-const.c: Likewise.
3838         * simplify-rtx.c: Likewise.
3839
3840 2004-02-21  Alan Modra  <amodra@bigpond.net.au>
3841
3842         * combine.c (can_combine_p): Don't ignore SETs marked with
3843         REG_EH_REGION notes.
3844         (try_combine): When attemting to fix unrecognized insns, don't
3845         split a PARALLEL that contains the original i2.
3846
3847 2004-02-21  Ziemowit Laski  <zlaski@apple.com>
3848
3849         * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
3850         SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
3851         * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
3852         * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
3853         (vector, pixel, bool): #define to __vector, __pixel and __bool.
3854         (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
3855         portion of header.
3856         (__altivec_link_error_invalid_argument): Remove prototype; will use
3857         __builtin_altivec_compiletime_error("vec_*") instead.
3858         (vec_*): Fix/complete set of available operation overloads given the
3859         existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
3860         cv-correctness of pointer arguments; in C, always check for correct
3861         argument types before macro expansion.
3862         * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
3863         defining Darwin/PowerPC-specific '-f[no-]altivec' and
3864         '-W[no-]altivec-long-deprecated' switches.
3865         * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
3866         '__vector', '__pixel' and '__bool' macros using
3867         '__attribute__((altivec(...)))' types.
3868         * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
3869         bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
3870         bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
3871         New type nodes.
3872         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
3873         handling '-W[no-]altivec-long-deprecated'.
3874         (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
3875         (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
3876         altivec_expand_dst_builtin): Remove casts from integer literals.
3877         (altivec_expand_builtin): Likewise; handle expansion of new
3878         '__builtin_altivec_compiletime_error' function.
3879         (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
3880         types, and make them distinct from other vector types; register
3881         '__builtin_altivec_compiletime_error' function.
3882         (print_operand): For 'P', print a full target register name instead of
3883         merely its number.
3884         (rs6000_attribute_table): Add "altivec" attribute.
3885         (rs6000_handle_altivec_attribute): New function.
3886         * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
3887         '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
3888         maps to).
3889         (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
3890         declare.
3891         (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
3892
3893 2004-02-20  James E Wilson  <wilson@specifixinc.com>
3894
3895         * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
3896         check.
3897         (shift_mix4left+2): Delete redundant pattern.
3898
3899 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3900
3901         * alias.c (OUTGOING_REGNO): Don't define the default.
3902         * builtins.c (OUTGOING_REGNO): Likewise.
3903         (INCOMING_REGNO): Likewise.
3904         (apply_args_register_offset): Always use OUTGOING_REGNO.
3905         * combine.c (OUTGOING_REGNO): Likewise.
3906         * sibcall.c (OUTGOING_REGNO): Likewise.
3907         * defaults.h (INCOMING_REGNO): Provide the default.
3908         (OUTGOING_REGNO): Likewise.
3909
3910 2004-02-21  Jan Hubicka  <jh@suse.cz>
3911
3912         * params.def (max-peeled-insns, max-completely-peeled-insns,
3913         max-once-peeled-insns): Set to 400.
3914
3915 2004-02-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3916
3917         PR c++/12007
3918         * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
3919         are set for parameters before outputing debugging information.
3920
3921 2004-02-20  Falk Hueffner  <falk@debian.org>
3922
3923         PR target/14201
3924         * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
3925         numbers.
3926
3927 2004-02-20  Per Bothner  <per@bothner.com>
3928
3929         * input.h:  Don't #include line-map.h.  It may cause link problems
3930         with undefined linemap_line_start when line-map.h is included but
3931         line-map.o is not linked, as currently happens with gengtype on
3932         compilers that don't support inline.
3933         * toplev.c:  So we do have to explicitly #include line-map.h here.
3934
3935 2004-02-20  Richard Henderson  <rth@redhat.com>
3936
3937         * doc/invoke.texi: Add -Wvariadic-macros.
3938
3939 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3940
3941         * haifa-sched.c (sched_emit_insn): Remove.
3942         * sched-int.h: Remove the corresponding prototype.
3943
3944 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3945
3946         Revert:
3947         2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
3948         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
3949         * system.h (DEFAULT_SHORT_ENUMS): Poison.
3950         * config/cris/cris.h: Remove a comment about
3951         DEFAULT_SHORT_ENUMS.
3952         * config/ip2k/ip2k.h: Likewise.
3953         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
3954
3955 2004-02-20  Mohan Embar  <gnustuff@thisiscool.com>
3956             Tom Tromey  <tromey@redhat.com>
3957
3958         * doc/install.texi: Moved --disable-libgcj and
3959         --with-system-zlib documentation to new section for
3960         Java-specific options.
3961         Added explicit Cross-Compiler-Specific Options subheading.
3962         Added section for Java-specific options.
3963
3964 2004-02-20  Matt Kraai  <kraai@alumni.cmu.edu>
3965
3966         * doc/install.texi (Building the Ada compiler): Remove
3967         example.
3968
3969 2004-02-20  James E Wilson  <wilson@specifixinc.com>
3970
3971         * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
3972
3973 2004-02-20  Kazu Hirata  <kazu@cs.umass.edu>
3974
3975         * gcc.c (process_command): Allow translation of the copyright
3976         symbol but not the rest of the copyright message.
3977         * gcov.c (print_version): Likewise.  Allow translation of the
3978         message about warranty.
3979
3980 2004-02-20  Hans-Peter Nilsson  <hp@axis.com>
3981
3982         * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
3983         predicate.
3984         ("*andsi_clear"): Tweak constraints to not match postincrement.
3985         Adjust the predicate to exclude a volatile memory reference.
3986         ("*andhi_clear"): Ditto.  Rename from "*andhi_clear_signed".
3987         ("*andhi_clear_unsigned"): Remove, non-matching pattern.
3988
3989 2004-02-19  Matt Kraai  <kraai@alumni.cmu.edu>
3990
3991         * move-if-change: Remove.
3992         * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
3993         (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
3994         (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
3995         (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
3996         (s-gtyp-gen, s-iov): Use the top level move-if-change.
3997         * objc/Make-lang.in (objc/objc-parse.y): Likewise.
3998
3999 2004-02-19  James E Wilson  <wilson@specifixinc.com>
4000
4001         * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
4002         for operand2.  Add condition that requires register_operand operand2
4003         before reload.
4004
4005 2004-02-19  Richard Sandiford  <rsandifo@redhat.com>
4006             Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
4007
4008         * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
4009         * config/mips/mips.md: Expand comment above unaligned loads and stores.
4010
4011 2004-02-19  Richard Henderson  <rth@redhat.com>
4012
4013         * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
4014         * tree.c (build0, build1, build2, build3, build4): Split out from...
4015         (build): ... here.  Call them.
4016         * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
4017
4018         * convert.c (convert_to_integer): Remove extra build argument.
4019         * tree-inline.c (expand_call_inline): Likewise.
4020
4021 2004-02-19  Richard Henderson  <rth@redhat.com>
4022
4023         * c-opts.c (warn_variadic_macros): New.
4024         (c_common_handle_option): Set it.
4025         (sanitize_cpp_opts): Copy it to cpp_opts.
4026         * c.opt (Wvariadic-macros): New.
4027         * cpplib.h (struct cpp_options): Add warn_variadic_macros.
4028         * cppinit.c (cpp_create_reader): Initialize it.
4029         * cppmacro.c (parse_params): Check it.
4030
4031 2004-02-19  David Daney <ddaney@avtrex.com>
4032
4033         PR preprocessor/14198
4034         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
4035         builtin_assert ("machine=mips")
4036
4037 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4038
4039         * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4040         * system.h (DEFAULT_SHORT_ENUMS): Poison.
4041         * config/cris/cris.h: Remove a comment about
4042         DEFAULT_SHORT_ENUMS.
4043         * config/ip2k/ip2k.h: Likewise.
4044         * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4045
4046 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
4047
4048         * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
4049         when passing single SFmode quantities in general registers,
4050         put them in the high half.
4051
4052 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
4053
4054         * doc/md.texi (Standard Names): Document additional dependency on
4055         fix pattern.
4056
4057         * optabs.c (ftruncify): Remove.
4058         (expand_fix): Manually inline ftruncify above.
4059         (can_fix_p): Add FIXME note.
4060
4061 2004-02-19  Aldy Hernandez  <aldyh@redhat.com>
4062
4063         * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
4064         spe_fixuns_truncsfsi2.
4065
4066         * config/rs6000/rs6000.md (fixunssfsi2): Rename to
4067         fixuns_truncsfsi2.
4068
4069 2004-02-19  Steve Ellcey  <sje@cup.hp.com>
4070
4071         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
4072         * testsuite/gcc.dg/20040219-1.c: New test.
4073
4074 2004-02-19  Ulrich Weigand  <uweigand@de.ibm.com>
4075
4076         * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
4077         "*subsf3_cconly"): Subtraction is not commutative.
4078
4079 2004-02-19  Zack Weinberg  <zack@codesourcery.com>
4080
4081         * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
4082         (sdbout_symbol): If called before sdbout_init, queue DECL for
4083         later and return.
4084         (sdbout_init): Set sdbout_initialized true, process decls
4085         queued earlier by sdbout_symbol.
4086         (sdbout_finish): Use size_t for index variable.
4087
4088 2004-02-19  Jeff Law  <law@redhat.com>
4089
4090         * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
4091         for unordered comparison codes.
4092
4093 2004-02-19  Ian Lance Taylor  <ian@wasabisystems.com>
4094
4095         * reload1.c (reload): Correct comment.
4096         (scan_paradoxical_subregs): Remove #if 0 and old comment.
4097         * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
4098         register variables are not used by reload.
4099
4100 2004-02-19  Hans-Peter Nilsson  <hp@axis.com>
4101
4102         PR target/14209
4103         * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
4104         constraints to not match postincrement.  Adjust the predicate to
4105         exclude a volatile memory reference.
4106
4107 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4108
4109         * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
4110
4111 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4112
4113         * hooks.c (hook_void_tree_int): Remove.
4114         (hook_void_constcharptr): Likewise.
4115         (hook_int_void_0): Likewise.
4116         * hooks.h: Remove the prototypes for the above three
4117         functions.
4118         * targhooks.c (hook_bool_machine_mode_true): Remove.
4119         * targhooks.h: Remove the prototype for
4120         hook_bool_machine_mode_true.
4121
4122 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4123
4124         * emit-rtl.c (subreg_realpart_p): Remove.
4125         (reorder_insns_with_line_notes): Likewise.
4126         (end_full_sequence): Likewise.
4127         * rtl.h: Remove the prototype for the above functions.
4128
4129 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4130
4131         * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
4132         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
4133         config/iq2000/iq2000.h, config/m32r/m32r.h,
4134         config/pdp11/pdp11.h, config/sparc/sparc.h,
4135         config/xtensa/xtensa.h: Remove commented-out or useless
4136         definitions of CASE_VECTOR_PC_RELATIVE.
4137
4138 2004-02-19  Kazu Hirata  <kazu@cs.umass.edu>
4139
4140         * loop.c (all_sets_invariant_p): Remove.
4141
4142 2004-02-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
4143
4144         PR target/12916
4145         * config/sparc/sparc.h (NPARM_REGS): Delete.
4146         (BASE_RETURN_VALUE_REG): Likewise.
4147         (BASE_OUTGOING_VALUE_REG): Likewise.
4148         (BASE_PASSING_ARG_REG): Likewise.
4149         (BASE_INCOMING_ARG_REG): Likewise.
4150         * config/sparc/sparc.c (sparc_strict_argument_naming): Test
4151         TARGET_ARCH64, not TARGET_V9.
4152         (function_arg_slotno): Dispatch based on the mode class.
4153         Handle vector modes like floating-point modes.
4154         (function_arg_record_value_1): Handle vector types like
4155         floating-point types.
4156         (function_arg_record_value_2): Likewise.
4157         Calculate regno after mode transformation.
4158         (function_arg): Handle vector modes like floating-point modes.
4159         (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
4160         If ARCH64, do not recheck alignment.
4161         (function_arg_pass_by_reference): Reorder the conditions.
4162         (sparc_return_in_memory): Move after function_arg_padding.
4163         Implement calling conventions for vector modes.
4164         (sparc_struct_value_rtx): Move after sparc_return_in_memory.
4165         (function_value): Move scope of 'regbase'.
4166         Implement calling conventions for vector modes.
4167         (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
4168         and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
4169         (sparc_va_arg): Use function_arg_pass_by_reference to test whether
4170         the argument is passed by reference.
4171         (sparc_type_code): Handle vector types.
4172
4173 2004-02-19  Alan Modra  <amodra@bigpond.net.au>
4174
4175         * function.c (assign_parms): When building decl_rtl for
4176         SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
4177
4178 2004-02-19  Olivier Hainque  <hainque@act-europe.fr>
4179
4180         * expr.c (is_aligning_offset): Check if we are aligning the
4181         expressions's address over BIGGEST_ALIGNMENT in bytes, not
4182         in bits.
4183
4184 2003-02-18  Matt Austern  <austern@apple.com>
4185
4186         * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
4187         LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
4188         (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
4189         defined.  Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
4190         spec string.
4191         * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
4192
4193 2004-02-18  Zack Weinberg  <zack@codesourcery.com>
4194
4195         * dwarf2out.c (loclabel_num): Move outside #ifdef
4196         DWARF2_DEBUGGING_INFO and mark with GTY(()).
4197         * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
4198         Mark with GTY(()).
4199         (ia64_hpux_add_extern_decl): Save the decl, not the name string.
4200         Allocate memory with ggc_alloc.  No need to copy anything.
4201         (ia64_hpux_file_end): Update to match.
4202
4203 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
4204
4205         * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
4206         by default.
4207
4208 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
4209
4210         * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
4211         ("divmodtisi3"): Likewise.
4212         ("udivmoddi4", "udivmodtidi3"): Likewise.
4213         ("divmodsi4", "divmoddisi3"): Likewise.
4214         ("udivmodsi4", "udivmoddisi3"): Likewise.
4215         ("udivsi3", "umodsi3"): Likewise.
4216
4217 2004-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
4218
4219         * config/s390/s390.c (s390_mainpool_start): Delete the main pool
4220         placeholder insn when chunkifying the pool.
4221
4222 2004-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4223
4224         * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
4225         generating PIC code.
4226
4227 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4228
4229         * config/h8300/h8300-protos.h: Add a prototype for
4230         h8300_expand_branch.
4231         * config/h8300/h8300.c (h8300_expand_branch): New.
4232         * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
4233         bgtu, beq, bne): Call h8300_expand_branch().
4234
4235 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4236
4237         * config/h8300/h8300-protos.h: Add prototypes for
4238         h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
4239         * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
4240         (h8300_hard_regno_mode_ok): Likewise.
4241         * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
4242         h8300_hard_regno_nregs().
4243         (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
4244
4245 2004-02-18  Per Bothner  <per@bothner.com>
4246
4247         * cpphash.h (struct cpp_buffer):  Restore return_at_eof field.  This
4248         partly reverts my 2003-10-01 change, because we're back to logically
4249         including <command line> inside the main line.
4250         * cpplex.c (_cpp_get_fresh_line):  Check return_at_eof field.
4251         * cppmacro.c (cpp_scan_nooutput):  Set return_at_eof of current buffer.
4252         Fixes PR preprocessor/14103.
4253
4254         * cppfiles.c (_cpp_stack_include):  When appropriate decrement
4255         line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
4256         (cpp_push_include):  Don't need to increment pfile's line field.
4257         * line-map.h (LAST_SOURCE_LINE_LOCATION):  Only decrement by 1.
4258
4259         * c-ppoutput.c (print struct):  New first_time field.
4260         (init_pp_output):  Set print.first_time.
4261         (pp_file_change):  Use print.first_time, rather than MAIN_FILE_P,
4262         which is set also for (say) <command line>.  Clear print.first_time.
4263
4264         * cppfiles.c (struct _cpp_file):  Comment and type for pch field
4265         does not match the code, so fix both.
4266         (should_stack_file):  Inline include_pch_p function.
4267         (include_pch_p):  Remove pointless function.
4268
4269         * cpphash.h (struct cpp_buffer):  Remove unused search_cached field.
4270
4271 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4272
4273         * config/h8300/h8300.md (four define_peephole2's): Use
4274         h8300_regs_ok_for_stm().
4275
4276 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4277
4278         * config/h8300/h8300-protos.h: Update the prototype for
4279         expand_a_rotate().
4280         * config/h8300/h8300.c (expand_a_rotate): Remove the first
4281         argument.
4282         * config/h8300/h8300.md: Update all callers.
4283
4284 2004-02-18  Jan Hubicka  <jh@suse.cz>
4285
4286         * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
4287         floats.
4288         (simplify_binary_operation): Deal with logicals on floats.
4289
4290         * i386.md (SSE fabs splitters): Emit new patterns.
4291         (SSE cmov splitters): Likewise.
4292         (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
4293         (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
4294         subregs.
4295         (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
4296         (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
4297
4298 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4299
4300         * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
4301         by hand.
4302         (output_a_rotate): Tweak a comment.
4303         * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
4304         (*rotlhi3_1): Change to rotlhi3_1.
4305         (*rotlsi3_1): Change to rotlsi3_1.
4306
4307 2004-02-18  Richard Earnshaw  <rearnsha@arm.com>
4308
4309         PR target/13866
4310         * arm.c (load_multiple_operation): Don't insist that the source reg
4311         of a post-increment component is the same as the destination.
4312         (store_multiple_operation): Likewise.
4313
4314 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4315
4316         * config/h8300/h8300.md: Move movsf patterns into one section
4317         of the file.
4318
4319 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4320
4321         * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
4322         loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
4323         xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
4324         config/mips/linux64.h, config/pa/pa-64.h,
4325         config/rs6000/aix51.h, config/rs6000/aix52.h,
4326         config/rs6000/spe.md, config/sparc/linux.h,
4327         config/sparc/linux64.h: Update copyright.
4328
4329 2004-02-18  Kazu Hirata  <kazu@cs.umass.edu>
4330
4331         * config/h8300/h8300.md: Move push patterns into one
4332         section of the file.
4333
4334 2004-02-18  Mark Mitchell <mark@codesourcery.com>
4335
4336         PR c++/11326
4337         * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
4338         fntype.
4339
4340 2004-02-18  Paul Brook  <paul@codesourcery.com>
4341
4342         * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
4343
4344 2004-02-18  Paul Brook  <paul@codesourcery.com>
4345
4346         PR debug/12934
4347         * dwarf2out.c (loc_descriptor_from_tree): Handle
4348         EXPR_WITH_FILE_LOCATION.
4349
4350 2004-02-18  Jakub Jelinek  <jakub@redhat.com>
4351
4352         * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
4353         testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
4354         trailing whitespace from instructions.
4355
4356 2004-02-17  Geoffrey Keating  <geoffk@apple.com>
4357
4358         * configure.ac: When generating auto-build.h, pass
4359         --enable-languages to the sub-configure.
4360         Put quotes around ${program_transform_name} when generating
4361         name of as, ld, nm, objdump.
4362         * configure: Regenerate.
4363
4364 2004-02-17  Matt Kraai  <kraai@alumni.cmu.edu>
4365
4366         * Makefile.in (s-check, s-config, s-conditions, s-flags)
4367         (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
4368         (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
4369         (s-preds, s-iov): Do not depend on move-if-change.
4370
4371 2004-02-17  James E Wilson  <wilson@specifixinc.com>
4372
4373         * caller-save.c (insert_restore): Pass mem through copy_rtx.
4374         (insert_save): Likewise.
4375
4376 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4377
4378         * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
4379         warning.
4380
4381 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4382
4383         * config/h8300/h8300.md (*one_complsi2_h8300): Change to
4384         *one_cmplsi2_h8300.
4385         (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
4386
4387 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4388
4389         * config/h8300/h8300-protos.h: Update the prototype of
4390         fix_bit_operand().
4391         * config/h8300/h8300.c (fix_bit_operand): Remove the second
4392         argument "what".
4393         * config/h8300/h8300.md: Update all callers.
4394
4395 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4396
4397         * config/h8300/h8300.c (fix_bit_operand): Change the name of
4398         the last argument to "code" from "type".
4399
4400 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4401
4402         * config/h8300/h8300.c: Remove an extern declaration of
4403         rtx_equal_function_value_matters.
4404
4405 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4406
4407         * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
4408         by hand.
4409         * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
4410         (*iorqi3_1): Change to iorqi3_1.
4411         (*xorqi3_1): Change to xorqi3_1.
4412
4413 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4414
4415         * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
4416         typos.
4417
4418 2004-02-17  Jan Hubicka  <jh@suse.cz>
4419
4420         * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
4421
4422 2004-02-18  Alan Modra  <amodra@bigpond.net.au>
4423
4424         PR optimization/14119
4425         * combine.c (try_combine): When attemting to fix unrecognized insns,
4426         don't delete SETs marked with REG_EH_REGION notes.
4427
4428 2004-02-17  Ulrich Weigand  <uweigand@de.ibm.com>
4429
4430         * combine.c (simplify_if_then_else): Do not replace
4431         (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
4432         modes differ.
4433
4434 2004-02017  Steven Bosscher  <stevenb@suse.de>
4435
4436         * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
4437         function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
4438         tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
4439         * ada/utils.c: Likewise.
4440         * cp/decl.c: Likewise.
4441         * f/com.c: Likewise.
4442         * java/class.c: Likewise.
4443
4444 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4445
4446         * config/h8300/h8300.md: Fix comment typos.
4447
4448 2004-02-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4449
4450         * config/mips/t-iris6gld: Renamed to ...
4451         * config/mips/t-irix-gld: ... this.
4452         * config.gcc (mips-sgi-irix6*): Reflect this
4453         (mips-sgi-irix5*): Use it with GNU ld.
4454
4455         * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
4456         to ...
4457         * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
4458         * config/mips/t-irix-gld: Reflect this.
4459         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4460
4461         * config/mips/iris5gld.h: New file.
4462         * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
4463         Only use collect2 without gas.
4464
4465         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
4466         Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
4467         (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
4468         * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
4469
4470         * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
4471         * config/mips/iris5.h: ... here.
4472
4473         * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
4474         IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
4475         (STARTFILE_SPEC, ENDFILE_SPEC): Define.
4476
4477         * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
4478         using irix_startfile_spec, irix_endfile_spec.
4479
4480 2004-02-16  Gunther Nikl  <gni@gecko.de>
4481
4482         * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
4483
4484 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4485
4486         * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
4487         insns by hand.
4488
4489 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4490
4491         * cfghooks.c (split_edge): Speed up updating of dominators.
4492
4493 2004-02-17  Mark Mitchell  <mark@codesourcery.com>
4494
4495         PR c++/11326
4496         * c-common.c (flag_abi_version): Remove.
4497         * c-common.h (flag_abi_version): Likewise.
4498         * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
4499         * c.opt (fabi-version): Remove.
4500         * calls.c (expand_call): Always pass a function type to
4501         struct_value_rtx.  Use convert_memory_address.
4502         * common.opt (fabi-version): Add it.
4503         * flags.h (flag_abi_version): Likewise.
4504         (abi_version_at_least): New macro.
4505         * opts.c (common_handle_option): Add OPT_fabi_version.
4506         * toplev.c (flag_abi_version): Define it.
4507         * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
4508         New function.
4509         (ia64_output_mi_thunk): Use it.
4510         (ia64_struct_value_rtx): Likewise.
4511
4512 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4513
4514         * config/h8300/h8300.c (h8300_emit_stack_adjustment):
4515         Don't generate insns by hand.
4516
4517 2004-02-17  Andrew Pinski  <pinskia@physics.uc.edu>
4518
4519         PR c++/14178
4520         * doc/invoke.texi (fabi-version): The default is 2 now.
4521
4522 2004-02-17  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4523
4524         * loop-iv.c: New file.
4525         * Makefile.in (loop-iv.o): New.
4526         * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
4527         * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
4528         num_loop_branches): New functions.
4529         * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
4530         iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
4531         find_simple_exit, iv_number_of_iterations, iv_analysis_done,
4532         get_simple_loop_desc, free_simple_loop_desc): Declare.
4533         (simple_loop_desc): New inline function.
4534         (struct rtx_iv, struct niter_desc): New.
4535         * cfgloopmanip.c (loopify): Specify semantics more precisely.
4536         * expr.c (force_operand): Handle subregs of expressions created by
4537         loop unroller.
4538         * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
4539         parts of the initialization to toplev.c
4540         * loop-unroll.c (loop_exit_at_end_p): New.
4541         (unroll_and_peel_loops): Call iv_analysis_done.
4542         (decide_peel_once_rolling, decide_peel_completely,
4543         decide_unroll_stupid, decide_unroll_constant_iterations,
4544         decide_unroll_runtime_iterations, decide_peel_simple,
4545         peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
4546         unroll_loop_runtime_iterations): Use new simple loop analysis.
4547         * loop-unswitch.c (compare_and_jump_seq): New.
4548         (may_unswitch_on_p): Renamed to ...
4549         (may_unswitch_on): Use new iv analysis.
4550         (reversed_condition): Export.
4551         (unswitch_single_loop, unswitch_loop): Use new iv analysis.
4552         * predict.c (estimate_probability): Use new simple loop analysis.
4553         * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
4554         canon_condition, simplify_using_condition): Declare.
4555         * stor-layout.c (get_mode_bounds): New.
4556         * toplev.c (rest_of_handle_loop2): Some parts of
4557         initialization/finalization moved here from loop-init.c.
4558
4559 2004-02-17  Kazu Hirata  <kazu@cs.umass.edu>
4560
4561         * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
4562         pointer.
4563         (CALL_USED_REGISTERS): Likewise.
4564         (REG_ALLOC_ORDER): Likewise.
4565         (REG_CLASS) <GENERAL_REGS>: Likewise.
4566
4567 2004-02-16  Geoffrey Keating  <geoffk@apple.com>
4568
4569         * doc/md.texi (Insn Canonicalizations): Document left-chaining
4570         in associative operators.
4571         * rtlanal.c (commutative_operand_precedence): Create some new
4572         variables.  Prefer a commutative operand on the left, then
4573         binary expressions, then NEG and NOT.
4574
4575 2004-02-16  Matthias Klose  <doko@debian.org>
4576
4577         * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
4578         in terms of SHLIB_SOVERSION.
4579         * config/m68k/t-slibgcc-elf-ver: New file.
4580         * config/pa/t-slibgcc-elf-ver: New file.
4581         * config.gcc (m68k-linux, parisc-linux): Use them when not
4582         sjlj exceptions are not configured.
4583
4584 2004-02-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
4585
4586         * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
4587
4588 2004-02-16  Zack Weinberg  <zack@codesourcery.com>
4589
4590         * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
4591
4592 2004-02-16  Joseph S. Myers  <jsm@polyomino.org.uk>
4593
4594         * doc/sourcebuild.texi: Mention backends.html.
4595
4596 2004-02-16  Kazu Hirata  <kazu@cs.umass.edu>
4597
4598         * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
4599         line-map.c, line-map.h, var-tracking.c: Fix comment
4600         formatting.
4601
4602 2004-02-16  Richard Henderson  <rth@redhat.com>
4603
4604         * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
4605
4606         * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
4607
4608 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
4609
4610         * config/h8300/h8300.md: Remove unnecessary parallels from
4611         all define_insn and define_split patterns.
4612
4613 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
4614
4615         * config/h8300/h8300.md: Remove explicit (set_attr "cc"
4616         "clobber").
4617
4618 2004-02-15  Bernardo Innocenti  <bernie@develer.com>
4619
4620         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
4621         '%#'.
4622
4623 2004-02-15  Kazu Hirata  <kazu@cs.umass.edu>
4624
4625         * config/ia64/ia64.c, config/mips/mips.c,
4626         config/mmix/mmix-modes.def: Fix comment typos.
4627
4628 2004-02-15  Roger Sayle  <roger@eyesopen.com>
4629
4630         * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
4631         (get_directive_line): Remove unused function prototype.
4632
4633 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
4634
4635         * tree-inline.c (copy_body_r): Do not replace ret_label.
4636
4637 2004-02-14  Jan Hubicka  <jh@suse.cz>
4638
4639         * i386.c (x86_four_jump_limit): New variable.
4640         (k8_avoid_jump_misspredicts): Rename to ...
4641         (ix86_avoid_jump_misspredicts): .. this one.
4642         (ix86_pad_returns): Break out from ...
4643         (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
4644         to.
4645         * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
4646
4647 2004-02-14  Josef Zlomek  <zlomekj@suse.cz>
4648
4649         * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
4650         PARALLEL is NULL.
4651
4652 2004-02-14  Per Bothner  <per@bothner.com>
4653
4654         * fix-header.c (line_table):  Move local variable in main to global.
4655         * scan.h (line_table):  Use it.
4656         * scan-decls.c (scan_decls):  Need to call linemap_lookup on token's
4657         line (recently renamed to src_loc) before calling recognized_function.
4658
4659 2004-02-14  Matt Kraai  <kraai@alumni.cmu.edu>
4660
4661         * Makefile.in: Fix comment typos.
4662
4663 2004-02-14  Olivier Hainque  <hainque@act-europe.fr>
4664
4665         * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
4666         for start_value when it is directly moved into reg, and factorize
4667         the retrieval of GET_MODE (reg).
4668
4669 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
4670
4671         * config/mips/mips-protos.h (mips_load_got_page): Delete.
4672         (mips_load_got_global): Delete.
4673         (mips_gotoff_page): Declare.
4674         * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
4675         (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
4676         UNSPEC_LOAD_GOT pattern rather than a MEM.
4677         (*load_got[sd]i): New patterns.
4678         * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
4679         (mips_load_got_page, mips_load_got_global): Delete.
4680         (mips_gotoff_page): New function.
4681         (override_options): Don't initialize mips_got_alias_set.
4682
4683 2004-02-14  Richard Sandiford  <rsandifo@redhat.com>
4684
4685         * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
4686         (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
4687         (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
4688         (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
4689         (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
4690         * config/mips/mips.c: Fix some overly-long lines.
4691         (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
4692         (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
4693
4694 2004-02-13  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4695
4696         * configure.ac: Search for as, ld below libexec/gcc.
4697         * configure: Regenerate.
4698
4699 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
4700
4701         * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
4702         __builtin_arm_setwcx ().
4703         * config/arm/arm.c (arm_expand_builtin): Generate operands
4704         correctly and reverse their order in call to gen_iwmmxt_tmcr ().
4705
4706 2004-02-14  Ben Elliston  <bje@wasabisystems.com>
4707
4708         * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
4709         and "wmuluh" to "wmulsm" and "wmulum", respectively.
4710         * config/arm/arm.h (enum arm_builtins): Rename enumerators to
4711         ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
4712         * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
4713         (_mm_mulhi_pu16): Likewise.
4714
4715 2004-02-13  Zack Weinberg  <zack@codesourcery.com>
4716
4717         * xcoffout.c (xcoff_assign_fundamental_type_number): Check
4718         DECL_NAME != 0 before dereferencing.
4719
4720 2004-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
4721
4722         * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
4723         (s390_output_addr_const_extra): Declare.
4724         (s390_output_pool_entry): Remove FILE * argument.
4725         * config/s390/s390.c (s390_output_symbolic_const): Remove.
4726         (s390_output_addr_const_extra): New function.
4727         (print_operand_address): Call output_addr_const instead of
4728         s390_output_symbolic_const.
4729         (print_operand): Likewise.
4730         (s390_output_pool_entry): Use assemble_integer for symbolic constants.
4731         Remove FILE * argument.
4732         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
4733         * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
4734         call.
4735
4736 2004-02-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4737
4738         * cfgloopanal.c (mark_irreducible_loops): Rewriten.
4739         (struct edge, struct vertex, struct graph): New.
4740         (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
4741         free_graph): New functions.
4742
4743 2004-02-12  Chris Demetriou  <cgd@broadcom.com>
4744
4745         * config/mips/mips.md (casesi_internal, casesi_internal_di):
4746         Use ".set macro" to avoid warnings about multi-instruction
4747         macros, since they're intentional.
4748
4749 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
4750
4751         * config/darwin.h: Add include guards.  Remove old, now incorrect,
4752         comment about STANDARD_EXEC_PREFIX.
4753
4754         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
4755         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
4756         for installing .1 manpages.  Add rules for installing cpp
4757         and gcov manpages under their installed names.
4758
4759 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
4760
4761         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
4762         host, but try LD_FOR_TARGET first.
4763         * configure: Rebuilt.
4764
4765 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
4766
4767         * dbxout.c: Move declaration of dbxout_type_decl outside
4768         #ifdef DBX_DEBUGGING_INFO.
4769         * c-parse.in: Don't give the asmdef production a type.
4770
4771 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
4772
4773         * debug.h (struct gcc_debug_hooks): Add type_decl field.
4774         (debug_nothing_tree_int): Prototype.
4775         (dwarf_debug_hooks): Delete, unused.
4776         * debug.c (do_nothing_debug_hooks): Update.
4777         (debug_nothing_tree_int): New function.
4778         * langhooks.h (struct lang_hooks_for_decls):
4779         Remove builtin_type_decls field.
4780         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
4781         (LANG_HOOKS_DECLS): Update.
4782         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
4783         Use debug_hooks->type_decl.
4784         * dbxout.c (preinit_symbols): New static.
4785         (dbx_debug_hooks, xcoff_debug_hooks): Update.
4786         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
4787         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
4788         for symbols to output.
4789         (dbxout_type_decl): New function.
4790         (dbxout_symbol): If called before dbxout_init has run, queue
4791         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
4792         to TYPE_DECLs before emitting them.
4793         * xcoffout.c (assign_type_number): Delete.
4794         (xcoff_type_numbers): New static table.
4795         (xcoff_assign_fundamental_type_number): New function.
4796         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
4797         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
4798         * sdbout.c: Include varray.h.
4799         (deferred_global_decls): New static.
4800         (sdb_debug_hooks): Update.
4801         (sdbout_global_decl): If we can't emit something right now,
4802         remember it in deferred_global_decls.
4803         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
4804         (sdbout_init): Initialize deferred_global_decls.
4805         * Makefile.in: Update dependencies of sdbout.o.
4806         * dwarf2out.c (dwarf2out_type_decl): New function.
4807         (dwarf2_debug_hooks): Update.
4808         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
4809         * c-decl.c (getdecls): Just return 0.
4810         (check_for_loop_decls): Don't use getdecls.
4811         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
4812         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
4813
4814 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
4815
4816         * config/s390/s390.c (s390_sched_reorder2): Remove.
4817         (TARGET_SCHED_REORDER2): Do not redefine.
4818
4819 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
4820
4821         * c-parse.in (maybe_type_qual): Delete.
4822         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
4823         (asm_argument): New grammar rules.
4824         (extdef_1): Use asmdef.
4825         (maybeasm): Move down with other asm rules; use simple_asm_expr.
4826         (xexpr): Move up with other expression rules.
4827         (stmt): Use asm_stmt.
4828
4829         * c-typeck.c (build_asm_expr): New function - body mostly
4830         pulled from build_asm_stmt.
4831         (build_asm_stmt): Just handle tacking on the volatile qualifier.
4832         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
4833
4834 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
4835
4836         PR bootstrap/13617
4837         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
4838         (mips_declare_object): Make variadic.
4839         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
4840         mips_output_aligned_decl_common.
4841         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
4842         (mips_declare_object): Make variadic.
4843
4844 2004-02-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4845
4846         * function.c (update_epilogue_consts): Teach about binary operations.
4847
4848         * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
4849         previous MEM_VOLATILE in REF.
4850         * function.c (fixup_var_refs): Save volatile_ok and set to 1.
4851         * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
4852
4853 2004-02-12  Gunther Nikl  <gni@gecko.de>
4854
4855         * config.gcc: Restore support for m68k-openbsd.
4856
4857 2004-02-12  Jan Hubicka  <jh@suse.cz>
4858
4859         * tree-optimize.c (tree_rest_of_compilation): Do not release
4860         DECL_ARGUMENTS.
4861
4862 2004-02-11  Matt Kraai  <kraai@alumni.cmu.edu>
4863
4864         * doc/install.texi: Fix the spelling of "explicitly".
4865
4866 2004-02-11  Eric Christopher  <echristo@redhat.com>
4867
4868         * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
4869         duplicate argument structure of cpp_interpret_string.
4870         * cpphash.h: Move prototype...
4871         * cpplib.h: Here.
4872         * cpplib.c: Fix calls to match new function signature.
4873
4874 2004-02-11  Joseph S. Myers  <jsm@polyomino.org.uk>
4875
4876         PR c/456
4877         * cppexp.c (num_binary_op): Don't allow comma operators in #if
4878         constant expressions at all outside C99 mode if pedantic.
4879
4880 2004-02-11  Uros Bizjak  <uros@kss-loka.si>
4881
4882         * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
4883         (log10_optab, log2_optab): Define corresponding macros.
4884         * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
4885         * genopinit.c (optabs): Implement log10_optab and log2_optab
4886         using log10?f2 and log2?f2 patterns.
4887         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
4888         using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
4889         (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
4890         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
4891
4892         * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
4893         log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
4894         log2, log2f and log2l built-ins as inline x87 intrinsics.
4895
4896 2004-02-11  Richard Henderson  <rth@redhat.com>
4897
4898         PR target/1532
4899         * flow.c (insn_dead_p): A clobber of a dead hard register is a
4900         dead insn after reload.
4901
4902 2004-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
4903
4904         * tree.h (frame_base_decl): Add GTY marker.
4905         * var-tracking.c (frame_base_decl): Likewise.
4906
4907 2004-02-11  Daniel Berlin  <dberlin@dberlin.org>
4908
4909         * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
4910         incorrect, hunk.
4911         (add_location_or_const_value_attribute): Use text_section_label,
4912         not TEXT_SECTION_NAME.
4913
4914 2004-02-11  Per Bothner  <per@bothner.com>
4915
4916         Represent column numbers using line-map's source_location.
4917         The "next available source_location" is now managed internally by
4918         line-maps.c rather than by clients.
4919         * line-map.h (struct line_map):  New field column_bits.
4920         <from_line>:  Rename field to start_location.
4921         (struct line_maps):  New fields highest_location and max_column_hint.
4922         (linemap_check_files_exited):  New declaration.
4923         (linemap_line_start):  New declaration.
4924         (linemap_add):  Remove from_line parameter; use highest_location field.
4925         (SOURCE_LINE, LAST_SOURCE_LINE):  Modify to use column_bits.
4926         (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION):  New macros.
4927         (CURRENT_LINE_MAP):  Remove macro.
4928         (linemap_position_for_column):  New inline function.
4929         * line-map.c (linemap_init):  Clear new fields.
4930         (linemap_check_files_exited):  New function, extracted from ...
4931         (linemap_free):  Use linemap_check_files_exited.
4932         (linemap_add):  Remove from_line parameter.  Various updates.
4933         (linemap_line_start):  New function.
4934         (linemap_lookeup):  Update for new field names.
4935         * cpphash.h (struct cpp_reader) <map>:  Field removed.  Because
4936         linemap_position_for_column may unpredictably change the current map,
4937         it is cleaner and simpler for us to not cache it in cpp_reader.
4938         (struct cpp_buffer):  New sysp field.
4939         Changed warned_cplusplus_comments and from_stage3 to bitfields.
4940         * cppinit.c (cpp_read_min_file):  pfile->map no longer exists.
4941         * cpplib.c (do_line, do_linemarker, _cpp_do_file_change):  Get
4942         current map using linemap_lookup.
4943         (do_linemarker):  Also set buffer's sysp field.
4944         (destringize_and_run):  No longer need to decrement current line.
4945         * cppfiles.c (_cpp_stack_file):  Set sysp from and in buffer.
4946         (search_path_head, open_file_failed):  Use buffer's sysp.
4947         (cpp_make_system_header):  Get current map using linemap_lookup.
4948         Also set buffer's sysp flag.
4949         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use linemap_lookup.
4950         * cpphash.h (CPP_INCREMENT_LINE):  New macro.
4951         (struct cpp_buffer):  Moved fields saved_cur, saved_rlimit to ...
4952         (struct cpp_reader):  ... and adding saved_line_base field.
4953         * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
4954         Update accordingly.  Don't adjust line.
4955         (_cpp_scan_out_logical_line):  Use CPP_INCREMENT_LINE.
4956         * cpphash.c (CPP_IN_SYSTEM_HEADER):  Replaced macro by ...
4957         (cpp_in_system_header):  ... new inline function, using buffer's sysp.
4958         * cpperror.c (_cpp_begin_message):  Update to use cpp_in_system_header.
4959         * cpplex.c (_cpp_lex_direct):  Likewise.
4960         * cppmacro.c (_cpp_builtin_macro_text):  Likewise.
4961         * cppmacro.c (_cpp_create_definition):  Use buffer's sysp field.
4962         * cpplib.h (struct cpp_token):  Rename line field to src_loc.
4963         Remove col field as it is now subsumed by src_loc.
4964         * cpperror.c:  Update various field, parameter, and macro names.
4965         (print_location):  If col==0, try SOURCE_COLUMN of line.
4966         (cpp_error):  Use cur_token's src_loc field, rather than line+col.
4967         * cpplib.c (do_diagnostic):  Token's src_loc fields replaces line+col.
4968         * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
4969         _cpp_skip_block_comment):  Use CPP_INCREMENT_LINE.
4970         (_cpp_temp_token):  Replace cpp_token's line+col fields by src_loc.
4971         (_cpp_get_fresh_line):  Don't need to adjust line for missing newline.
4972         (_cpp_lex_direct):  Use linemap_position_for_column.
4973         * c-ppoutput.c (maybe_print_line, print_line):  Don't take map
4974         parameter.  Instead get it from the line_table global.  Adjust callers.
4975         (print):  Remove map field.  Replace line field to src_line.
4976         (init_pp_output, account_for_newlines, maybe_print_line):  Adjust.
4977         (cb_line_change):  Use SOURCE_COLUMN.  Minor optimizations.
4978         (pp_file_change):  Use MAIN_FILE_P since we cannot checked print.map.
4979         Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
4980         * cpptrad.c (copy_comment):  Rename variable.
4981         * c-lex.c (map):  Remove static variable, for same reason we removed
4982         cpp_reader's map field.
4983         (cb_line_change, cb_def_pragma, cb_define, cb_undef):  Hence we need
4984         to call linemap_lookup.
4985         (cb_line_change):  Token's line field replaced by src_loc.
4986         (fe_file_change):  Use MAINFILE_P and LAST_SOURCE_LINE macros.
4987         Don't save new_map.
4988
4989         * cpphash.h, cpperror.c, cpplib.h:  Some renames of fileline to
4990         source_location.
4991
4992 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
4993
4994         * config/rs6000/altivec.md (*movv4si_internal): At least one
4995         operand must be register_operand.
4996         (*movv8hi_internal1): Likewise.
4997         (*movv16qi_internal1): Likewise.
4998         (*movv4sf_internal1): Likewise.
4999
5000 2004-02-10  Aldy Hernandez  <aldyh@redhat.com>
5001
5002         * config/rs6000/spe.md ("*movv2si_internal"): Check for register
5003         operand.
5004         (movv4hi_internal): Same.
5005         (movv2sf_internal): Same.
5006         (movv1di_internal): Same.
5007
5008 2004-02-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
5009
5010         * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
5011         TARGET_OLDABI consistently.
5012         * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
5013         mips_va_arg,override_options,compute_frame_size,
5014         mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
5015         ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
5016         and TARGET_OLDABI consistently.
5017         * config/mips/mips.md (exception_receiver): Likewise.
5018         * config/mips/linux64.h: Likewise.
5019
5020 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
5021
5022         * gcc/config/rs6000/rs6000.c (rs6000_override_options)
5023         Set AltiVec ABI and vrsave as default for ppc64 linux.
5024         (init_cumulative_args): Post error, if try to return
5025         value in AltiVec register without enable AltiVec.
5026         (function_arg_advance): Ditto for passing arguments.
5027
5028 2004-02-11  Richard Sandiford  <rsandifo@redhat.com>
5029
5030         * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
5031         a label before updating its usage count.
5032
5033 2004-02-10  Matt Kraai  <kraai@alumni.cmu.edu>
5034
5035         * doc/install.texi: Remove extra cd.
5036
5037 2004-02-10  Ziemowit Laski  <zlaski@apple.com>
5038
5039         * c-common.c (vector_size_helper): Remove; call
5040         reconstruct_complex_type() instead.
5041         * tree.c (reconstruct_complex_type): New function
5042         (formerly vector_size_helper() in c-common.c).
5043         (make_vector): Make externally visible.
5044         * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
5045
5046 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
5047
5048         * config/h8300/h8300-protos.h: Add a prototype for
5049         h8300_regs_ok_for_stm.
5050         * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
5051         * config/h8300/h8300.md (stm_h8300s_2_advanced,
5052         stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
5053         stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
5054         stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
5055         ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
5056         ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
5057         ldm_h8300s_4_normal, ldm_h8300s_4): Use
5058         h8300_regs_ok_for_stm().
5059
5060 2004-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
5061
5062         PR c/14088
5063         * real.c (real_from_string): Look for 'X' as well as 'x' in
5064         hexfloat strings.
5065
5066 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
5067
5068         * config/h8300/h8300.md: Remove an incorrect comment about
5069         peephole2.  Add comments.
5070
5071 2004-02-10  Josef Zlomek  <zlomekj@suse.cz>
5072
5073         PR/14058
5074         * emit-rtl.c (set_decl_incoming_rtl): New.
5075         * tree.h (set_decl_incoming_rtl): New.
5076         * function.c (assign_parms): Use set_decl_incoming_rtl for setting
5077         DECL_INCOMING_RTL.
5078         * ada/misc.c (adjust_decl_rtl): Likewise.
5079
5080 2004-02-10  Per Bothner  <per@bothner.com>
5081
5082         * c-opts.c (c_common_post_options):   Don't emit working directory
5083         in cpp output if -P was specified.
5084
5085 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
5086
5087         PR c/14092
5088         * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
5089         negate_expr back to the original type.
5090
5091 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
5092
5093         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
5094         bump retaddr here.
5095
5096 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
5097
5098         * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
5099         gen_lowpart_SUBREG): Move under the file in which they
5100         are actually declared.
5101
5102 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>
5103
5104         * doc/sourcebuild.texi: Add libada documentation.
5105
5106         * doc/install.texi: Update documentation on Ada build, now
5107         that the GNAT lib and tools are built automatically.
5108
5109 2004-02-10  Richard Sandiford  <rsandifo@redhat.com>
5110
5111         * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
5112         && TARGET_IRIX.
5113
5114 2004-02-09  Ziemowit Laski  <zlaski@apple.com>
5115
5116         * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
5117         boundaries outside build_component_ref() call (a macro in ObjC++).
5118
5119 2004-02-09  Bob Wilson  <bob.wilson@acm.org>
5120
5121         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
5122         (init_cumulative_args): Likewise.
5123         (a7_overlap_mentioned_p): Delete prototype.
5124         * config/xtensa/xtensa.c (struct machine_function): Replace
5125         incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
5126         Add set_frame_ptr_insn field.
5127         (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
5128         (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
5129         if the operand is an argument in a7.  If so, copy a7 to a new pseudo
5130         at the function entry and replace the operand with the pseudo.
5131         (init_cumulative_args): Remove unused arguments.  Add new "incoming"
5132         argument and record this flag in CUMULATIVE_ARGS.
5133         (function_arg): Remove result_mode and special-case code to handle
5134         arguments in a7.  Instead, set need_a7_copy flag when there is an
5135         incoming argument in a7.
5136         (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
5137         and use the value recorded in cfun->machine->set_frame_ptr_insn.
5138         (xtensa_builtin_saveregs): Check for negative gp_left value.  Set
5139         need_a7_copy and vararg_a7 flags.  Use move_block_from_reg instead of
5140         special-case code.
5141         (a7_overlap_mentioned_p): Delete.
5142         * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
5143         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
5144         arguments to init_cumulative_args and pass "incoming" flag instead.
5145         (BLOCK_REG_PADDING): Delete.
5146         * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
5147         checks for reload_in_progress and reload_completed.  Update calls to
5148         xtensa_copy_incoming_a7.
5149         (ashlsi3): Rename existing insn to ashlsi3_internal.  Add expander
5150         to call xtensa_copy_incoming_a7.
5151
5152 2004-02-09  DJ Delorie  <dj@redhat.com>
5153
5154         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
5155         longer modify standard_exec_prefix, standard_bindir_prefix, or
5156         standard_startfile_prefix.
5157
5158 2004-02-09  James E Wilson  <wilson@specifixinc.com>
5159
5160         PR c++/11295
5161         * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
5162         to expand_expr_real call, and pass in alt_rtl as last argument.
5163
5164         PR libstdc++/5625
5165         * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
5166         * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
5167         * builtins.def (BUILT_IN_EXTEND_POINTER): New.
5168         * except.c (expand_builtin_extend_pointer): New.
5169         * except.h (expand_builtin_extend_pointer): Declare.
5170
5171 2004-02-09  David Edelsohn  <edelsohn@gnu.org>
5172
5173         * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
5174         unaligned loads and stores.
5175
5176 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5177
5178         * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
5179         * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
5180
5181         * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
5182         * config/mips/iris5.h: ... here.
5183         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
5184
5185         * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
5186         * config/mips/iris5.h: ... here.
5187
5188 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5189
5190         * configure.ac: Remove default executable files before AC_PROG_CC.
5191         * configure: Regenerate.
5192
5193 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
5194
5195         PR target/13721
5196         * config/h8300/h8300.c (byte_reg): Call abort() if asked to
5197         print a operand other than a register.
5198
5199 2004-02-09  Roger Sayle  <roger@eyesopen.com>
5200
5201         * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
5202         tree code rather than call fold_convert, which doesn't specify a
5203         default floating point to integer conversion.
5204
5205 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
5206
5207         * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
5208         code to support SGS assembler.  Reformat adjacent code where possible.
5209         * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
5210         definition.
5211         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
5212         for '%#'.
5213         * config/m68k/linux.h, config/m68k/m68k.c,
5214         * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
5215         macros and asm_printf() format strings.
5216         * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
5217         * config/m68k/linux.h: Update copyright.
5218         * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
5219
5220 2004-02-08  Andreas Schwab  <schwab@suse.de>
5221             Bernardo Innocenti  <bernie@develer.com>
5222
5223         * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
5224         REGISTER_PREFIX.
5225         * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
5226         frame pointer register, overridable by OS targets.
5227         * (M68K_REGNAME): Macro to obtain register name for asm output,
5228         eventually replacing %a6 with M68K_FP_REG_NAME.
5229         * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
5230         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
5231         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
5232         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
5233         * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
5234
5235 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
5236
5237         * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
5238         hook_rtx_tree_int_null.
5239         * targhooks.c (default_struct_value_rtx): Remove.
5240         * targhooks.h: Remove the prototype for
5241         default_struct_value_rtx.
5242         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
5243         config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
5244         config/ip2k/ip2k.c, config/iq2000/iq2000.c,
5245         config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
5246         config/mn10300/mn10300.c, config/pdp11/pdp11.c,
5247         config/rs6000/rs6000.c, config/s390/s390.c,
5248         config/stormy16/stormy16.c, config/v850/v850.c,
5249         config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
5250         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
5251
5252 2004-02-08  Joseph S. Myers  <jsm@polyomino.org.uk>
5253
5254         * README.Portability: Change "ISO C89" to "ISO C90".
5255         * c-parse.in (primary, initelt): Likewise.
5256
5257 2004-02-08  Richard Sandiford  <rsandifo@redhat.com>
5258
5259         * real.c (encode_ibm_extended): Normalize the input value before
5260         converting it to a double.  Handle the case where a normal value
5261         rounds to infinity.
5262
5263 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
5264
5265         * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
5266         warning.
5267         * cse.c (preferrable): Change to preferable. Update all of its
5268         callers.
5269         * genautomata.c (ainsn): Change
5270         first_ainsn_with_given_equialence_num to
5271         first_ainsn_with_given_equivalence_num.  Update all of its
5272         references.
5273
5274 2004-02-08  Jan Hubicka  <jh@suse.cz>
5275
5276         * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
5277
5278 2004-02-07  David Edelsohn  <edelsohn@gnu.org>
5279
5280         * function.c (assign_parms): Fix formatting.
5281
5282 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5283
5284         * default.h (PROMOTE_PROTOTYPES): Remove.
5285         * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
5286         STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
5287         EXPAND_BUILTIN_SAVEREGS): Poison.
5288         * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
5289         hook_bool_tree_false.
5290         (TARGET_PROMOTE_PROTOTYPES): Likewise.
5291         * target.h: Replace SETUP_INCOMING_VARARGS with
5292         targetm.calls.setup_incoming_varargs().
5293         * targhooks.c (default_promote_function_return): Remove.
5294         (default_promote_prototypes): Likewise.
5295         (default_struct_value_rtx): Always abort().
5296         (default_expand_builtin_saveregs): Always print an error
5297         message.
5298         (default_setup_incoming_varargs): Do nothing.
5299         (default_pretend_outgoing_varargs_named): Don't depend on
5300         SETUP_INCOMING_VARARGS.
5301         * targhooks.h: Remove the prototype for
5302         default_promote_function_return and
5303         default_promote_prototypes.
5304
5305 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5306
5307         * system.h (SHARED_SECTION_ASM_OP): Poison.
5308         * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
5309         * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
5310
5311 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
5312
5313         Bug 13856
5314         * c-decl.c (diagnose_mismatched_decls): Only give special
5315         treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
5316         is also true.
5317         (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
5318         DECL_FUNCTION_CODE when defining a built-in function.
5319         Don't update DECL_ESTIMATED_INSNS.
5320         * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
5321         FUNCTION_DECLs.
5322         * tree.h: Delete DECL_ESTIMATED_INSNS.
5323         * tree-inline.c (struct inline_data): Delete inlined_insns field.
5324         (expand_call_inline, optimize_inline_calls): Don't update
5325         DECL_ESTIMATED_INSNS nor inlined_insns.
5326         * cgraphunit.c (cgraph_analyze_function): Don't update
5327         DECL_ESTIMATED_INSNS.
5328
5329 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
5330
5331         * c-common.c (shadow_warning): Delete.
5332         * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
5333         * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
5334         * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
5335         * c-parse.in (free_parser_stacks): Delete.
5336
5337 2004-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
5338
5339         * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
5340         config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
5341         Use the top level mkinstalldirs, not the one in the gcc subdir.
5342         * mkinstalldirs: Remove (from the gcc subdir).
5343
5344 2004-02-07  Roger Sayle  <roger@eyesopen.com>
5345
5346         PR middle-end/13696
5347         * fold-const.c (fold_convert): New function to provide type
5348         conversion to the middle-end without using convert.
5349         (negate_expr, associate_trees, size_diffop, omit_one_operand,
5350         operand_equal_for_comparison_p, pedantic_omit_one_operand,
5351         invert_truthvalue, optimize_bit_field_compare, range_binop,
5352         decode_field_reference, make_range, build_range_check, unextend,
5353         fold_truthop, extract_muldiv_1, fold_mathfn_compare,
5354         fold_binary_op_with_conditional_arg, fold_inf_compare,
5355         fold_single_bit_test, fold, multiple_of_p): Replace all calls to
5356         convert with calls to fold_convert.
5357
5358 2004-02-07  Jan Hubicka  <jh@suse.cz>
5359
5360         * genrecog.c (find_operand): add extra argument stop.
5361         (validate_pattern): Verify that mach_dup is duplicating operand
5362         defined lexically earlier.
5363
5364 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5365
5366         * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
5367         * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
5368         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
5369         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5370         config/ia64/ia64.h, config/ip2k/ip2k.h,
5371         config/iq2000/iq2000.h, config/mips/iris5.h,
5372         config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
5373         config/rs6000/aix51.h, config/rs6000/aix52.h,
5374         config/rs6000/darwin.h, config/rs6000/rs6000.h,
5375         config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
5376         config/sparc/linux.h, config/sparc/linux64.h,
5377         config/sparc/netbsd-elf.h, config/sparc/sparc.h,
5378         config/xtensa/xtensa.h: Remove the definitions of
5379         MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
5380         MAX_WCHAR_TYPE_SIZE.
5381         * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
5382         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
5383
5384 2004-02-07  Stephane Carrez  <stcarrez@nerim.fr>
5385
5386         PR bootstrap/13990
5387         * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
5388         gen_rtx_NE.
5389
5390 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
5391
5392         * var-tracking.c (vt_add_function_parameters): Surround checkings by
5393         #ifdef ENABLE_CHECKING and #endif.
5394
5395 2004-02-07  Roger Sayle  <roger@eyesopen.com>
5396
5397         * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
5398         either (-A)-B or (-B)-A, if A or B is easily negated respectively.
5399         (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
5400         integer types and floating point with unsafe_math_optimizations.
5401         Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
5402         Optimize A - B as A + (-B), if B is easily negated.
5403
5404 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5405
5406         * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
5407         config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
5408         config/m32r/linux.h, config/rs6000/ppc64-fp.c,
5409         config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
5410         Update copyright.
5411
5412 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
5413
5414         * c-ppoutput.c, var-tracking.c: Fix comment typos.
5415
5416 2004-02-06  James E Wilson  <wilson@specifixinc.com>
5417
5418         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
5419         glibc 2.3 or better.
5420
5421 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5422
5423         * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
5424         to FLOAT_LIB_COMPARE_RETURNS_BOOL.
5425
5426 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
5427
5428         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
5429         (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
5430         (SHLIB_MKMAP_OPTS): Delete.
5431         (TARGET_LIBGCC2_CFLAGS): Add -specs.
5432         (bispecs): Add rule.
5433         * config/rs6000/libgcc-ppc64.ver: New file.
5434         * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
5435         (__floatdidf, __floatdisf): Optimize multiply.
5436         (__fixunstfdi): New function.
5437         * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
5438         real and imag parts larger than one register.
5439         (function_arg): Correct type of reg used when fp arg split partially
5440         to stack.
5441         * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
5442         and __MACH__ or __powerpc64__.
5443
5444 2004-02-06  Roger Sayle  <roger@eyesopen.com>
5445             Ulrich Weigand  <uweigand@de.ibm.com>
5446
5447         * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
5448         of gen_highpart or gen_lowpart when the floating point format is
5449         wider than the result mode.
5450
5451 2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
5452
5453         * dwarf2out.c (loclabel_num): Move into #ifdef
5454         DWARF2_DEBUGGING_INFO.
5455
5456 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
5457
5458         * objc/objc-act.c (build_super_template) the 'class' field of
5459         'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
5460         (get_super_receiver): Likewise.
5461
5462 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5463
5464         * reload1.c (check_eliminable_occurrences): Optimize the reset
5465         of can_eliminate.
5466         (eliminate_regs_in_insn): Likewise.
5467
5468 2004-02-06  Daniel Berlin <dberlin@dberlin.org>
5469             Josef Zlomek  <zlomekj@suse.cz>
5470
5471         * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
5472         at the beginning of function, call dwarf2out_var_location for
5473         NOTE_INSN_VAR_LOCATION note.
5474         (struct var_loc_node, struct var_loc_list_def, loclabel_num,
5475         decl_loc_table): New.
5476         (lookup_decl_loc): New function.
5477         (add_var_loc_to_decl): New function.
5478         (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
5479         only if can_use_fbreg.
5480         (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
5481         functions.
5482         (loc_descriptor): Likewise. Process VAR_LOCATION.
5483         (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
5484         (loc_descriptor_from_tree): Call mem_loc_descriptor with
5485         can_use_fbreg == true.
5486         (add_location_or_const_value_attribute): Added parameter enum
5487         dwarf_attribute attr, generate attribute ATTR.  Create the location list.
5488         (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
5489         (gen_formal_parameter_die): Call add_location_or_const_value_attribute
5490         with attr == DW_AT_location.
5491         (gen_subprogram_die): Generate the location list for DW_AT_frame_base
5492         if frame_base_decl is defined and has a location list.
5493         (gen_variable_die): Call add_location_or_const_value_attribute with
5494         attr == DW_AT_location.
5495         (dwarf2out_var_location): New function.
5496         (dwarf2out_begin_function): New function.
5497         (dwarf2out_init): Create decl_loc_table.
5498
5499 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
5500
5501         * loop.c (force_movables): Transitively increase the priorities of
5502         all insns forces by an insn, not just the first one.
5503
5504 2004-02-06  Josef Zlomek  <zlomekj@suse.cz>
5505             Daniel Berlin <dberlin@dberlin.org>
5506
5507         Josef Zlomek  <zlomekj@suse.cz>
5508         * Makefile.in (var-tracking.o): New.
5509         * common.opt (fvar-tracking): New.
5510         * flags.h (flag_var_tracking): New.
5511         * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
5512         * opts.c (common_handle_option): Add OPT_fvar_tracking.
5513         * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
5514         * rtl.c (note_insn_name): Likewise.
5515         * rtl.def (VAR_LOCATION): New.
5516         * rtl.h (NOTE_VAR_LOCATION): New.
5517         (NOTE_VAR_LOCATION_DECL): New.
5518         (NOTE_VAR_LOCATION_LOC): New.
5519         (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
5520         (variable_tracking_main): New exported function.
5521         * timevar.def (TV_VAR_TRACKING): New.
5522         * toplev.c (enum dump_file_index): Added DFI_vartrack.
5523         (dump_file): "vartrack" was added (-dV).
5524         (flag_var_tracking): New.
5525         (f_options): "var-tracking" was added.
5526         (rest_of_handle_variable_tracking): New function.
5527         (rest_of_compilation): Run variable tracking.
5528         (process_options): If user has not specified flag_var_tracking set it
5529         according to optimize, debug_info_level and debug_hooks.
5530         * tree.h (frame_base_decl): New.
5531         * var-tracking.c: New file.
5532         * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
5533         (ia64_override_options): Set flags to run variable tracking in machine
5534         dependent reorg instead of toplev.c.
5535         (ia64_reorg): Run variable tracking if wanted.
5536         * doc/invoke.texi: Mention variable tracking in -dV,
5537         add and -fvar-tracking.
5538         * doc/passes.texi: Added variable tracking pass.
5539
5540         Daniel Berlin <dberlin@dberlin.org>
5541         * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
5542         * dbxout.c (dbx_debug_hooks): Likewise.
5543         (xcoff_debug): Likewise.
5544         * debug.c (do_nothing_debug_hooks): Likewise.
5545         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
5546         * dwarfout.c (dwarf_debug_hooks): Likewise.
5547         * sdbout.c (sdb_debug_hooks): Likewise.
5548         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5549         * final.c (final_scan_insn): Call var_location debug hook for each
5550         NOTE_INSN_VAR_LOCATION.
5551
5552 2004-02-06  Jan Hubicka  <jh@suse.cz>
5553
5554         * flow.c (update_life_info): Allocate reg_deaths when called from
5555         scheudler.
5556         (attempt_auto_inc):  Update life ranges accordingly.
5557
5558 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
5559
5560         PR debug/11816
5561         * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
5562
5563 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
5564
5565         * cfganal.c (flow_call_edges_add): Never split a libcall block.
5566
5567 2004-02-06  Daniel Berlin  <dberlin@dberlin.org>
5568
5569         * dwarf2out.c (output_loc_list): Don't use deltas if we have
5570         a separate line info table in use.
5571         Use the correct size for terminators.
5572         (output_die): Use offset, not delta.
5573
5574 2004-02-06  H.J. Lu  <hongjiu.lu@intel.com>
5575
5576         * doc/invoke.texi: Remove the pni option from -mfpmath=.
5577
5578 2004-02-06  Jan Hubicka  <jh@suse.cz>
5579
5580         * recog.c (split_all_insns): Do not update reg info.
5581         * regrename.c (regrename_optimize): Likewise.
5582         * toplev.c (rest_of_handle_reorder_blocks): Likewise.
5583         * flow.c (struct propagate_block_info): Add insn_num field.
5584         (reg_deaths): New array.
5585         (life_analysis): Free reg_deaths info.
5586         (allocate_reg_life_data): Allocate reg_deaths array.
5587         (propagate_one_insn): Use new array.
5588         (init_propagate_block): Initialize it.
5589         (free_propagate_block_info): Finish compuation of
5590         REG_LIVE_LENGTH
5591         (attempt_auto_inc): Sanity check that REG_INFO is not
5592         computed at same time.
5593         (mark_used_regs): Update new array.
5594
5595         * reg-stack.c (subst_stack_regs): Unshare clobbers before
5596         substitution.
5597
5598 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5599
5600         * config/s390/s390.md (*extendsiqi2_short_displ): Change to
5601         *extendqisi2_short_displ.
5602
5603 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
5604
5605         * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
5606         * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
5607         (emit_library_call_value_1): Likewise pass nargs.
5608         * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
5609         * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
5610         * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
5611         parameter instead of scanning TYPE_ARGS_TYPES to count args.
5612         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
5613         prototype.
5614         * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
5615         (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
5616         (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
5617         * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
5618         INIT_CUMULATIVE_ARGS.
5619         * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
5620         * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
5621         config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
5622         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
5623         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
5624         config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
5625         config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
5626         config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
5627         config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
5628         config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
5629         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
5630         config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
5631
5632 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5633
5634         * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
5635         possible.
5636
5637 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5638
5639         * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
5640         note containing (plus (reg) (const_int)), where reg is an
5641         eliminable reg, then perform the register elimination without
5642         depending on eliminate_regs().
5643
5644 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5645
5646         * config/arc/arc.c (arc_return_in_memory): Check the return
5647         value of int_size_in_bytes against -1.  Don't check
5648         TREE_ADDRESSABLE.
5649         * config/avr/avr.c (avr_return_in_memory): Check the return
5650         value of int_size_in_bytes against -1.
5651         * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
5652         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
5653         Likewise.
5654         * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
5655         * config/stormy16/stormy16.c (xstormy16_return_in_memory):
5656         Likewise.
5657
5658 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5659
5660         * config/frv/frv-protos.h: Remove the prototype for
5661         frv_setup_incoming_varargs.
5662         * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
5663         (frv_setup_incoming_varargs): Make it static.
5664         * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
5665
5666 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5667
5668         * config/fr30/fr30-protos.h: Remove the prototype for
5669         fr30_setup_incoming_varargs.
5670         Update the prototypes for fr30_num_arg_regs and
5671         fr30_function_arg_partial_nregs.
5672         * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
5673         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5674         (fr30_setup_incoming_varargs): Make it static.
5675         Add argument second_time.  Don't do anything when second_time
5676         is nonzero.
5677         (fr30_num_arg_regs): Change the type of the first argument to
5678         enum machine_mode.
5679         (fr30_function_arg_partial_nregs): Change the type of the
5680         second argument to enum machine_mode.
5681         * config/fr30/fr30.h (STRUCT_VALUE): Remove.
5682         (SETUP_INCOMING_VARARGS): Remove.
5683
5684 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
5685
5686         * config/arc/arc-protos.h: Remove the prototype for
5687         arc_setup_incoming_varargs.
5688         * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
5689         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
5690         (arc_setup_incoming_varargs): Make it static.
5691         (arc_external_libcall): Likewise.
5692         * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
5693         Remove the commented-out definition of
5694         ASM_OUTPUT_EXTERNAL_LIBCALL.
5695
5696 2004-02-05  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
5697
5698         * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
5699         to $$(slibdir) in the installation commands.
5700
5701 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
5702
5703         * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
5704         with inner_regno, not regno.
5705         * rtlanal.c (refers_to_regno_p): Same.
5706
5707 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5708
5709         * config.gcc: Remove i370 support.
5710
5711 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
5712
5713         * doc/install.texi:  Update automake and autoconf version
5714         requirements.  Note where to find gcj automake version.
5715
5716 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
5717
5718         * Makefile.in (generate-manpages): Move dependencies to ...
5719         (man): here.
5720         * doc/makefile.texi: Document new targets.
5721         * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
5722
5723 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
5724
5725         PR/13485
5726         Makefile.in (srcextra):  Add a level of indirection to ...
5727         (gcc.srcextra): ... here.
5728         (po-generated): Delete.
5729         (po/$(PACKAGE).pot: Use srcextra instead of po-generated.  Depend on
5730         options.c.
5731         (start.encap): Remove superfluous lang.srcextra dependency.
5732         objc/Make-lang.in (po-generated):  Delete.
5733
5734 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5735
5736         * config/ia64/ia64.c (REG_GP): Remove.
5737
5738 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5739
5740         * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
5741
5742 2004-02-05  Devang Patel  <dpatel@apple.com>
5743
5744         * dwarf2out.c (force_type_die): Look up input type itself
5745         instead of root_type() of type.
5746
5747 2004-02-05  Andreas Krebbel  <krebbel1@de.ibm.com>
5748
5749         * config/s390/s390.md ("*tmqidi_ext"): New insn.
5750         ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
5751         pre-reload splitters are transformed to post-reload
5752         define_insn_and_split patterns.
5753         ("*tmqisi_ext"): Renamed old "*tmqi_ext".
5754
5755 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5756
5757         * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
5758         TARGET_PROMOTE_PROTOTYPES.
5759
5760 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5761
5762         PR middle-end/13750
5763         Revert:
5764         2004-01-15  Geoffrey Keating  <geoffk@apple.com>
5765         PR pch/13361
5766         * c-typeck.c (constructor_asmspec): Delete.
5767         (struct initializer_stack): Delete field 'asmspec'.
5768         (start_init): Delete saving of asmspec.
5769         (finish_init): Don't update constructor_asmspec.
5770         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
5771         * stmt.c (expand_asm): Duplicate strings from tree.
5772         (expand_asm_operands): Likewise.
5773         * tree.c (tree_size): Update computation of size of STRING_CST.
5774         (make_node): Don't make STRING_CST nodes.
5775         (build_string): Allocate string with tree node.
5776         * tree.def (STRING_CST): Update comment.
5777         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
5778         (tree_string): Place contents of string in tree node.
5779         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
5780         from tree.
5781
5782 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
5783
5784         * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
5785         msgid.
5786
5787 2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
5788
5789         * config/rs6000/altivec.md (*movv4si_internal): At least one
5790         operand must be altivec_register_operand.
5791         (*movv8hi_internal1): Likewise.
5792         (*movv16qi_internal1): Likewise.
5793         (*movv4sf_internal1): Likewise.
5794
5795 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
5796
5797         * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
5798         * configure: Regenerate.
5799
5800 2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
5801
5802         * doc/install.texi: Update description of --gxx-include-dir to
5803         give correct default value.
5804
5805 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5806
5807         * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
5808         8 with MAC_REG.
5809
5810 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5811
5812         * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
5813         gen_rtx_PARALLEL.
5814
5815 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
5816
5817         * emit-rtl.c: Update the comment about the file.
5818
5819 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
5820
5821         * sourcebuild.texi (Test Idioms): Update testcase naming
5822         conventions.
5823
5824 2004-02-04  Per Bothner  <per@bothner.com>
5825
5826         Partially revert/redo 2003-10-01 change; fix -fworking-directory.
5827         * c-ppoutput.c (pp_dir_change):  New function.
5828         * c-common.h (pp_dir_change):  New declaration.
5829         * cpplib.h (struct cpp_options):  Remove working_directory field.
5830         * cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
5831         (cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
5832         Don't handle -fworking_directory here, but in c_common_post_options.
5833         (read_original_directory): Don't back up when done.
5834         Don't clear no-longer used working_directory flag.
5835         * cpplib.h:  Update declarations to match.
5836         * c-lex.c (cb_dir_change):  Move to c-opts.c.
5837         (init_c_lex):  Don't set dir_change callback here, since we want
5838         to set it even if flag_preprocess_only.
5839         * c-opts.c (cb_dir_change):  Function moved from c-lex.c.
5840         (c_common_post_options):  Set dir_change callback.
5841         Call pp_dir_change if approporiate.
5842         (finish_options):  Don't call cpp_find_main_file here.  Hence remove
5843         unneeded parameter and result. Do LC_RENAME for <built-in>.
5844         (c_common_post_options):  Call cpp_read_main_file here instead.
5845         (c_common_init):  Update accordingly.
5846         (push_command_line_include):  Don't cpp_push_main_file.
5847         Do LC_RENAME rather than LC_LEASE to get back to main file.
5848         Compared to pre-10-01 version, inline cpp_rename_to_main_file.
5849         (c_common_parse_file):  Call cpp_read_main_file for subsequent main
5850         files, but call finish_options for all files.
5851         * c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
5852         * fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
5853         cpp_find_main_file + cpp_push_main_file.
5854         * c-lex.c (fe_file_change):  Don't set main_input_filename here.
5855         * opts.c (handle_options):  Only set main_input_filename first time.
5856
5857 2004-02-05  Ian Lance Taylor  <ian@wasabisystems.com>
5858
5859         * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
5860
5861 2004-02-04  Geoffrey Keating  <geoffk@apple.com>
5862
5863         * reload.c (find_equiv_reg): When checking for register overlap,
5864         don't index hard_regno_nregs with a pseudo-reg.
5865
5866 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
5867
5868         * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
5869
5870 2004-02-04  David Edelsohn  <edelsohn@gnu.org>
5871
5872         * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
5873         against FIRST_PSEUDO_REGISTER.
5874
5875 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5876
5877         * Makefile.in: Move target, host overrides after per-language
5878         fragments.
5879
5880         * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
5881         (GNATLIBCFLAGS): Remove -g.
5882
5883 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5884
5885         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
5886         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
5887         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
5888         config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
5889         config/pdp11/pdp11.c, config/rs6000/rs6000.c,
5890         config/sparc/sparc.c, config/vax/vax.c: Revert the
5891         replacements of "FALLTHRU" with "Fall through" done in the
5892         previous patch.
5893
5894 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5895
5896         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
5897         config/arm/arm.c, config/arm/arm.md,
5898         config/cris/cris-protos.h, config/fr30/fr30.c,
5899         config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
5900         config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
5901         config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
5902         config/ip2k/ip2k.md, config/ip2k/libgcc.S,
5903         config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
5904         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
5905         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
5906         config/ns32k/netbsd.h, config/ns32k/ns32k.c,
5907         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
5908         config/rs6000/darwin-ldouble.c, config/s390/s390.h,
5909         config/s390/s390.md, config/sparc/netbsd-elf.h,
5910         config/sparc/openbsd.h, config/sparc/sparc.c,
5911         config/xtensa/lib2funcs.S: Fix comment formatting.
5912
5913 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5914
5915         * config/alpha/alpha.c, config/arc/arc.c,
5916         config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
5917         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
5918         config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
5919         config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
5920         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
5921         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
5922         config/iq2000/iq2000.c, config/m32r/m32r.c,
5923         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
5924         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
5925         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
5926         config/rs6000/rs6000.h, config/sparc/sparc.c,
5927         config/vax/vax.c: Fix comment typos.  Follow spelling
5928         conventions.
5929
5930 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5931
5932         * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
5933         caller-save.c, df.h, genconfig.c, global.c, lcm.c,
5934         ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
5935         sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
5936         config/arm/fpa.md, config/arm/iwmmxt.md,
5937         config/arm/netbsd-elf.h, config/arm/netbsd.h,
5938         config/m68hc11/m68hc11.md, config/mips/iris5.h,
5939         config/mn10300/mn10300.md, config/rs6000/altivec.md,
5940         config/sparc/netbsd-elf.h: Update copyright.
5941
5942 2004-02-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5943
5944         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
5945         for all modes whose size is greater than 8 bytes if ARCH32.
5946         (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
5947         by reference if ARCH32.
5948
5949 2004-02-04  Aldy Hernandez  <aldyh@redhat.com>
5950
5951         * cgraphunit.c (cgraph_postorder): Fix typo in comment.
5952
5953 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
5954
5955         * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
5956         to before adddi3 insn patterns.
5957         ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
5958         "reload_insi"): Move to before addsi3 insn patterns.
5959
5960 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
5961
5962         * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
5963         parameter.  Use it instead of current_function_is_thunk.
5964         * function.h (struct function): Update documentation for is_thunk.
5965         * tree.h (CALL_FROM_THUNK_P): New macro.
5966         * config/alpha/alpha.c (alpha_sa_mask): Do not check
5967         no_new_pseudos when testing current_function_is_thunk.
5968         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
5969
5970 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5971
5972         * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
5973         TARGET_SETUP_INCOMING_VARARGS.
5974
5975 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5976
5977         * emit-rtl.c (gen_rtx): Remove.
5978         * genattrtab.c: Don't mention gen_rtx in a comment.
5979         * rtl.h: Remove the prototype for gen_rtx.
5980         * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
5981
5982 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5983
5984         * config/arc/arc.h, config/fr30/fr30.h
5985         (SETUP_INCOMING_VARARGS): Remove the target-independent
5986         comments.
5987         * doc/tm.texi: Don't mention deprecated target macros.
5988
5989 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5990
5991         * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
5992         target-independent comment.
5993
5994 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
5995
5996         * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
5997         mention deprecated target macros.
5998
5999 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
6000
6001         * config.gcc: Remove obsolete ports and configurations.
6002         * config/linux-aout.h, config/netware.h,
6003         config/t-linux-gnulibc1, config/d30v/abi,
6004         config/d30v/d30v-protos.h, config/d30v/d30v.c,
6005         config/d30v/d30v.h, config/d30v/d30v.md,
6006         config/d30v/libgcc1.asm, config/d30v/t-d30v,
6007         config/dsp16xx/dsp16xx-modes.def,
6008         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
6009         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
6010         config/i370/README, config/i370/i370-c.c,
6011         config/i370/i370-protos.h, config/i370/i370.c,
6012         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6013         config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
6014         config/i386/freebsd-aout.h, config/i386/linux-aout.h,
6015         config/i386/moss.h, config/i386/netware.h,
6016         config/i386/svr3.ifile, config/i386/svr3dbx.h,
6017         config/i386/svr3gas.h, config/i386/svr3z.ifile,
6018         config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
6019         config/i960/i960-c.c, config/i960/i960-coff.h,
6020         config/i960/i960-modes.def, config/i960/i960-protos.h,
6021         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6022         config/i960/rtems.h, config/i960/t-960bare,
6023         config/m68k/hp310.h, config/m68k/hp320.h,
6024         config/m68k/hp320base.h, config/m68k/m68kv4.h,
6025         config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
6026         Remove.
6027         * doc/extend.texi, doc/install.texi, doc/invoke.texi,
6028         doc/md.texi: Remove mentions of obsolete ports.
6029
6030 2004-02-04  Jan Hubicka  <jh@suse.cz>
6031
6032         * alias.c (find_base_term, get_addr):  Do not dereference NULL
6033         pointer when all VALUE's locations has been invalidated.
6034         (rtx_equal_for_memref_p): Simplify checking of VALUEs.
6035
6036 2004-02-03  Wolfgang Bangerth  <bangerth@dealii.org>
6037
6038         * doc/invoke.texi (x86 options): Fix spelling/wording.
6039
6040 2004-02-03  Richard Sandiford  <rsandifo@redhat.com>
6041
6042         * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
6043         put the original string in a comment.
6044         * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
6045         * config/mips/mips.c (mips_output_ascii): Likewise.
6046         * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
6047
6048 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6049
6050         * system.h (GIV_SORT_CRITERION): Poison.
6051         * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
6052         * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
6053
6054 2004-02-03  Roger Sayle  <roger@eyesopen.com>
6055
6056         PR target/9348
6057         * expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
6058         multiplies with a multiplication of the wrong signedness, its the
6059         signedness of the multiplication that we've performed that needs to
6060         be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
6061         if expand_mult_highpart_adjust places the result in target.
6062
6063 2004-02-03  Richard Henderson  <rth@redhat.com>
6064
6065         * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
6066
6067 2004-02-03  J"orn Rennecke <joern.rennecke@superh.com>
6068
6069         * config.gcc (sh[234]l): Use little endian fragments.
6070
6071 2004-02-03  Paul Koning  <pkoning@equallogic.com>
6072
6073         * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
6074         * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
6075         * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
6076         encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
6077         floating point format.
6078         (pdp11_f_format, pdp11_d_format): New real_format descriptors for
6079         the above functions.
6080         (output_move_quad): Output float values in correct target format.
6081         (legitimate_const_double_p): New function.
6082         * config/pdp11/pdp11.h: Fix typos.
6083         (FLOAT_WORDS_BIG_ENDIAN): Add definition.
6084         (TARGET_FLOAT_FORMAT): Ditto.
6085         (pdp11_f_format, pdp11_d_format): Add external declarations.
6086         (MAX_REGS_PER_ADDRESS): Corrected.
6087         (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
6088         (PRINT_OPERAND): Output float literals in target format.
6089
6090 2004-02-03  Mark Mitchell  <mark@codesourcery.com>
6091
6092         PR c++/13975
6093         * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
6094         TI_PRIVATE.
6095         (access_public_node): Redefine.
6096         (access_protected_node): Likewise.
6097         (access_private_node): Likewise.
6098         * tree.c (build_common_tree_nodes): Create access_public_node,
6099         access_protected_node, and access_private_node.
6100
6101 2004-02-03  Steve Ellcey  <sje@cup.hp.com>
6102
6103         * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
6104         (MASK_INLINE_INT_DIV_THR): Ditto.
6105         (MASK_INLINE_SQRT_LAT): Ditto.
6106         (MASK_INLINE_SQRT_THR): Ditto.
6107         (MASK_DWARF2_ASM): Ditto.
6108         (MASK_EARLY_STOP_BITS): Ditto.
6109
6110 2004-02-02  Paul Brook  <paul@codesourcery.com>
6111
6112         Merge from csl-arm-branch.
6113
6114         2004-01-30  Paul Brook  <paul@codesourcery.com>
6115
6116         * aof.h (REGISTER_NAMES): Add vfp reg names
6117         (ADDITIONAL_REGISTER_NAMES): Ditto.
6118         * aout.h (REGISTER_NAMES): Ditto.
6119         (ADDITIONAL_REGISTER_NAMES): Ditto.
6120         * arm-protos.h: Update/Add Prototypes.
6121         * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
6122         Only allow 0.0 for VFP.
6123         (fp_consts_inited): Rename from fpa_consts_inited.  Update users.
6124         (values_fp): Rename from values_fpa.  Update Users.
6125         (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
6126         Update users.  Only check valid constants for this hardware.
6127         (arm_float_rhs_operand): Rename from fpa_rhs_operand.  Update Users.
6128         Only allow consts for FPA.
6129         (arm_float_add_operand): Rename from fpa_add_operand.  Update users.
6130         Only allow consts for FPA.
6131         (use_return_insn): Check for saved VFP regs.
6132         (arm_legitimate_address_p): Handle VFP DFmode addressing.
6133         (arm_legitimize_address): Ditto.
6134         (arm_general_register_operand): New function.
6135         (vfp_mem_operand): New function.
6136         (vfp_compare_operand): New function.
6137         (vfp_secondary_reload_class): New function.
6138         (arm_float_compare_operand): New function.
6139         (vfp_print_multi): New function.
6140         (vfp_output_fstmx): New function.
6141         (vfp_emit_fstm): New function.
6142         (arm_output_epilogue): Output VPF reg restore code.
6143         (arm_expand_prologue): Output VFP reg save code.
6144         (arm_print_operand): Add 'P'.
6145         (arm_hard_regno_mode_ok): Return modes for VFP regs.
6146         (arm_regno_class): Return classes for VFP regs.
6147         (arm_compute_initial_elimination_offset): Include space for VFP regs.
6148         (arm_get_frame_size): Ditto.
6149         * arm.h (FIXED_REGISTERS): Add VFP regs.
6150         (CALL_USED_REGISTERS): Ditto.
6151         (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
6152         (FIRST_VFP_REGNUM): Define.
6153         (LAST_VFP_REGNUM): Define.
6154         (IS_VFP_REGNUM): Define.
6155         (FIRST_PSEUDO_REGISTER): Include VFP regs.
6156         (HARD_REGNO_NREGS): Handle VFP regs.
6157         (REG_ALLOC_ORDER): Add VFP regs.
6158         (enum reg_class): Add VFP_REGS.
6159         (REG_CLASS_NAMES): Ditto.
6160         (REG_CLASS_CONTENTS): Ditto.
6161         (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
6162         (REG_CLASS_FROM_LETTER): Add 'w'.
6163         (EXTRA_CONSTRAINT_ARM): Add 'U'.
6164         (EXTRA_MEMORY_CONSTRAINT): Define.
6165         (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
6166         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
6167         (REGISTER_MOVE_COST): Ditto.
6168         (PREDICATE_CODES): Add arm_general_register_operand,
6169         arm_float_compare_operand and vfp_compare_operand.
6170         * arm.md (various): Rename as above.
6171         (divsf3): Enable when TARGET_VFP.
6172         (divdf3): Ditto.
6173         (movdfcc): Ditto.
6174         (sqrtsf2): Ditto.
6175         (sqrtdf2): Ditto.
6176         (arm_movdi): Disable when TARGET_VFP.
6177         (arm_movsi_insn): Ditto.
6178         (movsi): Only split with general regs.
6179         (cmpsf): Use arm_float_compare_operand.
6180         (push_fp_multi): Restrict to TARGET_FPA.
6181         (vfp.md): Include.
6182         * vfp.md: New file.
6183         * fpa.md (various): Rename as above.
6184         * doc/md.texi: Document ARM w and U constraints.
6185
6186         2004-01-15  Paul Brook  <paul@codesourcery.com>
6187
6188         * config.gcc: Add with_fpu.  Allow with-float=softfp.
6189         * config/arm/arm.c (arm_override_options): Rename *-s to *s.
6190         Break out of loop when we find a float-abi.  Fix typo.
6191         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
6192         Set -mfloat-abi=.
6193         * doc/install.texi: Document --with-fpu.
6194
6195         2003-01-14  Paul Brook  <paul@codesourcery.com>
6196
6197         * config.gcc (with_arch): Add armv6.
6198         * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
6199         * config/arm/arm.c (arm_overrride_options): Ditto.
6200
6201         2004-01-08  Richard Earnshaw  <rearnsha@arm.com>
6202
6203         * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
6204         (FL_ARCH6): Renamed from FL_ARCH6J.
6205         (arm_arch3m): Renamed from arm_fast_multiply.
6206         (arm_arch6): Renamed from arm_arch6j.
6207         * arm.h: Update all uses of above.
6208         * arm-cores.def: Likewise.
6209         * arm.md: Likewise.
6210
6211         * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
6212         not arm6j.  Add entry for arch armv6.
6213
6214         2004-01-07  Richard Earnshaw  <rearnsha@arm.com>
6215
6216         * arm.c (arm_emit_extendsi): Delete.
6217         * arm-protos.h (arm_emit_extendsi): Delete.
6218         * arm.md (zero_extendhisi2): Also handle zero-extension of
6219         non-subregs.
6220         (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
6221         (thumb_zero_extendhisi2): Only match if not v6.
6222         (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
6223         (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
6224         (thumb_extendqisi2): Likewise.
6225         (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
6226         (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
6227         (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
6228         (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
6229         (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
6230         (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
6231         (arm_zero_extendhisi2addsi): Remove subreg.  Add attributes.
6232         (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
6233         (arm_extendqisi2addsi): Likewise.
6234
6235         2003-12-31  Mark Mitchell  <mark@codesourcery.com>
6236
6237         Revert this change:
6238         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6239         + REG addressing modes.
6240
6241         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6242         + REG addressing modes.
6243
6244         2003-12-30  Mark Mitchell  <mark@codesourcery.com>
6245
6246         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
6247         CONSTANT_P_RTX.
6248
6249         2003-30-12  Paul Brook  <paul@codesourcery.com>
6250
6251         * longlong.h: protect arm inlines with !defined (__thumb__)
6252
6253         2003-30-12  Paul Brook  <paul@codesourcery.com>
6254
6255         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
6256
6257         2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>
6258
6259         * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
6260         change.
6261
6262         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
6263
6264         * builtins.c (expand_builtin_apply_args_1): Add pretend args size
6265         to the virtual incoming args pointer for downward stacks.
6266
6267         2003-12-29  Paul Brook  <paul@codesourcery.com>
6268
6269         * config/arm/arm-cores.def: Add cost function.
6270         * config/arm/arm.c (arm_*_rtx_costs): New functions.
6271         (arm_rtx_costs): Remove
6272         (struct processors): Add rtx_costs field.
6273         (all_cores, all_architectures): Ditto.
6274         (arm_override_options): Set targetm.rtx_costs.
6275         (thumb_rtx_costs): New function.
6276         (arm_rtx_costs_1): Remove cases handled elsewhere.
6277         * config/arm/arm.h (processor_type): Add COSTS parameter.
6278
6279         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
6280
6281         * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
6282         (arm926ejs.md): Include it.
6283         * config/arm/arm926ejs.md: New pipeline description.
6284
6285         2003-12-24  Paul Brook  <paul@codesourcery.com>
6286
6287         * config/arm/arm.c (arm_arch6j): New variable.
6288         (arm_override_options): Set it.
6289         (arm_emit_extendsi): New function.
6290         * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
6291         * config/arm/arm.h (arm_arch6j): Declare.
6292         * config/arm/arm.md: Add sign/zero extend insns.
6293
6294         2003-12-23  Paul Brook  <paul@codesourcery.com>
6295
6296         * config/arm/arm.c (all_architectures): Add armv6.
6297         * doc/invoke.texi: Document it.
6298
6299         2003-12-19  Paul Brook  <paul@codesourcery.com>
6300
6301         * config/arm/arm.md: Add load1 and load_byte "type" attrs.  Modify
6302         insn patterns to match.
6303         * config/arm/arm-generic.md: Ditto.
6304         * config/arm/cirrus.md: Ditto.
6305         * config/arm/fpa.md: Ditto.
6306         * config/amm/iwmmxt.md: Ditto.
6307         * config/arm/arm1026ejs.md: Ditto.
6308         * config/arm/arm1135jfs.md: Ditto.  Add insn_reservation and bypasses
6309         for 11_loadb.
6310
6311         2003-12-18  Nathan Sidwell  <nathan@codesourcery.com>
6312
6313         * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
6314         * config/arm/arm.c (arm_adjust_cost): Check shift cost for
6315         TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
6316         (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
6317         arm_no_early_mul_dep): Correctly deal with conditional execution,
6318         parallels and single shift operations.
6319         (arm_no_early_alu_shift_value_dep): Define.
6320         * arm.md (attr type): Replace 'normal' with 'alu',
6321         'alu_shift' and 'alu_shift_reg'.
6322         (attr core_cycles): Adjust.
6323         (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
6324         *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
6325         *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
6326         *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
6327         *arith_shiftsi_compare0_scratch, *sub_shiftsi,
6328         *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
6329         *if_shift_move, *if_move_shift, *if_shift_shift): Set type
6330         attribute appropriately.
6331         * config/arm/arm1026ejs.md (alu_op): Adjust.
6332         (alu_shift_op, alu_shift_reg_op): New.
6333         * config/arm/arm1136.md: Add better bypasses for early
6334         registers. Remove load[234] and store[234] bypasses.
6335         (11_alu_op): Adjust.
6336         (11_alu_shift_op, 11_alu_shift_reg_op): New.
6337
6338         2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
6339
6340         * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
6341         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
6342         * config/arm/arm.c (arm_no_early_store_addr_dep,
6343         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
6344         * config/arm/arm1026ejs.md: Add load-store bypass.
6345         * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
6346         Add bypasses between instructions.
6347
6348         2003-12-10  Paul Brook  <paul@codesourcery.com>
6349
6350         * config/arm/arm.c (arm_fpu_model): New variable.
6351         (arm_fload_abi): New variable.
6352         (target_fpe_name): Rename from target_fp_name.
6353         (target_fpu_name): New variable.
6354         (arm_is_cirrus): Remove.
6355         (fpu_desc): New struct.
6356         (all_fpus): Define.
6357         (pf_model_for_fpu): Define.
6358         (all_loat_abis): Define.
6359         (arm_override_options): Set fp arch flags based on -mfpu=
6360         and -float-abi=.
6361         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
6362         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
6363         (*): Use new TARGET_* flags.
6364         * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
6365         (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
6366         (TARGET_SOFT_FLOAT): Ditto.
6367         (TARGET_SOFT_FLOAT_ABI): New.
6368         (TARGET_MAVERICK): Rename from TARGET_CIRRUS.  No longer implies
6369         TARGET_HARD_FLOAT.
6370         (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
6371         (TARGET_OPTIONS): Add -mfpu=.
6372         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
6373         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
6374         (arm_pf_model): Define.
6375         (arm_float_abi_type): Define.
6376         (fputype): Add FPUTYPE_VFP.  Change SOFT_FPA->NONE
6377         * config/arm/arm.md: Use new TARGET_* flags.
6378         * config/arm/cirrus.md: Ditto.
6379         * config/arm/fpa.md: Ditto.
6380         * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
6381         * config/arm/semi.h (ASM_SPEC): Ditto.
6382         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
6383         (FPUTYPE_DEFAULT): Set to VFP.
6384         * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
6385
6386         2003-11-22  Phil Edwards  <phil@codesourcery.com>
6387
6388         PR target/12476
6389         * config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
6390         'bx' instead of 'b' to avoid branch range restrictions.  Output
6391         the thunk immediately before the thunked-to function.
6392         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
6393         .thumb_func if a thunk is being generated.  Emit .code 16 along
6394         with .thumb_func if a thunk is not being generated.
6395
6396         2003-11-15  Nicolas Pitre <nico@cam.org>
6397
6398         * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
6399         arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
6400         * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
6401         (lshrdi3_iwmmxt): Renamed from lshrdi3.
6402         * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
6403
6404         2003-11-12  Steve Woodford  <scw@wasabisystems.com>
6405             Ian Lance Taylor  <ian@wasabisystems.com>
6406
6407         * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
6408         code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
6409
6410         2003-11-05  Phil Edwards  <phil@codesourcery.com>
6411
6412         * config/arm/arm.md (insn):  Add new V6 instruction names.
6413         (generic_sched):  New attr.
6414         * config/arm/arm-generic.md:  Use generic_sched here.
6415         * config/arm/arm1026ejs.md:  Do not model fetch/issue/decode
6416         stages of pipeline.  Adjust latency counts accordingly.
6417         * config/arm/arm1136jfs.md:  New file.
6418
6419         2003-10-28  Mark Mitchell  <mark@codesourcery.com>
6420
6421         * config/arm/arm.h (processor_type): New enumeration type.
6422         (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
6423         ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
6424         (CPP_CPU_ARCH_SPEC): Likewise.
6425         * config/arm/arm.c (arm_tune): New variable.
6426         (all_cores): Use cores.def.
6427         (all_architectures): Add representative processor.
6428         (arm_override_options): Restructure way in which tuning
6429         information is deduced.
6430         * arm.md: Update "insn" and "type" attributes throughout.
6431         (insn): New attribute.
6432         (type): Compute "mult" from "insn" attribute.  Add load2,
6433         load3, load4 alternatives.
6434         (arm automaton): Move to arm-generic.md.
6435         * config/arm/arm-cores.def: New file.
6436         * config/arm/arm-generic.md: Likewise.
6437         * config/arm/arm1026ejs.md: Likewise.
6438
6439 2004-02-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
6440
6441         * doc/invoke.texi (SPARC options): Remove -mflat and
6442         all -mxxx (xxx:chip) options.
6443         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
6444         * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
6445         * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
6446         * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
6447         * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
6448         * config/sparc/sparc.c: Likewise.
6449         (sparc_output_function_prologue): Remove TARGET_FLAT handling.
6450         (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
6451         (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
6452         (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
6453         (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
6454         (sparc_flat_must_save_register_p): Likewise.
6455         (sparc_flat_compute_frame_size): Likewise.
6456         (sparc_flat_save_restore): Likewise.
6457         (sparc_flat_function_prologue): Likewise.
6458         (sparc_flat_function_epilogue): Likewise.
6459         (sparc_flat_epilogue_delay_slots): Likewise.
6460         (sparc_flat_eligible_for_epilogue_delay): Likewise.
6461         (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
6462         * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
6463         (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
6464         (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
6465         (CONDITIONAL_REGISTER_USAGE): Likewise.
6466         (FRAME_POINTER_REQUIRED): Likewise.
6467         (INITIAL_ELIMINATION_OFFSET): Likewise.
6468         (BASE_RETURN_VALUE_REG): Likewise.
6469         (BASE_OUTGOING_VALUE_REG): Likewise.
6470         (BASE_PASSING_ARG_REG): Likewise.
6471         (BASE_INCOMING_ARG_REG): Likewise.
6472         (INCOMING_REGNO): Likewise.
6473         (OUTGOING_REGNO): Likewise.
6474         (LOCAL_REGNO): Likewise.
6475         (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
6476         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
6477         (EPILOGUE_USES): Likewise.
6478         * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
6479         ("flat" attribute): Delete.
6480         (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
6481         handling.
6482         (call followed by jump define_peephole's): Delete.
6483         (exception_receiver): Likewise.
6484         (builtin_setjmp_receiver): Likewise.
6485         * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
6486
6487 2004-02-03  Paolo Bonzini  <bonzini@gnu.org>
6488
6489         PR c/11658
6490         PR c/13994
6491         * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
6492         on langhooks.h.
6493         * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
6494         * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
6495         Include langhooks.h.  Replace c_common_truthvalue_conversion
6496         with the truthvalue_conversion language hook throughout.
6497         (expr_no_commas): Call default_conversion before save_expr
6498         for the first term of the production 'x ? : y'.
6499         * c-common.c (c_common_truthvalue_conversion): Remove
6500         obsolete block.  Invoke recursively the hook instead
6501         of this function.
6502         * c-convert.c (convert): handle ERROR_MARK_NODE.
6503         * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
6504         returned by the truthvalue_conversion language hook.
6505         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
6506         c_objc_common_truthvalue_conversion.
6507         * c-objc-common.c (c_objc_common_truthvalue_conversion):
6508         New function.
6509         * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
6510         * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
6511         c_objc_common_truthvalue_conversion.
6512
6513 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6514
6515         * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
6516         of gen_rtx.
6517         (LIBCALL_VALUE): Likewise.
6518         * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
6519         gen_rtx_CC0 instead of gen_rtx.
6520         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
6521         gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
6522         (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
6523         gen_rtx.
6524         (m68hc11_emit_logical): Likewise.
6525
6526 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6527
6528         * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
6529         config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
6530         config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
6531         config/m32r/m32r.md, config/m68hc11/m68hc11.c,
6532         config/mips/mips.md, config/mmix/mmix.c,
6533         config/mn10300/mn10300.c, config/mn10300/mn10300.md,
6534         config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
6535         config/rs6000/altivec.md, config/s390/s390.c,
6536         config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
6537         config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
6538         Use const0_rtx instead of GEN_INT (0).  Do the same for other
6539         constants that are readily available.
6540
6541 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6542
6543         * doloop.c, optabs.c, regmove.c, sched-deps.c,
6544         config/i386/i386.c, config/i386/i386.md: Use const0_rtx
6545         instead of GEN_INT (0).  Do the same for other constants that
6546         are readily available.
6547
6548 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
6549
6550         * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
6551         gen_rtx.
6552         * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
6553         instead of gen_rtx.
6554         * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
6555         gen_rtx.
6556         * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
6557         gen_rtx_ASHIFT instead of gen_rtx.
6558         (udivmodqi4): Likewise.
6559
6560 2004-02-02  Richard Henderson  <rth@redhat.com>
6561
6562         PR target/13789
6563         * expr.c (store_expr): Use force_operand before emit_move_insn.
6564
6565 2004-02-02  Jeff Law  <law@redhat.com>
6566             Roger Sayle  <roger@eyesopen.com>
6567
6568         * tree.c (commutative_tree_code, associative_tree_code): New
6569         functions.
6570         (iterative_hash_expr): Use commutative_tree_code.
6571         * tree.h (commutative_tree_code, associative_tree_code): Declare.
6572         * fold-const.c (operand_equal_p): Use commutative_tree_code
6573         rather than inlining the commutativity check.
6574         (fold): Likewise.
6575
6576 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
6577
6578         * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
6579         * config/frv/frv-protos.h: Remove the prototype for
6580         frv_function_arg_keep_as_reference.
6581         * config/frv/frv.c (frv_function_arg_keep_as_reference):
6582         Remove.
6583         * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
6584         * config/stormy16/stormy16.h: Remove the commented-out
6585         definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
6586
6587 2004-02-03  Alan Modra  <amodra@bigpond.net.au>
6588
6589         PR target/13914
6590         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
6591         for retaddr_column.
6592
6593 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
6594
6595         * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
6596         gen_rtx.
6597
6598 2004-02-02  Eric Christopher  <echristo@redhat.com>
6599             Zack Weinberg  <zack@codesourcery.com>
6600
6601         * c-opts.c (c_common_handle_option): Add -finput-charset.
6602         * c.opt: Ditto.
6603         * cppcharset.c (one_iso88591_to_utf8): Remove.
6604         (convert_iso88591_utf8): Ditto.
6605         (conversion_tab): Remove 8859-1 converter.
6606         (_cpp_input_to_utf8): Remove.
6607         (_cpp_init_iconv_buffer): Ditto.
6608         (_cpp_close_iconv_buffer): Ditto.
6609         (_cpp_convert_input): New function.
6610         (_cpp_default_encoding): Ditto.
6611         * cpphash.h: Add/remove prototypes for above.
6612         * cppfiles.c (read_file_guts): Use _cpp_convert_input.
6613         * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
6614         for narrow execution and input character sets.
6615         * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
6616         * doc/cppopts.texi: Document -finput-charset.
6617
6618 2004-02-02  David Edelsohn  <edelsohn@gnu.org>
6619
6620         * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
6621         against FIRST_PSEUDO_REGISTER.
6622
6623 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
6624
6625         * doc/invoke.texi (SPARC options): Further improve.
6626
6627 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
6628
6629         * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
6630         config/h8300/h8300.c, config/ip2k/ip2k.md,
6631         config/iq2000/iq2000.c, config/mips/mips.c,
6632         config/rs6000/rs6000.c, config/rs6000/rs6000.md,
6633         config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
6634         config/v850/v850.md: Fix indentation.
6635
6636 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
6637
6638         * config/sparc/sparc.c (function_arg_slotno): Align TImode
6639         arguments on a 16-byte boundary in the parameter array if ARCH64.
6640         Split handling of TFmode.
6641
6642 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
6643
6644         * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
6645         Don't test CONSTANT_P (x).
6646         (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
6647         ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
6648         Fix misindentation.
6649
6650 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
6651
6652         * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
6653
6654 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
6655
6656         * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
6657         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
6658         config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
6659         config/iq2000/iq2000.c, config/m32r/m32r.c,
6660         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
6661         config/mn10300/mn10300.c, config/rs6000/rs6000.c,
6662         config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
6663         config/stormy16/stormy16.c, config/v850/v850.md,
6664         config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
6665
6666 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
6667
6668         * config/mcore/mcore.c (block_move_sequence): Replace
6669         gen_rtx_CONST_INT with GEN_INT.
6670
6671 2004-02-02  Jan Hubicka  <jh@suse.cz>
6672
6673         * alias.c (record_set): Use hard_regno_nregs.
6674         * bt-load.c (find_btr_reference, note_btr_set): Likewise.
6675         * builtins.c (apply_args_size): Likewise.
6676         * caller-save.c (setup_save_areas, save_call_clobbered_regs,
6677         mark_set_regs, add_stored_regs, mark_referenced_regs,
6678         insert_restore, insert_save, insert_one_insn): Likewise.
6679         * cfgcleanup.c: Include regs.h
6680         (mark_effect, mentions_nonequal_regs): Likewise.
6681         * cfgrtl.c (mark_killed_regs): Likewise
6682         * combine.c (update_table_tick, record_value_for_reg,
6683         record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
6684         reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
6685         reg_bitfield_target_p, distribute_notes): Likewise.
6686         * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
6687         exp_equiv_p, cse_insn): Likewise.
6688         * cselib.c (cselib_lookup): Likewise.
6689         (cselib_invalidate_regno, cselib_record_set): Likewise.
6690         * df.c (df_ref_record): Likewise.
6691         * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
6692         Likewise.
6693         * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
6694         count_or_remove_death_notes_bb): Likewise.
6695         * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
6696         * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
6697         mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
6698         * integrate.c (mark_stores): Likewise.
6699         * jump.c (delete_prior_computation): Likewise.
6700         * lcm.c (reg_dies, reg_becomes_live): Likewise.
6701         * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
6702         * loop.c (LOOP_REGNO_NREGS): Likewise.
6703         * postreload.c (reload_combine, reload_combine_note_store,
6704         reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
6705         * ra-colorize.c (combine, color_usable_p, get_free_reg,
6706         calculate_dont_begin, calculate_dont_begin, colorize_one_web,
6707         try_recolor_web, insert_coalesced_conflicts, check_colors,
6708         break_precolored_alias): Likewise.
6709         * ra-debug.c: Include regs.h
6710         (ra_print_rtx_object): Likewise.
6711         * ra-rewrite (choose_spill_colors): Likewise.
6712         (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
6713         * ra.c (init_ra): Likewise.
6714         * recog.c (reg_fits_class_p, peep2_reg_dead_p,
6715         peep2_find_free_register): Likewise.
6716         * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
6717         * regclass.c (hard_regno_nregs): New array.
6718         (init_reg_modes_once): Initialize it.
6719         (choose_hard_reg_mode): Use it.
6720         (record_reg_classes): Likewise.
6721         * regmove.c (mark_flags_life_zones): Likewise.
6722         * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
6723         scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
6724         copy_value, maybe_mode_change, find_oldest_value_reg,
6725         copyprop_hardreg_forward_1):
6726         * regs.h (hard_regno_nregs): Declare.
6727         * realod.c (reload_inner_reg_of_subreg): Use it.
6728         (push_reload, combine_reloads, find_dummy_reload,
6729         hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
6730         refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
6731         reload_adjust_reg_for_mode): Likewise.
6732         * reload1.c (compute_use_by_pseudos, count_pseudo,
6733         count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
6734         spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
6735         clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
6736         allocate_reload_reg, choose_reload_regs, emit_reload_insns,
6737         delete_output_reload): Likewise.
6738         * resource.c (update_live_status, mark_referenced_resources,
6739         mark_set_resources, mark_target_live_regs): Likewise.
6740         * rtlanal.c:  Include regs.h
6741         (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
6742         dead_or_set_regno_p, find_regno_note, find_reg_fusage,
6743         subreg_regno_offset, subreg_offset_representable_p,
6744         hoist_test_store): Likewise.
6745         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
6746         * sched-rgn.c (check_live_1, update_live_1): Likewise.
6747         * stmt.c: Include regs.h
6748         (decl_conflicts_with_clobbers_p): Likewise.
6749         * varasm.c (make_decl_rtl): Likewise.
6750         * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
6751
6752 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
6753
6754         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
6755         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
6756         config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
6757         config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
6758         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
6759         config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
6760         config/iq2000/iq2000.h, config/m32r/m32r.c,
6761         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6762         config/m68hc11/m68hc11.md, config/m68k/m68k.md,
6763         config/mcore/mcore.c, config/mcore/mcore.h,
6764         config/mcore/mcore.md, config/mips/mips.c,
6765         config/ns32k/ns32k.h, config/ns32k/ns32k.md,
6766         config/rs6000/rs6000.c, config/s390/s390.c,
6767         config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
6768         config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
6769         "gen_rtx (FOO, " with "gen_rtx_FOO (".
6770
6771 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
6772
6773         * config/h8300/h8300.md (two peephole2's): New.
6774
6775 2004-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
6776
6777         * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
6778         (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
6779         (ASM_CPU_SPEC): Likewise
6780         * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
6781         (ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.
6782
6783 2004-02-01  Roger Sayle  <roger@eyesopen.com>
6784
6785         * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
6786         isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
6787         (expand_builtin): Always call expand_builtin_pow.
6788
6789 2004-02-01  Roger Sayle  <roger@eyesopen.com>
6790
6791         * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
6792         BUILT_IN_SIGNBITL): New GCC builtins.
6793         * builtins.c (expand_builtin_signbit): New function to RTL expand
6794         calls to signbit, signbitf and signbitl as inline intrinsics.
6795         (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
6796         (fold_builtin_signbit): New function to perform constant folding
6797         of signbit, signbitf and signbitl.
6798         (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
6799
6800         * doc/extend.texi: Document new signbit{,f,l} builtins.
6801
6802 2004-02-01  Richard Sandiford  <rsandifo@redhat.com>
6803
6804         * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
6805
6806 2004-02-01  Chris Demetriou  <cgd@broadcom.com>
6807
6808         * config/mips/mips.h (PREDICATE_CODES): Remove entries for
6809         "mips_const_double_ok" and "simple_memory_operand", which were
6810         removed from the MIPS port with the mips-3_4-rewrite branch merge.
6811         * config/mips/mips.c (mips16_lay_out_constants): Update comment
6812         for removal of simple_memory_operand.
6813
6814 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6815
6816         * config/c4x/c4x.md: Use GEN_INT instead of
6817         gen_rtx (CONST_INT, ...).
6818
6819 2004-01-31  Richard Henderson  <rth@redhat.com>
6820
6821         * varasm.c (output_constant_pool): Don't zap the pool.
6822
6823 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6824
6825         * genrecog.c (decision_type): Add DT_const_int.
6826         (write_cond) [DT_const_int]: Print a comparison against small
6827         constant.
6828         (write_node): Simplify comparisons against small constants
6829         before printing tests.
6830
6831 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6832
6833         * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
6834         instead of gen_rtx_CONST_INT.
6835
6836 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6837
6838         * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
6839         instead of gen_rtx_CONST_INT.
6840
6841 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6842
6843         * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
6844         hook_bool_CUMULATIVE_ARGS_false.
6845         * targhooks.c (default_strict_argument_naming): Rename to
6846         hook_bool_CUMULATIVE_ARGS_false.
6847         * targhooks.h: Update the prototype for
6848         default_strict_argument_naming.
6849
6850 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6851
6852         * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
6853         * config/sh/sh.h: Likewise.
6854         * config/sh/sh.md: Likewise.
6855
6856 2004-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
6857
6858         * doc/invoke.texi (SPARC options): Restructure and update.
6859
6860 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6861
6862         * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
6863         STRICT_ARGUMENT_NAMING): Poison.
6864         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
6865         hook_bool_tree_false.
6866         * targhooks.c (default_promote_function_args): Remove.
6867         (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
6868         Don't check incoming.
6869         (default_strict_argument_naming): Don't use
6870         STRICT_ARGUMENT_NAMING.
6871         * targhooks.h: Remove the prototype for
6872         default_promote_function_args.
6873
6874 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6875
6876         * config/i386/i386-protos.h: Remove the prototype for
6877         ix86_setup_incoming_varargs.
6878         * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
6879         (ix86_setup_incoming_varargs): Make it static.
6880         * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
6881
6882 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6883
6884         * alloc-pool.c: Fix comment typos.
6885         * builtin-types.def: Likewise.
6886         * builtins.def: Likewise.
6887         * c-pretty-print.c: Likewise.
6888         * df.h: Likewise.
6889         * reload1.c: Likewise.
6890
6891 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6892
6893         * doc/invoke.texi: Follow spelling conventions.
6894         * doc/tm.texi: Likewise.
6895
6896 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6897
6898         * doc/install.texi: Fix typos.
6899         * doc/invoke.texi: Likewise.
6900
6901 2004-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
6902
6903         * config/s390/s390.c (s390_decompose_address): Do not treat virtual
6904         registers as pointers.
6905         * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
6906
6907 2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
6908
6909         * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
6910         and restore it to gen_lowpart_general on exit.
6911         (gen_lowpart_for_combine): Adjust all callers to go through
6912         gen_lowpart.
6913         * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
6914         and restore it to gen_lowpart_general on exit.
6915         (gen_lowpart_if_possible): Adjust all callers to go through
6916         gen_lowpart.
6917         * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
6918         (gen_lowpart): Declare as pointer to function, initialized to
6919         gen_lowpart_general.
6920         * rtl.h (gen_lowpart): Declare as pointer to function.
6921
6922 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
6923
6924         * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
6925         * calls.c: Likewise.
6926         * emit-rtl.c: Likewise.
6927         * function.c: Likewise.
6928         * reload1.c: Likewise.
6929         * config/i386/cygming.h: Likewise.
6930         * config/i386/i386.c: Likewise.
6931         * config/i386/winnt.c: Likewise.
6932
6933 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
6934
6935         PR bootstrap/9249
6936         * doc/install.texi: document --enable-__cxa_atexit option.
6937         * configure.ac: Disable __cxa_atexit if not supported.
6938         * configure: Regenerate.
6939
6940 2003-01-30  Daniel Berlin  <dberlin@dberlin.org>
6941
6942         * ggc-zone.c (ggc_free): New function.
6943
6944 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
6945
6946         alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
6947         cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
6948         flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
6949         ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
6950         tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
6951         config/alpha/alpha.c, config/alpha/alpha.h,
6952         config/alpha/alpha.md, config/alpha/unicosmk.h,
6953         config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
6954         config/c4x/c4x-protos.h, config/c4x/c4x.md,
6955         config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
6956         config/frv/frvend.c, config/i386/cygming.h,
6957         config/i386/djgpp.h, config/i386/emmintrin.h,
6958         config/i386/gthr-win32.c, config/i386/i386-interix.h,
6959         config/i386/i386-protos.h, config/i386/openbsd.h,
6960         config/i386/winnt.c, config/i386/xm-mingw32.h,
6961         config/i386/xmmintrin.h, config/ia64/ia64.md,
6962         config/iq2000/iq2000.md, config/m32r/m32r.md,
6963         config/m68k/m68k.md, config/mcore/mcore-elf.h,
6964         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
6965         config/mips/iris5gas.h, config/mips/iris6.h,
6966         config/mips/iris6gas.h, config/mips/linux.h,
6967         config/mips/mips.md, config/mips/netbsd.h,
6968         config/mips/openbsd.h, config/mips/windiss.h,
6969         config/pa/fptr.c, config/rs6000/aix.h,
6970         config/rs6000/altivec.h, config/rs6000/darwin.h,
6971         config/rs6000/xcoff.h, config/s390/s390-protos.h,
6972         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
6973         config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
6974         config/sparc/sol2.h: Update copyright.
6975
6976 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
6977
6978         * Makefile.in (abs_docdir, abs_srcdir): Define.
6979         (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
6980
6981 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
6982
6983         * genconfig.c (main): Have CC0_P check its operand even on a
6984         target without cc0.
6985
6986 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
6987
6988         * config/alpha/alpha.c: Remove mentions of deprecates macros
6989         in comments, remove some target-independent comments about target
6990         macros, and/or add minimal function comments for target hook
6991         implementations.
6992         * config/avr/avr.c: Likewise.
6993         * config/ia64/ia64.h: Likewise.
6994         * config/ip2k/ip2k.c: Likewise.
6995         * config/iq2000/iq2000.c: Likewise.
6996         * config/m32r/m32r.h: Likewise.
6997         * config/m68hc11/m68hc11.c: Likewise.
6998         * config/mcore/mcore.c: Likewise.
6999         * config/mmix/mmix.c: Likewise.
7000         * config/mn10300/mn10300.c: Likewise.
7001         * config/pa/pa.c: Likewise.
7002         * config/pdp11/pdp11.c: Likewise.
7003         * config/rs6000/rs6000.h: Likewise.
7004         * config/sh/sh.c: Likewise.
7005         * config/sh/sh.h: Likewise.
7006         * config/sparc/sparc.c: Likewise.
7007         * config/sparc/sparc.h: Likewise.
7008         * config/stormy16/stormy16.c: Likewise.
7009         * config/xtensa/xtensa.c: Likewise.
7010
7011 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
7012
7013         PR optimization/12147
7014         * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
7015         RELOAD_FOR_OPADDR_ADDR.
7016         (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
7017         might be reused as RELOAD_FOR_OPADDR_ADDR register.
7018
7019 2004-01-30  Jan Hubicka  <jh@suse.cz>
7020
7021         * reload.c (get_secondary_mem): Fix updating of
7022         secondary_memlocs_elim_used.
7023
7024 2004-01-30  Richard Henderson  <rth@redhat.com>
7025
7026         * varasm.c (struct rtx_const, struct pool_constant): Remove.
7027         (MAX_RTX_HASH_TABLE): Remove.
7028         (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
7029         (first_pool, last_pool, pool_offset): Remove.
7030         (struct rtx_constant_pool): Split out from ...
7031         (struct varasm_status): ... here.  Reference one via pointer.
7032         (struct constant_descriptor_rtx): Merge struct pool_constant.
7033         (SYMHASH): Remove.
7034         (decode_rtx_const): Remove.
7035         (const_hash_rtx, compare_constant_rtx): Remove.
7036         (record_constant_rtx): Remove.
7037         (const_desc_rtx_hash, const_desc_rtx_eq): New.
7038         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
7039         (const_rtx_hash_1, const_rtx_hash): New.
7040         (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
7041         (simplify_subtraction): Use simplify_rtx.
7042         (force_const_mem): Rewrite to use new data structures.
7043         (find_pool_constant): Likewise.
7044         (get_pool_constant, get_pool_constant_mark,
7045         get_pool_constant_for_function, get_pool_mode,
7046         get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
7047         (output_constant_pool_2): Split out from output_constant_pool.
7048         (output_constant_pool_1): Likewise.  Use new pool datastructures.
7049         (output_constant_pool): Zap entire pool datastructure.
7050         (mark_constant): Use new pool datastructures.
7051         (mark_constants): Use for_each_rtx.
7052         (mark_constant_pool): Use new pool datastructures.
7053
7054 2004-01-30  Fariborz Jahanian <fjahanian@apple.com>
7055
7056         * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
7057         Copy operands[1] to pseudo for simplify_gen_subreg.
7058
7059 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7060
7061         * gcse.c (bypass_block): Fix a typo in the previous check-in
7062         to the file.
7063
7064 2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
7065
7066         * toplev.c: Include alloc-pool.h.
7067         * Makefile.in (toplev.c): Update dependencies.
7068
7069 2004-01-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7070
7071         * combine.c (simplify_shift_const, case XOR): Be careful when
7072         commuting XOR with ASHIFTRT.
7073
7074 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
7075             Eric Botcazou  <ebotcazou@libertysurf.fr>
7076
7077         * config/sparc/sparc-protos.h: Remove the prototype for
7078         sparc_builtin_saveregs.
7079         * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7080         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7081         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7082         (TARGET_STRUCT_VALUE_RTX): Likewise.
7083         (TARGET_RETURN_IN_MEMORY): Likewise.
7084         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7085         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7086         (sparc_builtin_saveregs): Make it static.
7087         (sparc_promote_prototypes): New.
7088         (sparc_struct_value_rtx): Likewise.
7089         (sparc_return_in_memory): Likewise.
7090         * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
7091         (PROMOTE_FUNCTION_RETURN): Likewise.
7092         (RETURN_IN_MEMORY): Likewise.
7093         (STRUCT_VALUE): Likewise.
7094         (STRUCT_VALUE_INCOMING): Likewise.
7095         (EXPAND_BUILTIN_SAVEREGS): Likewise.
7096         (STRICT_ARGUMENT_NAMING): Likewise.
7097         (PROMOTE_PROTOTYPES): Likewise.
7098
7099         * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
7100
7101 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7102
7103         PR c/12818
7104         * varasm.c (const_hash_1) <STRING_CST>: Use the
7105         address to compute the hash value if flag_writable_strings.
7106         (compare_constant) <STRING_CST>: Compare the addresses
7107         if flag_writable_strings.
7108         (build_constant_desc): Do not copy the expression for a
7109         STRING_CST if flag_writable_strings.
7110
7111 2004-01-30  Jan Hubicka  <jh@suse.cz>
7112
7113         * alloc-pool.c: Include hashtab.h
7114         (alloc_pool_descriptor): New structure
7115         (alloc_pool_hash): New global variable.
7116         (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
7117         (create_alloc_pool): Update statistics.
7118         (free_alloc_pool): Likewise.
7119         (pool_alloc): Likewise.
7120         (output_info): New structure
7121         (print_statistics, dump_alloc_pool_statistics): New function.
7122         * alloc-pool.h (alloc_pool_def): Turn name to be constant.
7123         (dump_alloc_pool_statistics): Declare.
7124         * toplev.c (finalize):  Dump statistics.
7125
7126         * reload.c (secondary_memlocs_elim_used): New static variable.
7127         (get_secondary_mem): Update it.
7128         (find_reloads): Use it.
7129
7130 2004-01-30  Steven Bosscher <s.bosscher@student.tudelft.nl>
7131
7132         * toplev.c: Fix broken checkin of 2003-12-30, again.
7133
7134 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
7135
7136         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
7137         s390*-*-* targets by specifying a 'nop' insn.
7138         * configure: Regenerate.
7139
7140 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
7141
7142         PR target/11475
7143         * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
7144
7145 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
7146
7147         * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
7148         of addr when creating MEM copy.
7149
7150 2004-01-29  Devang Patel  <dpatel@apple.com>
7151
7152         * dwarf2out.c (gen_field_die): Do not equate decl number to die.
7153
7154 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
7155
7156         PR inline-asm/6162
7157         * reload.c (find_reloads): Only support one pair of commutative
7158         operands.
7159
7160 2004-01-29  Roger Sayle  <roger@eyesopen.com>
7161
7162         PR java/13824
7163         * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
7164         as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
7165         recursion.
7166
7167 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
7168
7169         * config/frv/frv.c: Don't mention deprecated macros in
7170         comments.  Remove some target-independent comments about
7171         target macros.
7172         * config/frv/frv.h: Likewise.
7173
7174 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7175
7176         * cfghooks.c (split_block): Set probability and count of the
7177         new edge.
7178
7179 2005-01-29  Josef Zlomek  <zlomekj@suse.cz>
7180
7181         * dwarf2out.c (struct die_struct): Added field decl_id.
7182         (decl_die_table): Changed to hash table.
7183         (decl_die_table_allocated): Deleted.
7184         (decl_die_table_in_use): Deleted.
7185         (DECL_DIE_TABLE_INCREMENT): Deleted.
7186         (decl_die_table_hash): New function.
7187         (decl_die_table_eq): New function.
7188         (lookup_decl_die): Lookup in a hash table.
7189         (equate_decl_number_to_die): Insert into a hash table.
7190         (dwarf2out_init): Init hash table decl_die_table.
7191
7192 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
7193
7194         PR optimization/13424
7195         * expr.c (store_constructor): Revert 2003-12-03 change.
7196
7197         * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
7198         expected before returning early.  Avoid sharing RTL if they
7199         need to be changed.
7200
7201         * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
7202         handling so that memory attributes are preserved.  Don't call
7203         ix86_set_move_mem_attrs.
7204         (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
7205         (ix86_expand_clrstr): Rename src argument to
7206         dst.  Rework rep_stos and strset handling so that memory attributes
7207         are preserved.
7208         (ix86_expand_strlen): Pass src argument to
7209         ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
7210         memory attributes are preserved.
7211         (ix86_expand_strlensi_unroll_1): Add src argument.  Use
7212         change_address instead of gen_rtx_MEM.
7213         * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
7214         expanders.
7215         (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
7216         strmovqi, strmovqi_rex64): Remove.
7217         (rep_mov*, strmov*): Prefix insn names with *.
7218         (strset, strset_singleop, rep_stos): New expanders.
7219         (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
7220         strsetqi, strsetqi_rex64): Remove.
7221         (rep_stos*, strset*): Prefix insn names with *.
7222         (rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
7223         to SImode.
7224         (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
7225         are preserved.
7226         (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
7227         Prefix insn names with *.
7228         (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
7229         (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
7230         (strlenqi_1): New expander.
7231         * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
7232
7233 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7234
7235         * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
7236         * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
7237         verify_flow_info): Declaration removed.
7238         * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
7239         (debug_bb, debug_bb_n): Add argument to dump_bb call.
7240         * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
7241         try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
7242         instead of delete_block.
7243         * cfghooks.c: Include timevar.h and toplev.h.
7244         (cfg_hooks): Define here.
7245         (verify_flow_info, dump_bb): Moved from cfg.c.
7246         (redirect_edge_and_branch, redirect_edge_and_branch_force,
7247         split_block, split_block_after_labels, move_block_after,
7248         delete_basic_block, split_edge, create_basic_block,
7249         create_empty_bb, can_merge_blocks_p, merge_blocks,
7250         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
7251         New functions.
7252         * cfghooks.h (struct cfg_hooks): Added fields name,
7253         make_forwarder_block, tidy_fallthru_edge and
7254         move_block_after. Changed type of verify_flow_info, dump_bb,
7255         split_block fields. Renamed cfgh_split_edge and delete_block
7256         fields.
7257         (redirect_edge_and_branch, redirect_edge_and_branch_force,
7258         split_block, delete_block, split_edge, create_basic_block,
7259         can_merge_blocks_p, merge_blocks): Macros removed.
7260         (cfg_hooks): Do not export.
7261         (verify_flow_info, dump_bb, redirect_edge_and_branch,
7262         redirect_edge_and_branch_force, split_block, split_block_after_labels,
7263         move_block_after, delete_basic_block, split_edge, create_basic_block,
7264         create_empty_bb, can_merge_blocks_p, merge_blocks,
7265         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
7266         Declare.
7267         (cfg_layout_rtl_cfg_hooks): Declare.
7268         * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
7269         New functions.
7270         (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
7271         (redirect_edge_with_latch_update): Removed.
7272         (make_forwarder_block): Moved to cfghooks.c, semantics changed.
7273         * cfgloopmanip.c (remove_bbs): Do not update dominators here.
7274         * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
7275         rtl_delete_block, rtl_split_block, rtl_merge_blocks,
7276         tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
7277         cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
7278         cfghooks.c.
7279         (rtl_create_basic_block): Coding style fix.
7280         (rtl_tidy_fallthru_edge, rtl_move_block_after,
7281         rtl_make_forwarder_block): New functions.
7282         (update_cfg_after_block_merging): Removed.
7283         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
7284         * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
7285         to dump_bb.
7286         * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
7287         find_if_case_2): Don't update dominators.
7288         * timevar.def (TV_CFG_VERIFY): New.
7289         * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
7290         * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
7291         * cfgloopmanip.c (split_loop_bb): Don't update dominators.
7292         (remove_bbs): Don't call remove_bbs.
7293         (create_preheader): Use make_forwarder_block.
7294         (mfb_keep_just, mfb_update_loops): New static functions.
7295
7296 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
7297
7298         * config/avr/avr.h: Remove target-independent comments about
7299         target macros.
7300
7301 2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
7302
7303         * timevar.c (timevar_print): Mention when checking is enabled.
7304
7305 2004-01-28  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
7306
7307         * c-lex.c (c_lex): Rename to...
7308         (c_lex_with_flags): Add new parameter to get CPP flags.
7309         (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
7310         * c-pragma.h (c_lex_with_flags): Declare.
7311
7312 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7313
7314         * config/mcore/mcore.c (mcore_external_libcall): Add a
7315         comment.
7316         (mcore_return_in_memory): Likewise.
7317
7318 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7319
7320         * config/mcore/mcore-protos.h: Remove the prototype for
7321         mcore_setup_incoming_varargs.
7322         * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
7323         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
7324         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7325         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7326         (TARGET_STRUCT_VALUE_RTX): Likewise.
7327         (TARGET_RETURN_IN_MEMORY): Likewise.
7328         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7329         (mcore_setup_incoming_varargs): Make it static.  Receive the
7330         first argument by reference.  Add argument second_time.
7331         (mcore_external_libcall): New.
7332         (mcore_return_in_memory): Likewise.
7333         * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
7334         (PROMOTE_FUNCTION_RETURN): Likewise.
7335         (STRUCT_VALUE): Likewise.
7336         (RETURN_IN_MEMORY): Likewise.
7337         (SETUP_INCOMING_VARARGS): Likewise.
7338         (PROMOTE_PROTOTYPES): Likewise.
7339         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7340
7341 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7342
7343         * config/m32r/m32r-protos.h: Remove the prototype for
7344         m32r_setup_incoming_varargs.
7345         * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
7346         (TARGET_STRUCT_VALUE_RTX): Likewise.
7347         (TARGET_RETURN_IN_MEMORY): Likewise.
7348         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7349         (m32r_return_in_memory): New.
7350         (m32r_setup_incoming_varargs): Make it static.
7351         * config/m32r/m32r.h: Remove #undef of
7352         ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
7353         definitions of PROMOTE_FUNCTION_ARGS and
7354         PROMOTE_FUNCTION_RETURN.
7355         (PROMOTE_PROTOTYPES): Remove.
7356         (RETURN_IN_MEMORY): Likewise.
7357         (STRUCT_VALUE): Likewise.
7358
7359 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7360
7361         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
7362         (TARGET_STRUCT_VALUE_RTX): Likewise.
7363         (m68k_struct_value_rtx): Likewise.
7364         * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
7365         STRUCT_VALUE_REGNUM.
7366         (PROMOTE_PROTOTYPES): Remove.
7367         * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
7368         STRUCT_VALUE_REGNUM.
7369         * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
7370         * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
7371
7372 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7373
7374         * config/stormy16/stormy16.c
7375         (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
7376         TARGET_BUILD_BUILTIN_VA_LIST.
7377
7378 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7379
7380         * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
7381         (TARGET_STRUCT_VALUE_RTX): Likewise.
7382         (TARGET_RETURN_IN_MEMORY): Likewise.
7383         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7384         (v850_return_in_memory): Likewise.
7385         (v850_setup_incoming_varargs): Likewise.
7386         * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
7387         (SETUP_INCOMING_VARARGS): Likewise.
7388         (RETURN_IN_MEMORY): Likewise.
7389         (STRUCT_VALUE): Likewise.
7390
7391 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7392
7393         * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
7394         (fr30_setup_incoming_varargs): Don't use
7395         STRICT_ARGUMENT_NAMING.
7396         * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
7397         (STRICT_ARGUMENT_NAMING): Likewise.
7398
7399 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7400
7401         * config/frv/frv-protos.h: Remove the prototype for
7402         frv_expand_builtin_saveregs.
7403         * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
7404         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7405         (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
7406         STRUCT_VALUE_REGNUM.
7407         (frv_expand_builtin_saveregs): Make it static.
7408         (frv_struct_value_rtx): New.
7409         * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
7410
7411 2004-01-29  Jan Hubicka  <jh@suse.cz>
7412
7413         PR c++/12850
7414         * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
7415         initial pointers.
7416         * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
7417         for functions that will be only inlined.
7418         (cgraph_mark_function_to_output): Likewise.
7419         (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
7420         do not clear function body.
7421         * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
7422         (tree_rest_of_compilation): Reorganize the logic releasing function
7423         body to use callgraph datastructure.
7424
7425 2004-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7426
7427         * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
7428         to register_operand.
7429
7430 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
7431
7432         * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
7433         (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
7434         match_operand expressions so that all match_dups appear
7435         lexically after their corresponding match_operands.
7436
7437 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7438
7439         * config/h8300/h8300.c (WORD_REG_USED): Use
7440         HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
7441         (compute_saved_regs): Likewise.
7442         (h8300_expand_prologue): Likewise.  Allocate locals after
7443         saving registers.
7444         (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
7445         of FRAME_POINTER_REGNUM.  Deallocate locals before saving
7446         registers.
7447         (h8300_initial_elimination_offset): Adjust for the new frame
7448         layout, which swaps flips the order of locals and saved
7449         registers.
7450         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
7451         (HARD_FRAME_POINTER_REGNUM): New.
7452         (ELIMINABLE_REGS): Add an elimination rule from
7453         FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
7454         (REGISTER_NAMES): Add fp.
7455         * config/h8300/h8300.md (FP_REG): Change to 11.
7456         (HFP_REG): New.
7457
7458 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7459
7460         * genrecog.c (write_node): Remove a useless local variable.
7461
7462 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
7463
7464         * Makefile.in (options.c options.h): Use stamp file s-options to
7465         avoid unnecessary rebuilds.
7466         (options.o): New target listing dependencies.
7467         (gtyp-gen.h): Use stamp file s-gtyp-gen.
7468         (STAGESTUFF): Add s-gtyp-gen.
7469
7470 2004-01-28  Richard Henderson  <rth@redhat.com>
7471
7472         * ggc.h (ggc_free): Declare.
7473         * ggc-common.c (ggc_realloc): Use it.
7474         * ggc-page.c: Remove lots of inline markers.
7475         (globals): Add free_object_list.
7476         (ggc_alloc): Tidy.
7477         (ggc_free, validate_free_objects): New.
7478         (poison_pages): Provide default.
7479         (ggc_collect): Call validate_free_objects; emit markers to
7480         the debug file.
7481
7482 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
7483             Jim Wilson  <wilson@specifixinc.com>
7484
7485         * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
7486         Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
7487         scratch pointer.
7488         (ia64_secondary_reload_class): Delete case GR_REGS.
7489         * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
7490         Do not allocate a scratch register.
7491         (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
7492
7493 2004-01-28  Jan Hubicka  <jh@suse.cz>
7494
7495         * gcse.c (bypass_block): Prevent edges to be unified when we are
7496         about to emit compenstation code.
7497
7498 2004-01-28  Nick Clifton  <nickc@redhat.com>
7499
7500         * config/arm/arm.c (arm_expand_builtin): Force second argument of
7501         the setcwx insn into a register.
7502
7503 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
7504
7505         * config/fp-bit.c (pack_d): When using paired doubles to implement
7506         a long double, round the high part separately.
7507         (unpack_d): Fix the case in which the high part is a power of two
7508         and the low part is a nonzero value of the opposite sign.
7509
7510 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7511
7512         * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
7513         (TARGET_STRUCT_VALUE_RTX): Likewise.
7514         (c4x_external_libcall): Likewise.
7515         (c4x_struct_value_rtx): Likewise.
7516         * config/c4x/c4x.h: Remove.
7517         (STRUCT_VALUE_REGNUM): Likewise.
7518         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7519
7520 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
7521
7522         * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
7523         (TARGET_STRUCT_VALUE_RTX): Likewise.
7524         * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
7525         (STRUCT_VALUE): Likewise.
7526         (PROMOTE_PROTOTYPES): Likewise.
7527
7528 2004-01-27  Roger Sayle  <roger@eyesopen.com>
7529
7530         * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
7531         CONST_INT before using INTVAL.
7532
7533 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
7534
7535         * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
7536         * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
7537         frame if !TARGET_BACKCHAIN.
7538         * config/s390/s390.md ("allocate_stack"): Use pattern only if
7539         TARGET_BACKCHAIN.
7540         * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
7541
7542 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
7543
7544         * ia64.c (ia64_function_arg): When placing HFAs in integer
7545         registers, do not special case the mode used for complex
7546         types.  Do not advance int_regs until the current register
7547         is full.
7548
7549 2004-01-27  Richard Sandiford  <rsandifo@redhat.com>
7550
7551         PR target/7297
7552         * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
7553
7554 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
7555
7556         * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
7557         slow, unaligned loads and stores while debugging.  Fix formatting.
7558
7559 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
7560
7561         * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
7562         of computing wmode.
7563         (restore_stack_nonlocal): Same.
7564
7565 2004-01-27  Devang Patel <dpatel@apple.com>
7566
7567         * Makefile.in (dwarf2out.o): Depend on input.h
7568         * dbxout.c (dbx_debug_hooks): Add new empty hook for
7569         imported_module_or_decl.
7570         (xcoff_debug_hooks): Same.
7571         * sdbout.c (sdb_debug_hooks): Same.
7572         * vmsdbgout.c (vmsdbg_debug_hooks): Same.
7573         * debug.c (do_nothing_debug_hooks): Same.
7574         (debug_nothing_tree_tree): New function.
7575         * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
7576         * dwarf2out.c: Include input.h.
7577         (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
7578         (remove_child_TAG): New function.
7579         (dwarf_tag_name): Handle DW_TAG_imported_module.
7580         (gen_subprogram_die): Equate decl number to declaration die. Do not
7581         remove all children dies while reusing declaration die for definition.
7582         Instead, selectively remove only formal parameters.
7583         (gen_variable_die): Equate variable decl to declaration die.
7584         (gen_field_die): Equate field decl to line number.
7585         (force_namespace_die): Replace it with ...
7586         (force_decl_die): ... this.
7587         (force_type_die): New function.
7588         (setup_namespace_context): Replace use of force_namespace_die() with
7589         force_decl_die().
7590         (gen_namespace_die): Same.
7591         (dwarf2out_imported_module_or_decl): New function.
7592
7593 2004-01-27  Bob Wilson  <bob.wilson@acm.org>
7594
7595         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
7596         on CQImode and CHImode incoming arguments in register a7.
7597         (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
7598         * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
7599         * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
7600         xtensa_copy_incoming_a7 before reload.
7601
7602 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
7603
7604         * coverage.c (get_coverage_counts): Give a different message
7605         if flag_guess_branch_prob is set.
7606         * predict.c (counts_to_freqs): Return an int.
7607         (estimate_bb_frequencies): If counts_to_freqs returns zero,
7608         calculate estimates.
7609
7610 2004-01-27  Kazu Hirata  <kazu@cs.umass.edu>
7611
7612         * config/iq2000/iq2000-protos.h: Remove the prototype for
7613         iq2000_setup_incoming_varargs.
7614         * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7615         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7616         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7617         (TARGET_STRUCT_VALUE_RTX): Likewise.
7618         (TARGET_RETURN_IN_MEMORY): Likewise.
7619         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7620         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7621         (iq2000_return_in_memory): Likewise.
7622         (iq2000_setup_incoming_varargs): Make it static.  Receive the
7623         first argument by reference.
7624         * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
7625         (PROMOTE_FUNCTION_RETURN): Likewise.
7626         (PROMOTE_PROTOTYPES): Likewise.
7627         (RETURN_IN_MEMORY): Likewise.
7628         (STRUCT_VALUE): Likewise.
7629         (SETUP_INCOMING_VARARGS): Likewise.
7630         (STRICT_ARGUMENT_NAMING): Likewise.
7631
7632 2004-01-24  James A. Morrison  <ja2morri@uwaterloo.ca>
7633
7634         * fixinc/fixinc.c (test_test): Initialize res.
7635         (start_flexer): Initialize pz_cmd_save.
7636
7637 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
7638
7639         * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
7640         SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
7641
7642 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
7643
7644         PR 7198
7645         * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
7646         (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
7647         (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
7648         Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
7649         Possibly rename pattern for consistency.
7650         Remove ??? comments suggesting that this be done.
7651         (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
7652         New patterns.
7653         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
7654         (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
7655         (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
7656         (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
7657         Update to match.
7658
7659 2004-01-27  Ian Lance Taylor  <ian@wasabisystems.com>
7660
7661         * config/arm/arm.c (output_return_instruction): Only restore IP
7662         into SP if frame_pointer_needed.
7663
7664 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
7665
7666         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
7667         for SCmode and DCmode if ARCH32.
7668         (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
7669         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
7670         if ARCH32.
7671         (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
7672         if ARCH32.
7673         (BASE_OUTGOING_VALUE_REG): Likewise.
7674
7675 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
7676
7677         PR target/10904
7678         PR target/13058
7679         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
7680         Forbid mode changes from SImode for lower FP regs if ARCH64.
7681
7682 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
7683
7684         * Makefile.in (bt-load.o): Depend on except.h.
7685         * bt-load.c (except.h): #include.
7686         (compute_defs_uses_and_gen): If insn at end of BB can throw
7687         within this function, consider registers used by it unavailable for
7688         btr migration.
7689         (move_btr_def): If insn at end of BB can throw, insert before rather
7690         than after.
7691
7692         * flags.h (flag_btr_bb_exclusive): Declare.
7693         * toplev.c (flag_btr_bb_exclusive): New variable.
7694         (f_options): Add btr-bb-exclusive.
7695         * bt-load.c (augment_live_range): Restore old behaviour if
7696         flag_btr_bb_exclusive is set.
7697         * common.opt: Add entry for -fbtr-bb-exclusive.
7698         * opts.c (common_handle_options): Same.
7699         * doc/invoke.texi: Document -fbtr-bb-exclusive.
7700
7701         * bt-load.c (btrs_live_at_end): New variable.
7702         (compute_defs_uses_and_gen): Compute its pointed-to array.
7703         (clear_btr_from_live_range, add_btr_to_live_range): Update it.
7704         (augment_live_range): When augmenting with a new dominator,
7705         use only its btrs_live_at_end set, but also add in the full set
7706         of the old dominator.
7707         (btr_def_live_range): Use btrs_live_at_end.
7708         (move_btr_def): Set other_btr_uses_before_def, and move new set
7709         to the end of the basic block, if appropriate.
7710         (migrate_btr_defs): Allocate and free btrs_live_at_end.
7711
7712         * bt-load.c (basic_block_freq): Remove outdated comment.
7713
7714 2004-01-27  Alan Modra  <amodra@bigpond.net.au>
7715
7716         * config/rs6000/rs6000.h: Correct target_flags free bits comment.
7717         (PREDICATE_CODES): Remove duplicate.
7718         * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
7719         (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
7720         (MASK_PROFILE_KERNEL): Adjust define.
7721
7722 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
7723
7724         * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
7725         of long string literals from 32 bytes to sizeof (void *) when !-Os
7726         and to 1 with -Os.
7727
7728 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7729
7730         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
7731         constant addresses in the normal mode.
7732
7733 2004-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7734
7735         * system.h (CHAR_BITFIELD): Delete.
7736         (BOOL_BITFIELD): New.
7737         * c-decl.c (c_scope): Use BOOL_BITFIELD.
7738         * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
7739
7740 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7741
7742         * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7743         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7744         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7745         (TARGET_STRUCT_VALUE_RTX): Likewise.
7746         (TARGET_RETURN_IN_MEMORY): Likewise.
7747         (arc_return_in_memory): Likewise.
7748         * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
7749         (PROMOTE_FUNCTION_RETURN): Likewise.
7750         (RETURN_IN_MEMORY): Likewise.
7751         (STRUCT_VALUE): Likewise.
7752
7753 2004-01-26  Richard Henderson  <rth@redhat.com>
7754
7755         * c-parse.in (extension): Use itype.
7756         (SAVE_EXT_FLAGS): Don't allocate a tree.
7757         (RESTORE_EXT_FLAGS): Don't read a tree.
7758
7759 2004-01-26  Jan Hubicka  <jh@suse.cz>
7760
7761         * cselib.c (discard_useless_values):  Clear out value pointer pointing
7762         to datastructure to be recycled.
7763
7764 2004-01-25  Jan Hubicka  <jh@suse.cz>
7765
7766         * genextract.c (main): Do not output the memset when not checking.
7767
7768 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7769
7770         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
7771         switch statement instead of a chain of if statements.
7772
7773 2004-01-26  Jeff Law  <law@redhat.com>
7774
7775         * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
7776         acute accents for Petur Runolfsson's entry.
7777
7778 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7779
7780         * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
7781         (TARGET_RETURN_IN_MEMORY): Likewise.
7782         * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
7783         (RETURN_IN_MEMORY): Likewise.
7784
7785 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
7786
7787          * config/rs6000/rs6000.c (rs6000_emit_move): split slow
7788          unaligned load/store into smaller loads and stores.
7789
7790 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
7791
7792         * function.c (assign_parms): Do not assign
7793         long long argument to memory in prologue if
7794         is it loaded into register.
7795
7796 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
7797
7798          PR middle-end/13779
7799          * expr.c (emit_group_load): split constant
7800          correctly into register components of PARALLEL insn.
7801
7802 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
7803
7804         * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
7805         Use adjust_address_nv directly with appropriate mode.
7806         (restore_stack_nonlocal): Ditto.
7807
7808 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7809
7810         * config/xtensa/xtensa-protos.h: Remove the prototype for
7811         xtensa_builtin_saveregs.
7812         * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7813         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7814         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7815         (TARGET_STRUCT_VALUE_RTX): Likewise.
7816         (TARGET_RETURN_IN_MEMORY): Likewise.
7817         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7818         (xtensa_builtin_saveregs): Make it static.
7819         (xtensa_return_in_memory): New.
7820         * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
7821         (PROMOTE_FUNCTION_RETURN): Likewise.
7822         (PROMOTE_PROTOTYPES): Likewise.
7823         (STRUCT_VALUE): Likewise.
7824         (RETURN_IN_MEMORY): Likewise.
7825         (EXPAND_BUILTIN_SAVEREGS): Likewise.
7826
7827 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7828
7829         * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
7830         (arm_setup_incoming_varargs): Likewise.
7831         * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
7832
7833 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7834
7835         * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
7836         (cris_setup_incoming_varargs): Likewise.
7837         * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
7838
7839 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7840
7841         * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
7842         (ns32k_struct_value_rtx): Likewise.
7843         * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
7844         NS32K_STRUCT_VALUE_REGNUM.
7845
7846 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7847
7848         * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7849         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7850         (TARGET_STRUCT_VALUE_RTX): Likewise.
7851         (arm_struct_value_rtx): Likewise.
7852         * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
7853         (STRUCT_VALUE): Likewise.
7854         (STRUCT_VALUE_REGNUM): Likewise.
7855         (PROMOTE_PROTOTYPES): Likewise.
7856
7857 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
7858
7859         * config/ia64/ia64-protos.h: Remove the prototype for
7860         ia64_setup_incoming_varargs and ia64_return_in_memory.
7861         * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
7862         (TARGET_RETURN_IN_MEMORY): Likewise.
7863         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7864         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7865         (ia64_setup_incoming_varargs): Adjust the arguments to meet
7866         the requirement of TARGET_SETUP_INCOMING_VARARGS.
7867         (ia64_return_in_memory): Make it static.  Change the return
7868         type to bool from int.  Add an argument.
7869         (ia64_struct_value_rtx): New.
7870         * config/ia64/ia64.h: Remove commented-out definitions of
7871         PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
7872         PROMOTE_PROTOTYPES.
7873         (RETURN_IN_MEMORY): Remove.
7874         (STRUCT_VALUE_REGNUM): Likewise.
7875         (STRICT_ARGUMENT_NAMING): Likewise.
7876
7877 2004-01-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
7878
7879         PR target/13666
7880         * config/sparc/sparc.c (function_arg_union_value): New function.
7881         (function_arg): Use it to deal with unions.
7882         (function_value): Likewise.  Define 'regbase' only for ARCH64.
7883         Replace a conditional statement by a simpler one.
7884
7885 2004-01-26  Richard Sandiford  <rsandifo@redhat.com>
7886
7887         * config/mips/mips.c (mips16_optimize_gp): Delete.
7888         (mips_reorg): Don't call it.
7889
7890 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7891
7892         * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
7893         (floatunsqihf2): Remove operand 6.
7894         (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
7895         fix patterns.
7896         (ldi_conditional, ldf_conditional): Validate operands.
7897
7898 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7899
7900         * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
7901         (HAVE_GAS_HIDDEN): Undefine as interim measure.
7902
7903 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7904
7905         * config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
7906         memory references if TARGET_EXPOSE_LDP nonzero.
7907
7908 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7909
7910         * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
7911
7912 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7913
7914         * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
7915         invalid operand combinations.
7916
7917 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7918
7919         * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
7920         c4x_legitimate_address_p.  Fix post_modify check.
7921
7922         * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
7923         * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
7924
7925 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
7926
7927         * config/pa/pa-protos.h: Remove the prototype for
7928         hppa_builtin_saveregs.  Add a prototype for
7929         pa_return_in_memory.
7930         * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
7931         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7932         (TARGET_STRUCT_VALUE_RTX): Likewise.
7933         (TARGET_RETURN_IN_MEMORY): Likewise.
7934         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7935         (pa_struct_value_rtx): Likewise.
7936         (pa_return_in_memory): Likewise.
7937         * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
7938         PA_STRUCT_VALUE_REGNUM.
7939         (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
7940         (EXPAND_BUILTIN_SAVEREGS): Remove.
7941         (PROMOTE_PROTOTYPES): Likewise.
7942         (PROMOTE_FUNCTION_RETURN): Likewise.
7943
7944 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
7945
7946         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
7947         (TARGET_STRUCT_VALUE_RTX): Likewise.
7948         (vax_struct_value_rtx): Likewise.
7949         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
7950         VAX_STRUCT_VALUE_REGNUM.
7951         (PROMOTE_PROTOTYPES): Remove.
7952
7953 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7954
7955         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
7956
7957 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
7958
7959         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
7960         and MIPS64 have HI/LO interlocks.  Update comment.
7961
7962 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
7963
7964         * config/stormy16/stormy16-protos.h: Remove the prototype for
7965         xstormy16_setup_incoming_varargs.
7966         * config/stormy16/stormy16.c
7967         (xstormy16_setup_incoming_varargs): Remove.
7968         (xstormy16_return_in_memory): New.
7969         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
7970         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7971         (TARGET_PROMOTE_PROTOTYPES): Likewise.
7972         (TARGET_STRUCT_VALUE_RTX): Likewise.
7973         (TARGET_RETURN_IN_MEMORY): Likewise.
7974         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
7975         (PROMOTE_FUNCTION_RETURN): Likewise
7976         (PROMOTE_PROTOTYPES): Likewise
7977         (RETURN_IN_MEMORY): Likewise
7978         (STRUCT_VALUE): Likewise
7979         (SETUP_INCOMING_VARARGS): Likewise
7980
7981 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
7982
7983         * config/mips/mips.c (mips_offset_within_object_p): New function.
7984         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
7985         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
7986         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
7987
7988 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
7989
7990         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
7991         (PROMOTE_FUNCTION_RETURN): Likewise.
7992
7993 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
7994
7995         * config/mn10300/mn10300-protos.h: Remove the prototype for
7996         mn10300_builtin_saveregs.
7997         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
7998         (TARGET_STRUCT_VALUE_RTX): Likewise.
7999         (TARGET_RETURN_IN_MEMORY): Likewise.
8000         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8001         (mn10300_return_in_memory): Likewise.
8002         (mn10300_builtin_saveregs): Make it static.
8003         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
8004         (RETURN_IN_MEMORY): Likewise.
8005         (STRUCT_VALUE): Likewise.
8006         (EXPAND_BUILTIN_SAVEREGS): Likewise.
8007
8008 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
8009
8010         PR bootstrap/13853
8011         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
8012
8013 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8014
8015         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
8016         using ccr.
8017
8018 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8019
8020         * config/i860/i860-protos.h: Remove the prototype for
8021         i860_saveregs.
8022         * config/i860/i860.c (i860_saveregs): Make it static.
8023         (i860_struct_value_rtx): New.
8024         (TARGET_STRUCT_VALUE_RTX): Likewise.
8025         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8026         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
8027         I860_STRUCT_VALUE_REGNUM.
8028         (EXPAND_BUILTIN_SAVEREGS): Remove.
8029
8030 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8031
8032         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
8033         (TARGET_RETURN_IN_MEMORY): Likewise.
8034         (m68hc11_struct_value_rtx): Likewise.
8035         (m68hc11_return_in_memory): Likewise.
8036         * config/m68hc11/m68hc11.h: Remove a commented-out definition
8037         of PROMOTE_PROTOTYPES.
8038         (RETURN_IN_MEMORY): Remove.
8039         (STRUCT_VALUE_REGNUM): Likewise.
8040
8041 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8042
8043         * config/mmix/mmix-protos.h: Remove the prototype for
8044         mmix_setup_incoming_varargs.
8045         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8046         (TARGET_STRUCT_VALUE_RTX): Likewise.
8047         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8048         (mmix_setup_incoming_varargs): Make it static.
8049         (mmix_struct_value_rtx): New.
8050         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
8051         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
8052         (STRUCT_VALUE_REGNUM): Remove.
8053         (SETUP_INCOMING_VARARGS): Likewise.
8054
8055 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8056
8057         * config/mips/mips-protos.h: Remove the prototypes for
8058         mips_setup_incoming_varargs and mips_return_in_memory.
8059         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8060         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8061         (TARGET_PROMOTE_PROTOTYPES): Likewise.
8062         (TARGET_STRUCT_VALUE_RTX): Likewise.
8063         (TARGET_RETURN_IN_MEMORY): Likewise.
8064         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8065         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8066         (mips_setup_incoming_varargs): Match the prototype for
8067         TARGET_SETUP_INCOMING_VARARGS.
8068         (mips_return_in_memory): Make it static.  Add argument fntype.
8069         (mips_strict_argument_naming): New.
8070         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
8071         (PROMOTE_FUNCTION_ARGS): Likewise.
8072         (PROMOTE_FUNCTION_RETURN): Likewise.
8073         (STRUCT_VALUE): Likewise.
8074         (RETURN_IN_MEMORY): Likewise.
8075         (SETUP_INCOMING_VARARGS): Likewise.
8076         (STRICT_ARGUMENT_NAMING): Likewise.
8077
8078 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8079
8080         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
8081         (TARGET_RETURN_IN_MEMORY): Likewise.
8082         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8083         (ip2k_return_in_memory): Likewise.
8084         (ip2k_setup_incoming_varargs): Likewise.
8085         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
8086         (STRUCT_VALUE): Likewise.
8087         (STRUCT_VALUE_INCOMING): Likewise.
8088         (SETUP_INCOMING_VARARGS): Likewise.
8089
8090 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
8091
8092         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
8093         (TARGET_RETURN_IN_MEMORY): Likewise.
8094         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8095         (avr_return_in_memory): Remove.
8096         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
8097         (STRUCT_VALUE): Likewise.
8098         (STRUCT_VALUE_INCOMING): Likewise.
8099         (STRICT_ARGUMENT_NAMING): Likewise.
8100
8101 2004-01-25  Jan Hubicka  <jh@suse.cz>
8102
8103         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
8104
8105 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
8106
8107         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
8108         (mips_regno_mode_ok_for_base_p): Declare.
8109         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
8110         (FRAME_POINTER_REGNUM): Renumber to 78.
8111         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
8112         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
8113         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
8114         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
8115         (REG_MODE_OK_FOR_BASE_P): Likewise.
8116         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
8117         entry for 77 to "$arg" and entry for 78 to "$frame".
8118         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
8119         (mips_reg_mode_ok_for_base_p): Remove.
8120         (mips_regno_mode_ok_for_base_p): New function, derived from old
8121         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
8122         restrictions unless we're being strict.
8123         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
8124
8125 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8126
8127         * c-common.h: Fix comment typos.
8128         * c-decl.c: Likewise.
8129         * cgraphunit.c: Likewise.
8130         * combine.c: Likewise.
8131         * et-forest.c: Likewise.
8132         * flow.c: Likewise.
8133         * function.c: Likewise.
8134         * ifcvt.c: Likewise.
8135         * integrate.c: Likewise.
8136         * jump.c: Likewise.
8137         * postreload.c: Likewise.
8138         * varray.c: Likewise.
8139
8140 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8141
8142         * doc/frontends.texi: Update copyright.
8143         * doc/gcov.texi: Likewise.
8144         * doc/gty.texi: Likewise.
8145         * doc/sourcebuild.texi: Likewise.
8146         * doc/standards.texi: Likewise.
8147
8148 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
8149
8150         PR target/12978
8151         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
8152         Remove movstrqi_small because it conflicts with movstrqi_large.
8153
8154 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8155
8156         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8157         (TARGET_STRUCT_VALUE_RTX): Likewise.
8158         (cris_struct_value_rtx): Likewise.
8159         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
8160         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
8161         STRUCT_VALUE_REGNUM.
8162         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
8163
8164 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
8165
8166         PR bootstrap/13848
8167         * cse.c (cse_cc_succs): Change the mode of the source expression
8168         as soon as decide we need a new mode.  Don't permit changing modes
8169         if we found a match in a successor block.
8170         (cse_condition_code_reg): Save original mode of source expression
8171         so that we know whether we have to change the mode in other
8172         insns.
8173
8174 2004-01-24  Jan Hubicka  <jh@suse.cz>
8175
8176         * emit-rtl.c (change_address, adjust_address_1, offset_address,
8177         widen_memory_access):  Return early when there is nothing to change.
8178
8179 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
8180
8181         * simplify-rtx.c (simplify_relational_operation): Don't
8182         simplify address == constant into address + -constant == 0.
8183
8184 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8185
8186         * gcc.c (process_command): Don't internationalize the
8187         Copyright message.
8188         * mips-tfile.c (main): Likewise.
8189
8190 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
8191
8192         * cse.c: (cse_cc_succs) Fix comparison warning.
8193
8194 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8195
8196         * config/h8300/h8300.md: Remove extraneous USE in expanders.
8197
8198 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8199
8200         * config/h8300/h8300-protos.h: Provide prototypes for
8201         h8300_legitimate_constant_p and h8300_legitimate_address_p.
8202         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
8203         (h8300_rtx_ok_for_base_p): Likewise.
8204         (h8300_legitimate_address_p): Likewise.
8205         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
8206         h8300_legitimate_constant_p.
8207         (RTX_OK_FOR_BASE_P): Remove.
8208         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
8209
8210 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
8211
8212         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
8213         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
8214         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
8215         (REG_OK_FOR_BASE_STRICT_P): Likewise.
8216         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
8217         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
8218         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
8219         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
8220
8221 2004-01-24  Jan Hubicka  <jh@suse.cz>
8222
8223         * cselib.c (remove_useless_values):  Do not access discarded values.
8224
8225 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
8226
8227         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
8228         arrays.
8229
8230 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
8231
8232         * recog.c: Fix a typo in copyright.
8233
8234 2004-01-23  Andrew Pinski  <apinski@apple.com>
8235
8236         * config/rs6000/rs6000.md (call): Fix misappiled patch.
8237         (call_value): Likewise.
8238
8239 2004-01-23  Richard Henderson  <rth@redhat.com>
8240
8241         PR opt/12941
8242         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
8243         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
8244         if SHIFT_COUNT_TRUNCATED is set.
8245
8246 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
8247
8248         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
8249         separate real and imaginary parts.
8250         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
8251
8252 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
8253
8254         PR target/13674
8255         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
8256         loading into GPR.
8257
8258 2004-01-23  Jan Hubicka  <jh@suse.cz>
8259
8260         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
8261         change.
8262
8263         * alloc-pool.c (align_four): Kill.
8264         (create_alloc_pool): Align size to eight.
8265         (free_alloc_pool, free_pool): Invalidate deallocated data.
8266
8267 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
8268
8269         PR gcc/1532
8270         * cse.c (cse_change_cc_mode): New static function.
8271         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
8272         (cse_condition_code_reg): New function.
8273         * rtl.h (cse_condition_code_reg): Declare.
8274         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
8275         * target.h (struct gcc_target): Add fixed_condition_code_regs and
8276         cc_modes_compatible.
8277         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8278         (TARGET_CC_MODES_COMPATIBLE): Define.
8279         (TARGET_INITIALIZER): Add new initializers.
8280         * targhooks.c (default_cc_modes_compatible): New function.
8281         * targhooks.c (default_cc_modes_compatible): Declare.
8282         * hooks.c (hook_bool_intp_intp_false): New function.
8283         * hooks.h (hook_bool_intp_intp_false): Declare.
8284         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8285         (TARGET_CC_MODES_COMPATIBLE): Define.
8286         (ix86_fixed_condition_code_regs): New static function.
8287         (ix86_cc_modes_compatible): Likewise.
8288         * doc/tm.texi (Condition Code): Document new hooks.
8289
8290 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8291
8292         * fixinc/inclhack.def (bad_lval): Renamed to ...
8293         (alpha_bad_lval): ... this.
8294         Removed file list.
8295         Restrict to alpha*-dec-osf*.
8296         * fixinc/fixincl.x: Regenerate.
8297         * fixinc/tests/base/dirent.h: Remove, moving test ...
8298         * fixinc/tests/base/testing.h: ... here, reflecting new name.
8299
8300 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
8301
8302         PR c/13814
8303         * c-decl.c (diagnose_mismatched_decls): Also discard a
8304         built-in if we encounter an old-style definition with the
8305         same name.
8306
8307 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
8308
8309         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
8310         set to default{32,64}.
8311
8312 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
8313
8314         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
8315         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
8316
8317 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
8318             Olivier Hainque  <hainque@act-europe.fr>
8319
8320         * fold-const.c (fold_binary_op_with_conditional_arg): Only
8321         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
8322
8323 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
8324
8325         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
8326         size for minipool references.
8327
8328 2004-01-23  Roger Sayle  <roger@eyesopen.com>
8329
8330         * real.c (real_floor, real_ceil): Tweak to allow input and output
8331         arguments to overlap.
8332         (real_round): New function to implement round(3m) semantics.
8333         * real.h (real_round): Prototype here.
8334         * builtins.c (fold_builtin_round): New function to constant fold
8335         round, roundf and roundl.
8336         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
8337
8338 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
8339
8340         PR optimization/13819
8341         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
8342         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
8343         (sh_handle_sp_switch_attribute): Remove warning.
8344
8345 2003-11-30  Jan Hubicka  <jh@suse.cz>
8346
8347         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
8348
8349 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
8350
8351         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
8352         may or may not return non-NIL.
8353         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
8354         check CANNOT_CHANGE_MODE_CLASS
8355
8356 2004-01-23  Jan Hubicka  <jh@suse.cz>
8357
8358         * basic-block.h (PROP_POSTRELOAD): New macro.
8359         (CLEANUP_LOG_LINKS): New.
8360         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
8361         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
8362
8363         * cselib.c (value_pool): New.
8364         (new_cselib_val): Use pool.
8365         (cselib_init): Initialize value_pool
8366         (cselib_finish): Free pool.
8367
8368 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
8369
8370         * config/sparc/sparc.c (scan_record_type): New function.
8371         (function_arg_slotno): Use it to determine which kinds of
8372         registers the record can be passed in.
8373
8374 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
8375
8376         * config/pa/fptr.c: Fix old-style definition.
8377
8378 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
8379
8380         PR optimization/13724
8381         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
8382         represents the zero bits produced by a ZERO_EXTEND operation.
8383
8384 2004-01-22  Roger Sayle  <roger@eyesopen.com>
8385
8386         PR optimization/13821
8387         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
8388         correctly calculate the lowpart offset of the contracted subreg.
8389
8390 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
8391
8392         * doc/invoke.texi (Optimize Options): Note that --param arguments
8393         are subject to change without notice.
8394
8395 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8396
8397         * config.gcc (mips-sgi-irix6*o32): Removed.
8398         * config/mips/iris6-o32-as.h: Likewise.
8399         * config/mips/iris6-o32-gas.h: Likewise.
8400         * config/mips/iris6-o32.h: Likewise.
8401
8402 2004-01-22  Jan Hubicka  <jh@suse.cz>
8403
8404         * cfgcleanup.c (first_pass): New static variable.
8405         (try_forward_edges):  Add work limiting check for threading.
8406         (try_crossjump_bb):  Add work limiting check for crossjumping.
8407         (try_optimize_cfg):  Maintain first pass variable.
8408
8409 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
8410
8411         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
8412         handles complex and vector modes.
8413
8414 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
8415
8416         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
8417         (REG_OK_FOR_BASE_P_STRICT): Likewise.
8418         (STRICT): Likewise.
8419
8420 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
8421
8422         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
8423         (genrtl_for_stmt): Remove emit_nop calls.
8424
8425 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8426
8427         PR target/13713
8428         PR target/13324
8429         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
8430         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
8431         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
8432
8433 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
8434
8435         * config/arm/arm.c: Include "debug.h".
8436         (thumb_pushpop): Take two new arguments.  Add some commentary.
8437         Output frame information when pushing.
8438         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
8439         thumb_pushpop.
8440         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
8441         offset, and pass it to thumb_pushpop.  Output CFI information.
8442         (thumb_expand_prologue): Add some frame-related markers and notes.
8443
8444 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
8445
8446         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
8447         for TARGET_64BIT.
8448         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
8449         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
8450
8451 2004-01-22  Roger Sayle  <roger@eyesopen.com>
8452             Paolo Bonzini  <bonzini@gnu.org>
8453
8454         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
8455         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
8456         * rtl.h (subreg_lsb_1): Prototype here.
8457         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
8458         sign extensions.
8459
8460 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
8461
8462         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
8463         macro need not be defined if jump-tables should contain
8464         relative addresses only when -fPIC or -fPIC is in effect.
8465
8466 2004-01-22  Jan Hubicka  <jh@suse.cz>
8467
8468         * alias.c (reg_base_value): Turn into varray.
8469         (reg_base_value_size): Kill.
8470         (old_reg_base_value): New deletable varray.
8471         (alias_invariant_size): New variable.
8472         (REG_BASE_VALUE): Update to use varray.
8473         (find_base_value): Likewise.
8474         (record_set): Likewise.
8475         (record_base_value): Likewise.
8476         (memrefs_conflict_p): Likewise.
8477         (record_set): Likewise
8478         (record_base_value): Likewise.
8479         (memrefs_conflict_p): Use alias_invariant_size.
8480         (init_alias_analysis): Use varray; set alias_invariant_size;
8481         rescale other arrays to be sized by maxreg.
8482         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
8483
8484 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
8485
8486         * config/sparc/sparc.c (function_arg_slotno): Use
8487         FLOAT_TYPE_P to detect FP fields in structures.
8488         (function_arg_record_value_1): Likewise.
8489         (function_arg_record_value_2): Likewise.
8490
8491 2004-01-22  Jan Hubicka  <jh@suse.cz>
8492
8493         * function.c (allocate_struct_function): Do not initialize expr, emit
8494         and varasm.
8495         (prepare_function_start): Do it here.
8496         * c-parse.in (maybe_type_qual): Do not produce line number notes.
8497
8498 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
8499
8500         PR target/13559
8501         * config/sparc/sparc.c (function_arg_record_value_3): Revert
8502         to 'word_mode' once the first slot has been filled.
8503
8504 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
8505
8506         * config/sparc/sparc.c (function_arg_record_value_1): Fix
8507         computation of the number of integer registers required.
8508
8509 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
8510
8511         * config/i386/i386.md: Simplify certain comparisons of
8512         const_int.
8513
8514 2004-01-21  Andrew Pinski  <apinski@apple.com>
8515
8516         PR target/13785
8517         * config/rs6000/rs6000.md (call_value): Force operand
8518         1 not operand 0 into a register.
8519
8520 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
8521
8522         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
8523         unwind-dw2-fde.h: Update copyright.
8524
8525 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8526
8527         * pa-protos.h: Update copyright.
8528         * pa.h: Likewise.
8529         * pa.md: Likewise.
8530
8531 2004-01-21  Caroline Tice  <ctice@apple.com>
8532
8533         PR target/12308
8534         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
8535         flags register.
8536         (fix_truncdfdi2): Likewise.
8537         (fix_truncsfdi2): Likewise.
8538         (*fix_truncdi_1): Likewise.
8539         (fix_truncxfsi2): Likewise.
8540         (fix_truncdfsi2): Likewise.
8541         (fix_truncsfsi2): Likewise.
8542         (*fix_truncsi_1): Likewise.
8543         (fix_truncxfhi2): Likewise.
8544         (fix_truncdfhi2): Likewise.
8545         (fix_truncsfhi2): Likewise.
8546         (*fix_trunchi_1): Likewise.
8547
8548 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
8549
8550         * alias.c, basic-block.h, c-common.c, c-common.h,
8551         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
8552         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
8553         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
8554         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
8555         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
8556         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
8557         genautomata.c, genconditions.c, genemit.c, genflags.c,
8558         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
8559         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
8560         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
8561         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
8562         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
8563         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
8564         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
8565         unwind.h, varray.c, varray.h: Update copyright.
8566
8567 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
8568
8569         * config/h8300/coff.h: Update copyright.
8570         * config/h8300/elf.h: Likewise.
8571         * config/h8300/h8300-protos.h: Likewise.
8572         * config/h8300/h8300.c: Likewise.
8573         * config/h8300/h8300.h: Likewise.
8574         * config/h8300/h8300.md: Likewise.
8575
8576 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8577
8578         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
8579         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
8580         ultrix_unistd): New hacks.
8581         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
8582         ULTRIX_CONST2_CHECK): Add checks.
8583         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
8584         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
8585         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
8586         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
8587         * fixinc/tests/base/locale.h: New file.
8588         * fixinc/fixincl.x: Rebuilt.
8589
8590 2004-01-21  Andreas Jaeger  <aj@suse.de>
8591             Michael Matz  <matz@suse.de>
8592
8593         * doc/extend.texi (Extended Asm): Clarify memory clobber.
8594
8595 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
8596
8597         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
8598         _Jv_RegisterClasses through a function pointer.
8599
8600 2004-01-21  Falk Hueffner  <falk@debian.org>
8601
8602         PR target/12898
8603         * config/alpha/alpha.c (alpha_emit_set_const_1): If
8604         no_new_pseudos, use gen_rtx_SET directly for SImode constants
8605         which need multiple instructions to emit.
8606
8607 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
8608
8609         * config/m32r/m32r.h (CPP_SPEC): Define.
8610
8611 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
8612
8613         * c-decl.c (merge_decls): Kill different_binding_level and
8614         different_tu arguments; simplify throughout.
8615         (duplicate_decls): Likewise.
8616         (pushdecl, merge_translation_unit_decls): Update calls to
8617         duplicate_decls.
8618
8619 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8620
8621         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
8622         $(SYSTEM_H).
8623         (print-rtl1.o): Depend on $(SYSTEM_H).
8624
8625 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
8626
8627         PR bootstrap/12730
8628         * configure.ac: Delete definition and subsitution of docdir.
8629         Add info, man, srcman and srcinfo to target hooks. Create doc/
8630         directory.
8631         * configure: Regenerate.
8632         * Makefile.in: Don't substitute docdir and delete all references
8633         throughout.
8634         (MAKEINFOFLAGS): Define.
8635         (stmp-docobjdir): Delete.
8636         (INFOFILES, MANFILES): Define.
8637         (info): Call lang.info, srcinfo and lang.srcinfo.
8638         (generated-manpages): Call lang.man, srcman and lang.srcman.
8639         (srcinfo, srcman): New rules to copy back files to source directory.
8640         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
8641         (install-man): Revamp rule.
8642         (clean): Update dvi directory.
8643         (distclean): Delete TAGS from front end directorys.
8644         (maintainer-clean): Delete all document files in source directory.
8645
8646         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
8647         (objc.srcman, objc.srcinfo): Likewise.
8648
8649 2004-01-20  Bruce Korb  <bkorb@gnu.org>
8650
8651         * fixinc/inclhack.def(math_exception): bypass only for glibc.
8652         (matherr_decl): rename & relocate as exception_structure.
8653         This fix must precede the math_exception fix.
8654
8655 2004-01-20  Roger Sayle  <roger@eyesopen.com>
8656
8657         * fold-const.c (fold_convert): Rename to fold_convert_const.
8658         (fold_convert_const): Change arguments to take a tree_code,
8659         a type and the operand/expression to be converted.  Return
8660         NULL_TREE if no simplification is possible.  Add support for
8661         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
8662         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
8663         Adjust call to fold_convert to match new fold_convert_const.
8664         Avoid modifying the tree passed to fold in-place.
8665
8666 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
8667
8668         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
8669         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
8670         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
8671
8672 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8673
8674         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
8675         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
8676         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
8677         (emit_move_sequence): Check scratch_reg first in various if statements.
8678         Extend source simplification to handle all 64-bit CONST_INTs.
8679         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
8680         frame size.
8681         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
8682         frame offset calculations.
8683         * pa.h (NEW_HP_ASSEMBLER): Add comment.
8684         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
8685         LEGITIMATE_64BIT_CONST_INT_P): Define.
8686         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
8687         any CONST_INT as legitimate during and after reload.
8688         (VAL_32_BITS_P, INT_32_BITS): Define.
8689         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
8690
8691 2004-01-20  Jan Hubicka  <jh@suse.cz>
8692
8693         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
8694         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
8695         containing hard regs are shared.
8696         (gen_hard_reg_clobber): New function.
8697         (hard_reg_clobbers): New array.
8698         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
8699         (copy_rtx): Do not copy clobbers containing hard regs.
8700         * rtl.h (gen_hard_reg_clobber): Declare.
8701
8702 2004-01-20  Jan Hubicka  <jh@suse.cz>
8703
8704         * varray.c:  Include hashtab.h
8705         (varray_descriptor): New structure.
8706         (hash_descriptor, eq_descriptor, varray_descriptor,
8707         print_statistics): New static functions
8708         (varray_init, varray_grow): Update statistics
8709         (dump_varray_statistics): New function.
8710         * varray.h (dump_varray_statistics): Declare.
8711         * toplev.c (finalize): Call it.
8712         * Makefile.in (varray.o): Add dependency.
8713
8714 2004-01-20  Jan Hubicka  <jh@suse.cz>
8715
8716         * cselib.c: Include alloc-pool.h
8717         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
8718         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
8719         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
8720         unchain_one_elt_loc_list_pool, unchain_one_value,
8721         new_cselib_val): Simplify using allocpool.
8722         (cselib_init): Initialize allocpools.
8723         (cselib_finish): Finish allocpools.
8724         * Makefile.in (cselib.o): Depend on alloc-pool.h
8725
8726 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
8727
8728         * config/mips/mips.c (mips_load_call_address): Make the call insn
8729         use $gp if it could be calling a lazy binding stub.
8730
8731 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
8732
8733         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
8734         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8735         (TARGET_STRUCT_VALUE_RTX): Likewise.
8736         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
8737         (PROMOTE_FUNCTION_RETURN): Remove.
8738         (STRUCT_VALUE): Remove.
8739
8740 2004-01-20  Denis Chertykov  <denisc@overta.ru>
8741
8742         PR bootstrap/13735
8743         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
8744         register as pointer after reload.
8745
8746 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8747
8748         PR optimization/12440
8749         * loop.c: Include ggc.h.
8750         (loop_optimize): Run garbage collector between optimization of loops.
8751         * Makefile.in (loop.o): Add GGC_H dependency.
8752
8753 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
8754
8755         * gcc/config/rs6000/rs6000.c (function_arg) Handle
8756         vector register special in function without prototype.
8757         (function_arg_advance): Vector parameters get always
8758         GPRs allocated for the linux64 target.
8759
8760 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
8761
8762         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
8763         not TARGET_M32RX_MASK.
8764
8765 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
8766
8767         PR target/13557
8768         * config/sparc/sparc.c (function_arg): Reorder the cases.
8769
8770 2004-01-19  Per Bothner  <per@bothner.com>
8771
8772         Move cpp_reader's line_maps field to a shared global.
8773         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
8774         and change the type to a pointer rather than a struct.
8775         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
8776         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
8777         Likewise.
8778         * cppfiles.c (validate_pch):  Likewise.
8779         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
8780         Likewise.
8781         * cpperror.c (print_location):  Likewise.
8782         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
8783         * cppinit.c (cpp_create_reader):  Handle new parameter.
8784         (cpp_destroy):  Don't free line_maps - that's no longer our job.
8785         * input.h (line_table):  New variable.
8786         * toplev.c (line_table):  Declare variable.
8787         (general_init):  Initialize line_table.
8788         * c-opts.c (c_common_init_options):  Pass line_table to
8789         cpp_create_reader.
8790         * fix-header.c (read_scan_file):  New local variable line_table.
8791         Initialize, and pass it to cpp_create_reader.
8792         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
8793         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
8794
8795 2004-01-19  Per Bothner  <per@bothner.com>
8796
8797         Implement a cache for linemap_lookup.
8798         * line-map.h (struct_line_maps):  Add cache field.
8799         * line-map.c (linemap_init):  Zero cache field.
8800         (linemap_add):  Set cache field to offset of newly allocated map.
8801         (linemap_lookup):  Use and set cache field.
8802
8803 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8804
8805         PR optimization/13567
8806         * cse.c (cse_basic_block): Call cse_insn with a non-null
8807         libcall_insn for the last SET insn of a no-confilict block.
8808
8809 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
8810
8811         * Makefile.in (target_noncanonical, program_transform_name): Use
8812         immediate define instead of deferred.
8813         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
8814         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
8815         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
8816         deferred backquote.
8817
8818 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
8819
8820         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
8821         true unconditionally.
8822         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
8823         Remove.
8824         (build_unary_op, build_modify_expr): Don't handle extended
8825         lvalues.
8826         (build_component_ref, build_conditional_expr): Call non_lvalue
8827         instead of pedantic_non_lvalue.
8828         (build_c_cast): Don't condition use of non_lvalue on pedantic.
8829         * fold-const.c (fold): Don't check pedantic directly for
8830         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
8831         passed to pedantic_non_lvalue.
8832         * doc/extend.texi: Remove documentation of extended lvalues.
8833
8834 2004-01-19  Roger Sayle  <roger@eyesopen.com>
8835
8836         PR optimization/5263
8837         * simplify-rtx.c (associative_constant_p): Delete.
8838         (simplify_associative_operation): Rewrite to linearize terms, and
8839         attempt to simplify new term against both left and right subterms.
8840         (simplify_binary_operation): Call swap_commutative_operands_p on
8841         op0 and op1, not trueop0 and trueop1.  Move the initialization of
8842         trueop0 and trueop1 down to where first needed.
8843         (simplify_relational_operation): Likewise.
8844         * rtlanal.c (commutative_operand_precedence): Also order constant
8845         operands using avoid_constant_pool_reference.
8846
8847 2004-01-19  Richard Henderson  <rth@redhat.com>
8848
8849         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
8850         don't check memory mode.
8851         (unaligned_memory_operand): Likewise.
8852         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
8853         abort for op0 not MEM.
8854
8855         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
8856         is not a reg, copy to a scratch first.
8857         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
8858         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
8859         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
8860         (reload_inqi, reload_inhi): Fix mode of op0.
8861         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
8862         reload_outhi_help): Likewise.  Use define_insn_and_split.
8863
8864         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
8865         as well as $29 dead.
8866
8867 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
8868
8869         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
8870         "tls_object" for thread-local objects.
8871         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
8872         "#tls" for thread-local sections.
8873         * configure.ac (thread-local checks): Specify --fatal-warnings in
8874         every binutils-specific checks.  For sparc*-*-*, test whether the
8875         OS is Solaris and the tools are native and act accordingly.
8876         * configure: Rebuild.
8877
8878 2004-01-19  Jeff Law  <law@redhat.com>
8879
8880         * contrib.texi: Update Paolo Carlini's entry.  New entries for
8881         Jerry Quinn and Petur Runolfsson.
8882
8883 2004-01-19  Roger Sayle  <roger@eyesopen.com>
8884
8885         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
8886         size, don't use the larger zero-extending loads.
8887
8888 2004-01-19  Richard Henderson  <rth@redhat.com>
8889
8890         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
8891         * alpha.md (UNSPEC_NT_LDA): Remove.
8892         (UNSPEC_CVTLQ, cvtlq): New.
8893         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
8894         (extendsidi2_fix): Remove.
8895         (extendsidi2 splitter): Use cvtlq.
8896         (extendsidi2 fp peepholes): Remove.
8897         (cvtql): Use SFmode instead of SImode.
8898         (fix_trunc?fsi): Update to match.
8899         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
8900         (movsi): Rename from movsi_nofix, remove f alternatives.
8901         (movsi_nt_vms): Similarly.
8902         (movsi_fix, movsi_nt_vms_fix): Remove.
8903         (nt_lda): Remove.
8904         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
8905
8906 2004-01-19  Jan Hubicka  <jh@suse.cz>
8907
8908         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
8909         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
8910         list.
8911         (cgraph_remove_unreachable_nodes): New function
8912         (cgraph_decide_inlining_of_small_function): Fix pasto.
8913         (cgraph_decide_inlining_incrementally): Fix pasto.
8914         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
8915
8916 2004-01-19  Steven Bosscher  <stevenb@suse.de>
8917
8918         * gengtype.c (header_file): Make it static.
8919         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
8920         * gengtype.h (header_file): No longer extern.
8921
8922 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
8923
8924         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
8925         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
8926         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
8927
8928 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
8929
8930         * stmt.c (HAVE_casesi): Define it not already defined.
8931         (HAVE_tablejump): Likewise.
8932         (expand_end_case_type): Resort to the binary tree method if
8933         neither casesi or tablejump is available.
8934
8935 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
8936
8937         * final.c (final_scan_insn): Make non-static again.
8938         * output.h (final_scan_insn): Re-add prototype.
8939         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
8940         to final_scan_insn call.
8941         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
8942         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
8943         * config/pa/pa.c (output_lbranch, output_call): Likewise.
8944         * config/sh/sh.c (print_slot): Likewise.
8945         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
8946         (output_sibcall, sparc_flat_function_epilogue): Likewise.
8947
8948 2004-01-18  Jan Hubicka  <jh@suse.cz>
8949
8950         * basic-block.h (try_redirect_by_replacing_jump): Declare.
8951         * cfgcleanup.c (try_optimize_cfg): Use it.
8952         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
8953         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
8954         Kill hack.
8955         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
8956
8957         Revert:
8958         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
8959
8960                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
8961                 even after reload, just don't remove the actual jump tables.
8962
8963 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
8964
8965         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
8966
8967 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
8968
8969         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
8970         the size of a pointer in bytes.
8971
8972 2004-01-18  Roger Sayle  <roger@eyesopen.com>
8973
8974         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
8975         live "next" variable, which could lead to an infinite loop.
8976
8977 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
8978
8979         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
8980         block.
8981
8982         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
8983         Check for NULL in the chain and remove repeated code.
8984
8985 2004-01-18  Jan Hubicka  <jh@suse.cz>
8986
8987         * coverage.c (checksum_string): Rename to ...
8988         (coverage_checksum_string): ... this one, Use crc32_string; recognize
8989         names containing random number and zero the number out in order to get
8990         match.
8991
8992 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
8993
8994         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
8995
8996 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
8997
8998         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
8999         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
9000         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
9001         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
9002         doc/trouble.texi: Remove trailing whitespace.
9003
9004 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
9005
9006         PR target/7618
9007         * config/mips/mips.c: Include cfglayout.h.
9008         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9009         (mips_unspec_offset_high): Add temporary register argument.
9010         (mips_load_call_address): New function, split out from...
9011         (mips_expand_call): ...here.
9012         (mips_output_cplocal): New function.
9013         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
9014         (mips_emit_loadgp): New function, split out from...
9015         (mips_expand_prologue): ...here.
9016         (mips_output_mi_thunk): New function.
9017
9018 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
9019
9020         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
9021         mcpu32): Remove redundant checks for implied target predefines.
9022
9023 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
9024
9025         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9026         Return type is unsigned int not int.
9027         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9028         Likewise.
9029
9030 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9031
9032         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
9033         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
9034         "GNU/Linux" and "Microsoft Windows" terminology.
9035
9036 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
9037
9038         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
9039         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
9040         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
9041         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
9042         @smallexample instead of @example.
9043
9044 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
9045
9046         * objc/objc-act.c (build_objc_method_call): Use target
9047         hooks instead of macros to determine if ..._stret
9048         dispatchers should be used (NeXT runtime only).
9049
9050 2004-01-17  Roger Sayle  <roger@eyesopen.com>
9051
9052         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
9053         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
9054
9055 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
9056
9057         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
9058         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
9059         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
9060         macros.
9061         * reload1.c (emit_reload_insns): Use them.
9062         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
9063         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
9064         for NULL PATTERN.
9065
9066 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
9067
9068         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
9069         (final_scan_insn): Update to take an additional SEEN argument.  Emit
9070         a line note after the prologue.  Make static.
9071         (line_note_exists): Remove.
9072         (final): Don't initialize line_note_exists.  Update call to
9073         final_scan_insn.
9074         * output.h (final_scan_insn): Remove prologue.
9075         * function.c (set_insn_locators): Update comment.
9076         (thread_prologue_and_epilogue_insns): Add a comment.
9077
9078 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
9079
9080         PR target/10781
9081         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9082         Prototype.
9083         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9084         New function.
9085         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
9086         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
9087         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
9088
9089 2004-01-17  Jan Hubicka  <jh@suse.cz>
9090
9091         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
9092         commit.
9093
9094         * toplev.c (HAVE_conditional_execution): Provide default.
9095         (rest_of_handle_reorder_blocks): For conditional_execution target
9096         update liveness once after all transformations
9097         (rest_of_compilation): Do crossjumping before ce3.
9098
9099 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
9100
9101         * alias.c (new_alias_set): Mark last_alias_set for PCH.
9102         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
9103         for PCH.
9104         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
9105         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
9106         (get_TOC_alias_set): Mark 'set' for PCH.
9107
9108 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9109
9110         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9111         even after reload, just don't remove the actual jump tables.
9112
9113 2004-01-17  J. Brobecker  <brobecker@gnat.com>
9114
9115         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
9116         Remove checks for is_ada() and TREE_UNSIGNED.
9117         (subrange_type_die): Emit a byte_size attribute if the subrange
9118         type size is different from the base type size.
9119         (modified_type_die): Replace call to is_ada_subrange_type() by
9120         call to is_subrange_type().
9121
9122 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
9123
9124         * config/sh/sh.c: Include ggc.h.
9125
9126 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
9127
9128         * Makefile.in (MD5_H): New.
9129         (fold-const.o): Depend on md5.h.
9130         (dwarf2out.o): Likewise.
9131         (cppfiles.o): Likewise.
9132         * cppfiles.c: Include md5.h.
9133         (should_stack_file): Check against list read from PCH file.
9134         (struct pchf_data): New.
9135         (pchf): New variable.
9136         (struct pchf_adder_info): New.
9137         (pchf_adder): New.
9138         (pchf_save_compare): New.
9139         (_cpp_save_file_entries): New.
9140         (_cpp_read_file_entries): New.
9141         (struct pchf_compare_data): New.
9142         (pchf_compare): New.
9143         (check_file_against_entries): New.
9144         * cpphash.h (_cpp_save_file_entries): Prototype.
9145         (_cpp_read_file_entries): Prototype.
9146         * cpppch.c (cpp_write_pch_state): Write the list of headers.
9147         (cpp_read_state): Read the list of headers.
9148
9149 2004-01-17  Jan Hubicka  <jh@suse.cz>
9150
9151         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
9152         builtin_expect specially.
9153         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
9154         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
9155         * invoke.texi (max-inline-insns-single): Set to 100.
9156         (large-function-insns): Set to 3000.
9157
9158 2004-01-16  Eric Christopher  <echristo@redhat.com>
9159             Chandrakala Chavva <cchavva@redhat.com>
9160
9161         * cppcharset.c (one_iso88591_to_utf8): New function.
9162         (convert_iso88591_utf8): Ditto. Use.
9163         (conversion_tab): Use.
9164         (_cpp_input_to_utf8): New function.
9165         (_cpp_init_iconv_buffer): Ditto.
9166         (_cpp_close_iconv_buffer): Ditto.
9167         * cpphash.h: Prototype new functions.
9168         (cpp_buffer): Add input_cset_desc.
9169         * cppinit.c: Add input_charset default.
9170         * cpplib.c (cpp_push_buffer): Support init and
9171         close of iconv.
9172         * cpplib.h (cpp_options): Add input_charset.
9173
9174 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9175
9176         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
9177         * config/alpha/unicosmk.h: Remove a commented-out definition
9178         of ASM_OUTPUT_SECTION_NAME.
9179         * config/stormy16/stormy16.h: Likewise.
9180
9181 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9182
9183         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
9184         (alpha___extern_prefix_sys_stat): ... this.
9185         Apply to <sys/mount.h>, too.
9186         Tweak to match more variations.
9187         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
9188
9189         * fixinc/inclhack.def (alpha___extern_prefix,
9190         alpha___extern_prefix_standards): New hacks to obey
9191         __PRAGMA_EXTERN_PREFIX.
9192         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
9193         test.
9194         * fixinc/tests/base/standards.h: Likewise.
9195
9196         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
9197         variations.
9198         New testcase.
9199         * fixinc/tests/base/pthread.h: Handle it.
9200
9201         * fixincl/inclhack.def (bad_lval): Sort file list.
9202         Add many missing files up to Tru64 UNIX V5.1B.
9203         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
9204         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
9205         order.
9206
9207         * fixinc/fixincl.x: Regenerate.
9208
9209 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
9210
9211         * version.c (version_string): Change to 3.5.0.
9212         * doc/include/gcc-common.texi (version-GCC): Likewise.
9213
9214 2004-01-16  Jan Hubicka  <jh@suse.cz>
9215
9216         * i386.md (load_tp_di): Fix pasto.
9217
9218         PR opt/13608
9219         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
9220
9221         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
9222         pp_c_character_constant, pp_c_floating_constant,
9223         pp_c_additive_expression, pp_c_shift_expression,
9224         pp_c_equality_expression, pp_c_and_expression,
9225         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
9226         pp_c_logical_and_expression): Remove inline modifier.
9227         * dwarf2out.c (get_AT): Likewise.
9228         * et-forest.c (et_splay): Likewise.
9229         * ra.h (ra_alloc, ra_calloc): Likewise
9230
9231 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9232
9233         * config/frv/frv-protos.h: Fix comment formatting.
9234         * config/frv/frv.c: Likewise.
9235         * config/frv/frv.h: Likewise.
9236         * config/frv/frv.md: Likewise.
9237         * config/frv/frvbegin.c: Likewise.
9238         * config/frv/frvend.c: Likewise.
9239
9240 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
9241
9242         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
9243         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
9244         LINKER_DOES_NOT_WORK_WITH_DWARF2.
9245         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
9246
9247 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
9248
9249         PR 11864
9250         * postreload.c (reload_cse_simplify_operands): Don't remove
9251         implicit extension from LOAD_EXTEND_OP.
9252
9253 2004-01-16  Jan Hubicka  <jh@suse.cz>
9254
9255         PR opt/11350
9256         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
9257         after reload.
9258         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
9259         rtl_try_redirect_by_replacing_branch): Likewise.
9260
9261 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
9262
9263         PR pch/13689
9264         * alias.c (struct alias_set_entry): Mark for GC.
9265         (alias_sets): Make static, mark for GC.
9266         (record_alias_subset): Use GC to allocate alias structures.
9267         * varray.c (element): Make generic varrays GCed.
9268
9269         PR pch/13361
9270         * c-typeck.c (constructor_asmspec): Delete.
9271         (struct initializer_stack): Delete field 'asmspec'.
9272         (start_init): Delete saving of asmspec.
9273         (finish_init): Don't update constructor_asmspec.
9274         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
9275         * stmt.c (expand_asm): Duplicate strings from tree.
9276         (expand_asm_operands): Likewise.
9277         * tree.c (tree_size): Update computation of size of STRING_CST.
9278         (make_node): Don't make STRING_CST nodes.
9279         (build_string): Allocate string with tree node.
9280         * tree.def (STRING_CST): Update comment.
9281         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
9282         (tree_string): Place contents of string in tree node.
9283         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
9284         from tree.
9285
9286         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
9287         altivec operands.
9288
9289 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9290
9291         * c-common.h: Fix comment formatting.
9292         * c-cppbuiltin.c: Likewise.
9293         * c-pragma.c: Likewise.
9294         * calls.c: Likewise.
9295         * collect2.c: Likewise.
9296         * cppcharset.c: Likewise.
9297         * cpptrad.c: Likewise.
9298         * dbxout.c: Likewise.
9299         * defaults.h: Likewise.
9300         * dwarf2out.c: Likewise.
9301         * fold-const.c: Likewise.
9302         * genautomata.c: Likewise.
9303         * genconditions.c: Likewise.
9304         * genflags.c: Likewise.
9305         * gengtype.c: Likewise.
9306         * integrate.c: Likewise.
9307         * loop.c: Likewise.
9308         * predict.c: Likewise.
9309         * sdbout.c: Likewise.
9310
9311 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
9312
9313         * config/ia64/ia64.md (*movti_internal): C output template
9314         extracted to ia64.c.
9315         (*movti_internal_reg): Delete.
9316         (reload_inti, reload_outti): Use the correct mode on operand 2
9317         in the first place, don't fix it up in the output template.
9318         (movtf, reload_ointf, reload_outtf): New expanders.
9319         (*movtf_internal): New define_insn_and_split.
9320         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
9321         make static; do not hand TFmode CONST_DOUBLEs to split_double.
9322         (ia64_split_tmode_move): New function, body mostly pulled
9323         from ia64.md:*movti_internal.
9324         (ia64_function_arg_words): New function, extracted common
9325         logic from ia64_function_arg et seq.
9326         (ia64_function_arg_offset): Likewise.  Handle correctly the
9327         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
9328         (ia64_function_arg, ia64_function_arg_partial_nregs)
9329         (ia64_function_arg_advance): Use ia64_function_arg_words and
9330         ia64_function_arg_offset.
9331         (ia64_function_value): TCmode does not go in float regs.
9332         (ia64_secondary_reload_class): Also handle TFmode.
9333         * config/ia64/ia64-protos.h: Remove prototype for
9334         ia64_split_timode; add prototype for ia64_split_tmode_move.
9335
9336 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
9337
9338         * Makefile.in (MAINT): Make it an immediate assignment.
9339
9340 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9341
9342         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
9343
9344 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9345
9346         * config/h8300/coff.h: Replace Hitachi with Renesas.
9347         * config/h8300/elf.h: Likewise.
9348         * config/h8300/h8300-protos.h: Likewise.
9349         * config/h8300/h8300.c: Likewise.
9350         * config/h8300/h8300.h: Likewise.
9351         * config/h8300/h8300.md: Likewise.
9352         * config/h8300/lib1funcs.asm: Likewise.
9353
9354 2004-01-15  Andrew Pinski  <apinski@apple.com>
9355
9356         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
9357         around it.
9358
9359 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9360
9361         * config/h8300/h8300.c (h8300_return_in_memory): New.
9362         (TARGET_STRUCT_VALUE_RTX): Likewise.
9363         (TARGET_RETURN_IN_MEMORY): Likewise.
9364         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
9365         (RETURN_IN_MEMORY): Likewise.
9366
9367 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
9368
9369         PR optimization/13375
9370         * gcse.c (handle_avail_expr): Just return if the source is not a
9371         single set.
9372
9373 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
9374             Daniel Jacobowitz  <drow@mvista.com>
9375
9376         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
9377         (EQUIV): Define.
9378         (ARM_FUNC_ALIAS): New macro.
9379         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
9380         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
9381
9382 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9383
9384         PR optimization/12372
9385         * calls.c (expand_call): Add call_fusage data for stack arguments in
9386         constant calls.
9387
9388 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
9389
9390         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
9391         (rs6000_elf_declare_function_name): Formatting.
9392         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
9393
9394 2004-01-15  Jan Hubicka  <jh@suse.cz>
9395
9396         PR bootstrap/13692
9397         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
9398         previous patch.
9399
9400 2004-01-15  Richard Henderson  <rth@redhat.com>
9401
9402         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
9403         integer regs of the same call-savedness.
9404
9405 2004-01-15  Andreas Schwab  <schwab@suse.de>
9406
9407         PR bootstrap/13562
9408         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
9409         status for NOTB/NOTW/NEGW methods.
9410
9411 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9412
9413         * doc/invoke.texi: Update dump file names.  Fix a typo.
9414
9415 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9416
9417         * builtins.c (expand_builtin_va_end): Don't use
9418         EXPAND_BUILTIN_VA_END.
9419         * system.h (EXPAND_BUILTIN_VA_END): Poison.
9420         * config/d30v/d30v.h: Remove a commented-out definition of
9421         EXPAND_BUILTIN_VA_END.
9422         * config/stormy16/stormy16.h: Likewise.
9423
9424 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
9425
9426         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
9427         * targhooks.c (default_struct_value_rtx): Don't use
9428         STRUCT_VALUE_INCOMING_REGNUM.
9429
9430 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
9431
9432         PR bootstrap/12744
9433         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
9434         GENINSRC and not parsedir.  Define srcextra as a langhook.
9435         * configure: Regenerate.
9436         * Makefile.in: Suppress default .l.c rule.  Don't substitute
9437         parsedir and delete all references throughout.  Conditionally define
9438         rule for srcextra dependent on GENINSRC.
9439         (stmp-docobjdir): Delete.
9440         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
9441         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
9442         and gengtype-yacc.h back to source directory.
9443         (maintainer-clean): Delete all parse files in source directory.
9444         (distclean): Delete generated files.
9445
9446         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
9447         (objc-parse.c, objc-parse.y): Don't use parsedir.
9448         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
9449         directory if requested.
9450         (po-generated): Don't use parsedir.
9451         (objc.maintainer-clean): Delete above files from source directory.
9452
9453 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9454
9455         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
9456
9457 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9458
9459         * doc/tm.texi: Replace RETURN_IN_MEMORY with
9460         TARGET_RETURN_IN_MEMORY.
9461
9462 2004-01-15  Jan Hubicka  <jh@suse.cz>
9463
9464         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
9465         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
9466         functions accepting SSE arguments
9467         (function_arg): Warn only when asked to warn.
9468         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
9469
9470 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
9471
9472         * c-parse.in (stmts_and_decls): Make label at end of compound
9473         statement a hard error.
9474
9475 2004-01-14  Jan Hubicka  <jh@suse.cz>
9476
9477         * cgraph.c (create_edge): Use local.redefined_extern_inline.
9478         * cgraph.h (cgraph_local_info): Sort fields by size; add
9479         redefined_extern_inline
9480         (cgraph_global_info): Sort fields by size.
9481         (cgraph_node): Likewise.
9482         * cgraphunit.c (cgraph_finalize_function): Se
9483         local.redefined_extern_inline on redefinition.
9484         (cgraph_analyze_function): Use it; fix formating.
9485
9486 2004-01-14  Jan Hubicka  <jh@suse.cz>
9487
9488         PR c++/10776
9489         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
9490         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
9491         bitmaps
9492         (cache_size): New variable
9493         (add_dependence): Update use; canonize early memory locations
9494         (sched_analyze_1): Likewise.
9495         (sched_analyze_2): Likewise.
9496         (init_dependency_caches): Initialize bitmaps.
9497         (free_dependency_caches): Free bitmaps
9498
9499 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9500
9501         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
9502         targetm.calls.strict_argument_naming().
9503         * target.h: Likewise.
9504
9505 2004-01-14  Richard Henderson  <rth@redhat.com>
9506
9507         PR debug/13231
9508         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
9509         instructions.
9510
9511 2004-01-14  Richard Henderson  <rth@redhat.com>
9512
9513         PR c++/12491
9514         * except.c (struct eh_region): Add u.fixup.resolved.
9515         (resolve_one_fixup_region): Split out from ...
9516         (resolve_fixup_regions): ... here.
9517
9518 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9519
9520         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
9521
9522 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9523
9524         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
9525         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
9526         (STRUCT_VALUE): Remove.
9527
9528 2004-01-14  Steven Bosscher  <stevenb@suse.de>
9529
9530         * system.h: Poison PROMOTED_MODE
9531         * integrate.c (expand_inline_function): Don't mention the
9532         PROMOTED_MODE.
9533         * loop.c (update_giv_derive): Same.
9534         * tree.h (DECL_RTL): Same.
9535
9536 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
9537
9538         PR target/9365
9539         * sh.c (gen_block_redirect): Add special handling of RETURN.
9540         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
9541         far branch target (i.e. it's a return).
9542
9543 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9544
9545         * regrename.c (find_oldest_value_reg): Fix a warning.
9546
9547 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
9548
9549         PR bootstrap/12527
9550         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
9551         Move linux-gas.h and linux-elf.h before aout.h.
9552         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
9553         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
9554
9555 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
9556
9557         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
9558         (CONST_INT, VOIDmode, ...).
9559
9560 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
9561
9562         * regrename.c (find_oldest_value_reg): If the replacement uses
9563         multiple hard registers, check that all of them are in CLASS.
9564
9565 2004-01-14  Jan Hubicka  <jh@suse.cz>
9566
9567         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
9568         impossible.
9569
9570 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
9571
9572         * Makefile.in: Define MAINT from --enable-maintainer-mode.
9573
9574 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
9575
9576         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
9577         Calculate always vrsave_mask if TARGET_ALTIVEC.
9578         (rs6000_emit_prologue): Emit code for vrsave
9579         only if TARGET_ALTIVEC_VRSAVE.
9580         (rs6000_emit_epilogue): Likewise.
9581
9582 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
9583
9584         * config/sparc/sparc.md (tie_add32): Fix pasto.
9585         (tie_add64): Likewise.
9586
9587 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9588
9589         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
9590
9591 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9592
9593         * config/iq2000/iq2000-protos.h: Fix comment formatting.
9594         * config/iq2000/iq2000.c: Likewise.
9595         * config/iq2000/iq2000.md: Likewise.
9596
9597 2004-01-14  J. Brobecker  <brobecker@gnat.com>
9598
9599         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
9600         (subrange_type_die): Add handle for nameless subrange types.
9601
9602 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9603
9604         * config/h8300/h8300-protos.h: Replace do_movsi with
9605         h8300_expand_movsi.
9606         * config/h8300/h8300.c (do_movsi): Change to
9607         h8300_expand_movsi.
9608         * config/h8300/h8300.md (movsi): Replace do_movsi with
9609         h8300_expand_movsi.
9610         (movsf): Likewise.
9611
9612 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9613
9614         * config/h8300/h8300.c (dosize): Change to
9615         h8300_emit_stack_adjustment.  Update callers.
9616
9617 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9618
9619         * config/h8300/h8300.md (movstrictqi): Add an alternative with
9620         the source being post_inc.  Tighten the predicate for the
9621         destination to register_operand.
9622         (movstricthi): Likewise.
9623
9624 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9625
9626         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
9627         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
9628         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
9629
9630 2004-01-14  Jan Hubicka  <jh@suse.cz>
9631
9632         Partial fix PR c++/12850
9633         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
9634         at zero nest level.
9635
9636 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
9637
9638         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
9639         pseudo-register.
9640
9641 2004-01-13  Devang Patel <dpatel@apple.com
9642
9643         PR debug/7078
9644         * dbxout.c (dbxout_symbol_name): Emit mangled names for
9645         NAMESPACE_DECL memebers.
9646
9647 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
9648
9649         PR c++/12709
9650         * c-common.c (finish_fname_decls): Use the chain only if the
9651         tree is an expr_stmt.
9652
9653 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
9654
9655         * rtl.def: Add comment about new option in automata_option.
9656
9657         * genautomata.c (PROGRESS_OPTION): New macro.
9658         (progress_flag): New global variable.
9659         (gen_automata_option): Process `progress'.
9660         (transform_insn_regexps, check_unit_distributions_to_automata,
9661         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
9662         expand_automata, write_automata): Print about the progress only if
9663         progress_flag.  Remove fflush.
9664         (initiate_automaton_gen): Process command line flag `-progress'.
9665
9666         * doc/md.texi: Describe the new option.
9667
9668 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9669
9670         * cfg.c (dump_bb): Dump entry edges.
9671
9672 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
9673
9674         * arm.c (thumb_legitimate_address_p): Only allow constant pool
9675         references from SImode.
9676         * arm.md (thumb_movhi_insn): Don't allow minipool references.
9677
9678 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
9679
9680         * system.h (TEXT_SECTION): Poison.
9681         * varasm.c (text_section): Don't use TEXT_SECTION.
9682         * config/sh/sh.c (sh_file_start): Fix a comment typo.
9683         * doc/tm.texi (TEXT_SECTION): Remove.
9684
9685 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
9686
9687         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
9688
9689 2004-01-12  James E Wilson  <wilson@specifixinc.com>
9690
9691         * unwind-libunwind.c: Delete.
9692
9693 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
9694
9695         PR 13656
9696         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
9697         oldtype is set, set *newtypep or *oldtypep too.  Do not set
9698         them at the very end.
9699         (validate_proto_after_old_defn): Restructure for comprehensibility;
9700         make error messages clearer.
9701
9702 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
9703
9704         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
9705         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
9706         * varray.c: No need to prototype error.
9707         (varray_check_failed): Wrap long string onto two lines.
9708         (varray_underflow): New function.
9709
9710 2004-01-13  Steven Bosscher  <stevenb@suse.de>
9711
9712         PR c++/13376
9713         * function.h (struct function): Kill `name' field.
9714         (current_function_name): Make it an extern function.
9715         * function.c (current_function_name): New function.
9716         * graph.c: Update all uses of current_function_name.
9717         * gcse.c: Likewise.
9718         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
9719         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
9720         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
9721         instead of a strcmp with "main".
9722
9723 2004-01-13  Jan Hubicka  <jh@suse.cz>
9724
9725         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
9726
9727         * cgraphunit.c (cgraph_optimize_function):  Always do
9728         optimize_inline_calls when there is always_inline callee.
9729         (cgraph_decide_inlining): Fix formating.
9730         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
9731         functions.
9732         (expand_call_inline): Likewise.
9733         * toplev.h (sorry): Fix prototype.
9734
9735 2004-01-12  Roger Sayle  <roger@eyesopen.com>
9736
9737         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
9738         conditional jumps that drop through to unconditional jumps or the
9739         end of the sequence.
9740
9741 2004-01-13  Jan Hubicka  <jh@suse.cz>
9742
9743         * alias.c (new_alias_set): Construct the alias_set varray.
9744         (init_alias_once): Don't do it here.
9745
9746 2004-01-12  Marc Espie <espie@openbsd.org>
9747
9748         * system.h: handle YYBYACC like YYBISON.
9749
9750 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
9751
9752         PR target/10847
9753         * config.gcc: No longer includes conflicting header sparc/sol2.h when
9754         building on sparc64-*-openbsd*.
9755
9756 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
9757
9758         PR debug/13539
9759         * dbxout.c (dbxout_type): Protected inheritance is not
9760         private but protected.
9761
9762 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
9763
9764         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
9765
9766 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
9767
9768         PR optimization/12508.
9769         * combine.c (try_combine): Remove a dead set in a parallel
9770         even if its destination is a subreg.
9771
9772         Revert:
9773         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
9774         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
9775         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
9776
9777 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
9778
9779         * real.c: Update copyright date.
9780         * emit-rtl.c: Likewise.
9781         * rtl.h: Likewise.
9782         * dwarf2out.c: Likewise.
9783         * config/rs6000/darwin-ldouble.c: Likewise.
9784         * config/rs6000/rs6000.md: Likewise.
9785
9786 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
9787
9788         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
9789         TFmode to SImode libfuncs.
9790
9791 2004-01-12  Roger Sayle  <roger@eyesopen.com>
9792
9793         PR middle-end/11397
9794         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
9795
9796 2004-01-12  Jan Hubicka  <jh@suse.cz>
9797
9798         PR opt/12826
9799         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
9800         stored.
9801
9802         PR opt/12863
9803         * cfgcleanup.c (label_is_jump_target_p): Move to...
9804         * rtlanal.c (label_is_jump_target_p): ... here.
9805         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
9806         edges unified with branch edges.
9807
9808 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
9809
9810         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
9811         high word of an integral CONST_DOUBLE.
9812
9813 2004-01-12  Paul Brook  <paul@codesourcery.com>
9814
9815         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
9816
9817 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
9818
9819         PR target/13585
9820         * sh-protos.h (check_use_sfunc_addr): Declare.
9821         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
9822         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
9823
9824 2004-01-12  Jan Hubicka  <jh@suse.cz>
9825
9826         * alias.c:  Invlude varray.h
9827         (alias_sets): Turn into varray.
9828         (get_alias_set_entry): Use VARRAY; mark inline.
9829         (mems_in_disjoint_alias_sets_p): Mark inline.
9830         (record_alias_subset): Use varray.
9831         (init_alias_once): Initialize varray.
9832         (new_alias_set): Grow array.
9833         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
9834
9835 2004-01-12  Jan Hubicka  <jh@suse.cz>
9836
9837         Partial fix for PR opt/10776 II
9838         * cselib.c: Include params.h
9839         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
9840         locations.
9841         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
9842         * Makefile.in (cselib.o): Depend on params.h
9843
9844 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
9845
9846         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
9847         simplify_unary_operation if the operand has a known mode.
9848
9849 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
9850
9851         PR target/13534
9852         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
9853         predicate to handle 'ld' conform addresses.
9854         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
9855         contraint.
9856         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
9857         are memory contraints.
9858         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
9859         New prototype.
9860         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
9861         Change 'o' to 'Y' constraint.
9862         (*movdf_softfloat64): Ditto.
9863
9864 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
9865
9866         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
9867         brace-enclosed syntax in all C output statements.
9868
9869 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
9870
9871         PR target/13401
9872         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
9873         Objective-C language type value is 14.
9874
9875 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
9876
9877         PR c/12148
9878         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
9879         `int' in a number of places to make sure we always have a SImode
9880         and not a HImode.  Add a 'L' suffix to a number of constants.
9881
9882 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9883
9884         * pa.c: Don't include obstack.h.
9885
9886         * pa.md: Correct constraint in pattern for loading PIC label address.
9887
9888 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
9889
9890         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
9891          before defining.
9892
9893 2004-01-11  Steven Bosscher  <stevenb@suse.de>
9894
9895         PR fortran/9972
9896         * toplev.c (rest_of_handle_inline): Also consider functions
9897         for deferral if the language is GNU F77.
9898
9899 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
9900
9901         * c-decl.c (diagnose_arglist_conflict): Add missing space to
9902         diagnostic messages.
9903
9904 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
9905
9906         PR middle-end/13392
9907         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
9908         to drop through label.  Don't fall back to SCC even when conditional
9909         jump has not been found.
9910
9911 2004-01-11  Jan Hubicka  <jh@suse.cz>
9912
9913         * invoke.texi: Fix syntax error in previous patch.
9914
9915         Partial fix for PR opt/10776
9916         * Makefile.in (reload.o): Include param.h
9917         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
9918         * reload.c: Include params.h.
9919         (find_equiv_reg): Work limiting check.
9920         * invoke.texi: Document.
9921
9922 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
9923
9924         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
9925         out-of-bounds accesses to string constants.  Simplify mips16
9926         case accordingly.
9927
9928 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
9929
9930         PR optimization/13469
9931         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
9932         reload_cse_regs (-fnon-call-exceptions only).
9933
9934 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
9935
9936         * config/mcore/lib1.asm: Fix comment formatting.
9937         * config/mcore/mcore-elf.h: Likewise.
9938         * config/mcore/mcore.c: Likewise.
9939         * config/mcore/mcore.h: Likewise.
9940         * config/mcore/mcore.md: Likewise.
9941
9942 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
9943
9944         * c-decl.c (duplicate_decls): Break apart into...
9945         (diagnose_arglist_conflict, validate_proto_after_old_defn)
9946         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
9947         ... these new functions.  Restructure for comprehensibility.
9948         Remove various archaic special cases.  Always report the
9949         location of the previous declaration when a diagnostic is issued.
9950         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
9951         (match_builtin_function_types): Delete unnecessary forward declaration.
9952
9953 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
9954
9955         * genautomata.c (make_automaton, NDFA_to_DFA):
9956         Print progress bars with '.' characters instead of '*'.
9957         (build_automaton): Change notes to match.
9958
9959 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
9960
9961         * config/m32r/m32r.md: Use define_constants for unspec and
9962         unspec_volatile.
9963
9964 2004-01-10  Jan Hubicka  <jh@suse.cz>
9965
9966         PR opt/11635
9967         * expr.c (expand_expr_real):  More curefully expand union casts.
9968
9969 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
9970
9971         * config/m32r/m32r.md (flush_icache): Use 1 for
9972         unspec_volatile.
9973
9974 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
9975             James E Wilson  <wilson@specifixinc.com>
9976
9977         PR debug/12860
9978         * dbxout.c (dbxout_symbol): Remove initialization of
9979         current_sym_code, current_sym_value, and current_sym_addr.
9980         (dbxout_symbol_location): Same.
9981         (dbxout_prepare_symbol): Zero current_sym_code,
9982         current_sym_value, and current_sym_addr.
9983
9984 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
9985
9986         * tree.c (get_unwidened): Reorder conditions so that the null pointer
9987         check is done first.
9988
9989 2004-01-09  Eric Christopher  <echristo@redhat.com>
9990
9991         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
9992         if we're running mark_constant_function.
9993
9994 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
9995
9996         PR target/12561
9997         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
9998
9999 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
10000
10001         PR debug/11231
10002         * dbxout.c (dbxout_type_fields): Return if any item is
10003         error_mark_node or the type is error_mark_node.
10004
10005 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
10006
10007         * config/rs6000/darwin-ldouble.c: Add big comment explaining
10008         exactly what is expected as a 'long double'.
10009         (_xlqadd): When a value to be returned is representable as a
10010         'double', just return it directly, do not construct it using a union.
10011         Also, correct final fixup.
10012         (_xlqmul): Likewise.
10013         (_xlqdiv): Likewise.
10014         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
10015
10016         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
10017
10018 2004-01-09  Richard Henderson  <rth@redhat.com>
10019
10020         * recog.c (constrain_operands): Validate mem operands.
10021
10022 2004-01-09   James E Wilson  <wilson@specifixinc.com>
10023
10024         * gcc.c (init_spec): Remove -lunwind from shared case.
10025         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
10026
10027 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
10028
10029         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
10030         * configure: Regenerate
10031
10032 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
10033
10034         PR c/11234
10035         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
10036         between function and object pointers.
10037         (digest_init): When comparing a pointer to function type to the
10038         target type, only apply TREE_TYPE once to the pointer to function
10039         type.
10040         * except.c (for_each_eh_label_1): Treat data as a pointer to a
10041         function pointer rather than casting it to a function pointer.
10042         (for_each_eh_label): Update caller.
10043         * recog.h (struct insn_data): Use a struct or union for output.
10044         * genoutput.c (output_insn_data): Update.
10045         * final.c (get_insn_template): Update.
10046
10047 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
10048
10049         * expr.h (expand_expr): Make it a macro, not a function.
10050         (expand_expr_real): New function.
10051         * expr.c (store_expr): Adjust logic for deciding whether or not to
10052         copy the value returned by expand_expr.
10053         (expand_expr): Rename to ...
10054         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
10055         calls to language hooks.
10056         * c-common.h (c_expand_expr): Adjust prototype.
10057         * c-common.c (c_expand_expr): Add alt_rtl parameter.
10058         * langhooks-def.h (lhd_expand_expr): Change prototype.
10059         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
10060         * langhooks.h (lang_hooks): Change type of expand_expr.
10061         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
10062         (last_expr_alt_rtl): Likewise.
10063         (expand_expr_stmt_value): Set last_expr_alt_rtl.
10064         (clear_last_expr): Clear it.
10065         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
10066         (expand_end_bindings): Save and restor last_expr_alt_rtl.
10067         * tree.def (RTL_EXPR): Give it an additional operand.
10068         * tree.h (RTL_EXPR_ALT_RTL): New macro.
10069
10070 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10071
10072         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
10073         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
10074
10075 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10076
10077         PR target/13380.
10078         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
10079         or (ne:SI (reg:CC 17) (const_int 0)).
10080         Be specific about modes wherever possible.
10081
10082 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10083
10084         * config/m32r/m32r.c (m32r_expand_block_move): Call
10085         gen_movestrsi_internal with two more arguments.
10086         (m32r_output_block_move): Adjust operand numbers.
10087         Properly update the source and destination pointers.
10088         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
10089         'r+'.  Change the set detinations to match_operand.
10090
10091 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
10092
10093         * final.c (FIRST_INSN_ADDRESS): Remove.
10094         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
10095         * system.h (FIRST_INSN_ADDRESS): Poison.
10096         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
10097         * config/m32r/m32r-protos.h: Remove the prototype for
10098         m32r_first_insn_address.
10099         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
10100         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
10101         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
10102
10103 2004-01-09  J. Brobecker  <brobecker@gnat.com>
10104
10105         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
10106         we just created.
10107         (is_ada_subrange_type): DIEs for enumeration subtypes should be
10108         emitted as subrange types too.
10109         (subrange_type_die): Add handling of enumeration subtypes.
10110
10111 2004-01-08  Richard Henderson  <rth@redhat.com>
10112
10113         PR opt/12441
10114         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
10115         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10116         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10117         (ix86_address_cost): Be prepared for SUBREGed registers.
10118         (legitimate_address_p): Accept SUBREGed registers.
10119
10120 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
10121
10122         * Makefile.in: Rename configure.in to configure.ac
10123         * doc/sourcebuild.texi: Likewise.
10124         * configure: Regenerate.
10125         * config.in: Regenerate.
10126
10127 2004-01-08  Stuart Hastings  <stuart@apple.com>
10128
10129         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
10130
10131 2004-01-08  Jan Hubicka  <jh@suse.cz>
10132
10133         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
10134
10135 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
10136
10137         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
10138         (UNSPEC_FIX_TRUNC_TF): New constant.
10139         (movtf_internal): Make splitter active only when insn is active.
10140         (extenddftf2): Rewrite to properly load zero into low part.
10141         (extenddftf2_internal): New.
10142         (extendsftf2): Rewrite.
10143         (truncdftf2): Correct length.
10144         (floatditf2): Delete.
10145         (fix_trunc_helper): New.
10146         (fix_trunctfdi2): Use fix_trunc_helper.
10147         (fix_trunctfsi2): Likewise.fix_trunc
10148         (fix_trunctfsi2_internal): New.
10149
10150         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
10151         addresses are legitimate on Darwin even when flag_pic.
10152         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
10153         non-offsettable addresses for loads of TFmode constants.
10154
10155 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10156
10157         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
10158         variables in the appropriate bss section.
10159
10160 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
10161
10162         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
10163         target_flags has MASK_POWERPC64 when -m64.
10164         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
10165         to 620, 630, power3, power4 and rs64a entries.
10166         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
10167
10168 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
10169
10170         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
10171         floating-point constants.
10172
10173 2004-01-08  J. Brobecker  <brobecker@gnat.com>
10174
10175         * dwarf2out.c (subrange_type_die): Add context_die parameter.
10176         Create the subrange_type DIE using the given context DIE.
10177         (modified_type_die): Update call to subrange_type_die.
10178
10179 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
10180
10181         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
10182         Add multiple-include guard.
10183
10184 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
10185
10186         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
10187         all vector constant loadable by vsplt*.
10188         (output_vec_const_move): Likewise.
10189
10190 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
10191
10192         PR c/6024
10193         * c-typeck.c (comptypes): Only treat enumerated types in the same
10194         translation unit as compatible with each other when they are the
10195         same type.
10196         * doc/extend.texi: Update.
10197
10198 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
10199
10200         PR c/12165
10201         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
10202         array type from the array element type.
10203
10204 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
10205
10206         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
10207         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
10208         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
10209         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
10210         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
10211
10212 2004-01-06  Eric Christopher  <echristo@redhat.com>
10213
10214         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
10215         (DWARF2_DEBUGGING_INFO): Define.
10216         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
10217         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
10218         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
10219         for irix as.
10220         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
10221         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
10222         * config/mips/iris5gas.h: Ditto.
10223         (DBX_DEBUGGING_INFO): Remove.
10224         (DWARF2_DEBUGGING_INFO): Ditto.
10225         (MIPS_DEBUGGING_INFO): Ditto.
10226         (PREFERRED_DEBUGGING_TYPE): Ditto.
10227         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
10228         (PREFERRED_DEBUGGING_TYPE): Ditto.
10229         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
10230         * config/mips/elf64.h: Ditto.
10231
10232 2004-01-06  Jan Hubicka  <jh@suse.cz>
10233
10234         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
10235         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
10236
10237 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
10238
10239         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
10240         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
10241         * config/rs6000/darwin-ldouble.c: New.
10242
10243         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
10244         for constants.
10245         (constant_subword): Delete.
10246         * rtl.h (constant_subword): Delete prototype.
10247         (immed_double_const): Is not in varasm.c.
10248         * simplify-rtx.c (simplify_immed_subreg): New.
10249         (simplify_subreg): Use simplify_immed_subreg.
10250
10251         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
10252         than trying to generate RTL directly.
10253         (fix_trunctfsi2): Use expand_fix rather than trying to generate
10254         RTL directly.
10255
10256         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
10257
10258 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
10259
10260         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
10261         function into a separate macro.
10262         (read_only_data_section): Add void argument.
10263         (private_data_section): Same.
10264         (read_only_private_data_section): Same.
10265         (toc_section): Same.
10266
10267 2004-01-06  Jan Hubicka  <jh@suse.cz>
10268
10269         * invoke.texi:  Remove typo in last change.
10270
10271         PR target/10301
10272         * config.gcc: Accept opteron and athlon-64 as variants
10273         of k8.
10274         * i386.c (override_options): Likewise.
10275         * invoke.texi (i386 -mtune): Expand documentation.
10276
10277 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
10278
10279         * alias.c: Fix comment typos.
10280         * builtins.c: Likewise.
10281         * cfg.c: Likewise.
10282         * df.c: Likewise.
10283         * dominance.c: Likewise.
10284         * dwarf2out.c: Likewise.
10285         * emit-rtl.c: Likewise.
10286         * expr.c: Likewise.
10287         * final.c: Likewise.
10288         * fold-const.c: Likewise.
10289         * gcse.c: Likewise.
10290         * genattrtab.c: Likewise.
10291         * genrecog.c: Likewise.
10292         * gensupport.c: Likewise.
10293         * ggc-zone.c: Likewise.
10294         * integrate.c: Likewise.
10295         * local-alloc.c: Likewise.
10296         * loop.c: Likewise.
10297         * recog.c: Likewise.
10298         * regmove.c: Likewise.
10299         * reg-stack.c: Likewise.
10300         * reorg.c: Likewise.
10301         * rtlanal.c: Likewise.
10302         * rtl.h: Likewise.
10303         * sched-ebb.c: Likewise.
10304         * simplify-rtx.c: Likewise.
10305         * toplev.c: Likewise.
10306         * varasm.c: Likewise.
10307
10308 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
10309
10310         * doc/install.texi: Fix typos.
10311         * doc/invoke.texi: Likewise.
10312         * doc/md.texi: Likewise.
10313
10314 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
10315
10316         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
10317
10318 2004-01-06  Jan Hubicka  <jh@suse.cz>
10319
10320         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
10321         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
10322         of MMX_REGPARM.
10323         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
10324         add MMX_REGPARM.
10325         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
10326         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
10327         (MMX_REGPARM_MAX): Similarly for -mmmx.
10328
10329 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10330
10331         * config/sh/linux.h: Fix comment formatting.
10332         * config/sh/netbsd-elf.h: Likewise.
10333         * config/sh/sh.c: Likewise.
10334         * config/sh/sh.h: Likewise.
10335         * config/sh/vxworks.h: Likewise.
10336
10337 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10338
10339         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
10340         * toplev.c (output_file_directive): Don't use
10341         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
10342
10343 2004-01-05  Steven Bosscher <s.bosscher@student.tudelft.nl>
10344
10345         * toplev.c: Fix broken checkin of 2003-12-30.
10346
10347 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
10348
10349         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
10350         (USING_MMAP): We don't support non-mmap.
10351         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
10352         large objects.
10353         (struct page_entry): Remove bytes_free.
10354         (struct page_table_chain): Remove.
10355         (struct globals): Remove page_table member.
10356         (loookup_page_table_entry): Function deleted.
10357         (set_page_table_entry): Ditto.
10358         (ggc_allocated_p): No longer need page table lookups.
10359         (ggc_marked_p): Ditto.
10360         (alloc_small_page): Don't care about bytes_free anymore.
10361         (alloc_large_page): Round up size.
10362         (ggc_alloc_zone_1): Mark large objects as such, and calculate
10363         their size the new way.
10364         Remove page table lookups and setting.
10365         (ggc_get_size): Calculate large object size the new way.
10366         (sweep_pages): Redo to account for fact that we no longer have
10367         bytes_free.
10368         (ggc_collect): No longer need to reincrement bytes_free.
10369         (ggc_pch_alloc_object): Handle new large objects properly.
10370         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
10371
10372 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10373
10374         * doc/invoke.texi: Remove a page break.
10375
10376 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10377
10378         * config/avr/avr.c (avr_output_function_prologue): Remove an
10379         extra pair of curly braces.
10380
10381 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10382
10383         * config/mn10300/mn10300.c: Fix comment formatting.
10384         * config/mn10300/mn10300.h: Likewise.
10385
10386 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10387
10388         * tree.h: Update documentation on nothrow_flag.
10389         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
10390         types.
10391
10392 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
10393
10394         * doc/invoke.texi: Remove traces of dead ports.
10395
10396 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
10397
10398         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
10399         option.
10400
10401 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
10402
10403         PR target/12945
10404         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
10405         counter labels.
10406         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
10407         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
10408         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
10409         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
10410         (mips_symbol_insns): Don't trust the local/global classification.
10411         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
10412         (override_options): Make -mabicalls -fno-unit-at-a-time imply
10413         -mno-explicit-relocs.
10414         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
10415         between local and global symbols.
10416
10417 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
10418
10419         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
10420         (mips_preferred_reload_class): Declare.
10421         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
10422         (EXTRA_CONSTRAINT): Update accordingly.
10423         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
10424         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
10425         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
10426         mips_dangerous_for_la25_p.
10427         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
10428         if mips_dangerous_for_la25_p.
10429
10430 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
10431
10432         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
10433         warning.
10434
10435 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
10436
10437         * configure.ac: Use AC_PROG_CPP_WERROR.
10438         * configure: Regenerate.
10439
10440 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
10441
10442         * .cvsignore: Add autom4te.cache.
10443
10444 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
10445
10446         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
10447         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
10448         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
10449         then architecture options, then ABI options.  General rewording.
10450
10451 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
10452
10453         PR c/3414
10454         * doc/extend.texi: Clarify definition of malloc attribute.
10455
10456 2004-01-04  Jan Hubicka  <jh@suse.cz>
10457
10458         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
10459         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
10460         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
10461         (cgraph_inline_p): Add extra argument reason.
10462         * cgraphunit.c: Minor formating fixes.
10463         cgraph_first_inlined_callee): New functions.
10464         (record_call_1): Record builtins too.
10465         (cgraph_analyze_function): Update inline_failed messages.
10466         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
10467         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
10468         (cgraph_check_inline_limits): Likewise; Add argument reason.
10469         (cgraph_set_inline_failed): New static function.
10470         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
10471         reasons.
10472         (cgraph_inline_p): Add new argument reason.
10473         * tree-inline.c (expand_call_inline):  Update warning.
10474
10475 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
10476
10477         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
10478         with modern equivalents.
10479         * configure: Regenerate.
10480
10481         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
10482         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
10483         * configure: Regenerate.
10484
10485         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
10486
10487         * configure.in: Rename to configure.ac.
10488         * configure.ac: Renamed from configure.in; make minimum necessary
10489         changes for autoconf 2.5x.
10490         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
10491         * configure: Regenerate with autoconf 2.57.
10492
10493 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
10494
10495         * config/mips/linux.h: Fix comment formatting.
10496         * config/mips/mips.c: Likewise.
10497         * config/mips/mips.h: Likewise.
10498         * config/mips/mips.md: Likewise.
10499         * config/mips/netbsd.h: Likewise.
10500         * config/mips/windiss.h: Likewise.
10501
10502 2004-01-02  Richard Henderson  <rth@redhat.com>
10503
10504         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
10505         for sse and 387; add suppression for mmx.
10506
10507 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
10508
10509         * loop.c (loop_optimize): Free all loops_info's mems.
10510
10511         * c-typeck.c (finish_init): Free spelling_base before
10512         setting it again.
10513
10514         * cfgloop.c (flow_loops_find): Always free the sbitmap
10515         headers.
10516
10517         * predict.c (estimate_probability): Free bbs after being
10518         done with it.
10519
10520 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
10521
10522         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
10523         const_8bit_operand and call_address_operand.
10524
10525 2004-01-02  Jan Hubicka  <jh@suse.cz>
10526
10527         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
10528         when there is nothing to inline but warnings are requested.
10529         (cgraph_decide_inlining):  Fix memory leak.
10530
10531 2004-01-02  Jan Hubicka  <jh@suse.cz>
10532
10533         * expr.c (store_constructor):  Fix pasto in previous patch.
10534
10535 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
10536
10537         * config/i386/cygming.h: Fix comment formatting.
10538         * config/i386/djgpp.h: Likewise.
10539         * config/i386/gthr-win32.c: Likewise.
10540         * config/i386/i386-interix.h: Likewise.
10541         * config/i386/i386.c: Likewise.
10542         * config/i386/i386.h: Likewise.
10543         * config/i386/openbsd.h: Likewise.
10544         * config/i386/winnt.c: Likewise.
10545         * config/i386/xm-mingw32.h: Likewise.
10546
10547 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
10548
10549         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
10550         copyright and last modification dates.
10551
10552 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
10553
10554         * doc/install.texi (Specific): Mention x86_64.
10555
10556 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
10557
10558         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
10559         Call force_operand on plus_constant result.
10560
10561 2004-01-01  Jan Hubicka  <jh@suse.cz>
10562
10563         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
10564         * expr.c (store_constructor): Use vec_init pattern.
10565         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
10566         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
10567         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
10568         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
10569         New patterns.
10570         (sse2_unpc?pd): Fix pattern.
10571         (sse2_movlpd): Kill.
10572         (sse2_movsd): Deal with movlpd too.
10573         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
10574         (ix86_expand_vector_init): New.
10575         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
10576         * md.texi (vec_set, vec_extract): Document
10577
10578 2003-12-31  Jan Hubicka  <jh@suse.cz>
10579
10580         PR opt/13473
10581         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
10582         ASM input operands
10583
10584         PR opt/12617
10585         * toplev.c (dump_file_index): Reorder ce3 and bbro.
10586         (dump_file): Likewise.
10587         (rest_of_compilation): Likewise.
10588
10589         PR debug/13367
10590         * cgraph.c (cgraph_function_possibly_inlined):  Even with
10591         flag_really_no_inline we inline always_inline functions.
10592         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
10593         for non-always_inline functions when there is flag_really_no_inline.
10594         (cgraph_decide_inlining): Limit work done when not inlining.
10595         (cgraph_decide_inlining_incrementally): Likewise.
10596         (cgraph_optimize_function): Check whether something got inlined.
10597         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
10598         extern inline functions when not inlining.
10599
10600         * opts.c (decode_options):  Disable crossjumping at -O1
10601         * invoke.texi (-O1): Document change.
10602
10603 See ChangeLog.10 for earlier changes.