OSDN Git Service

7d843f9c12f515904f9b48221f47b753d47a7f75
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2004-02-12  Geoffrey Keating  <geoffk@apple.com>
2
3         * config/darwin.h: Add include guards.  Remove old, now incorrect,
4         comment about STANDARD_EXEC_PREFIX.
5
6         * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
7         $(GCOV_INSTALL_NAME) to install manpages.  Remove generic rule
8         for installing .1 manpages.  Add rules for installing cpp
9         and gcov manpages under their installed names.
10
11 2004-02-12  Alexandre Oliva  <aoliva@redhat.com>
12
13         * configure.ac (gcc_cv_ld): Don't set to LD if target is not
14         host, but try LD_FOR_TARGET first.
15         * configure: Rebuilt.
16
17 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
18
19         * dbxout.c: Move declaration of dbxout_type_decl outside
20         #ifdef DBX_DEBUGGING_INFO.
21         * c-parse.in: Don't give the asmdef production a type.
22
23 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
24
25         * debug.h (struct gcc_debug_hooks): Add type_decl field.
26         (debug_nothing_tree_int): Prototype.
27         (dwarf_debug_hooks): Delete, unused.
28         * debug.c (do_nothing_debug_hooks): Update.
29         (debug_nothing_tree_int): New function.
30         * langhooks.h (struct lang_hooks_for_decls):
31         Remove builtin_type_decls field.
32         * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
33         (LANG_HOOKS_DECLS): Update.
34         * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
35         Use debug_hooks->type_decl.
36         * dbxout.c (preinit_symbols): New static.
37         (dbx_debug_hooks, xcoff_debug_hooks): Update.
38         (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
39         lang_hooks.decls.builtin_type_decls.  Do scan preinit_symbols
40         for symbols to output.
41         (dbxout_type_decl): New function.
42         (dbxout_symbol): If called before dbxout_init has run, queue
43         the symbol for later.  Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
44         to TYPE_DECLs before emitting them.
45         * xcoffout.c (assign_type_number): Delete.
46         (xcoff_type_numbers): New static table.
47         (xcoff_assign_fundamental_type_number): New function.
48         * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
49         DBX_OUTPUT_STANDARD_TYPES.  Remove unnecessary #ifdefs.
50         * sdbout.c: Include varray.h.
51         (deferred_global_decls): New static.
52         (sdb_debug_hooks): Update.
53         (sdbout_global_decl): If we can't emit something right now,
54         remember it in deferred_global_decls.
55         (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
56         (sdbout_init): Initialize deferred_global_decls.
57         * Makefile.in: Update dependencies of sdbout.o.
58         * dwarf2out.c (dwarf2out_type_decl): New function.
59         (dwarf2_debug_hooks): Update.
60         * vmsdbgout.c (vmsdbg_debug_hooks): Update.
61         * c-decl.c (getdecls): Just return 0.
62         (check_for_loop_decls): Don't use getdecls.
63         (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
64         * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
65
66 2004-02-12  Ulrich Weigand  <uweigand@de.ibm.com>
67
68         * config/s390/s390.c (s390_sched_reorder2): Remove.
69         (TARGET_SCHED_REORDER2): Do not redefine.
70
71 2004-02-12  Zack Weinberg  <zack@codesourcery.com>
72
73         * c-parse.in (maybe_type_qual): Delete.
74         (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
75         (asm_argument): New grammar rules.
76         (extdef_1): Use asmdef.
77         (maybeasm): Move down with other asm rules; use simple_asm_expr.
78         (xexpr): Move up with other expression rules.
79         (stmt): Use asm_stmt.
80
81         * c-typeck.c (build_asm_expr): New function - body mostly
82         pulled from build_asm_stmt.
83         (build_asm_stmt): Just handle tacking on the volatile qualifier.
84         * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
85
86 2004-02-12  Richard Sandiford  <rsandifo@redhat.com>
87
88         PR bootstrap/13617
89         * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
90         (mips_declare_object): Make variadic.
91         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
92         mips_output_aligned_decl_common.
93         * config/mips/mips.c (mips_output_aligned_decl_common): New function.
94         (mips_declare_object): Make variadic.
95
96 2004-02-12  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
97
98         * function.c (update_epilogue_consts): Teach about binary operations.
99
100         * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
101         previous MEM_VOLATILE in REF.
102         * function.c (fixup_var_refs): Save volatile_ok and set to 1.
103         * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
104
105 2004-02-12  Gunther Nikl  <gni@gecko.de>
106
107         * config.gcc: Restore support for m68k-openbsd.
108
109 2004-02-12  Jan Hubicka  <jh@suse.cz>
110
111         * tree-optimize.c (tree_rest_of_compilation): Do not release
112         DECL_ARGUMENTS.
113
114 2004-02-11  Matt Kraai  <kraai@alumni.cmu.edu>
115
116         * doc/install.texi: Fix the spelling of "explicitly".
117
118 2004-02-11  Eric Christopher  <echristo@redhat.com>
119
120         * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
121         duplicate argument structure of cpp_interpret_string.
122         * cpphash.h: Move prototype...
123         * cpplib.h: Here.
124         * cpplib.c: Fix calls to match new function signature.
125
126 2004-02-11  Joseph S. Myers  <jsm@polyomino.org.uk>
127
128         PR c/456
129         * cppexp.c (num_binary_op): Don't allow comma operators in #if
130         constant expressions at all outside C99 mode if pedantic.
131
132 2004-02-11  Uros Bizjak  <uros@kss-loka.si>
133
134         * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
135         (log10_optab, log2_optab): Define corresponding macros.
136         * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
137         * genopinit.c (optabs): Implement log10_optab and log2_optab
138         using log10?f2 and log2?f2 patterns.
139         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
140         using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
141         (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
142         using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
143
144         * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
145         log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
146         log2, log2f and log2l built-ins as inline x87 intrinsics.
147
148 2004-02-11  Richard Henderson  <rth@redhat.com>
149
150         PR target/1532
151         * flow.c (insn_dead_p): A clobber of a dead hard register is a
152         dead insn after reload.
153
154 2004-02-11  Ulrich Weigand  <uweigand@de.ibm.com>
155
156         * tree.h (frame_base_decl): Add GTY marker.
157         * var-tracking.c (frame_base_decl): Likewise.
158
159 2004-02-11  Daniel Berlin  <dberlin@dberlin.org>
160
161         * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
162         incorrect, hunk.
163         (add_location_or_const_value_attribute): Use text_section_label,
164         not TEXT_SECTION_NAME.
165
166 2004-02-11  Per Bothner  <per@bothner.com>
167
168         Represent column numbers using line-map's source_location.
169         The "next available source_location" is now managed internally by
170         line-maps.c rather than by clients.
171         * line-map.h (struct line_map):  New field column_bits.
172         <from_line>:  Rename field to start_location.
173         (struct line_maps):  New fields highest_location and max_column_hint.
174         (linemap_check_files_exited):  New declaration.
175         (linemap_line_start):  New declaration.
176         (linemap_add):  Remove from_line parameter; use highest_location field.
177         (SOURCE_LINE, LAST_SOURCE_LINE):  Modify to use column_bits.
178         (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION):  New macros.
179         (CURRENT_LINE_MAP):  Remove macro.
180         (linemap_position_for_column):  New inline function.
181         * line-map.c (linemap_init):  Clear new fields.
182         (linemap_check_files_exited):  New function, extracted from ...
183         (linemap_free):  Use linemap_check_files_exited.
184         (linemap_add):  Remove from_line parameter.  Various updates.
185         (linemap_line_start):  New function.
186         (linemap_lookeup):  Update for new field names.
187         * cpphash.h (struct cpp_reader) <map>:  Field removed.  Because
188         linemap_position_for_column may unpredictably change the current map,
189         it is cleaner and simpler for us to not cache it in cpp_reader.
190         (struct cpp_buffer):  New sysp field.
191         Changed warned_cplusplus_comments and from_stage3 to bitfields.
192         * cppinit.c (cpp_read_min_file):  pfile->map no longer exists.
193         * cpplib.c (do_line, do_linemarker, _cpp_do_file_change):  Get
194         current map using linemap_lookup.
195         (do_linemarker):  Also set buffer's sysp field.
196         (destringize_and_run):  No longer need to decrement current line.
197         * cppfiles.c (_cpp_stack_file):  Set sysp from and in buffer.
198         (search_path_head, open_file_failed):  Use buffer's sysp.
199         (cpp_make_system_header):  Get current map using linemap_lookup.
200         Also set buffer's sysp flag.
201         * cppmacro.c (_cpp_builtin_macro_text):  Likewise use linemap_lookup.
202         * cpphash.h (CPP_INCREMENT_LINE):  New macro.
203         (struct cpp_buffer):  Moved fields saved_cur, saved_rlimit to ...
204         (struct cpp_reader):  ... and adding saved_line_base field.
205         * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
206         Update accordingly.  Don't adjust line.
207         (_cpp_scan_out_logical_line):  Use CPP_INCREMENT_LINE.
208         * cpphash.c (CPP_IN_SYSTEM_HEADER):  Replaced macro by ...
209         (cpp_in_system_header):  ... new inline function, using buffer's sysp.
210         * cpperror.c (_cpp_begin_message):  Update to use cpp_in_system_header.
211         * cpplex.c (_cpp_lex_direct):  Likewise.
212         * cppmacro.c (_cpp_builtin_macro_text):  Likewise.
213         * cppmacro.c (_cpp_create_definition):  Use buffer's sysp field.
214         * cpplib.h (struct cpp_token):  Rename line field to src_loc.
215         Remove col field as it is now subsumed by src_loc.
216         * cpperror.c:  Update various field, parameter, and macro names.
217         (print_location):  If col==0, try SOURCE_COLUMN of line.
218         (cpp_error):  Use cur_token's src_loc field, rather than line+col.
219         * cpplib.c (do_diagnostic):  Token's src_loc fields replaces line+col.
220         * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
221         _cpp_skip_block_comment):  Use CPP_INCREMENT_LINE.
222         (_cpp_temp_token):  Replace cpp_token's line+col fields by src_loc.
223         (_cpp_get_fresh_line):  Don't need to adjust line for missing newline.
224         (_cpp_lex_direct):  Use linemap_position_for_column.
225         * c-ppoutput.c (maybe_print_line, print_line):  Don't take map
226         parameter.  Instead get it from the line_table global.  Adjust callers.
227         (print):  Remove map field.  Replace line field to src_line.
228         (init_pp_output, account_for_newlines, maybe_print_line):  Adjust.
229         (cb_line_change):  Use SOURCE_COLUMN.  Minor optimizations.
230         (pp_file_change):  Use MAIN_FILE_P since we cannot checked print.map.
231         Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
232         * cpptrad.c (copy_comment):  Rename variable.
233         * c-lex.c (map):  Remove static variable, for same reason we removed
234         cpp_reader's map field.
235         (cb_line_change, cb_def_pragma, cb_define, cb_undef):  Hence we need
236         to call linemap_lookup.
237         (cb_line_change):  Token's line field replaced by src_loc.
238         (fe_file_change):  Use MAINFILE_P and LAST_SOURCE_LINE macros.
239         Don't save new_map.
240
241         * cpphash.h, cpperror.c, cpplib.h:  Some renames of fileline to
242         source_location.
243
244 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
245
246         * config/rs6000/altivec.md (*movv4si_internal): At least one
247         operand must be register_operand.
248         (*movv8hi_internal1): Likewise.
249         (*movv16qi_internal1): Likewise.
250         (*movv4sf_internal1): Likewise.
251
252 2004-02-10  Aldy Hernandez  <aldyh@redhat.com>
253
254         * config/rs6000/spe.md ("*movv2si_internal"): Check for register
255         operand.
256         (movv4hi_internal): Same.
257         (movv2sf_internal): Same.
258         (movv1di_internal): Same.
259
260 2004-02-11  Thiemo Seufer  <seufer@csv.ica.uni-stuttgart.de>
261
262         * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
263         TARGET_OLDABI consistently.
264         * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
265         mips_va_arg,override_options,compute_frame_size,
266         mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
267         ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
268         and TARGET_OLDABI consistently.
269         * config/mips/mips.md (exception_receiver): Likewise.
270         * config/mips/linux64.h: Likewise.
271
272 2004-02-11  Hartmut Penner  <hpenner@de.ibm.com>
273
274         * gcc/config/rs6000/rs6000.c (rs6000_override_options)
275         Set AltiVec ABI and vrsave as default for ppc64 linux.
276         (init_cumulative_args): Post error, if try to return
277         value in AltiVec register without enable AltiVec.
278         (function_arg_advance): Ditto for passing arguments.
279
280 2004-02-11  Richard Sandiford  <rsandifo@redhat.com>
281
282         * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
283         a label before updating its usage count.
284
285 2004-02-10  Matt Kraai  <kraai@alumni.cmu.edu>
286
287         * doc/install.texi: Remove extra cd.
288
289 2004-02-10  Ziemowit Laski  <zlaski@apple.com>
290
291         * c-common.c (vector_size_helper): Remove; call
292         reconstruct_complex_type() instead.
293         * tree.c (reconstruct_complex_type): New function
294         (formerly vector_size_helper() in c-common.c).
295         (make_vector): Make externally visible.
296         * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
297
298 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
299
300         * config/h8300/h8300-protos.h: Add a prototype for
301         h8300_regs_ok_for_stm.
302         * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
303         * config/h8300/h8300.md (stm_h8300s_2_advanced,
304         stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
305         stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
306         stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
307         ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
308         ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
309         ldm_h8300s_4_normal, ldm_h8300s_4): Use
310         h8300_regs_ok_for_stm().
311
312 2004-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
313
314         PR c/14088
315         real.c (real_from_string): Look for 'X' as well as 'x' in
316         hexfloat strings.
317
318 2004-02-10  Kazu Hirata  <kazu@cs.umass.edu>
319
320         * config/h8300/h8300.md: Remove an incorrect comment about
321         peephole2.  Add comments.
322
323 2004-02-10  Josef Zlomek  <zlomekj@suse.cz>
324
325         PR/14058
326         * emit-rtl.c (set_decl_incoming_rtl): New.
327         * tree.h (set_decl_incoming_rtl): New.
328         * function.c (assign_parms): Use set_decl_incoming_rtl for setting
329         DECL_INCOMING_RTL.
330         * ada/misc.c (adjust_decl_rtl): Likewise.
331
332 2004-02-10  Per Bothner  <per@bothner.com>
333
334         * c-opts.c (c_common_post_options):   Don't emit working directory
335         in cpp output if -P was specified.
336
337 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
338
339         PR c/14092
340         * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
341         negate_expr back to the original type.
342
343 2004-02-10  Alan Modra  <amodra@bigpond.net.au>
344
345         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
346         bump retaddr here.
347
348 2004-02-10  Paolo Bonzini  <bonzini@gnu.org>
349
350         * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
351         gen_lowpart_SUBREG): Move under the file in which they
352         are actually declared.
353
354 2004-02-10  Arnaud Charlet  <charlet@act-europe.fr>
355
356         * doc/sourcebuild.texi: Add libada documentation.
357
358         * doc/install.texi: Update documentation on Ada build, now
359         that the GNAT lib and tools are built automatically.
360
361 2004-02-10  Richard Sandiford  <rsandifo@redhat.com>
362
363         * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
364         && TARGET_IRIX.
365
366 2004-02-09  Ziemowit Laski  <zlaski@apple.com>
367
368         * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
369         boundaries outside build_component_ref() call (a macro in ObjC++).
370
371 2004-02-09  Bob Wilson  <bob.wilson@acm.org>
372
373         * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
374         (init_cumulative_args): Likewise.
375         (a7_overlap_mentioned_p): Delete prototype.
376         * config/xtensa/xtensa.c (struct machine_function): Replace
377         incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
378         Add set_frame_ptr_insn field.
379         (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
380         (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
381         if the operand is an argument in a7.  If so, copy a7 to a new pseudo
382         at the function entry and replace the operand with the pseudo.
383         (init_cumulative_args): Remove unused arguments.  Add new "incoming"
384         argument and record this flag in CUMULATIVE_ARGS.
385         (function_arg): Remove result_mode and special-case code to handle
386         arguments in a7.  Instead, set need_a7_copy flag when there is an
387         incoming argument in a7.
388         (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
389         and use the value recorded in cfun->machine->set_frame_ptr_insn.
390         (xtensa_builtin_saveregs): Check for negative gp_left value.  Set
391         need_a7_copy and vararg_a7 flags.  Use move_block_from_reg instead of
392         special-case code.
393         (a7_overlap_mentioned_p): Delete.
394         * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
395         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
396         arguments to init_cumulative_args and pass "incoming" flag instead.
397         (BLOCK_REG_PADDING): Delete.
398         * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
399         checks for reload_in_progress and reload_completed.  Update calls to
400         xtensa_copy_incoming_a7.
401         (ashlsi3): Rename existing insn to ashlsi3_internal.  Add expander
402         to call xtensa_copy_incoming_a7.
403
404 2004-02-09  DJ Delorie  <dj@redhat.com>
405
406         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
407         longer modify standard_exec_prefix, standard_bindir_prefix, or
408         standard_startfile_prefix.
409
410 2004-02-09  James E Wilson  <wilson@specifixinc.com>
411
412         PR c++/11295
413         * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
414         to expand_expr_real call, and pass in alt_rtl as last argument.
415
416         PR libstdc++/5625
417         * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
418         * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
419         * builtins.def (BUILT_IN_EXTEND_POINTER): New.
420         * except.c (expand_builtin_extend_pointer): New.
421         * except.h (expand_builtin_extend_pointer): Declare.
422
423 2004-02-09  David Edelsohn  <edelsohn@gnu.org>
424
425         * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
426         unaligned loads and stores.
427
428 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
429
430         * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
431         * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
432
433         * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
434         * config/mips/iris5.h: ... here.
435         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
436
437         * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
438         * config/mips/iris5.h: ... here.
439
440 2004-02-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
441
442         * configure.ac: Remove default executable files before AC_PROG_CC.
443         * configure: Regenerate.
444
445 2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>
446
447         PR target/13721
448         * config/h8300/h8300.c (byte_reg): Call abort() if asked to
449         print a operand other than a register.
450
451 2004-02-09  Roger Sayle  <roger@eyesopen.com>
452
453         * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
454         tree code rather than call fold_convert, which doesn't specify a
455         default floating point to integer conversion.
456
457 2004-02-08  Bernardo Innocenti  <bernie@develer.com>
458
459         * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
460         code to support SGS assembler.  Reformat adjacent code where possible.
461         * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
462         definition.
463         * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
464         for '%#'.
465         * config/m68k/linux.h, config/m68k/m68k.c,
466         * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
467         macros and asm_printf() format strings.
468         * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
469         * config/m68k/linux.h: Update copyright.
470         * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
471
472 2004-02-08  Andreas Schwab  <schwab@suse.de>
473             Bernardo Innocenti  <bernie@develer.com>
474
475         * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
476         REGISTER_PREFIX.
477         * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
478         frame pointer register, overridable by OS targets.
479         * (M68K_REGNAME): Macro to obtain register name for asm output,
480         eventually replacing %a6 with M68K_FP_REG_NAME.
481         * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
482         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
483         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
484         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
485         * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
486
487 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
488
489         * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
490         hook_rtx_tree_int_null.
491         * targhooks.c (default_struct_value_rtx): Remove.
492         * targhooks.h: Remove the prototype for
493         default_struct_value_rtx.
494         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
495         config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
496         config/ip2k/ip2k.c, config/iq2000/iq2000.c,
497         config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
498         config/mn10300/mn10300.c, config/pdp11/pdp11.c,
499         config/rs6000/rs6000.c, config/s390/s390.c,
500         config/stormy16/stormy16.c, config/v850/v850.c,
501         config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
502         * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
503
504 2004-02-08  Joseph S. Myers  <jsm@polyomino.org.uk>
505
506         * README.Portability: Change "ISO C89" to "ISO C90".
507         * c-parse.in (primary, initelt): Likewise.
508
509 2004-02-08  Richard Sandiford  <rsandifo@redhat.com>
510
511         * real.c (encode_ibm_extended): Normalize the input value before
512         converting it to a double.  Handle the case where a normal value
513         rounds to infinity.
514
515 2004-02-08  Kazu Hirata  <kazu@cs.umass.edu>
516
517         * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
518         warning.
519         * cse.c (preferrable): Change to preferable. Update all of its
520         callers.
521         * genautomata.c (ainsn): Change
522         first_ainsn_with_given_equialence_num to
523         first_ainsn_with_given_equivalence_num.  Update all of its
524         references.
525
526 2004-02-08  Jan Hubicka  <jh@suse.cz>
527
528         * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
529
530 2004-02-07  David Edelsohn  <edelsohn@gnu.org>
531
532         * function.c (assign_parms): Fix formatting.
533
534 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
535
536         * default.h (PROMOTE_PROTOTYPES): Remove.
537         * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
538         STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
539         EXPAND_BUILTIN_SAVEREGS): Poison.
540         * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
541         hook_bool_tree_false.
542         (TARGET_PROMOTE_PROTOTYPES): Likewise.
543         * target.h: Replace SETUP_INCOMING_VARARGS with
544         targetm.calls.setup_incoming_varargs().
545         * targhooks.c (default_promote_function_return): Remove.
546         (default_promote_prototypes): Likewise.
547         (default_struct_value_rtx): Always abort().
548         (default_expand_builtin_saveregs): Always print an error
549         message.
550         (default_setup_incoming_varargs): Do nothing.
551         (default_pretend_outgoing_varargs_named): Don't depend on
552         SETUP_INCOMING_VARARGS.
553         * targhooks.h: Remove the prototype for
554         default_promote_function_return and
555         default_promote_prototypes.
556
557 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
558
559         * system.h (SHARED_SECTION_ASM_OP): Poison.
560         * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
561         * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
562
563 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
564
565         Bug 13856
566         * c-decl.c (diagnose_mismatched_decls): Only give special
567         treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
568         is also true.
569         (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
570         DECL_FUNCTION_CODE when defining a built-in function.
571         Don't update DECL_ESTIMATED_INSNS.
572         * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
573         FUNCTION_DECLs.
574         * tree.h: Delete DECL_ESTIMATED_INSNS.
575         * tree-inline.c (struct inline_data): Delete inlined_insns field.
576         (expand_call_inline, optimize_inline_calls): Don't update
577         DECL_ESTIMATED_INSNS nor inlined_insns.
578         * cgraphunit.c (cgraph_analyze_function): Don't update
579         DECL_ESTIMATED_INSNS.
580
581 2004-02-07  Zack Weinberg  <zack@codesourcery.com>
582
583         * c-common.c (shadow_warning): Delete.
584         * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
585         * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
586         * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
587         * c-parse.in (free_parser_stacks): Delete.
588
589 2004-02-07  Nathanael Nerode  <neroden@gcc.gnu.org>
590
591         * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
592         config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
593         Use the top level mkinstalldirs, not the one in the gcc subdir.
594         * mkinstalldirs: Remove (from the gcc subdir).
595
596 2004-02-07  Roger Sayle  <roger@eyesopen.com>
597
598         PR middle-end/13696
599         * fold-const.c (fold_convert): New function to provide type
600         conversion to the middle-end without using convert.
601         (negate_expr, associate_trees, size_diffop, omit_one_operand,
602         operand_equal_for_comparison_p, pedantic_omit_one_operand,
603         invert_truthvalue, optimize_bit_field_compare, range_binop,
604         decode_field_reference, make_range, build_range_check, unextend,
605         fold_truthop, extract_muldiv_1, fold_mathfn_compare,
606         fold_binary_op_with_conditional_arg, fold_inf_compare,
607         fold_single_bit_test, fold, multiple_of_p): Replace all calls to
608         convert with calls to fold_convert.
609
610 2004-02-07  Jan Hubicka  <jh@suse.cz>
611
612         * genrecog.c (find_operand): add extra argument stop.
613         (validate_pattern): Verify that mach_dup is duplicating operand
614         defined lexically earlier.
615
616 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
617
618         * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
619         * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
620         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
621         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
622         config/ia64/ia64.h, config/ip2k/ip2k.h,
623         config/iq2000/iq2000.h, config/mips/iris5.h,
624         config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
625         config/rs6000/aix51.h, config/rs6000/aix52.h,
626         config/rs6000/darwin.h, config/rs6000/rs6000.h,
627         config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
628         config/sparc/linux.h, config/sparc/linux64.h,
629         config/sparc/netbsd-elf.h, config/sparc/sparc.h,
630         config/xtensa/xtensa.h: Remove the definitions of
631         MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
632         MAX_WCHAR_TYPE_SIZE.
633         * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
634         MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
635
636 2004-02-07  Stephane Carrez  <stcarrez@nerim.fr>
637
638         PR bootstrap/13990
639         * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
640         gen_rtx_NE.
641
642 2004-02-07  Josef Zlomek  <zlomekj@suse.cz>
643
644         * var-tracking.c (vt_add_function_parameters): Surround checkings by
645         #ifdef ENABLE_CHECKING and #endif.
646
647 2004-02-07  Roger Sayle  <roger@eyesopen.com>
648
649         * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
650         either (-A)-B or (-B)-A, if A or B is easily negated respectively.
651         (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
652         integer types and floating point with unsafe_math_optimizations.
653         Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
654         Optimize A - B as A + (-B), if B is easily negated.
655
656 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
657
658         * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
659         config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
660         config/m32r/linux.h, config/rs6000/ppc64-fp.c,
661         config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
662         Update copyright.
663
664 2004-02-07  Kazu Hirata  <kazu@cs.umass.edu>
665
666         * c-ppoutput.c, var-tracking.c: Fix comment typos.
667
668 2004-02-06  James E Wilson  <wilson@specifixinc.com>
669
670         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
671         glibc 2.3 or better.
672
673 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
674
675         * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
676         to FLOAT_LIB_COMPARE_RETURNS_BOOL.
677
678 2004-02-07  Alan Modra  <amodra@bigpond.net.au>
679
680         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
681         (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
682         (SHLIB_MKMAP_OPTS): Delete.
683         (TARGET_LIBGCC2_CFLAGS): Add -specs.
684         (bispecs): Add rule.
685         * config/rs6000/libgcc-ppc64.ver: New file.
686         * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
687         (__floatdidf, __floatdisf): Optimize multiply.
688         (__fixunstfdi): New function.
689         * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
690         real and imag parts larger than one register.
691         (function_arg): Correct type of reg used when fp arg split partially
692         to stack.
693         * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
694         and __MACH__ or __powerpc64__.
695
696 2004-02-06  Roger Sayle  <roger@eyesopen.com>
697             Ulrich Weigand  <uweigand@de.ibm.com>
698
699         * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
700         of gen_highpart or gen_lowpart when the floating point format is
701         wider than the result mode.
702
703 2004-02-06  Andrew Pinski  <pinskia@physics.uc.edu>
704
705         * dwarf2out.c (loclabel_num): Move into #ifdef
706         DWARF2_DEBUGGING_INFO.
707
708 2004-02-06  Ziemowit Laski  <zlaski@apple.com>
709
710         * objc/objc-act.c (build_super_template) the 'class' field of
711         'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
712         (get_super_receiver): Likewise.
713
714 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
715
716         * reload1.c (check_eliminable_occurrences): Optimize the reset
717         of can_eliminate.
718         (eliminate_regs_in_insn): Likewise.
719
720 2004-02-06  Daniel Berlin <dberlin@dberlin.org>
721             Josef Zlomek  <zlomekj@suse.cz>
722
723         * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
724         at the beginning of function, call dwarf2out_var_location for
725         NOTE_INSN_VAR_LOCATION note.
726         (struct var_loc_node, struct var_loc_list_def, loclabel_num,
727         decl_loc_table): New.
728         (lookup_decl_loc): New function.
729         (add_var_loc_to_decl): New function.
730         (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
731         only if can_use_fbreg.
732         (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
733         functions.
734         (loc_descriptor): Likewise. Process VAR_LOCATION.
735         (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
736         (loc_descriptor_from_tree): Call mem_loc_descriptor with
737         can_use_fbreg == true.
738         (add_location_or_const_value_attribute): Added parameter enum
739         dwarf_attribute attr, generate attribute ATTR.  Create the location list.
740         (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
741         (gen_formal_parameter_die): Call add_location_or_const_value_attribute
742         with attr == DW_AT_location.
743         (gen_subprogram_die): Generate the location list for DW_AT_frame_base
744         if frame_base_decl is defined and has a location list.
745         (gen_variable_die): Call add_location_or_const_value_attribute with
746         attr == DW_AT_location.
747         (dwarf2out_var_location): New function.
748         (dwarf2out_begin_function): New function.
749         (dwarf2out_init): Create decl_loc_table.
750
751 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
752
753         * loop.c (force_movables): Transitively increase the priorities of
754         all insns forces by an insn, not just the first one.
755
756 2004-02-06  Josef Zlomek  <zlomekj@suse.cz>
757             Daniel Berlin <dberlin@dberlin.org>
758
759         Josef Zlomek  <zlomekj@suse.cz>
760         * Makefile.in (var-tracking.o): New.
761         * common.opt (fvar-tracking): New.
762         * flags.h (flag_var_tracking): New.
763         * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
764         * opts.c (common_handle_option): Add OPT_fvar_tracking.
765         * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
766         * rtl.c (note_insn_name): Likewise.
767         * rtl.def (VAR_LOCATION): New.
768         * rtl.h (NOTE_VAR_LOCATION): New.
769         (NOTE_VAR_LOCATION_DECL): New.
770         (NOTE_VAR_LOCATION_LOC): New.
771         (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
772         (variable_tracking_main): New exported function.
773         * timevar.def (TV_VAR_TRACKING): New.
774         * toplev.c (enum dump_file_index): Added DFI_vartrack.
775         (dump_file): "vartrack" was added (-dV).
776         (flag_var_tracking): New.
777         (f_options): "var-tracking" was added.
778         (rest_of_handle_variable_tracking): New function.
779         (rest_of_compilation): Run variable tracking.
780         (process_options): If user has not specified flag_var_tracking set it
781         according to optimize, debug_info_level and debug_hooks.
782         * tree.h (frame_base_decl): New.
783         * var-tracking.c: New file.
784         * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
785         (ia64_override_options): Set flags to run variable tracking in machine
786         dependent reorg instead of toplev.c.
787         (ia64_reorg): Run variable tracking if wanted.
788         * doc/invoke.texi: Mention variable tracking in -dV,
789         add and -fvar-tracking.
790         * doc/passes.texi: Added variable tracking pass.
791
792         Daniel Berlin <dberlin@dberlin.org>
793         * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
794         * dbxout.c (dbx_debug_hooks): Likewise.
795         (xcoff_debug): Likewise.
796         * debug.c (do_nothing_debug_hooks): Likewise.
797         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
798         * dwarfout.c (dwarf_debug_hooks): Likewise.
799         * sdbout.c (sdb_debug_hooks): Likewise.
800         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
801         * final.c (final_scan_insn): Call var_location debug hook for each
802         NOTE_INSN_VAR_LOCATION.
803
804 2004-02-06  Jan Hubicka  <jh@suse.cz>
805
806         * flow.c (update_life_info): Allocate reg_deaths when called from
807         scheudler.
808         (attempt_auto_inc):  Update life ranges accordingly.
809
810 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
811
812         PR debug/11816
813         * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
814
815 2004-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
816
817         * cfganal.c (flow_call_edges_add): Never split a libcall block.
818
819 2004-02-06  Daniel Berlin  <dberlin@dberlin.org>
820
821         * dwarf2out.c (output_loc_list): Don't use deltas if we have
822         a separate line info table in use.
823         Use the correct size for terminators.
824         (output_die): Use offset, not delta.
825
826 2004-02-06  H.J. Lu  <hongjiu.lu@intel.com>
827
828         * doc/invoke.texi: Remove the pni option from -mfpmath=.
829
830 2004-02-06  Jan Hubicka  <jh@suse.cz>
831
832         * recog.c (split_all_insns): Do not update reg info.
833         * regrename.c (regrename_optimize): Likewise.
834         * toplev.c (rest_of_handle_reorder_blocks): Likewise.
835         * flow.c (struct propagate_block_info): Add insn_num field.
836         (reg_deaths): New array.
837         (life_analysis): Free reg_deaths info.
838         (allocate_reg_life_data): Allocate reg_deaths array.
839         (propagate_one_insn): Use new array.
840         (init_propagate_block): Initialize it.
841         (free_propagate_block_info): Finish compuation of
842         REG_LIVE_LENGTH
843         (attempt_auto_inc): Sanity check that REG_INFO is not
844         computed at same time.
845         (mark_used_regs): Update new array.
846
847         * reg-stack.c (subst_stack_regs): Unshare clobbers before
848         substitution.
849
850 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
851
852         * config/s390/s390.md (*extendsiqi2_short_displ): Change to
853         *extendqisi2_short_displ.
854
855 2004-02-06  Alan Modra  <amodra@bigpond.net.au>
856
857         * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
858         * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
859         (emit_library_call_value_1): Likewise pass nargs.
860         * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
861         * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
862         * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
863         parameter instead of scanning TYPE_ARGS_TYPES to count args.
864         * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
865         prototype.
866         * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
867         (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
868         (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
869         * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
870         INIT_CUMULATIVE_ARGS.
871         * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
872         * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
873         config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
874         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
875         config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
876         config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
877         config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
878         config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
879         config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
880         config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
881         config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
882         config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
883
884 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
885
886         * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
887         possible.
888
889 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
890
891         * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
892         note containing (plus (reg) (const_int)), where reg is an
893         eliminable reg, then perform the register elimination without
894         depending on eliminate_regs().
895
896 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
897
898         * config/arc/arc.c (arc_return_in_memory): Check the return
899         value of int_size_in_bytes against -1.  Don't check
900         TREE_ADDRESSABLE.
901         * config/avr/avr.c (avr_return_in_memory): Check the return
902         value of int_size_in_bytes against -1.
903         * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
904         * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
905         Likewise.
906         * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
907         * config/stormy16/stormy16.c (xstormy16_return_in_memory):
908         Likewise.
909
910 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
911
912         * config/frv/frv-protos.h: Remove the prototype for
913         frv_setup_incoming_varargs.
914         * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
915         (frv_setup_incoming_varargs): Make it static.
916         * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
917
918 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
919
920         * config/fr30/fr30-protos.h: Remove the prototype for
921         fr30_setup_incoming_varargs.
922         Update the prototypes for fr30_num_arg_regs and
923         fr30_function_arg_partial_nregs.
924         * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
925         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
926         (fr30_setup_incoming_varargs): Make it static.
927         Add argument second_time.  Don't do anything when second_time
928         is nonzero.
929         (fr30_num_arg_regs): Change the type of the first argument to
930         enum machine_mode.
931         (fr30_function_arg_partial_nregs): Change the type of the
932         second argument to enum machine_mode.
933         * config/fr30/fr30.h (STRUCT_VALUE): Remove.
934         (SETUP_INCOMING_VARARGS): Remove.
935
936 2004-02-06  Kazu Hirata  <kazu@cs.umass.edu>
937
938         * config/arc/arc-protos.h: Remove the prototype for
939         arc_setup_incoming_varargs.
940         * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
941         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
942         (arc_setup_incoming_varargs): Make it static.
943         (arc_external_libcall): Likewise.
944         * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
945         Remove the commented-out definition of
946         ASM_OUTPUT_EXTERNAL_LIBCALL.
947
948 2004-02-05  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
949
950         * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
951         to $$(slibdir) in the installation commands.
952
953 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
954
955         * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
956         with inner_regno, not regno.
957         * rtlanal.c (refers_to_regno_p): Same.
958
959 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
960
961         * config.gcc: Remove i370 support.
962
963 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
964
965         * doc/install.texi:  Update automake and autoconf version
966         requirements.  Note where to find gcj automake version.
967
968 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
969
970         * Makefile.in (generate-manpages): Move dependencies to ...
971         (man): here.
972         * doc/makefile.texi: Document new targets.
973         * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
974
975 2004-02-05  Kelley Cook  <kcook@gcc.gnu.org>
976
977         PR/13485
978         Makefile.in (srcextra):  Add a level of indirection to ...
979         (gcc.srcextra): ... here.
980         (po-generated): Delete.
981         (po/$(PACKAGE).pot: Use srcextra instead of po-generated.  Depend on
982         options.c.
983         (start.encap): Remove superfluous lang.srcextra dependency.
984         objc/Make-lang.in (po-generated):  Delete.
985
986 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
987
988         * config/ia64/ia64.c (REG_GP): Remove.
989
990 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
991
992         * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
993
994 2004-02-05  Devang Patel  <dpatel@apple.com>
995
996         * dwarf2out.c (force_type_die): Look up input type itself
997         instead of root_type() of type.
998
999 2004-02-05  Andreas Krebbel  <krebbel1@de.ibm.com>
1000
1001         * config/s390/s390.md ("*tmqidi_ext"): New insn.
1002         ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
1003         pre-reload splitters are transformed to post-reload
1004         define_insn_and_split patterns.
1005         ("*tmqisi_ext"): Renamed old "*tmqi_ext".
1006
1007 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
1008
1009         * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
1010         TARGET_PROMOTE_PROTOTYPES.
1011
1012 2004-02-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1013
1014         PR middle-end/13750
1015         Revert:
1016         2004-01-15  Geoffrey Keating  <geoffk@apple.com>
1017         PR pch/13361
1018         * c-typeck.c (constructor_asmspec): Delete.
1019         (struct initializer_stack): Delete field 'asmspec'.
1020         (start_init): Delete saving of asmspec.
1021         (finish_init): Don't update constructor_asmspec.
1022         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
1023         * stmt.c (expand_asm): Duplicate strings from tree.
1024         (expand_asm_operands): Likewise.
1025         * tree.c (tree_size): Update computation of size of STRING_CST.
1026         (make_node): Don't make STRING_CST nodes.
1027         (build_string): Allocate string with tree node.
1028         * tree.def (STRING_CST): Update comment.
1029         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
1030         (tree_string): Place contents of string in tree node.
1031         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
1032         from tree.
1033
1034 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1035
1036         * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
1037         msgid.
1038
1039 2004-02-05  Dorit Naishlos  <dorit@il.ibm.com>
1040
1041         * config/rs6000/altivec.md (*movv4si_internal): At least one
1042         operand must be altivec_register_operand.
1043         (*movv8hi_internal1): Likewise.
1044         (*movv16qi_internal1): Likewise.
1045         (*movv4sf_internal1): Likewise.
1046
1047 2004-02-05  David Edelsohn  <edelsohn@gnu.org>
1048
1049         * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
1050         * configure: Regenerate.
1051
1052 2004-02-05  Jonathan Wakely  <redi@gcc.gnu.org>
1053
1054         * doc/install.texi: Update description of --gxx-include-dir to
1055         give correct default value.
1056
1057 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
1058
1059         * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
1060         8 with MAC_REG.
1061
1062 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
1063
1064         * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
1065         gen_rtx_PARALLEL.
1066
1067 2004-02-05  Kazu Hirata  <kazu@cs.umass.edu>
1068
1069         * emit-rtl.c: Update the comment about the file.
1070
1071 2004-02-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1072
1073         * sourcebuild.texi (Test Idioms): Update testcase naming
1074         conventions.
1075
1076 2004-02-04  Per Bothner  <per@bothner.com>
1077
1078         Partially revert/redo 2003-10-01 change; fix -fworking-directory.
1079         * c-ppoutput.c (pp_dir_change):  New function.
1080         * c-common.h (pp_dir_change):  New declaration.
1081         * cpplib.h (struct cpp_options):  Remove working_directory field.
1082         * cppinit.c (cpp_find_main_file, cpp_push_main_file):  Merge back to
1083         (cpp_read_main_file):  as before 10-01.  Call _cpp_stack_file.
1084         Don't handle -fworking_directory here, but in c_common_post_options.
1085         (read_original_directory): Don't back up when done.
1086         Don't clear no-longer used working_directory flag.
1087         * cpplib.h:  Update declarations to match.
1088         * c-lex.c (cb_dir_change):  Move to c-opts.c.
1089         (init_c_lex):  Don't set dir_change callback here, since we want
1090         to set it even if flag_preprocess_only.
1091         * c-opts.c (cb_dir_change):  Function moved from c-lex.c.
1092         (c_common_post_options):  Set dir_change callback.
1093         Call pp_dir_change if approporiate.
1094         (finish_options):  Don't call cpp_find_main_file here.  Hence remove
1095         unneeded parameter and result. Do LC_RENAME for <built-in>.
1096         (c_common_post_options):  Call cpp_read_main_file here instead.
1097         (c_common_init):  Update accordingly.
1098         (push_command_line_include):  Don't cpp_push_main_file.
1099         Do LC_RENAME rather than LC_LEASE to get back to main file.
1100         Compared to pre-10-01 version, inline cpp_rename_to_main_file.
1101         (c_common_parse_file):  Call cpp_read_main_file for subsequent main
1102         files, but call finish_options for all files.
1103         * c-opts.c (sanitize_cpp_opts):  Don't set cpp_opts->working_directory.
1104         * fix-header.c (read_scan_file):  Call cpp_read_main_file instead of
1105         cpp_find_main_file + cpp_push_main_file.
1106         * c-lex.c (fe_file_change):  Don't set main_input_filename here.
1107         * opts.c (handle_options):  Only set main_input_filename first time.
1108
1109 2004-02-05  Ian Lance Taylor  <ian@wasabisystems.com>
1110
1111         * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
1112
1113 2004-02-04  Geoffrey Keating  <geoffk@apple.com>
1114
1115         * reload.c (find_equiv_reg): When checking for register overlap,
1116         don't index hard_regno_nregs with a pseudo-reg.
1117
1118 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
1119
1120         * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
1121
1122 2004-02-04  David Edelsohn  <edelsohn@gnu.org>
1123
1124         * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
1125         against FIRST_PSEUDO_REGISTER.
1126
1127 2004-02-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1128
1129         * Makefile.in: Move target, host overrides after per-language
1130         fragments.
1131
1132         * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
1133         (GNATLIBCFLAGS): Remove -g.
1134
1135 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
1136
1137         * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
1138         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
1139         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
1140         config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
1141         config/pdp11/pdp11.c, config/rs6000/rs6000.c,
1142         config/sparc/sparc.c, config/vax/vax.c: Revert the
1143         replacements of "FALLTHRU" with "Fall through" done in the
1144         previous patch.
1145
1146 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
1147
1148         * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
1149         config/arm/arm.c, config/arm/arm.md,
1150         config/cris/cris-protos.h, config/fr30/fr30.c,
1151         config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
1152         config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
1153         config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
1154         config/ip2k/ip2k.md, config/ip2k/libgcc.S,
1155         config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
1156         config/m68k/m68k.c, config/m68k/netbsd-elf.h,
1157         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
1158         config/ns32k/netbsd.h, config/ns32k/ns32k.c,
1159         config/ns32k/ns32k.h, config/pdp11/pdp11.h,
1160         config/rs6000/darwin-ldouble.c, config/s390/s390.h,
1161         config/s390/s390.md, config/sparc/netbsd-elf.h,
1162         config/sparc/openbsd.h, config/sparc/sparc.c,
1163         config/xtensa/lib2funcs.S: Fix comment formatting.
1164
1165 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
1166
1167         * config/alpha/alpha.c, config/arc/arc.c,
1168         config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
1169         config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
1170         config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
1171         config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
1172         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
1173         config/ia64/ia64.c, config/ia64/unwind-ia64.c,
1174         config/iq2000/iq2000.c, config/m32r/m32r.c,
1175         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
1176         config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
1177         config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
1178         config/rs6000/rs6000.h, config/sparc/sparc.c,
1179         config/vax/vax.c: Fix comment typos.  Follow spelling
1180         conventions.
1181
1182 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
1183
1184         * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
1185         caller-save.c, df.h, genconfig.c, global.c, lcm.c,
1186         ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
1187         sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
1188         config/arm/fpa.md, config/arm/iwmmxt.md,
1189         config/arm/netbsd-elf.h, config/arm/netbsd.h,
1190         config/m68hc11/m68hc11.md, config/mips/iris5.h,
1191         config/mn10300/mn10300.md, config/rs6000/altivec.md,
1192         config/sparc/netbsd-elf.h: Update copyright.
1193
1194 2004-02-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1195
1196         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
1197         for all modes whose size is greater than 8 bytes if ARCH32.
1198         (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
1199         by reference if ARCH32.
1200
1201 2004-02-04  Aldy Hernandez  <aldyh@redhat.com>
1202
1203         * cgraphunit.c (cgraph_postorder): Fix typo in comment.
1204
1205 2004-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
1206
1207         * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
1208         to before adddi3 insn patterns.
1209         ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
1210         "reload_insi"): Move to before addsi3 insn patterns.
1211
1212 2004-02-04  Mark Mitchell  <mark@codesourcery.com>
1213
1214         * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
1215         parameter.  Use it instead of current_function_is_thunk.
1216         * function.h (struct function): Update documentation for is_thunk.
1217         * tree.h (CALL_FROM_THUNK_P): New macro.
1218         * config/alpha/alpha.c (alpha_sa_mask): Do not check
1219         no_new_pseudos when testing current_function_is_thunk.
1220         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
1221
1222 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
1223
1224         * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
1225         TARGET_SETUP_INCOMING_VARARGS.
1226
1227 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
1228
1229         * emit-rtl.c (gen_rtx): Remove.
1230         * genattrtab.c: Don't mention gen_rtx in a comment.
1231         * rtl.h: Remove the prototype for gen_rtx.
1232         * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
1233
1234 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
1235
1236         * config/arc/arc.h, config/fr30/fr30.h
1237         (SETUP_INCOMING_VARARGS): Remove the target-independent
1238         comments.
1239         * doc/tm.texi: Don't mention deprecated target macros.
1240
1241 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
1242
1243         * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
1244         target-independent comment.
1245
1246 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
1247
1248         * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
1249         mention deprecated target macros.
1250
1251 2004-02-04  Kazu Hirata  <kazu@cs.umass.edu>
1252
1253         * config.gcc: Remove obsolete ports and configurations.
1254         * config/linux-aout.h, config/netware.h,
1255         config/t-linux-gnulibc1, config/d30v/abi,
1256         config/d30v/d30v-protos.h, config/d30v/d30v.c,
1257         config/d30v/d30v.h, config/d30v/d30v.md,
1258         config/d30v/libgcc1.asm, config/d30v/t-d30v,
1259         config/dsp16xx/dsp16xx-modes.def,
1260         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
1261         config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
1262         config/i370/README, config/i370/i370-c.c,
1263         config/i370/i370-protos.h, config/i370/i370.c,
1264         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
1265         config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
1266         config/i386/freebsd-aout.h, config/i386/linux-aout.h,
1267         config/i386/moss.h, config/i386/netware.h,
1268         config/i386/svr3.ifile, config/i386/svr3dbx.h,
1269         config/i386/svr3gas.h, config/i386/svr3z.ifile,
1270         config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
1271         config/i960/i960-c.c, config/i960/i960-coff.h,
1272         config/i960/i960-modes.def, config/i960/i960-protos.h,
1273         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
1274         config/i960/rtems.h, config/i960/t-960bare,
1275         config/m68k/hp310.h, config/m68k/hp320.h,
1276         config/m68k/hp320base.h, config/m68k/m68kv4.h,
1277         config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
1278         Remove.
1279         * doc/extend.texi, doc/install.texi, doc/invoke.texi,
1280         doc/md.texi: Remove mentions of obsolete ports.
1281
1282 2004-02-04  Jan Hubicka  <jh@suse.cz>
1283
1284         * alias.c (find_base_term, get_addr):  Do not dereference NULL
1285         pointer when all VALUE's locations has been invalidated.
1286         (rtx_equal_for_memref_p): Simplify checking of VALUEs.
1287
1288 2004-02-03  Wolfgang Bangerth  <bangerth@dealii.org>
1289
1290         * doc/invoke.texi (x86 options): Fix spelling/wording.
1291
1292 2004-02-03  Richard Sandiford  <rsandifo@redhat.com>
1293
1294         * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
1295         put the original string in a comment.
1296         * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
1297         * config/mips/mips.c (mips_output_ascii): Likewise.
1298         * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
1299
1300 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
1301
1302         * system.h (GIV_SORT_CRITERION): Poison.
1303         * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
1304         * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
1305
1306 2004-02-03  Roger Sayle  <roger@eyesopen.com>
1307
1308         PR target/9348
1309         * expr.c (expand_expr_real) <MULT_EXPR>:  When performing widening
1310         multiplies with a multiplication of the wrong signedness, its the
1311         signedness of the multiplication that we've performed that needs to
1312         be passed to expand_mult_highpart_adjust.  Avoid emitting a nop-move
1313         if expand_mult_highpart_adjust places the result in target.
1314
1315 2004-02-03  Richard Henderson  <rth@redhat.com>
1316
1317         * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
1318
1319 2004-02-03  J"orn Rennecke <joern.rennecke@superh.com>
1320
1321         * config.gcc (sh[234]l): Use little endian fragments.
1322
1323 2004-02-03  Paul Koning  <pkoning@equallogic.com>
1324
1325         * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
1326         * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
1327         * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
1328         encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
1329         floating point format.
1330         (pdp11_f_format, pdp11_d_format): New real_format descriptors for
1331         the above functions.
1332         (output_move_quad): Output float values in correct target format.
1333         (legitimate_const_double_p): New function.
1334         * config/pdp11/pdp11.h: Fix typos.
1335         (FLOAT_WORDS_BIG_ENDIAN): Add definition.
1336         (TARGET_FLOAT_FORMAT): Ditto.
1337         (pdp11_f_format, pdp11_d_format): Add external declarations.
1338         (MAX_REGS_PER_ADDRESS): Corrected.
1339         (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
1340         (PRINT_OPERAND): Output float literals in target format.
1341
1342 2004-02-03  Mark Mitchell  <mark@codesourcery.com>
1343
1344         PR c++/13975
1345         * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
1346         TI_PRIVATE.
1347         (access_public_node): Redefine.
1348         (access_protected_node): Likewise.
1349         (access_private_node): Likewise.
1350         * tree.c (build_common_tree_nodes): Create access_public_node,
1351         access_protected_node, and access_private_node.
1352
1353 2004-02-03  Steve Ellcey  <sje@cup.hp.com>
1354
1355         * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
1356         (MASK_INLINE_INT_DIV_THR): Ditto.
1357         (MASK_INLINE_SQRT_LAT): Ditto.
1358         (MASK_INLINE_SQRT_THR): Ditto.
1359         (MASK_DWARF2_ASM): Ditto.
1360         (MASK_EARLY_STOP_BITS): Ditto.
1361
1362 2004-02-02  Paul Brook  <paul@codesourcery.com>
1363
1364         Merge from csl-arm-branch.
1365
1366         2004-01-30  Paul Brook  <paul@codesourcery.com>
1367
1368         * aof.h (REGISTER_NAMES): Add vfp reg names
1369         (ADDITIONAL_REGISTER_NAMES): Ditto.
1370         * aout.h (REGISTER_NAMES): Ditto.
1371         (ADDITIONAL_REGISTER_NAMES): Ditto.
1372         * arm-protos.h: Update/Add Prototypes.
1373         * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
1374         Only allow 0.0 for VFP.
1375         (fp_consts_inited): Rename from fpa_consts_inited.  Update users.
1376         (values_fp): Rename from values_fpa.  Update Users.
1377         (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
1378         Update users.  Only check valid constants for this hardware.
1379         (arm_float_rhs_operand): Rename from fpa_rhs_operand.  Update Users.
1380         Only allow consts for FPA.
1381         (arm_float_add_operand): Rename from fpa_add_operand.  Update users.
1382         Only allow consts for FPA.
1383         (use_return_insn): Check for saved VFP regs.
1384         (arm_legitimate_address_p): Handle VFP DFmode addressing.
1385         (arm_legitimize_address): Ditto.
1386         (arm_general_register_operand): New function.
1387         (vfp_mem_operand): New function.
1388         (vfp_compare_operand): New function.
1389         (vfp_secondary_reload_class): New function.
1390         (arm_float_compare_operand): New function.
1391         (vfp_print_multi): New function.
1392         (vfp_output_fstmx): New function.
1393         (vfp_emit_fstm): New function.
1394         (arm_output_epilogue): Output VPF reg restore code.
1395         (arm_expand_prologue): Output VFP reg save code.
1396         (arm_print_operand): Add 'P'.
1397         (arm_hard_regno_mode_ok): Return modes for VFP regs.
1398         (arm_regno_class): Return classes for VFP regs.
1399         (arm_compute_initial_elimination_offset): Include space for VFP regs.
1400         (arm_get_frame_size): Ditto.
1401         * arm.h (FIXED_REGISTERS): Add VFP regs.
1402         (CALL_USED_REGISTERS): Ditto.
1403         (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
1404         (FIRST_VFP_REGNUM): Define.
1405         (LAST_VFP_REGNUM): Define.
1406         (IS_VFP_REGNUM): Define.
1407         (FIRST_PSEUDO_REGISTER): Include VFP regs.
1408         (HARD_REGNO_NREGS): Handle VFP regs.
1409         (REG_ALLOC_ORDER): Add VFP regs.
1410         (enum reg_class): Add VFP_REGS.
1411         (REG_CLASS_NAMES): Ditto.
1412         (REG_CLASS_CONTENTS): Ditto.
1413         (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
1414         (REG_CLASS_FROM_LETTER): Add 'w'.
1415         (EXTRA_CONSTRAINT_ARM): Add 'U'.
1416         (EXTRA_MEMORY_CONSTRAINT): Define.
1417         (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
1418         (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
1419         (REGISTER_MOVE_COST): Ditto.
1420         (PREDICATE_CODES): Add arm_general_register_operand,
1421         arm_float_compare_operand and vfp_compare_operand.
1422         * arm.md (various): Rename as above.
1423         (divsf3): Enable when TARGET_VFP.
1424         (divdf3): Ditto.
1425         (movdfcc): Ditto.
1426         (sqrtsf2): Ditto.
1427         (sqrtdf2): Ditto.
1428         (arm_movdi): Disable when TARGET_VFP.
1429         (arm_movsi_insn): Ditto.
1430         (movsi): Only split with general regs.
1431         (cmpsf): Use arm_float_compare_operand.
1432         (push_fp_multi): Restrict to TARGET_FPA.
1433         (vfp.md): Include.
1434         * vfp.md: New file.
1435         * fpa.md (various): Rename as above.
1436         * doc/md.texi: Document ARM w and U constraints.
1437
1438         2004-01-15  Paul Brook  <paul@codesourcery.com>
1439
1440         * config.gcc: Add with_fpu.  Allow with-float=softfp.
1441         * config/arm/arm.c (arm_override_options): Rename *-s to *s.
1442         Break out of loop when we find a float-abi.  Fix typo.
1443         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
1444         Set -mfloat-abi=.
1445         * doc/install.texi: Document --with-fpu.
1446
1447         2003-01-14  Paul Brook  <paul@codesourcery.com>
1448
1449         * config.gcc (with_arch): Add armv6.
1450         * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
1451         * config/arm/arm.c (arm_overrride_options): Ditto.
1452
1453         2004-01-08  Richard Earnshaw  <rearnsha@arm.com>
1454
1455         * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
1456         (FL_ARCH6): Renamed from FL_ARCH6J.
1457         (arm_arch3m): Renamed from arm_fast_multiply.
1458         (arm_arch6): Renamed from arm_arch6j.
1459         * arm.h: Update all uses of above.
1460         * arm-cores.def: Likewise.
1461         * arm.md: Likewise.
1462
1463         * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
1464         not arm6j.  Add entry for arch armv6.
1465
1466         2004-01-07  Richard Earnshaw  <rearnsha@arm.com>
1467
1468         * arm.c (arm_emit_extendsi): Delete.
1469         * arm-protos.h (arm_emit_extendsi): Delete.
1470         * arm.md (zero_extendhisi2): Also handle zero-extension of
1471         non-subregs.
1472         (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
1473         (thumb_zero_extendhisi2): Only match if not v6.
1474         (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
1475         (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
1476         (thumb_extendqisi2): Likewise.
1477         (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
1478         (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
1479         (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
1480         (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
1481         (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
1482         (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
1483         (arm_zero_extendhisi2addsi): Remove subreg.  Add attributes.
1484         (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
1485         (arm_extendqisi2addsi): Likewise.
1486
1487         2003-12-31  Mark Mitchell  <mark@codesourcery.com>
1488
1489         Revert this change:
1490         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
1491         + REG addressing modes.
1492
1493         * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
1494         + REG addressing modes.
1495
1496         2003-12-30  Mark Mitchell  <mark@codesourcery.com>
1497
1498         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
1499         CONSTANT_P_RTX.
1500
1501         2003-30-12  Paul Brook  <paul@codesourcery.com>
1502
1503         * longlong.h: protect arm inlines with !defined (__thumb__)
1504
1505         2003-30-12  Paul Brook  <paul@codesourcery.com>
1506
1507         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
1508
1509         2003-12-30  Nathan Sidwell  <nathan@codesourcery.com>
1510
1511         * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
1512         change.
1513
1514         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
1515
1516         * builtins.c (expand_builtin_apply_args_1): Add pretend args size
1517         to the virtual incoming args pointer for downward stacks.
1518
1519         2003-12-29  Paul Brook  <paul@codesourcery.com>
1520
1521         * config/arm/arm-cores.def: Add cost function.
1522         * config/arm/arm.c (arm_*_rtx_costs): New functions.
1523         (arm_rtx_costs): Remove
1524         (struct processors): Add rtx_costs field.
1525         (all_cores, all_architectures): Ditto.
1526         (arm_override_options): Set targetm.rtx_costs.
1527         (thumb_rtx_costs): New function.
1528         (arm_rtx_costs_1): Remove cases handled elsewhere.
1529         * config/arm/arm.h (processor_type): Add COSTS parameter.
1530
1531         2003-12-29  Nathan Sidwell  <nathan@codesourcery.com>
1532
1533         * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
1534         (arm926ejs.md): Include it.
1535         * config/arm/arm926ejs.md: New pipeline description.
1536
1537         2003-12-24  Paul Brook  <paul@codesourcery.com>
1538
1539         * config/arm/arm.c (arm_arch6j): New variable.
1540         (arm_override_options): Set it.
1541         (arm_emit_extendsi): New function.
1542         * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
1543         * config/arm/arm.h (arm_arch6j): Declare.
1544         * config/arm/arm.md: Add sign/zero extend insns.
1545
1546         2003-12-23  Paul Brook  <paul@codesourcery.com>
1547
1548         * config/arm/arm.c (all_architectures): Add armv6.
1549         * doc/invoke.texi: Document it.
1550
1551         2003-12-19  Paul Brook  <paul@codesourcery.com>
1552
1553         * config/arm/arm.md: Add load1 and load_byte "type" attrs.  Modify
1554         insn patterns to match.
1555         * config/arm/arm-generic.md: Ditto.
1556         * config/arm/cirrus.md: Ditto.
1557         * config/arm/fpa.md: Ditto.
1558         * config/amm/iwmmxt.md: Ditto.
1559         * config/arm/arm1026ejs.md: Ditto.
1560         * config/arm/arm1135jfs.md: Ditto.  Add insn_reservation and bypasses
1561         for 11_loadb.
1562
1563         2003-12-18  Nathan Sidwell  <nathan@codesourcery.com>
1564
1565         * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
1566         * config/arm/arm.c (arm_adjust_cost): Check shift cost for
1567         TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
1568         (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
1569         arm_no_early_mul_dep): Correctly deal with conditional execution,
1570         parallels and single shift operations.
1571         (arm_no_early_alu_shift_value_dep): Define.
1572         * arm.md (attr type): Replace 'normal' with 'alu',
1573         'alu_shift' and 'alu_shift_reg'.
1574         (attr core_cycles): Adjust.
1575         (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
1576         *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
1577         *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
1578         *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
1579         *arith_shiftsi_compare0_scratch, *sub_shiftsi,
1580         *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
1581         *if_shift_move, *if_move_shift, *if_shift_shift): Set type
1582         attribute appropriately.
1583         * config/arm/arm1026ejs.md (alu_op): Adjust.
1584         (alu_shift_op, alu_shift_reg_op): New.
1585         * config/arm/arm1136.md: Add better bypasses for early
1586         registers. Remove load[234] and store[234] bypasses.
1587         (11_alu_op): Adjust.
1588         (11_alu_shift_op, 11_alu_shift_reg_op): New.
1589
1590         2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
1591
1592         * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
1593         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
1594         * config/arm/arm.c (arm_no_early_store_addr_dep,
1595         arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
1596         * config/arm/arm1026ejs.md: Add load-store bypass.
1597         * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
1598         Add bypasses between instructions.
1599
1600         2003-12-10  Paul Brook  <paul@codesourcery.com>
1601
1602         * config/arm/arm.c (arm_fpu_model): New variable.
1603         (arm_fload_abi): New variable.
1604         (target_fpe_name): Rename from target_fp_name.
1605         (target_fpu_name): New variable.
1606         (arm_is_cirrus): Remove.
1607         (fpu_desc): New struct.
1608         (all_fpus): Define.
1609         (pf_model_for_fpu): Define.
1610         (all_loat_abis): Define.
1611         (arm_override_options): Set fp arch flags based on -mfpu=
1612         and -float-abi=.
1613         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
1614         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
1615         (*): Use new TARGET_* flags.
1616         * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
1617         (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
1618         (TARGET_SOFT_FLOAT): Ditto.
1619         (TARGET_SOFT_FLOAT_ABI): New.
1620         (TARGET_MAVERICK): Rename from TARGET_CIRRUS.  No longer implies
1621         TARGET_HARD_FLOAT.
1622         (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
1623         (TARGET_OPTIONS): Add -mfpu=.
1624         (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
1625         (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
1626         (arm_pf_model): Define.
1627         (arm_float_abi_type): Define.
1628         (fputype): Add FPUTYPE_VFP.  Change SOFT_FPA->NONE
1629         * config/arm/arm.md: Use new TARGET_* flags.
1630         * config/arm/cirrus.md: Ditto.
1631         * config/arm/fpa.md: Ditto.
1632         * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
1633         * config/arm/semi.h (ASM_SPEC): Ditto.
1634         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
1635         (FPUTYPE_DEFAULT): Set to VFP.
1636         * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
1637
1638         2003-11-22  Phil Edwards  <phil@codesourcery.com>
1639
1640         PR target/12476
1641         * config/arm/arm.c (arm_output_mi_thunk):  In Thumb mode, use
1642         'bx' instead of 'b' to avoid branch range restrictions.  Output
1643         the thunk immediately before the thunked-to function.
1644         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME):  Do not emit
1645         .thumb_func if a thunk is being generated.  Emit .code 16 along
1646         with .thumb_func if a thunk is not being generated.
1647
1648         2003-11-15  Nicolas Pitre <nico@cam.org>
1649
1650         * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
1651         arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
1652         * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
1653         (lshrdi3_iwmmxt): Renamed from lshrdi3.
1654         * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
1655
1656         2003-11-12  Steve Woodford  <scw@wasabisystems.com>
1657             Ian Lance Taylor  <ian@wasabisystems.com>
1658
1659         * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
1660         code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
1661
1662         2003-11-05  Phil Edwards  <phil@codesourcery.com>
1663
1664         * config/arm/arm.md (insn):  Add new V6 instruction names.
1665         (generic_sched):  New attr.
1666         * config/arm/arm-generic.md:  Use generic_sched here.
1667         * config/arm/arm1026ejs.md:  Do not model fetch/issue/decode
1668         stages of pipeline.  Adjust latency counts accordingly.
1669         * config/arm/arm1136jfs.md:  New file.
1670
1671         2003-10-28  Mark Mitchell  <mark@codesourcery.com>
1672
1673         * config/arm/arm.h (processor_type): New enumeration type.
1674         (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
1675         ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
1676         (CPP_CPU_ARCH_SPEC): Likewise.
1677         * config/arm/arm.c (arm_tune): New variable.
1678         (all_cores): Use cores.def.
1679         (all_architectures): Add representative processor.
1680         (arm_override_options): Restructure way in which tuning
1681         information is deduced.
1682         * arm.md: Update "insn" and "type" attributes throughout.
1683         (insn): New attribute.
1684         (type): Compute "mult" from "insn" attribute.  Add load2,
1685         load3, load4 alternatives.
1686         (arm automaton): Move to arm-generic.md.
1687         * config/arm/arm-cores.def: New file.
1688         * config/arm/arm-generic.md: Likewise.
1689         * config/arm/arm1026ejs.md: Likewise.
1690
1691 2004-02-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
1692
1693         * doc/invoke.texi (SPARC options): Remove -mflat and
1694         all -mxxx (xxx:chip) options.
1695         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
1696         * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
1697         * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
1698         * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
1699         * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
1700         * config/sparc/sparc.c: Likewise.
1701         (sparc_output_function_prologue): Remove TARGET_FLAT handling.
1702         (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
1703         (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
1704         (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
1705         (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
1706         (sparc_flat_must_save_register_p): Likewise.
1707         (sparc_flat_compute_frame_size): Likewise.
1708         (sparc_flat_save_restore): Likewise.
1709         (sparc_flat_function_prologue): Likewise.
1710         (sparc_flat_function_epilogue): Likewise.
1711         (sparc_flat_epilogue_delay_slots): Likewise.
1712         (sparc_flat_eligible_for_epilogue_delay): Likewise.
1713         (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
1714         * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
1715         (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
1716         (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
1717         (CONDITIONAL_REGISTER_USAGE): Likewise.
1718         (FRAME_POINTER_REQUIRED): Likewise.
1719         (INITIAL_ELIMINATION_OFFSET): Likewise.
1720         (BASE_RETURN_VALUE_REG): Likewise.
1721         (BASE_OUTGOING_VALUE_REG): Likewise.
1722         (BASE_PASSING_ARG_REG): Likewise.
1723         (BASE_INCOMING_ARG_REG): Likewise.
1724         (INCOMING_REGNO): Likewise.
1725         (OUTGOING_REGNO): Likewise.
1726         (LOCAL_REGNO): Likewise.
1727         (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
1728         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
1729         (EPILOGUE_USES): Likewise.
1730         * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
1731         ("flat" attribute): Delete.
1732         (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
1733         handling.
1734         (call followed by jump define_peephole's): Delete.
1735         (exception_receiver): Likewise.
1736         (builtin_setjmp_receiver): Likewise.
1737         * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
1738
1739 2004-02-03  Paolo Bonzini  <bonzini@gnu.org>
1740
1741         PR c/11658
1742         PR c/13994
1743         * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
1744         on langhooks.h.
1745         * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
1746         * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
1747         Include langhooks.h.  Replace c_common_truthvalue_conversion
1748         with the truthvalue_conversion language hook throughout.
1749         (expr_no_commas): Call default_conversion before save_expr
1750         for the first term of the production 'x ? : y'.
1751         * c-common.c (c_common_truthvalue_conversion): Remove
1752         obsolete block.  Invoke recursively the hook instead
1753         of this function.
1754         * c-convert.c (convert): handle ERROR_MARK_NODE.
1755         * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
1756         returned by the truthvalue_conversion language hook.
1757         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
1758         c_objc_common_truthvalue_conversion.
1759         * c-objc-common.c (c_objc_common_truthvalue_conversion):
1760         New function.
1761         * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
1762         * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
1763         c_objc_common_truthvalue_conversion.
1764
1765 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
1766
1767         * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
1768         of gen_rtx.
1769         (LIBCALL_VALUE): Likewise.
1770         * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
1771         gen_rtx_CC0 instead of gen_rtx.
1772         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
1773         gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
1774         (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
1775         gen_rtx.
1776         (m68hc11_emit_logical): Likewise.
1777
1778 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
1779
1780         * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
1781         config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
1782         config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
1783         config/m32r/m32r.md, config/m68hc11/m68hc11.c,
1784         config/mips/mips.md, config/mmix/mmix.c,
1785         config/mn10300/mn10300.c, config/mn10300/mn10300.md,
1786         config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
1787         config/rs6000/altivec.md, config/s390/s390.c,
1788         config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
1789         config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
1790         Use const0_rtx instead of GEN_INT (0).  Do the same for other
1791         constants that are readily available.
1792
1793 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
1794
1795         * doloop.c, optabs.c, regmove.c, sched-deps.c,
1796         config/i386/i386.c, config/i386/i386.md: Use const0_rtx
1797         instead of GEN_INT (0).  Do the same for other constants that
1798         are readily available.
1799
1800 2004-02-03  Kazu Hirata  <kazu@cs.umass.edu>
1801
1802         * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
1803         gen_rtx.
1804         * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
1805         instead of gen_rtx.
1806         * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
1807         gen_rtx.
1808         * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
1809         gen_rtx_ASHIFT instead of gen_rtx.
1810         (udivmodqi4): Likewise.
1811
1812 2004-02-02  Richard Henderson  <rth@redhat.com>
1813
1814         PR target/13789
1815         * expr.c (store_expr): Use force_operand before emit_move_insn.
1816
1817 2004-02-02  Jeff Law  <law@redhat.com>
1818             Roger Sayle  <roger@eyesopen.com>
1819
1820         * tree.c (commutative_tree_code, associative_tree_code): New
1821         functions.
1822         (iterative_hash_expr): Use commutative_tree_code.
1823         * tree.h (commutative_tree_code, associative_tree_code): Declare.
1824         * fold-const.c (operand_equal_p): Use commutative_tree_code
1825         rather than inlining the commutativity check.
1826         (fold): Likewise.
1827
1828 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
1829
1830         * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
1831         * config/frv/frv-protos.h: Remove the prototype for
1832         frv_function_arg_keep_as_reference.
1833         * config/frv/frv.c (frv_function_arg_keep_as_reference):
1834         Remove.
1835         * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
1836         * config/stormy16/stormy16.h: Remove the commented-out
1837         definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
1838
1839 2004-02-03  Alan Modra  <amodra@bigpond.net.au>
1840
1841         PR target/13914
1842         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
1843         for retaddr_column.
1844
1845 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
1846
1847         * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
1848         gen_rtx.
1849
1850 2004-02-02  Eric Christopher  <echristo@redhat.com>
1851             Zack Weinberg  <zack@codesourcery.com>
1852
1853         * c-opts.c (c_common_handle_option): Add -finput-charset.
1854         * c.opt: Ditto.
1855         * cppcharset.c (one_iso88591_to_utf8): Remove.
1856         (convert_iso88591_utf8): Ditto.
1857         (conversion_tab): Remove 8859-1 converter.
1858         (_cpp_input_to_utf8): Remove.
1859         (_cpp_init_iconv_buffer): Ditto.
1860         (_cpp_close_iconv_buffer): Ditto.
1861         (_cpp_convert_input): New function.
1862         (_cpp_default_encoding): Ditto.
1863         * cpphash.h: Add/remove prototypes for above.
1864         * cppfiles.c (read_file_guts): Use _cpp_convert_input.
1865         * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
1866         for narrow execution and input character sets.
1867         * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
1868         * doc/cppopts.texi: Document -finput-charset.
1869
1870 2004-02-02  David Edelsohn  <edelsohn@gnu.org>
1871
1872         * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
1873         against FIRST_PSEUDO_REGISTER.
1874
1875 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1876
1877         * doc/invoke.texi (SPARC options): Further improve.
1878
1879 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
1880
1881         * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
1882         config/h8300/h8300.c, config/ip2k/ip2k.md,
1883         config/iq2000/iq2000.c, config/mips/mips.c,
1884         config/rs6000/rs6000.c, config/rs6000/rs6000.md,
1885         config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
1886         config/v850/v850.md: Fix indentation.
1887
1888 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1889
1890         * config/sparc/sparc.c (function_arg_slotno): Align TImode
1891         arguments on a 16-byte boundary in the parameter array if ARCH64.
1892         Split handling of TFmode.
1893
1894 2004-02-02  Paolo Bonzini  <bonzini@gnu.org>
1895
1896         * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
1897         Don't test CONSTANT_P (x).
1898         (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
1899         ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
1900         Fix misindentation.
1901
1902 2004-02-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
1903
1904         * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
1905
1906 2004-02-02  Kazu Hirata  <kazu@cs.umass.edu>
1907
1908         * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
1909         config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
1910         config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
1911         config/iq2000/iq2000.c, config/m32r/m32r.c,
1912         config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
1913         config/mn10300/mn10300.c, config/rs6000/rs6000.c,
1914         config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
1915         config/stormy16/stormy16.c, config/v850/v850.md,
1916         config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
1917
1918 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
1919
1920         * config/mcore/mcore.c (block_move_sequence): Replace
1921         gen_rtx_CONST_INT with GEN_INT.
1922
1923 2004-02-02  Jan Hubicka  <jh@suse.cz>
1924
1925         * alias.c (record_set): Use hard_regno_nregs.
1926         * bt-load.c (find_btr_reference, note_btr_set): Likewise.
1927         * builtins.c (apply_args_size): Likewise.
1928         * caller-save.c (setup_save_areas, save_call_clobbered_regs,
1929         mark_set_regs, add_stored_regs, mark_referenced_regs,
1930         insert_restore, insert_save, insert_one_insn): Likewise.
1931         * cfgcleanup.c: Include regs.h
1932         (mark_effect, mentions_nonequal_regs): Likewise.
1933         * cfgrtl.c (mark_killed_regs): Likewise
1934         * combine.c (update_table_tick, record_value_for_reg,
1935         record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
1936         reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
1937         reg_bitfield_target_p, distribute_notes): Likewise.
1938         * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
1939         exp_equiv_p, cse_insn): Likewise.
1940         * cselib.c (cselib_lookup): Likewise.
1941         (cselib_invalidate_regno, cselib_record_set): Likewise.
1942         * df.c (df_ref_record): Likewise.
1943         * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
1944         Likewise.
1945         * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
1946         count_or_remove_death_notes_bb): Likewise.
1947         * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
1948         * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
1949         mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
1950         * integrate.c (mark_stores): Likewise.
1951         * jump.c (delete_prior_computation): Likewise.
1952         * lcm.c (reg_dies, reg_becomes_live): Likewise.
1953         * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
1954         * loop.c (LOOP_REGNO_NREGS): Likewise.
1955         * postreload.c (reload_combine, reload_combine_note_store,
1956         reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
1957         * ra-colorize.c (combine, color_usable_p, get_free_reg,
1958         calculate_dont_begin, calculate_dont_begin, colorize_one_web,
1959         try_recolor_web, insert_coalesced_conflicts, check_colors,
1960         break_precolored_alias): Likewise.
1961         * ra-debug.c: Include regs.h
1962         (ra_print_rtx_object): Likewise.
1963         * ra-rewrite (choose_spill_colors): Likewise.
1964         (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
1965         * ra.c (init_ra): Likewise.
1966         * recog.c (reg_fits_class_p, peep2_reg_dead_p,
1967         peep2_find_free_register): Likewise.
1968         * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
1969         * regclass.c (hard_regno_nregs): New array.
1970         (init_reg_modes_once): Initialize it.
1971         (choose_hard_reg_mode): Use it.
1972         (record_reg_classes): Likewise.
1973         * regmove.c (mark_flags_life_zones): Likewise.
1974         * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
1975         scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
1976         copy_value, maybe_mode_change, find_oldest_value_reg,
1977         copyprop_hardreg_forward_1):
1978         * regs.h (hard_regno_nregs): Declare.
1979         * realod.c (reload_inner_reg_of_subreg): Use it.
1980         (push_reload, combine_reloads, find_dummy_reload,
1981         hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
1982         refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
1983         reload_adjust_reg_for_mode): Likewise.
1984         * reload1.c (compute_use_by_pseudos, count_pseudo,
1985         count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
1986         spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
1987         clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
1988         allocate_reload_reg, choose_reload_regs, emit_reload_insns,
1989         delete_output_reload): Likewise.
1990         * resource.c (update_live_status, mark_referenced_resources,
1991         mark_set_resources, mark_target_live_regs): Likewise.
1992         * rtlanal.c:  Include regs.h
1993         (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
1994         dead_or_set_regno_p, find_regno_note, find_reg_fusage,
1995         subreg_regno_offset, subreg_offset_representable_p,
1996         hoist_test_store): Likewise.
1997         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
1998         * sched-rgn.c (check_live_1, update_live_1): Likewise.
1999         * stmt.c: Include regs.h
2000         (decl_conflicts_with_clobbers_p): Likewise.
2001         * varasm.c (make_decl_rtl): Likewise.
2002         * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
2003
2004 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
2005
2006         * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
2007         config/arm/linux-gas.h, config/arm/netbsd-elf.h,
2008         config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
2009         config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
2010         config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
2011         config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
2012         config/iq2000/iq2000.h, config/m32r/m32r.c,
2013         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2014         config/m68hc11/m68hc11.md, config/m68k/m68k.md,
2015         config/mcore/mcore.c, config/mcore/mcore.h,
2016         config/mcore/mcore.md, config/mips/mips.c,
2017         config/ns32k/ns32k.h, config/ns32k/ns32k.md,
2018         config/rs6000/rs6000.c, config/s390/s390.c,
2019         config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
2020         config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
2021         "gen_rtx (FOO, " with "gen_rtx_FOO (".
2022
2023 2004-02-01  Kazu Hirata  <kazu@cs.umass.edu>
2024
2025         * config/h8300/h8300.md (two peephole2's): New.
2026
2027 2004-02-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
2028
2029         * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
2030         (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
2031         (ASM_CPU_SPEC): Likewise
2032         * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
2033         (ASM_CPU_SPEC): Remove -mcpu=v8plus.  Handle -mcpu=ultrasparc3.
2034
2035 2004-02-01  Roger Sayle  <roger@eyesopen.com>
2036
2037         * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
2038         isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
2039         (expand_builtin): Always call expand_builtin_pow.
2040
2041 2004-02-01  Roger Sayle  <roger@eyesopen.com>
2042
2043         * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
2044         BUILT_IN_SIGNBITL): New GCC builtins.
2045         * builtins.c (expand_builtin_signbit): New function to RTL expand
2046         calls to signbit, signbitf and signbitl as inline intrinsics.
2047         (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
2048         (fold_builtin_signbit): New function to perform constant folding
2049         of signbit, signbitf and signbitl.
2050         (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
2051
2052         * doc/extend.texi: Document new signbit{,f,l} builtins.
2053
2054 2004-02-01  Richard Sandiford  <rsandifo@redhat.com>
2055
2056         * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
2057
2058 2004-02-01  Chris Demetriou  <cgd@broadcom.com>
2059
2060         * config/mips/mips.h (PREDICATE_CODES): Remove entries for
2061         "mips_const_double_ok" and "simple_memory_operand", which were
2062         removed from the MIPS port with the mips-3_4-rewrite branch merge.
2063         * config/mips/mips.c (mips16_lay_out_constants): Update comment
2064         for removal of simple_memory_operand.
2065
2066 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2067
2068         * config/c4x/c4x.md: Use GEN_INT instead of
2069         gen_rtx (CONST_INT, ...).
2070
2071 2004-01-31  Richard Henderson  <rth@redhat.com>
2072
2073         * varasm.c (output_constant_pool): Don't zap the pool.
2074
2075 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2076
2077         * genrecog.c (decision_type): Add DT_const_int.
2078         (write_cond) [DT_const_int]: Print a comparison against small
2079         constant.
2080         (write_node): Simplify comparisons against small constants
2081         before printing tests.
2082
2083 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2084
2085         * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
2086         instead of gen_rtx_CONST_INT.
2087
2088 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2089
2090         * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
2091         instead of gen_rtx_CONST_INT.
2092
2093 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2094
2095         * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
2096         hook_bool_CUMULATIVE_ARGS_false.
2097         * targhooks.c (default_strict_argument_naming): Rename to
2098         hook_bool_CUMULATIVE_ARGS_false.
2099         * targhooks.h: Update the prototype for
2100         default_strict_argument_naming.
2101
2102 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2103
2104         * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
2105         * config/sh/sh.h: Likewise.
2106         * config/sh/sh.md: Likewise.
2107
2108 2004-01-31  Eric Botcazou  <ebotcazou@libertysurf.fr>
2109
2110         * doc/invoke.texi (SPARC options): Restructure and update.
2111
2112 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2113
2114         * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
2115         STRICT_ARGUMENT_NAMING): Poison.
2116         * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
2117         hook_bool_tree_false.
2118         * targhooks.c (default_promote_function_args): Remove.
2119         (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
2120         Don't check incoming.
2121         (default_strict_argument_naming): Don't use
2122         STRICT_ARGUMENT_NAMING.
2123         * targhooks.h: Remove the prototype for
2124         default_promote_function_args.
2125
2126 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2127
2128         * config/i386/i386-protos.h: Remove the prototype for
2129         ix86_setup_incoming_varargs.
2130         * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
2131         (ix86_setup_incoming_varargs): Make it static.
2132         * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
2133
2134 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2135
2136         * alloc-pool.c: Fix comment typos.
2137         * builtin-types.def: Likewise.
2138         * builtins.def: Likewise.
2139         * c-pretty-print.c: Likewise.
2140         * df.h: Likewise.
2141         * reload1.c: Likewise.
2142
2143 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2144
2145         * doc/invoke.texi: Follow spelling conventions.
2146         * doc/tm.texi: Likewise.
2147
2148 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2149
2150         * doc/install.texi: Fix typos.
2151         * doc/invoke.texi: Likewise.
2152
2153 2004-01-31  Ulrich Weigand  <uweigand@de.ibm.com>
2154
2155         * config/s390/s390.c (s390_decompose_address): Do not treat virtual
2156         registers as pointers.
2157         * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
2158
2159 2004-01-31  Paolo Bonzini  <bonzini@gnu.org>
2160
2161         * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
2162         and restore it to gen_lowpart_general on exit.
2163         (gen_lowpart_for_combine): Adjust all callers to go through
2164         gen_lowpart.
2165         * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
2166         and restore it to gen_lowpart_general on exit.
2167         (gen_lowpart_if_possible): Adjust all callers to go through
2168         gen_lowpart.
2169         * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
2170         (gen_lowpart): Declare as pointer to function, initialized to
2171         gen_lowpart_general.
2172         * rtl.h (gen_lowpart): Declare as pointer to function.
2173
2174 2004-01-31  Kazu Hirata  <kazu@cs.umass.edu>
2175
2176         * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
2177         * calls.c: Likewise.
2178         * emit-rtl.c: Likewise.
2179         * function.c: Likewise.
2180         * reload1.c: Likewise.
2181         * config/i386/cygming.h: Likewise.
2182         * config/i386/i386.c: Likewise.
2183         * config/i386/winnt.c: Likewise.
2184
2185 2004-01-30  Dara Hazeghi  <dhazeghi@yahoo.com>
2186
2187         PR bootstrap/9249
2188         * doc/install.texi: document --enable-__cxa_atexit option.
2189         * configure.ac: Disable __cxa_atexit if not supported.
2190         * configure: Regenerate.
2191
2192 2003-01-30  Daniel Berlin  <dberlin@dberlin.org>
2193
2194         * ggc-zone.c (ggc_free): New function.
2195
2196 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
2197
2198         alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
2199         cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
2200         flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
2201         ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
2202         tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
2203         config/alpha/alpha.c, config/alpha/alpha.h,
2204         config/alpha/alpha.md, config/alpha/unicosmk.h,
2205         config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
2206         config/c4x/c4x-protos.h, config/c4x/c4x.md,
2207         config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
2208         config/frv/frvend.c, config/i386/cygming.h,
2209         config/i386/djgpp.h, config/i386/emmintrin.h,
2210         config/i386/gthr-win32.c, config/i386/i386-interix.h,
2211         config/i386/i386-protos.h, config/i386/openbsd.h,
2212         config/i386/winnt.c, config/i386/xm-mingw32.h,
2213         config/i386/xmmintrin.h, config/ia64/ia64.md,
2214         config/iq2000/iq2000.md, config/m32r/m32r.md,
2215         config/m68k/m68k.md, config/mcore/mcore-elf.h,
2216         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
2217         config/mips/iris5gas.h, config/mips/iris6.h,
2218         config/mips/iris6gas.h, config/mips/linux.h,
2219         config/mips/mips.md, config/mips/netbsd.h,
2220         config/mips/openbsd.h, config/mips/windiss.h,
2221         config/pa/fptr.c, config/rs6000/aix.h,
2222         config/rs6000/altivec.h, config/rs6000/darwin.h,
2223         config/rs6000/xcoff.h, config/s390/s390-protos.h,
2224         config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
2225         config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
2226         config/sparc/sol2.h: Update copyright.
2227
2228 2004-01-30  Kelley Cook  <kcook@gcc.gnu.org>
2229
2230         * Makefile.in (abs_docdir, abs_srcdir): Define.
2231         (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
2232
2233 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
2234
2235         * genconfig.c (main): Have CC0_P check its operand even on a
2236         target without cc0.
2237
2238 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
2239
2240         * config/alpha/alpha.c: Remove mentions of deprecates macros
2241         in comments, remove some target-independent comments about target
2242         macros, and/or add minimal function comments for target hook
2243         implementations.
2244         * config/avr/avr.c: Likewise.
2245         * config/ia64/ia64.h: Likewise.
2246         * config/ip2k/ip2k.c: Likewise.
2247         * config/iq2000/iq2000.c: Likewise.
2248         * config/m32r/m32r.h: Likewise.
2249         * config/m68hc11/m68hc11.c: Likewise.
2250         * config/mcore/mcore.c: Likewise.
2251         * config/mmix/mmix.c: Likewise.
2252         * config/mn10300/mn10300.c: Likewise.
2253         * config/pa/pa.c: Likewise.
2254         * config/pdp11/pdp11.c: Likewise.
2255         * config/rs6000/rs6000.h: Likewise.
2256         * config/sh/sh.c: Likewise.
2257         * config/sh/sh.h: Likewise.
2258         * config/sparc/sparc.c: Likewise.
2259         * config/sparc/sparc.h: Likewise.
2260         * config/stormy16/stormy16.c: Likewise.
2261         * config/xtensa/xtensa.c: Likewise.
2262
2263 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
2264
2265         PR optimization/12147
2266         * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
2267         RELOAD_FOR_OPADDR_ADDR.
2268         (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
2269         might be reused as RELOAD_FOR_OPADDR_ADDR register.
2270
2271 2004-01-30  Jan Hubicka  <jh@suse.cz>
2272
2273         * reload.c (get_secondary_mem): Fix updating of
2274         secondary_memlocs_elim_used.
2275
2276 2004-01-30  Richard Henderson  <rth@redhat.com>
2277
2278         * varasm.c (struct rtx_const, struct pool_constant): Remove.
2279         (MAX_RTX_HASH_TABLE): Remove.
2280         (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
2281         (first_pool, last_pool, pool_offset): Remove.
2282         (struct rtx_constant_pool): Split out from ...
2283         (struct varasm_status): ... here.  Reference one via pointer.
2284         (struct constant_descriptor_rtx): Merge struct pool_constant.
2285         (SYMHASH): Remove.
2286         (decode_rtx_const): Remove.
2287         (const_hash_rtx, compare_constant_rtx): Remove.
2288         (record_constant_rtx): Remove.
2289         (const_desc_rtx_hash, const_desc_rtx_eq): New.
2290         (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
2291         (const_rtx_hash_1, const_rtx_hash): New.
2292         (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
2293         (simplify_subtraction): Use simplify_rtx.
2294         (force_const_mem): Rewrite to use new data structures.
2295         (find_pool_constant): Likewise.
2296         (get_pool_constant, get_pool_constant_mark,
2297         get_pool_constant_for_function, get_pool_mode,
2298         get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
2299         (output_constant_pool_2): Split out from output_constant_pool.
2300         (output_constant_pool_1): Likewise.  Use new pool datastructures.
2301         (output_constant_pool): Zap entire pool datastructure.
2302         (mark_constant): Use new pool datastructures.
2303         (mark_constants): Use for_each_rtx.
2304         (mark_constant_pool): Use new pool datastructures.
2305
2306 2004-01-30  Fariborz Jahanian <fjahanian@apple.com>
2307
2308         * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
2309         Copy operands[1] to pseudo for simplify_gen_subreg.
2310
2311 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
2312
2313         * gcse.c (bypass_block): Fix a typo in the previous check-in
2314         to the file.
2315
2316 2004-01-30  Andrew Pinski <pinskia@physics.uc.edu>
2317
2318         * toplev.c: Include alloc-pool.h.
2319         * Makefile.in (toplev.c): Update dependencies.
2320
2321 2004-01-30  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2322
2323         * combine.c (simplify_shift_const, case XOR): Be careful when
2324         commuting XOR with ASHIFTRT.
2325
2326 2004-01-30  Kazu Hirata  <kazu@cs.umass.edu>
2327             Eric Botcazou  <ebotcazou@libertysurf.fr>
2328
2329         * config/sparc/sparc-protos.h: Remove the prototype for
2330         sparc_builtin_saveregs.
2331         * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
2332         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2333         (TARGET_PROMOTE_PROTOTYPES): Likewise.
2334         (TARGET_STRUCT_VALUE_RTX): Likewise.
2335         (TARGET_RETURN_IN_MEMORY): Likewise.
2336         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
2337         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
2338         (sparc_builtin_saveregs): Make it static.
2339         (sparc_promote_prototypes): New.
2340         (sparc_struct_value_rtx): Likewise.
2341         (sparc_return_in_memory): Likewise.
2342         * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
2343         (PROMOTE_FUNCTION_RETURN): Likewise.
2344         (RETURN_IN_MEMORY): Likewise.
2345         (STRUCT_VALUE): Likewise.
2346         (STRUCT_VALUE_INCOMING): Likewise.
2347         (EXPAND_BUILTIN_SAVEREGS): Likewise.
2348         (STRICT_ARGUMENT_NAMING): Likewise.
2349         (PROMOTE_PROTOTYPES): Likewise.
2350
2351         * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
2352
2353 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
2354
2355         PR c/12818
2356         * varasm.c (const_hash_1) <STRING_CST>: Use the
2357         address to compute the hash value if flag_writable_strings.
2358         (compare_constant) <STRING_CST>: Compare the addresses
2359         if flag_writable_strings.
2360         (build_constant_desc): Do not copy the expression for a
2361         STRING_CST if flag_writable_strings.
2362
2363 2004-01-30  Jan Hubicka  <jh@suse.cz>
2364
2365         * alloc-pool.c: Include hashtab.h
2366         (alloc_pool_descriptor): New structure
2367         (alloc_pool_hash): New global variable.
2368         (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
2369         (create_alloc_pool): Update statistics.
2370         (free_alloc_pool): Likewise.
2371         (pool_alloc): Likewise.
2372         (output_info): New structure
2373         (print_statistics, dump_alloc_pool_statistics): New function.
2374         * alloc-pool.h (alloc_pool_def): Turn name to be constant.
2375         (dump_alloc_pool_statistics): Declare.
2376         * toplev.c (finalize):  Dump statistics.
2377
2378         * reload.c (secondary_memlocs_elim_used): New static variable.
2379         (get_secondary_mem): Update it.
2380         (find_reloads): Use it.
2381
2382 2004-01-30  Steven Bosscher <s.bosscher@student.tudelft.nl>
2383
2384         * toplev.c: Fix broken checkin of 2003-12-30, again.
2385
2386 2004-01-30  Ulrich Weigand  <uweigand@de.ibm.com>
2387
2388         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
2389         s390*-*-* targets by specifying a 'nop' insn.
2390         * configure: Regenerate.
2391
2392 2004-01-30  Eric Botcazou  <ebotcazou@libertysurf.fr>
2393
2394         PR target/11475
2395         * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
2396
2397 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
2398
2399         * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
2400         of addr when creating MEM copy.
2401
2402 2004-01-29  Devang Patel  <dpatel@apple.com>
2403
2404         * dwarf2out.c (gen_field_die): Do not equate decl number to die.
2405
2406 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
2407
2408         PR inline-asm/6162
2409         * reload.c (find_reloads): Only support one pair of commutative
2410         operands.
2411
2412 2004-01-29  Roger Sayle  <roger@eyesopen.com>
2413
2414         PR java/13824
2415         * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
2416         as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
2417         recursion.
2418
2419 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
2420
2421         * config/frv/frv.c: Don't mention deprecated macros in
2422         comments.  Remove some target-independent comments about
2423         target macros.
2424         * config/frv/frv.h: Likewise.
2425
2426 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2427
2428         * cfghooks.c (split_block): Set probability and count of the
2429         new edge.
2430
2431 2005-01-29  Josef Zlomek  <zlomekj@suse.cz>
2432
2433         * dwarf2out.c (struct die_struct): Added field decl_id.
2434         (decl_die_table): Changed to hash table.
2435         (decl_die_table_allocated): Deleted.
2436         (decl_die_table_in_use): Deleted.
2437         (DECL_DIE_TABLE_INCREMENT): Deleted.
2438         (decl_die_table_hash): New function.
2439         (decl_die_table_eq): New function.
2440         (lookup_decl_die): Lookup in a hash table.
2441         (equate_decl_number_to_die): Insert into a hash table.
2442         (dwarf2out_init): Init hash table decl_die_table.
2443
2444 2004-01-29  Jakub Jelinek  <jakub@redhat.com>
2445
2446         PR optimization/13424
2447         * expr.c (store_constructor): Revert 2003-12-03 change.
2448
2449         * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
2450         expected before returning early.  Avoid sharing RTL if they
2451         need to be changed.
2452
2453         * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
2454         handling so that memory attributes are preserved.  Don't call
2455         ix86_set_move_mem_attrs.
2456         (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
2457         (ix86_expand_clrstr): Rename src argument to
2458         dst.  Rework rep_stos and strset handling so that memory attributes
2459         are preserved.
2460         (ix86_expand_strlen): Pass src argument to
2461         ix86_expand_strlensi_unroll_1.  Rework strlenqi_1 handling so that
2462         memory attributes are preserved.
2463         (ix86_expand_strlensi_unroll_1): Add src argument.  Use
2464         change_address instead of gen_rtx_MEM.
2465         * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
2466         expanders.
2467         (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
2468         strmovqi, strmovqi_rex64): Remove.
2469         (rep_mov*, strmov*): Prefix insn names with *.
2470         (strset, strset_singleop, rep_stos): New expanders.
2471         (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
2472         strsetqi, strsetqi_rex64): Remove.
2473         (rep_stos*, strset*): Prefix insn names with *.
2474         (rep_stosqi_rex64): Likewise.  Fix mode of dirflag reg from DImode
2475         to SImode.
2476         (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
2477         are preserved.
2478         (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
2479         Prefix insn names with *.
2480         (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
2481         (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
2482         (strlenqi_1): New expander.
2483         * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
2484
2485 2004-01-29  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2486
2487         * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
2488         * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
2489         verify_flow_info): Declaration removed.
2490         * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
2491         (debug_bb, debug_bb_n): Add argument to dump_bb call.
2492         * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
2493         try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
2494         instead of delete_block.
2495         * cfghooks.c: Include timevar.h and toplev.h.
2496         (cfg_hooks): Define here.
2497         (verify_flow_info, dump_bb): Moved from cfg.c.
2498         (redirect_edge_and_branch, redirect_edge_and_branch_force,
2499         split_block, split_block_after_labels, move_block_after,
2500         delete_basic_block, split_edge, create_basic_block,
2501         create_empty_bb, can_merge_blocks_p, merge_blocks,
2502         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
2503         New functions.
2504         * cfghooks.h (struct cfg_hooks): Added fields name,
2505         make_forwarder_block, tidy_fallthru_edge and
2506         move_block_after. Changed type of verify_flow_info, dump_bb,
2507         split_block fields. Renamed cfgh_split_edge and delete_block
2508         fields.
2509         (redirect_edge_and_branch, redirect_edge_and_branch_force,
2510         split_block, delete_block, split_edge, create_basic_block,
2511         can_merge_blocks_p, merge_blocks): Macros removed.
2512         (cfg_hooks): Do not export.
2513         (verify_flow_info, dump_bb, redirect_edge_and_branch,
2514         redirect_edge_and_branch_force, split_block, split_block_after_labels,
2515         move_block_after, delete_basic_block, split_edge, create_basic_block,
2516         create_empty_bb, can_merge_blocks_p, merge_blocks,
2517         make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
2518         Declare.
2519         (cfg_layout_rtl_cfg_hooks): Declare.
2520         * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
2521         New functions.
2522         (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
2523         (redirect_edge_with_latch_update): Removed.
2524         (make_forwarder_block): Moved to cfghooks.c, semantics changed.
2525         * cfgloopmanip.c (remove_bbs): Do not update dominators here.
2526         * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
2527         rtl_delete_block, rtl_split_block, rtl_merge_blocks,
2528         tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
2529         cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
2530         cfghooks.c.
2531         (rtl_create_basic_block): Coding style fix.
2532         (rtl_tidy_fallthru_edge, rtl_move_block_after,
2533         rtl_make_forwarder_block): New functions.
2534         (update_cfg_after_block_merging): Removed.
2535         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
2536         * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
2537         to dump_bb.
2538         * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
2539         find_if_case_2): Don't update dominators.
2540         * timevar.def (TV_CFG_VERIFY): New.
2541         * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
2542         * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
2543         * cfgloopmanip.c (split_loop_bb): Don't update dominators.
2544         (remove_bbs): Don't call remove_bbs.
2545         (create_preheader): Use make_forwarder_block.
2546         (mfb_keep_just, mfb_update_loops): New static functions.
2547
2548 2004-01-29  Kazu Hirata  <kazu@cs.umass.edu>
2549
2550         * config/avr/avr.h: Remove target-independent comments about
2551         target macros.
2552
2553 2004-01-28  Daniel Berlin  <dberlin@dberlin.org>
2554
2555         * timevar.c (timevar_print): Mention when checking is enabled.
2556
2557 2004-01-28  Giovanni Bajo  <giovannibajo@gcc.gnu.org>
2558
2559         * c-lex.c (c_lex): Rename to...
2560         (c_lex_with_flags): Add new parameter to get CPP flags.
2561         (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
2562         * c-pragma.h (c_lex_with_flags): Declare.
2563
2564 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2565
2566         * config/mcore/mcore.c (mcore_external_libcall): Add a
2567         comment.
2568         (mcore_return_in_memory): Likewise.
2569
2570 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2571
2572         * config/mcore/mcore-protos.h: Remove the prototype for
2573         mcore_setup_incoming_varargs.
2574         * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
2575         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
2576         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2577         (TARGET_PROMOTE_PROTOTYPES): Likewise.
2578         (TARGET_STRUCT_VALUE_RTX): Likewise.
2579         (TARGET_RETURN_IN_MEMORY): Likewise.
2580         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2581         (mcore_setup_incoming_varargs): Make it static.  Receive the
2582         first argument by reference.  Add argument second_time.
2583         (mcore_external_libcall): New.
2584         (mcore_return_in_memory): Likewise.
2585         * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
2586         (PROMOTE_FUNCTION_RETURN): Likewise.
2587         (STRUCT_VALUE): Likewise.
2588         (RETURN_IN_MEMORY): Likewise.
2589         (SETUP_INCOMING_VARARGS): Likewise.
2590         (PROMOTE_PROTOTYPES): Likewise.
2591         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2592
2593 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2594
2595         * config/m32r/m32r-protos.h: Remove the prototype for
2596         m32r_setup_incoming_varargs.
2597         * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
2598         (TARGET_STRUCT_VALUE_RTX): Likewise.
2599         (TARGET_RETURN_IN_MEMORY): Likewise.
2600         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2601         (m32r_return_in_memory): New.
2602         (m32r_setup_incoming_varargs): Make it static.
2603         * config/m32r/m32r.h: Remove #undef of
2604         ASM_OUTPUT_EXTERNAL_LIBCALL.  Remove the commented-out
2605         definitions of PROMOTE_FUNCTION_ARGS and
2606         PROMOTE_FUNCTION_RETURN.
2607         (PROMOTE_PROTOTYPES): Remove.
2608         (RETURN_IN_MEMORY): Likewise.
2609         (STRUCT_VALUE): Likewise.
2610
2611 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2612
2613         * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
2614         (TARGET_STRUCT_VALUE_RTX): Likewise.
2615         (m68k_struct_value_rtx): Likewise.
2616         * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
2617         STRUCT_VALUE_REGNUM.
2618         (PROMOTE_PROTOTYPES): Remove.
2619         * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
2620         STRUCT_VALUE_REGNUM.
2621         * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
2622         * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
2623
2624 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2625
2626         * config/stormy16/stormy16.c
2627         (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
2628         TARGET_BUILD_BUILTIN_VA_LIST.
2629
2630 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2631
2632         * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
2633         (TARGET_STRUCT_VALUE_RTX): Likewise.
2634         (TARGET_RETURN_IN_MEMORY): Likewise.
2635         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2636         (v850_return_in_memory): Likewise.
2637         (v850_setup_incoming_varargs): Likewise.
2638         * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
2639         (SETUP_INCOMING_VARARGS): Likewise.
2640         (RETURN_IN_MEMORY): Likewise.
2641         (STRUCT_VALUE): Likewise.
2642
2643 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2644
2645         * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
2646         (fr30_setup_incoming_varargs): Don't use
2647         STRICT_ARGUMENT_NAMING.
2648         * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
2649         (STRICT_ARGUMENT_NAMING): Likewise.
2650
2651 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2652
2653         * config/frv/frv-protos.h: Remove the prototype for
2654         frv_expand_builtin_saveregs.
2655         * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
2656         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
2657         (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
2658         STRUCT_VALUE_REGNUM.
2659         (frv_expand_builtin_saveregs): Make it static.
2660         (frv_struct_value_rtx): New.
2661         * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
2662
2663 2004-01-29  Jan Hubicka  <jh@suse.cz>
2664
2665         PR c++/12850
2666         * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
2667         initial pointers.
2668         * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
2669         for functions that will be only inlined.
2670         (cgraph_mark_function_to_output): Likewise.
2671         (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
2672         do not clear function body.
2673         * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
2674         (tree_rest_of_compilation): Reorganize the logic releasing function
2675         body to use callgraph datastructure.
2676
2677 2004-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2678
2679         * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
2680         to register_operand.
2681
2682 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
2683
2684         * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
2685         (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
2686         match_operand expressions so that all match_dups appear
2687         lexically after their corresponding match_operands.
2688
2689 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2690
2691         * config/h8300/h8300.c (WORD_REG_USED): Use
2692         HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
2693         (compute_saved_regs): Likewise.
2694         (h8300_expand_prologue): Likewise.  Allocate locals after
2695         saving registers.
2696         (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
2697         of FRAME_POINTER_REGNUM.  Deallocate locals before saving
2698         registers.
2699         (h8300_initial_elimination_offset): Adjust for the new frame
2700         layout, which swaps flips the order of locals and saved
2701         registers.
2702         * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
2703         (HARD_FRAME_POINTER_REGNUM): New.
2704         (ELIMINABLE_REGS): Add an elimination rule from
2705         FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
2706         (REGISTER_NAMES): Add fp.
2707         * config/h8300/h8300.md (FP_REG): Change to 11.
2708         (HFP_REG): New.
2709
2710 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2711
2712         * genrecog.c (write_node): Remove a useless local variable.
2713
2714 2004-01-28  Ian Lance Taylor  <ian@wasabisystems.com>
2715
2716         * Makefile.in (options.c options.h): Use stamp file s-options to
2717         avoid unnecessary rebuilds.
2718         (options.o): New target listing dependencies.
2719         (gtyp-gen.h): Use stamp file s-gtyp-gen.
2720         (STAGESTUFF): Add s-gtyp-gen.
2721
2722 2004-01-28  Richard Henderson  <rth@redhat.com>
2723
2724         * ggc.h (ggc_free): Declare.
2725         * ggc-common.c (ggc_realloc): Use it.
2726         * ggc-page.c: Remove lots of inline markers.
2727         (globals): Add free_object_list.
2728         (ggc_alloc): Tidy.
2729         (ggc_free, validate_free_objects): New.
2730         (poison_pages): Provide default.
2731         (ggc_collect): Call validate_free_objects; emit markers to
2732         the debug file.
2733
2734 2004-01-28  Zack Weinberg  <zack@codesourcery.com>
2735             Jim Wilson  <wilson@specifixinc.com>
2736
2737         * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
2738         Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
2739         scratch pointer.
2740         (ia64_secondary_reload_class): Delete case GR_REGS.
2741         * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
2742         Do not allocate a scratch register.
2743         (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
2744
2745 2004-01-28  Jan Hubicka  <jh@suse.cz>
2746
2747         * gcse.c (bypass_block): Prevent edges to be unified when we are
2748         about to emit compenstation code.
2749
2750 2004-01-28  Nick Clifton  <nickc@redhat.com>
2751
2752         * config/arm/arm.c (arm_expand_builtin): Force second argument of
2753         the setcwx insn into a register.
2754
2755 2004-01-28  Richard Sandiford  <rsandifo@redhat.com>
2756
2757         * config/fp-bit.c (pack_d): When using paired doubles to implement
2758         a long double, round the high part separately.
2759         (unpack_d): Fix the case in which the high part is a power of two
2760         and the low part is a nonzero value of the opposite sign.
2761
2762 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2763
2764         * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
2765         (TARGET_STRUCT_VALUE_RTX): Likewise.
2766         (c4x_external_libcall): Likewise.
2767         (c4x_struct_value_rtx): Likewise.
2768         * config/c4x/c4x.h: Remove.
2769         (STRUCT_VALUE_REGNUM): Likewise.
2770         (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2771
2772 2004-01-28  Kazu Hirata  <kazu@cs.umass.edu>
2773
2774         * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
2775         (TARGET_STRUCT_VALUE_RTX): Likewise.
2776         * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
2777         (STRUCT_VALUE): Likewise.
2778         (PROMOTE_PROTOTYPES): Likewise.
2779
2780 2004-01-27  Roger Sayle  <roger@eyesopen.com>
2781
2782         * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
2783         CONST_INT before using INTVAL.
2784
2785 2004-01-27  Ulrich Weigand  <uweigand@de.ibm.com>
2786
2787         * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
2788         * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
2789         frame if !TARGET_BACKCHAIN.
2790         * config/s390/s390.md ("allocate_stack"): Use pattern only if
2791         TARGET_BACKCHAIN.
2792         * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
2793
2794 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
2795
2796         * ia64.c (ia64_function_arg): When placing HFAs in integer
2797         registers, do not special case the mode used for complex
2798         types.  Do not advance int_regs until the current register
2799         is full.
2800
2801 2004-01-27  Richard Sandiford  <rsandifo@redhat.com>
2802
2803         PR target/7297
2804         * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
2805
2806 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
2807
2808         * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
2809         slow, unaligned loads and stores while debugging.  Fix formatting.
2810
2811 2004-01-27  David Edelsohn  <edelsohn@gnu.org>
2812
2813         * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
2814         of computing wmode.
2815         (restore_stack_nonlocal): Same.
2816
2817 2004-01-27  Devang Patel <dpatel@apple.com>
2818
2819         * Makefile.in (dwarf2out.o): Depend on input.h
2820         * dbxout.c (dbx_debug_hooks): Add new empty hook for
2821         imported_module_or_decl.
2822         (xcoff_debug_hooks): Same.
2823         * sdbout.c (sdb_debug_hooks): Same.
2824         * vmsdbgout.c (vmsdbg_debug_hooks): Same.
2825         * debug.c (do_nothing_debug_hooks): Same.
2826         (debug_nothing_tree_tree): New function.
2827         * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
2828         * dwarf2out.c: Include input.h.
2829         (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
2830         (remove_child_TAG): New function.
2831         (dwarf_tag_name): Handle DW_TAG_imported_module.
2832         (gen_subprogram_die): Equate decl number to declaration die. Do not
2833         remove all children dies while reusing declaration die for definition.
2834         Instead, selectively remove only formal parameters.
2835         (gen_variable_die): Equate variable decl to declaration die.
2836         (gen_field_die): Equate field decl to line number.
2837         (force_namespace_die): Replace it with ...
2838         (force_decl_die): ... this.
2839         (force_type_die): New function.
2840         (setup_namespace_context): Replace use of force_namespace_die() with
2841         force_decl_die().
2842         (gen_namespace_die): Same.
2843         (dwarf2out_imported_module_or_decl): New function.
2844
2845 2004-01-27  Bob Wilson  <bob.wilson@acm.org>
2846
2847         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
2848         on CQImode and CHImode incoming arguments in register a7.
2849         (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
2850         * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
2851         * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
2852         xtensa_copy_incoming_a7 before reload.
2853
2854 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
2855
2856         * coverage.c (get_coverage_counts): Give a different message
2857         if flag_guess_branch_prob is set.
2858         * predict.c (counts_to_freqs): Return an int.
2859         (estimate_bb_frequencies): If counts_to_freqs returns zero,
2860         calculate estimates.
2861
2862 2004-01-27  Kazu Hirata  <kazu@cs.umass.edu>
2863
2864         * config/iq2000/iq2000-protos.h: Remove the prototype for
2865         iq2000_setup_incoming_varargs.
2866         * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
2867         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2868         (TARGET_PROMOTE_PROTOTYPES): Likewise.
2869         (TARGET_STRUCT_VALUE_RTX): Likewise.
2870         (TARGET_RETURN_IN_MEMORY): Likewise.
2871         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2872         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
2873         (iq2000_return_in_memory): Likewise.
2874         (iq2000_setup_incoming_varargs): Make it static.  Receive the
2875         first argument by reference.
2876         * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
2877         (PROMOTE_FUNCTION_RETURN): Likewise.
2878         (PROMOTE_PROTOTYPES): Likewise.
2879         (RETURN_IN_MEMORY): Likewise.
2880         (STRUCT_VALUE): Likewise.
2881         (SETUP_INCOMING_VARARGS): Likewise.
2882         (STRICT_ARGUMENT_NAMING): Likewise.
2883
2884 2004-01-24  James A. Morrison  <ja2morri@uwaterloo.ca>
2885
2886         * fixinc/fixinc.c (test_test): Initialize res.
2887         (start_flexer): Initialize pz_cmd_save.
2888
2889 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
2890
2891         * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
2892         SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
2893
2894 2004-01-27  Zack Weinberg  <zack@codesourcery.com>
2895
2896         PR 7198
2897         * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
2898         (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
2899         (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
2900         Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
2901         Possibly rename pattern for consistency.
2902         Remove ??? comments suggesting that this be done.
2903         (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
2904         New patterns.
2905         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
2906         (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
2907         (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
2908         (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
2909         Update to match.
2910
2911 2004-01-27  Ian Lance Taylor  <ian@wasabisystems.com>
2912
2913         * config/arm/arm.c (output_return_instruction): Only restore IP
2914         into SP if frame_pointer_needed.
2915
2916 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2917
2918         * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
2919         for SCmode and DCmode if ARCH32.
2920         (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
2921         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
2922         if ARCH32.
2923         (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
2924         if ARCH32.
2925         (BASE_OUTGOING_VALUE_REG): Likewise.
2926
2927 2004-01-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
2928
2929         PR target/10904
2930         PR target/13058
2931         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
2932         Forbid mode changes from SImode for lower FP regs if ARCH64.
2933
2934 2004-01-27  J"orn Rennecke <joern.rennecke@superh.com>
2935
2936         * Makefile.in (bt-load.o): Depend on except.h.
2937         * bt-load.c (except.h): #include.
2938         (compute_defs_uses_and_gen): If insn at end of BB can throw
2939         within this function, consider registers used by it unavailable for
2940         btr migration.
2941         (move_btr_def): If insn at end of BB can throw, insert before rather
2942         than after.
2943
2944         * flags.h (flag_btr_bb_exclusive): Declare.
2945         * toplev.c (flag_btr_bb_exclusive): New variable.
2946         (f_options): Add btr-bb-exclusive.
2947         * bt-load.c (augment_live_range): Restore old behaviour if
2948         flag_btr_bb_exclusive is set.
2949         * common.opt: Add entry for -fbtr-bb-exclusive.
2950         * opts.c (common_handle_options): Same.
2951         * doc/invoke.texi: Document -fbtr-bb-exclusive.
2952
2953         * bt-load.c (btrs_live_at_end): New variable.
2954         (compute_defs_uses_and_gen): Compute its pointed-to array.
2955         (clear_btr_from_live_range, add_btr_to_live_range): Update it.
2956         (augment_live_range): When augmenting with a new dominator,
2957         use only its btrs_live_at_end set, but also add in the full set
2958         of the old dominator.
2959         (btr_def_live_range): Use btrs_live_at_end.
2960         (move_btr_def): Set other_btr_uses_before_def, and move new set
2961         to the end of the basic block, if appropriate.
2962         (migrate_btr_defs): Allocate and free btrs_live_at_end.
2963
2964         * bt-load.c (basic_block_freq): Remove outdated comment.
2965
2966 2004-01-27  Alan Modra  <amodra@bigpond.net.au>
2967
2968         * config/rs6000/rs6000.h: Correct target_flags free bits comment.
2969         (PREDICATE_CODES): Remove duplicate.
2970         * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
2971         (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
2972         (MASK_PROFILE_KERNEL): Adjust define.
2973
2974 2004-01-27  Jakub Jelinek  <jakub@redhat.com>
2975
2976         * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
2977         of long string literals from 32 bytes to sizeof (void *) when !-Os
2978         and to 1 with -Os.
2979
2980 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
2981
2982         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
2983         constant addresses in the normal mode.
2984
2985 2004-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2986
2987         * system.h (CHAR_BITFIELD): Delete.
2988         (BOOL_BITFIELD): New.
2989         * c-decl.c (c_scope): Use BOOL_BITFIELD.
2990         * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
2991
2992 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
2993
2994         * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
2995         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2996         (TARGET_PROMOTE_PROTOTYPES): Likewise.
2997         (TARGET_STRUCT_VALUE_RTX): Likewise.
2998         (TARGET_RETURN_IN_MEMORY): Likewise.
2999         (arc_return_in_memory): Likewise.
3000         * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
3001         (PROMOTE_FUNCTION_RETURN): Likewise.
3002         (RETURN_IN_MEMORY): Likewise.
3003         (STRUCT_VALUE): Likewise.
3004
3005 2004-01-26  Richard Henderson  <rth@redhat.com>
3006
3007         * c-parse.in (extension): Use itype.
3008         (SAVE_EXT_FLAGS): Don't allocate a tree.
3009         (RESTORE_EXT_FLAGS): Don't read a tree.
3010
3011 2004-01-26  Jan Hubicka  <jh@suse.cz>
3012
3013         * cselib.c (discard_useless_values):  Clear out value pointer pointing
3014         to datastructure to be recycled.
3015
3016 2004-01-25  Jan Hubicka  <jh@suse.cz>
3017
3018         * genextract.c (main): Do not output the memset when not checking.
3019
3020 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3021
3022         * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
3023         switch statement instead of a chain of if statements.
3024
3025 2004-01-26  Jeff Law  <law@redhat.com>
3026
3027         * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry.  Add
3028         acute accents for Petur Runolfsson's entry.
3029
3030 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3031
3032         * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
3033         (TARGET_RETURN_IN_MEMORY): Likewise.
3034         * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
3035         (RETURN_IN_MEMORY): Likewise.
3036
3037 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
3038
3039          * config/rs6000/rs6000.c (rs6000_emit_move): split slow
3040          unaligned load/store into smaller loads and stores.
3041
3042 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
3043
3044         * function.c (assign_parms): Do not assign
3045         long long argument to memory in prologue if
3046         is it loaded into register.
3047
3048 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
3049
3050          PR middle-end/13779
3051          * expr.c (emit_group_load): split constant
3052          correctly into register components of PARALLEL insn.
3053
3054 2004-01-26  Fariborz Jahanian  <fjahanian@apple.com>
3055
3056         * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
3057         Use adjust_address_nv directly with appropriate mode.
3058         (restore_stack_nonlocal): Ditto.
3059
3060 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3061
3062         * config/xtensa/xtensa-protos.h: Remove the prototype for
3063         xtensa_builtin_saveregs.
3064         * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3065         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3066         (TARGET_PROMOTE_PROTOTYPES): Likewise.
3067         (TARGET_STRUCT_VALUE_RTX): Likewise.
3068         (TARGET_RETURN_IN_MEMORY): Likewise.
3069         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3070         (xtensa_builtin_saveregs): Make it static.
3071         (xtensa_return_in_memory): New.
3072         * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
3073         (PROMOTE_FUNCTION_RETURN): Likewise.
3074         (PROMOTE_PROTOTYPES): Likewise.
3075         (STRUCT_VALUE): Likewise.
3076         (RETURN_IN_MEMORY): Likewise.
3077         (EXPAND_BUILTIN_SAVEREGS): Likewise.
3078
3079 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3080
3081         * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
3082         (arm_setup_incoming_varargs): Likewise.
3083         * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
3084
3085 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3086
3087         * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
3088         (cris_setup_incoming_varargs): Likewise.
3089         * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
3090
3091 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3092
3093         * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
3094         (ns32k_struct_value_rtx): Likewise.
3095         * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
3096         NS32K_STRUCT_VALUE_REGNUM.
3097
3098 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3099
3100         * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3101         (TARGET_PROMOTE_PROTOTYPES): Likewise.
3102         (TARGET_STRUCT_VALUE_RTX): Likewise.
3103         (arm_struct_value_rtx): Likewise.
3104         * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
3105         (STRUCT_VALUE): Likewise.
3106         (STRUCT_VALUE_REGNUM): Likewise.
3107         (PROMOTE_PROTOTYPES): Likewise.
3108
3109 2004-01-26  Kazu Hirata  <kazu@cs.umass.edu>
3110
3111         * config/ia64/ia64-protos.h: Remove the prototype for
3112         ia64_setup_incoming_varargs and ia64_return_in_memory.
3113         * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
3114         (TARGET_RETURN_IN_MEMORY): Likewise.
3115         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3116         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
3117         (ia64_setup_incoming_varargs): Adjust the arguments to meet
3118         the requirement of TARGET_SETUP_INCOMING_VARARGS.
3119         (ia64_return_in_memory): Make it static.  Change the return
3120         type to bool from int.  Add an argument.
3121         (ia64_struct_value_rtx): New.
3122         * config/ia64/ia64.h: Remove commented-out definitions of
3123         PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
3124         PROMOTE_PROTOTYPES.
3125         (RETURN_IN_MEMORY): Remove.
3126         (STRUCT_VALUE_REGNUM): Likewise.
3127         (STRICT_ARGUMENT_NAMING): Likewise.
3128
3129 2004-01-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
3130
3131         PR target/13666
3132         * config/sparc/sparc.c (function_arg_union_value): New function.
3133         (function_arg): Use it to deal with unions.
3134         (function_value): Likewise.  Define 'regbase' only for ARCH64.
3135         Replace a conditional statement by a simpler one.
3136
3137 2004-01-26  Richard Sandiford  <rsandifo@redhat.com>
3138
3139         * config/mips/mips.c (mips16_optimize_gp): Delete.
3140         (mips_reorg): Don't call it.
3141
3142 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3143
3144         * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
3145         (floatunsqihf2): Remove operand 6.
3146         (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
3147         fix patterns.
3148         (ldi_conditional, ldf_conditional): Validate operands.
3149
3150 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3151
3152         * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
3153         (HAVE_GAS_HIDDEN): Undefine as interim measure.
3154
3155 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3156
3157         * config/c4x/c4x.c (c4x_legitimate_address_p):  Invalidate direct
3158         memory references if TARGET_EXPOSE_LDP nonzero.
3159
3160 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3161
3162         * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
3163
3164 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3165
3166         * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
3167         invalid operand combinations.
3168
3169 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3170
3171         * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
3172         c4x_legitimate_address_p.  Fix post_modify check.
3173
3174         * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
3175         * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
3176
3177 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3178
3179         * config/pa/pa-protos.h: Remove the prototype for
3180         hppa_builtin_saveregs.  Add a prototype for
3181         pa_return_in_memory.
3182         * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
3183         (TARGET_PROMOTE_PROTOTYPES): Likewise.
3184         (TARGET_STRUCT_VALUE_RTX): Likewise.
3185         (TARGET_RETURN_IN_MEMORY): Likewise.
3186         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3187         (pa_struct_value_rtx): Likewise.
3188         (pa_return_in_memory): Likewise.
3189         * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
3190         PA_STRUCT_VALUE_REGNUM.
3191         (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
3192         (EXPAND_BUILTIN_SAVEREGS): Remove.
3193         (PROMOTE_PROTOTYPES): Likewise.
3194         (PROMOTE_FUNCTION_RETURN): Likewise.
3195
3196 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3197
3198         * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
3199         (TARGET_STRUCT_VALUE_RTX): Likewise.
3200         (vax_struct_value_rtx): Likewise.
3201         * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
3202         VAX_STRUCT_VALUE_REGNUM.
3203         (PROMOTE_PROTOTYPES): Remove.
3204
3205 2004-01-26  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
3206
3207         * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS):  Handle symref.
3208
3209 2003-04-25  Chris Demetriou  <cgd@broadcom.com>
3210
3211         * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
3212         and MIPS64 have HI/LO interlocks.  Update comment.
3213
3214 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3215
3216         * config/stormy16/stormy16-protos.h: Remove the prototype for
3217         xstormy16_setup_incoming_varargs.
3218         * config/stormy16/stormy16.c
3219         (xstormy16_setup_incoming_varargs): Remove.
3220         (xstormy16_return_in_memory): New.
3221         (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
3222         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3223         (TARGET_PROMOTE_PROTOTYPES): Likewise.
3224         (TARGET_STRUCT_VALUE_RTX): Likewise.
3225         (TARGET_RETURN_IN_MEMORY): Likewise.
3226         * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
3227         (PROMOTE_FUNCTION_RETURN): Likewise
3228         (PROMOTE_PROTOTYPES): Likewise
3229         (RETURN_IN_MEMORY): Likewise
3230         (STRUCT_VALUE): Likewise
3231         (SETUP_INCOMING_VARARGS): Likewise
3232
3233 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
3234
3235         * config/mips/mips.c (mips_offset_within_object_p): New function.
3236         (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
3237         SYMBOL_CONSTANT_POOL cases.  Also use it for SYMBOL_GENERAL if the
3238         ABI has 64-bit pointers and the object file only allows 32-bit symbols.
3239
3240 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3241
3242         * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
3243         (PROMOTE_FUNCTION_RETURN): Likewise.
3244
3245 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3246
3247         * config/mn10300/mn10300-protos.h: Remove the prototype for
3248         mn10300_builtin_saveregs.
3249         * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
3250         (TARGET_STRUCT_VALUE_RTX): Likewise.
3251         (TARGET_RETURN_IN_MEMORY): Likewise.
3252         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3253         (mn10300_return_in_memory): Likewise.
3254         (mn10300_builtin_saveregs): Make it static.
3255         * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
3256         (RETURN_IN_MEMORY): Likewise.
3257         (STRUCT_VALUE): Likewise.
3258         (EXPAND_BUILTIN_SAVEREGS): Likewise.
3259
3260 2004-01-25  Eric Botcazou  <ebotcazou@act-europe.fr>
3261
3262         PR bootstrap/13853
3263         * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
3264
3265 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3266
3267         * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
3268         using ccr.
3269
3270 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3271
3272         * config/i860/i860-protos.h: Remove the prototype for
3273         i860_saveregs.
3274         * config/i860/i860.c (i860_saveregs): Make it static.
3275         (i860_struct_value_rtx): New.
3276         (TARGET_STRUCT_VALUE_RTX): Likewise.
3277         (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3278         * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
3279         I860_STRUCT_VALUE_REGNUM.
3280         (EXPAND_BUILTIN_SAVEREGS): Remove.
3281
3282 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3283
3284         * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
3285         (TARGET_RETURN_IN_MEMORY): Likewise.
3286         (m68hc11_struct_value_rtx): Likewise.
3287         (m68hc11_return_in_memory): Likewise.
3288         * config/m68hc11/m68hc11.h: Remove a commented-out definition
3289         of PROMOTE_PROTOTYPES.
3290         (RETURN_IN_MEMORY): Remove.
3291         (STRUCT_VALUE_REGNUM): Likewise.
3292
3293 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3294
3295         * config/mmix/mmix-protos.h: Remove the prototype for
3296         mmix_setup_incoming_varargs.
3297         * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3298         (TARGET_STRUCT_VALUE_RTX): Likewise.
3299         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3300         (mmix_setup_incoming_varargs): Make it static.
3301         (mmix_struct_value_rtx): New.
3302         * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
3303         Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
3304         (STRUCT_VALUE_REGNUM): Remove.
3305         (SETUP_INCOMING_VARARGS): Likewise.
3306
3307 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3308
3309         * config/mips/mips-protos.h: Remove the prototypes for
3310         mips_setup_incoming_varargs and mips_return_in_memory.
3311         * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3312         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3313         (TARGET_PROMOTE_PROTOTYPES): Likewise.
3314         (TARGET_STRUCT_VALUE_RTX): Likewise.
3315         (TARGET_RETURN_IN_MEMORY): Likewise.
3316         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3317         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
3318         (mips_setup_incoming_varargs): Match the prototype for
3319         TARGET_SETUP_INCOMING_VARARGS.
3320         (mips_return_in_memory): Make it static.  Add argument fntype.
3321         (mips_strict_argument_naming): New.
3322         * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
3323         (PROMOTE_FUNCTION_ARGS): Likewise.
3324         (PROMOTE_FUNCTION_RETURN): Likewise.
3325         (STRUCT_VALUE): Likewise.
3326         (RETURN_IN_MEMORY): Likewise.
3327         (SETUP_INCOMING_VARARGS): Likewise.
3328         (STRICT_ARGUMENT_NAMING): Likewise.
3329
3330 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3331
3332         * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
3333         (TARGET_RETURN_IN_MEMORY): Likewise.
3334         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3335         (ip2k_return_in_memory): Likewise.
3336         (ip2k_setup_incoming_varargs): Likewise.
3337         * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
3338         (STRUCT_VALUE): Likewise.
3339         (STRUCT_VALUE_INCOMING): Likewise.
3340         (SETUP_INCOMING_VARARGS): Likewise.
3341
3342 2004-01-25  Kazu Hirata  <kazu@cs.umass.edu>
3343
3344         * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
3345         (TARGET_RETURN_IN_MEMORY): Likewise.
3346         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
3347         (avr_return_in_memory): Remove.
3348         * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
3349         (STRUCT_VALUE): Likewise.
3350         (STRUCT_VALUE_INCOMING): Likewise.
3351         (STRICT_ARGUMENT_NAMING): Likewise.
3352
3353 2004-01-25  Jan Hubicka  <jh@suse.cz>
3354
3355         * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
3356
3357 2004-01-25  Richard Sandiford  <rsandifo@redhat.com>
3358
3359         * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
3360         (mips_regno_mode_ok_for_base_p): Declare.
3361         * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
3362         (FRAME_POINTER_REGNUM): Renumber to 78.
3363         (FIRST_PSEUDO_REGISTER): Update comment accordingly.
3364         (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
3365         (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
3366         (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
3367         (REG_MODE_OK_FOR_BASE_P): Likewise.
3368         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
3369         entry for 77 to "$arg" and entry for 78 to "$frame".
3370         (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
3371         (mips_reg_mode_ok_for_base_p): Remove.
3372         (mips_regno_mode_ok_for_base_p): New function, derived from old
3373         BASE_REG_P macro.  Don't enforce the mips16 stack pointer
3374         restrictions unless we're being strict.
3375         (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
3376
3377 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
3378
3379         * c-common.h: Fix comment typos.
3380         * c-decl.c: Likewise.
3381         * cgraphunit.c: Likewise.
3382         * combine.c: Likewise.
3383         * et-forest.c: Likewise.
3384         * flow.c: Likewise.
3385         * function.c: Likewise.
3386         * ifcvt.c: Likewise.
3387         * integrate.c: Likewise.
3388         * jump.c: Likewise.
3389         * postreload.c: Likewise.
3390         * varray.c: Likewise.
3391
3392 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
3393
3394         * doc/frontends.texi: Update copyright.
3395         * doc/gcov.texi: Likewise.
3396         * doc/gty.texi: Likewise.
3397         * doc/sourcebuild.texi: Likewise.
3398         * doc/standards.texi: Likewise.
3399
3400 2004-01-24  Herman A.J. ten Brugge  <hermantenbrugge@home.nl>
3401
3402         PR target/12978
3403         * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
3404         Remove movstrqi_small because it conflicts with movstrqi_large.
3405
3406 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
3407
3408         * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3409         (TARGET_STRUCT_VALUE_RTX): Likewise.
3410         (cris_struct_value_rtx): Likewise.
3411         * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
3412         (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
3413         STRUCT_VALUE_REGNUM.
3414         (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
3415
3416 2004-01-24  Ian Lance Taylor  <ian@wasabisystems.com>
3417
3418         PR bootstrap/13848
3419         * cse.c (cse_cc_succs): Change the mode of the source expression
3420         as soon as decide we need a new mode.  Don't permit changing modes
3421         if we found a match in a successor block.
3422         (cse_condition_code_reg): Save original mode of source expression
3423         so that we know whether we have to change the mode in other
3424         insns.
3425
3426 2004-01-24  Jan Hubicka  <jh@suse.cz>
3427
3428         * emit-rtl.c (change_address, adjust_address_1, offset_address,
3429         widen_memory_access):  Return early when there is nothing to change.
3430
3431 2004-01-24  Jakub Jelinek  <jakub@redhat.com>
3432
3433         * simplify-rtx.c (simplify_relational_operation): Don't
3434         simplify address == constant into address + -constant == 0.
3435
3436 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
3437
3438         * gcc.c (process_command): Don't internationalize the
3439         Copyright message.
3440         * mips-tfile.c (main): Likewise.
3441
3442 2004-01-24  Andreas Tobler  <a.tobler@schweiz.ch>
3443
3444         * cse.c: (cse_cc_succs) Fix comparison warning.
3445
3446 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
3447
3448         * config/h8300/h8300.md: Remove extraneous USE in expanders.
3449
3450 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
3451
3452         * config/h8300/h8300-protos.h: Provide prototypes for
3453         h8300_legitimate_constant_p and h8300_legitimate_address_p.
3454         * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
3455         (h8300_rtx_ok_for_base_p): Likewise.
3456         (h8300_legitimate_address_p): Likewise.
3457         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
3458         h8300_legitimate_constant_p.
3459         (RTX_OK_FOR_BASE_P): Remove.
3460         (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
3461
3462 2004-01-24  Kazu Hirata  <kazu@cs.umass.edu>
3463
3464         * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
3465         (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
3466         (REG_OK_FOR_INDEX_STRICT_P): Likewise.
3467         (REG_OK_FOR_BASE_STRICT_P): Likewise.
3468         (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
3469         (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
3470         (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
3471         (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
3472
3473 2004-01-24  Jan Hubicka  <jh@suse.cz>
3474
3475         * cselib.c (remove_useless_values):  Do not access discarded values.
3476
3477 2004-01-24  Joseph S. Myers  <jsm@polyomino.org.uk>
3478
3479         * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
3480         arrays.
3481
3482 2004-01-23  Kazu Hirata  <kazu@cs.umass.edu>
3483
3484         * recog.c: Fix a typo in copyright.
3485
3486 2004-01-23  Andrew Pinski  <apinski@apple.com>
3487
3488         * config/rs6000/rs6000.md (call): Fix misappiled patch.
3489         (call_value): Likewise.
3490
3491 2004-01-23  Richard Henderson  <rth@redhat.com>
3492
3493         PR opt/12941
3494         * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
3495         (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
3496         if SHIFT_COUNT_TRUNCATED is set.
3497
3498 2004-01-23  Bob Wilson  <bob.wilson@acm.org>
3499
3500         * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
3501         separate real and imaginary parts.
3502         * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
3503
3504 2004-01-23  Hartmut Penner <hpenner@de.ibm.com>
3505
3506         PR target/13674
3507         * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
3508         loading into GPR.
3509
3510 2004-01-23  Jan Hubicka  <jh@suse.cz>
3511
3512         * emit-rtl.c (change_address_1):  Do not re-generate the RTX if nothing
3513         change.
3514
3515         * alloc-pool.c (align_four): Kill.
3516         (create_alloc_pool): Align size to eight.
3517         (free_alloc_pool, free_pool): Invalidate deallocated data.
3518
3519 2004-01-23  Ian Lance Taylor  <ian@wasabisystems.com>
3520
3521         PR gcc/1532
3522         * cse.c (cse_change_cc_mode): New static function.
3523         (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
3524         (cse_condition_code_reg): New function.
3525         * rtl.h (cse_condition_code_reg): Declare.
3526         * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
3527         * target.h (struct gcc_target): Add fixed_condition_code_regs and
3528         cc_modes_compatible.
3529         * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3530         (TARGET_CC_MODES_COMPATIBLE): Define.
3531         (TARGET_INITIALIZER): Add new initializers.
3532         * targhooks.c (default_cc_modes_compatible): New function.
3533         * targhooks.c (default_cc_modes_compatible): Declare.
3534         * hooks.c (hook_bool_intp_intp_false): New function.
3535         * hooks.h (hook_bool_intp_intp_false): Declare.
3536         * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3537         (TARGET_CC_MODES_COMPATIBLE): Define.
3538         (ix86_fixed_condition_code_regs): New static function.
3539         (ix86_cc_modes_compatible): Likewise.
3540         * doc/tm.texi (Condition Code): Document new hooks.
3541
3542 2004-01-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3543
3544         * fixinc/inclhack.def (bad_lval): Renamed to ...
3545         (alpha_bad_lval): ... this.
3546         Removed file list.
3547         Restrict to alpha*-dec-osf*.
3548         * fixinc/fixincl.x: Regenerate.
3549         * fixinc/tests/base/dirent.h: Remove, moving test ...
3550         * fixinc/tests/base/testing.h: ... here, reflecting new name.
3551
3552 2004-01-23  Zack Weinberg  <zack@codesourcery.com>
3553
3554         PR c/13814
3555         * c-decl.c (diagnose_mismatched_decls): Also discard a
3556         built-in if we encounter an old-style definition with the
3557         same name.
3558
3559 2004-01-23  Jakub Jelinek  <jakub@redhat.com>
3560
3561         * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
3562         set to default{32,64}.
3563
3564 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
3565
3566         * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
3567         [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
3568
3569 2004-01-23  Eric Botcazou  <ebotcazou@act-europe.fr>
3570             Olivier Hainque  <hainque@act-europe.fr>
3571
3572         * fold-const.c (fold_binary_op_with_conditional_arg): Only
3573         build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
3574
3575 2004-01-23  Daniel Jacobowitz  <drow@mvista.com>
3576
3577         * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
3578         size for minipool references.
3579
3580 2004-01-23  Roger Sayle  <roger@eyesopen.com>
3581
3582         * real.c (real_floor, real_ceil): Tweak to allow input and output
3583         arguments to overlap.
3584         (real_round): New function to implement round(3m) semantics.
3585         * real.h (real_round): Prototype here.
3586         * builtins.c (fold_builtin_round): New function to constant fold
3587         round, roundf and roundl.
3588         (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
3589
3590 2004-01-23  Alexandre Oliva  <aoliva@redhat.com>
3591
3592         PR optimization/13819
3593         * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
3594         introduced by 2004-01-20's Jan Hubicka's copy_insn change.
3595         (sh_handle_sp_switch_attribute): Remove warning.
3596
3597 2003-11-30  Jan Hubicka  <jh@suse.cz>
3598
3599         * i386.c (ix86_emit_restore_regs_using_mov):  Deal with large offsets.
3600
3601 2004-01-23  J"orn Rennecke <joern.rennecke@superh.com>
3602
3603         * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
3604         may or may not return non-NIL.
3605         * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
3606         check CANNOT_CHANGE_MODE_CLASS
3607
3608 2004-01-23  Jan Hubicka  <jh@suse.cz>
3609
3610         * basic-block.h (PROP_POSTRELOAD): New macro.
3611         (CLEANUP_LOG_LINKS): New.
3612         * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
3613         * toplev.c (rest_of_handle_life):  Preserve LOG_LINKS trought cleanup_cfg.
3614
3615         * cselib.c (value_pool): New.
3616         (new_cselib_val): Use pool.
3617         (cselib_init): Initialize value_pool
3618         (cselib_finish): Free pool.
3619
3620 2004-01-23  Eric Botcazou  <ebotcazou@libertysurf.fr>
3621
3622         * config/sparc/sparc.c (scan_record_type): New function.
3623         (function_arg_slotno): Use it to determine which kinds of
3624         registers the record can be passed in.
3625
3626 2004-01-22  James A. Mmorrison  <ja2morri@uwaterloo.ca>
3627
3628         * config/pa/fptr.c: Fix old-style definition.
3629
3630 2004-01-22  Paolo Bonzini  <bonzini@gnu.org>
3631
3632         PR optimization/13724
3633         * cse.c (fold_rtx) <SUBREG>:  Fold a SUBREG to zero if it
3634         represents the zero bits produced by a ZERO_EXTEND operation.
3635
3636 2004-01-22  Roger Sayle  <roger@eyesopen.com>
3637
3638         PR optimization/13821
3639         * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
3640         correctly calculate the lowpart offset of the contracted subreg.
3641
3642 2004-01-22  Ian Lance Taylor  <ian@wasabisystems.com>
3643
3644         * doc/invoke.texi (Optimize Options): Note that --param arguments
3645         are subject to change without notice.
3646
3647 2004-01-22  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3648
3649         * config.gcc (mips-sgi-irix6*o32): Removed.
3650         * config/mips/iris6-o32-as.h: Likewise.
3651         * config/mips/iris6-o32-gas.h: Likewise.
3652         * config/mips/iris6-o32.h: Likewise.
3653
3654 2004-01-22  Jan Hubicka  <jh@suse.cz>
3655
3656         * cfgcleanup.c (first_pass): New static variable.
3657         (try_forward_edges):  Add work limiting check for threading.
3658         (try_crossjump_bb):  Add work limiting check for crossjumping.
3659         (try_optimize_cfg):  Maintain first pass variable.
3660
3661 2004-01-22  Bob Wilson  <bob.wilson@acm.org>
3662
3663         * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
3664         handles complex and vector modes.
3665
3666 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
3667
3668         * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
3669         (REG_OK_FOR_BASE_P_STRICT): Likewise.
3670         (STRICT): Likewise.
3671
3672 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
3673
3674         * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
3675         (genrtl_for_stmt): Remove emit_nop calls.
3676
3677 2004-01-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3678
3679         PR target/13713
3680         PR target/13324
3681         * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
3682         movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
3683         clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
3684
3685 2004-01-22  Daniel Jacobowitz  <drow@mvista.com>
3686
3687         * config/arm/arm.c: Include "debug.h".
3688         (thumb_pushpop): Take two new arguments.  Add some commentary.
3689         Output frame information when pushing.
3690         (thumb_exit, thumb_unexpanded_epilogue): Update calls to
3691         thumb_pushpop.
3692         (thumb_output_function_prologue): Likewise.  Accumulate a CFA
3693         offset, and pass it to thumb_pushpop.  Output CFI information.
3694         (thumb_expand_prologue): Add some frame-related markers and notes.
3695
3696 2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
3697
3698         * config/s390/s390.c (s390_frame_info): Allow large frame sizes
3699         for TARGET_64BIT.
3700         (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
3701         * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
3702
3703 2004-01-22  Roger Sayle  <roger@eyesopen.com>
3704             Paolo Bonzini  <bonzini@gnu.org>
3705
3706         * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
3707         (subreg_lsb): Change to call new subreg_lsb_1 helper function.
3708         * rtl.h (subreg_lsb_1): Prototype here.
3709         * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
3710         sign extensions.
3711
3712 2004-01-22  Kazu Hirata  <kazu@cs.umass.edu>
3713
3714         * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
3715         macro need not be defined if jump-tables should contain
3716         relative addresses only when -fPIC or -fPIC is in effect.
3717
3718 2004-01-22  Jan Hubicka  <jh@suse.cz>
3719
3720         * alias.c (reg_base_value): Turn into varray.
3721         (reg_base_value_size): Kill.
3722         (old_reg_base_value): New deletable varray.
3723         (alias_invariant_size): New variable.
3724         (REG_BASE_VALUE): Update to use varray.
3725         (find_base_value): Likewise.
3726         (record_set): Likewise.
3727         (record_base_value): Likewise.
3728         (memrefs_conflict_p): Likewise.
3729         (record_set): Likewise
3730         (record_base_value): Likewise.
3731         (memrefs_conflict_p): Use alias_invariant_size.
3732         (init_alias_analysis): Use varray; set alias_invariant_size;
3733         rescale other arrays to be sized by maxreg.
3734         (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
3735
3736 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
3737
3738         * config/sparc/sparc.c (function_arg_slotno): Use
3739         FLOAT_TYPE_P to detect FP fields in structures.
3740         (function_arg_record_value_1): Likewise.
3741         (function_arg_record_value_2): Likewise.
3742
3743 2004-01-22  Jan Hubicka  <jh@suse.cz>
3744
3745         * function.c (allocate_struct_function): Do not initialize expr, emit
3746         and varasm.
3747         (prepare_function_start): Do it here.
3748         * c-parse.in (maybe_type_qual): Do not produce line number notes.
3749
3750 2004-01-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
3751
3752         PR target/13559
3753         * config/sparc/sparc.c (function_arg_record_value_3): Revert
3754         to 'word_mode' once the first slot has been filled.
3755
3756 2004-01-22  Olivier Hainque  <hainque@act-europe.fr>
3757
3758         * config/sparc/sparc.c (function_arg_record_value_1): Fix
3759         computation of the number of integer registers required.
3760
3761 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
3762
3763         * config/i386/i386.md: Simplify certain comparisons of
3764         const_int.
3765
3766 2004-01-21  Andrew Pinski  <apinski@apple.com>
3767
3768         PR target/13785
3769         * config/rs6000/rs6000.md (call_value): Force operand
3770         1 not operand 0 into a register.
3771
3772 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
3773
3774         * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
3775         unwind-dw2-fde.h: Update copyright.
3776
3777 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3778
3779         * pa-protos.h: Update copyright.
3780         * pa.h: Likewise.
3781         * pa.md: Likewise.
3782
3783 2004-01-21  Caroline Tice  <ctice@apple.com>
3784
3785         PR target/12308
3786         * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
3787         flags register.
3788         (fix_truncdfdi2): Likewise.
3789         (fix_truncsfdi2): Likewise.
3790         (*fix_truncdi_1): Likewise.
3791         (fix_truncxfsi2): Likewise.
3792         (fix_truncdfsi2): Likewise.
3793         (fix_truncsfsi2): Likewise.
3794         (*fix_truncsi_1): Likewise.
3795         (fix_truncxfhi2): Likewise.
3796         (fix_truncdfhi2): Likewise.
3797         (fix_truncsfhi2): Likewise.
3798         (*fix_trunchi_1): Likewise.
3799
3800 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
3801
3802         * alias.c, basic-block.h, c-common.c, c-common.h,
3803         c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
3804         calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
3805         combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
3806         cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
3807         defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
3808         expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
3809         genautomata.c, genconditions.c, genemit.c, genflags.c,
3810         gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
3811         ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
3812         langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
3813         line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
3814         ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
3815         rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
3816         target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
3817         unwind.h, varray.c, varray.h: Update copyright.
3818
3819 2004-01-21  Kazu Hirata  <kazu@cs.umass.edu>
3820
3821         * config/h8300/coff.h: Update copyright.
3822         * config/h8300/elf.h: Likewise.
3823         * config/h8300/h8300-protos.h: Likewise.
3824         * config/h8300/h8300.c: Likewise.
3825         * config/h8300/h8300.h: Likewise.
3826         * config/h8300/h8300.md: Likewise.
3827
3828 2004-01-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3829
3830         * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
3831         ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
3832         ultrix_unistd): New hacks.
3833         * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
3834         ULTRIX_CONST2_CHECK): Add checks.
3835         * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
3836         * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
3837         * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
3838         * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
3839         * fixinc/tests/base/locale.h: New file.
3840         * fixinc/fixincl.x: Rebuilt.
3841
3842 2004-01-21  Andreas Jaeger  <aj@suse.de>
3843             Michael Matz  <matz@suse.de>
3844
3845         * doc/extend.texi (Extended Asm): Clarify memory clobber.
3846
3847 2004-01-21  Jakub Jelinek  <jakub@redhat.com>
3848
3849         * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
3850         _Jv_RegisterClasses through a function pointer.
3851
3852 2004-01-21  Falk Hueffner  <falk@debian.org>
3853
3854         PR target/12898
3855         * config/alpha/alpha.c (alpha_emit_set_const_1): If
3856         no_new_pseudos, use gen_rtx_SET directly for SImode constants
3857         which need multiple instructions to emit.
3858
3859 2004-01-21  Inaoka Kazuhiro  <inaoka.kazuhiro@renesas.com>
3860
3861         * config/m32r/m32r.h (CPP_SPEC): Define.
3862
3863 2004-01-21  Zack Weinberg  <zack@codesourcery.com>
3864
3865         * c-decl.c (merge_decls): Kill different_binding_level and
3866         different_tu arguments; simplify throughout.
3867         (duplicate_decls): Likewise.
3868         (pushdecl, merge_translation_unit_decls): Update calls to
3869         duplicate_decls.
3870
3871 2004-01-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3872
3873         * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
3874         $(SYSTEM_H).
3875         (print-rtl1.o): Depend on $(SYSTEM_H).
3876
3877 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
3878
3879         PR bootstrap/12730
3880         * configure.ac: Delete definition and subsitution of docdir.
3881         Add info, man, srcman and srcinfo to target hooks. Create doc/
3882         directory.
3883         * configure: Regenerate.
3884         * Makefile.in: Don't substitute docdir and delete all references
3885         throughout.
3886         (MAKEINFOFLAGS): Define.
3887         (stmp-docobjdir): Delete.
3888         (INFOFILES, MANFILES): Define.
3889         (info): Call lang.info, srcinfo and lang.srcinfo.
3890         (generated-manpages): Call lang.man, srcman and lang.srcman.
3891         (srcinfo, srcman): New rules to copy back files to source directory.
3892         (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
3893         (install-man): Revamp rule.
3894         (clean): Update dvi directory.
3895         (distclean): Delete TAGS from front end directorys.
3896         (maintainer-clean): Delete all document files in source directory.
3897
3898         objc/Make-lang.in (objc.man, objc.info): Dummy entries.
3899         (objc.srcman, objc.srcinfo): Likewise.
3900
3901 2004-01-20  Bruce Korb  <bkorb@gnu.org>
3902
3903         * fixinc/inclhack.def(math_exception): bypass only for glibc.
3904         (matherr_decl): rename & relocate as exception_structure.
3905         This fix must precede the math_exception fix.
3906
3907 2004-01-20  Roger Sayle  <roger@eyesopen.com>
3908
3909         * fold-const.c (fold_convert): Rename to fold_convert_const.
3910         (fold_convert_const): Change arguments to take a tree_code,
3911         a type and the operand/expression to be converted.  Return
3912         NULL_TREE if no simplification is possible.  Add support for
3913         FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
3914         (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
3915         Adjust call to fold_convert to match new fold_convert_const.
3916         Avoid modifying the tree passed to fold in-place.
3917
3918 2004-01-21  Alan Modra  <amodra@bigpond.net.au>
3919
3920         * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
3921         * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
3922         * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
3923
3924 2004-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3925
3926         * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
3927         * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
3928         Likewise.  Handle frames larger than 0x7fffffff on 64-bit ports.
3929         (emit_move_sequence): Check scratch_reg first in various if statements.
3930         Extend source simplification to handle all 64-bit CONST_INTs.
3931         (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
3932         frame size.
3933         (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
3934         frame offset calculations.
3935         * pa.h (NEW_HP_ASSEMBLER): Add comment.
3936         (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
3937         LEGITIMATE_64BIT_CONST_INT_P): Define.
3938         (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P.  Treat
3939         any CONST_INT as legitimate during and after reload.
3940         (VAL_32_BITS_P, INT_32_BITS): Define.
3941         (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
3942
3943 2004-01-20  Jan Hubicka  <jh@suse.cz>
3944
3945         * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
3946         emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
3947         containing hard regs are shared.
3948         (gen_hard_reg_clobber): New function.
3949         (hard_reg_clobbers): New array.
3950         * genemit.c (gen_exp): Use gen_hard_reg_clobber.
3951         (copy_rtx): Do not copy clobbers containing hard regs.
3952         * rtl.h (gen_hard_reg_clobber): Declare.
3953
3954 2004-01-20  Jan Hubicka  <jh@suse.cz>
3955
3956         * varray.c:  Include hashtab.h
3957         (varray_descriptor): New structure.
3958         (hash_descriptor, eq_descriptor, varray_descriptor,
3959         print_statistics): New static functions
3960         (varray_init, varray_grow): Update statistics
3961         (dump_varray_statistics): New function.
3962         * varray.h (dump_varray_statistics): Declare.
3963         * toplev.c (finalize): Call it.
3964         * Makefile.in (varray.o): Add dependency.
3965
3966 2004-01-20  Jan Hubicka  <jh@suse.cz>
3967
3968         * cselib.c: Include alloc-pool.h
3969         (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
3970         (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
3971         (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
3972         unchain_one_elt_loc_list_pool, unchain_one_value,
3973         new_cselib_val): Simplify using allocpool.
3974         (cselib_init): Initialize allocpools.
3975         (cselib_finish): Finish allocpools.
3976         * Makefile.in (cselib.o): Depend on alloc-pool.h
3977
3978 2004-01-20  Richard Sandiford  <rsandifo@redhat.com>
3979
3980         * config/mips/mips.c (mips_load_call_address): Make the call insn
3981         use $gp if it could be calling a lazy binding stub.
3982
3983 2004-01-20  Kazu Hirata  <kazu@cs.umass.edu>
3984
3985         * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
3986         (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3987         (TARGET_STRUCT_VALUE_RTX): Likewise.
3988         * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
3989         (PROMOTE_FUNCTION_RETURN): Remove.
3990         (STRUCT_VALUE): Remove.
3991
3992 2004-01-20  Denis Chertykov  <denisc@overta.ru>
3993
3994         PR bootstrap/13735
3995         * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
3996         register as pointer after reload.
3997
3998 2004-01-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3999
4000         PR optimization/12440
4001         * loop.c: Include ggc.h.
4002         (loop_optimize): Run garbage collector between optimization of loops.
4003         * Makefile.in (loop.o): Add GGC_H dependency.
4004
4005 2004-01-20  Hartmut Penner  <hpenner@de.ibm.com>
4006
4007         * gcc/config/rs6000/rs6000.c (function_arg) Handle
4008         vector register special in function without prototype.
4009         (function_arg_advance): Vector parameters get always
4010         GPRs allocated for the linux64 target.
4011
4012 2004-01-20  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
4013
4014         * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
4015         not TARGET_M32RX_MASK.
4016
4017 2004-01-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
4018
4019         PR target/13557
4020         * config/sparc/sparc.c (function_arg): Reorder the cases.
4021
4022 2004-01-19  Per Bothner  <per@bothner.com>
4023
4024         Move cpp_reader's line_maps field to a shared global.
4025         * cpphash.h (cpp_reader):  Rename line_maps field to line_table
4026         and change the type to a pointer rather than a struct.
4027         * cppinit.c (cpp_push_main_field):  Adjust accordingly.
4028         * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
4029         Likewise.
4030         * cppfiles.c (validate_pch):  Likewise.
4031         * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
4032         Likewise.
4033         * cpperror.c (print_location):  Likewise.
4034         * cpplib.h (cpp_create_reader):  New line_maps pointer parameter.
4035         * cppinit.c (cpp_create_reader):  Handle new parameter.
4036         (cpp_destroy):  Don't free line_maps - that's no longer our job.
4037         * input.h (line_table):  New variable.
4038         * toplev.c (line_table):  Declare variable.
4039         (general_init):  Initialize line_table.
4040         * c-opts.c (c_common_init_options):  Pass line_table to
4041         cpp_create_reader.
4042         * fix-header.c (read_scan_file):  New local variable line_table.
4043         Initialize, and pass it to cpp_create_reader.
4044         * Makefile.in (LIBS, LIBDEPS):  Add libcpp.a.
4045         (C_AND_OBJC_OBJS, fix-header):  Remove redundant libcpp.a.
4046
4047 2004-01-19  Per Bothner  <per@bothner.com>
4048
4049         Implement a cache for linemap_lookup.
4050         * line-map.h (struct_line_maps):  Add cache field.
4051         * line-map.c (linemap_init):  Zero cache field.
4052         (linemap_add):  Set cache field to offset of newly allocated map.
4053         (linemap_lookup):  Use and set cache field.
4054
4055 2004-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
4056
4057         PR optimization/13567
4058         * cse.c (cse_basic_block): Call cse_insn with a non-null
4059         libcall_insn for the last SET insn of a no-confilict block.
4060
4061 2004-01-20  Kelley Cook  <kcook@gcc.gnu.org>
4062
4063         * Makefile.in (target_noncanonical, program_transform_name): Use
4064         immediate define instead of deferred.
4065         (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
4066         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
4067         GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
4068         deferred backquote.
4069
4070 2004-01-20  Joseph S. Myers  <jsm@polyomino.org.uk>
4071
4072         * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
4073         true unconditionally.
4074         * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
4075         Remove.
4076         (build_unary_op, build_modify_expr): Don't handle extended
4077         lvalues.
4078         (build_component_ref, build_conditional_expr): Call non_lvalue
4079         instead of pedantic_non_lvalue.
4080         (build_c_cast): Don't condition use of non_lvalue on pedantic.
4081         * fold-const.c (fold): Don't check pedantic directly for
4082         COMPOUND_EXPR.  Ensure that results for COMPOUND_EXPR are
4083         passed to pedantic_non_lvalue.
4084         * doc/extend.texi: Remove documentation of extended lvalues.
4085
4086 2004-01-19  Roger Sayle  <roger@eyesopen.com>
4087
4088         PR optimization/5263
4089         * simplify-rtx.c (associative_constant_p): Delete.
4090         (simplify_associative_operation): Rewrite to linearize terms, and
4091         attempt to simplify new term against both left and right subterms.
4092         (simplify_binary_operation): Call swap_commutative_operands_p on
4093         op0 and op1, not trueop0 and trueop1.  Move the initialization of
4094         trueop0 and trueop1 down to where first needed.
4095         (simplify_relational_operation): Likewise.
4096         * rtlanal.c (commutative_operand_precedence): Also order constant
4097         operands using avoid_constant_pool_reference.
4098
4099 2004-01-19  Richard Henderson  <rth@redhat.com>
4100
4101         * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
4102         don't check memory mode.
4103         (unaligned_memory_operand): Likewise.
4104         (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
4105         abort for op0 not MEM.
4106
4107         * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
4108         is not a reg, copy to a scratch first.
4109         (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
4110         unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
4111         unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
4112         (reload_inqi, reload_inhi): Fix mode of op0.
4113         (reload_inqi_help, reload_inhi_help, reload_outqi_help,
4114         reload_outhi_help): Likewise.  Use define_insn_and_split.
4115
4116         * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
4117         as well as $29 dead.
4118
4119 2004-01-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
4120
4121         * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New.  Emit
4122         "tls_object" for thread-local objects.
4123         * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
4124         "#tls" for thread-local sections.
4125         * configure.ac (thread-local checks): Specify --fatal-warnings in
4126         every binutils-specific checks.  For sparc*-*-*, test whether the
4127         OS is Solaris and the tools are native and act accordingly.
4128         * configure: Rebuild.
4129
4130 2004-01-19  Jeff Law  <law@redhat.com>
4131
4132         * contrib.texi: Update Paolo Carlini's entry.  New entries for
4133         Jerry Quinn and Petur Runolfsson.
4134
4135 2004-01-19  Roger Sayle  <roger@eyesopen.com>
4136
4137         * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
4138         size, don't use the larger zero-extending loads.
4139
4140 2004-01-19  Richard Henderson  <rth@redhat.com>
4141
4142         * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
4143         * alpha.md (UNSPEC_NT_LDA): Remove.
4144         (UNSPEC_CVTLQ, cvtlq): New.
4145         (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
4146         (extendsidi2_fix): Remove.
4147         (extendsidi2 splitter): Use cvtlq.
4148         (extendsidi2 fp peepholes): Remove.
4149         (cvtql): Use SFmode instead of SImode.
4150         (fix_trunc?fsi): Update to match.
4151         (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
4152         (movsi): Rename from movsi_nofix, remove f alternatives.
4153         (movsi_nt_vms): Similarly.
4154         (movsi_fix, movsi_nt_vms_fix): Remove.
4155         (nt_lda): Remove.
4156         * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
4157
4158 2004-01-19  Jan Hubicka  <jh@suse.cz>
4159
4160         * cgraph.c (cgraph_remove_node): Fix removal from linked list.
4161         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
4162         list.
4163         (cgraph_remove_unreachable_nodes): New function
4164         (cgraph_decide_inlining_of_small_function): Fix pasto.
4165         (cgraph_decide_inlining_incrementally): Fix pasto.
4166         (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
4167
4168 2004-01-19  Steven Bosscher  <stevenb@suse.de>
4169
4170         * gengtype.c (header_file): Make it static.
4171         (write_types_process_field, write_enum_defn): Minor whitespace fixes.
4172         * gengtype.h (header_file): No longer extern.
4173
4174 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
4175
4176         * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
4177         * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
4178         * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
4179
4180 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
4181
4182         * stmt.c (HAVE_casesi): Define it not already defined.
4183         (HAVE_tablejump): Likewise.
4184         (expand_end_case_type): Resort to the binary tree method if
4185         neither casesi or tablejump is available.
4186
4187 2004-01-18  Daniel Jacobowitz  <drow@mvista.com>
4188
4189         * final.c (final_scan_insn): Make non-static again.
4190         * output.h (final_scan_insn): Re-add prototype.
4191         * config/arc/arc.c (arc_output_function_epilogue): Add NULL
4192         to final_scan_insn call.
4193         * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
4194         * config/mips/mips.c (mips_output_conditional_branch): Likewise.
4195         * config/pa/pa.c (output_lbranch, output_call): Likewise.
4196         * config/sh/sh.c (print_slot): Likewise.
4197         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
4198         (output_sibcall, sparc_flat_function_epilogue): Likewise.
4199
4200 2004-01-18  Jan Hubicka  <jh@suse.cz>
4201
4202         * basic-block.h (try_redirect_by_replacing_jump): Declare.
4203         * cfgcleanup.c (try_optimize_cfg): Use it.
4204         * cfgrtl.c (try_redirect_by_replacing_jump): Export.
4205         (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
4206         Kill hack.
4207         (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
4208
4209         Revert:
4210         2004-01-16  Geoffrey Keating  <geoffk@apple.com>
4211
4212                 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
4213                 even after reload, just don't remove the actual jump tables.
4214
4215 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
4216
4217         * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
4218
4219 2004-01-18  Kazu Hirata  <kazu@cs.umass.edu>
4220
4221         * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
4222         the size of a pointer in bytes.
4223
4224 2004-01-18  Roger Sayle  <roger@eyesopen.com>
4225
4226         * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
4227         live "next" variable, which could lead to an infinite loop.
4228
4229 2004-01-18  Andrew Pinski  <pinskia@physics.uc.edu>
4230
4231         * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
4232         block.
4233
4234         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
4235         Check for NULL in the chain and remove repeated code.
4236
4237 2004-01-18  Jan Hubicka  <jh@suse.cz>
4238
4239         * coverage.c (checksum_string): Rename to ...
4240         (coverage_checksum_string): ... this one, Use crc32_string; recognize
4241         names containing random number and zero the number out in order to get
4242         match.
4243
4244 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
4245
4246         * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
4247
4248 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
4249
4250         * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
4251         doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
4252         doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
4253         doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
4254         doc/trouble.texi: Remove trailing whitespace.
4255
4256 2004-01-18  Richard Sandiford  <rsandifo@redhat.com>
4257
4258         PR target/7618
4259         * config/mips/mips.c: Include cfglayout.h.
4260         (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
4261         (mips_unspec_offset_high): Add temporary register argument.
4262         (mips_load_call_address): New function, split out from...
4263         (mips_expand_call): ...here.
4264         (mips_output_cplocal): New function.
4265         (mips_output_function_prologue, mips_output_function_epilogue): Use it.
4266         (mips_emit_loadgp): New function, split out from...
4267         (mips_expand_prologue): ...here.
4268         (mips_output_mi_thunk): New function.
4269
4270 2004-01-17  Bernardo Innocenti  <bernie@develer.com>
4271
4272         * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
4273         mcpu32): Remove redundant checks for implied target predefines.
4274
4275 2004-1-17  Andrew Pinski  <pinskia@physics.uc.edu>
4276
4277         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
4278         Return type is unsigned int not int.
4279         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
4280         Likewise.
4281
4282 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
4283
4284         * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
4285         doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
4286         "GNU/Linux" and "Microsoft Windows" terminology.
4287
4288 2004-01-18  Joseph S. Myers  <jsm@polyomino.org.uk>
4289
4290         * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
4291         doc/cppopts.texi, doc/extend.texi, doc/install.texi,
4292         doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
4293         doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
4294         @smallexample instead of @example.
4295
4296 2004-01-17  Ziemowit Laski  <zlaski@apple.com>
4297
4298         * objc/objc-act.c (build_objc_method_call): Use target
4299         hooks instead of macros to determine if ..._stret
4300         dispatchers should be used (NeXT runtime only).
4301
4302 2004-01-17  Roger Sayle  <roger@eyesopen.com>
4303
4304         * builtins.c (expand_builtin_expect_jump): Fix mistake in my
4305         last patch.  Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
4306
4307 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
4308
4309         * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
4310         (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
4311         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
4312         macros.
4313         * reload1.c (emit_reload_insns): Use them.
4314         * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
4315         (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
4316         for NULL PATTERN.
4317
4318 2004-01-17  Daniel Jacobowitz  <drow@mvista.com>
4319
4320         * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
4321         (final_scan_insn): Update to take an additional SEEN argument.  Emit
4322         a line note after the prologue.  Make static.
4323         (line_note_exists): Remove.
4324         (final): Don't initialize line_note_exists.  Update call to
4325         final_scan_insn.
4326         * output.h (final_scan_insn): Remove prologue.
4327         * function.c (set_insn_locators): Update comment.
4328         (thread_prologue_and_epilogue_insns): Add a comment.
4329
4330 2004-01-17  Andrew Pinski  <pinskia@physics.uc.edu>
4331
4332         PR target/10781
4333         * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
4334         Prototype.
4335         * config/rs6000/rs6000.c (rs6000_special_round_type_align):
4336         New function.
4337         * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
4338         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
4339         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
4340
4341 2004-01-17  Jan Hubicka  <jh@suse.cz>
4342
4343         * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
4344         commit.
4345
4346         * toplev.c (HAVE_conditional_execution): Provide default.
4347         (rest_of_handle_reorder_blocks): For conditional_execution target
4348         update liveness once after all transformations
4349         (rest_of_compilation): Do crossjumping before ce3.
4350
4351 2004-01-17  Geoffrey Keating  <geoffk@apple.com>
4352
4353         * alias.c (new_alias_set): Mark last_alias_set for PCH.
4354         (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
4355         for PCH.
4356         (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
4357         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
4358         (get_TOC_alias_set): Mark 'set' for PCH.
4359
4360 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
4361
4362         * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
4363         even after reload, just don't remove the actual jump tables.
4364
4365 2004-01-17  J. Brobecker  <brobecker@gnat.com>
4366
4367         * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
4368         Remove checks for is_ada() and TREE_UNSIGNED.
4369         (subrange_type_die): Emit a byte_size attribute if the subrange
4370         type size is different from the base type size.
4371         (modified_type_die): Replace call to is_ada_subrange_type() by
4372         call to is_subrange_type().
4373
4374 2004-01-16  Andrew Pinski  <pinskia@physics.uc.edu>
4375
4376         * config/sh/sh.c: Include ggc.h.
4377
4378 2004-01-16  Geoffrey Keating  <geoffk@apple.com>
4379
4380         * Makefile.in (MD5_H): New.
4381         (fold-const.o): Depend on md5.h.
4382         (dwarf2out.o): Likewise.
4383         (cppfiles.o): Likewise.
4384         * cppfiles.c: Include md5.h.
4385         (should_stack_file): Check against list read from PCH file.
4386         (struct pchf_data): New.
4387         (pchf): New variable.
4388         (struct pchf_adder_info): New.
4389         (pchf_adder): New.
4390         (pchf_save_compare): New.
4391         (_cpp_save_file_entries): New.
4392         (_cpp_read_file_entries): New.
4393         (struct pchf_compare_data): New.
4394         (pchf_compare): New.
4395         (check_file_against_entries): New.
4396         * cpphash.h (_cpp_save_file_entries): Prototype.
4397         (_cpp_read_file_entries): Prototype.
4398         * cpppch.c (cpp_write_pch_state): Write the list of headers.
4399         (cpp_read_state): Read the list of headers.
4400
4401 2004-01-17  Jan Hubicka  <jh@suse.cz>
4402
4403         * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
4404         builtin_expect specially.
4405         * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
4406         (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
4407         * invoke.texi (max-inline-insns-single): Set to 100.
4408         (large-function-insns): Set to 3000.
4409
4410 2004-01-16  Eric Christopher  <echristo@redhat.com>
4411             Chandrakala Chavva <cchavva@redhat.com>
4412
4413         * cppcharset.c (one_iso88591_to_utf8): New function.
4414         (convert_iso88591_utf8): Ditto. Use.
4415         (conversion_tab): Use.
4416         (_cpp_input_to_utf8): New function.
4417         (_cpp_init_iconv_buffer): Ditto.
4418         (_cpp_close_iconv_buffer): Ditto.
4419         * cpphash.h: Prototype new functions.
4420         (cpp_buffer): Add input_cset_desc.
4421         * cppinit.c: Add input_charset default.
4422         * cpplib.c (cpp_push_buffer): Support init and
4423         close of iconv.
4424         * cpplib.h (cpp_options): Add input_charset.
4425
4426 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
4427
4428         * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
4429         * config/alpha/unicosmk.h: Remove a commented-out definition
4430         of ASM_OUTPUT_SECTION_NAME.
4431         * config/stormy16/stormy16.h: Likewise.
4432
4433 2004-01-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4434
4435         * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
4436         (alpha___extern_prefix_sys_stat): ... this.
4437         Apply to <sys/mount.h>, too.
4438         Tweak to match more variations.
4439         * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
4440
4441         * fixinc/inclhack.def (alpha___extern_prefix,
4442         alpha___extern_prefix_standards): New hacks to obey
4443         __PRAGMA_EXTERN_PREFIX.
4444         * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
4445         test.
4446         * fixinc/tests/base/standards.h: Likewise.
4447
4448         * fixincl/inclhack.def (alpha_pthread): Tweak to match more
4449         variations.
4450         New testcase.
4451         * fixinc/tests/base/pthread.h: Handle it.
4452
4453         * fixincl/inclhack.def (bad_lval): Sort file list.
4454         Add many missing files up to Tru64 UNIX V5.1B.
4455         * gcc/fixinc/tests/base/libgen.h: Renamed to ...
4456         * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
4457         order.
4458
4459         * fixinc/fixincl.x: Regenerate.
4460
4461 2004-01-16  Mark Mitchell  <mark@codesourcery.com>
4462
4463         * version.c (version_string): Change to 3.5.0.
4464         * doc/include/gcc-common.texi (version-GCC): Likewise.
4465
4466 2004-01-16  Jan Hubicka  <jh@suse.cz>
4467
4468         * i386.md (load_tp_di): Fix pasto.
4469
4470         PR opt/13608
4471         * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
4472
4473         * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
4474         pp_c_character_constant, pp_c_floating_constant,
4475         pp_c_additive_expression, pp_c_shift_expression,
4476         pp_c_equality_expression, pp_c_and_expression,
4477         pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
4478         pp_c_logical_and_expression): Remove inline modifier.
4479         * dwarf2out.c (get_AT): Likewise.
4480         * et-forest.c (et_splay): Likewise.
4481         * ra.h (ra_alloc, ra_calloc): Likewise
4482
4483 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
4484
4485         * config/frv/frv-protos.h: Fix comment formatting.
4486         * config/frv/frv.c: Likewise.
4487         * config/frv/frv.h: Likewise.
4488         * config/frv/frv.md: Likewise.
4489         * config/frv/frvbegin.c: Likewise.
4490         * config/frv/frvend.c: Likewise.
4491
4492 2004-01-16  Kazu Hirata  <kazu@cs.umass.edu>
4493
4494         * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
4495         * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
4496         LINKER_DOES_NOT_WORK_WITH_DWARF2.
4497         (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
4498
4499 2004-01-16  J"orn Rennecke <joern.rennecke@superh.com>
4500
4501         PR 11864
4502         * postreload.c (reload_cse_simplify_operands): Don't remove
4503         implicit extension from LOAD_EXTEND_OP.
4504
4505 2004-01-16  Jan Hubicka  <jh@suse.cz>
4506
4507         PR opt/11350
4508         * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
4509         after reload.
4510         * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
4511         rtl_try_redirect_by_replacing_branch): Likewise.
4512
4513 2004-01-15  Geoffrey Keating  <geoffk@apple.com>
4514
4515         PR pch/13689
4516         * alias.c (struct alias_set_entry): Mark for GC.
4517         (alias_sets): Make static, mark for GC.
4518         (record_alias_subset): Use GC to allocate alias structures.
4519         * varray.c (element): Make generic varrays GCed.
4520
4521         PR pch/13361
4522         * c-typeck.c (constructor_asmspec): Delete.
4523         (struct initializer_stack): Delete field 'asmspec'.
4524         (start_init): Delete saving of asmspec.
4525         (finish_init): Don't update constructor_asmspec.
4526         * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
4527         * stmt.c (expand_asm): Duplicate strings from tree.
4528         (expand_asm_operands): Likewise.
4529         * tree.c (tree_size): Update computation of size of STRING_CST.
4530         (make_node): Don't make STRING_CST nodes.
4531         (build_string): Allocate string with tree node.
4532         * tree.def (STRING_CST): Update comment.
4533         * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
4534         (tree_string): Place contents of string in tree node.
4535         * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
4536         from tree.
4537
4538         * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
4539         altivec operands.
4540
4541 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
4542
4543         * c-common.h: Fix comment formatting.
4544         * c-cppbuiltin.c: Likewise.
4545         * c-pragma.c: Likewise.
4546         * calls.c: Likewise.
4547         * collect2.c: Likewise.
4548         * cppcharset.c: Likewise.
4549         * cpptrad.c: Likewise.
4550         * dbxout.c: Likewise.
4551         * defaults.h: Likewise.
4552         * dwarf2out.c: Likewise.
4553         * fold-const.c: Likewise.
4554         * genautomata.c: Likewise.
4555         * genconditions.c: Likewise.
4556         * genflags.c: Likewise.
4557         * gengtype.c: Likewise.
4558         * integrate.c: Likewise.
4559         * loop.c: Likewise.
4560         * predict.c: Likewise.
4561         * sdbout.c: Likewise.
4562
4563 2004-01-15  Zack Weinberg  <zack@codesourcery.com>
4564
4565         * config/ia64/ia64.md (*movti_internal): C output template
4566         extracted to ia64.c.
4567         (*movti_internal_reg): Delete.
4568         (reload_inti, reload_outti): Use the correct mode on operand 2
4569         in the first place, don't fix it up in the output template.
4570         (movtf, reload_ointf, reload_outtf): New expanders.
4571         (*movtf_internal): New define_insn_and_split.
4572         * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
4573         make static; do not hand TFmode CONST_DOUBLEs to split_double.
4574         (ia64_split_tmode_move): New function, body mostly pulled
4575         from ia64.md:*movti_internal.
4576         (ia64_function_arg_words): New function, extracted common
4577         logic from ia64_function_arg et seq.
4578         (ia64_function_arg_offset): Likewise.  Handle correctly the
4579         case of a scalar quantity 16 bytes wide with only 8-byte alignment.
4580         (ia64_function_arg, ia64_function_arg_partial_nregs)
4581         (ia64_function_arg_advance): Use ia64_function_arg_words and
4582         ia64_function_arg_offset.
4583         (ia64_function_value): TCmode does not go in float regs.
4584         (ia64_secondary_reload_class): Also handle TFmode.
4585         * config/ia64/ia64-protos.h: Remove prototype for
4586         ia64_split_timode; add prototype for ia64_split_tmode_move.
4587
4588 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
4589
4590         * Makefile.in (MAINT): Make it an immediate assignment.
4591
4592 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
4593
4594         * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
4595
4596 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
4597
4598         * config/h8300/coff.h: Replace Hitachi with Renesas.
4599         * config/h8300/elf.h: Likewise.
4600         * config/h8300/h8300-protos.h: Likewise.
4601         * config/h8300/h8300.c: Likewise.
4602         * config/h8300/h8300.h: Likewise.
4603         * config/h8300/h8300.md: Likewise.
4604         * config/h8300/lib1funcs.asm: Likewise.
4605
4606 2004-01-15  Andrew Pinski  <apinski@apple.com>
4607
4608         * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
4609         around it.
4610
4611 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
4612
4613         * config/h8300/h8300.c (h8300_return_in_memory): New.
4614         (TARGET_STRUCT_VALUE_RTX): Likewise.
4615         (TARGET_RETURN_IN_MEMORY): Likewise.
4616         * config/h8300/h8300.h (STRUCT_VALUE): Remove.
4617         (RETURN_IN_MEMORY): Likewise.
4618
4619 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
4620
4621         PR optimization/13375
4622         * gcse.c (handle_avail_expr): Just return if the source is not a
4623         single set.
4624
4625 2004-01-15  Richard Earnshaw  <rearnsha@arm.com>
4626             Daniel Jacobowitz  <drow@mvista.com>
4627
4628         * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
4629         (EQUIV): Define.
4630         (ARM_FUNC_ALIAS): New macro.
4631         * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
4632         * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
4633
4634 2004-01-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4635
4636         PR optimization/12372
4637         * calls.c (expand_call): Add call_fusage data for stack arguments in
4638         constant calls.
4639
4640 2004-01-15  Alan Modra  <amodra@bigpond.net.au>
4641
4642         * config/rs6000/rs6000.c (uses_TOC): Correct comment.  Make static.
4643         (rs6000_elf_declare_function_name): Formatting.
4644         * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
4645
4646 2004-01-15  Jan Hubicka  <jh@suse.cz>
4647
4648         PR bootstrap/13692
4649         * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
4650         previous patch.
4651
4652 2004-01-15  Richard Henderson  <rth@redhat.com>
4653
4654         * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
4655         integer regs of the same call-savedness.
4656
4657 2004-01-15  Andreas Schwab  <schwab@suse.de>
4658
4659         PR bootstrap/13562
4660         * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
4661         status for NOTB/NOTW/NEGW methods.
4662
4663 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
4664
4665         * doc/invoke.texi: Update dump file names.  Fix a typo.
4666
4667 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
4668
4669         * builtins.c (expand_builtin_va_end): Don't use
4670         EXPAND_BUILTIN_VA_END.
4671         * system.h (EXPAND_BUILTIN_VA_END): Poison.
4672         * config/d30v/d30v.h: Remove a commented-out definition of
4673         EXPAND_BUILTIN_VA_END.
4674         * config/stormy16/stormy16.h: Likewise.
4675
4676 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
4677
4678         * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
4679         * targhooks.c (default_struct_value_rtx): Don't use
4680         STRUCT_VALUE_INCOMING_REGNUM.
4681
4682 2004-01-15  Kelley Cook  <kcook@gcc.gnu.org>
4683
4684         PR bootstrap/12744
4685         * configure.in: Revamp enable-generated-files-in-srcdir rule to define
4686         GENINSRC and not parsedir.  Define srcextra as a langhook.
4687         * configure: Regenerate.
4688         * Makefile.in: Suppress default .l.c rule.  Don't substitute
4689         parsedir and delete all references throughout.  Conditionally define
4690         rule for srcextra dependent on GENINSRC.
4691         (stmp-docobjdir): Delete.
4692         (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
4693         (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
4694         and gengtype-yacc.h back to source directory.
4695         (maintainer-clean): Delete all parse files in source directory.
4696         (distclean): Delete generated files.
4697
4698         * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
4699         (objc-parse.c, objc-parse.y): Don't use parsedir.
4700         (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
4701         directory if requested.
4702         (po-generated): Don't use parsedir.
4703         (objc.maintainer-clean): Delete above files from source directory.
4704
4705 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
4706
4707         * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
4708
4709 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
4710
4711         * doc/tm.texi: Replace RETURN_IN_MEMORY with
4712         TARGET_RETURN_IN_MEMORY.
4713
4714 2004-01-15  Jan Hubicka  <jh@suse.cz>
4715
4716         * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
4717         * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
4718         functions accepting SSE arguments
4719         (function_arg): Warn only when asked to warn.
4720         * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
4721
4722 2004-01-14  Joseph S. Myers  <jsm@polyomino.org.uk>
4723
4724         * c-parse.in (stmts_and_decls): Make label at end of compound
4725         statement a hard error.
4726
4727 2004-01-14  Jan Hubicka  <jh@suse.cz>
4728
4729         * cgraph.c (create_edge): Use local.redefined_extern_inline.
4730         * cgraph.h (cgraph_local_info): Sort fields by size; add
4731         redefined_extern_inline
4732         (cgraph_global_info): Sort fields by size.
4733         (cgraph_node): Likewise.
4734         * cgraphunit.c (cgraph_finalize_function): Se
4735         local.redefined_extern_inline on redefinition.
4736         (cgraph_analyze_function): Use it; fix formating.
4737
4738 2004-01-14  Jan Hubicka  <jh@suse.cz>
4739
4740         PR c++/10776
4741         * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
4742         outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
4743         bitmaps
4744         (cache_size): New variable
4745         (add_dependence): Update use; canonize early memory locations
4746         (sched_analyze_1): Likewise.
4747         (sched_analyze_2): Likewise.
4748         (init_dependency_caches): Initialize bitmaps.
4749         (free_dependency_caches): Free bitmaps
4750
4751 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
4752
4753         * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
4754         targetm.calls.strict_argument_naming().
4755         * target.h: Likewise.
4756
4757 2004-01-14  Richard Henderson  <rth@redhat.com>
4758
4759         PR debug/13231
4760         * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
4761         instructions.
4762
4763 2004-01-14  Richard Henderson  <rth@redhat.com>
4764
4765         PR c++/12491
4766         * except.c (struct eh_region): Add u.fixup.resolved.
4767         (resolve_one_fixup_region): Split out from ...
4768         (resolve_fixup_regions): ... here.
4769
4770 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
4771
4772         * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
4773
4774 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
4775
4776         * config/alpha/alpha.h (STRUCT_VALUE): Remove.
4777         * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
4778         (STRUCT_VALUE): Remove.
4779
4780 2004-01-14  Steven Bosscher  <stevenb@suse.de>
4781
4782         * system.h: Poison PROMOTED_MODE
4783         * integrate.c (expand_inline_function): Don't mention the
4784         PROMOTED_MODE.
4785         * loop.c (update_giv_derive): Same.
4786         * tree.h (DECL_RTL): Same.
4787
4788 2004-01-14  J"orn Rennecke <joern.rennecke@superh.com>
4789
4790         PR target/9365
4791         * sh.c (gen_block_redirect): Add special handling of RETURN.
4792         (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
4793         far branch target (i.e. it's a return).
4794
4795 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
4796
4797         * regrename.c (find_oldest_value_reg): Fix a warning.
4798
4799 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
4800
4801         PR bootstrap/12527
4802         * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
4803         Move linux-gas.h and linux-elf.h before aout.h.
4804         * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
4805         * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
4806
4807 2004-01-14  Kazu Hirata  <kazu@cs.umass.edu>
4808
4809         * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
4810         (CONST_INT, VOIDmode, ...).
4811
4812 2004-01-14  Richard Earnshaw  <rearnsha@arm.com>
4813
4814         * regrename.c (find_oldest_value_reg): If the replacement uses
4815         multiple hard registers, check that all of them are in CLASS.
4816
4817 2004-01-14  Jan Hubicka  <jh@suse.cz>
4818
4819         * alias.c (get_alias_set):  Initialize alias set to 0 when subset is
4820         impossible.
4821
4822 2004-01-14  Kelley Cook  <kcook@gcc.gnu.org>
4823
4824         * Makefile.in: Define MAINT from --enable-maintainer-mode.
4825
4826 2004-01-14  Hartmut Penner  <hpenner@de.ibm.com>
4827
4828         * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
4829         Calculate always vrsave_mask if TARGET_ALTIVEC.
4830         (rs6000_emit_prologue): Emit code for vrsave
4831         only if TARGET_ALTIVEC_VRSAVE.
4832         (rs6000_emit_epilogue): Likewise.
4833
4834 2004-01-14  Eric Botcazou  <ebotcazou@libertysurf.fr>
4835
4836         * config/sparc/sparc.md (tie_add32): Fix pasto.
4837         (tie_add64): Likewise.
4838
4839 2004-01-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4840
4841         * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
4842
4843 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
4844
4845         * config/iq2000/iq2000-protos.h: Fix comment formatting.
4846         * config/iq2000/iq2000.c: Likewise.
4847         * config/iq2000/iq2000.md: Likewise.
4848
4849 2004-01-14  J. Brobecker  <brobecker@gnat.com>
4850
4851         * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
4852         (subrange_type_die): Add handle for nameless subrange types.
4853
4854 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
4855
4856         * config/h8300/h8300-protos.h: Replace do_movsi with
4857         h8300_expand_movsi.
4858         * config/h8300/h8300.c (do_movsi): Change to
4859         h8300_expand_movsi.
4860         * config/h8300/h8300.md (movsi): Replace do_movsi with
4861         h8300_expand_movsi.
4862         (movsf): Likewise.
4863
4864 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
4865
4866         * config/h8300/h8300.c (dosize): Change to
4867         h8300_emit_stack_adjustment.  Update callers.
4868
4869 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
4870
4871         * config/h8300/h8300.md (movstrictqi): Add an alternative with
4872         the source being post_inc.  Tighten the predicate for the
4873         destination to register_operand.
4874         (movstricthi): Likewise.
4875
4876 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
4877
4878         * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
4879         * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
4880         * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
4881
4882 2004-01-14  Jan Hubicka  <jh@suse.cz>
4883
4884         Partial fix PR c++/12850
4885         * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
4886         at zero nest level.
4887
4888 2004-01-13  Bernardo Innocenti  <bernie@develer.com>
4889
4890         * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
4891         pseudo-register.
4892
4893 2004-01-13  Devang Patel <dpatel@apple.com
4894
4895         PR debug/7078
4896         * dbxout.c (dbxout_symbol_name): Emit mangled names for
4897         NAMESPACE_DECL memebers.
4898
4899 2004-01-13  Andrew Pinski  <pinskia@physics.uc.edu>
4900
4901         PR c++/12709
4902         * c-common.c (finish_fname_decls): Use the chain only if the
4903         tree is an expr_stmt.
4904
4905 2004-01-13  Vladimir Makarov  <vmakarov@redhat.com>
4906
4907         * rtl.def: Add comment about new option in automata_option.
4908
4909         * genautomata.c (PROGRESS_OPTION): New macro.
4910         (progress_flag): New global variable.
4911         (gen_automata_option): Process `progress'.
4912         (transform_insn_regexps, check_unit_distributions_to_automata,
4913         make_automaton, NDFA_to_DFA, build_automaton, create_automata,
4914         expand_automata, write_automata): Print about the progress only if
4915         progress_flag.  Remove fflush.
4916         (initiate_automaton_gen): Process command line flag `-progress'.
4917
4918         * doc/md.texi: Describe the new option.
4919
4920 2004-01-13  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4921
4922         * cfg.c (dump_bb): Dump entry edges.
4923
4924 2004-01-13  Richard Earnshaw  <rearnsha@arm.com>
4925
4926         * arm.c (thumb_legitimate_address_p): Only allow constant pool
4927         references from SImode.
4928         * arm.md (thumb_movhi_insn): Don't allow minipool references.
4929
4930 2004-01-13  Kazu Hirata  <kazu@cs.umass.edu>
4931
4932         * system.h (TEXT_SECTION): Poison.
4933         * varasm.c (text_section): Don't use TEXT_SECTION.
4934         * config/sh/sh.c (sh_file_start): Fix a comment typo.
4935         * doc/tm.texi (TEXT_SECTION): Remove.
4936
4937 2004-01-13  Ben Elliston  <bje@wasabisystems.com>
4938
4939         * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
4940
4941 2004-01-12  James E Wilson  <wilson@specifixinc.com>
4942
4943         * unwind-libunwind.c: Delete.
4944
4945 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
4946
4947         PR 13656
4948         * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
4949         oldtype is set, set *newtypep or *oldtypep too.  Do not set
4950         them at the very end.
4951         (validate_proto_after_old_defn): Restructure for comprehensibility;
4952         make error messages clearer.
4953
4954 2004-01-12  Zack Weinberg  <zack@codesourcery.com>
4955
4956         * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
4957         (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
4958         * varray.c: No need to prototype error.
4959         (varray_check_failed): Wrap long string onto two lines.
4960         (varray_underflow): New function.
4961
4962 2004-01-13  Steven Bosscher  <stevenb@suse.de>
4963
4964         PR c++/13376
4965         * function.h (struct function): Kill `name' field.
4966         (current_function_name): Make it an extern function.
4967         * function.c (current_function_name): New function.
4968         * graph.c: Update all uses of current_function_name.
4969         * gcse.c: Likewise.
4970         * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
4971         config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
4972         * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
4973         instead of a strcmp with "main".
4974
4975 2004-01-13  Jan Hubicka  <jh@suse.cz>
4976
4977         * c-decl.c (diagnose_mismatched_decls):  Fix warning calls.
4978
4979         * cgraphunit.c (cgraph_optimize_function):  Always do
4980         optimize_inline_calls when there is always_inline callee.
4981         (cgraph_decide_inlining): Fix formating.
4982         * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
4983         functions.
4984         (expand_call_inline): Likewise.
4985         * toplev.h (sorry): Fix prototype.
4986
4987 2004-01-12  Roger Sayle  <roger@eyesopen.com>
4988
4989         * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
4990         conditional jumps that drop through to unconditional jumps or the
4991         end of the sequence.
4992
4993 2004-01-13  Jan Hubicka  <jh@suse.cz>
4994
4995         * alias.c (new_alias_set): Construct the alias_set varray.
4996         (init_alias_once): Don't do it here.
4997
4998 2004-01-12  Marc Espie <espie@openbsd.org>
4999
5000         * system.h: handle YYBYACC like YYBISON.
5001
5002 2004-01-12  Jonathan Merriman <jonm@dualitymedia.com>
5003
5004         PR target/10847
5005         * config.gcc: No longer includes conflicting header sparc/sol2.h when
5006         building on sparc64-*-openbsd*.
5007
5008 2004-01-12  Andrew Pinski  <pinskia@physics.uc.edu>
5009
5010         PR debug/13539
5011         * dbxout.c (dbxout_type): Protected inheritance is not
5012         private but protected.
5013
5014 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
5015
5016         * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
5017
5018 2004-01-12  Kazu Hirata  <kazu@cs.umass.edu>
5019
5020         PR optimization/12508.
5021         * combine.c (try_combine): Remove a dead set in a parallel
5022         even if its destination is a subreg.
5023
5024         Revert:
5025         2003-06-03  Kazu Hirata  <kazu@cs.umass.edu>
5026         * combine.c (simplify_set): Don't move a subreg in SET_SRC to
5027         SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
5028
5029 2004-01-12  Geoffrey Keating  <geoffk@apple.com>
5030
5031         * real.c: Update copyright date.
5032         * emit-rtl.c: Likewise.
5033         * rtl.h: Likewise.
5034         * dwarf2out.c: Likewise.
5035         * config/rs6000/darwin-ldouble.c: Likewise.
5036         * config/rs6000/rs6000.md: Likewise.
5037
5038 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
5039
5040         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
5041         TFmode to SImode libfuncs.
5042
5043 2004-01-12  Roger Sayle  <roger@eyesopen.com>
5044
5045         PR middle-end/11397
5046         * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
5047
5048 2004-01-12  Jan Hubicka  <jh@suse.cz>
5049
5050         PR opt/12826
5051         * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
5052         stored.
5053
5054         PR opt/12863
5055         * cfgcleanup.c (label_is_jump_target_p): Move to...
5056         * rtlanal.c (label_is_jump_target_p): ... here.
5057         * cfgrtl.c (cfg_layout_redirect_edge_and_branch):  Fix redirecting of fallthru
5058         edges unified with branch edges.
5059
5060 2004-01-12  Richard Earnshaw  <rearnsha@arm.com>
5061
5062         * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
5063         high word of an integral CONST_DOUBLE.
5064
5065 2004-01-12  Paul Brook  <paul@codesourcery.com>
5066
5067         * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
5068
5069 2004-01-12  J"orn Rennecke <joern.rennecke@superh.com>
5070
5071         PR target/13585
5072         * sh-protos.h (check_use_sfunc_addr): Declare.
5073         * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
5074         * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
5075
5076 2004-01-12  Jan Hubicka  <jh@suse.cz>
5077
5078         * alias.c:  Invlude varray.h
5079         (alias_sets): Turn into varray.
5080         (get_alias_set_entry): Use VARRAY; mark inline.
5081         (mems_in_disjoint_alias_sets_p): Mark inline.
5082         (record_alias_subset): Use varray.
5083         (init_alias_once): Initialize varray.
5084         (new_alias_set): Grow array.
5085         * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
5086
5087 2004-01-12  Jan Hubicka  <jh@suse.cz>
5088
5089         Partial fix for PR opt/10776 II
5090         * cselib.c: Include params.h
5091         (cselib_invalidate_mem):  Limit amount of nonconflicting memory
5092         locations.
5093         * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
5094         * Makefile.in (cselib.o): Depend on params.h
5095
5096 2004-01-12  Richard Sandiford  <rsandifo@redhat.com>
5097
5098         * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
5099         simplify_unary_operation if the operand has a known mode.
5100
5101 2004-01-12  Hartmut Penner  <hpenner@de.ibm.com>
5102
5103         PR target/13534
5104         * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
5105         predicate to handle 'ld' conform addresses.
5106         * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
5107         contraint.
5108         (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
5109         are memory contraints.
5110         * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
5111         New prototype.
5112         * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
5113         Change 'o' to 'Y' constraint.
5114         (*movdf_softfloat64): Ditto.
5115
5116 2004-01-12  Bernardo Innocenti  <bernie@develer.com>
5117
5118         * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
5119         brace-enclosed syntax in all C output statements.
5120
5121 2004-01-12  David Edelsohn  <edelsohn@gnu.org>
5122
5123         PR target/13401
5124         * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
5125         Objective-C language type value is 14.
5126
5127 2004-01-12  Markus F.X.J. Oberhumer  <markus@oberhumer.com>
5128
5129         PR c/12148
5130         * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
5131         `int' in a number of places to make sure we always have a SImode
5132         and not a HImode.  Add a 'L' suffix to a number of constants.
5133
5134 2004-01-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5135
5136         * pa.c: Don't include obstack.h.
5137
5138         * pa.md: Correct constraint in pattern for loading PIC label address.
5139
5140 2004-01-11  Kaz Kojima  <kkojima@gcc.gnu.org>
5141
5142         * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
5143          before defining.
5144
5145 2004-01-11  Steven Bosscher  <stevenb@suse.de>
5146
5147         PR fortran/9972
5148         * toplev.c (rest_of_handle_inline): Also consider functions
5149         for deferral if the language is GNU F77.
5150
5151 2004-01-11  Zack Weinberg  <zack@codesourcery.com>
5152
5153         * c-decl.c (diagnose_arglist_conflict): Add missing space to
5154         diagnostic messages.
5155
5156 2004-01-11  Jakub Jelinek  <jakub@redhat.com>
5157
5158         PR middle-end/13392
5159         * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
5160         to drop through label.  Don't fall back to SCC even when conditional
5161         jump has not been found.
5162
5163 2004-01-11  Jan Hubicka  <jh@suse.cz>
5164
5165         * invoke.texi: Fix syntax error in previous patch.
5166
5167         Partial fix for PR opt/10776
5168         * Makefile.in (reload.o): Include param.h
5169         * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
5170         * reload.c: Include params.h.
5171         (find_equiv_reg): Work limiting check.
5172         * invoke.texi: Document.
5173
5174 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
5175
5176         * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
5177         out-of-bounds accesses to string constants.  Simplify mips16
5178         case accordingly.
5179
5180 2004-01-11  Richard Sandiford  <rsandifo@redhat.com>
5181
5182         PR optimization/13469
5183         * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
5184         reload_cse_regs (-fnon-call-exceptions only).
5185
5186 2004-01-11  Kazu Hirata  <kazu@cs.umass.edu>
5187
5188         * config/mcore/lib1.asm: Fix comment formatting.
5189         * config/mcore/mcore-elf.h: Likewise.
5190         * config/mcore/mcore.c: Likewise.
5191         * config/mcore/mcore.h: Likewise.
5192         * config/mcore/mcore.md: Likewise.
5193
5194 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
5195
5196         * c-decl.c (duplicate_decls): Break apart into...
5197         (diagnose_arglist_conflict, validate_proto_after_old_defn)
5198         (locate_old_defn, diagnose_mismatched_decls, merge_decls):
5199         ... these new functions.  Restructure for comprehensibility.
5200         Remove various archaic special cases.  Always report the
5201         location of the previous declaration when a diagnostic is issued.
5202         (redeclaration_error_message): Fold into diagnose_mismatched_decls.
5203         (match_builtin_function_types): Delete unnecessary forward declaration.
5204
5205 2004-01-10  Zack Weinberg  <zack@codesourcery.com>
5206
5207         * genautomata.c (make_automaton, NDFA_to_DFA):
5208         Print progress bars with '.' characters instead of '*'.
5209         (build_automaton): Change notes to match.
5210
5211 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
5212
5213         * config/m32r/m32r.md: Use define_constants for unspec and
5214         unspec_volatile.
5215
5216 2004-01-10  Jan Hubicka  <jh@suse.cz>
5217
5218         PR opt/11635
5219         * expr.c (expand_expr_real):  More curefully expand union casts.
5220
5221 2004-01-10  Kazu Hirata  <kazu@cs.umass.edu>
5222
5223         * config/m32r/m32r.md (flush_icache): Use 1 for
5224         unspec_volatile.
5225
5226 2004-01-10  David Edelsohn  <edelsohn@gnu.org>
5227             James E Wilson  <wilson@specifixinc.com>
5228
5229         PR debug/12860
5230         * dbxout.c (dbxout_symbol): Remove initialization of
5231         current_sym_code, current_sym_value, and current_sym_addr.
5232         (dbxout_symbol_location): Same.
5233         (dbxout_prepare_symbol): Zero current_sym_code,
5234         current_sym_value, and current_sym_addr.
5235
5236 2004-01-10  Richard Sandiford  <rsandifo@redhat.com>
5237
5238         * tree.c (get_unwidened): Reorder conditions so that the null pointer
5239         check is done first.
5240
5241 2004-01-09  Eric Christopher  <echristo@redhat.com>
5242
5243         * toplev.c (rest_of_handle_cfg): Add reg_scan pass
5244         if we're running mark_constant_function.
5245
5246 2004-01-09  Jeff Bailey  <jbailey@nisa.net>
5247
5248         PR target/12561
5249         * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
5250
5251 2004-01-09  Andrew Pinski <pinskia@physics.uc.edu>
5252
5253         PR debug/11231
5254         * dbxout.c (dbxout_type_fields): Return if any item is
5255         error_mark_node or the type is error_mark_node.
5256
5257 2004-01-09  Geoffrey Keating  <geoffk@apple.com>
5258
5259         * config/rs6000/darwin-ldouble.c: Add big comment explaining
5260         exactly what is expected as a 'long double'.
5261         (_xlqadd): When a value to be returned is representable as a
5262         'double', just return it directly, do not construct it using a union.
5263         Also, correct final fixup.
5264         (_xlqmul): Likewise.
5265         (_xlqdiv): Likewise.
5266         * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
5267
5268         * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
5269
5270 2004-01-09  Richard Henderson  <rth@redhat.com>
5271
5272         * recog.c (constrain_operands): Validate mem operands.
5273
5274 2004-01-09   James E Wilson  <wilson@specifixinc.com>
5275
5276         * gcc.c (init_spec): Remove -lunwind from shared case.
5277         * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
5278
5279 2004-01-09  Steve Ellcey  <sje@cup.hp.com>
5280
5281         * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
5282         * configure: Regenerate
5283
5284 2004-01-09  Joseph S. Myers  <jsm@polyomino.org.uk>
5285
5286         PR c/11234
5287         * c-typeck.c (build_c_cast): If pedantic, warn for conversions
5288         between function and object pointers.
5289         (digest_init): When comparing a pointer to function type to the
5290         target type, only apply TREE_TYPE once to the pointer to function
5291         type.
5292         * except.c (for_each_eh_label_1): Treat data as a pointer to a
5293         function pointer rather than casting it to a function pointer.
5294         (for_each_eh_label): Update caller.
5295         * recog.h (struct insn_data): Use a struct or union for output.
5296         * genoutput.c (output_insn_data): Update.
5297         * final.c (get_insn_template): Update.
5298
5299 2004-01-09  Mark Mitchell  <mark@codesourcery.com>
5300
5301         * expr.h (expand_expr): Make it a macro, not a function.
5302         (expand_expr_real): New function.
5303         * expr.c (store_expr): Adjust logic for deciding whether or not to
5304         copy the value returned by expand_expr.
5305         (expand_expr): Rename to ...
5306         (expand_expr_real): ... this.  Add alt_rtl parameter.  Adjust
5307         calls to language hooks.
5308         * c-common.h (c_expand_expr): Adjust prototype.
5309         * c-common.c (c_expand_expr): Add alt_rtl parameter.
5310         * langhooks-def.h (lhd_expand_expr): Change prototype.
5311         * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
5312         * langhooks.h (lang_hooks): Change type of expand_expr.
5313         * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
5314         (last_expr_alt_rtl): Likewise.
5315         (expand_expr_stmt_value): Set last_expr_alt_rtl.
5316         (clear_last_expr): Clear it.
5317         (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
5318         (expand_end_bindings): Save and restor last_expr_alt_rtl.
5319         * tree.def (RTL_EXPR): Give it an additional operand.
5320         * tree.h (RTL_EXPR_ALT_RTL): New macro.
5321
5322 2004-01-09  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5323
5324         * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
5325         * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
5326
5327 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
5328
5329         PR target/13380.
5330         * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
5331         or (ne:SI (reg:CC 17) (const_int 0)).
5332         Be specific about modes wherever possible.
5333
5334 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
5335
5336         * config/m32r/m32r.c (m32r_expand_block_move): Call
5337         gen_movestrsi_internal with two more arguments.
5338         (m32r_output_block_move): Adjust operand numbers.
5339         Properly update the source and destination pointers.
5340         * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
5341         'r+'.  Change the set detinations to match_operand.
5342
5343 2004-01-09  Kazu Hirata  <kazu@cs.umass.edu>
5344
5345         * final.c (FIRST_INSN_ADDRESS): Remove.
5346         (shorten_branches): Don't use FIRST_INSN_ADDRESS.
5347         * system.h (FIRST_INSN_ADDRESS): Poison.
5348         * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
5349         * config/m32r/m32r-protos.h: Remove the prototype for
5350         m32r_first_insn_address.
5351         * config/m32r/m32r.c (m32r_first_insn_address): Remove.
5352         * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
5353         * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
5354
5355 2004-01-09  J. Brobecker  <brobecker@gnat.com>
5356
5357         * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
5358         we just created.
5359         (is_ada_subrange_type): DIEs for enumeration subtypes should be
5360         emitted as subrange types too.
5361         (subrange_type_die): Add handling of enumeration subtypes.
5362
5363 2004-01-08  Richard Henderson  <rth@redhat.com>
5364
5365         PR opt/12441
5366         Revert: Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5367         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5368         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5369         (ix86_address_cost): Be prepared for SUBREGed registers.
5370         (legitimate_address_p): Accept SUBREGed registers.
5371
5372 2004-01-08  Kelley Cook  <kcook@gcc.gnu.org>
5373
5374         * Makefile.in: Rename configure.in to configure.ac
5375         * doc/sourcebuild.texi: Likewise.
5376         * configure: Regenerate.
5377         * config.in: Regenerate.
5378
5379 2004-01-08  Stuart Hastings  <stuart@apple.com>
5380
5381         * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
5382
5383 2004-01-08  Jan Hubicka  <jh@suse.cz>
5384
5385         * cgraphunit.c (cgraph_decide_inlining):  Fix typo.
5386
5387 2004-01-08  Geoffrey Keating  <geoffk@apple.com>
5388
5389         * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
5390         (UNSPEC_FIX_TRUNC_TF): New constant.
5391         (movtf_internal): Make splitter active only when insn is active.
5392         (extenddftf2): Rewrite to properly load zero into low part.
5393         (extenddftf2_internal): New.
5394         (extendsftf2): Rewrite.
5395         (truncdftf2): Correct length.
5396         (floatditf2): Delete.
5397         (fix_trunc_helper): New.
5398         (fix_trunctfdi2): Use fix_trunc_helper.
5399         (fix_trunctfsi2): Likewise.fix_trunc
5400         (fix_trunctfsi2_internal): New.
5401
5402         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
5403         addresses are legitimate on Darwin even when flag_pic.
5404         (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
5405         non-offsettable addresses for loads of TFmode constants.
5406
5407 2004-01-08  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5408
5409         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
5410         variables in the appropriate bss section.
5411
5412 2004-01-09  Alan Modra  <amodra@bigpond.net.au>
5413
5414         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
5415         target_flags has MASK_POWERPC64 when -m64.
5416         * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
5417         to 620, 630, power3, power4 and rs64a entries.
5418         * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
5419
5420 2004-01-08  Richard Sandiford  <rsandifo@redhat.com>
5421
5422         * simplify-rtx.c (simplify_immed_subreg): Fix construction of
5423         floating-point constants.
5424
5425 2004-01-08  J. Brobecker  <brobecker@gnat.com>
5426
5427         * dwarf2out.c (subrange_type_die): Add context_die parameter.
5428         Create the subrange_type DIE using the given context DIE.
5429         (modified_type_die): Update call to subrange_type_die.
5430
5431 2004-01-08  Zack Weinberg  <zack@codesourcery.com>
5432
5433         * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
5434         Add multiple-include guard.
5435
5436 2004-01-08  Hartmut Penner  <hpenner@de.ibm.com>
5437
5438         * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
5439         all vector constant loadable by vsplt*.
5440         (output_vec_const_move): Likewise.
5441
5442 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
5443
5444         PR c/6024
5445         * c-typeck.c (comptypes): Only treat enumerated types in the same
5446         translation unit as compatible with each other when they are the
5447         same type.
5448         * doc/extend.texi: Update.
5449
5450 2004-01-07  Joseph S. Myers  <jsm@polyomino.org.uk>
5451
5452         PR c/12165
5453         * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
5454         array type from the array element type.
5455
5456 2004-01-07  Alan Modra  <amodra@bigpond.net.au>
5457
5458         * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
5459         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
5460         * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
5461         (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
5462         * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
5463
5464 2004-01-06  Eric Christopher  <echristo@redhat.com>
5465
5466         * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
5467         (DWARF2_DEBUGGING_INFO): Define.
5468         (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
5469         * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
5470         * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
5471         for irix as.
5472         (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
5473         * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
5474         * config/mips/iris5gas.h: Ditto.
5475         (DBX_DEBUGGING_INFO): Remove.
5476         (DWARF2_DEBUGGING_INFO): Ditto.
5477         (MIPS_DEBUGGING_INFO): Ditto.
5478         (PREFERRED_DEBUGGING_TYPE): Ditto.
5479         * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
5480         (PREFERRED_DEBUGGING_TYPE): Ditto.
5481         (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
5482         * config/mips/elf64.h: Ditto.
5483
5484 2004-01-06  Jan Hubicka  <jh@suse.cz>
5485
5486         * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
5487         (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
5488
5489 2004-01-06  Geoffrey Keating  <geoffk@apple.com>
5490
5491         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
5492         (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
5493         * config/rs6000/darwin-ldouble.c: New.
5494
5495         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
5496         for constants.
5497         (constant_subword): Delete.
5498         * rtl.h (constant_subword): Delete prototype.
5499         (immed_double_const): Is not in varasm.c.
5500         * simplify-rtx.c (simplify_immed_subreg): New.
5501         (simplify_subreg): Use simplify_immed_subreg.
5502
5503         * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
5504         than trying to generate RTL directly.
5505         (fix_trunctfsi2): Use expand_fix rather than trying to generate
5506         RTL directly.
5507
5508         * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
5509
5510 2004-01-06  David Edelsohn  <edelsohn@gnu.org>
5511
5512         * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
5513         function into a separate macro.
5514         (read_only_data_section): Add void argument.
5515         (private_data_section): Same.
5516         (read_only_private_data_section): Same.
5517         (toc_section): Same.
5518
5519 2004-01-06  Jan Hubicka  <jh@suse.cz>
5520
5521         * invoke.texi:  Remove typo in last change.
5522
5523         PR target/10301
5524         * config.gcc: Accept opteron and athlon-64 as variants
5525         of k8.
5526         * i386.c (override_options): Likewise.
5527         * invoke.texi (i386 -mtune): Expand documentation.
5528
5529 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
5530
5531         * alias.c: Fix comment typos.
5532         * builtins.c: Likewise.
5533         * cfg.c: Likewise.
5534         * df.c: Likewise.
5535         * dominance.c: Likewise.
5536         * dwarf2out.c: Likewise.
5537         * emit-rtl.c: Likewise.
5538         * expr.c: Likewise.
5539         * final.c: Likewise.
5540         * fold-const.c: Likewise.
5541         * gcse.c: Likewise.
5542         * genattrtab.c: Likewise.
5543         * genrecog.c: Likewise.
5544         * gensupport.c: Likewise.
5545         * ggc-zone.c: Likewise.
5546         * integrate.c: Likewise.
5547         * local-alloc.c: Likewise.
5548         * loop.c: Likewise.
5549         * recog.c: Likewise.
5550         * regmove.c: Likewise.
5551         * reg-stack.c: Likewise.
5552         * reorg.c: Likewise.
5553         * rtlanal.c: Likewise.
5554         * rtl.h: Likewise.
5555         * sched-ebb.c: Likewise.
5556         * simplify-rtx.c: Likewise.
5557         * toplev.c: Likewise.
5558         * varasm.c: Likewise.
5559
5560 2004-01-06  Kazu Hirata  <kazu@cs.umass.edu>
5561
5562         * doc/install.texi: Fix typos.
5563         * doc/invoke.texi: Likewise.
5564         * doc/md.texi: Likewise.
5565
5566 2004-01-06  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
5567
5568         * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
5569
5570 2004-01-06  Jan Hubicka  <jh@suse.cz>
5571
5572         * i386.c (init_cumulative_args):  Add handling of MMX_REGPARM.
5573         (function_arg_advance):  Do not pass aggregates in SSE; deal handling
5574         of MMX_REGPARM.
5575         (function_arg): Add new warnings about ABI changes;  fix SSE_REGPARM;
5576         add MMX_REGPARM.
5577         * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
5578         (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
5579         (MMX_REGPARM_MAX): Similarly for -mmmx.
5580
5581 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
5582
5583         * config/sh/linux.h: Fix comment formatting.
5584         * config/sh/netbsd-elf.h: Likewise.
5585         * config/sh/sh.c: Likewise.
5586         * config/sh/sh.h: Likewise.
5587         * config/sh/vxworks.h: Likewise.
5588
5589 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
5590
5591         * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
5592         * toplev.c (output_file_directive): Don't use
5593         ASM_OUTPUT_MAIN_SOURCE_FILENAME.
5594
5595 2004-01-05  Steven Bosscher <s.bosscher@student.tudelft.nl>
5596
5597         * toplev.c: Fix broken checkin of 2003-12-30.
5598
5599 2004-01-05  Daniel Berlin  <dberlin@dberlin.org>
5600
5601         * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
5602         (USING_MMAP): We don't support non-mmap.
5603         (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
5604         large objects.
5605         (struct page_entry): Remove bytes_free.
5606         (struct page_table_chain): Remove.
5607         (struct globals): Remove page_table member.
5608         (loookup_page_table_entry): Function deleted.
5609         (set_page_table_entry): Ditto.
5610         (ggc_allocated_p): No longer need page table lookups.
5611         (ggc_marked_p): Ditto.
5612         (alloc_small_page): Don't care about bytes_free anymore.
5613         (alloc_large_page): Round up size.
5614         (ggc_alloc_zone_1): Mark large objects as such, and calculate
5615         their size the new way.
5616         Remove page table lookups and setting.
5617         (ggc_get_size): Calculate large object size the new way.
5618         (sweep_pages): Redo to account for fact that we no longer have
5619         bytes_free.
5620         (ggc_collect): No longer need to reincrement bytes_free.
5621         (ggc_pch_alloc_object): Handle new large objects properly.
5622         (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
5623
5624 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
5625
5626         * doc/invoke.texi: Remove a page break.
5627
5628 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
5629
5630         * config/avr/avr.c (avr_output_function_prologue): Remove an
5631         extra pair of curly braces.
5632
5633 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
5634
5635         * config/mn10300/mn10300.c: Fix comment formatting.
5636         * config/mn10300/mn10300.h: Likewise.
5637
5638 2004-01-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5639
5640         * tree.h: Update documentation on nothrow_flag.
5641         * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
5642         types.
5643
5644 2004-01-05  Kazu Hirata  <kazu@cs.umass.edu>
5645
5646         * doc/invoke.texi: Remove traces of dead ports.
5647
5648 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
5649
5650         * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
5651         option.
5652
5653 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
5654
5655         PR target/12945
5656         * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
5657         counter labels.
5658         * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
5659         (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
5660         string constants if TARGET_MIPS16.  Use SYMBOL_REF_DECL to check
5661         the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
5662         (mips_symbol_insns): Don't trust the local/global classification.
5663         (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
5664         (override_options): Make -mabicalls -fno-unit-at-a-time imply
5665         -mno-explicit-relocs.
5666         (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
5667         between local and global symbols.
5668
5669 2004-01-05  Richard Sandiford  <rsandifo@redhat.com>
5670
5671         * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
5672         (mips_preferred_reload_class): Declare.
5673         * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
5674         (EXTRA_CONSTRAINT): Update accordingly.
5675         (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
5676         * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
5677         (mips_preferred_reload_class): New function.  Prefer LEA_REGS if
5678         mips_dangerous_for_la25_p.
5679         (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
5680         if mips_dangerous_for_la25_p.
5681
5682 2004-01-05  Bernardo Innocenti  <bernie@develer.com>
5683
5684         * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
5685         warning.
5686
5687 2004-01-04  Nathanael Nerode  <neroden@gcc.gnu.org>
5688
5689         * configure.ac: Use AC_PROG_CPP_WERROR.
5690         * configure: Regenerate.
5691
5692 2004-01-04  Zack Weinberg  <zack@codesourcery.com>
5693
5694         * .cvsignore: Add autom4te.cache.
5695
5696 2004-01-04  Richard Sandiford  <rsandifo@redhat.com>
5697
5698         * doc/invoke.texi: Revamp documentation of MIPS options.  Remove
5699         -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
5700         -m4650, -mfix7000 and -(m)no-crt0.  Put endianness options first,
5701         then architecture options, then ABI options.  General rewording.
5702
5703 2004-01-04  Joseph S. Myers  <jsm@polyomino.org.uk>
5704
5705         PR c/3414
5706         * doc/extend.texi: Clarify definition of malloc attribute.
5707
5708 2004-01-04  Jan Hubicka  <jh@suse.cz>
5709
5710         * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
5711         * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
5712         * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
5713         (cgraph_inline_p): Add extra argument reason.
5714         * cgraphunit.c: Minor formating fixes.
5715         cgraph_first_inlined_callee): New functions.
5716         (record_call_1): Record builtins too.
5717         (cgraph_analyze_function): Update inline_failed messages.
5718         (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
5719         cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
5720         (cgraph_check_inline_limits): Likewise; Add argument reason.
5721         (cgraph_set_inline_failed): New static function.
5722         (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
5723         reasons.
5724         (cgraph_inline_p): Add new argument reason.
5725         * tree-inline.c (expand_call_inline):  Update warning.
5726
5727 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
5728
5729         * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
5730         with modern equivalents.
5731         * configure: Regenerate.
5732
5733         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
5734         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
5735         * configure: Regenerate.
5736
5737         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
5738
5739         * configure.in: Rename to configure.ac.
5740         * configure.ac: Renamed from configure.in; make minimum necessary
5741         changes for autoconf 2.5x.
5742         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
5743         * configure: Regenerate with autoconf 2.57.
5744
5745 2004-01-03  Kazu Hirata  <kazu@cs.umass.edu>
5746
5747         * config/mips/linux.h: Fix comment formatting.
5748         * config/mips/mips.c: Likewise.
5749         * config/mips/mips.h: Likewise.
5750         * config/mips/mips.md: Likewise.
5751         * config/mips/netbsd.h: Likewise.
5752         * config/mips/windiss.h: Likewise.
5753
5754 2004-01-02  Richard Henderson  <rth@redhat.com>
5755
5756         * config/i386/i386.md (fp constant pool splitter): Reorg suppression
5757         for sse and 387; add suppression for mmx.
5758
5759 2004-01-02  Andrew Pinski  <pinskia@physics.uc.edu>
5760
5761         * loop.c (loop_optimize): Free all loops_info's mems.
5762
5763         * c-typeck.c (finish_init): Free spelling_base before
5764         setting it again.
5765
5766         * cfgloop.c (flow_loops_find): Always free the sbitmap
5767         headers.
5768
5769         * predict.c (estimate_probability): Free bbs after being
5770         done with it.
5771
5772 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
5773
5774         * config/mn10300/mn10300.h (PREDICATE_CODES): Add
5775         const_8bit_operand and call_address_operand.
5776
5777 2004-01-02  Jan Hubicka  <jh@suse.cz>
5778
5779         * cgraphunit.c (cgraph_optimize_function):  Call optimize_inline_calls
5780         when there is nothing to inline but warnings are requested.
5781         (cgraph_decide_inlining):  Fix memory leak.
5782
5783 2004-01-02  Jan Hubicka  <jh@suse.cz>
5784
5785         * expr.c (store_constructor):  Fix pasto in previous patch.
5786
5787 2004-01-02  Kazu Hirata  <kazu@cs.umass.edu>
5788
5789         * config/i386/cygming.h: Fix comment formatting.
5790         * config/i386/djgpp.h: Likewise.
5791         * config/i386/gthr-win32.c: Likewise.
5792         * config/i386/i386-interix.h: Likewise.
5793         * config/i386/i386.c: Likewise.
5794         * config/i386/i386.h: Likewise.
5795         * config/i386/openbsd.h: Likewise.
5796         * config/i386/winnt.c: Likewise.
5797         * config/i386/xm-mingw32.h: Likewise.
5798
5799 2004-01-02  Joseph S. Myers  <jsm@polyomino.org.uk>
5800
5801         * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
5802         copyright and last modification dates.
5803
5804 2004-01-02  Andreas Jaeger  <aj@suse.de>, Gerald Pfeifer  <gp@suse.de>
5805
5806         * doc/install.texi (Specific): Mention x86_64.
5807
5808 2004-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
5809
5810         * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
5811         Call force_operand on plus_constant result.
5812
5813 2004-01-01  Jan Hubicka  <jh@suse.cz>
5814
5815         * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
5816         * expr.c (store_constructor): Use vec_init pattern.
5817         * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
5818         * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
5819         (vec_set_optab, vec_extract_optab, vec_init_optab): New.
5820         * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
5821         New patterns.
5822         (sse2_unpc?pd): Fix pattern.
5823         (sse2_movlpd): Kill.
5824         (sse2_movsd): Deal with movlpd too.
5825         * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
5826         (ix86_expand_vector_init): New.
5827         * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
5828         * md.texi (vec_set, vec_extract): Document
5829
5830 2003-12-31  Jan Hubicka  <jh@suse.cz>
5831
5832         PR opt/13473
5833         * recog.c (validate_replace_rtx_1):  Take care for RTL sharing inside
5834         ASM input operands
5835
5836         PR opt/12617
5837         * toplev.c (dump_file_index): Reorder ce3 and bbro.
5838         (dump_file): Likewise.
5839         (rest_of_compilation): Likewise.
5840
5841         PR debug/13367
5842         * cgraph.c (cgraph_function_possibly_inlined):  Even with
5843         flag_really_no_inline we inline always_inline functions.
5844         * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
5845         for non-always_inline functions when there is flag_really_no_inline.
5846         (cgraph_decide_inlining): Limit work done when not inlining.
5847         (cgraph_decide_inlining_incrementally): Likewise.
5848         (cgraph_optimize_function): Check whether something got inlined.
5849         * c-objc-common.c (c_disregard_inline_limits): Do not always inline
5850         extern inline functions when not inlining.
5851
5852         * opts.c (decode_options):  Disable crossjumping at -O1
5853         * invoke.texi (-O1): Document change.
5854
5855 See ChangeLog.10 for earlier changes.