OSDN Git Service

* stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Wed Nov 28 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2
3         * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
4         level; only add to pending_sizes if find it.
5
6         * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
7
8         * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
9         Add casts to remove warnings.
10
11         * Makefile.in (OBJS): Sort alphabetically.
12
13         * print-rtl.c (print_rtx): If RTX code is bad, just say so.
14         Also minor cleanups.
15
16 Wed Nov 28 06:52:27 2001  Arnaud Charlet  <charlet@ACT-Europe.FR>
17
18         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
19         (FLAGS_TO_PASS): Add STAGE_PREFIX.
20         (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
21         to STAGE_PREFIX.
22
23 Wed Nov 28 10:42:19 CET 2001  Jan Hubicka  <jh@suse.cz>
24
25         * cse.c (true_dependence_in_rtx): New function.
26         (invalidate): Use it.
27
28         * c-common.h (GOTO_FAKE_P): New macro.
29         * tree-inline.c (GOTO_FAKE_P): Set.
30         * c-tree.texi (GOTO_FAKE_P): Document.
31
32         * varasm.c (assemble_variable): Set reloc to 3 for error_mark
33         containing pointers.
34         (output_addressed_constants): Check for local/external relocations.
35         * elfos.h (SELECT_SECTION): Classify data section.
36         * tm.texi (SELECT_SECTION): Update documentation.
37
38         * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
39         (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
40
41 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
42
43         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
44         UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
45         OBJECT_FORMAT_ROSE.
46
47 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
48
49         * config/cris/cris.c: Tweak spacing for prototypes.
50         (LOSE_AND_RETURN): New macro.
51         (cris_operand_lossage): New function.
52         (cris_print_index, cris_print_base): Use cris_operand_lossage
53         rather than fatal_insn.
54         (cris_print_operand, cris_print_operand_address): Use
55         LOSE_AND_RETURN rather than fatal_insn and internal_error.
56         (cris_output_addr_const): Use LOSE_AND_RETURN and
57         output_operand_lossage rather than fatal_insn and internal_error
58         for valid but unexpected rtx expressions.
59
60         * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
61         for a SUBREG in src or dest, abort instead.
62
63 2001-11-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
64
65         * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
66         doc.
67
68 2001-11-27  Jakub Jelinek  <jakub@redhat.com>
69
70         * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
71         preprocessor define.  If only DBX_DEBUGGING_INFO or only
72         DWARF2_DEBUGGING_INFO is supported for the target, provide
73         appropriate definitions.
74
75 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
76
77         * Makefile.in: Update, and add c-objc-common.o dependencies.
78         * c-lang.c: Remove unnecessary includes.
79         (c_init): Move bulk of code to c_objc_common_init, and call it.
80         (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
81         inline_forbidden_p, c_cannot_inline_tree_fn): Move to
82         c-objc-common.c.
83         * c-objc-common.c: New.  Mostly pulled from c-lang.c.
84         * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
85         c_objc_common_init, c_missing_noreturn_ok_p): New.
86         * toplev.c: Update comment.
87         * doc/passes.texi: Update.
88 objc:
89         * ojbc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
90         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
91         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
92         (objc_init): Update to use c_objc_common_init.
93
94 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
95
96         * cpphash.c (_cpp_init_hashtable): Update.
97         * cpphash.h (struct spec_nodes): Remove n_L.
98         * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
99
100 2001-11-17  Richard Henderson  <rth@redhat.com>
101
102         * unroll.c (loop_iterations): Move last change ...
103         * doloop.c (doloop_modify_runtime): ... here.
104
105 2001-11-17  Corey Minyard  <minyard@acm.org>
106             Richard Henderson  <rth@redhat.com>
107
108         * unroll.c (loop_iterations): Detect one situation in which we
109         overestimate the number of iterations.
110
111 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
112
113         * gcc.c (set_input): Export.
114         Move declaration ...
115         gcc.h (set_input): ... here.
116
117 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
118
119         * gcc.c (set_collect_gcc_options): New function, split out from
120         main.
121         Ignore elided switches.
122         (do_spec): Invoke before executing command.
123         (do_spec_1): Likewise.
124         Fixes PR other/3968.
125
126 2001-11-27  Hans-Peter Nilsson  <hp@axis.com>
127
128         * config/cris/cris.h (INT_ASM_OP): Remove.
129
130 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
131
132         * config/i386/sol2.h (WINT_TYPE): Redefine.
133         (WINT_TYPE_SIZE): Likewise.
134
135 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
136
137         * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
138         (dup2): Make static and add prototype.
139         * m68k/plexus.h: Don't define NO_DUP2.
140         * configure.in (AC_CHECK_FUNCS): Add dup2.
141         * config.in, configure: Regenerate.
142
143         * ia64/aix.h (REG_SIZE): Don't #undef.
144         * sparc.h (REG_SIZE): Delete.
145         * flow.c (mark_used_regs): Don't use REG_SIZE.
146         * regs.h (REG_SIZE): Delete.
147
148 2001-11-27  Andreas Schwab  <schwab@suse.de>
149
150         * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
151         PREFERRED_DEBUGGING_TYPE.
152
153 Tue Nov 27 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
154
155         * Makefile.in (c-lang.o): Depends on langhooks-def.h.
156         (expr.o, varasm.o): Depends on langhooks.h.
157         * c-common.c (c_safe_from_p): Always declare.
158         (c_expand_expr): Refine when declared.
159         * c-lang.c (c-common.h): Now include.
160         (LANG_HOOKS_SAFE_FROM_P): Define new hook.
161         (c_init): Don't set lang_safe_from_expr.
162         * expr.c (langhooks.h): Now include.
163         (lang_safe_from_p): No longer define.
164         (safe_from_p): Use lang hook.
165         (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
166         (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
167         * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
168         * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
169         (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
170         * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
171         * langhooks.h (struct lang_hooks): New fields expand_constant
172         and safe_from_p.
173         * output.h (output_constant): Size arg is HOST_WIDE_INT.
174         * stmt.c (expand_decl_init): No longer need to expand constant
175         for CONST_DECL.
176         * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
177         * toplev.c (lang_expand_constant): Delete var.
178         * tree.c (save_expr): Don't put another SAVE_EXPR around simple
179         operations on SAVE_EXPR.
180         * varasm.c (langhooks.h): Now include.
181         (compare_constant_1): Use lang_hooks, not lang_expand_constant.
182         (record_constant_1, output_addressed_constants): Likewise.
183         (initializer_constant_valid_p, output_constant): Likewise.
184         (output_constant_def): Process no-defer of string constant.
185         (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
186         (output_constant): Strip more conversions.
187         Track our size and pad for the rest.
188         (array_size_for_constructor): Remove code for non-byte STRING_CST.
189         (output_constructor): SIZE now HOST_WIDE_INT.
190
191 2001-11-27  Richard Henderson  <rth@redhat.com>
192
193         * ifcvt.c (noce_try_store_flag_constants): Test for overflow
194         in computing DIFF.
195
196 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
197
198         * cppfiles.c (read_include_file): Add comment.
199
200 2001-11-26  Richard Henderson  <rth@redhat.com>
201
202         * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
203
204 2001-11-26  Richard Henderson  <rth@redhat.com>
205
206         * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
207         * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
208         commented out override.
209
210 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
211
212         * cppfiles.c (stack_include_file): Don't optimize zero-length
213         files.
214         (read_include_file): NUL-terminate read files.
215         * cpplex.c (handle_newline, skip_escaped_newlines,
216         get_effective_char, skip_whitespace, parse_identifier,
217         parse_identifier_slow, parse_number, parse_string,
218         _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
219         NUL-terminated.
220         * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
221         Be sure buffers are NUL terminated.
222         * cppmacro.c (warn_of_redefinition): Kill compile warning.
223
224 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
225
226         * c-common.c: Include tree-inline.h.
227         (c_language): Move separate definitions here.
228         (c_common_init_options, c_common_post_options): New.
229         (c_common_lang_init): Rename c_common_init.
230         * c-common.h (c_common_lang_init): Similarly.
231         (c_common_init_options, c_common_post_options): New.
232         * c-lang.c (c_post_options): Move body to c_common_post_options.
233         (c_init_options): Use c_common_init_options.
234         (c_init): Update.
235         * langhooks.def: Rearrange.
236         * langhooks.h: Rearrange, and improve comments.
237         * toplev.c (do_compile): New function.
238         (toplev_main): Use it.
239         (lang_independent_f_options, parse_options_and_default_flags,
240         process_options): Remove trailing periods.
241         * Makefile.in: Update.
242 objc:   * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
243         functions.
244         (ojbc_init): Update.
245
246 2001-11-26  Richard Henderson  <rth@redhat.com>
247
248         * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
249
250 2001-11-26  DJ Delorie  <dj@redhat.com>
251
252         * expr.c (store_constructor): Actually use the value computed
253         if WORD_REGISTER_OPERATIONS.
254
255 2001-11-26  Richard Henderson  <rth@redhat.com>
256
257         * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
258         for CONSTRUCTOR.
259
260 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
261
262         * rs6000.c (output_mi_thunk): Handle minimal-toc and call
263         correct function on AIX.
264
265 2001-11-26  Alexandre Oliva  <aoliva@redhat.com>
266
267         * toplev.c (process_options): Don't force
268         flag_optimize_sibling_calls to zero just because exceptions are
269         enabled.
270
271 Mon Nov 26 12:37:05 2001  Jeffrey A Law  (law@cygnus.com)
272
273         * df.h (transfer_function_sbitmap): Use PARAMS around argument
274         list in function prototypes.
275         (transfer_function_bitmap): Likewise.
276
277 2001-11-26  Loren J. Rittle  <ljrittle@acm.org>
278
279         * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
280         * config/i386/netbsd-elf.h: Likewise.
281
282 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
283
284         * doc/trouble.texi: Remove outdated RS/6000 comments.
285
286 Mon Nov 26 13:49:41 CET 2001  Jan Hubicka  <jh@suse.cz>
287
288         * final.c (walk_alter_subreg): Fix return value.
289
290 Mon Nov 26 11:36:20 CET 2001  Jan Hubicka  <jh@suse.cz>
291
292         * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
293         alter_subreg.
294         * sparc.md (post-reload splitters): Do not call alter_subreg.
295         * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
296
297 2001-11-25  Aldy Hernandez  <aldyh@redhat.com>
298
299         * regclass.c (choose_hard_reg_mode): Handle vector arguments.
300
301 2001-11-26  Alan Modra  <amodra@bigpond.net.au>
302
303         * final.c: (insn_lengths): Make it an int *, so that large jump
304         tables don't overflow.
305
306 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
307
308         * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
309         (format_types): Use it for scanf.
310         (dollar_arguments_pointer_p): New.
311         (init_dollar_format_checking): Store details of which arguments
312         are pointers.
313         (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
314         (finish_dollar_format_checking): Take extra parameter
315         pointer_gap_ok.  Treat unused arguments differently if
316         pointer_gap_ok and the unused arguments are pointers.
317         (check_format_info_main): Pass extra argument to
318         finish_dollar_format_checking.
319         * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
320         unused arguments are present between used arguments with operand
321         numbers.
322
323 2001-11-25  Daniel Berlin  <dan@cgsoftware.com>
324
325         * df.c: Add prototypes for hybrid_search_bitmap and
326         hybrid_search_sbitmap. 
327         (hybrid_search_bitmap): New function.
328         (hybrid_search_sbitmap): New function.
329         (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
330         (iterative_dataflow_bitmap): Ditto.
331         
332 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
333
334         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
335         address computations.
336
337 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
338
339         * config/m68hc11/m68hc11.c (d_register_operand): Must accept
340         register b (low part of d).
341
342 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
343
344         * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
345         passed to mcount.
346
347 Sun Nov 25 06:22:09 2001  Douglas B. Rupp  <rupp@gnat.com>
348
349         * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
350         * config/alpha/x-vms: New file, to compile the above.
351         * config.gcc (alpha*-dec-vms*): Add x-vms.
352
353 2001-11-24  Hans-Peter Nilsson  <hp@axis.com>
354
355         * genextract.c (main): Set ro_loc for peepholes.
356
357 Sat Nov 24 17:04:10 2001  Douglas B. Rupp  <rupp@gnat.com>
358
359         * fix-header.c (main): Move inf_buffer termination and inf_limit
360         calculation to after read.
361
362         * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
363         (__UNIX_FOPEN): Define.
364
365 Sat Nov 24 16:11:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
366
367         * function.c (assign_stack_temp_for_type): Clear alias set before
368         setting new one.
369
370 2001-11-23  David Edelsohn  <edelsohn@gnu.org>
371
372         * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
373         format.
374         * rs6000.md (cmptf): Fix typo.
375
376 2001-11-23  Richard Sandiford  <rsandifo@redhat.com>
377
378         * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
379         * varasm.c (output_constructor): Use assemble_integer rather
380         than ASM_OUTPUT_BYTE.
381
382 2001-11-23  Andreas Jaeger  <aj@suse.de>
383
384         * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
385         extension.
386
387 2001-11-23  Nick Clifton  <nickc@cambridge.redhat.com>
388
389         * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
390         default definition.
391         (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
392         (MULTILIB_DEFAULTS): Remove previous definition.
393
394 2001-11-23  Neil Booth  <neil@daikokuya.demon.co.uk>
395
396         * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
397         * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
398
399 2001-11-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
400
401         * cris.h: Revert thinko in last patch.
402
403 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
404
405         * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
406         FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
407         cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
408         dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
409         explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
410         sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
411
412         * predict.c, reg-stack.c: Fix spelling errors.
413
414 2001-10-09  Andrew Haley  <aph@redhat.com>
415
416         * calls.c (check_sibcall_argument_overlap): Use slot_offset for
417         start of stack slot.
418
419 2001-11-22  Graham Stott  <grahams@redhat.com>
420
421         * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
422         replacement jump after original jump.
423
424         (verify_flow_info): Remove redundent initialisation.
425         Handle reaching end of insn list before finding a BARRIER.
426         Only issue one missing barrier diagnostic.
427
428 2001-11-22  Graham Stott  <grahams@redhat.com>
429
430         * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
431
432 Thu Nov 22 06:49:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
433
434         * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
435         insn actually does.
436
437 2001-11-22  Nick Clifton  <nickc@cambridge.redhat.com>
438
439         * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
440         Fix typo -mm32rx=> -m32rx.
441
442         * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
443         targets.
444
445         * config.gcc (xscale-coff): Add necessary header files to
446         tm_file variable.
447
448 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
449
450         * rs6000.c (output_cbranch): Use $, not %$, in output template.
451
452 2001-11-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
453
454         * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
455         (lang_type_quals): Declare.
456         (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
457         retrieve language-specific qualifiers for a type node, instead of
458         C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
459         lang_dump_tree.
460         * tree-dump.h: Rename from c-dump.h.
461         * c-common.h (C_TYPE_QUALS): Removed.
462         Move declarations for tree-dump.c interface to...
463         * tree.h: ... here. Remove lang_dump_tree.
464         * langhooks.h (struct lang_hooks_for_tree_dump): New.
465         (struct lang_hooks): Add tree_dump hooks.
466         * langhooks.c (lhd_tree_dump_dump_tree): New function.
467         (lhd_tree_dump_type_quals): New function.
468         * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
469         Declare.
470         (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
471         * Makefile.in: Move tree-dump.o to language-independent back-end.
472
473 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
474
475         * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
476         * alpha.h (DBX_REGISTER_NUMBER): Likewise.
477         * arc.h (DBX_REGISTER_NUMBER): Likewise.
478         * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
479         * avr.h (DBX_REGISTER_NUMBER): Likewise.
480         * c4x.h (DBX_REGISTER_NUMBER): Likewise.
481         * clipper.h (DBX_REGISTER_NUMBER): Likewise.
482         * convex.h (DBX_REGISTER_NUMBER): Likewise.
483         * cris.h (DBX_REGISTER_NUMBER): Likewise.
484         * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
485         * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
486         * fr30.h (DBX_REGISTER_NUMBER): Likewise.
487         * h8300.h (DBX_REGISTER_NUMBER): Likewise.
488         * i370.h (DBX_REGISTER_NUMBER): Likewise.
489         * i860.h (DBX_REGISTER_NUMBER): Likewise.
490         * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
491         * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
492         * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
493         * m32r.h (DBX_REGISTER_NUMBER): Likewise.
494         * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
495         * m88k.h (DBX_REGISTER_NUMBER): Likewise.
496         * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
497         * mcore.h (DBX_REGISTER_NUMBER): Likewise.
498         * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
499         * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
500         * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
501         * romp.h (DBX_REGISTER_NUMBER): Likewise.
502         * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
503         * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
504         * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
505         * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
506         * v850.h (DBX_REGISTER_NUMBER): Likewise.
507         * vax.h (DBX_REGISTER_NUMBER): Likewise.
508         * we32k.h (DBX_REGISTER_NUMBER): Likewise.
509
510         * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
511         * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
512
513 2001-11-21  H.J. Lu <hjl@gnu.org>
514
515         * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
516
517 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
518
519         * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
520         emit_cmp_and_jump_insns.
521
522         * stormy16.c (xstormy16_expand_builtin_va_arg,
523         xstormy16_expand_casesi): Likewise.
524
525 Wed Nov 21 17:37:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
526
527         * function.c (keep_stack_depressed): Major rework.
528         (handle_epilogue_set, emit_equiv_load): New functions.
529         (thread_prologue_and_epilogue_insns): keep_stack_depressed now
530         has return value.
531         * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
532         * rtl.h (SET_IS_RETURN_P): New macro.
533
534         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
535         and also support TREE_ADDRESSABLE.
536         * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
537
538 2001-11-21  David Edelsohn  <edelsohn@gnu.org>
539
540         * rs6000.md (cmptf_internal1): Replace %$ with $.
541
542 Wed Nov 21 16:44:01 2001  Douglas B. Rupp  <rupp@gnat.com>
543
544         * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
545         (read_include_file): Use STAT_SIZE_TOO_BIG.
546
547         * cppinit.c (INO_T_COPY): Define.
548         (INO_T_EQ): Uppercase parameters.
549         (append_include_chain): Use INO_T_COPY.
550
551 2001-11-21  Richard Sandiford  <rsandifo@redhat.com>
552
553         * cfg.c: Fix typos and formatting in the introductory comment.
554
555 Wed Nov 21 12:38:37 CET 2001  Jan Hubicka
556
557         * profile.c (compute_branch_probabilites):  Compute probabilities
558         for entry/exit edges; estimate probabilities for zero counts.
559
560 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
561
562         * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
563         to emit_library_call.
564         * function.c (expand_main_function, expand_function_start,
565         expand_function_end): Likewise.
566         * profile.c (output_func_start_profiler): Likewise.
567         * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
568         second argument to emit_library_call.
569         * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
570         as second argument to emit_library_call.
571         * calls.c (emit_library_call): Update fn_type description.
572
573 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
574
575         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
576         if fndecl is still DECL_INLINE and has DECL_RESULT.
577
578 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
579
580         * clipper.c (clipper_movstr): Avoid uninitialized warning.
581         * i960.c (is_mask, legitimize_address): Likewise.
582         * m88k.c (m88k_expand_prologue): Likewise.
583         * m88k.md: Likewise.
584         * mcore.c (emit_new_cond_insn): Likewise.
585         * stormy16.c (xstormy16_emit_cbranch): Likewise.
586
587 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
588
589         * config.gcc: Delete powerpcle-*-solaris2* stanza.
590         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
591         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
592         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
593         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
594         config/rs6000/t-ppcos: Expunge all references to Solaris.
595
596         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
597
598         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
599         output templates.
600         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
601         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
602
603 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
604
605         * sh.md: Avoid uninitialized warnings.
606         * vax.c (vax_rtx_cost): Likewise.
607
608 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
609
610         * rs6000.c (direct_return): Check if we are saving altivec
611         registers.
612         (first_altivec_reg_to_save): New.
613         Updated stack frame layout comments.
614         (rs6000_stack_info): Calculate altivec register save size.
615         Save link register if we saved some altivec registers.
616         (rs6000_stack_info): Align save size to 16 if altivec abi or
617         abi_darwin.
618         (rs6000_stack_info): Calculate altivec register offsets.
619         (rs6000_stack_info): Add altivec info to save_size.
620         (debug_stack_info): Add altivec debug info.
621         (rs6000_emit_prologue): Save altivec registers and vrsave.
622         (compute_vrsave_mask): New.
623         (altivec_expand_builtin): Remove unused variables.
624         (rs6000_parse_abi_options): Add static qualifier.
625         (rs6000_expand_builtin): Remove unused parameters.
626         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
627         (altivec_init_builtins): Same.
628         (is_altivec_return_reg): New.
629         (vrsave_operation): New.
630         (ALTIVEC_REG_BIT): New.
631         (generate_set_vrsave): New.
632
633         * rs6000.md (get_vrsave): New.
634         (set_vrsave): New.
635         (*set_vrsave_internal): New.
636
637         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
638         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
639         altivec_padding_size, vrsave_mask.
640         (TOTAL_ALTIVEC_REGS): New.
641         (EPILOGUE_USES): Add VRSAVE_REGNO.
642
643 2001-11-20  Jeff Law <law@redhat.com>
644
645         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
646         exit label as necessary.
647
648 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
649
650         * reload1.c (elimination_effects): Use function_invariant_p
651         instead of CONSTANT_P when considering register equivalences.
652
653 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
654
655         * config.gcc: Add FreeBSD/PowerPC target.
656         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
657         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
658         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
659         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
660         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
661         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
662         freebsd-spec.h to tm_file.
663         (rs6000-*-lynxos*): Add lynx.h to tm_file.
664         * config/freebsd.h: Tidy up.
665         (USING_CONFIG_FREEBSD): Define.
666         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
667         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
668         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
669         (TARGET_HAS_F_SETLKW): Define.
670         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
671         * config/freebsd-spec.h: New file.
672         * config/rs6000/freebsd.h: New file.
673         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
674         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
675         USING_SVR4_H to know when to turn on ELF support.
676         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
677         define only if not already defined.
678         Add FreeBSD support.
679         * config/rs6000/aix.h (TARGET_VERSION): Define.
680         * config/rs6000/beos.h: Likewise.
681         * config/rs6000/darwin.h: Likewise.
682         * config/rs6000/mach.h: Likewise.
683         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
684         Don't include lynx.h directly.
685
686 2001-11-20  Graham Stott  <grahams@redhat.com>
687
688         * unwind-dw2-fde.c (__deregister_frame_info_bases):
689         Fix lossage in last change return OB.
690
691 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
692
693         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
694         Remove unneeded exit related macros.
695
696 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
697
698         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
699
700         * rs6000.c (rs6000_emit_move): Add TFmode case.
701         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
702         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
703         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
704         * rs6000.h: ... to here.
705         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
706         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
707         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
708
709 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
710
711         * emit-rtl.c (get_mem_attrs): Fix typo.
712
713 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
714
715         * c-lang.c (finish_file): Backout 2001-11-16
716         changes, instead set DECL_DEFER_OUTPUT for static inline functions
717         before calling c_expand_deferred_function.
718
719 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
720
721         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
722         Don't register empty .eh_frame sections.
723         (__deregister_frame_info_bases, __deregister_frame): Don't
724         unregister them either.
725
726 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
727
728         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
729         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
730         * configure: Regenerate.
731         * config.in: Add dummy definitions of new flags.
732         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
733         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
734         * gcc.c (ASM_DEBUG_SPEC): New macro.
735         (asm_debug): New static variable.
736         (default_compilers): Add asm_debug when assembling from
737         user input.
738         (static_specs): Add asm_debug.
739
740 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
741
742         * config.gcc (*-*-freebsd*): Remove configuration block.
743
744 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
745
746         bootstrap/4422
747         * configure.in: Setup ability to run ./stage[1234]/xgcc in
748         fixinc *as if* it were a proper lang subdirectory.
749         * configure: Rebuilt.
750
751 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
752
753         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
754
755 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
756
757         * 1750a.md: Don't use hex format for a const_int.
758
759 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
760
761         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
762
763 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
764
765         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
766         defined (prevents link errors when gettext isn't in the system
767         library).
768
769 2001-11-19  DJ Delorie  <dj@redhat.com>
770
771         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
772         (validate_const_int): New.
773         (read_rtx): Validate constant integers.
774         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
775
776 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
777
778         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
779
780 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
781
782         * toplev.c (DUMPFILE_FORMAT): Define default.
783         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
784         (close_dump_file, compile_file): Likewise.
785         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
786         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
787
788 2001-11-19  Jeff Law <law@redhat.com>
789
790         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
791         a nop-jump.
792
793 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
794
795         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
796         Don't fall off the base token run.
797
798 2001-11-19  Jason Wilkins <fenix@io.com>
799
800         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
801
802 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
803
804         * tree.def (VIEW_CONVERT_EXPR): New tree code.
805         * tree.h (handled_component_p): New declaration.
806         * alias.c (handled_component_p): Move function from here ...
807         * expr.c (handled_component_p): ... to here and non longer static.
808         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
809         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
810         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
811         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
812         (expand_expr, case VIEW_CONVERT_EXPR): New case.
813         (expand_expr, cse ADDR_EXPR): No need to copy if already
814         BIGGEST_ALIGNMENT.
815         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
816         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
817         (output_constant): Handle VIEW_CONVERT_EXPR.
818         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
819         Add new case for VIEW_CONVERT_EXPR.
820
821 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
822
823         * a29k/unix.h (ASM_FILE_START): Const-ify.
824         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
825         * i386/isc.h (ASM_FILE_START): Const-ify.
826         * i386/sun386.h (ASM_FILE_START): Likewise.
827         * m32r.md: Likewise.
828         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
829         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
830         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
831         * mn10200.md: Initialize variable.
832
833 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
834
835         * gcse.c (try_replace_reg): Copy RTX before creating note.
836
837         * df.h (df_ref_flags): New uenum.
838         (DF_REF_FLAGS): New macro.
839         (struct ref): Add field "flags".
840         * df.c (HANDLE_SUBREG): Remove.
841         (df_ref_create): Likewise; set flags field of ref.
842         (df_def_record_1): Strip down read_write subreg; remove
843         commented out code; set READ_WRITE flag.
844         (read_modify_subreg_p): New static function.
845         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
846         new argument "flags".
847         (df_insn_refs_record): Update call of df_uses_record.
848         (df_insn_modify): Avoid #if 0 around comment.
849         (df_dump): Dump the read/write flag.
850
851         * predict.c (propagate_freq): Make cyclic_probability and frequency
852         volatile
853
854         * i386.c (ix86_cc_mode): Accept USE.
855
856         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
857         jump is turned into simplejump.
858
859 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
860
861         * doc/fragments.texi, doc/trouble.texi: Remove links to old
862         installation chapter.
863         * doc/gcc.texi: Don't claim that this manual documents
864         installation.  Mark Installation menu entry as being out of date.
865
866 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
867
868         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
869         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
870         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
871
872 2001-11-19  Jason Merrill  <jason@redhat.com>
873
874         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
875         cur_token, not after.
876
877         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
878         Lose ASM_OUTPUT_CONSTRUCTOR.
879         * system.h: Poison it and INT_ASM_OP.
880         * c-lang.c (finish_file): Don't check for it.
881         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
882
883 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
884
885         * mmix.c (mmix_cc1_ignored_option): Const-ify.
886         (mmix_init_machine_status): Make static to match declaration.
887         (mmix_unique_section): Const-ify.
888         (mmix_output_quoted_string): Avoid automatic aggregate
889         initialization.
890         (mmix_output_register_setting): Likewise.
891         (mmix_output_shiftvalue_op_from_str): Likewise.
892
893         * mmix.h (mmix_cc1_ignored_option): Const-ify.
894         (ASM_OUTPUT_BYTE): Fix format specifier warning.
895         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
896
897 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
898
899         PR c/4448
900         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
901         name __objc_thread_exit_status so that it matches the
902         variable defined in objc/thr.h.
903
904 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
905
906         PR bootstrap/4020
907         * mklibgcc.in: Add missing semi-colons.
908         * Makefile.in: Same.
909
910 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
911
912         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
913         after re-laying out decl in incomplete case.
914         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
915
916 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
917
918         * doc/install-old.texi: Move some sections out to ...
919         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
920         ... here.  New files.  Make into chapters rather than sections.
921         * doc/gcc.texi: Include the new files and add menu entries for
922         them.
923         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
924
925 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
926
927         * tree.h (TYPE_ALIGN_OK): New flag.
928         * emit-rtl.c (set_mem_attributes): Handle it.
929         * expr.c (emit_single_push_insn): Only set to alias set 0 if
930         doing sibcall optimization.
931         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
932         when make temporary.
933         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
934         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
935
936         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
937
938 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
939
940         * c-decl.c (c_decode_option): Give deprecation warning for
941         -traditional.
942         * doc/invoke.texi (-traditional): Note that this option is
943         deprecated.
944
945 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
946
947         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
948         arg to HOST_WIDE_INT, not long.
949
950         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
951         (HAS_INIT_SECTION): Define.
952         (REAL_ARITHMETIC): Don't undefine.
953
954 2001-11-18  Egor Duda  <deo@logos-m.ru>
955
956         * config/i386/cygwin.h: Strip leading '*' from name, if any.
957
958 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
959
960         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
961         * c-common.c: Include diagnostic.h.
962         (c_common_finish): New.
963         * c-common.h (c_common_finish): New.
964         * c-lang.c (LANG_HOOKS_FINISH): Override.
965         * c-parse.in: Don't include diagnostic.h.
966         (finish_parse): Remove.
967         * langhooks.h: Update comments.
968         * toplev.c (lang_dependent_init): New prototype.
969         (finalize): New.
970         (compile_file): Split cleanup code out to finalize.
971         (lang_dependent_init): Stop if lang_hooks.init fails.
972         (toplev_main): Update.
973         * tree.h (finish_parse): Remove.
974 objc:
975         * objc-act.c (LANG_HOOKS_FINISH): Override.
976
977 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
978
979         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
980         * config/alpha/vms_tramp.asm: New file.
981         * config/alpha/vms-tramp.asm: Removed.
982
983 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
984
985         * c-common.c (struct disabled_builtin, disabled_builtins,
986         disable_builtin_function, builtin_function_disabled_p): New.
987         (builtin_function_2): Check for disabled built-in functions.
988         * c-common.h (disable_builtin_function): Declare.
989         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
990         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
991         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
992
993 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
994
995         PR target/4606
996         * config.gcc: Remove reference to va-clipper.h.
997
998 2001-11-17  Stan Shebs  <shebs@apple.com>
999
1000         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
1001         AltiVec-related bitfields.
1002
1003 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1004
1005         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
1006         (mark_eh_region, case ERT_UKNONW): New case.
1007
1008 2001-11-17  Christopher Faylor  <cgf@redhat.com>
1009             Corinna Vinschen  <vinschen@redhat.com>
1010
1011         * config/i386/cygwin.h: Search target specific include directory for
1012         w32api stuff, if appropriate.
1013
1014 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
1015
1016         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
1017
1018 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
1019
1020         * config/rs6000/rs6000.md: Change all ldvx to lvx.
1021
1022 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
1023
1024         * gensupport.c (process_rtx): Don't assume filename is the first
1025         argument of any rtl.
1026
1027 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1028
1029         * vax-protos.h (reg_was_0_p): New prototype.
1030         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
1031         * vax.c (follows_p, reg_was_0_p): New functions.
1032
1033 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1034
1035         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
1036         (casesi1): Likewise.  Define new pattern which arises by simplification
1037         when operand 1 is a constant int.  Correct pattern which arises by
1038         simplification when operand 1 is zero.
1039
1040 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
1041
1042         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
1043         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
1044         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
1045         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
1046         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
1047         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
1048         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
1049         * config/arm/aof.h: Don't include arm.h.
1050         * config/arm/aout.h: Likewise.
1051         * config/arm/coff.h: Don't include semi.h and aout.h.
1052         * config/arm/elf.h: Don't include aout.h.
1053         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
1054         (TARGET_VERSION): Undef before defining.
1055         (ARM_OS_NAME): Likewise
1056         (TARGET_DEFAULT): Likewise
1057         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
1058         * config/arm/pe.h: Don't include arm/coff.h.
1059         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
1060         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
1061         * config/arm/riscix1-1.h: Likewise.
1062         * config/arm/rix-gas.h: Don't include riscix.h.
1063         (DBX_CONTIN_LENGTH): Undef before defining.
1064         * config/arm/semi.h: Don't include aout.h.
1065         * config/arm/semiaof.h: Don't include aof.h.
1066         * config/arm/strongarm-coff.h: Don't include coff.h.
1067         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
1068         * config/arm/vxarm.h: Don't include arm/coff.h.
1069         * config/arm/xscale-coff.h: Don't include coff.h.
1070
1071 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1072
1073         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
1074         emit_cmp_insn.
1075
1076 2001-11-16  Andreas Jaeger  <aj@suse.de>
1077
1078         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
1079         to ....
1080         (fixup_fallthru_exit_predecessor): ... this.
1081         Change callers and prototype.
1082
1083 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
1084
1085         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
1086         hand; don't use gen_setcc_2.
1087         (ix86_expand_builtin): Fix pshufw.
1088         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
1089         case UNORDERED to emit the right assembler instruction.
1090         (mmx_pshufw): Lose operand 2.
1091         (cvtsi2ss): Fix representation.
1092         From Graham Stott:
1093         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
1094
1095 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
1096
1097         * doc/include/linux-and-gnu.texi: Remove.
1098         * doc/gnu.texi: New.
1099         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
1100         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1101
1102 2001-11-16  Kazu Hirata  <kazu@hxi.com>
1103
1104         * config/a29k/a29k.c: Fix comment formatting.
1105         * config/a29k/a29k.h: Likewise.
1106         * config/arc/arc.c: Likewise.
1107         * config/arc/arc.h: Likewise.
1108         * config/vax/vax.c: Likewise.
1109         * config/vax/vax.h: Likewise.
1110         * config/we32k/we32k.c: Likewise.
1111         * config/we32k/we32k.h: Likewise.
1112
1113 2001-11-16  Jeff Law  <law@redhat.com>
1114
1115         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
1116         creating a new jump insn.
1117
1118 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1119
1120         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
1121         copy misaligned data.
1122         * varasm.c (assemble_variable): Set alignment into MEM when changed.
1123
1124 2001-11-16  Graham Stott  <grahams@redhat.com>
1125
1126         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
1127         OPALIGN type.
1128
1129 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
1130
1131         * except.c: Support for catching a list of types with a single handler
1132         (struct eh_region): Change type and filter to lists for catch regions.
1133         (mark_eh_region): Mark the filter list for GC also.
1134         (expand_start_catch): Always build a list if argument not NULL and
1135         register each type of the list through add_type_for_runtime.
1136         (duplicate_eh_region_1): Change type into type_list for catch regions.
1137         (assign_filter_values): Assign a filter to each type associated with a
1138         catch region. Assign filter for NULL types in a unique entry in the
1139         filter list.
1140         (build_post_landing_pads): Emit compare and jump for each filter of
1141         the list associated with a catch region.
1142         (reachable_next_level): When the type thrown is known, stop the search
1143         as soon as one type within a catch list matches. Also, a handler is
1144         potentially reachable only if at least one of the types it catches
1145         has not been previously caught.
1146         (collect_one_action_chain): Retrieve the filter for a NULL type list
1147         from the first filter list entry. For non NULL type lists, add an
1148         action record for every filter assigned.
1149         * except.h: Reflect changes in comment before expand_start_catch.
1150
1151 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1152
1153         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
1154         BLKmode.
1155
1156 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
1157
1158         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
1159
1160 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
1161
1162         * c-lang.c (finish_file): Don't emit static inline functions if
1163         they weren't referenced.
1164
1165 2001-11-15  Stan Shebs  <shebs@apple.com>
1166
1167         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
1168
1169 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1170
1171         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
1172         call.
1173         * config/i386/i386.md: Likewise.
1174
1175 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1176
1177         * timevar.c (rtl.h): Include so get fancy abort.
1178
1179 2001-11-15  Dale Johannesen  <dalej@apple.com>
1180
1181         * config/darwin.h (SELECT_RTX_SECTION):  Force address
1182         initializers into 'const' section
1183         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
1184         if_then_else to match result, not operands
1185
1186 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1187
1188         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
1189         * emit-rtl.c (change_address): Fix typo in default alignment.
1190         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
1191         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
1192         * rtl.h (REGNO_PTR_FRAME_P): New macro.
1193
1194         * expr.c (store_field): Pass tree instead of max size; callers changed.
1195         Change handling of alignment.
1196         Only copy to_rtx if is TARGET.
1197         (expand_expr_unaligned): Delete; callers now use expand_expr.
1198         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
1199         (expand_assignment): Change handling of alignment.
1200         Only copy to_rtx if was original.
1201         (get_inner_reference): No longer return alginment; callers changed.
1202         (expand_expr, case COMPONENT_REF): Change handling of alignment.
1203         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
1204         (compare_from_rtx): Delete ALIGN parm; all callers changed.
1205         (do_compare_rtx_and_jump): Likewise.
1206         * expr.h: Reflect above changes.
1207         * tree.h: Likewise.
1208         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
1209         to get_inner_reference.
1210         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
1211         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
1212         * optabs.c: Likewise.
1213         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
1214         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
1215         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
1216         compare_rtx_and_jump, and emit_cmp_jump_insns.
1217         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
1218         * function.c (assign_stack_temp_for_type): No longer static.
1219         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
1220         (prepare_cmp_insn): Delete declaration.
1221         * rtl.h (assign_stack_temp_for_type): Add declaration.
1222         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
1223         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
1224         * config/i386/i386.c,config/mips/mips.c: Likewise.
1225         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
1226         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
1227
1228 2001-11-15  Stan Shebs  <shebs@apple.com>
1229
1230         * config/rs6000/rs6000.h: Fix a comment typo.
1231         (RTX_COSTS): Sort processor versions better.
1232
1233 2001-11-15  Kazu Hirata  <kazu@hxi.com>
1234
1235         * config/h8300/h8300.md: Fix insn length of bit insns.
1236
1237 2001-11-15  Jason Merrill  <jason@redhat.com>
1238
1239         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
1240         DIEs if there were errors in the source.
1241
1242         * config/alpha/alpha-interix.h, config/alpha/elf.h,
1243         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
1244         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
1245         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
1246         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
1247         config/elfos.h, config/lynx.h, config/netware.h,
1248         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
1249         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
1250         uses to use ASM_LONG.
1251
1252 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
1253
1254         * gensupport.c  process_include : Change call to alloca to
1255         xmalloc.
1256
1257 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
1258
1259         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
1260         templates.
1261
1262 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1263
1264         * final.c (alter_subreg): If simplify_subreg can't do anything,
1265         handle REG ourselves and abort for others.
1266
1267 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
1268
1269         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
1270         routines.
1271
1272 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1273
1274         * fix-header.c (read_scan_file): Update.
1275
1276 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1277
1278         * toplev.c (toplev_main): Don't start timing until after
1279         command-line options are parsed.
1280
1281 2001-11-15  Andreas Schwab  <schwab@suse.de>
1282
1283         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
1284         makefile frag, not host makefile frag.
1285         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
1286         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
1287         used.
1288         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
1289         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
1290         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
1291         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
1292         * config/i386/t-dgux (STMP_FIXPROTO): Define.
1293         * config/x-interix: Don't define STMP_FIXPROTO and
1294         FIXPROTO_DEFINES.
1295         * config/t-interix: New file, define STMP_FIXPROTO.
1296         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
1297         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
1298         * config/t-svr4 (FIXPROTO_DEFINES): Define.
1299         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
1300         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
1301         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
1302         * config/m68k/t-hp3200: Renamed from x-hp3200.
1303         * config/i370/t-oe: Renamed from x-oe.
1304         * config/mips/t-iris: Renamed from x-iris.
1305         * config/pa/t-bsd: Renamed from x-pa.
1306         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
1307         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
1308         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
1309         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
1310         config/rs6000/x-cygwin: Remove files.
1311
1312         * configure.in: Check for target objdump and use that in eh_frame
1313         optimization test.
1314         * configure: Regenerated.
1315
1316 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
1317
1318         * jump.c (squeeze_notes): Return true if no real insns were found.
1319         * rtl.h (squeeze_notes): Adjust prototype.
1320         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
1321         squeeze_notes finds no real instructions, abort.
1322         (merge_blocks_move_successor_nojumps): Likewise.
1323         * loop.c (find_and_verify_loops): Likewise.
1324         * stmt.c (expand_end_case): Likewise.
1325         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
1326         find any real instructions.
1327
1328         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
1329
1330         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
1331         conditional jump, request updating life into for the block
1332         containing it.  Fix a typo which prevented life info update.
1333         Clear blocks bitmap before using it.
1334
1335 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1336
1337         * c-common.c: Include c-lex.h.
1338         (c_common_lang_init): Change prototype.  Call init_c_lex and
1339         init_pragma from here.
1340         * c-common.h (c_common_lang_init): Change prototype.
1341         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
1342         * c-lang.c (c_init): Change prototype.  Update.
1343         (c_init_options): Update.
1344         * c-lex.c (cpp_filename): Remove.
1345         (init_c_lex): Update.  Read the main file, and get the original
1346         file name.
1347         (yyparse): Finish the command line options.
1348         * c-parse.in (c_parse_init): Call init_reswords here.
1349         (init_parse): Remove.
1350         * c-tree.h (c_init_decl_processing): New.
1351         * cpphash.c (_cpp_init_hashtable): After initializing the hash
1352         table, populate it.
1353         * cppinit.c (read_original_filename, cpp_finish_options): New.
1354         (cpp_create_reader): New prototype. Defer hash table initialization.
1355         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
1356         hash table.  Get the original filename.
1357         * cpplib.h (cpp_create_reader): Update.
1358         (cpp_start_read): Remove.
1359         (cpp_read_main_file, cpp_finish_options): New.
1360         * cppmain.c (main, do_preprocessing): Update.
1361         * langhooks.h (struct langhooks): Update init prototype.
1362         * toplev.c (general_init, parse_options_and_default_flags,
1363         process_options, lang_indpendent_init, lang_dependent_init,
1364         init_asm_output): New; perform the bulk of initialization.
1365         (compile_file): Move most of initialization to above functions.
1366         (debug_hooks): Initialize statically.
1367         (set_Wunused): Relocate.
1368         (toplev_main): Move most of initialization to other init functions.
1369         Have a clear logic flow.
1370         * tree.h (init_parse, init_decl_processing): Remove.
1371 objc:
1372         * objc-act.c (objc_init): Update prototype, combine with old
1373         init_parse.
1374         (objc_init_options): Update.
1375
1376
1377 2001-11-15  Andreas Jaeger  <aj@suse.de>
1378
1379         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
1380         portability.
1381         * basic-block.h: Adjust prototype.
1382
1383 2001-11-15  Kazu Hirata  <kazu@hxi.com>
1384
1385         * config/rs6000/aix31.h: Fix comment formatting.
1386         * config/rs6000/beos.h: Likewise.
1387         * config/rs6000/darwin.h: Likewise.
1388         * config/rs6000/eabi.asm: Likewise.
1389         * config/rs6000/linux.h: Likewise.
1390         * config/rs6000/linux64.h: Likewise.
1391         * config/rs6000/lynx.h: Likewise.
1392         * config/rs6000/netbsd.h: Likewise.
1393         * config/rs6000/rs6000.c: Likewise.
1394         * config/rs6000/rs6000.h: Likewise.
1395         * config/rs6000/rs6000.md: Likewise.
1396         * config/rs6000/sol2.h: Likewise.
1397         * config/rs6000/tramp.asm: Likewise.
1398         * config/rs6000/xcoff.h: Likewise.
1399         * config/rs6000/xm-beos.h: Likewise.
1400
1401 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
1402
1403         * rtl.def (INCLUDE) : Define.
1404         * gensupport.c  (init_include_reader, process_include,
1405         save_string) :  New functions to implement an include facility
1406         in .md files.
1407         * gensupport.h : Add prototype for init_md_reader_args.
1408         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
1409         genextract.c genflags.c genopinit.c genoutput.c
1410         genpeep.c genrecog.c: Change call to init_md_reader to
1411         init_md_reader_args.
1412         * md.texi: Document (include "path") and -I directives for RTL
1413         generation tools.
1414
1415 2001-11-14  DJ Delorie  <dj@redhat.com>
1416
1417         * integrate.c (get_hard_reg_initial_reg): New.
1418         * integrate.h (get_hard_reg_initial_reg): Prototype.
1419         * local-alloc.c (block_alloc): Don't tie pseudos that
1420         represent call-saved hard regs' initial values.
1421
1422 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1423
1424         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
1425         recursion.
1426
1427 2001-11-14  Roger Sayle <roger@eyesopen.com>
1428
1429         * fold-const.c (fold): Optimize strlen comparisons against zero.
1430
1431 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
1432
1433         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
1434         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
1435         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
1436         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
1437         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
1438         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
1439         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
1440         Include various CPU headers via tm_file.  a.out based platforms now
1441         properly include sparc/aout.h.  sol2.h usage now implies including
1442         elfos.h, svr4.h, and sparc/sysv4.h.
1443         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
1444         Also define to '1'.
1445         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
1446         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
1447         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
1448         Remove.  They are a.out specific and belong in sparc/aout.h.
1449         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
1450         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
1451         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
1452         sparc/sparc.h.
1453         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
1454         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
1455         Moved here from sparc/sparc.h.
1456         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
1457         defining.
1458         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
1459         * config/sparc/lynx.h:  Don't include lynx.h.
1460         (SELECT_SECTION): Do not undef.
1461         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
1462         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
1463         and sparc/sysv4.h.
1464         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
1465         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
1466         sparc/aout.h now.
1467         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
1468         Don't undef, there is no need.
1469         * config/sparc/splet.h (CPP_PREDEFINES): Define.
1470         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
1471         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
1472         Don't include sparc/sparc.h.
1473         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
1474         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
1475         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
1476         elfos.h and svr4.h.
1477         (TARGET_VERSION): Define.
1478         * config/sparc/vxsim.h (TARGET_VERSION): Define.
1479
1480 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
1481
1482         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
1483         (cfg_layout_finalize): Use it.
1484         * bb-reorder.c (HAVE_epilogue): Remove.
1485         (make_reorder_chain): Do not care special placement of
1486         last basic block.
1487
1488         * predict.c (expected_value_to_br_prob): Delete the note
1489         once transformed.
1490
1491         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
1492         measure integration time separately.
1493
1494 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1495
1496         * function.c (struct temp_slot): ALIGN now unsigned.
1497
1498 2001-11-14  Kazu Hirata  <kazu@hxi.com>
1499
1500         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
1501         * config/dsp16xx/dsp16xx.h: Likewise.
1502         * config/dsp16xx/dsp16xx.md: Likewise.
1503
1504 2001-11-14  Kazu Hirata  <kazu@hxi.com>
1505
1506         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
1507         that deals with 7-bit shifts in HImode.
1508
1509 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
1510
1511         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
1512         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
1513         (final_scan_insn): Update call of alter_subreg.
1514         (cleanup_subreg_operands): Likewise.
1515         (alter_subreg): Rewrite using simplify_subreg.
1516         (output_address, output_operand): Update call of alter_subreg.
1517         * output.h (alter_subreg): Update prototype.
1518         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
1519         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
1520         * Makefile.in (final.o): Add dependency on expr.h
1521
1522 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1523
1524         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
1525
1526 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
1527
1528         * doc/install.texi (sparc-*-linux*): Mention requirements for
1529         binutils and glibc.
1530
1531 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
1532
1533         * Makefile.in (POD2MAN): Don't include --section=1.
1534         (manext): Rename to man1ext.  All users changed.
1535         (man7ext): New.
1536         (man7dir): New.
1537         (generated-manpages): Also depend on $(docdir)/gfdl.7,
1538         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
1539         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
1540         --section=1 in calls to $(POD2MAN).
1541         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
1542         (maintainer-clean, install, uninstall): Handle the new man pages.
1543         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
1544         (installdirs): Create man7dir.
1545         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
1546         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
1547         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
1548         the SEE ALSO man page section.
1549         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
1550         and fsf-funding(7) in the SEE ALSO man page section.
1551         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
1552         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
1553         * doc/include/fdl.texi, doc/include/funding.texi,
1554         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
1555         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
1556
1557 2001-11-13  Richard Henderson  <rth@redhat.com>
1558
1559         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
1560         as appropriate for the artificial decl.
1561
1562 2001-11-13  Richard Henderson  <rth@redhat.com>
1563
1564         * loop.c (combine_movables): Turn off combination until
1565         move_movables validation bugs are fixed.
1566
1567 2001-11-13  DJ Delorie  <dj@redhat.com>
1568
1569         * config.gcc (powerpc|rs6000): Set default cpp options based
1570         on --with-cpu settings.
1571         * config/rs6000/softfloat.h: New.
1572
1573 2001-11-13  Kazu Hirata  <kazu@hxi.com>
1574
1575         * config/h8300/h8300.c (shift_alg_si): Use special code for
1576         25-bit shifts on H8/S.
1577         (get_shift_alg): Generate special code for 25-bit shifts on
1578         H8/S.
1579
1580 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
1581
1582         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
1583         (adjust_automodify_address_1): New.
1584         * expr.h (adjust_address, adjust_address_nv): Adjust.
1585         (adjust_automodify_address, adjust_automodify_address_nv): Define.
1586         (adjust_address_1): Update prototype.
1587         (adjust_automodify_address_1): Add prototype.
1588         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
1589         (store_by_pieces_2): Likewise.
1590
1591 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1592
1593         * Makefile.in (explow.o): Now depends on ggc.h.
1594         * explow.c (ggc.h): Include.
1595         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
1596
1597         * Makefile.in (expr.o): Depends on insn-attr.h.
1598         * expr.c (insn-attr.h): New include.
1599         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
1600         of MEM.
1601         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
1602         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
1603         clean up related usage in ADDR_EXPR.
1604         (expand_expr_unaligned): Likewise.
1605
1606         * emit-rtl.c (change_address): Fix typo in alias setting.
1607
1608 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1609
1610         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
1611
1612 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1613
1614         PR bootstrap/3451
1615         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
1616         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
1617
1618 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
1619
1620         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
1621         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
1622         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
1623         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
1624         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
1625         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
1626         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
1627         sparc64-*-linux*):  Include various CPU headers via tm_file.
1628         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
1629         (SELECT_SECTION): Likewise.
1630         (SELECT_RTX_SECTION): Likewise.
1631         * config/sparc/sparc_bi.h: New file.
1632         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
1633         * config/sparc/linux-aout.h: Likewise.
1634         * config/sparc/linux.h: Don't include sparc/sysv4.h.
1635         * config/sparc/linux64.h: Likewise.
1636         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
1637         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
1638         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
1639         and dbxcoff.h
1640         (ASM_OUTPUT_IDENT): Do not #undef.
1641         (SELECT_SECTION): Likewise.
1642         (SELECT_RTX_SECTION): Likewise.
1643         * config/sparc/liteelf.h: Don't include gofast.h.
1644         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
1645         * config/sparc/lynx.h: Don't include sparc/sparc.h.
1646         * config/sparc/pbd.h: Likewise.
1647         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
1648         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
1649         * config/sparc/rtemself.h: Don't include rtems.h.
1650         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
1651         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
1652         sparc_bi.h instead.
1653         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
1654         * config/sparc/sol2.h: Include sparc/sparc.h directly.
1655         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
1656         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
1657         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
1658         * config/sparc/sp86x-elf.h: Don't include gofast.h.
1659         * config/sparc/splet.h: Don't include sparc/aout.h.
1660         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
1661         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
1662         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
1663         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
1664         * config/sparc/vxsparc64.h: Don't include gofast.h.
1665         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
1666
1667 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
1668
1669         * doc/standards.texi: Mention C99 TC1.
1670
1671 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1672
1673         * mips-protos.h (mips_output_conditional_branch): Const-ify.
1674         * mips.c (mips_output_conditional_branch): Likewise.
1675
1676 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1677
1678         * config/h8300/h8300.c (shift_alg_si): Use special code for
1679         15-bit logical shifts and 31-bit logical shifts.
1680         (get_shift_alg): Generate special code for 15-bit and 31-bit
1681         logical shifts.
1682
1683 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1684
1685         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
1686         doing 6-bit logical shifts on H8/S.
1687         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
1688         (get_shift_alg): Generate special code for 21-bit shifts on
1689         H8/S.
1690
1691 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1692
1693         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
1694         label.
1695
1696 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1697
1698         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
1699         if both size and offset known.
1700
1701 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
1702
1703         * config/ia64/freebsd.h: Fix misspelling.
1704
1705 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
1706
1707         * doc/gcc.texi: Move several chapters out to ...
1708         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
1709         doc/include/linux-and-gnu.texi, doc/interface.texi,
1710         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
1711         ... here.  New files.
1712         * doc/gcc.texi, doc/contrib.texi: Move section headings into
1713         contrib.texi.
1714         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1715
1716 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1717
1718         * config/alpha/alpha-interix.h: Fix comment formatting.
1719         * config/alpha/alpha.c: Likewise.
1720         * config/alpha/alpha.h: Likewise.
1721         * config/alpha/alpha32.h: Likewise.
1722         * config/alpha/freebsd.h: Likewise.
1723         * config/alpha/unicosmk.h: Likewise.
1724         * config/alpha/vms.h: Likewise.
1725
1726 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1727
1728         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1729
1730 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
1731
1732         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
1733         numbers.
1734
1735 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1736
1737         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
1738         from type.
1739         (replace_equiv_address): Call update_temp_slot_address.
1740
1741         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
1742
1743         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
1744
1745 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1746
1747         * config/h8300/h8300.c (shift_alg_qi): New.
1748         (shift_alg_hi): Likewise.
1749         (shift_alg_si): Likewise.
1750         (get_shift_alg): Change the type of count to unsigned int.
1751         Use the tables.
1752
1753 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
1754
1755         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
1756         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
1757         to decide whether to defer a function.
1758         (finish_function): Adjust.
1759         (c_expand_deferred_function): New function.
1760         * c-lang.c (deferred_fns): New variable.
1761         (c_init): Initialize it, and mark it as a root.
1762         (defer_fn): New function.
1763         (finish_file): Expand all deferred functions.
1764         * c-tree.h (defer_fn): Declare.
1765         (c_expand_deferred_function): Likewise.
1766         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
1767         * objc-act.c (deferred_fns): New variable.
1768         (objc_init): Initialize it, and mark it as a root.
1769         (defer_fn): New function.
1770         (finish_file): Expand all deferred functions.
1771
1772 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1773
1774         * alpha.c (unicosmk_special_name): Prototype.
1775         (unicosmk_ssib_name): Delete unused variable.
1776         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
1777         * alpha/vms.h (PREFIX): Undef before defining.
1778         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
1779         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
1780         controlling usage.  Const-ify.
1781         (alias_number): Delete unused variable.
1782         * m32r/m32r.c (m32r_sched_init): Add missing argument.
1783         (m32r_expand_block_move): Fix uninitialized warnings.
1784         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
1785         always true' warnings.
1786         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
1787         * sh/sh.c: Include "integrate.h".
1788         (output_far_jump): Fix uninitialized warning.
1789         * final.c (shorten_branches): Avoid automatic aggregate
1790         initialization.
1791         * integrate.c (subst_constants): Likewise.
1792
1793 2001-11-11  Kazu Hirata  <kazu@hxi.com>
1794
1795         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
1796         (get_shift_alg): Remove redundant code.
1797
1798 2001-11-11  Kazu Hirata  <kazu@hxi.com>
1799
1800         * config/pa/milli64.S: Fix comment formatting.
1801         * config/pa/pa-64.h: Likewise.
1802         * config/pa/pa-linux.h: Likewise.
1803         * config/pa/pa-protos.h: Likewise.
1804         * config/pa/pa.c: Likewise.
1805         * config/pa/pa.h: Likewise.
1806         * config/pa/pa32-linux.h: Likewise.
1807         * config/pa/pa32-regs.h: Likewise.
1808         * config/pa/pa64-hpux.h: Likewise.
1809         * config/pa/pa64-regs.h: Likewise.
1810         * config/pa/som.h: Likewise.
1811
1812 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
1813
1814         * doc/gcc.texi: Move several chapters out to ...
1815         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
1816         doc/service.texi, doc/standards.texi, doc/trouble.texi,
1817         doc/vms.texi: ... here.  New files.
1818         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1819
1820 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
1821
1822         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
1823         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
1824         collect2.c, combine.c, config.in, configure, configure.in,
1825         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
1826         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
1827         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
1828         spelling errors.
1829
1830 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1831
1832         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
1833         Adjust operand number in CONST_DOUBLE.
1834
1835         * expmed.c (extract_bit_field): No longer pass in alignment.
1836         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
1837         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
1838         Likewise.
1839         * expr.c (store_constructor, store_constructor_field): Likewise.
1840         (store_field, emit_group_load, emit_group_store): Likewise.
1841         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
1842         (store_bit_field, extract_bit_field): Likewise.
1843         * calls.c, expr.c, function.c: Change calls to above functions.
1844         * ifcvt.c, stmt.c: Likewise.
1845
1846         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
1847         constant and one is on frame.
1848         If know memref offset, adjust size from decl.
1849
1850 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1851
1852         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
1853         format specifier warning.
1854         * convex.h (ASM_OUTPUT_BYTE): Likewise.
1855         * elfos.h (ALIGN_ASM_OP): Undef before defining.
1856         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
1857         warning.
1858         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1859         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1860         * i386-interix.h (gen_stdcall_suffix): Prototype.
1861         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1862         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1863         ASM_OUTPUT_LONG_DOUBLE): Likewise.
1864         * i386/interix.c (gen_stdcall_suffix): Const-ify.
1865         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1866         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
1867         specifier warnings.
1868         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1869         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1870         ASM_OUTPUT_LONG_DOUBLE): Likewise.
1871         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1872         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1873         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1874         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1875         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
1876         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
1877         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1878         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1879         Likewise.
1880         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1881         Likewise.
1882         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
1883         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1884         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
1885         Likewise.
1886         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
1887         Likewise.
1888         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1889         Likewise.
1890         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
1891         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1892         * m68k/news.h (PRINT_OPERAND): Likewise.
1893         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
1894         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1895         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1896         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
1897         definition.
1898         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1899         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
1900         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
1901         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1902         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
1903         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
1904         PRINT_OPERAND): Likewise.
1905         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1906         Likewise.
1907         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1908         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1909         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
1910         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1911         * mips.c (mips_output_external_libcall): Mark parameter with
1912         ATTRIBUTE_UNUSED.
1913         (mips_asm_file_start): Move variable into the scope where it's
1914         used.
1915         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
1916         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1917         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
1918         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1919         * ns32k.c (print_operand): Likewise.
1920         * pa.c (print_operand, output_div_insn): Likewise.
1921         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
1922         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
1923         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
1924         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1925         specifier warnings.
1926         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1927         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1928         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
1929         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1930         specifier warnings.
1931         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1932
1933         * sdbout.c (sdbout_end_epilogue): Mark parameter with
1934         ATTRIBUTE_UNUSED.
1935         * varasm.c (assemble_global): Likewise.
1936
1937 2001-11-11  H.J. Lu <hjl@gnu.org>
1938
1939         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
1940
1941 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
1942
1943         * final.c (*_MAX_SKIP): Use *_max_skip variables.
1944         * flags.h (align_loops_max_skip, align_jumps_max_skip,
1945         align_labels_max_skip): New global variables.
1946         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
1947         align_labels_max_skip): New global variables.
1948         (toplev_main): Set new variables.
1949         * i386.c (override_options): Set max_skip values.
1950
1951 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
1952
1953         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
1954         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
1955         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
1956         don't print an @fptr for labels either.
1957         (xstormy16_output_addr_vec): Don't print @fptr here.
1958         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
1959
1960 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
1961
1962         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
1963         an ANSI/ISO definitino.
1964         (ssa_const_prop): Likewise.
1965
1966 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
1967
1968         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
1969         altivec registers.
1970
1971 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1972
1973         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
1974         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
1975         * cppmain.c (general_init): Call hex_init.
1976         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
1977
1978         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
1979
1980         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
1981         of dgux.c:output_file_start().
1982
1983         * i386/dgux.c: Delete file.
1984
1985 2001-11-09  Richard Henderson  <rth@redhat.com>
1986
1987         * config/alpha/alpha.c (decl_in_text_section): New.
1988         (current_file_function_operand): Use it.
1989         (alpha_encode_section_info, alpha_end_function): Likewise.
1990
1991 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
1992
1993         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
1994         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
1995         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
1996         so OS specific files and use CPP_PREDEFINES for their needs.
1997         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
1998         target headers to tm_file.
1999         * config/ia64/aix.h (TARGET_VERSION): Likewise.
2000         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
2001         * config/ia64/linux.h (TARGET_VERSION): Likewise.
2002         (FUNCTION_PROFILER): Remove.
2003         * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
2004         version in config/ia64/linux.h.
2005         * config/ia64/freebsd.h: New file.
2006         * config/freebsd.h: Tidy up.
2007         (_USING_CONFIG_FREEBSD): Define.
2008         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
2009         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
2010         (FBSD_STARTFILE_SPEC): Likewise.
2011         (FBSD_ENDFILE_SPEC): Likewise.
2012         (FBSD_LIB_SPEC): Likewise.
2013         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
2014         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
2015         set an ELF-improper one.
2016
2017 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2018
2019         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
2020         constant can be loaded in a single instruction to a register.  When
2021         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
2022         depdi for insertion of most significant 32-bits on 64-bit hosts.
2023         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
2024         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
2025         * pa.md: New addmove pattern for adding constant_int to HImode
2026         register and moving result to HImode register.  Remove HImode HIGH
2027         and LO_SUM patterns.
2028
2029 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2030
2031         * Makefile.in: Update.
2032         * c-decl.c (print_lang_decl, print_lang_type): Remove.
2033         (print_lang_identifier): Rename c_print_identifier.
2034         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2035         (print_lang_statistics, lang_print_xnode): Remove.
2036         * c-parse.in (set_yydebug): Rename c_set_yydebug.
2037         * c-tree.h (c_set_yydebug, c_print_identifier): New.
2038         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
2039         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
2040         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
2041         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2042         (LANG_HOOKS_INITIALIZER): Update.
2043         * langhooks.h (struct lang_hooks): New members.
2044         (lang_print_tree_hook): New.
2045         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
2046         * print-tree.c: Include langhooks.h.
2047         (print_node): Update.
2048         * toplev.c (decode_d_option): Update.
2049         * tree.c: Include langhooks.h.
2050         (dump_tree_statistics): Update.
2051         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
2052         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
2053 objc:
2054         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
2055         LANG_HOOKS_SET_YYDEBUG): Override.
2056         (lang_print_xnode, print_lang_statistics): Remove.
2057
2058 2001-11-09  Richard Henderson  <rth@redhat.com>
2059
2060         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
2061         on the symbol string.
2062
2063 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2064
2065         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
2066         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
2067         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
2068
2069         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
2070
2071         * tlink.c (recompile_files): Copy strings passed to `putenv'.
2072
2073 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
2074
2075         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
2076         (TYPE_READONLY): Likewise.
2077
2078         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
2079
2080         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
2081         don't pass --gdwarf2 to the assembler if the compiler will also
2082         provide debug info.
2083
2084         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
2085         Don't change INDEX.
2086
2087 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2088
2089         * alias.c (nonoverlapping_memrefs_p): New function.
2090         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
2091
2092         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
2093
2094 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
2095
2096         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
2097         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
2098         generating altivec code.
2099         (FIXED_REGISTERS): VRSAVE is fixed.
2100         (CALL_USED_REGISTERS): VRSAVE is call used.
2101
2102 2001-11-09  Jason Eckhardt  <jle@rice.edu>
2103
2104         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
2105         code the branch target as ".+16/.+12", but rather use labels.
2106
2107 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
2108
2109         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
2110         to work around limitations of certain versions of GAS.
2111
2112         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
2113         (muldi3): Update due to SUBREG_BYTE changes.
2114         (casesi): Similarly.
2115
2116 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
2117
2118         * doc/invoke.texi: Remove comment referring to -xf77-version.
2119
2120 2001-11-09  Kazu Hirata  <kazu@hxi.com>
2121
2122         * config/convex/convex.c: Fix comment formatting.
2123         * config/convex/convex.h: Likewise.
2124
2125 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
2126
2127         * Makefile.in (.po.pox): Look both in srcdir and builddir
2128         for $(PACKAGE).pot.
2129         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
2130         to the source directory.
2131
2132 2001-11-09 Ben Elliston  <bje@redhat.com>
2133            Michael Meissner  <meissner@redhat.com>
2134            Andrew MacLeod  <amacleod@redhat.com>
2135            Richard Henderson  <rth@redhat.com>
2136            Nick Clifton  <nickc@redhat.com>
2137            Catherine Moore  <clm@redhat.com>
2138
2139         * m32r.c: Add support for m32rx processor.
2140         * m32r.h: Ditto.
2141         * m32r.md: Ditto.
2142         * t-m32r: Ditto.
2143         * m32r-protos.h: Add prototypes for m32rx functions.
2144         * doc/invoke.texi: Document -m32rx option.
2145
2146 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
2147
2148         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
2149         or after reload.
2150
2151 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2152
2153         * doc/install.texi2html: Use $MAKEINFO --no-split.
2154
2155 2001-11-09  Andreas Schwab  <schwab@suse.de>
2156
2157         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
2158         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
2159         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
2160         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
2161         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
2162
2163 2001-11-09  H.J. Lu <hjl@gnu.org>
2164
2165         * config/mips/mips.c (mips_output_function_prologues): Cast
2166         `tsize' to long for output.
2167
2168 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2169
2170         * c-lang.c (LANG_HOOKS_NAME): New.
2171         (lang_hooks): Constify.
2172         (c_init_options): Update.
2173         (lang_identify): Remove.
2174         * c-parse.in (language_string): Remove.
2175         * dbxout.c: Include langhooks.h.
2176         (dbxout_symbol_location): Update.
2177         * dwarf2out.c: Include langhooks.h.
2178         (gen_compile_unit_die): Update.
2179         * dwarfout.c: Include langhooks.h.
2180         (prototyped_attribute, output_compile_unit_die): Update.
2181         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
2182         (LANG_HOOKS_INITIALIZER): Update.
2183         * langhooks.h (struct lang_hooks): New members.  Constify.
2184         * stringpool.c: Don't include toplev.h.
2185         (set_identifier_size): Remove.
2186         * toplev.c (toplev_main): Initialize identifier size.
2187         (print_version): Update.
2188         * tree.h (language_string, init_lex, lang_identify,
2189         set_identifier_size): Remove.
2190         * Makefile.in: Update dependencies.
2191         * config/darwin.c: Include langhooks.h.
2192         (func_name_maybe_scoped): Update.
2193         * config/darwin.h (ASM_END_FILE): Update.
2194         * config/nextstep.h (ASM_END_FILE): Update.
2195         * config/nextstep21.h (ASM_END_FILE): Update.
2196         * config/i386/sun386.h (ASM_END_FILE): Update.
2197         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
2198         (rs6000_output_function_epilogue): Update.
2199 objc:
2200         * objc-act.c (LANG_HOOKS_NAME): Override.
2201         (struct lang_hooks): Constify.
2202         (objc_init_options): Update.
2203         (lang_identify): Remove.
2204
2205 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
2206
2207         * fold-const.c (lshift_double): Honor PREC.
2208         (rshift_double): Likewise.
2209
2210 2001-11-08  Kazu Hirata  <kazu@hxi.com>
2211
2212         * config/1750a/1750a.c: Fix comment formatting.
2213         * config/1750a/1750a.h: Likewise.
2214
2215 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
2216
2217         * configure.in (--enable-languages): Be more permissive about
2218         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
2219         * configure: Regenerated.
2220
2221 2001-11-08  Richard Henderson  <rth@redhat.com>
2222
2223         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
2224
2225 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
2226
2227         * config.gcc: Rename stormy16 to xstormy16.
2228         * config/stormy16/stormy-abi: Likewise.
2229         * config/stormy16/stormy16-protos.h: Likewise.
2230         * config/stormy16/stormy16.c: Likewise.
2231         * config/stormy16/stormy16.h: Likewise.
2232         * config/stormy16/stormy16.md: Likewise.
2233
2234 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
2235
2236         * tree.h (TYPE_VOLATILE): Add enable-checking code.
2237         (TYPE_READONLY): Likewise.
2238
2239 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2240
2241         * reload1.c (reload): Don't delete equiv insn if can throw.
2242
2243         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
2244         (clear_storage): Likewise, for OBJECT.
2245
2246 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
2247
2248         * pa.c (emit_move_sequence): Fix SUBREG expression to
2249         use proper byte offset when extending a constant from
2250         SImode to DImode.
2251
2252 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
2253
2254         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
2255         which cannot throw.
2256
2257 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2258
2259         * explow.c (convert_memory_address, case SUBREG): Only return
2260         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
2261
2262 2001-11-08  Richard Henderson  <rth@redhat.com>
2263
2264         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
2265         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
2266         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
2267
2268 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
2269
2270         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
2271
2272 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
2273
2274         * dwarf2out.c (debug_str_hash): New.
2275         (struct indirect_string_node): New.
2276         (struct dw_val_struct): Change type of val_str to it.
2277         (DEBUG_STR_SECTION_FLAGS): Define.
2278         (add_AT_string): Push string into hashtable, increment reference
2279         counter.
2280         (AT_string): Return string from ht_identifier.
2281         (AT_string_form): New.
2282         (free_AT): For dw_val_class_str, just decrement reference counter.
2283         (size_of_string): Remove.
2284         (size_of_die): Use AT_string_form to decide what size the string
2285         occupies in DIE.
2286         (size_of_pubnames): Use strlen instead of size_of_string.
2287         (value_format): Use AT_string_form for dw_val_class_str.
2288         (output_die): Output DW_FORM_strp strings using
2289         dw2_asm_output_offset.
2290         (indirect_string_alloc, output_indirect_string): New.
2291         (dwarf2out_finish): Emit .debug_str strings if there are any.
2292
2293 2001-11-08  Andreas Franck  <afranck@gmx.de>
2294
2295         * configure.in: Add AC_ARG_PROGRAM to support program name
2296         transformation with --program-prefix, --program-suffix and
2297         --program-transform-name.
2298         * configure: Regenerated.
2299         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
2300         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
2301         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
2302         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
2303         program_transform_name the way suggested by autoconf.
2304         (GCC_TARGET_INSTALL_NAME): Define.
2305         (install-driver): Use the transformed target alias name.
2306
2307 2001-11-08  Richard Henderson  <rth@redhat.com>
2308
2309         * config/mips/mips.c (save_restore_insns): Remove GP from the
2310         restore registers mask early instead of special casing it inside
2311         the loop.
2312
2313 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2314
2315         * cp/decl.c (shadow_warning): New function.
2316         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
2317         and an error when a block scope decl shadows a parameter.
2318
2319 2001-11-08  Richard Henderson  <rth@redhat.com>
2320
2321         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
2322         case as well.
2323
2324 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2325
2326         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
2327         to implement floating negation on processors prior to PA 2.0.
2328
2329 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
2330
2331         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
2332         (USE_LINKONCE_INDIRECT): Define.
2333         (dw2_output_indirect_constant_1): Try to output indirect constants
2334         into linkonce sections if possible.
2335         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
2336         (dw2_output_indirect_constants): Likewise.
2337
2338 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
2339
2340         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
2341
2342 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2343
2344         * c-decl.c (pushdecl): Remove file and line.
2345         * c-typeck.c (pop_init_level): Remove size.
2346
2347 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
2348
2349         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
2350         for rs6000.
2351
2352         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
2353         (TARGET_ALTIVEC): New.
2354         (TARGET_SWITCHES): Add altivec.
2355         (FIRST_PSEUDO_REGISTER): Change to 109.
2356         (CALL_USED_REGISTERS): Same.
2357         (FIRST_ALTIVEC_REGNO): New.
2358         (LAST_ALTIVEC_REGNO): New.
2359         (ALTIVEC_REGNO_P): New.
2360         (UNITS_PER_ALTIVEC_WORD): New.
2361         (ALTIVEC_VECTOR_MODE): New.
2362         (FIXED_REGISTERS): Add altivec registers.
2363         (REG_ALLOC_ORDER): Same.
2364         (HARD_REGNO_NREGS): Adjust for altivec registers.
2365         (HARD_REGNO_MODE_OK): Same.
2366         (MODES_TIEABLE_P): Same.
2367         (REGISTER_MOVE_COST): Same.
2368         (REGNO_REG_CLASS): Same.
2369         (reg_class): Add ALTIVEC_REGS.
2370         (REG_CLASS_NAMES): Same.
2371         (REG_CLASS_CONTENTS): Same.
2372         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
2373         (ALTIVEC_ARG_RETURN): New.
2374         (FUNCTION_VALUE): Handle VECTOR_TYPE.
2375         (LIBCALL_VALUE): Handle altivec vector modes.
2376         (VECTOR_MODE_SUPPORTED_P): New.
2377         (ALTIVEC_ARG_MIN_REG): New.
2378         (ALTIVEC_ARG_MAX_REG): New.
2379         (ALTIVEC_ARG_NUM_REG): New.
2380         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
2381         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
2382         (REGISTER_NAMES): Add altivec regs.
2383         (DEBUG_REGISTER_NAMES): Same.
2384         (ADDITIONAL_REGISTER_NAMES): Same.
2385         (rs6000_builtins): New.
2386         (MD_EXPAND_BUILTIN): New.
2387         (MD_INIT_BUILTINS): New.
2388         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
2389         for AltiVec instructions.
2390         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
2391         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
2392         registers.
2393         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
2394         (TARGET_SWITCHES): Add no-altivec.
2395         (DATA_ALIGNMENT): Align vectors to 128 bits.
2396         (TARGET_OPTIONS): Add abi= option.
2397         Add rs6000_abi_string extern.
2398         (LOCAL_ALIGNMENT): New.
2399         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
2400         (MASK_ALTIVEC_ABI): New.
2401         (TARGET_ALTIVEC_ABI): New.
2402         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
2403         call-saved.
2404         (STACK_BOUNDARY): Adjust for altivec.
2405         (BIGGEST_ALIGNMENT): Same.
2406         (rs6000_args): Add vregno.
2407         (USE_ALTIVEC_FOR_ARG_P): New.
2408         (FIXED_REGISTERS): Add vrsave register.
2409         (CALL_USED_REGISTERS): Same.
2410         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
2411         (VRSAVE_REGNO): New.
2412         (reg_class): Add VRSAVE_REGS.
2413         (REG_CLASS_NAMES): Same.
2414         (REG_CLASS_CONTENTS): Same.
2415         (REGNO_REG_CLASS): Same.
2416
2417         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
2418         (ABI_STACK_BOUNDARY): Same.
2419         (BIGGEST_ALIGNMENT): Same.
2420         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
2421         (ROUND_TYPE_ALIGN): Same.
2422
2423         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2424         to 64.
2425
2426         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2427         to 64.
2428
2429         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2430         to 64.
2431
2432         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
2433         (altivec_expand_builtin): New.
2434         (altivec_init_builtins): New.
2435         (TARGET_EXPAND_BUILTIN): New.
2436         (TARGET_INIT_BUILTINS): New.
2437         (rs6000_init_builtins): New.
2438         (struct builtin_description): New.
2439         (bdesc_2arg): New.
2440         (rs6000_reg_names): Add altivec registers.
2441         (alt_reg_names): Same.
2442         (secondary_reload_class): Altivec regs can hold altivec regs and
2443         memory.
2444         (rs6000_emit_move): Force constants into memory for AltiVec moves.
2445         (print_operand): Add 'y' case for printing altivec memory
2446         operands.
2447         (rs6000_legitimize_address): Legitimize vector addresses into
2448         [REG+REG] or [REG].
2449         (altivec_expand_binop_builtin): New.
2450         New string rs6000_current_abi.
2451         (rs6000_override_options): Call rs6000_parse_abi_options.
2452         (rs6000_parse_abi_options): New.
2453         (function_arg_boundary): Vector arguments must be 16
2454         byte aligned.
2455         (function_arg_advance): Handle vector arguments.
2456         (function_arg_partial_nregs): Same.
2457         (init_cumulative_args): Same.
2458         (function_arg): Same.
2459
2460         * config/rs6000/rs6000.md (altivec_lvx): New.
2461         (type): Add altivec attribute.
2462         (movv4si): New.
2463         (*movv4si_internal): New.
2464         (movv16qi): New.
2465         (*movv16qi_internal): New.
2466         (movv8hi): New.
2467         (*movv8hi_internal1): New.
2468         (movv4sf): New.
2469         (*movv4sf_internal1): New.
2470         (altivec_stvx): New.
2471         (vaddubm): New.
2472         (vadduhm): New.
2473         (vadduwm): New.
2474         (vaddfp): New.
2475         (vaddcuw): New.
2476         (vaddubs): New.
2477         (vaddsbs): New.
2478         (vadduhs): New.
2479         (vaddshs): New.
2480         (vadduws): New.
2481         (vaddsws): New.
2482         (vand): New.
2483         (vandc): New.
2484         (vavgub): New.
2485         (vavgsb): New.
2486         (vavguh): New.
2487         (vavgsh): New.
2488         (vavguw): New.
2489         (vavgsw): New.
2490         (vcmpbfp): New.
2491         (vcmpequb): New.
2492         (vcmpequh): New.
2493         (vcmpequw): New.
2494         (vcmpeqfp): New.
2495         (vcmpgefp): New.
2496         (vcmpgtub): New.
2497         (vcmpgtsb): New.
2498         (vcmpgtuh): New.
2499         (vcmpgtsh): New.
2500         (vcmpgtuw): New.
2501         (vcmpgtsw): New.
2502         (vcmpgtfp): New.
2503         (vcmpgefp): New.
2504         (vcmpgtub): New.
2505         (vcmpgtsb): New.
2506         (vcmpgtuh): New.
2507         (vcmpgtsh): New.
2508         (vcmpgtuw): New.
2509         (vcmpgtsw): New.
2510         (vcmpgtfp): New.
2511         (vmaxub): New.
2512         (vmaxsb): New.
2513         (vmaxuh): New.
2514         (vmaxsh): New.
2515         (vmaxuw): New.
2516         (vmaxsw): New.
2517         (vmaxfp): New.
2518         (vmrghb): New.
2519         (vmrghh): New.
2520         (vmrghw): New.
2521         (vmrglb): New.
2522         (vmrglh): New.
2523         (vmrglw): New.
2524         (vminub): New.
2525         (vminsb): New.
2526         (vminuh): New.
2527         (vminsh): New.
2528         (vminuw): New.
2529         (vminsw): New.
2530         (vminfp): New.
2531         (vmuleub): New.
2532         (vmulesb): New.
2533         (vmuleuh): New.
2534         (vmulesh): New.
2535         (vmuloub): New.
2536         (vmulosb): New.
2537         (vmulouh): New.
2538         (vmulosh): New.
2539         (vnor): New.
2540         (vor): New.
2541         (vpkuhum): New.
2542         (vpkuwum): New.
2543         (vpkpx): New.
2544         (vpkuhss): New.
2545         (vpkshss): New.
2546         (vpkuwss): New.
2547         (vpkswss): New.
2548         (vpkuhus): New.
2549         (vpkshus): New.
2550         (vpkuwus): New.
2551         (vpkswus): New.
2552         (vrlb): New.
2553         (vrlh): New.
2554         (vrlw): New.
2555         (vslb): New.
2556         (vslh): New.
2557         (vslw): New.
2558         (vsl): New.
2559         (vslo): New.
2560         (vsrb): New.
2561         (vrsh): New.
2562         (vrsw): New.
2563         (vsrab): New.
2564         (vsrah): New.
2565         (vsraw): New.
2566         (vsr): New.
2567         (vsro): New.
2568         (vsububm): New.
2569         (vsubuhm): New.
2570         (vsubuwm): New.
2571         (vsubfp): New.
2572         (vsubcuw): New.
2573         (vsububs): New.
2574         (vsubsbs): New.
2575         (vsubuhs): New.
2576         (vsubshs): New.
2577         (vsubuws): New.
2578         (vsubsws): New.
2579         (vsum4ubs): New.
2580         (vsum4sbs): New.
2581         (vsum4shs): New.
2582         (vsum2sws): New.
2583         (vsumsws): New.
2584         (vxor): New.
2585
2586 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
2587
2588         * Makefile.in (df.o): Add fibheap.h to dependencies.
2589
2590         * df.h: Add prototypes for transfer functions, iterative_dataflow
2591         functions.
2592         (enum df_flow_dir): New enum.
2593         (enum df_confluence_op): New enum.
2594         (struct df): Add inverse_rts_map.
2595
2596         * df.c: Add sbitmap.h to the list of includes.
2597         (df_rd_global_compute): Removed.
2598         (df_ru_global_compute): Removed.
2599         (df_lr_global_compute): Removed.
2600         (df_rd_transfer_function): New function.
2601         (df_ru_transfer_function): New function.
2602         (df_lr_transfer_function): New function.
2603         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
2604         Use iterative_dataflow_bitmap instead of df_*_global_compute.
2605         (iterative_dataflow_sbitmap): New function.
2606         (iterative_dataflow_bitmap): New function.
2607
2608 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2609
2610         * doc/gcc.texi: Move terminology and spelling conventions to
2611         htdocs/codingconventions.html.
2612
2613 2001-11-07  Graham Stott  <grahams@redhat.com>
2614
2615         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
2616
2617 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
2618
2619         * expmed.c (expand_mult): Force operand to register before computing
2620         cost.
2621         * i386.c (x86_decompose_lea): New global vairable.
2622         * i386.h (x86_decompose_lea): Declare.
2623         (TARGET_DECOMPOSE_LEA): New macro.
2624         (RTX_COST): Handle leas properly.
2625
2626 2001-11-06  Richard Henderson  <rth@redhat.com>
2627
2628         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
2629         defined for a CONSTRUCTOR; don't check it.
2630
2631 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
2632
2633         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
2634         test for absolute pathnames.
2635
2636 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
2637
2638         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
2639         instructions up to the target pc inclusive.
2640
2641 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
2642
2643         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
2644
2645 2001-11-06  Eric Christopher  <echristo@redhat.com>
2646
2647         * config/mips/mips.md(movdf_internal2): Add constraints for float
2648         to general register move.
2649         * config/mips/elf64.h: Add default ABI.
2650
2651 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2652
2653         * alias.c:: Include langhooks.h.
2654         * emit-rtl.c: Similarly.
2655         * toplev.c: Similarly.
2656         * tree-inline.c: Similarly.
2657         * langhooks-def.h: New, the old langhooks.h.  Give the default
2658         hooks a common prefix.
2659         * langhooks.h: Contents extracted from toplev.h.
2660         * toplev.h: Move langhook stuff to langhooks.h.
2661         * langhooks.c: Give default hooks a common prefix.
2662
2663         * c-lang.c: Include langhooks-def.h.
2664         * objc/objc-act.c: Similarly.
2665         * Makefile.in: Update.
2666         * objc/Make-lang.in: Update.
2667
2668 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
2669
2670         * doc/install.texi: Document that configure options not listed in
2671         this file are unsupported.  Document --with-system-zlib.
2672
2673 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2674
2675         * rtl.h (mem_for_const_double): New declaration.
2676         * varasm.c (mem_for_const_double): New function.
2677         * config/convex/convex.md (movdf): Use it.
2678         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
2679         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
2680         * config/m68k/m68kv4.h: Likewise.
2681
2682         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
2683         of new GP reg classes.
2684
2685         * expr.c (store_field): When making temp object for unaligned
2686         component, set it to alias set 0.
2687
2688 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
2689
2690         * c-common.c (c_expand_expr_stmt): Apply default conversions to
2691         non-lvalue arrays if C99.
2692         * c-typeck.c (default_conversion): Split out code handling
2693         array-to-pointer and function-to-pointer conversions into a
2694         separate default_function_array_conversion function.
2695         (default_function_array_conversion): New function.  Keep track of
2696         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
2697         arrays unchanged outside C99 mode instead of giving an error for
2698         them.
2699         (build_component_ref): Use pedantic_non_lvalue when handling
2700         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
2701         (convert_arguments): Use default_function_array_conversion.
2702         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
2703         non-lvalues are OK.
2704         (unary_complex_lvalue): Likewise.
2705         (internal_build_compound_expr): Use
2706         default_function_array_conversion.  Apply default conversions to
2707         function in compound expression.
2708         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
2709         Use default_function_array_conversion.
2710         * doc/extend.texi: Update documentation of subscripting non-lvalue
2711         arrays.
2712         Fixes PR c/461.
2713
2714 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
2715
2716         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
2717         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
2718         corresponding to the complete set of .po and .gmo files in
2719         the source directory's po subdir, modified by LINGUAS.  Don't
2720         look at ALL_LINGUAS.
2721         * configure.in: Don't set ALL_LINGUAS.
2722         * configure: Regenerate.
2723
2724         * Makefile.in (.po.gmo): Don't move into source directory.
2725         (.po.pox): Clarify comments.
2726         (install-po): Look for .gmo files in both srcdir and objdir;
2727         don't fail if a file is totally missing.
2728         (distclean): rmdir ada subdirectory too.
2729
2730 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
2731
2732         * config/rs6000/rs6000.c (rs6000_select_section): Handle
2733         CONSTRUCTORs _correctly_.
2734
2735 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2736
2737         * c-decl.c (delete_block): Remove.
2738         * c-tree.h (delete_block): Remove.
2739
2740 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2741
2742         * cppexp.c (lex, parse_defined): Update warning about defined.
2743
2744 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
2745
2746         * config/rs6000/rs6000.c (rs6000_select_section): Handle
2747         CONSTRUCTORs too.
2748
2749 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
2750
2751         * config/arm/arm.c (arm_return_in_memory): Cope with
2752         int_size_in_bytes returning -1.
2753
2754         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
2755         DECL being NULL.
2756
2757 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
2758
2759         * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
2760         remove unneeded dependencies;
2761         (cfglayout.o): New.
2762         * cfglayout.c, cfglayout.h: New files; break out from ...
2763         * bb-reorder.c: ... here; Remove unneeded includes;
2764
2765 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
2766
2767         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
2768
2769 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
2770
2771         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
2772         mode as well.  Do not explicitly create intermediate regs.
2773
2774 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2775
2776         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
2777         (common_section): Delete unused variable.
2778         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
2779         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
2780         * arm-protos.h (arm_poke_function_name, aof_add_import,
2781         aof_delete_import): Const-ify.
2782         * arm.c (legitimize_pic_address): Wrap variables in the macro
2783         controlling their usage.
2784         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
2785         (arm_poke_function_name, pic_chain, import, aof_add_import,
2786         aof_delete_import): Const-ify.
2787         * i386.c (ix86_osf_output_function_prologue): Const-ify.
2788         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2789         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
2790         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
2791         * i860/sysv3.h: Add missing comment closure.
2792         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
2793         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
2794         to symbolic_operand.
2795
2796         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
2797         (i960-*-*): Set tmake_file.
2798         (sparc86x-*-elf*): Fix typo in header name.
2799
2800         * sched-rgn.c (schedule_insns): Delete unused variable.
2801
2802 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2803
2804         PR c/2820
2805         * c-typeck.c (lookup_field): Rework to return a chain down to
2806         the looked-up field.
2807         (build_component_ref): Use the new lookup_field to handle
2808         nested anonymous entities correctly.
2809
2810 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2811
2812         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
2813         Change parameters to gen_rtx_CONST_DOUBLE.
2814         (GEN_INT64, sparc_emit_set_const64): Likewise.
2815         * config/sparc/sparc.md (movdf split): Likewise.
2816
2817 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
2818
2819         * unroll.c (calculate_giv_inc): Use find_last_value rather
2820         than just hoping the last instruction is the right SET.
2821         [Fixes 990604-1.c on stormy16.]
2822
2823         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
2824         library at all if -T is used.
2825
2826         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
2827         some uses of uninitialized variables in error cases.
2828
2829         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
2830         look at 'temp' if we won't be using it.
2831
2832         * config/stormy16/stormy16.h (CONST_COSTS): Define.
2833         (RTX_COSTS): Define.
2834         (ADDRESS_COST): Define.
2835         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
2836
2837         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
2838
2839         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
2840         stormy16_asm_output_mi_thunk.
2841         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
2842         function.
2843         * config/stormy16/stormy16-protos.h
2844         (stormy16_asm_output_mi_thunk): New prototype.
2845
2846 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2847
2848         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
2849         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
2850         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
2851         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
2852         sched-int.h, toplev.c, config/alpha/alpha.c,
2853         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
2854         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
2855         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
2856         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
2857         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
2858         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
2859         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
2860
2861 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2862
2863         * Makefile.in (dbxout.o): Depend on function.h.
2864         * collect2.c (is_in_list): Hide unused function.
2865         * dbxout.c: Include function.h.
2866         (source_label_number, dbxout_source_line, dbxout_source_file,
2867         dbxout_function_end, dbxout_begin_function): Wrap/move inside
2868         macros controlling usage.
2869         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
2870         * output.h (exports_section): Prototype.
2871
2872         * convex.c (convex_output_function_prologue): Fix format specifier
2873         warning.
2874         (asm_declare_function_name): Fix signed/unsigned warning.
2875         (print_operand): Fix format specifier warning.
2876         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
2877         * dsp16xx-protos.h (uns_comparison_operator,
2878         num_1600_core_shifts): Prototype.
2879         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
2880         (frame_size, frame_pointer_offset): Delete.
2881         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
2882         Make static.  Fix format specifier warnings.
2883         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
2884         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
2885         * dsp16xx.md: Add default case in switches.
2886         * fr30.h (IN_RANGE): Delete.
2887         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
2888         * mcore-protos.h (mcore_output_cmov): Const-ify.
2889         * mcore.c (mcore_output_cmov): Likewise.
2890         * mcore.h (switch_to_section): Make static and prototype.
2891         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
2892         unsigned>=0 warnings.
2893         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
2894         * rs6000-protos.h (read_only_data_section,
2895         read_only_private_data_section): Prototype.
2896         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2897         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
2898         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
2899
2900 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2901
2902         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
2903         ATTRIBUTE_UNUSED.
2904         * final.c (final_scan_insn): Add brackets around body of if-stmt.
2905         * gcc.c (convert_filename): Add static prototype.  Const-ify.
2906         Wrap variable in macros controlling its use.
2907         * output.h (sdata_section): Add prototype.
2908
2909         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2910         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
2911         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
2912         (ASM_FILE_START): Const-ify.
2913         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
2914         specifier warning.
2915         * c4x.md: Don't use the 'U' integer suffix.
2916         * clipper.md (clipper_movstr): Delete declaration.
2917         * d30v-protos.h (d30v_move_2words): Const-ify.
2918         (debug_stack_info): Add prototype.
2919         * d30v.c: Include "integrate.h".
2920         (d30v_function_arg_boundary, d30v_function_arg,
2921         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
2922         signed/unsigned warnings.
2923         (d30v_print_operand_memory_reference, d30v_move_2words):
2924         Const-ify.
2925         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
2926         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
2927         * fr30.md: Const-ify.
2928         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2929         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
2930         (mvs_get_label_page): Hide unused static function.
2931         * i860.c (current_function_original_name): Const-ify.
2932         * i860/sysv3.h (current_function_original_name): Likewise.
2933         * i860/sysv4.h (current_function_original_name): Likewise.
2934         * i960.md: Add default case in switches.  Remove unused variable.
2935         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
2936         * m32r.md: Const-ify.
2937         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
2938         * m68hc11.c: Include "reload.h".
2939         (static_chain_reg, print_options, m68hc11_asm_file_start):
2940         Const-ify.
2941         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
2942         around & in comparison.
2943         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
2944         * mn10200.c (shift_mode): Remove trailing comma.
2945         * mn10300-protos.h (output_tst): Const-ify.
2946         * mn10300.c (output_tst): Likewise.
2947         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
2948         warnings.
2949         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
2950         * pa.c (output_ascii): Likewise.
2951         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2952         * pdp11.md (expand_unop): Delete declarations.
2953         * pj-protos.h (pj_output_addsi3): Const-ify.
2954         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
2955         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
2956         unique_src_operand): Add prototypes.
2957         (pj_output_store_into_lval): Make definition static.
2958         (pj_function_incoming_arg): Don't use unary plus.
2959         (pj_output_addsi3): Const-ify.
2960         * romp.md (get_symref): Delete declarations.
2961         * v850-c.c (mark_current_function_as_interrupt): Don't return
2962         value from void function.
2963         * v850.c: Include "integrate.h".
2964         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
2965         * vax-protos.h (const_section): Add prototype.
2966
2967 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
2968
2969         * machmode.def: Add documentation for the seventh argument in
2970         vector modes.
2971
2972 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
2973
2974         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
2975         consistently.
2976         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
2977         <-melf>: Don't have markup for ELF acronym.
2978
2979 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
2980
2981         * config.gcc (mmix-*-*): New target.
2982         * doc/invoke.texi: Document MMIX options.
2983         * doc/contrib.texi: Add note about MMIX port to my entry.
2984         * config/mmix/t-mmix: New file.
2985         * config/mmix/mmix.h: New file.
2986         * config/mmix/mmix-protos.h: New file.
2987         * config/mmix/mmix.c: New file.
2988         * config/mmix/mmix.md: New file.
2989         * config/mmix/crti.asm: New file.
2990         * config/mmix/crtn.asm: New file.
2991
2992 2001-11-03  Kazu Hirata  <kazu@hxi.com>
2993
2994         * config/sparc/linux-aout.h: Fix comment formatting.
2995         * config/sparc/linux.h: Likewise.
2996         * config/sparc/linux64.h: Likewise.
2997         * config/sparc/lynx.h: Likewise.
2998         * config/sparc/pbd.h: Likewise.
2999         * config/sparc/sol2-sld-64.h: Likewise.
3000         * config/sparc/sol2.h: Likewise.
3001         * config/sparc/sparc.c: Likewise.
3002         * config/sparc/sparc.h: Likewise.
3003         * config/sparc/sparc.md: Likewise.
3004         * config/sparc/sunos4.h: Likewise.
3005         * config/sparc/vxsim.h: Likewise.
3006         * config/sparc/vxsparc.h: Likewise.
3007         * config/sparc/vxsparc64.h: Likewise.
3008
3009 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3010
3011         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
3012         reference to CONST_DOUBLE_MEM in comment.
3013         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
3014         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
3015         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
3016         * function.c (pop_function_context_from): Don't call
3017         restore_varasm_status.
3018         * function.h (restore_varasm_status): Delete declaration.
3019         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
3020         * rtl.c: Likewise.
3021         * rtl.def (CONST_DOUBLE): Update comment.
3022         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
3023         (CONST_DOUBLE_CHAIN): Likewise.
3024         (CONST_DOUBLE_MEM): Delete.
3025         (gen_rtx_CONST_DOUBLE): Update parameters.
3026         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
3027         Remove reference to CONST_DOUBLE_MEM.
3028         (const_alias_set): New variable.
3029         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
3030         (immed_real_const_1): Adjust tests for 0, 1, and 2.
3031         Don't set CONST_DOUBLE_MEM.
3032         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
3033         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
3034         Put constant in const_alias_set.
3035         (struct pool_constant): ALIGN now unsigned.
3036         OFFSET now HOST_WIDE_INT.
3037         Delete LABEL.
3038         (restore_varasm_status): Deleted.
3039         (mark_pool_constant): Mark desc->rtl.
3040         (force_const_mem): Rework to store rtl in hash table,
3041         not CONST_DOUBLE_MEM.
3042         Put constant in const_alias_set.
3043         (find_pool_constant): Check desc->rtl.
3044         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
3045         (init_varasm_once): Initialize const_alias_set.
3046
3047         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
3048         force_const_mem.
3049
3050         * reload.c (combine_reloads): Don't combine an output reload if there
3051         are other reloads around for part of the output.
3052
3053         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
3054         constant expression.
3055         (set_mem_decl): New function.
3056         * expr.h (set_mem_decl): New declaration.
3057         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
3058         (output_asm_operand_names): Add tab.
3059         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
3060
3061         * builtins.c (get_memory_rtx): Properly set MEM alias set and
3062         attributes.
3063
3064 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3065
3066         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
3067         Use "invalid" instead of "illegal".  Use @r in comments in
3068         examples.
3069
3070 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3071
3072         * c-decl.c (pushdecl): Move block inside if conditional to remove
3073         possibility of a segfault.  Lookup block-level extern
3074         variables in enclosing scopes correctly.
3075
3076         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
3077
3078 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
3079
3080         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
3081         SUBREG so we avoid SUBREGing memory.
3082
3083         * expmed.c (store_bit_field): Same.
3084
3085 2001-11-02  DJ Delorie  <dj@redhat.com>
3086
3087         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
3088         using FP registers for DImode mem-mem moves is acceptable.
3089
3090 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
3091
3092         * builtins.c (apply_args_size): Handle vector arguments.
3093         (apply_result_size): Same.
3094
3095         * machmode.def: Set WIDER mode field for all vector entries.
3096
3097 2001-11-02  Graham Stott  <grahams@redhat.com>
3098
3099         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
3100
3101 2001-11-01  Eric Christopher  <echristo@redhat.com>
3102
3103         * config.gcc: Revert part of earlier patch.
3104         * config/mips/linux.h: Ditto.
3105         * df.c: Include tm_p.h to avoid warnings.
3106         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
3107         #if/#endif.
3108         * config/mips/mips.c: Define mips_abi regardless.
3109         (mips_output_function_prologues): Add long casts for .frame
3110         output.
3111         (override_options): Allow use of ABI_32.
3112
3113 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3114
3115         * config/m68hc11/m68hc11.c: Fix comment formatting.
3116         * config/m68hc11/m68hc11.h: Likewise.
3117         * config/m68hc11/m68hc11.md: Likewise.
3118
3119 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3120
3121         * c-typeck.c (default_conversion): Retain the original expression
3122         codes.
3123         * gcc.dg/Wparentheses.c: New tests.
3124
3125 2001-11-01  David S. Miller  <davem@redhat.com>
3126
3127         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
3128         64-bit Sparc description more in line with reality.
3129
3130 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
3131
3132         * Makefile.in (GCOV_OBJS): Add version.o.
3133         * gcov.c: Include "version.h" and <getopt.h>.
3134         (gcov_version_string): Remove.
3135         (print_usage): Take a parameter to determine whether this is a
3136         call from --help or an error message.  Give fuller output that
3137         follows the GNU Coding Standards for --help.
3138         (print_version): New function.
3139         (options): New.
3140         (process_args): Use getopt_long.  Support long options.  Follow
3141         GNU Coding Standards for --help and --version.
3142         * doc/gcov.texi: Document long options.
3143         Addresses part of PR other/704.
3144
3145 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3146
3147         * pa.c (output_move_double): Fix typo in double load.
3148
3149 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3150
3151         * config/h8300/h8300.c (h8300_encode_label): Compute a string
3152         before passing it to ggc_alloc_string.
3153
3154 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3155
3156         * config/m68k/3b1.h: Fix comment formatting.
3157         * config/m68k/3b1g.h: Likewise.
3158         * config/m68k/a-ux.h: Likewise.
3159         * config/m68k/amix.h: Likewise.
3160         * config/m68k/apollo68.h: Likewise.
3161         * config/m68k/atari.h: Likewise.
3162         * config/m68k/aux-exit.c: Likewise.
3163         * config/m68k/ccur-GAS.h: Likewise.
3164         * config/m68k/crds.h: Likewise.
3165         * config/m68k/dpx2.h: Likewise.
3166         * config/m68k/dpx2g.h: Likewise.
3167         * config/m68k/hp310.h: Likewise.
3168         * config/m68k/hp320.h: Likewise.
3169         * config/m68k/isi.h: Likewise.
3170         * config/m68k/linux.h: Likewise.
3171         * config/m68k/lynx.h: Likewise.
3172         * config/m68k/m68k-psos.h: Likewise.
3173         * config/m68k/m68k.c: Likewise.
3174         * config/m68k/m68k.h: Likewise.
3175         * config/m68k/m68k.md: Likewise.
3176         * config/m68k/m68kelf.h: Likewise.
3177         * config/m68k/m68kv4.h: Likewise.
3178         * config/m68k/mot3300.h: Likewise.
3179         * config/m68k/news.h: Likewise.
3180         * config/m68k/next.h: Likewise.
3181         * config/m68k/pbb.h: Likewise.
3182         * config/m68k/plexus.h: Likewise.
3183         * config/m68k/sgs.h: Likewise.
3184         * config/m68k/sun3.h: Likewise.
3185         * config/m68k/tower.h: Likewise.
3186         * config/m68k/vxm68k.h: Likewise.
3187
3188 2001-10-31  DJ Delorie  <dj@redhat.com>
3189
3190         * config/mips/mips.h (mips_cache_flush_func): Prototype.
3191         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
3192         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
3193         * config/mips/mips.c (mips_cache_flush_func): New.
3194         * doc/invoke.texi: Document the new options.
3195
3196 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
3197
3198         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
3199         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
3200
3201         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
3202
3203         * config/cris/cris.c: Include output.h after tree.h but before
3204         target.h.
3205
3206 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
3207
3208         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
3209         (INTL_SUBDIRS): Just intl.
3210         (.SUFFIXES): Add .gmo .po .pox.
3211         (native): Also depend on build-@POSUB@.
3212         (intl.all, intl.install): Depend on config.h and things it includes.
3213         (po-generated): New target; depend on c-parse.c and tradcif.c.
3214         (install-normal): Also depend on install-@POSUB@.
3215         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
3216         (build-, install-, build-po, update-po, install-po,
3217         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
3218
3219         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
3220         * configure.in: Don't munge XGETTEXT.  Don't generate
3221         po/Makefile.in.
3222         * configure: Regenerate.
3223
3224         * exgettext: Delete.
3225         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
3226         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
3227
3228 2001-10-31  Kazu Hirata  <kazu@hxi.com>
3229
3230         * config/h8300/h8300.md (two anonymous patterns): New.
3231
3232 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
3233
3234         * tree.h (tree_index): Add support for V16QI and V8HI.
3235         (V8HI_type_node): New.
3236         (V16QI_type_node): New.
3237
3238         * tree.c (build_common_tree_nodes_2): Same.
3239
3240         * c-common.c (type_for_mode): Same.
3241
3242 2001-10-31  Kazu Hirata  <kazu@hxi.com>
3243
3244         * config/i386/att.h: Fix comment formatting.
3245         * config/i386/beos-elf.h: Likewise.
3246         * config/i386/bsd.h: Likewise.
3247         * config/i386/bsd386.h: Likewise.
3248         * config/i386/crtdll.h: Likewise.
3249         * config/i386/cygwin.asm: Likewise.
3250         * config/i386/cygwin.h: Likewise.
3251         * config/i386/djgpp.h: Likewise.
3252         * config/i386/freebsd-aout.h: Likewise.
3253         * config/i386/freebsd.h: Likewise.
3254         * config/i386/gas.h: Likewise.
3255         * config/i386/i386-interix.h: Likewise.
3256         * config/i386/i386-protos.h: Likewise.
3257         * config/i386/i386.c: Likewise.
3258         * config/i386/i386.h: Likewise.
3259         * config/i386/i386.md: Likewise.
3260         * config/i386/i386elf.h: Likewise.
3261         * config/i386/interix.c: Likewise.
3262         * config/i386/isc.h: Likewise.
3263         * config/i386/isccoff.h: Likewise.
3264         * config/i386/iscdbx.h: Likewise.
3265         * config/i386/linux.h: Likewise.
3266         * config/i386/lynx.h: Likewise.
3267         * config/i386/mingw32.h: Likewise.
3268         * config/i386/netbsd-elf.h: Likewise.
3269         * config/i386/next.h: Likewise.
3270         * config/i386/osf1elf.h: Likewise.
3271         * config/i386/osfrose.h: Likewise.
3272         * config/i386/sco5.h: Likewise.
3273         * config/i386/seq-gas.h: Likewise.
3274         * config/i386/seq-sysv3.h: Likewise.
3275         * config/i386/sequent.h: Likewise.
3276         * config/i386/sol2.h: Likewise.
3277         * config/i386/sun386.h: Likewise.
3278         * config/i386/uwin.asm: Likewise.
3279         * config/i386/uwin.h: Likewise.
3280         * config/i386/vxi386.h: Likewise.
3281         * config/i386/win32.h: Likewise.
3282         * config/i386/winnt.c: Likewise.
3283         * config/i386/xm-cygwin.h: Likewise.
3284         * config/i386/xm-mingw32.h: Likewise.
3285
3286 2001-10-31  Kazu Hirata  <kazu@hxi.com>
3287
3288         * builtins.def: Fix comment typos.
3289         * config/alpha.c: Likewise.
3290         * config/arm/arm.c: Likewise.
3291         * config/avr/avr.h: Likewise.
3292         * config/d30v/d30v.c: Likewise.
3293         * config/d30v/d30v.h: Likewise.
3294         * config/d30v/d30v.md: Likewise.
3295         * config/dsp16xx/dsp16xx.c: Likewise.
3296         * config/fr30/fr30.c: Likewise.
3297         * config/fr30/fr30.md: Likewise.
3298         * config/i386/i386.c: Likewise.
3299         * config/i860/i860.c: Likewise.
3300         * config/i960/i960.c: Likewise.
3301         * config/ia64/ia64.c: Likewise.
3302         * config/mips/mips.c: Likewise.
3303         * config/pa/pa.c: Likewise.
3304         * config/rs6000/rs6000.c: Likewise.
3305         * config/s390/s390.c: Likewise.
3306         * config/sparc/sparc.c: Likewise.
3307
3308 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3309
3310         * config/mips/elf.h: Fix comment formatting.
3311         * config/mips/elf64.h: Likewise.
3312         * config/mips/iris5.h: Likewise.
3313         * config/mips/iris5gas.h: Likewise.
3314         * config/mips/iris6.h: Likewise.
3315         * config/mips/isa3264.h: Likewise.
3316         * config/mips/linux.h: Likewise.
3317         * config/mips/mips.c: Likewise.
3318         * config/mips/mips.h: Likewise.
3319         * config/mips/mips.md: Likewise.
3320         * config/mips/mips16.S: Likewise.
3321         * config/mips/netbsd.h: Likewise.
3322         * config/mips/osfrose.h: Likewise.
3323         * config/mips/r3900.h: Likewise.
3324         * config/mips/sni-svr4.h: Likewise.
3325         * config/mips/svr4-t.h: Likewise.
3326         * config/mips/ultrix.h: Likewise.
3327
3328 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
3329
3330         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
3331         when we update head->current.
3332
3333 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
3334
3335         * tree.c (id_string_size): Remove.
3336         (dump_tree_statistics): Update.
3337         * toplev.c (compile_file): If dumping stats, dump tree stats too.
3338
3339 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
3340
3341         * sched-rgn.c (schedule_insns): Fix comment.
3342
3343 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
3344
3345         * configure.in: Correct previous change: don't assume that
3346         gas's version number _isn't_ the last thing on the line, or
3347         isn't the only number on the line, either.
3348         * configure: Regenerate.
3349
3350 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3351
3352         * cfgcleanup.c: Fix a comment typo.
3353
3354 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3355
3356         * alias.c: Fix comment formatting.
3357         * recog.c: Likewise.
3358         * config/cris/cris.c: Likewise.
3359         * config/cris/cris.h: Likewise.
3360         * config/i960/i960.c: Likewise.
3361         * config/i960/i960.h: Likewise.
3362
3363 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3364
3365         * config/arm/arm.c: Fix a comment typo.
3366         * config/arm/arm.h: Likewise.
3367         * config/ia64/ia64.c: Likewise.
3368
3369 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
3370
3371         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
3372         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
3373         * rtl.h (set_unique_reg_note): Change return value.
3374         * gcse.c (try_replace_reg): Use set_unique_reg_note.
3375         * cse.c (cse_insn): Likewise.
3376         * expr.c (emit_move_insn): Likewise.
3377         * explow.c (force_reg): Likewise.
3378         * local-alloc (update_equiv_regs): Likewise.
3379         * loop.c (move_moveables, load_mems): Likewise.
3380         * reload (find_reloads): Likewise.
3381
3382 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
3383
3384         Localization fixes.
3385         * c-decl.c (parmlist_tags_warning, start_struct,
3386         check_for_loop_decls): Separate messages for struct, union and
3387         enum cases to allow for languages in which they have different
3388         genders.
3389         * c-format.c (scanf_flag_specs): Separate short and long name of
3390         the assignment suppression feature.
3391         (check_format_types): Localize "pointer" and "different types"
3392         strings.
3393         * c-lex.c (lex_number): Localize "an unsigned long int" and
3394         related strings.
3395         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
3396         warning message.
3397         * c-typeck.c (build_unary_up): Separate messages for increment and
3398         decrement cases to allow for languages in which they use different
3399         articles.  Localize the strings "increment" and "decrement" in one
3400         case.
3401
3402 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
3403
3404         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
3405         when no changes has been made.
3406
3407         * gcse.c (reg_set_bitmap): Turn into reg_set.
3408         (modify_mem_list_set, canon_modify_mem_list_set)
3409         (clear_modify_mem_tables, free_modify_mem_tables): New.
3410         (gcse_main); Use free_modify_mem_tables.
3411         (free_gcse_mem): Likewise; free the bitmaps.
3412         (alloc_gcse_main): Initialize the bitmaps.
3413         (canon_list_insert): Set canon_modify_mem_list_set.
3414         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
3415         (compute_hash_table): Use clear_modify_mem_tables.
3416         (reset_opr_set_tables): Likewise.
3417         (oprs_not_set_p): reg_set_bitmap is regset.
3418         (mark_set, mark_clobber): Likewise.
3419
3420         * df.h (DF_EQUIV_NOTES): New constant.
3421         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
3422         when asked for.
3423
3424         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
3425         (init_regions, schedule_insns): Conditionalize the checking
3426         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
3427
3428 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
3429
3430         * i386.md (movti_rex64 splitter): Fix condition.
3431
3432 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
3433
3434         * configure.in: Do not assume that gas's version number is the
3435         last thing on the first line of as --version output.
3436         * configure: Regenerate.
3437
3438         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
3439         MT_WARNING, MT_ERROR, MT_FATAL.
3440         (main): Call gcc_init_libintl.
3441         (v_message): Call gettext on msgid and "warning: "
3442         * tradcif.y: Include intl.h.
3443         (yyerror): Make parameter definition consistent with
3444         prototype.  Call gettext on msgid argument.
3445
3446 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3447
3448         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
3449         warnings.
3450
3451         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
3452
3453 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3454
3455         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
3456         before referencing it.
3457
3458 2001-10-26  DJ Delorie  <dj@redhat.com>
3459
3460         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
3461         override -G, and force -G0.
3462
3463 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3464
3465         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
3466         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
3467         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
3468         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
3469
3470         * loop.h (struct induction): Rename ext_dependant to
3471         ext_dependent.
3472         * loop.c: Change all uses.
3473         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
3474         All callers changed.
3475         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
3476
3477 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3478
3479         * c-parse.in (expr_no_commas, primary), c-typeck.c
3480         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
3481
3482 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
3483
3484         Undo assemble_name change in earlier patch.
3485
3486 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
3487
3488         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
3489         determining the type of the receiver, do not check that TREE_CODE
3490         of receiver is CALL_EXPR before calling receiver_is_class_object().
3491         (receiver_is_class_object): For the GNU runtime: recognize
3492         the case that the receiver is self in a class method context.
3493         Check that TREE_CODE of receiver is CALL_EXPR when checking that
3494         the receiver is a call to objc_get_class.
3495
3496 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3497
3498         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
3499
3500 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3501
3502         * Makefile.in (OBJS): Put all files in alphabetical order.
3503
3504         * dwarf2out.c (add_const_value_attribute): Fix error in last
3505         change.
3506
3507 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
3508
3509         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
3510         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
3511         fix warning.
3512         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
3513         (life_analysis): call purge_all_dead_edges after deleting noops.
3514         (delete_noop_move): Do not purge CFG.
3515         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
3516
3517 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
3518
3519         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
3520         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
3521         (ASM_GLOBALIZE_LABEL): Use assemble_name.
3522         (ASM_OUTPUT_COMMON): Likewise.
3523         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
3524         (rs6000_output_function_epilogue): Likewise.
3525         (output_mi_thunk): Fix typo.
3526         (rs6000_output_symbol_ref): Use assemble_name.
3527         (output_toc): Likewise.
3528         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
3529         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
3530         assemble_name calls STRIP_NAME_ENCODING.
3531         (ASM_OUTPUT_LABEL): Use assemble_name.
3532         (ASM_GLOBALIZE_LABEL): Likewise.
3533         (ASM_DECLARE_FUNCTION_NAME): Likewise.
3534         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
3535         (ASM_OUTPUT_LOCAL): Likewise.
3536
3537 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3538
3539         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
3540         (expand_builtin_apply, expand_builtin_return): Likewise.
3541         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
3542
3543 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
3544
3545         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3546         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
3547         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
3548         configure, configure.in, except.c, except.h, flow.c, function.c,
3549         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
3550         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
3551         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
3552         unroll.c: Fix spelling errors.
3553
3554         * doc/extend.texi, doc/invoke.texi: Fix spelling.
3555
3556         * doc/gcc.texi: Document use of "dependent" and American spelling.
3557
3558 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
3559
3560         * expr.c (emit_group_load): Support CONCATs by storing them to memory
3561         and reloading.
3562
3563 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3564
3565         * expr.c (store_constructor_field): Only call adjust_address on MEM.
3566
3567 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
3568
3569         * genrecog.c (write_switch):  Output if before switch for
3570         DT_elt_zero_wide_safe.
3571
3572 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3573
3574         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
3575         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
3576         (FUNCTION_PROFILER): Const-ify.
3577         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
3578         (eliminate_constant_term, assemble_name, output_addr_const):
3579         Remove declarations.
3580         (ptr_half_pic_address_p, half_pic_hash): Prototype.
3581         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
3582         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
3583         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
3584         (half_pic_declare, half_pic_external): Const-ify.
3585         * toplev.c: Include "halfpic.h".
3586
3587 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
3588
3589         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
3590         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
3591         config/i386/i386.c, config/i386/i386-interix.h,
3592         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
3593         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
3594         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
3595         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
3596         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
3597         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
3598         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
3599         spelling errors.
3600
3601         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3602         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
3603         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
3604         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
3605         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
3606         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
3607         system.h, toplev.c: Fix spelling errors.
3608
3609 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3610
3611         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
3612
3613         * dwarf2out.c (reg_number): Abort if pseudo.
3614         (reg_loc_descriptor): Return 0 if pseudo.
3615         (is_based_loc): Return 0 if pseudo.
3616         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
3617         recursive calls.
3618         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
3619         (loc_descriptor): Return 0 if can't find location and handle 0
3620         return from recursive calls.
3621         (loc_descriptor_from_tree): Likewise.
3622         Fix handling of indirect.
3623         Also return 0 for PLACEHOLDER_EXPR.
3624         Clean up COMPONENT_REF cases.
3625         (add_AT_location_descriptor): Simplify, but handle 0 return from
3626         loc_descriptor.
3627         (add_const_value_attribute): Avoid shift count warning.
3628         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
3629         Set comp_unit_die as context if not in function.
3630
3631         * config/mips/mips-protos.h: Break up long lines.
3632         Remove needless #ifdef/#endif blocks.
3633         Don't declare functions declared in file made by genpreds or recog.h.
3634         * config/mips/mips.c (mips_output_function_prologue): TSIZE
3635         is now HOST_WIDE_INT; delete unneeded casts.
3636         * config/mips/mips.h: Don't use #elif.
3637
3638         * expr.c (stor_constructor_field): Always call adjust_address.
3639         Copy TARGET before changing its alias set.
3640         (store_field): Likewise, for TO_RTX.
3641         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
3642         replacement.
3643         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
3644         (find_placeholder): Return 0 if can't find object.
3645         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
3646         returns 0.
3647
3648 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
3649
3650         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
3651
3652 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
3653
3654         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
3655         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
3656         (merge_blocks): Properly udpate life after making edge nonfallthru.
3657         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
3658
3659 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3660
3661         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
3662
3663 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3664
3665         * c-typeck.c (convert_arguments): When comparing for enumeral
3666         type equality, use TYPE_MAIN_VARIANT.
3667         * gcc.dg/Wconversion.c: New tests.
3668
3669 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3670
3671         * s390/s390.c: Fix comment typos.
3672         * s390/s390.h: Likewise.
3673         * s390/s390.md: Likewise.
3674
3675 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3676
3677         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
3678         (walk_tree): Use it for tail calls where appropriate.
3679
3680 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3681
3682         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
3683         non-local label_refs.
3684
3685 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3686
3687         * config/h8300/h8300.md (4 anonymous patterns): New.
3688
3689 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3690
3691         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
3692         algorithm through the shift_info structure.
3693         (emit_a_shift): Update the use of get_shift_alg.
3694
3695 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
3696
3697         * sched-rgn.c: Remove bitset typedef.
3698         Change bitset to sbitmap in prototypes / variable types.
3699         Remove bbset_size.
3700         Remove edgeset_bits.
3701         Remove edgeset_size.
3702         s/BITSET_ADD/SET_BIT/g
3703         s/BITSET_INVERT/sbitmap_ones/g
3704         s/BITSET_INTER/sbitmap_a_and_b/g
3705         s/BITSET_UNION/sbitmap_a_or_b/g
3706         s/BITSET_DIFFER/sbitmap_difference/g
3707         s/bitset_member/TEST_BIT/g
3708         (BITSET_*): Removed.
3709         (bitset_member): Removed.
3710         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
3711         EXECUTE_IF_SET_IN_SBITMAP.
3712         (split_edges): Rewrite, use sbitmap functions instead of bitset
3713         operations.
3714         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
3715
3716 2001-10-26  Andreas Schwab  <schwab@suse.de>
3717
3718         * reload1.c (emit_input_reload_insns): Fix parens in last
3719         (undocumented) change that was supposed to change only whitespace.
3720
3721 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3722
3723         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
3724
3725         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
3726         ASM_OPERANDS.
3727
3728 2001-10-26  Andreas Jaeger  <aj@suse.de>
3729
3730         * flow.c (clear_log_links): Remove unused variable.
3731         * cfgcleanup.c (cleanup_cfg): Likewise.
3732
3733 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3734
3735         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
3736         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
3737
3738 2001-10-26  Richard Henderson  <rth@redhat.com>
3739
3740         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
3741         rename PV_REG to R27_REG.
3742         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
3743         (REG_CLASS_FROM_LETTER): Update.
3744         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
3745         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
3746         (udivsi3, modsi3, umodsi3): Likewise.
3747         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
3748
3749 2001-10-26  Richard Henderson  <rth@redhat.com>
3750
3751         * cfg.c (clear_aux_for_blocks): Split out of ...
3752         (free_aux_for_blocks): here.
3753         (clear_aux_for_edges): Split from ...
3754         (free_aux_for_edges): here.
3755         * basic-block.h: Declare them.
3756         * lcm.c (compute_antinout_edge): Use them.
3757         (compute_laterin, compute_available, compute_nearerout): Likewise.
3758         (optimize_mode_switching): Likewise.
3759
3760 2001-10-26  Richard Henderson  <rth@redhat.com>
3761
3762         * Makefile.in (unstage*): Remove as, ld, collect-ld before
3763         moving everything back to the main build directory.
3764
3765 2001-10-26  Christopher Faylor  <cgf@redhat.com>
3766
3767         * config/i386/cygwin.h: Search target specific include directory, if
3768         appropriate.
3769
3770 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3771
3772         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
3773         of macro guards. Fix #endif comment.
3774
3775         * output.h (default_exception_section, default_eh_frame_section):
3776         Move prototypes outside of macro guard.
3777
3778         * crtstuff.c: Fix #endif comment.
3779
3780 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
3781
3782         * doc/md.texi (movMM): Clarify semantics of storing into a
3783         non-paradoxical SUBREG.
3784
3785 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
3786
3787         * langhooks.c (lang_hook_default_clear_binding_stack): New.
3788         (lang_hook_default_get_alias_set): Move next to other alias
3789         hooks.
3790         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
3791         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
3792         (LANG_HOOKS_INITIALIZER): Add it.
3793         * toplev.h (struct lang_hooks): Add clear_binding_stack.
3794         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
3795         instead of a loop calling poplevel.
3796
3797 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
3798
3799         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
3800         occurrences of #elif with #if...#endif.
3801
3802 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3803
3804         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
3805
3806 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3807
3808         * alias.c (can_address_p): No longer static.
3809         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
3810         Return 0 if all parameters are default values.
3811         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
3812         (adjust_address_1): Try harder to compute a size.
3813         * expr.c (expand_assignment, store_constructor): If can't address,
3814         set MEM_KEEP_ALIAS_SET_P.
3815         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
3816         (store_field): Likewise.
3817         (store_constructor): Simplify call to store_constructor_field.
3818         * expr.h (can_address_p): New declaration.
3819         * gensupport.c (gen_rtx_CONST_INT): New function.
3820         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
3821         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
3822         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
3823
3824         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
3825
3826 2001-10-24  Christopher Faylor  <cgf@redhat.com>
3827
3828         * config/i386/cygwin.h: Use proper path for mingw crt files when
3829         -mno-cygwin.
3830
3831 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3832
3833         * dwarf2out.c (file_info_cmp): Always return consistent results.
3834
3835 2001-10-24  Roger Sayle <roger@eyesopen.com>
3836
3837         * stmt.c (expand_end_case): Index jumptables from zero for
3838         suitably small values of minval.
3839
3840 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
3841
3842         * stor-layout.c (place_union_field): If any field was aligned with
3843         attribute aligned, set record type's TYPE_USER_ALIGN.
3844         (place_field): Likewise.
3845         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
3846         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
3847
3848 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
3849
3850         * c-common.h (struct c_common_identifier): Remove rid_code field.
3851         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
3852
3853         * c-typeck.c (constructor_designated): New local flag.
3854         (struct constructor_stack): Add "designated" field to match.
3855         (start_init): Clear it.
3856         (really_start_incremental_init, push_init_level): Push and
3857         clear it.
3858         (pop_init_level): Pop it.
3859         (set_designator): Set it.
3860
3861         (pop_init_level): Suppress "missing initializer" warnings if
3862         constructor_designated is true.
3863         (process_init_element): Suppress warning about union
3864         initialization under traditional C, if constructor_designated
3865         is true.
3866
3867 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3868
3869         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
3870         change.
3871
3872 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
3873
3874         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
3875
3876 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
3877
3878         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
3879         the node was already a set to a constant.
3880
3881 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3882
3883         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
3884         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
3885
3886 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3887
3888         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
3889         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
3890         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
3891         * s390.c (s390_final_chunkify): Don't use string concatenation.
3892         (s390_function_prologue, s390_function_epilogue): Const-ify.
3893         * s390.h (FUNCTION_PROFILER): Remove unused variable.
3894
3895 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
3896
3897         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
3898         prototypes.
3899
3900 2001-10-23  Stan Shebs  <shebs@apple.com>
3901
3902         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
3903         -traditional-cpp in first-stage compilation.
3904
3905 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3906
3907         * gensupport.c (target_flags): Add.
3908
3909 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
3910
3911         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
3912         if needed.
3913         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
3914         * except.c (expand_builtin_frob_return_addr): Likewise.
3915         (expand_builtin_eh_return): Likewise.
3916         * stmt.c (expand_computed_goto): Likewise.
3917         * explow.c (memory_address): Likewise.
3918         (allocate_dynamic_stack_space): Clean up predicate testing.
3919         (probe_stack_range): Convert SIZE to Pmode.
3920         * calls.c (rtx_for_function_call): Only call convert_memory_address
3921         if needed.
3922         Pass function call operand as ptr_mode, not Pmode.
3923         * expr.c (expand_assignment): Clean up calls to convert_memory
3924         address by only doing so when needed and making offsets Pmode.
3925         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
3926         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
3927         is in Pmode, not ptr_mode.
3928
3929 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3930
3931         * darwin-protos.h (constructor_section, destructor_section,
3932         mod_init_section, mod_term_section): Prototype.
3933         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
3934         Const-ify.
3935         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
3936         Likewise.
3937         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
3938         objc_section_init declaration.
3939         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
3940         (objc_section_init, try_section_alias): Make static.
3941         (alias_section): Make static and hide unused function.
3942         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
3943
3944 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3945
3946         * alias.c (can_address_p): Compnonents are not addressable if
3947         the containing type has alias set 0.
3948         (get_alias_set): Rework to use STRIP_NOPS.
3949         Only call front-end routine on object, type, or object with
3950         NOPs stripped, not inner values.
3951         Use language hook to call front-end routine.
3952         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
3953         (expand_builtin_apply): Call set_mem_align on MEMs we make.
3954         Don't pass alignment to emit_block_move.
3955         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
3956         (expand_builtin_memset): Likewise, but for clear_storage.
3957         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
3958         and remove C++ specific parts.
3959         * c-common.h (c_common_get_alias_set): Add declaration.
3960         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
3961         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
3962         (save_fixed_argument_area): Call set_mem_align.
3963         Remove alignment in call to emit_block_move.
3964         (emit_library_call_value_1, store_one_arg): Likewise.
3965         (target_for_arg): Remove; disabled long ago.
3966         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
3967         once and similar cleanups.
3968         (offset_address): Use proper introductory comment.
3969         * expr.c (emit_block_move): Use alignment from that of MEM args, not
3970         from explicit operand; all callers changed.
3971         (clear_storage): Likewise.
3972         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
3973         (store_field): Remove kludge on alias set used for to_rtx.
3974         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
3975         (expand_expr_unaligned): Call set_mem_attributes instead of
3976         set_mem_alias_set.
3977         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
3978         * function.c (assign_stack_temp_for_type): Set MEM alignment.
3979         (expand_function_end): Track MEM attributes of trampolines.
3980         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
3981         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
3982         attributes from original.
3983         * langhooks.c (lang_hook_default_get_alias_set): New function.
3984         (hook_get_alias_set_0): New function.
3985         * langhooks.h (hook_get_alias_set_0): New declaration.
3986         (lang_hook_default_get_alias_set): Likewise.
3987         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
3988         * reload1.c (alter_reg): Use adjust_address_nv.
3989         * rtl.c (get_mode_alignment): Moved to here.
3990         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
3991         change default if unknown from 1 to BITS_PER_UNIT.
3992         * stor-layout.c (get_mode_alignment): Remove from here.
3993         * toplev.h (struct lang_hoks): Add get_alias_set field.
3994         * tree.h (lang_get_alias_set): Delete declaration.
3995         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
3996         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
3997         (ix86_va_arg): Likewise.
3998         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
3999         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4000         * config/sparc/sparc.c (sparc_va_arg): Likewise.
4001         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
4002         (expand_block_move_mem): Remove dead code.
4003
4004 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4005
4006         * c-common.c (warn_div_by_zero): New.
4007         * c-common.h (warn_div_by_zero): New.
4008         * c-decl.c (c_decode_option): Take it on the command line.
4009         * c-typeck.c (build_binary_op): Warn about division by zero.
4010         * doc/invoke.texi: Document the new command line option, fix
4011         documentation of -Wmultichar.
4012         * testsuite/gcc.dg/divbyzero.c: New tests.
4013         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
4014
4015 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
4016
4017         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
4018
4019         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
4020         to avoid update_life_info call.
4021         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
4022         * cfgcleanup.c (bb_flags): New enum.
4023         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
4024         (notice_new_block, update_forwarder_flag): New functions.
4025         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
4026         (try_forward_edges): Likewise; update flags.
4027         (merge_blocks): Likewise.
4028         (outgoing_edges_match): Likewise.
4029         (try_crossjump_to_edge): Likewise.
4030         (try_optimize_cfg): Likewise; initialize and clear the flags;
4031         recompute life info if needed.
4032         (cleanup_cfg): No need to clear aux pointers.
4033
4034 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
4035
4036         * config/i386/i386.c (override_options): Default to minimum
4037         stack alignment when optimizing for code size.
4038         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
4039         change.
4040
4041         * config/i386/i386.c (override_options): Set upper limit of
4042         -mpreferred-stack-boundary to 12.
4043
4044 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
4045
4046         * recog.c (peephole2_optimize): Add default case to switch.
4047
4048 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
4049
4050         * doc/gcc.texi (Sending Patches): Remove.
4051
4052 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
4053
4054         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
4055         fields when comparing.
4056
4057 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4058
4059         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
4060         * arm.c (HOST_INT, HOST_UINT): Likewise.
4061
4062 2001-10-22  Stan Shebs  <shebs@apple.com>
4063
4064         * config/darwin-protos.h (darwin_exception_section): Declare.
4065         (darwin_eh_frame_section): Declare.
4066
4067 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
4068
4069         * i386.md (movti_rex64): Fix mode.
4070
4071 2001-10-22  Stan Shebs  <shebs@apple.com>
4072
4073         * target.h (struct gcc_target): Add asm_out.exception_section,
4074         asm_out.eh_frame_section.
4075         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
4076         (TARGET_ASM_EH_FRAME_SECTION): New.
4077         (TARGET_INITIALIZER): Update.
4078         * output.h (default_exception_section): Declare.
4079         (default_eh_frame_section): Declare.
4080         * dwarf2out.c: Include target.h.
4081         (output_call_frame_info): Call target hook for eh frames.
4082         (default_eh_frame_section): New function.
4083         * except.c: Include target.h.
4084         (output_function_exception_table): Call target hook for exception
4085         section.
4086         * varasm.c (default_exception_section): Rename from
4087         exception_section, remove EXCEPTION_SECTION macro.
4088
4089         * config/darwin.h (darwin_eh_frame_section): New function.
4090         (EXCEPTION_SECTION): Remove.
4091         (TARGET_ASM_EXCEPTION_SECTION): Define.
4092         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
4093         (nextstep_exception_section): New function.
4094         (nextstep_eh_frame_section): New function.
4095         (TARGET_ASM_EXCEPTION_SECTION): Define.
4096         (TARGET_ASM_EH_FRAME_SECTION): Define.
4097
4098         * config/pa/som.h (EXCEPTION_SECTION): Remove.
4099         (TARGET_ASM_EXCEPTION_SECTION): Define.
4100         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
4101         (EXCEPTION_SECTION): Remove.
4102         (TARGET_ASM_EXCEPTION_SECTION): Define.
4103         * config/stormy16/stormy16.h: Remove comments referencing
4104         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
4105
4106         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
4107         TARGET_ASM_EH_FRAME_SECTION.
4108
4109 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
4110
4111         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
4112         terms.
4113
4114         * c-format.c: Fix spelling typo in comment.
4115
4116         * sched-int.h: Fix typo in GCC preamble.
4117
4118 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4119
4120         PR debug/4252
4121         * doc/invoke.texi: Remove references to -fdump-translation-unit.
4122
4123 2001-10-22  Richard Henderson  <rth@redhat.com>
4124
4125         * config/i386/i386.c (ix86_expand_clear): New.
4126         * config/i386/i386-protos.h: Declare it.
4127         * config/i386/i386.md (setcc peep2s): Use it.
4128         (movsi_xor): Unexport.
4129
4130 2001-10-22  Richard Henderson  <rth@redhat.com>
4131
4132         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
4133         free_EXPR_LIST_list for LOG_LINKS.
4134
4135 2001-10-21  Robert Lipe  <robertlipe@usa.net>
4136
4137         * config/i386/i386.c (sco_asm_named_section): Delete.
4138         (sco_asm_out_constructor): Delete.
4139         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
4140         (ASM_OUTPUT_DOUBLE_INT): Likewise.
4141         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
4142         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
4143         (EXCEPTION_SECTION): Delete EH scn renaming hack.
4144
4145 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4146
4147         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
4148         and/or fold extra calls into fewer ones.
4149         * collect2.c (dump_file): Likewise.
4150         * cppexp.c (parse_number): Likewise.
4151         * cpplex.c (_cpp_lex_direct): Likewise.
4152         * final.c (output_asm_insn, asm_fprintf): Likewise.
4153         * fix-header.c (inf_scan_ident, main): Likewise.
4154         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
4155         Likewise.
4156         * fold-const.c (real_hex_to_f): Likewise.
4157         * gen-protos.c (parse_fn_proto): Likewise.
4158         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
4159         * genrecog.c (change_state, write_action): Likewise.
4160         * gensupport.c (shift_output_template): Likewise.
4161         * local-alloc.c (requires_inout): Likewise.
4162         * mips-tfile.c (IS_ASM_IDENT): Likewise.
4163         * protoize.c (is_id_char, main): Likewise.
4164         * real.c (asctoeg): Likewise.
4165         * recog.c (asm_operand_ok): Likewise.
4166         * reload.c (find_reloads): Likewise.
4167         * scan.c (scan_identget_token): Likewise.
4168         * sched-vis.c (print_value): Likewise.
4169         * stringpool.c (ggc_alloc_string): Likewise.
4170         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
4171         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
4172         * tradcpp.c (rescan): Likewise.
4173         * tree.c (clean_symbol_name): Likewise.
4174         * varasm.c (decode_reg_name): Likewise.
4175
4176         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
4177         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
4178         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
4179         * m88k.c (output_ascii): Likewise.
4180         * m88k.h (OVERRIDE_OPTIONS): Likewise.
4181         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
4182         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
4183         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
4184
4185 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4186
4187         * langhooks.c (lang_hook_default_do_nothing,
4188         lang_hook_default_decode_option): New defaults.
4189         * langhooks.h: Make hooks unconditional and non-NULL.
4190         * toplev.c (compile_file, toplev_main): Update.
4191         * toplev.h: Update comments.
4192         * objc/objc-act.c (lang_hooks): Update to new paradigm.
4193
4194 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4195
4196         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
4197
4198         * system.h (IN_RANGE): New macro.
4199
4200 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
4201
4202         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
4203         INTLDEPS variable, which does not include $LIBICONV.
4204         * Makefile.in: Use INTLDEPS in LIBDEPS.
4205         * configure: Regenerate.
4206
4207 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4208
4209         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
4210         * cpplex.c (lex_percent, lex_dot): Remove.
4211         (get_effective_char, skip_block_comment, skip_line_comment,
4212         parse_identifier_slow, parse_number, parse_string, save_comment,
4213         _cpp_lex_direct): Update to do lookback freely.
4214         (IF_NEXT_IS, BACKUP): New macros.
4215         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
4216         * cppmacro.c (paste_tokens): Update.
4217
4218 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
4219
4220         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
4221
4222 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
4223
4224         * reload1.c (reload): Check CONSTANT_P before calling
4225         LEGITIMATE_PIC_OPERAND_P.
4226         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
4227         workaround of 2001-10-13.
4228
4229 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
4230
4231         * i386.c (split_di): Handle splitting of DFmode.
4232
4233 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4234
4235         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
4236         (adjust_address_1, offset_address): Likewise.
4237
4238         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
4239         (output_asm_insn): Call it for each line output.
4240         Don't record an operand more than once.
4241
4242         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
4243         * main.c: Include config.h and system.h, but not ansidecl.h.
4244         * Makefile.in (main.o): Update accordingly.
4245
4246 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
4247
4248         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
4249
4250 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
4251
4252         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
4253         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
4254         Break out from ...
4255         (find_sub_basic_blocks): ... here;
4256         (find_many_sub_basic_blocks): New.
4257         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
4258
4259         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
4260
4261         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
4262
4263         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
4264
4265         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
4266         * flow.c (update_life_info): Measure time.
4267         * c-decl.c: Include timevar.h
4268         (c_expand_body): Measure time.
4269         * toplev.c (rest_of_compilation): Measure time of mode switching
4270         separately.
4271         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
4272
4273         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
4274         (lang_independent_options): Add asynchronous-unwind-tables
4275         (toplev_main): flag_asynchronous_unwind_tables implies
4276         flag_unwind_tables.
4277         * flags.h (flag_asynchronous_unwind_tables): Declare.
4278         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
4279         flag_asynchronous_unwind_tables.
4280         (output_call_frame_info): Likewise.
4281         * invoke.texi (-fasynchronous-unwind-tables): Document.
4282         * i386.c (optimization_options): Enable
4283         flag_asynchronous_unwind_tables.
4284
4285         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
4286         * i386.md (s* expanders): Destination is QImode.
4287
4288         * toplev.c (rest_of_compilation): Do not call clear_log_links.
4289         * rtl.h (clear_log_links): Kill.
4290         * flow.c (clear_log_links): Make static; accept blocks parameter;
4291         do no clear life info.
4292         (update_life_info): Call clear_log_links.
4293
4294         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
4295
4296 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4297
4298         * cpplex.c (handle_newline, skip_escaped_newlines,
4299         get_effective_char, skip_block_comment, skip_line_comment,
4300         parse_identifier_slow, parse_number, parse_string,
4301         _cpp_lex_direct): Update to do more stepping back.
4302         (trigraph_ok): Similarly.  Rename trigraph_p.
4303         (SAVE_STATE, RESTORE_STATE): Remove.
4304         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
4305
4306         * cpplib.c (destringize): Rename destringize_and_run, and
4307         call run_directive directly.
4308         (_cpp_do__Pragma): Simplify.
4309
4310 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4311
4312         * pe.c (arm_pe_unique_section): Const-ify.
4313         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
4314         (switch_to_section): Add static prototype.
4315
4316         * output.h (drectve_section): Prototype.
4317
4318 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4319
4320         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
4321         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
4322         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
4323         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
4324         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4325         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
4326         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
4327         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
4328         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
4329         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
4330         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
4331         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
4332         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
4333         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
4334         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
4335         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
4336         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
4337         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
4338         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
4339         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
4340         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
4341         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
4342         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
4343         cris-*-none, cris-*-linux*: Update ${tmfile} list.
4344         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
4345         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
4346         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
4347         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
4348         v850-*-*): Delete superflous ${cpu_type} setting.
4349         * config/linux.h: Delete svr4.h include.
4350         (SET_ASM_OP): Delete.
4351         * config/netware.h (INT_ASM_OP): Undef before define.
4352         * config/ptx4.h: Delete elfos.h include.
4353         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
4354         * config/svr4.h: Delete elfos.h include. Update commentary.
4355         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
4356         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
4357         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
4358         config/v850/v850.h: Delete svr4.h include.
4359         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
4360         config/m68k/m68kv4.h, config/m88k/sysv4.h,
4361         config/sparc/sysv4.h: Update includes.
4362         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
4363         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
4364         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
4365         config/m88k/dguxbcs.h: Delete includes.
4366         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
4367         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
4368         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
4369         it.
4370         * config/m88k/dgux.h: Delete include.
4371         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
4372         defining it.
4373         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
4374         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
4375         * config/sh/elf.h: Update include.
4376         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
4377         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
4378
4379 2001-10-19  Catherine Moore  <clm@redhat.com>
4380
4381         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
4382         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
4383         base and count fields.
4384         (stormy16_expand_builtin_va_start):  last_reg_count changed to
4385         size_of_reg_args.  Use count + size in first comparison.
4386
4387 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4388
4389         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
4390         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
4391         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
4392         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
4393         Set alignment from type if INDIRECT_REF.
4394         (adjust_address_1, offset_address): Simplify alignment compuitation.
4395         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
4396         here; done by set_mem_attributes.
4397
4398 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4399
4400         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
4401         * arm-protos.h (rdata_section, zero_init_section, common_section):
4402         Prototype.
4403         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
4404         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
4405         traditional mode stringification.
4406         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
4407         in macros controling its use.
4408         * rtlanal.c: Include tm_p.h.
4409         * varasm.c (asm_output_aligned_bss): Mark parameter with
4410         ATTRIBUTE_UNUSED.
4411         (assemble_constant_align, assemble_start_function, assemble_align,
4412         assemble_variable, assemble_trampoline_template,
4413         output_constant_def_contents): Wrap potentially empty if-stmt body
4414         in brackets.
4415
4416 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4417
4418         * a29k-protos.h (literal_section): Prototype.
4419         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
4420         * a29k.md: Ensure function pointers are prototyped.
4421         * genattrtab.c (write_eligible_delay): Mark parameter with
4422         ATTRIBUTE_UNUSED.
4423
4424 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4425
4426         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
4427         * 1750a.c (print_operand): Fix format specifier warning.
4428         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
4429         * 1750a.md: Likewise.
4430         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
4431         * genemit.c (output_add_clobbers): Mark parameter with
4432         ATTRIBUTE_UNUSED.
4433         * genrecog.c (write_subroutine): Likewise.
4434         * integrate.c (expand_inline_function): Delete unused variable.
4435         * varasm.c (remove_from_pending_weak_list): Wrap with
4436         ASM_WEAKEN_LABEL.
4437
4438 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
4439
4440         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
4441         field is different to previous argument's neg field.
4442
4443         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
4444
4445 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4446
4447         * final.c (get_decl_from_op): New function.
4448         (output_asm_insn): Call it; write "*" when item with decl is address.
4449
4450 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
4451
4452         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
4453         about 64-bit support from the 3.0_branch version.
4454
4455 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
4456
4457         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
4458         USE_INCLUDED_LIBINTL when appropriate.
4459         * configure, config.in: Regenerate.
4460         * Makefile.in (datadir): Set to @datadir@.
4461         (intl.o): Also depend on $(CONFIG_H) and system.h.
4462
4463         * intl.c: Factor out common gettext initialization sequence.
4464         (gcc_init_libintl):  New function.
4465         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
4466         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
4467         off NLS.  Add multiple include guard.  No need to #ifdef-guard
4468         an #undef.  Prototype gcc_init_libintl here.
4469
4470         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
4471         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
4472         Use gcc_init_libintl.
4473
4474 2001-10-19  Catherine Moore  <clm@redhat.com>
4475
4476         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
4477
4478         * config/stormy16/stormy16.c (stormy16_split_move):  Make
4479         sure that REG_INC notes are present for auto_inc operands.
4480
4481 2001-10-19  Andreas Jaeger  <aj@suse.de>
4482
4483         * configure: Regenerated.
4484         * configure.in: Add x86_64 to switch statements.
4485
4486 2001-10-18  Richard Henderson  <rth@redhat.com>
4487
4488         * config/alpha/alpha.md (sibcall_osf_1): Load destination
4489         address into $27 explicitly.
4490         (sibcall_value_osf_1): Likewise.
4491
4492 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4493
4494         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
4495         (offset_address): New function.
4496         (free_emit_status): Free regno_decl.
4497         (init_emit): Pass proper number of elements to xcalloc.
4498         Allocate regno_decl.
4499         (mark_emit_status): Mark regno_decl values.
4500         * expr.c (highest_pow2_factor): New function.
4501         (expand_assigment): Use it and offset_address.
4502         Properly handle ptr_mode vs. Pmode in offset calculation.
4503         (store_constructor, expand_expr_unaligned): Likewise.
4504         (expand_expr, case COMPONENT_EXPR): Likewise.
4505         * expr.h (offset_address): New decl.
4506         * function.h (struct emit_status): Add regno_decl.
4507         (REGNO_DECL): New macro.
4508         * final.c (output_asm_name): Move in file and don't conditionalize
4509         on flag_print_asm_name.
4510         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
4511         Output names of operands, if known.
4512         * function.c (assign_parms): Set REGNO_DECL.
4513         * integrate.c (integrate_decl_tree): Likewise.
4514         * stmt.c (expand_decl): Likewise.
4515         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
4516
4517 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
4518
4519         * attribs.c (handle_noinline_attribute): New function.
4520         (handle_used_attribute): Likewise.
4521         (c_common_attribute_table): Added noinline and used.
4522         * doc/extend.texi (Function Attributes): Document them.
4523         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
4524         Warn when merging inline with attribute noinline.
4525         (start_decl, start_function): Warn if inline and attribute
4526         noinline appear in the same declaration.
4527
4528 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4529
4530         * config.gcc: Update c4x and i370 for C front end-specific
4531         dependencies.
4532         * config/c4x/c4x-c.c: New.
4533         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
4534         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
4535         New declarations.
4536         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
4537         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
4538         Make extern.
4539         (c4x_init_pragma): Remove.
4540         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
4541         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
4542         c4x_pr_ignored): Move to c4x-c.c.
4543         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
4544         * config/c4x/t-c4x: Update.
4545         * config/i370/i370-c.c: New.
4546         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
4547         (i370_pr_map): Move to i370-c.c.
4548         * config/i370/t-i370: New.
4549
4550         * doc/tm.texi: Update.
4551
4552 2001-10-17  Stan Shebs  <shebs@apple.com>
4553
4554         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
4555         typo fixes throughout.
4556         (machopic_output_stub): Remove some dead code.
4557
4558 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
4559
4560         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
4561         leak.
4562
4563 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4564
4565         * Makefile.in (print-rtl.o): Depend on TREE_H.
4566         * alias.c (get_alias_set): Make two passes over objects to first
4567         see if inner object is access via restricted pointer.
4568         Defer allocating alias set for restricted pointer until here.
4569         Call find_placeholder with second arg nonzero.
4570         Minor cleanups.
4571         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
4572         set for restricted pointer types.
4573         * emit-rtl.c (set_mem_attributes): Set more attributes.
4574         (set_mem_align, change_address, adjust_address_1): New functions.
4575         (change_address_1): Now static.
4576         (adjust_address, adjust_address_nv): Deleted.
4577         (replace_equiv_address): Call change_address_1.
4578         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
4579         (find_placeholder): Get starting point from PLIST arg.
4580         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
4581         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
4582         (adjust_address, adjust_address_nv): New macros.
4583         * print-rtl.c (tree.h): New include.
4584         (print_rtx, case MEM): Print all memory attributes.
4585
4586 2001-10-17  Richard Henderson  <rth@redhat.com>
4587
4588         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
4589
4590 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4591
4592         * c-tree.texi: Eliminate duplicated word.
4593         * cpp.texi: Likewise.
4594         * install.texi: Likewise.
4595         * invoke.texi: Likewise.
4596         * tm.texi: Likewise.
4597
4598 2001-10-17  Michael Collison  <collison@isisinc.net>
4599
4600         * dsp16xx.c: Fix comment formatting to match GNU standards.
4601         (dsp16xx_output_function_prologue): Change type of 'size'
4602         parameter from 'int' to HOST_WIDE_INT.
4603         (dsp16xx_output_function_epilogue): Change type of 'size'
4604         parameter from 'int' to HOST_WIDE_INT.
4605
4606 2001-10-16  Richard Henderson  <rth@redhat.com>
4607
4608         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
4609         * configure, config.in: Rebuild.
4610
4611         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
4612         (ix86_output_addr_diff_elt): New.
4613         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
4614         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4615         (JUMP_TABLES_IN_TEXT_SECTION): New.
4616         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
4617         * config/i386/i386-protos.h: Update.
4618
4619         * config/i386/386bsd.h, config/i386/beos-elf.h,
4620         config/i386/freebsd-aout.h, config/i386/freebsd.h,
4621         config/i386/i386-interix.h, config/i386/i386elf.h,
4622         config/i386/linux.h, config/i386/netbsd-elf.h,
4623         config/i386/netbsd.h, config/i386/openbsd.h,
4624         config/i386/ptx4-i.h, config/i386/rtemself.h,
4625         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
4626         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
4627
4628 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
4629
4630         * stmt.c (expand_asm_operands): Update commentary.
4631
4632 2001-10-16  Stan Shebs  <shebs@apple.com>
4633
4634         * config/darwin.h (GCC_NAME): Remove, no longer used.
4635         (NO_MATH_LIBRARY): Ditto.
4636         (MATH_LIBRARY): Define to emptiness.
4637         (DWARF2_DEBUGGING_INFO): Define.
4638         (PREFERRED_DEBUGGING_TYPE): Define.
4639         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
4640         (EXCEPTION_SECTION): Define.
4641         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4642         * config/darwin.c (darwin_encode_section_info): Handle case of
4643         DECL_INITIAL being error_mark_node.
4644
4645 2001-10-16  Richard Henderson  <rth@redhat.com>
4646
4647         * alpha.c (current_file_function_operand): Don't fail for profiling.
4648         (direct_call_operand): New.
4649         * alpha-protos.h: Declare it.
4650         * alpha.h (EXTRA_CONSTRAINT): Use it.
4651         (PREDICATE_CODES): Add it.
4652         (ASM_OUTPUT_MI_THUNK): Remove.
4653         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
4654         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
4655
4656 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
4657
4658         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
4659         (JUMP_TABLES_IN_TEXT_SECTION): Define.
4660
4661 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
4662
4663         * cfg.c (free_edge): Break out from ....
4664         (remove_edge): ... here.
4665         (clear_edges): Use free_edge.
4666
4667         * att.h (ASM_QUAD): Add comment.
4668         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
4669
4670 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
4671
4672         * i386.c (split_ti): New function.
4673         (ix86_split_to_parts): Support TImodes.
4674         * i386.h (VALID_INT_MODE_P): Add TImode.
4675         * i386.md (movdi splitter): Fix.
4676         (movti): Support 64bit integer registers.
4677         (movti_rex64): New function and splitter.
4678
4679         * i386.c (*_cost): Add movsx/movzx cost.
4680         * i386.h (struct processor_costs): Add movsx/movzx fields.
4681         (RTX_COSTS): Handle zero/sign extend + avoid believing that
4682         64bit operations require split on 64bit machine.
4683         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
4684
4685         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
4686         (ix86_expand_move): Avoid pushes of memory if size does not match;
4687         move long constants to register.
4688         (x86_initialize_trampoline): Fix mode.
4689         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
4690         Use ASM_QUAD on 64bit.
4691         * i386.md (test pattern): Disallow impossible constants.
4692         (tablejump PIC expander): Fix emitting of sum.
4693         (movdicc_rex64): Rename to movdicc.
4694         * linux64.h (LINK_SPEC): Add missing '%'.
4695
4696 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
4697
4698         * tree-inline.c (inlinable_function_p): Leave it up to the
4699         front-end to turn -finline-functions into DECL_INLINE set for all
4700         functions.
4701
4702 2001-10-16  Stan Shebs  <shebs@apple.com>
4703
4704         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
4705
4706 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
4707
4708         * recog.c: Formatting and comment typo fixes.
4709
4710         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
4711         version in single tree build.
4712         * configure: Regenerate.
4713
4714 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
4715
4716         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
4717         MODE arguments to gen_rtx and compare operand with const0_rtx.
4718
4719 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4720
4721         * system.h: Poison old unused target macros.
4722         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
4723         * config/stormy16/stormy16.c: Update references to obsolete macros.
4724         * config/stormy16/stormy16.h: Similarly.
4725         * config/stormy16/stormy16.md: Similarly.
4726         * config/cris/cris.h: Similarly.
4727
4728 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4729
4730         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
4731         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
4732         cpp_register_pragma): Update accordingly.
4733
4734 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
4735
4736         * c-pragma.h (cpp_register_pragma_space): Remove.
4737         * cpplib.h (cpp_register_pragma_space): Remove.
4738         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
4739         (cpp_register_pragma_space): Remove.
4740         (cpp_register_pragma): Simplify using lookup_pragma_entry,
4741         add sanity checks.
4742         (do_pragma): Similarly.
4743         (_cpp_init_internal_pragmas): Don't register namespaces.
4744
4745         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
4746         Don't register namespaces.
4747         * cp/lex.c (init_cp_pragma): Similarly.
4748         * doc/tm.texi: Update.
4749
4750 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4751
4752         PR c/4157
4753         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
4754
4755 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
4756
4757         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
4758         add scheduling support.
4759         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
4760         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
4761         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
4762
4763
4764 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
4765
4766         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
4767         missing CONSTANT_P test in core GCC.
4768
4769 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
4770
4771         * cppmain.c (struct printer): New member source.
4772         (scan_translation_unit): Fix spacing at start of lines.
4773         (cb_line_change): Update.
4774
4775         * gcc.dg/cpp/spacing2.c: New test.
4776
4777 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
4778
4779         * config/cris/arit.c: Use __builtin_labs, not abs.
4780
4781         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
4782
4783         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
4784         misplaced sprintf and fprintf argument.
4785
4786 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
4787
4788         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
4789         * configure.in, Makefile.in: Take out obsolete check-po logic.
4790         * configure, config.in: Regenerate.
4791
4792 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
4793
4794         * objc/objc-act.c (finish_objc): Correct precondition for emitting
4795         symtab declarations.
4796
4797 2001-10-12  Stan Shebs  <shebs@apple.com>
4798
4799         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
4800         declarations of arguments and local variables.
4801
4802 2001-10-12  Christopher Faylor  <cgf@redhat.com>
4803
4804         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
4805         ENDFILE_SPEC definition.
4806
4807 2001-10-12  Kazu Hirata  <kazu@hxi.com>
4808
4809         * gthr-dce.h: Fix comment formatting.
4810         * gthr-posix.h: Likewise.
4811         * gthr-single.h: Likewise.
4812         * gthr-solaris.h: Likewise.
4813         * gthr-vxworks.h: Likewise.
4814         * gthr-win32.h: Likewise.
4815
4816 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
4817
4818         * final.c (output_asm_insn): Make sure assembly dialects are
4819         terminated, not nested.  Output `|' and `}' characters if they
4820         don't appear inside assembly dialect selection.
4821         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
4822         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
4823         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
4824         strsetsi_rex_1): Add {} braces.
4825
4826 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
4827
4828         * toplev.c (compile_file): Ignore return value from yyparse.
4829         Always pop any nested binding levels after yyparse returns.
4830
4831 2001-10-11  Richard Henderson  <rth@redhat.com>
4832
4833         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
4834
4835 2001-10-11  Richard Henderson  <rth@redhat.com>
4836
4837         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
4838         fall back to add_AT_long_long for large CONST_INT.
4839
4840 2001-10-11  Richard Henderson  <rth@redhat.com>
4841
4842         * config/i386/i386.md (setcc splitters): Add four splitters to
4843         simplify compound compares that simplify_comparison can't handle.
4844
4845 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
4846
4847         * cpplex.c (digraph_spellings, token_spellings): Make static.
4848
4849 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4850
4851         * unroll.c (loop_iterations): Fixup last patch.
4852
4853 2001-10-11  Richard Henderson  <rth@redhat.com>
4854
4855         * rtl.h (REG_VTABLE_REF): New.
4856         * rtl.c (reg_note_name): Add it.
4857         * combine.c (distribute_notes): Handle it.
4858         * final.c (final_scan_insn): Handle it.
4859         * tree.def (VTABLE_REF): New.
4860         * expr.c (expand_expr): Handle it.
4861         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
4862         * output.h: Declare them.
4863
4864 2001-10-11  Richard Henderson  <rth@redhat.com>
4865
4866         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
4867         for a DECL_INITIAL.
4868
4869 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
4870
4871         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
4872         available in 64-bit mode.
4873
4874 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
4875
4876         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
4877         cris-*-linux* cases.
4878         * config/cris/cris-protos.h: New file.
4879         * config/cris/cris.c: New file.
4880         * config/cris/cris.h: New file.
4881         * config/cris/cris.md: New file.
4882         * config/cris/linux.h: New file.
4883         * config/cris/aout.h: New file.
4884         * config/cris/arit.c: New file.
4885         * config/cris/cris_abi_symbol.c: New file.
4886         * config/cris/mulsi3.asm: New file.
4887         * config/cris/t-aout: New file.
4888         * config/cris/t-cris: New file.
4889         * config/cris/t-elfmulti: New file.
4890         * config/cris/t-linux: New file.
4891         * doc/invoke.texi: Add CRIS options.
4892         * doc/install.texi (Specific): Add blurb for CRIS.
4893
4894 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
4895
4896         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
4897         before using it.
4898         * config/float/i32.h: Likewise.
4899         * config/float-i386.h: Likewise.
4900         * config/float-i64.h: Likewise.
4901         * config/float-m68k.h: Likewise.
4902         * config/float-sh.h: Likewise.
4903         * config/float-sparc.h: Likewise.
4904
4905 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
4906
4907         * doc/contrib.texi: Add note about CRIS port to my entry.
4908
4909 2001-10-11  Kazu Hirata  <kazu@hxi.com>
4910
4911         * basic-block.h: Fix formatting.
4912         * bitmap.h: Likewise.
4913         * cpplib.h: Likewise.
4914         * c-tree.h: Likewise.
4915         * diagnostic.h: Likewise.
4916         * flags.h: Likewise.
4917         * ggc.h: Likewise.
4918         * longlong.h: Likewise.
4919         * real.h: Likewise.
4920         * reload.h: Likewise.
4921         * rtl.h: Likewise.
4922         * tree.h: Likewise.
4923
4924 2001-10-10  Richard Henderson  <rth@redhat.com>
4925
4926         * c-parse.in (asm_operand): Allow named operands.
4927         * genconfig.c (max_recog_operands): Set to 29.
4928         * local-alloc.c (requires_inout): Skip multiple digits.
4929         * recog.c (asm_operand_ok): Likewise.
4930         (preprocess_constraints): Use strtoul for matching constraints.
4931         (constrain_operands): Likewise.
4932         * regmove.c (find_matches): Likewise.
4933         * reload.c (find_reloads): Likewise.
4934         * stmt.c (parse_output_constraint): Don't reject in-out
4935         constraint on operands > 9.  Reject '[' in constraint.
4936         (expand_asm_operands): Handle named operands.  Use strtoul
4937         for matching constraints.
4938         (check_operand_nalternatives): Split out from expand_asm_operands.
4939         (check_unique_operand_names): New.
4940         (resolve_operand_names, resolve_operand_name_1): New.
4941
4942         * doc/extend.texi (Extended Asm): Document named operands.
4943         * doc/md.texi (Simple Constraints): Document matching constraints
4944         on operands > 9.
4945
4946 2001-10-10  Richard Henderson  <rth@redhat.com>
4947
4948         * combine.c (try_combine): Handle a SEQUENCE of one insn.
4949
4950         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
4951         (jcc splitters): Add two splitters to simplify compound compares
4952         that simplify_comparison can't handle.
4953
4954 2001-10-10  Richard Henderson  <rth@redhat.com>
4955
4956         * langhooks.c: Include langhooks.h.
4957         * Makefile.in (langhooks.o): Depend on it.
4958
4959 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
4960
4961         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
4962         should not be considered as a no-op.
4963         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
4964
4965 2001-10-10  Stan Shebs  <shebs@apple.com>
4966
4967         * alias.c: Remove uses of "register" specifier in declarations
4968         of arguments and local variables.
4969         * c-common.c: Ditto.
4970         * c-convert.c: Ditto.
4971         * c-decl.c: Ditto.
4972         * c-format.c: Ditto.
4973         * c-semantics.c: Ditto.
4974         * c-typeck.c: Ditto.
4975         * caller-save.c: Ditto.
4976         * calls.c: Ditto.
4977         * cfg.c: Ditto.
4978         * cfgbuild.c: Ditto.
4979         * cfgrtl.c: Ditto.
4980         * collect2.c: Ditto.
4981         * combine.c: Ditto.
4982         * convert.c: Ditto.
4983         * cppexp.c: Ditto.
4984         * cppfiles.c: Ditto.
4985         * cse.c: Ditto.
4986         * dbxout.c: Ditto.
4987         * defaults.h: Ditto.
4988         * df.c: Ditto.
4989         * dwarf2out.c: Ditto.
4990         * dwarfout.c: Ditto.
4991         * emit-rtl.c: Ditto.
4992         * explow.c: Ditto.
4993         * expmed.c: Ditto.
4994         * expr.c: Ditto.
4995         * final.c: Ditto.
4996         * fix-header.c: Ditto.
4997         * floatlib.c: Ditto.
4998         * flow.c: Ditto.
4999         * fold-const.c: Ditto.
5000         * function.c: Ditto.
5001         * gcc.c: Ditto.
5002         * gcse.c: Ditto.
5003         * gen-protos.c: Ditto.
5004         * genattrtab.c: Ditto.
5005         * gencheck.c: Ditto.
5006         * genconfig.c: Ditto.
5007         * genemit.c: Ditto.
5008         * genextract.c: Ditto.
5009         * genflags.c: Ditto.
5010         * gengenrtl.c: Ditto.
5011         * genoutput.c: Ditto.
5012         * genpeep.c: Ditto.
5013         * genrecog.c: Ditto.
5014         * gensupport.c: Ditto.
5015         * global.c: Ditto.
5016         * gmon.c: Ditto.
5017         * graph.c: Ditto.
5018         * haifa-sched.c: Ditto.
5019         * hard-reg-set.h: Ditto.
5020         * hash.c: Ditto.
5021         * integrate.c: Ditto.
5022         * jump.c: Ditto.
5023         * lists.c: Ditto.
5024         * local-alloc.c: Ditto.
5025         * loop.c: Ditto.
5026         * mips-tdump.c: Ditto.
5027         * mips-tfile.c: Ditto.
5028         * optabs.c: Ditto.
5029         * prefix.c: Ditto.
5030         * print-rtl.c: Ditto.
5031         * read-rtl.c: Ditto.
5032         * real.c: Ditto.
5033         * recog.c: Ditto.
5034         * reg-stack.c: Ditto.
5035         * regclass.c: Ditto.
5036         * regmove.c: Ditto.
5037         * reload.c: Ditto.
5038         * reload1.c: Ditto.
5039         * reorg.c: Ditto.
5040         * resource.c: Ditto.
5041         * rtl.c: Ditto.
5042         * rtlanal.c: Ditto.
5043         * scan.c: Ditto.
5044         * sched-deps.c: Ditto.
5045         * sched-rgn.c: Ditto.
5046         * sdbout.c: Ditto.
5047         * simplify-rtx.c: Ditto.
5048         * stmt.c: Ditto.
5049         * stor-layout.c: Ditto.
5050         * toplev.c: Ditto.
5051         * tradcif.y: Ditto.
5052         * tradcpp.c: Ditto.
5053         * tree.c: Ditto.
5054         * unroll.c: Ditto.
5055         * varasm.c: Ditto.
5056         * xcoffout.c: Ditto.
5057
5058 2001-10-10  Richard Henderson  <rth@redhat.com>
5059
5060         * rtl.h (can_reverse_comparison_p): Remove.
5061
5062 2001-10-10  Christopher Faylor <cgf@redhat.com>
5063
5064         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
5065         used.
5066
5067 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5068
5069         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
5070         (Thanks to Chris Faylor for suggesting macro name).
5071         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
5072         WIN32 defines.
5073         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
5074         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
5075         (MATH_LIBRARY): Undef before definition.
5076         (OUTPUT_QUOTED_STRING): Likewise.
5077         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
5078
5079 2001-10-10  Richard Henderson  <rth@redhat.com>
5080
5081         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
5082         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
5083         a tristate comparison value.
5084         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
5085
5086 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5087
5088         PR c++/4512
5089         * unroll.c (loop_iterations): Ignore insns generated by loop
5090         unrolling.
5091
5092         * config.gcc (mips*-*-gnu*): Delete support.
5093         * config/mips/gnu.h: Remove.
5094
5095 2001-10-10  Kazu Hirata  <kazu@hxi.com>
5096
5097         * calls.c: Fix formatting.
5098         * c-decl.c: Likewise.
5099         * cfgcleanup.c: Likewise.
5100         * combine.c: Likewise.
5101         * cppfiles.c: Likewise.
5102         * cpplib.c: Likewise.
5103         * cppmacro.c: Likewise.
5104         * crtstuff.c: Likewise.
5105         * cse.c: Likewise.
5106         * dwarf2out.c: Likewise.
5107         * expmed.c: Likewise.
5108         * expr.c: Likewise.
5109         * fold-const.c: Likewise.
5110         * function.c: Likewise.
5111         * gcse.c: Likewise.
5112         * genattrtab.c: Likewise.
5113         * ggc-page.c: Likewise.
5114         * integrate.c: Likewise.
5115         * libgcc2.c: Likewise.
5116         * loop.c: Likewise.
5117         * optabs.c: Likewise.
5118         * profile.c: Likewise.
5119         * protoize.c: Likewise.
5120         * real.c: Likewise.
5121         * recog.c: Likewise.
5122         * reload1.c: Likewise.
5123         * reload.c: Likewise.
5124         * reorg.c: Likewise.
5125         * resource.c: Likewise.
5126         * sched-rgn.c: Likewise.
5127         * sdbout.c: Likewise.
5128         * stmt.c: Likewise.
5129         * toplev.c: Likewise.
5130         * varasm.c: Likewise.
5131
5132 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
5133
5134         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
5135         * Makefile.in (langhooks.o): Add dependencies.
5136
5137 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
5138
5139         * rs6000.c (rs6000_emit_load_toc_table): Don't
5140         strdup the toc label.
5141         (create_TOC_reference): Likewise.
5142
5143 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5144
5145         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
5146         version default.
5147
5148 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5149
5150         * config/i386/i386.c (ix86_attribute_table): Correct
5151         min_len, max_len fields for dllimport, dllexport and shared.
5152
5153 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
5154
5155         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
5156         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
5157         Consistently use "nonzero" instead of "non-zero".
5158
5159 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5160
5161         * acconfig.h: Fix comment formatting.
5162         * c-dump.h: Likewise.
5163         * c-tree.h: Likewise.
5164         * conditions.h: Likewise.
5165         * expr.h: Likewise.
5166         * function.h: Likewise.
5167         * gthr.h: Likewise.
5168         * hwint.h: Likewise.
5169         * integrate.h: Likewise.
5170         * intl.h: Likewise.
5171         * loop.h: Likewise.
5172         * optabs.h: Likewise.
5173
5174 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5175
5176         * c-common.h: Fix comment formatting.
5177         * c-dump.c: Likewise.
5178         * cfg.c: Likewise.
5179         * diagnostic.h: Likewise.
5180         * except.c: Likewise.
5181         * gcc.h: Likewise.
5182         * gcov-io.h: Likewise.
5183         * genattrtab.c: Likewise.
5184         * output.h: Likewise.
5185         * predict.h: Likewise.
5186         * reload1.c: Likewise.
5187         * reload.h: Likewise.
5188         * resource.h: Likewise.
5189         * scan.h: Likewise.
5190         * system.h: Likewise.
5191         * tree.h: Likewise.
5192         * tree-inline.c: Likewise.
5193         * tsystem.h: Likewise.
5194         * varasm.c: Likewise.
5195         * xcoffout.h: Likewise.
5196
5197 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
5198
5199         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
5200
5201 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
5202
5203         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
5204         config/i386/i386elf.h, config/i386/netbsd-elf.h,
5205         config/i386/netware.h, config/mcore/gfloat.h,
5206         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
5207         config/netware.h, gccbug.in: Update FSF address.
5208
5209 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5210
5211         * c-common.c: Fix comment typos.
5212         * cfgrtl.c: Likewise.
5213         * collect2.c: Likewise.
5214         * cpplex.c: Likewise.
5215         * doloop.c: Likewise.
5216         * dwarf2out.c: Likewise.
5217         * dwarfout.c: Likewise.
5218         * expr.c: Likewise.
5219         * fold-const.c: Likewise.
5220         * gcc.c: Likewise.
5221         * gcov.c: Likewise.
5222         * gcse.c: Likewise.
5223         * global.c: Likewise.
5224         * ifcvt.c: Likewise.
5225         * loop.c: Likewise.
5226         * optabs.c: Likewise.
5227         * protoize.c: Likewise.
5228         * regclass.c: Likewise.
5229         * reorg.c: Likewise.
5230         * rtl.h: Likewise.
5231         * stmt.c: Likewise.
5232         * tree.h: Likewise.
5233         * doc/cpp.texi: Likewise.
5234         * doc/c-tree.texi: Likewise.
5235         * doc/extend.texi: Likewise.
5236         * doc/invoke.texi: Likewise.
5237         * doc/objc.texi: Likewise.
5238         * doc/tm.texi: Likewise.
5239
5240 2001-10-08  Richard Henderson  <rth@redhat.com>
5241
5242         * varasm.c (set_named_section_flags): Initialize "declared".
5243
5244 2001-10-08  Robert Lipe  <robertlipe@usa.net>
5245
5246         * varasm.c (struct in_named_entry): Add declared.
5247         (named_section_first_declaration): New function.
5248         (default_elf_asm_named_section): Use it.
5249         * output.h (named_section_first_declaration): New.
5250
5251 2001-10-08  Richard Henderson  <rth@redhat.com>
5252
5253         * i386.md (movsi_xor): Export.
5254         (setcc peep2): Use it when available; add an alternative to
5255         match zero_extendhisi2_and.
5256
5257 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5258
5259         * romp-protos.h (romp_initialize_trampoline): New function.
5260         * romp.c (romp_initialize_trampoline): Likewise.
5261         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
5262         romp_initialize_trampoline.
5263
5264 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5265
5266         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
5267         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5268         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5269         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5270
5271 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5272
5273         * unroll.c (loop_iterations): Extend check for multiple back edges.
5274
5275 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
5276
5277         * langhooks.h: New file.
5278         * Makefile.in (OBJS): Added langhooks.o.
5279         (c-lang.o): Depend on langhooks.h.
5280         (c-common.o): Don't depend on tree-inline.h.
5281         (tree-inline.o): Depend on toplev.h.
5282         (langhooks.o): New rule.
5283         * c-common.c: Don't include tree-inline.h.
5284         (c_mark_lang_decl): Mark argument c as unused.
5285         (c_common_lang_init): Don't initialize hooks here.
5286         * c-lang.c: Include langhooks.h, then override some macros.
5287         (lang_hooks): Initialize with macros in langhooks.h.
5288         (c_init): Don't initialize hooks here.
5289         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
5290         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
5291         * tree-inline.c: Include toplev.h.  Don't define hook variables.
5292         * tree-inline.h: Don't define hook types nor declare hook
5293         variables.  Move macros to...
5294         * langhooks.c: ... new file, as functions.  Adjust all callers.
5295
5296 2001-10-08  Jeffrey A Law  <law@cygnus.com>
5297
5298         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
5299         purge_mem_unchanging_flag on all instructions, not just on those
5300         before NOTE_INSN_FUNCTION_BEG.
5301
5302 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5303
5304         * cppmacro.c (_cpp_create_definition): Leave comments off.
5305
5306         * doc/cpp.texi: Update.
5307
5308 2001-10-08  DJ Delorie  <dj@redhat.com>
5309
5310         * c-decl.c (grokfield): Make sure the only unnamed fields
5311         we're allowing are either structs or unions.
5312         * doc/extend.texi: Add documentation for the unnamed field
5313         extension.
5314
5315 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
5316
5317         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
5318         * configure.in: Use it.
5319         * configure: Regenerated.
5320         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
5321         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
5322
5323 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5324
5325         * cppfiles.c (open_file): Don't mark zero-length files
5326         never-reread here.  Don't output diagnostics here either.
5327         (stack_include_file): Mark them never-reread here.
5328         (_cpp_read_file): Update.
5329
5330 2001-10-08  Richard Henderson  <rth@redhat.com>
5331
5332         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
5333
5334 2001-10-08  Richard Henderson  <rth@redhat.com>
5335
5336         * expr.c (store_expr): When converting a CONST_INT for storage
5337         in a SUBREG, convert it to both SUBREG modes before stripping
5338         the SUBREG.
5339
5340 2001-10-08  Richard Henderson  <rth@redhat.com>
5341
5342         * varasm.c (restore_varasm_status): New.
5343         * function.h: Declare it.
5344         * function.c (pop_function_context_from): Call it.
5345
5346 2001-10-08  Richard Henderson  <rth@redhat.com>
5347
5348         * c-common.h (struct c_lang_decl): Add declared_inline.
5349         * c-tree.h (DECL_DECLARED_INLINE_P): New.
5350         * c-lang.c (c_disregard_inline_limits): Use it.
5351         * c-decl.c (duplicate_decls): Likewise.
5352         (pushdecl, redeclaration_error_message): Likewise.
5353         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
5354         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
5355         Set DECL_INLINE if -finline-functions.
5356         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
5357
5358 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5359
5360         * cppmacro.c (funlike_invocation_p): Move some logic to caller
5361         in enter_macro_context.  Create a padding token in its own context
5362         if necessary when the search for '(' fails.
5363         (enter_macro_context): Update.
5364
5365 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5366
5367         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
5368         genmultilib, toplev.c: Fix spelling errors of "separate" as
5369         "seperate", and corresponding spelling errors of related words.
5370
5371 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5372
5373         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
5374         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
5375         Likewise.
5376         * c-dump.c (dump_option_value_info): Likewise.
5377         * c-format.c (format_length_info, format_char_info,
5378         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
5379         * collect2.c (names): Likewise.
5380         * cppdefault.h (default_include): Likewise.
5381         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
5382         * flow.c (life_analysis): Likewise.
5383         * gcc.c (dir_separator_str, modify_target, option_map,
5384         target_option_translations, spec_list_1, extra_specs_1,
5385         init_spec): Likewise.
5386         * gcov.c (gcov_version_string): Likewise.
5387         * genattr.c (write_units): Likewise.
5388         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
5389         * gengenrtl.c (rtx_definition, defs): Likewise.
5390         * genrecog.c (pred_table): Likewise.
5391         * global.c (global_alloc): Likewise.
5392         * lcm.c (optimize_mode_switching): Likewise.
5393         * local-alloc.c (find_free_reg): Likewise.
5394         * params.h (param_info): Likewise.
5395         * predict.c (predictor_info): Likewise.
5396         * protoize.c (unexpansion_struct): Likewise.
5397         * real.c (bmask): Likewise.
5398         * recog.h (insn_operand_data, insn_data): Likewise.
5399         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
5400         * stmt.c (expand_nl_goto_receiver): Likewise.
5401         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
5402         target_switches, target_options): Likewise.
5403         * tradcif.y (token, tokentab2, yylex): Likewise.
5404         * tree.h (attribute_spec): Likewise.
5405
5406         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
5407         Likewise.
5408         * arc.c (arc_output_function_epilogue): Likewise.
5409         * arm.c (processors, all_cores, all_architectures,
5410         arm_override_options, isr_attribute_arg, isr_attribute_args,
5411         arm_isr_value): Likewise.
5412         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
5413         Likewise.
5414         * c4x.c (c4x_int_reglist): Likewise.
5415         * d30v.c (override_options): Likewise.
5416         * h8300.c (shift_insn): Likewise.
5417         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
5418         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
5419         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
5420         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
5421         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
5422         * i386.h (processor_costs, ix86_cost): Likewise.
5423         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
5424         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
5425         * m68k.c (codes_68881, codes_FPA): Likewise.
5426         * m88k.c (mode_from_align, max_from_align, all_from_align,
5427         best_from_align, m_options): Likewise.
5428         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
5429         * mcore.c (mode_from_align): Likewise.
5430         * mips/elf64.h (UNIQUE_SECTION): Likewise.
5431         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
5432         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
5433         * mips.h (mips_regno_to_class): Likewise.
5434         * ns32k.c (scales): Likewise.
5435         * pa.c (import_string, magic_milli): Likewise.
5436         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
5437         * sparc.c (leaf_reg_remap, sparc_override_options,
5438         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
5439         Likewise.
5440         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
5441
5442 2001-10-07  Dale Johannesen  <dalej@apple.com>
5443
5444         * reload1.c (reload_reg_free_p): Teach register interference
5445         checking that multiple output reloads are emitted in
5446         reverse order.
5447         reload1.c (reload_reg_reaches_end_p):  Ditto.
5448         reload1.c (reloads_conflict):  Ditto.
5449
5450 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5451
5452         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
5453         NULL_TREE inside @code.
5454
5455 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5456
5457         * doc/gcc.texi: Document consistent style of "32-bit",
5458         "Objective-C", and "@code{NULL}".
5459
5460 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
5461
5462         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
5463         (cpp_token_len, cpp_spell_token, cpp_output_token,
5464         _cpp_equiv_tokens): Handle it.
5465         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
5466         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
5467         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
5468         error messages.
5469
5470 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5471
5472         * gcc.c (default_compilers): Remove .ada.
5473
5474 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
5475
5476         * doc/cppinternals.texi: Update.
5477
5478 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
5479
5480         * gcc.c (main): Set this_file_error if the appropriate
5481         compiler for a language has not been installed.
5482
5483 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
5484
5485         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
5486
5487 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
5488
5489         * gccbug.in (CATEGORIES): Add ada.
5490
5491 2001-10-05  Catherine Moore  <clm@redhat.com>
5492
5493         * config/stormy16/stormy-abi:  Document abi changes.
5494         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
5495         (ICALL_REGS): New register class.
5496         (NUM_ARGUMENT_REGISTERS): Now 6.
5497         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
5498         in registers.
5499         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
5500         * config/stormy16.md (call_internal, call_value_internal,
5501         indirect_jump): Use new 'z' constraint.
5502
5503 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
5504
5505         * doc/cppinternals.texi: Update.
5506
5507 2001-10-05  Richard Henderson  <rth@redhat.com>
5508
5509         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
5510         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
5511         the gas section-name-as-label feature.
5512
5513 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
5514
5515         * doc/cppinternals.texi: Update.
5516
5517 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5518
5519         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
5520         to ensure valid SImode constants.
5521
5522 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
5523
5524         * Makefile.in (c-decl.o): Depend on tree-inline.h.
5525         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
5526         * c-decl.c: Include tree-inline.h.
5527         (c_expand_body): Call optimize_inline_calls. Determine whether
5528         a function is inlinable upfront, and only clear
5529         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
5530         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
5531         (c_disregard_inline_limits): New function.
5532         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
5533         (c_post_options): Enable tree inlining if inlining is enabled.
5534         Don't inline trees when instrumenting functions.
5535         (c_init): Initialize lang_disregard_inline_limits and
5536         lang_cannot_inline_tree_fn.
5537         * tree-inline.c (initialize_inlined_parameters): Handle calls
5538         with fewer arguments than declared parameters, and fewer
5539         parameters than passed arguments.  Don't assume value is a
5540         DECL.
5541         (declare_return_variable): Convert return value back to the
5542         original type, if it was promoted.
5543         (tree_inlinable_function_p): New function.
5544         (inlinable_function_p): Don't look at DECL_INLINE if we're
5545         inlining all functions.  Make it work with a NULL id.
5546         Re-check DECL_UNINLINABLE after language-specific checks.
5547         * tree-inline.h (tree_inlinable_function_p): Declare it.
5548         * integrate.c (save_for_inline): Don't bother to prepare argvec
5549         when not inlining.
5550         * cse.c (check_for_label_ref): Don't check deleted labels.
5551
5552         * Makefile.in (tree-inline.o): Depend on newly-included headers.
5553         * tree-inline.c: Include headers needed for the functions moved in.
5554         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
5555         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
5556         (copy_body, initialize_inlined_parameters): Likewise.
5557         (declare_return_variable, inlinable_function_p): Likewise.
5558         (expand_call_inline, expand_calls_inline): Likewise.
5559         (optimize_inline_calls, clone_body): Likewise.
5560         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
5561         (copy_tree_r, remap_save_expr): Likewise.
5562
5563 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
5564
5565         * Makefile.in (OBJS): Added tree-inline.o.
5566         (c-common.o): Depend on tree-inline.h.
5567         (tree-inline.o): New target.
5568         * c-common.c: Include tree-inline.h.
5569         (c_mark_lang_decl): Don't mark saved_tree.
5570         (c_common_lang_init): Set lang_anon_aggr_type_p.
5571         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
5572         (struct c_lang_decl): Moved saved_tree to tree_decl.
5573         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
5574         * integrate.h (function_attribute_inlinable_p): Declare it.
5575         * integrate.c (function_attribute_inlinable_p): Export it.
5576         * tree-inline.c: New file.  Define variables declared in...
5577         * tree-inline.h: New file.  Declare functions to be moved to
5578         tree-inline.c.  Define macros and declare types and hooks for
5579         language-specific tree inlining.
5580         (flag_inline_trees): Moved definition from cp/decl2.c.
5581         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
5582         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
5583         (struct tree_decl): Moved saved_tree from c_lang_decl and
5584         inlined_fns from C++'s lang_decl.
5585
5586 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
5587
5588         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
5589         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
5590
5591 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
5592
5593         * doc/cppinternals.texi: Update.
5594
5595 2001-10-04  Eric Christopher  <echristo@redhat.com>
5596
5597         * config/mips/mips.c (init_cumulative_args): Remember to set
5598         cum->prototype.
5599         * config.gcc: Redo linux configuration. Add target_cpu_default
5600         of soft-float to all mipsisa32 combinations and tx39.
5601         * config/mips/linux.h: Remove include of mips.h.
5602
5603 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
5604
5605         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
5606         HOST_LDFLAGS and HOST_CPPFLAGS.
5607
5608 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
5609
5610         * c-parse.in (objc_inherit_code, objc_pq_context,
5611         objc_public_flag): Make static.
5612         (objc_interface_context, objc_implementation_context,
5613         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
5614         global tree array in objc/objc-act.[ch].
5615         (methoddef): Remove unnecessary code.
5616
5617         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
5618         Hoist struct definitions to objc-act.h.
5619         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
5620         cat_count): Place declaration in objc-act.h.
5621         (objc_tree_index): Move enumeration to objc-act.h.
5622         (objc_global_trees): Place declaration and macro accessors in
5623         objc-act.h.
5624         (implementation_context): Remove duplicate; use
5625         objc_implementation_context instead:
5626         (method_context): Remove duplicate; use objc_method_context
5627         instead.
5628         (objc_ellipsis_node, objc_method_prototype_template,
5629         implemented_classes, function_type): Move global vars to
5630         objc_global_trees.
5631         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
5632         (build_message_expr): Move actual construction of ObjC message
5633         send nodes to finish_message_expr.
5634         (finish_message_expr): New routine, contains code formerly in
5635         build_message_expr.
5636         * objc/objc-act.h (finish_message_expr): New prototype.
5637         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
5638         declarations; these vars are now part of objc_global_trees.
5639         (objc_tree_index, objc_global_trees): Move definitions from
5640         objc-act.c.
5641         * objc/objc-tree.def: Update copyright info.
5642
5643 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
5644
5645         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
5646         op is NULL.
5647         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
5648         only if TARGET_ARCH64.
5649
5650 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
5651
5652         * doc/extend.texi: Fix some problems with previous checkin.
5653         * doc/invoke.texi: Likewise.
5654
5655 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5656
5657         * cpphash.h: Update comments.
5658         (cpp_context): Update.
5659         (spec_nodes): Remove n__Pragma.
5660         * cppinit.c (cpp_create_reader): Update.
5661         (builtin_array): Add _Pragma.
5662         * cpplib.h: Update comments.
5663         (NODE_DISABLED, BT_PRAGMA): New.
5664         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
5665         * cppmacro.c (struct cpp_macro): Remove disabled.
5666         (builtin_macro): Return int, handle _Pragma, push the new token
5667         on the context stack.
5668         (funlike_invocation_p): Unconstify, update.
5669         (enter_macro_context): Handle builtins here.
5670         (replace_args, push_token_context, push_ptoken_context):
5671         Update for prototype changes.
5672         (_cpp_pop_context): Update.
5673         (cpp_get_token): Don't handle buitins, nor _Pragma here.
5674         (cpp_sys_macro_p): Update.
5675         (_cpp_free_definition): Clear disabled flag.
5676         (_cpp_create_definition): Upate.
5677         * cppmain.c: Update comments.
5678
5679 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
5680                                 Andreas Jaeger <aj@suse.de>,
5681                                 Jan Hubicka    <jh@suse.cz>
5682
5683         * doc/invoke.texi (i386 Options): Document x86-64 options.
5684         (i386 and x86-64 Options): Rename i386 options section.
5685
5686         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
5687         (TARGET_SWITCHES): Add -munwind-info.
5688         (MASK_NO_UNWIND_INFO): New.
5689         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
5690         biarch compilation.
5691         (ASM_OUTPUT_DOUBLE_INT): New.
5692
5693         * config/i386/linux64.h: New spec file for Linux x86-64 support.
5694         * config.gcc: Fix tm_file settings for x86-64.
5695         * config/i386/x86-64.h: New file with OS independent x86-64
5696         definitions.
5697         * config/i386/biarch64.h: New file used to configure compiler
5698         to biarch/64bit compilation.
5699
5700         * config/i386/i386.c: (override_options): Set flags default
5701         for 64bit compilation.
5702
5703 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
5704
5705         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
5706         (ix86_expand_int_movcc): Optimize DImode conditional moves with
5707         constants on x86_64.
5708         (ix86_attr_length_immediate_default): Support MODE_DI.
5709         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
5710         condition.
5711         (indirect_jump, tablejump): Turn into expander.
5712
5713 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5714
5715         * c-common.c (c_format_attribute_table): Make format and
5716         format_arg attributes apply to function types rather than to
5717         decls.
5718         (is_valid_printf_arglist): Construct an attribute list and pass
5719         that to check_function_format rather than a name.
5720         * c-common.h (check_function_format): Adjust prototype.
5721         * c-decl.c (duplicate_decls): Preserve attributes from type of
5722         built-in decl when allowing for harmless conflict in types.
5723         * c-format.c (record_function_format,
5724         record_international_format, function_format_list,
5725         international_format_info, international_format_list): Remove.
5726         (function_format_info): Remove next, name and assembler_name.
5727         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
5728         (decode_format_attr): New.
5729         (handle_format_attribute): Handle receiving a type rather than a
5730         decl.  Call decode_format_attr.  Store format information in a
5731         function_format_info.
5732         (handle_format_arg_attribute): Correct comment.  Handle receiving
5733         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
5734         arg_num.
5735         (check_format_info_recurse, check_format_info_main): Take argument
5736         numbers as unsigned HOST_WIDE_INT.
5737         (check_function_format): Take a list of attributes from the
5738         function type rather than a name or assembler name.  Check for
5739         format attributes in that list and the attributes on the type of
5740         the current function rather than looking through
5741         function_format_list.
5742         (check_format_info): Use unsigned HOST_WIDE_INT for argument
5743         numbers.
5744         (check_format_info_recurse): Take format_arg attributes from the
5745         type of the function calls rather than using
5746         international_format_list.  Allow for multiple format_arg
5747         attributes.
5748         * c-typeck.c (build_function_call): Pass type attributes to
5749         check_function_format rather than name or assembler name.  Don't
5750         require there to be a name or assembler name to check formats.
5751
5752 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5753
5754         * attribs.c (decl_attributes): Possibly call
5755         insert_default_attributes to insert default attributes on
5756         functions in a lazy manner.
5757         * builtin-attrs.def: New file; define the default format and
5758         format_arg attributes.
5759         * c-common.c (c_format_attribute_table): Move to earlier in the
5760         file.
5761         (c_common_nodes_and_builtins): Initialize format_attribute_table.
5762         (enum built_in_attribute, built_in_attributes,
5763         c_attrs_initialized, c_init_attributes,
5764         c_common_insert_default_attributes): New.
5765         (c_common_lang_init): Don't initialize format_attribute_table.  Do
5766         call c_init_attributes.
5767         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
5768         * c-common.h (init_function_format_info): Don't declare.
5769         (c_common_insert_default_attributes): Declare.
5770         * c-decl.c (implicitly_declare, builtin_function): Call
5771         decl_attributes.
5772         (init_decl_processing): Don't call init_function_format_info.
5773         (insert_default_attributes): New.
5774         * c-format.c (handle_format_attribute,
5775         handle_format_arg_attribute): Be quiet about inappropriate
5776         declaration when applying default attributes.
5777         (init_function_format_info): Remove.
5778         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
5779         (insert_default_attributes): Declare.
5780
5781 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5782
5783         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
5784
5785 2001-10-01  Jim Wilson  <wilson@redhat.com>
5786
5787         * sched-deps.c (add_dependence): When elide conditional dependence,
5788         check that insn doesn't modify cond2.
5789
5790 2001-10-01  Dale Johannesen  <dalej@apple.com>
5791
5792         * config/rs6000/rs6000.h (enum processor_type): Add support
5793         for 7400 (G4) and 7450.
5794         (RTX_COSTS): Ditto.
5795         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
5796         (rs6000_issue_rate): Ditto.
5797         (rs6000_adjust_cost): Fix cycle counts for compares.
5798         (debug_stack_info):  Fix an obvious typo.
5799         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
5800         * doc/invoke.texi: Document.
5801         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
5802         for Darwin.
5803         (PROCESSOR_DEFAULT): Ditto.
5804
5805 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
5806
5807         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
5808         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
5809         later recursive make invocation.
5810
5811 2001-10-01  Hans Boehm  <boehm@acm.org>
5812
5813         * optabs.c (emit_libcall_block): When using non-call exceptions,
5814         don't add REG_LIBCALL reg notes to trapping calls.
5815
5816 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
5817
5818         * flow.c (propagate_block_delete_libcall): Remove unused first arg
5819         (propagate_one_insn):  Update for above change
5820
5821 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
5822
5823         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
5824         _Unwind_GetTextRelBase): Argument is unused.
5825
5826 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5827
5828         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
5829         Loop through NOPs, placeholders, and components.
5830         Don't go through NOPs if change mode.
5831         (record_alias_subset): Do nothing if SUBSET and SET are the same.
5832         * emit-rtl.c (set_mem_alias_set): Enable check.
5833         * expr.c (find_placeholder): New function.
5834         (expand_expr, case PLACEHOLDER_EXPR): Use it.
5835         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
5836         to modify it and avoid unneeded copies.
5837         * expr.h (expand_expr): Always define.
5838         (find_placeholder): New declaration.
5839
5840 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5841
5842         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
5843         operand 2 is the stack pointer.
5844         ("addr-peephole"): Fix address computation peephole when operand 2
5845         is the stack pointer.
5846
5847 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5848
5849         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
5850         (ix86_setup_incoming_varargs): Likewise.
5851
5852 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
5853
5854         * stor-layout.c (layout_type): Don't complain about too-large
5855         array here.
5856
5857 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5858
5859         * function.c (keep_stack_depressed): Don't use delete_insn.
5860
5861         * expr.h (set_mem_alias_set): Move decl to here.
5862         * rtl.h (mem_attrs): New typedef and struct.
5863         (union rtunion_def): Add field for mem_attrs.
5864         (X0MEMATTR, MEM_ATTRS): New macros.
5865         (MEM_ALIAS_SET): Use MEM_ATTRS.
5866         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
5867         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
5868         (set_mem_alias_set): Delete decl from here.
5869
5870         * alias.c (set_mem_alias_set): Delete from here.
5871         * emit-rtl.c (mem_attrs_htab): New variable.
5872         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
5873         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
5874         (mem_attrs_mark, get_mem_attrs): Likewise.
5875         (gen_rtx_MEM): Clear MEM_ATTRS.
5876         (set_mem_attributes): Move to here.
5877         (set_mem_alias_set): Likewise, and call get_mem_attrs.
5878         (init_emit_once): const_int_htab now deletable htab.
5879         Initialize mem_attrs_htab.
5880         * explow.c (set_mem_attributes): Delete from here.
5881         * function.c (put_var_into_stack): Clear MEM_ATTRS.
5882         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
5883         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
5884         * reload1.c (reload): Rework changing REG to MEM.
5885
5886 2001-09-30  H.J. Lu <hjl@gnu.org>
5887
5888         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
5889         * config.in: Rebuild.
5890
5891 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5892
5893         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
5894         ("tsthi_1"): Avoid allocation in register y.
5895         ("*movqi_68hc12"): Reorganize and fix constraints.
5896         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
5897         ("addqi3"): Likewise.
5898         ("addhi3"): Fix constraints.
5899         ("*logicalhi3_zexthi"): Disparage soft registers.
5900
5901 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5902
5903         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
5904         to tmp reg.
5905
5906 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5907
5908         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
5909         that we use setjmp/longjmp exceptions.
5910
5911 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
5912
5913         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
5914         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
5915         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5916         _cpp_pool_alloc, _cpp_next_chunk): Remove.
5917         (_cpp_extend_buff, BUFF_ROOM): Update.
5918         (_cpp_append_extend_buff): New.
5919         (struct cpp_reader): Remove macro_pool, add a_buff.
5920         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
5921         macro_pool.
5922         (cpp_destroy): Free a_buff instead of macro_pool.
5923         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
5924         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5925         _cpp_pool_alloc, ): Remove.
5926         (parse_number, parse_string): Update use of _cpp_extend_buff.
5927         (_cpp_extend_buff): Update.
5928         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
5929         * cpplib.c (glue_header_name, parse_answer):
5930         Update use of _cpp_extend_buff.
5931         (cpp_register_pragma, cpp_register_pragma_space): Use
5932         _cpp_aligned_alloc.
5933         (do_assert, do_unassert): Check for EOL, update.
5934         * cppmacro.c (stringify_arg, collect_args): Update to use
5935         _cpp_extend_buff and _cpp_append_extend_buff.
5936         (save_parameter, parse_params, alloc_expansion_token,
5937         _cpp_create_definition): Rework memory management.
5938
5939 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
5940
5941         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
5942         update md_exec_prefix.
5943         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
5944         to string constant.
5945
5946 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
5947
5948         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
5949         (SELECT_CC_MODE): Use s390_select_ccmode.
5950         * config/s390/s390-protos.h (s390_select_ccmode): Add.
5951         * config/s390/s390.c (s390_select_ccmode): New.
5952         (s390_match_ccmode): Add CCLmode.
5953         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
5954         (output_branch_condition, output_inverse_branch_condition): Removed.
5955         (print_operand): Use s390_branch_condition_mnemonic.
5956         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
5957         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
5958         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
5959
5960         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
5961         when converting conditional branches to far branches.
5962         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
5963         cmpint_di): Use CCSmode instead of CCUmode.
5964
5965         * config/s390/s390.c (legitimate_la_operand_p): New.
5966         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
5967         * config/s390/s390.md (movsi): Convert load address patterns to
5968         arithmetic operations when necessary.
5969         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
5970         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
5971         (*do_la_reg_0): Don't use before reload.
5972
5973         * config/s390/s390.c (legitimize_address): Make more efficient
5974         use of two-register addressing mode.
5975
5976         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
5977         with -mno-backchain in some corner cases.
5978
5979         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
5980
5981 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
5982
5983         * reload.c (find_reloads): Mark new USE insns with QImode.
5984         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
5985         find_reloads_subreg_address): Likewise.
5986         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
5987         encountered.
5988         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
5989         CLOBBERs.
5990         (reload): Make sure there are no USEs with mode other than
5991         VOIDmode.  At the end, remove those marked with QImode.
5992
5993 2001-09-29  Per Bothner  <per@bothner.com>
5994
5995         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
5996         * Makefile.in (includedir):  Rename to local_includedir.
5997         (includedir):  Define as $(prefix)/include.
5998         * config.in (PREFIX_INCLUDE_DIR):  New variable.
5999         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
6000
6001 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
6002
6003         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
6004         storehps builtins.
6005         * doc/extend.texi (Vector Extensions): New node.
6006         * doc/invoke.texi (Machine Dependent Options): Add documentation for
6007         i386 -mmmx, -msse, -m3dnow.
6008
6009 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
6010
6011         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
6012
6013 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
6014
6015         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
6016
6017         * doc/invoke.texi (Optimize Options): Delete spurious @table.
6018
6019 2001-09-28  Richard Henderson  <rth@redhat.com>
6020
6021         * varasm.c (assemble_integer): Bound alignment check by
6022         BIGGEST_ALIGNMENT.
6023
6024         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
6025
6026 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6027
6028         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
6029
6030 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
6031
6032         Mostly from Graham Stott  <grahams@redhat.com>
6033         * c-common.c (type_for_mode): Add support for V2SFmode.
6034         * tree.c (build_common_tree_nodes_2): Likewise.
6035         * tree.h (enum tree_index, global_trees): Likewise.
6036         * config/i386/i386.c (x86_3dnow_a): New variable.
6037         (override_options): Support 3Dnow extensions.
6038         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
6039         Athlon's version of 3Dnow.
6040         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
6041         (ix86_expand_builtin): Handle them.
6042         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
6043         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
6044         TARGET_3DNOW_A): New macros.
6045         (TARGET_SWITCHES): Add 3Dnow switches.
6046         (VALID_MMX_REG_MODE_3DNOW): New macro.
6047         (VECTOR_MODE_SUPPORTED_P): Use it.
6048         (enum ix86_builtins): Add entries for 3Dnow builtins.
6049         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
6050         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
6051         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
6052         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
6053         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
6054         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
6055         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
6056         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
6057         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
6058         sfence_insn, prefetch): Make these available if TARGET_SSE or
6059         TARGET_3DNOW_A.
6060
6061 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
6062
6063         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
6064         ix86_va_start, ix86_build_va_list): Declare.
6065         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
6066         ix86_va_start, ix86_build_va_list): New global functions.
6067         * i386.md (sse_prologue_save_insn): New insn.
6068         (sse_prologue_save): New expander.
6069         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
6070         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
6071
6072 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6073
6074         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
6075         Use size_t everywhere, make definitions consistent with
6076         prototypes.
6077
6078 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
6079
6080         * gcse.c (replace_store_insn): Use delete_insn.
6081         * loop.c (move_movables): Likewise; avoid delete_insn
6082         from clobbering notes moved elsewhere.
6083         (check_dbra_loop): Use delete_insn.
6084         * ssa.c (convert_from_ssa): Likewise.
6085         * cse.c (cse_insn): Use delete_insn.
6086
6087 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6088
6089         * cpphash.h (struct cpp_buff): Make unsigned.
6090         (_cpp_get_buff): Take length of size_t.
6091         (_cpp_unaligned_alloc): New.
6092         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
6093         (struct cpp_reader): Remove ident_pool.  Add u_buff.
6094         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
6095         (cpp_destroy): Destroy u_buff, not ident_pool.
6096         * cpplex.c (parse_number, parse_string, save_comment,
6097         cpp_token_as_text): Update to use the unaligned buffer.
6098         (new_buff): Make unsigned.
6099         (_cpp_unaligned_alloc): New.
6100         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
6101         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
6102         Similarly.
6103         (collect_args): Make unsigned.
6104
6105 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
6106
6107         * cpplex.c (cpp_output_token): Use a putc loop for
6108         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
6109
6110         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
6111         * configure, config.in: Regenerate.
6112         * system.h: Replace fwrite and fprintf with their unlocked
6113         variants if available.
6114
6115 2001-09-27  Richard Henderson  <rth@redhat.com>
6116
6117         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
6118         in favour of .eh_frame.
6119
6120 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
6121
6122         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
6123         to macros.
6124         (LIBCALL_VALUE): Likewise.
6125
6126 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6127
6128         * cpphash.h: Update comment.
6129         * cpplex.c: Update comments.
6130         (_cpp_can_paste): Remove.
6131         * cpplib.h (_cpp_can_paste): Remove.
6132         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
6133         lexer rather than _cpp_can_paste.
6134
6135 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6136
6137         * doc/cppinternals.texi: Update.
6138
6139 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6140
6141         * cpphash.h (struct cpp_pool): Remove locks and locked.
6142         (struct cpp_context): Add member buff.
6143         (struct cpp_reader): Remove member argument_pool.
6144         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6145         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
6146         * cpplex.c (chunk_suitable): Remove pool argument.
6147         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
6148         (new_buff, _cpp_extend_buff): Update.
6149         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
6150         which buffer is returned.
6151         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
6152         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6153         * cppmacro.c (lock_pools, unlock_pools): Remove.
6154         (push_ptoken_context): Take a _cpp_buff.
6155         (enter_macro_context): Pool locking removed.
6156         (replace_args): Use a _cpp_buff for the replacement list with
6157         arguments replaced.
6158         (push_token_context): Clear buff.
6159         (expand_arg): Use _cpp_pop_context.
6160         (_cpp_pop_context): Free a context's buffer, if any.
6161
6162 2001-09-26  DJ Delorie  <dj@redhat.com>
6163
6164         * c-typeck.c (digest_init): Check for sizeless arrays.
6165
6166 2001-09-26  Richard Henderson  <rth@redhat.com>
6167
6168         * optabs.c (init_one_libfunc): Create a dummy function type
6169         instead of using error_mark_node.
6170
6171 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6172
6173         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
6174         _cpp_extend_buff, _cpp_free_buff): New.
6175         (struct cpp_reader): New member free_buffs.
6176         * cppinit.c (cpp_destroy): Free buffers.
6177         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
6178         _cpp_extend_buff, _cpp_free_buff): New.
6179         * cpplib.h (struct cpp_options): Remove unused member.
6180         * cppmacro.c (collect_args): New.  Combines the old parse_arg
6181         and parse_args.  Use _cpp_buff for memory allocation.
6182         (funlike_invocation_p, replace_args): Update.
6183
6184 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
6185
6186         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
6187
6188 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
6189
6190         * except.c (sjlj_mark_call_sites): Change address inside sequence.
6191
6192 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
6193
6194         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
6195         glibc.
6196
6197 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
6198             Jim Wilson  <wilson@redhat.com>
6199
6200         * doc/install.texi (Specific, ia64-*-linux): Document.
6201
6202 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
6203
6204         * Makefile.in (cfgrtl.o): Add.
6205         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6206         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6207         free_aux_for_edge): Declare.
6208         * cfg.c
6209         (HAVE_return): Undefine.
6210         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6211         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6212         free_aux_for_edge): New global functions.
6213         (first_delete_block): New static variable.
6214         (init_flow): Clear first_delete_block.
6215         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
6216          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
6217          try_redirect_by_replacing_jump, last_loop_beg_note,
6218          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
6219          delete_insn, delete_insn_chain, create_basic_block_structure,
6220          create_basic_block, flow_delete_block, compute_bb_for_insn,
6221          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
6222          set_block_for_new_insns, split_block, merge_blocks_nomove,
6223          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
6224          redirect_edge_and_branch, force_nonfallthru_and_redirect,
6225          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
6226          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
6227          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
6228          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6229          purge_all_dead_edges): Move to ....
6230         * cfgrtl.c: New file; .... Here.
6231
6232         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
6233         (reroder_basic_block): Use alloc_aux_for_blocks.
6234         * predict.c (estimate_bb_frequencies): Likewise; use
6235         alloc_aux_for_edges.
6236         * profile.c (compute_branch_probabilities): Likewise.
6237         (branch_prob): Likewise.
6238         * reg-stack.c (reg_to_stack): Likewise.
6239
6240         * emit-rtl.c (emit_insns_after): Never return NULL.
6241
6242         * basic-block.h (set_block_for_new_insns): Delete.
6243         * cfgrtl.c (set_block_for_new_insns): Delete.
6244
6245         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
6246         calls when crossjumping.
6247
6248         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
6249         * unroll.c (copy_loop_body): Use delete_insn.
6250
6251         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
6252         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
6253         keep_stack_depressed): Likewise.
6254         * gcse.c (cprop_cc0_jump): Likewise.
6255         * local-alloc.c (update_equiv_regs): Likewise.
6256         * loop.c (scan_loop, loop_delete_insns): Likewise.
6257         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
6258         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
6259         delete_output_reload, delete_address_reloads_1,
6260         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
6261         Likewise.
6262         * sibcall.c (replace_call_placeholder): Likewise.
6263         * cse.c (cse_insn): Likewise.
6264
6265 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
6266
6267         From Graham Stott  <grahams@redhat.com>
6268         (def_builtin): Only define builtins appropriate for target_flags.  All
6269         callers changed.
6270         (builtin_decsription): Add new field mask which is used to determine
6271         when to define the builtin via the macro def_builtin.
6272
6273         (bdesc_comi): Initialise new mask fields.
6274         (bdesc_2srg): Likewise.
6275         (bdesc_1arg): Likewise.
6276
6277         * config/i386/i386.c (ix86_init_builtins): Correct return type
6278         building v4hi_ftype_v4hi_int_int tree node.
6279         (ix86_expand_sse_comi): Fix typo swapping operands.
6280         Don't swap comparision condition, it is already swapped.
6281         (ix86_expand_sse_compare): Before swapping operands
6282         move operand 1 into new rtx and not the target rtx.
6283         Don't swap comparison condition, it is already swapped.
6284         Always check whether we need to create a new TARGET.
6285
6286         * config/i386/i386.md: (sse_comi) Fix typos.
6287         (sse_ucomi): Likewise.
6288         (cvtss2si): Fix operand 0 contraint.
6289         (cvttss2si): Likewise.
6290         (sse_unpckhps): Fix mode for operand 2.
6291         (sse_unpcklps): Likewise.
6292
6293 2001-09-25  Graham Stott  <grahams@redhat.com>
6294
6295         * sibcall.c (skip_copy_to_return_value): Tighten return value
6296         copy check.
6297
6298 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
6299
6300         * rs6000.c (lwa_operand): Address must be word aligned.
6301
6302 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6303
6304         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
6305         number has been set.
6306         (type_hash_mark): Mark type itself.
6307
6308 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6309
6310         * c-lex.c (cb_def_pragma): Update.
6311         (c_lex): Update, and skip padding.
6312         * cppexp.c (lex, parse_defined): Update, remove unused variable.
6313         * cpphash.h (struct toklist): Delete.
6314         (union utoken): New.
6315         (struct cpp_context): Update.
6316         (struct cpp_reader): New members eof, avoid_paste.
6317         (_cpp_temp_token): New.
6318         * cppinit.c (cpp_create_reader): Update.
6319         * cpplex.c (_cpp_temp_token): New.
6320         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
6321         (cpp_output_token): Don't print leading whitespace.
6322         (cpp_output_line): Update.
6323         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
6324         do_include_common, do_line, do_ident, do_pragma,
6325         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
6326         parse_assertion): Update.
6327         (get_token_no_padding): New.
6328         * cpplib.h (CPP_PADDING): New.
6329         (AVOID_LPASTE): Delete.
6330         (struct cpp_token): New union member source.
6331         (cpp_get_token): Update.
6332         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
6333         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
6334         replace_args, quote_string, stringify_arg, parse_arg, next_context,
6335         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
6336         _cpp_backup_tokens, _cpp_create_definition): Update.
6337         (push_arg_context): Delete.
6338         (padding_token, push_token_context, push_ptoken_context): New.
6339         (make_string_token, make_number_token): Update, rename.
6340         (cpp_get_token): Update to handle tokens as pointers to const,
6341         and insert padding appropriately.
6342         * cppmain.c (struct printer): New member prev.
6343         (check_multiline_token): Constify.
6344         (do_preprocessing, cb_line_change): Update.
6345         (scan_translation_unit): Update to handle spacing.
6346         * scan-decls.c (get_a_token): New.
6347         (skip_to_closing_brace, scan_decls): Update.
6348         * fix-header.c (read_scan_file): Update.
6349
6350         * doc/cpp.texi: Update.
6351
6352 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6353
6354         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
6355         leak by passing malloc'ed pointer to reconcat, not concat.
6356
6357 2001-09-24  DJ Delorie  <dj@redhat.com>
6358
6359         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
6360
6361 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
6362
6363         * flow.c (delete_dead_jumptables): Delete jumptable if the only
6364         reference is from the literal pool.
6365
6366 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
6367
6368         * doc/install.texi (Final install): Request additional information
6369         in mail about successful builds.
6370
6371 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6372
6373         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
6374         initial value of return pointer register instead of value in frame-20.
6375         Revise comments.
6376
6377 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6378
6379         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
6380         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
6381         the libcall if there isn't a referenced identifier for the symbol.
6382
6383 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6384
6385         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
6386         non 64-bit machines.  Use these as a plabel for the trampoline.
6387         (TRAMPOLINE_SIZE): Adjust size for new words.
6388         (INITIALIZE_TRAMPOLINE): Initialize new words.
6389         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
6390         pointer to the plabel in the trampoline.
6391
6392 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6393
6394         * pa.c (function_arg): Pass floating arguments in both general and
6395         floating registers in indirect (dynamic) calls when generating code
6396         for the 32 bit ABI and the HP assembler.
6397
6398 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6399
6400         * doc/install.texi: Markup fixes.
6401         Use Solaris 2, SunOS 4 as appropriate.
6402         (Specific, *-*-solaris2*): Explain this.
6403         Unconditionally warn against /usr/ucb tools.
6404         Remove Sun as warning, obsolete.
6405         Move X11 header bug workaround here, update patches.
6406         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
6407         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
6408
6409 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
6410
6411         * errors.h (warning, error, fatal, internal_error): Don't mark
6412         with ATTRIBUTE_PRINTF_n.
6413         * toplev.h (internal_error, fatal_io_error, warning, error,
6414         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
6415         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
6416         Likewise.
6417
6418 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6419
6420         * function.c (pop_function_context_from): var_refs_queue
6421         and temp slots now in GC memory.
6422         (mark_function_status, free_after_compilation): Likewise;
6423         also struct function now in GC memory.
6424         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
6425         (combine_temp_slots): Likewise.
6426         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
6427         (prepare_function_start): Use GC memory for struct function.
6428         (mark_temp_slot): Deleted.
6429         (gcc_mark_struct_function): struct function now in GC memory.
6430
6431         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
6432         code for division, not modulus.
6433
6434         * rtl.def (MEM): Remove obsolete part of comment.
6435
6436 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
6437
6438         * c-format.c (init_function_format_info): Check __builtin_printf
6439         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
6440         in gnu89 mode.
6441
6442 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6443
6444         * c-common.c (format_attribute_table): Remove decl.
6445         * tree.h (format_attribute_table, lang_attribute_table): New decls.
6446         (lang_attribute_common): Likewise.
6447
6448         * function.c (fix_lexical_address): Use set_mem_alias_set.
6449         (expand_function_start): Likewise.
6450         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
6451
6452         * varasm.c (output_constant): Fix unused variable warning.
6453
6454         * attribs.c: New file, from c-common.c.
6455         (attribute_tables): Now four elements.
6456         (format_attribute_table, lang_attribute_common): New variables.
6457         (init_attributes): Reflect above changes.
6458         (handle_mode_attribute): Delete check for wider than uintmax.
6459         * c-common.c: Delete parts moved to attribs.c.
6460         (enum attrs): Deleted; unused.
6461         (c_format_attribute_table): New variable.
6462         (c_common_lang_init): Initialize format_attribute_table with it.
6463         * c-common.h (decl_attributes): Remove decl.
6464         * tree.h (decl_attribute): Move it to here.
6465         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
6466         (attribs.o): New rule.
6467
6468 2001-09-22  Andreas Jaeger  <aj@suse.de>
6469
6470         * builtins.c (c_getstr): Remove unused variable.
6471
6472 2001-09-21  Richard Henderson  <rth@redhat.com>
6473
6474         * reload1.c (reload): Use delete_insn instead of splatting
6475         NOTE_INSN_DELETED.
6476
6477 2001-09-21  Richard Henderson  <rth@redhat.com>
6478
6479         * reload.c (push_secondary_reload): Don't check for "=" in output
6480         constraint after ""->ALL_REGS check.
6481
6482 2001-09-21  Richard Henderson  <rth@redhat.com>
6483
6484         * predict.c (expected_value_to_br_prob): Use pc_set.
6485
6486         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
6487         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
6488
6489 2001-09-21  Richard Henderson  <rth@redhat.com>
6490
6491         * rtl.h (LCT_RETURNS_TWICE): New.
6492         * calls.c (emit_call_1): Set current_function_calls_setjmp for
6493         ECF_RETURNS_TWICE.
6494         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
6495         to ECF_RETURNS_TWICE.
6496         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
6497         call to setjmp.
6498
6499         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
6500
6501         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
6502         (JMP_BUF_SIZE): New.
6503
6504 2001-09-21  Richard Henderson  <rth@redhat.com>
6505
6506         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
6507         to R8_REGS.
6508
6509 2001-09-21  Richard Henderson  <rth@redhat.com>
6510
6511         * tree.def (FDESC_EXPR): New.
6512         * expr.c (expand_expr): Handle it.
6513         * varasm.c (initializer_constant_valid_p): Likewise.
6514         (output_constant): Likewise.
6515         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
6516         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
6517         (ASM_OUTPUT_FDESC): New.
6518         * doc/tm.texi: Document the new macros.
6519
6520 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
6521
6522         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
6523         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
6524         once merging is complete.
6525
6526 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6527
6528         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
6529
6530 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
6531
6532         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
6533         that would be invalid after a merge.
6534
6535 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
6536
6537         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
6538         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
6539         remove some labels.
6540         (flow_delete_insn): This one.
6541         (delete_insn_chain): Rename from ...; do not care labels.
6542         (flow_delete_insn_chain): ... this one.
6543         (flow_delete_block): Remove the insns one BB has been expunged.
6544         (merge_blocks_nomove): Likewise.
6545         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
6546         updating BB boundaries.
6547         (tidy_fallthru_edge): Likewise.
6548         (commit_one_edge_insertion): Likewise.
6549         * cfgbuild.c (find_basic_block): Likewise.
6550         (find_basic_blocks_1): Likewise.
6551         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
6552         (try_crossjump_to_edge): Likewise.
6553         (try_optimize_cfg): Likewise.
6554         * cse.c (delete_trivially_dead_insns): Likewise.
6555         * df.c (df_insn_delete): Likewise.
6556         * doloop.c (doloop_modify): Use delete_related_insns.
6557         * emit-rtl.c (try_split): Likewise.
6558         (remove_insn): Update BB boundaries.
6559         * expect.c (connect_post_landing_pads): Use delete_related_insns.
6560         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
6561         updating BB boundaries.
6562         (propagate_block_delete_insn): Likewise.
6563         (propagate_block_delete_libcall): Likewise.
6564         * function.c (delete_handlers): Use delete_related_insns.
6565         (thread_prologue_and_epilogue_insns): Likewise.
6566         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
6567         * genpeep.c (gen_peephole): Use delete_related_insns.
6568         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
6569         BB boundaries.
6570         (find_cond_trap): Likewise.
6571         * integrate.c (save_for_inline): Use delete_related_insns.
6572         (copy_insn_list): Likewise.
6573         * jump.c (pruge_linie_number_notes): Likewise.
6574         (duplicate_loop_exit_test): Likewise.
6575         (delete_computation): Likewise.
6576         (delete_related_insn): Rename from ...; use delete_insn
6577         (delete_insn): ... this one.
6578         (redirect_jump): Use delete_related_insns.
6579         * loop.c (scan_loop): Likewise.
6580         (move_movables): Likewise.
6581         (find_and_verify_loops): Likewise.
6582         (check_dbra_loop): Likewise.
6583         * recog.c (peephole2_optimize): Likewise.
6584         * reg-stack.c (delete_insn_for_stacker): Remove.
6585         (move_for_stack_reg): Use delete_insn.
6586         * regmove.c (combine_stack_adjustments_for_block): Likewise.
6587         * reload1.c (delete_address_reloads): Use delete_related_insns.
6588         (fixup_abnormal_edges): Use delete_insn.
6589         * recog.c (emit_delay_sequence): Use delete_related_insns.
6590         (delete_from-delay_slot): Likewise.
6591         (delete_scheduled_jump): likewise.
6592         (optimize_skip): Likewise.
6593         (try_merge_delay_insns): Likewise.
6594         (full_simple_delay_slots): Likewise.
6595         (fill_slots_from_thread): Likewise.
6596         (relax_delay_slots): Likewise.
6597         (make_return_insns): Likewise.
6598         (dbr_schedule): Likewise.
6599         * rtl.h (delete_insn): Rename to delete_related_insns.
6600         (delete_insn, delete_insn_chain): New prototypes.
6601         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
6602         by df_insn_delete already.
6603         * ssa-dce.c (delete_insn_bb): Use delete_insn.
6604         * ssa.c (convert_from_ssa): Use delete_related_insns.
6605         * unroll.c (unroll_loop): Likewise.
6606         (calculate_giv_inc): Likewise.
6607         (copy_loop_body): Likewise.
6608
6609         * i386-protos.h (ix86_libcall_value, ix86_function_value,
6610         ix86_function_arg_regno_p, ix86_function_arg_boundary,
6611         ix86_return_in_memory, ix86_function_value): Declare.
6612         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
6613         new static valurables.
6614         (x86_64_reg_class): New enum
6615         (x86_64_reg_class_name): New array.
6616         (classify_argument, examine_argument, construct_container,
6617          merge_classes): New static functions.
6618         (optimization_options): Enable flag_omit_frame_pointer and disable
6619         flag_pcc_struct_return on 64bit.
6620         (ix86_libcall_value, ix86_function_value,
6621         ix86_function_arg_regno_p, ix86_function_arg_boundary,
6622         ix86_return_in_memory, ix86_function_value): New global functions.
6623         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
6624         (function_arg_advance): Handle x86_64 passing conventions.
6625         (function_arg): Likewise.
6626         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
6627         (RETURN_IN_MEMORY): Move offline.
6628         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
6629         (FUNCTION_VALUE_REGNO_P): New macro.
6630         (FUNCTION_ARG_REGNO_P): Move offline.
6631         (struct ix86_args): Add maybe_vaarg.
6632         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
6633         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
6634
6635 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
6636
6637         * s390.md: Changed attributes for scheduling.
6638         * s390.c: (s390_adjust_cost, s390_adjust_priority)
6639         Changed scheduling
6640
6641 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6642
6643         Table-driven attributes.
6644         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
6645         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
6646         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
6647         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
6648         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
6649         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
6650         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
6651         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
6652         * tree.h (struct tree_decl): Change machine_attributes to
6653         attributes.
6654         * doc/c-tree.texi: Document that all attributes are now attached
6655         to decls and types.
6656         * c-common.c (add_attribute, attrtab, attrtab_idx,
6657         default_valid_lang_attribute, valid_lang_attribute): Remove.
6658         (attribute_tables, attributes_initialized,
6659         c_common_attribute_table, default_lang_attribute_table): New
6660         variables.
6661         (handle_packed_attribute, handle_nocommon_attribute,
6662         handle_common_attribute, handle_noreturn_attribute,
6663         handle_unused_attribute, handle_const_attribute,
6664         handle_transparent_union_attribute, handle_constructor_attribute,
6665         handle_destructor_attribute, handle_mode_attribute,
6666         handle_section_attribute, handle_aligned_attribute,
6667         handle_weak_attribute, handle_alias_attribute,
6668         handle_no_instrument_function_attribute,
6669         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
6670         handle_no_limit_stack_attribute, handle_pure_attribute): New
6671         functions.
6672         (init_attributes, decl_attributes): Rewrite to implement
6673         table-driven attributes.
6674         * c-common.h (enum attribute_flags): Move to tree.h.
6675         * c-format.c (decl_handle_format_attribute,
6676         decl_handle_format_arg_attribute): Rename to
6677         handle_format_attribute and handle_format_arg_attribute.  Update
6678         for table-driven attributes.
6679         * c-common.h (decl_handle_format_attribute,
6680         decl_handle_format_arg_attribute): Remove prototypes.
6681         (handle_format_attribute, handle_format_arg_attribute): Add
6682         prototypes.
6683         * c-decl.c (grokdeclarator): Handle attributes nested inside
6684         declarators.
6685         * c-parse.in (setattrs, maybe_setattrs): Remove.
6686         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
6687         Update to handle nested attributes properly.
6688         (maybe_resetattrs, after_type_declarator,
6689         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
6690         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
6691         properly.
6692         (make_pointer_declarator): Update to handle nested attributes
6693         properly.
6694         * doc/extend.texi: Update documentation of limits of attributes
6695         syntax.  Warn about problems with attribute semantics in C++.
6696         * target.h (struct target): Remove valid_decl_attribute and
6697         valid_type_attribute.  Add attribute_table and
6698         function_attribute_inlinable_p.
6699         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
6700         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
6701         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
6702         Add.
6703         (TARGET_INITIALIZER): Update.
6704         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
6705         definition.
6706         (function_attribute_inlinable_p): New function.  Check for the
6707         presence of any machine attributes before using
6708         targetm.function_attribute_inlinable_p.
6709         (function_cannot_inline_p): Update.
6710         * Makefile.in (integrate.o): Update dependencies.
6711         * doc/tm.texi: Update documentation of target attributes and
6712         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
6713         * tree.c (default_valid_attribute_p, valid_machine_attribute):
6714         Remove.
6715         (default_target_attribute_table,
6716         default_function_attribute_inlinable_p): New.
6717         (lookup_attribute): Update comment to clarify handling of multiple
6718         attributes with the same name.
6719         (merge_attributes, attribute_list_contained): Allow multiple
6720         attributes with the same name but different arguments to appear in
6721         the same attribute list.
6722         * tree.h (default_valid_attribute_p): Remove prototype.
6723         (struct attribute_spec): New.
6724         (default_target_attribute_table): Declare.
6725         (enum attribute_flags): Move from c-common.h.  Add
6726         ATTR_FLAG_TYPE_IN_PLACE.
6727         (default_function_attribute_inlinable_p): Declare.
6728         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
6729         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6730         (TARGET_ATTRIBUTE_TABLE): Define.
6731         (vms_attribute_table): New.
6732         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
6733         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6734         (TARGET_ATTRIBUTE_TABLE): Define.
6735         (arc_attribute_table, arc_handle_interrupt_attribute): New.
6736         * config/arm/arm.c (arm_valid_type_attribute_p,
6737         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
6738         Remove.
6739         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6740         define.
6741         (TARGET_ATTRIBUTE_TABLE): Define.
6742         (arm_attribute_table, arm_handle_fndecl_attribute,
6743         arm_handle_isr_attribute): New.
6744         * config/avr/avr.c (avr_valid_type_attribute,
6745         avr_valid_decl_attribute): Remove.
6746         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
6747         define.
6748         (TARGET_ATTRIBUTE_TABLE): Define.
6749         (avr_attribute_table, avr_handle_progmem_attribute,
6750         avr_handle_fndecl_attribute): New.
6751         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
6752         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6753         (TARGET_ATTRIBUTE_TABLE): Define.
6754         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
6755         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
6756         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6757         (TARGET_ATTRIBUTE_TABLE): Define.
6758         (h8300_attribute_table, h8300_handle_fndecl_attribute,
6759         h8300_handle_eightbit_data_attribute,
6760         h8300_handle_tiny_data_attribute): New.
6761         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
6762         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
6763         Remove prototypes.
6764         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
6765         declarations.
6766         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
6767         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6768         define.
6769         (TARGET_ATTRIBUTE_TABLE): Define.
6770         (ix86_attribute_table, ix86_handle_cdecl_attribute,
6771         ix86_handle_regparm_attribute): New.
6772         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
6773         i386_pe_valid_type_attribute_p): Remove.
6774         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
6775         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
6776         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6777         (TARGET_ATTRIBUTE_TABLE): Define.
6778         (ia64_attribute_table): New.
6779         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
6780         interrupt_ident2, model_ident1, model_ident2): Remove.
6781         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6782         (TARGET_ATTRIBUTE_TABLE): Define.
6783         (init_idents): Update.
6784         (m32r_attribute_table, m32r_handle_model_attribute): New.
6785         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
6786         Remove.
6787         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6788         (TARGET_ATTRIBUTE_TABLE): Define.
6789         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
6790         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
6791         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6792         (TARGET_ATTRIBUTE_TABLE): Define.
6793         (mcore_attribute_table, mcore_handle_naked_attribute): New.
6794         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
6795         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6796         (TARGET_ATTRIBUTE_TABLE): Define.
6797         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
6798         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
6799         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6800         (TARGET_ATTRIBUTE_TABLE): Define.
6801         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
6802         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
6803         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6804         (TARGET_ATTRIBUTE_TABLE): Define.
6805         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
6806         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
6807         New.
6808         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
6809         Remove.
6810         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
6811         (TARGET_ATTRIBUTE_TABLE): Define.
6812         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
6813         New.
6814         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
6815         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6816         (TARGET_ATTRIBUTE_TABLE): Define.
6817         (v850_attribute_table, v850_handle_interrupt_attribute,
6818         v850_handle_data_area_attribute): New.
6819         * config/v850/v850-c.c (mark_current_function_as_interrupt):
6820         Return void.  Call decl_attributes instead of
6821         valid_machine_attribute.
6822
6823 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
6824
6825         * sh-protos.h (sh_pr_n_sets): Declare.
6826         * sh.c (calc_live_regs): If the initial value for PR has been copied,
6827         look at the copy to determine if PR needs to be saved.
6828         sh_pr_n_sets: New function.
6829         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
6830         (ALLOCATE_INITIAL_VALUE): Define.
6831
6832         * sh.c (initial_elimination_offset):
6833         Fix RETURN_ADDRESS_POINTER_REGNUM case.
6834
6835 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
6836
6837         * integrate.c (allocate_initial_values): New function.
6838         * integrate.h (allocate_initial_values): Declare.
6839         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
6840         here...
6841         * reload1.c (reload): And initialization of reg_equiv_memory_loc
6842         from here...
6843         * toplev.c (rest_of_compilation): To here.
6844         Call allocate_initial_values.
6845         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
6846
6847 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6848
6849         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
6850
6851 2001-09-20  DJ Delorie  <dj@redhat.com>
6852
6853         * c-typeck.c (really_start_incremental_init): Discriminate
6854         between zero-length arrays and flexible arrays.
6855         (push_init_level): Detect zero-length arrays and handle them
6856         like fixed-sized arrays.
6857         * expr.c (store_constructor): Handle zero-length arrays and
6858         flexible arrays correctly.
6859         * doc/extend.texi: Update zero-length array notes.
6860
6861 2001-09-20  Jim Wilson  <wilson@redhat.com>
6862
6863         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
6864         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
6865         for issue port conflicts.
6866         (cycle_end_fill_slots): TYPE_L instructions take two slots.
6867
6868 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
6869
6870         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
6871         on ia64.
6872
6873 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6874
6875         * fold-const.c (hashtab.h): Include.
6876         (int_const_binop): Remove FORSIZE arg and compute from type; all
6877         callers changed.
6878         Call size_int_type_wide for all single-word constants.
6879         (size_htab_hash, size_htab_eq): New functions.
6880         (size_int_type_wide): Rework to use hash table.
6881         * ggc-common.c (hashtab.h): Include.
6882         (struct d_htab_root): New struct.
6883         (d_htab_roots): New variable.
6884         (ggc_add_deletable_htab, ggc_htab_delete): New functions
6885         (ggc_mark_roots): Handle deletable htabs.
6886         * ggc-page.c (ggc_marked_p): New function.
6887         * ggc-simple.c (ggc_marked_p): Likewise.
6888         * ggc.h: Reformatting throughout.
6889         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
6890         * tree.c (init_obstacks): Make type_hash_table a deletable root.
6891         (type_hash_add): Allocate struct type_hash from GC memory.
6892         (mark_hash_entry, mark_type_hash): Deleted.
6893         (type_hash_marked_p, type_hash_mark): New functions.
6894         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
6895
6896 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
6897
6898         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
6899         than SImode.
6900
6901 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6902
6903         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
6904         array-too-large test for signed sizetype.
6905
6906 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
6907
6908         * i386.md (indirect_jump): Allow Pmode operand.
6909         (tablejump): LIkewise; perform expansion to 64bit mode.
6910         * i386.c (symbolic_operand): Allow 64bit PIC references.
6911         (pic_symbolic_operand): Likewise.
6912         (ix86_find_base_term): Strip the 64bit PIC references.
6913         (legitimate_pic_address_disp_p): Handle 64bit PIC.
6914         (legitimize_pic_address): Likewise.
6915         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
6916         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
6917
6918 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
6919
6920         * stringpool.c (get_identifier_with_length): New function.
6921         * tree.h (get_identifier_with_length): New prototype.
6922
6923 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
6924             David Edelsohn  <edelsohn@gnu.org>
6925
6926         Revert:
6927         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
6928         already sign-extended.
6929
6930         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
6931         * config/rs6000/rs6000.c (logical_operand): Always compare op as
6932         HOST_WIDE_INT.
6933         (rs6000_emit_set_long_const): Avoid unnecessary shift.
6934         (output_profile_hook): Declare label_name const.
6935         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
6936         to match constraints.
6937
6938 2001-09-19  Stan Shebs  <shebs@apple.com>
6939
6940         * alias.c: Fix typos in comments.
6941         * sched-rgn.c (init_ready_list): Ditto.
6942         * unwind-dw2.c (uw_frame_state_for): Ditto.
6943         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
6944         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
6945         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
6946
6947 2001-09-19  Richard Henderson  <rth@redhat.com>
6948
6949         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
6950         to the exit block.
6951         * Makefile.in (cfg.o): Depend on TM_P_H.
6952
6953 2001-09-19  Richard Henderson  <rth@redhat.com>
6954
6955         * config/alpha/alpha.c (local_symbol_p): Split out from ...
6956         (local_symbolic_operand): ... here.
6957         (small_symbolic_operand): Check mode.
6958         (global_symbolic_operand): New.
6959         (input_operand): Reject symbolics if explicit relocs.
6960         (call_operand): Tidy.
6961         (alpha_legitimize_address): Use movdi_er_high_g.
6962         (alpha_expand_mov): Likewise.
6963         * config/alpha/alpha-protos.h: Update.
6964         * config/alpha/alpha.h (PREDICATE_CODES): Update.
6965         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
6966         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
6967         (UNSPECV_LDGP2): Remove.
6968         (all call patterns): Use 's' not 'i' for symbolic constraint.
6969         (call_osf call_value_osf): Use call_operand.
6970         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
6971         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
6972         (prologue_ldgp_1_er): Remove.
6973         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
6974         (builtin_setjmp_receiver_er patterns): Use them.
6975         (exception_receiver_er): Likewise.
6976
6977 2001-09-19  Richard Henderson  <rth@redhat.com>
6978
6979         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
6980
6981         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
6982         and NON_LOCAL_GOTO notes.
6983         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
6984         copy over CALL_INSN_FUNCTION_USAGE.
6985
6986 2001-09-18  Catherine Moore  <clm@redhat.com>
6987
6988         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
6989         Define as 0.
6990
6991 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
6992
6993         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
6994         new-style tm_file specification.  Specify correct tm_p_file,
6995         md_file, and out_file for s390x.
6996
6997         * config/s390/linux.h, linux64.h:  Don't include other target
6998         macro header files.  Now handled via tm_file.
6999
7000         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
7001         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
7002         are defined before use.
7003
7004 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
7005
7006         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
7007         code generation only for Gnu assembler.
7008
7009 2001-09-18  Catherine Moore  <clm@redhat.com>
7010
7011         * config/stormy16 (LIB_SPEC): Remove -lnosys.
7012
7013 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
7014
7015         * config/mips/mips.c (mips_frame_set): New.
7016         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
7017         a parallel frame-related expression with a set for each register.
7018
7019 2001-09-18  Philip Blundell  <philb@gnu.org>
7020
7021         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
7022         header files.
7023
7024 2001-09-17  Dale Johannesen  <dalej@apple.com>
7025
7026         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
7027         * config/rs6000/aix.h (FIXED_R2): Define.
7028         * config/rs6000/darwin.h (FIXED_R2): Define.
7029         * config/rs6000/sysv4.h (FIXED_R2): Define.
7030
7031 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
7032
7033         * except.c (dw2_build_landing_pads): New local
7034         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
7035         barrier after clobbers.  Fixes c++/4012.
7036
7037 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7038
7039         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
7040
7041 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
7042
7043         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
7044         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
7045
7046 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7047
7048         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
7049         alloca/strcpy.
7050
7051 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7052
7053         * cpphash.h (_cpp_lex_direct): New.
7054         * cpplex.c (_cpp_lex_token): Update.
7055         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
7056         and increment that pointer.
7057         * cppmacro.c (alloc_expansion_token): New.
7058         (lex_expansion_token): Lex macro expansion directly into
7059         macro storage.
7060
7061 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
7062
7063         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
7064
7065 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
7066
7067         * basic-block.h (free_bb_for_insn): Declare.
7068         * bb-reorder.c (label_for_bb): Use block_label.
7069         (emit_jump_to_block_after): Remove.
7070         (insert_intra_1): Do not update block_for_insn.
7071         (insert_inter_bb_scope_notes): Likewise; update bb->end
7072         * cfg.c (free_bb_for_insn): New.
7073         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
7074         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
7075         (commit_one_edge_insertion): Likewise.
7076         (commit_one_edge_insertion): Do not update BB boundary.
7077         (commit_edge_insertions): Do not call compute_bb_for_insn.
7078         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
7079         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
7080         (merge_blocks_move_successor_nojumps): Likewise.
7081         (try_crossjump_to_edge): Do not update block_for_insn.
7082         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
7083         * df.c (df_pattern_emit_later): Do not update BB boundary.
7084         (df_jump_pattern_emit_after): Likewise.
7085         (df_insn_move_before): Use emit_insn_before.
7086         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
7087          properly.
7088         (add_insn_after, add_insn_before, emit_insns_after): Update BB
7089         boundaries and basic_block_for_insn.
7090         (reorder_insns_nobb): Rename from reorder_insns.
7091         (reorder_insns): New.
7092         (emit_block_insn_before, emit_block_insn_after): Kill.
7093         * flow.c (check_function_return_warnings): Do not call
7094         compute_bb_for_insn; Do not free basic_block_for_insn.
7095         (attempt_auto_inc): Do not update basic_block_for_insn.
7096         * function.c (emit_return_into_block): Likewise;
7097         do not update BB boundaries.
7098         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
7099         (insert_insn_end_bb): Use emit_insn_before; Likewise.
7100         (pre_insert_copy_insn): Likewise.
7101         (update_ld_motion_notes): Likewise.
7102         (insert_insn_start_bb): Likewise.
7103         (replace_store_insn): Likewise.
7104         * ifcvt.c (noce_process_if_block): Likewise.
7105         (if_convert): Do not call compute_bb_for_insn.
7106         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
7107         Use emit_insn_before and emit_insn_after.
7108         * recog.c (split_all_insns): Do not update BB boundaries;
7109         Do not call compute_bb_for_insn.
7110         (peephole2_optimize): Do not update BB boundaries.
7111         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
7112         emit_insn_before.
7113         (emit_swap_insn): Likewise.
7114         (convert_regs_1): Likewise.
7115         * reload1.c (reload): Call compute_bb_for_insn.
7116         * rtl.h (reorder_insns_nobb): Declare.
7117         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
7118         * toplev.c (rest_of_compilation): Call free_bb_for_insn
7119         at places CFG is invalidated; do not call compute_bb_for_insn.
7120
7121         * cfg.c (expunge_block): Invalidate BB structure.
7122
7123         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
7124         array.
7125
7126         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
7127
7128 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7129
7130         * cpphash.h (_cpp_lex_token): Update prototype.
7131         * cpplex.c (_cpp_lex_token): New prototype.
7132         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
7133         lex_macro_node, read_flag, do_pragma_poison): Update.
7134         * cppmacro.c (cpp_get_token, parse_params,
7135         lex_expansion_token): Update.
7136
7137 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7138
7139         * cppmain.c (scan_translation_unit): Don't worry about
7140         putting a space after hashes.
7141         * cpplib.c (directive_diagnostics): New.
7142         (_cpp_handle_directive): Update to use directive_diagnostics.
7143         (run_directive): Don't toggle prevent_expansion.
7144         (do_line): Backup in case of the line extension.
7145         * cpplib.h (cpp_lexer_pos): Remove.
7146         * cppmacro.c (_cpp_create_definition): Precede a leading #
7147         with whitespace.
7148
7149 2001-09-15  Richard Henderson  <rth@redhat.com>
7150
7151         * c-typeck.c (comptypes): Handle zero-length arrays properly.
7152
7153 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7154
7155         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
7156
7157 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7158
7159         PR preprocessor/3571
7160         * tradcpp.c (handle_directive): Skip non-vertical space.
7161
7162 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7163
7164         * cppmain.c (setup_callbacks): Set line callback only
7165         if outputting preprocessed source.
7166
7167 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7168
7169         * collect2.c (main): Const-ification.
7170         * gcc.c (translate_options, process_command): Use xstrdup in
7171         lieu of xmalloc/strcpy.
7172         (main): Use concat in lieu of xmalloc/strcpy/strcat.
7173
7174 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7175
7176         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
7177         example.
7178
7179 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7180
7181         * scan-decls.c (scan_decls): Fix typo.
7182
7183 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7184
7185         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
7186         Split mlstring_pos into mls_line and mls_col.
7187         * cppinit.c (cpp_create_reader): Initialize line to 1.
7188         (cpp_destroy): Free tokenruns.
7189         (push_include): Don't update lexer_pos.
7190         * cpplex.c (unterminated, parse_string): Update.
7191         (lex_token): Don't update lexer_pos, update.
7192         * cpplib.c (if_stack): Save line instead of line + col.
7193         (start_directive, _cpp_do__Pragma, do_else, do_elif,
7194         push_conditional, _cpp_pop_buffer): Update.
7195         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
7196         (_cpp_create_definition): Update.
7197
7198 2001-09-15  Eric Christopher  <echristo@redhat.com>
7199
7200         * config/mips/abi64.h: Add support for MEABI.
7201
7202 2001-09-15  Eric Christopher  <echristo@redhat.com>
7203
7204         * config/mips/mips.md: Add unspec #2.
7205         (reload_indi): Use.
7206         (reload_outdi): Ditto.
7207         (reload_outsi): Ditto.
7208         (HILO_delay): New.
7209
7210 2001-09-15  Eric Christopher  <echristo@redhat.com>
7211             Jason Eckhardt  <jle@redhat.com>
7212
7213         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
7214         * config/mips/isa32-linux.h: New file.
7215         * config/mips/isa3264.h: Ditto.
7216         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
7217         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
7218         (output_block_mode): Support MEABI.
7219         (function_arg): Ditto. Fix floating point arg passing.
7220         (mips_va_start): Ditto.
7221         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
7222         processors.
7223         (mips_asm_file_start): Add new section to pass abi to gdb.
7224         (function_arg_pass_by_reference): Support MEABI.
7225         (mips_parse_cpu): Support mips32 and mips64 processors.
7226         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
7227         TARGET_MIPS5KC.  Support isa32 and isa64.
7228         (processor_type): Add r4kc, r5kc, r20kc.
7229         (GENERATE_MULT3_SI): New.
7230         (GENERATE_MULT3_DI): Ditto.
7231         (GENERATE_MULT3): Remove.
7232         (ISA_HAS_64BIT_REGS): Add isa == 64.
7233         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
7234         (ISA_HAS_MADD_MSUB): New.
7235         (ISA_HAS_CLZ_CLO): Ditto.
7236         (ISA_HAS_DCLZ_DCLO): Ditto.
7237         (ABI_GAS_ASM_SPEC): New.
7238         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
7239         (ASM_SPEC): Ditto.
7240         (LINK_SPEC): Ditto.
7241         (SUBTARGET_CC1_SPEC): Ditto.
7242         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
7243         (PAD_VARARGS_DOWN): Support MEABI.
7244         (HARD_REGNO_NREGS): Move to mips.c.
7245         (ASM_OUTPUT_IDENT): Add #undef.
7246         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
7247         (mulsi3): Use GENERATE_MULT3_SI.
7248         (mulsi3_mult3): Ditto.  Support mips32, mips64.
7249         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
7250         (mul_sub_si): New pattern.
7251         (unnamed splitters): New.
7252         (muldi3): Use GENERATE_MULT3_DI.
7253         (muldi3_internal2): Ditto.
7254         (movdicc): Support mips32.
7255         * config/mips/t-isa3264: New file.
7256
7257 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
7258
7259         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
7260         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
7261         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
7262
7263         * reorg.c (fill_slots_from_thread): After call to
7264         steal_delay_list_from_target, update own_thread as new_thread may
7265         have branched.
7266
7267 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7268
7269         * cpperror.c (print_location): Take line and column, for
7270         default positioning use the previously lexed token.
7271         (_cpp_begin_message): Take line and column.
7272         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
7273         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
7274         * cpphash.h (_cpp_begin_message): Update prototype.
7275         * cppinit.c (push_include): Don't set output line.
7276         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
7277         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
7278         (do_pragma): Kludge for front ends.  Don't expand macros at all.
7279         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
7280         (struct cpp_token): Remove output_line.
7281         (struct cpp_callbacks): New member line_change.
7282         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
7283         cpp_get_token): Preserve BOL flag.
7284         (cpp_get_line): Remove.
7285         (_cpp_backup_tokens): Remove useless abort().
7286         * cppmain.c (cb_line_change): New.
7287         (scan_translation_unit): Don't worry about starting new lines here.
7288         * scan-decls.c (scan_decls): Update.
7289         * c-lex.c (c_lex, init_c_lex): Update.
7290         (cb_line_change, src_lineno): New.
7291
7292 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
7293
7294         * tree.c (append_random_chars): Generate the random
7295         characters in a reproducable fashion.
7296
7297 2001-09-14  Richard Henderson  <rth@redhat.com>
7298
7299         * config/i386/i386.c (internal_label_prefix): New.
7300         (internal_label_prefix_len): New.
7301         (override_options): Set them.
7302         (local_symbolic_operand): New.
7303         (legitimate_pic_address_disp_p): Use it.
7304         (legitimize_pic_address): Likewise.
7305
7306 2001-09-14  Marc Espie <espie@openbsd.org>
7307
7308         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
7309         correctly.
7310
7311 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7312
7313         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
7314         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
7315
7316 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
7317
7318         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
7319         invocation of SUBREG_REGNO_OFFSET.
7320
7321         * haifa-sched.c: Fix typo in FSF copyright statement.
7322         * sched-deps.c: Fix typo in FSF copyright statement.
7323         * sched-ebb.c: Fix typo in FSF copyright statement.
7324         * sched-rgn.c: Fix typo in FSF copyright statement.
7325         * sched-vis.c: Fix typo in FSF copyright statement.
7326
7327         * config.gcc: Move inclusion of arm elf specific header files
7328         from the files themselves into the tm_file variable.  Make
7329         sure that elfos.h is included before target specific elf
7330         headers.
7331         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
7332         already defined.
7333         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
7334         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
7335         ASM_OUTPUT_CASE_LABEL): Protect definition.
7336         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
7337         not already defined.
7338         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
7339         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
7340         Remove duplicate definition.
7341         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
7342         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
7343         (RDATA_SECTION_FUNCTION): Remove redundant definition.
7344         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
7345         Remove inclusion of arm/elf.h.
7346         * config/arm/unknown-elf.h: as for conix-elf.h.
7347         (STARTFILE_SPEC): Include crti.o and crtn.o.
7348         * config/arm/linux-elf.h: as for conix-elf.h.
7349         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
7350         * config/arm/strongarm-elf.h: Remove inclusion of
7351         unknown-elf.h.
7352         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
7353         * config/arm/unknown-elf-oabi.h: Remove inclusion of
7354         unknown-elf.h and elf.h.
7355         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
7356         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
7357         ASM_WEAKEN_LABEL): Remove redundant definition.
7358         * config/arm/elf.h: Test for inclusion of elfos.h
7359         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
7360         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
7361         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
7362         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
7363         redundant definition.
7364         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
7365         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
7366         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
7367         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
7368         Add rules to build crti.o and crtn.o
7369         * crti.asm: New file.
7370         * crtn.asm: New file.
7371
7372 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7373
7374         * c-parse.in (_yylex): Use _cpp_backup_tokens.
7375         * cpphash.h (struct tokenrun): Add prev.
7376         (struct lexer_state): Remove bol.
7377         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
7378         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
7379         : Remove.
7380         * cppinit.c (cpp_create_reader): Don't set bol.
7381         (cpp_destroy): Don't free lookaheads.
7382         * cpplex.c (lex_directive): Remove.
7383         (next_tokenrun): Update.
7384         (_cpp_lex_token): Clean up logic.
7385         (lex_token): Update to return a pointer to lexed token, since it
7386         can move to the start of the buffer.  Simpify newline handling.
7387         * cpplib.c (SEEN_EOL): Update.
7388         (skip_rest_of_line): Remove lookahead stuff.
7389         (end_directive): Line numbers are already incremented.  Revert
7390         to start of lexed token buffer if we can.
7391         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
7392         parse_answer): Use _cpp_backup_tokens.
7393         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
7394         instead.  Don't check for EOL.
7395         (do_include_common, do_line, do_pragma_system_header): Use
7396         skip_rest_of_line.
7397         * cpplib.h (BOL, _cpp_backup_tokens): New.
7398         * cppmacro.c (save_lookahead_token, take_lookahead_token,
7399         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
7400         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
7401         (builtin_macro): Don't use cpp_get_line.
7402         (cpp_get_line): Short term kludge.
7403         (parse_arg): Handle directives in arguments here.  Back up when
7404         appropriate.  Store EOF at end of argument list.
7405         (funlike_invocation_p): Use _cpp_backup_tokens.
7406         (push_arg_context): Account for EOF at end of list.
7407         (cpp_get_token): Remove lookahead stuff.  Update.
7408
7409 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7410
7411         * c-parse.in (yyerror): Const-ification and/or static-ization.
7412         * c-typeck.c (push_member_name): Likewise.
7413         * collect2.c (main): Likewise.
7414         * dbxout.c (dbxout_parms): Likewise.
7415         * diagnostic.c (format_with_decl): Likewise.
7416         * dwarf2out.c (output_ranges): Likewise.
7417         * dwarfout.c (fundamental_type_code): Likewise.
7418         * except.c (dw2_output_call_site_table): Likewise.
7419         * gcc.c (do_spec_1): Likewise.
7420         * genopinit.c (optabs): Likewise.
7421         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
7422         gen_declaration_1, handle_impent): Likewise.
7423         * protoize.c (default_include, in_system_include_dir, abspath):
7424         Likewise.
7425         * sched-vis.c (visualize_stall_cycles): Likewise.
7426         * sdbout.c (plain_type_1, sdbout_end_function,
7427         sdbout_end_epilogue): Likewise.
7428         * varasm.c (decode_reg_name): Likewise.
7429
7430         * 1750a.c (mod_regno_adjust): Likewise.
7431         * alpha.c (alpha_write_one_linkage,
7432         unicosmk_output_default_externs): Likewise.
7433         * arm.c (arm_condition_codes): Likewise.
7434         * arm.h (arm_condition_codes): Likewise.
7435         * avr.c (output_movsisf, encode_section_info): Likewise.
7436         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
7437         Likewise.
7438         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7439         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7440         * m88k.c (output_function_profiler): Likewise.
7441         * mips.c (mips_output_conditional_branch): Likewise.
7442         * ns32k.c (ns32k_out_reg_names): Likewise.
7443         * ns32k.h (ns32k_out_reg_names): Likewise.
7444         * pj.c (pj_output_rval): Likewise.
7445         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
7446         * sparc.c (sparc_flat_function_prologue,
7447         sparc_flat_function_epilogue): Likewise.
7448
7449 2001-09-13  Markus Werle <numerical.simulation@web.de>
7450             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7451
7452         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
7453         Aachen University of Technology".
7454
7455 2001-09-13  Andreas Schwab  <schwab@suse.de>
7456
7457         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
7458         C99.
7459
7460 2001-09-13  Richard Henderson  <rth@redhat.com>
7461
7462         * config/alpha/alpha.c (small_symbolic_operand): New.
7463         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
7464         (some_operand, input_operand): Don't handle HIGH.
7465         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
7466         (alpha_expand_mov): Likewise.
7467         (print_operand) [H]: Just print HIGH symbol.
7468         (print_operand_address): Handle small data.
7469         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
7470         (TARGET_SWITCHES): Add -msmall-data/large-data.
7471         (PIC_OFFSET_TABLE_REGNUM): New.
7472         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
7473         (PREDICATE_COES): Update.
7474         * config/alpha/alpha.md (adddi_er_high): New.
7475         (adddi_er_low): Handle small data.
7476         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
7477         prefer .sdata to .rodata.
7478         (SELECT_RTX_SECTION): Likewise.
7479
7480 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
7481
7482         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
7483         defining __size_t and leaving size_t undefined.
7484
7485 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
7486
7487         * basic-block.h (expunge_block): Declare.
7488         * cfg.c (expunge_block): Remove static declaration.
7489
7490 2001-09-12  Richard Henderson  <rth@redhat.com>
7491
7492         * integrate.c (copy_insn_list): Copy label name from
7493         NOTE_INSN_DELETED_LABEL.
7494
7495 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7496
7497         * c-common.c (c_tree_code_name): Const-ification.
7498         * c-decl.c (c_decode_option): Likewise.
7499         * c-typeck.c (warn_for_assignment): Likewise.
7500         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
7501         Likewise.
7502         * cppinit.c (output_deps): Likewise.
7503         * dependence.c (dependence_string, direction_string): Likewise.
7504         * dwarf2out.c (output_ranges): Likewise.
7505         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
7506         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
7507         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
7508         standard_startfile_prefix, standard_startfile_prefix_1,
7509         standard_startfile_prefix_2, tooldir_base_prefix,
7510         standard_bindir_prefix, find_a_file): Likewise.
7511         * genattrtab.c (make_length_attrs): Likewise.
7512         * gencheck.c (tree_codes): Likewise.
7513         * genemit.c (gen_split): Likewise.
7514         * genrecog.c (special_mode_pred_table): Likewise.
7515         * graph.c (graph_ext): Likewise.
7516         * protoize (default_include): Likewise.
7517         * reload.c (reload_when_needed_name): Likewise.
7518         * sched-vis.c (visualize_stall_cycles): Likewise.
7519         * tlink.c (recompile_files): Likewise.
7520         * toplev.c (decode_g_option): Likewise.
7521         * tradcpp.c (output_deps): Likewise.
7522         * varasm.c (decode_reg_name): Likewise.
7523
7524         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
7525         Const-ification.
7526         * arm.md: Likewise.
7527         * avr.c (avr_regnames, encode_section_info): Likewise.
7528         * c4x.c (float_reg_names): Likewise.
7529         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
7530         * elfos.h (const_section): Likewise.
7531         * i386.c (ix86_comp_type_attributes): Likewise.
7532         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
7533         * ia64/aix.h (UNIQUE_SECTION): Likewise.
7534         * ia64.c (type_names): Likewise.
7535         * m68hc11.c (reg_class_names): Likewise.
7536         * m88k.c (m_options): Likewise.
7537         * mips.c (mips_output_conditional_branch, mips_unique_section):
7538         Likewise.
7539         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7540         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
7541         ultra_code_names): Likewise.
7542         * sparc.h (OVERRIDE_OPTIONS): Likewise.
7543
7544 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
7545
7546         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
7547         Use --fatal-warnings option for gas.
7548         * configure: Rebuilt.
7549
7550 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7551
7552         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
7553
7554 2001-09-11  Jim Wilson  <wilson@redhat.com>
7555
7556         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
7557
7558 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7559
7560         * builtins.c (c_strlen): Treat an offset too large for a
7561         HOST_WIDE_INT as out of range.
7562
7563 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
7564
7565         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
7566         (EDGE_CRITICAL_P): New predicate.
7567         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
7568         handling.
7569         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
7570         (dump_edge_info): Remove "crit".
7571         * cfganal.c (mark_critical_edges): Kill.
7572         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
7573         * cfgcleanup.c (cleanup_cfg): Likewise.
7574         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
7575         (find_spanning_tree): Likewise.
7576         * reg-stack.c (convert_regs_1): Likewise.
7577         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
7578
7579         * basic-block.h (create_basic_block_structure): New.
7580         (create_basic_block): Update prototype.
7581         (force_nonfallthru): New.
7582         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
7583         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
7584         handle updating of block_for_insn, creating of empty BBs and BBs at
7585         the end of INSN chain.
7586         (create_basic_block): New function.
7587         (split_block): Use create_basic_block.
7588         (force_nonfallthru_and_redirect): Break out from ...; cleanup
7589         (redirect_edge_and_branch_force): ... here.
7590         (force_nonfallthru): New.
7591         (split_edge): Rewrite to use force_nonfallthru and create_block.
7592         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
7593         (find_basic_blocks): Free basic_block_for_insn.
7594         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
7595
7596         * cfg.c: Fix formating.
7597         * cfgcleanup.c: Fix formating.
7598         (merge_blocks, tail_recursion_label_p): Return bool.
7599         (merge_blocks_move_predecessor_nojumps,
7600          merge_blocks_move_successor_nojumps): Return void.
7601
7602 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
7603
7604         * configure.in: Check whether assembler supports section merging.
7605         * config.in: Rebuilt.
7606         * configure: Rebuilt.
7607         * varasm.c (variable_section, output_constant_pool): Pass alignment
7608         to SELECT_SECTION and SELECT_RTX_SECTION.
7609         (mergeable_string_section): New.
7610         (mergeable_constant_section): New.
7611         (default_elf_asm_named_section): Output SECTION_MERGE and
7612         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7613         * output.h (mergeable_string_section): New.
7614         (mergeable_constant_section): New.
7615         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
7616         * toplev.c (flag_merge_constants): New.
7617         (f_options): Add -fmerge-constants and -fmerge-all-constants
7618         options.
7619         (toplev_main): Default to -fno-merge-constants if not optimizing.
7620         * flags.h (flag_merge_constants): Add extern.
7621         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
7622         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
7623         argument.
7624         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
7625         Define if assembler has working .subsection -1 support.
7626         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
7627         Put constant into special SHF_MERGE sections if the linker should
7628         attempt to merge duplicates.
7629         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
7630         macro argument.
7631         Put constant into special SHF_MERGE sections if the linker should
7632         attempt to merge duplicates.
7633         * config/alpha/elf.h: Likewise.
7634         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
7635         has working .subsection -1 support.
7636         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
7637         SELECT_SECTION.
7638         * config/svr3.h: Likewise.
7639         * config/darwin.h: Likewise.
7640         * config/arm/aof.h: Likewise.
7641         * config/arm/linux-elf.h: Likewise.
7642         * config/avr/avr.h: Likewise.
7643         * config/c4x/c4x.h: Likewise.
7644         * config/d30v/d30v.h: Likewise.
7645         * config/i386/dgux.h: Likewise.
7646         * config/i386/osfrose.h: Likewise.
7647         * config/i386/sco5.h: Likewise.
7648         * config/i386/svr3gas.h: Likewise.
7649         * config/ia64/aix.h: Likewise.
7650         * config/m32r/m32r.h: Likewise.
7651         * config/m68k/m68k.h: Likewise.
7652         * config/m88k/dgux.h: Likewise.
7653         * config/m88k/m88k.h: Likewise.
7654         * config/mcore/mcore-pe.h: Likewise.
7655         * config/mips/mips.h: Likewise.
7656         * config/pa/pa.h: Likewise.
7657         * config/pa/pa-linux.h: Likewise.
7658         * config/romp/romp.h: Likewise.
7659         * config/rs6000/sysv4.h: Likewise.
7660         * config/rs6000/xcoff.h: Likewise.
7661         * config/s390/linux.h: Likewise.
7662         * config/sparc/sparc.h: Likewise.
7663         * config/sparc/sysv4.h: Likewise.
7664         * config/stormy16/stormy16.h: Likewise.
7665         * config/v850/v850.h: Likewise.
7666         * config/vax/vms.h: Likewise.
7667         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
7668         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7669         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
7670         default_elf_asm_named_section for SHF_MERGE sections.
7671
7672 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
7673
7674         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
7675         is OK.
7676
7677 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
7678
7679         * c-common.c (split_specs_attrs): Allow for empty attributes with
7680         empty TREE_PURPOSE.  Fixes PR c/4294.
7681
7682 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
7683
7684         * basic-block.h (cached_make_edge, make_single_succ): New.
7685         (make_edge): Remove first parameter.
7686         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
7687         * cfg.c (cached_make_edge): Rename from make_edge; return newly
7688         created edge; use obstack allocation.
7689         (make_edge, make_single_succ_edge): New.
7690         (first_removed_edge): New static variable.
7691         (init_flow): Initialize first_removed_edge and n_edges.
7692         (clear_edges): Use remove_edge.
7693         (flow_delete_block): Likewise.
7694         (remove_edge): Add removed edges to the removed edges list.
7695         (split_block, redirect_edge_and_branch_force, split_edge):
7696         Use make_edge.
7697         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
7698         (add_noreturn_fake_exit_edges): Likewise.
7699         (connect_infinite_loops_to_exit): Liekwise.
7700         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
7701         Use cached_make_edge.
7702         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
7703         * profile.c (branch_prob): Update make_edge call.
7704         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7705
7706 2001-09-11  Richard Henderson  <rth@redhat.com>
7707
7708         * config/alpha/alpha.c: Tidy formatting.
7709         (local_symbolic_operand): Verify mode.
7710         (alpha_sa_mask): Ignore unicos for eh_return.
7711         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
7712         * config/alpha/alpha.md (umk divsi patterns): Remove.
7713         (extendsfdf2): Remove unicos check.
7714         (tablejump): Merge vms and unicos code; always use direct set
7715         plus label_ref use.
7716
7717 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7718
7719         * config.gcc (alpha*-*-unicosmk*): New target.
7720
7721         * config/alpha/alpha-protos.h (symbolic_operand,
7722         unicosmk_add_call_info_word, unicosmk_add_extern,
7723         unicosmk_defer_case_vector, unicosmk_unique_section,
7724         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
7725         unicosmk_asm_file_start, unicosmk_asm_file_end,
7726         unicosmk_output_common): Declare.
7727
7728         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
7729         direct_return, function_arg, alpha_va_start, alpha_va_arg,
7730         alpha_does_function_need_gp, alpha_end_function): Support Cray
7731         Unicos/Mk.
7732         (alpha_init_machine_status, alpha_mark_machine_status,
7733         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
7734         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
7735         unicosmk_asm_named_section, unicosmk_insert_attributes,
7736         unicosmk_section_type_flags, symbolic_operand,
7737         unicosmk_output_module_name, unicosmk_output_default_externs,
7738         unicosmk_output_dex, unicosmk_output_externs,
7739         unicosmk_output_addr_vec, unicosmk_ssib_name,
7740         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
7741         unicosmk_asm_file_end, unicosmk_output_common,
7742         unicosmk_section_type_flags, unicosmk_unique_section,
7743         unicosmk_add_call_info_word, unicosmk_text_section,
7744         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
7745         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
7746         unicosmk_dex_count, unicosmk_special_name): New.
7747         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
7748         TARGET_ABI_UNICOSMK.
7749         (get_aligned_mem, alpha_expand_unaligned_load,
7750         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
7751         alpha_expand_unaligned_store_words): Support big-endian mode.
7752         (print_operand): Likewise. New format specifier 't'. Use
7753         TARGET_AS_SLASH_BEFORE_SUFFIX.
7754         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
7755         (alpha_pv_save_size): Update with above change.
7756         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
7757         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
7758         Unicos/Mk.
7759
7760         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
7761         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
7762         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
7763         (EXTRA_CONSTRAINT): New constraint 'U'.
7764         (PREDICATE_CODES): Add symbolic_operand.
7765
7766         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
7767         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
7768         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
7769         (integer division and modulus patterns): Split in default and
7770         Unicos/Mk versions.
7771         (*divmodsi_internal, *divmoddi_internal): Disable for
7772         TARGET_ABI_UNICOSMK.
7773         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
7774         little-endian and big-endian versions.
7775         (ext, ins, msk): Likewise.
7776         (extv, extzv, insv): Support big-endian mode.
7777         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
7778         (call_umk, call_value_umk, *call_umk, tablejump_umk,
7779         *tablejump_umk_internal, *call_value_umk): New.
7780         (*movdi_nofix): Add pattern for loading an address into a register on
7781         TARGET_ABI_UNICOSMK.
7782         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
7783         (umk_mismatch_args, arg_home_umk): New.
7784         (various insns): Don't use mov, fmov, nop, fnop and unop.
7785         (realign): Support TARGET_ABI_UNICOSMK.
7786
7787         * config/alpha/unicosmk.h: New file.
7788         * config/alpha/t-unicosmk: New file.
7789
7790         * fixinc/inclhack.def (unicosmk_restrict): New.
7791         * fixinc/fixincl.x: Regenerate.
7792
7793         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
7794         (wchar_t): Check for and define __WCHAR_T__.
7795
7796 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
7797
7798         * combine.c (simplify_shift_const): Treat shifts by the mode
7799         size as undefined.
7800
7801 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7802
7803         * cpphash.h (struct tokenrun): New.
7804         (struct cpp_context): New member bol.
7805         (struct cpp_reader): New members.
7806         (_cpp_init_tokenrun): New.
7807         * cppinit.c (cpp_create_reader): Set up the token runs.
7808         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
7809         (lex_token): New internalised version of _cpp_lex_token.  Don't
7810         handle directives or the multiple include optimization here any
7811         more.  Simply lex a token.
7812         * cpplib.c (run_directive): Clear bol.
7813         (_cpp_pop_buffer): Set bol.
7814         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
7815         arguments.
7816
7817 2001-09-11  Michael Meissner  <meissner@redhat.com>
7818
7819         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
7820         give an error if the user uses -mfp32.
7821         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
7822         default options.
7823         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
7824         floating point register size.
7825         (EXTRA_SPECS): Add CPP_FPR_SPEC.
7826
7827         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
7828         HOST_WIDE_INT_PRINT_DEC to properly print the result of
7829         int_size_in_bytes.
7830         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7831         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7832
7833 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
7834
7835         * dbxout.c (dbxout_parms): Fix typo in comment.
7836         * unroll.c (loop_find_equiv_value): Ditto.
7837         * toplev.c (rest_of_compilation): Ditto.
7838         * loop.c (scan_loop): Ditto.
7839         * dwarf2out.c (struct dw_fde_struct): Ditto.
7840
7841 2001-09-10  Zack Weinberg  <zackw@panix.com>
7842
7843         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
7844         copying identifier when we're just going to throw it away.
7845         (parse_identifier_slow): New routine to handle abnormal cases.
7846         (_cpp_lex_token): Update call site.
7847
7848         * hashtable.c (ht_lookup): Don't assume that the string we've
7849         been given is NUL-terminated.
7850         * system.h: #define __builtin_expect(a, b) to (a) if not
7851         GCC >=3.0.
7852
7853 2001-09-10  Michael Meissner  <meissner@redhat.com>
7854
7855         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
7856         binutils, gdb.
7857
7858 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
7859
7860         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
7861
7862 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7863
7864         * builtins.c (c_getstr): Correct thinko in last change and further
7865         cleanup.
7866
7867 2001-09-10  Tim Freeman <tim@fungibole.com>
7868
7869         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
7870         into varray's and register them as roots with the garbage
7871         collector so they are not collected too soon.
7872
7873 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
7874
7875         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
7876         New.
7877         * basic-block.h (flow_obstack, label_value_list,
7878         tail_recursion_label_list): Declare
7879         (tidy_fallthru_edges): Declare.
7880         (expunge_block, last_loop_beg_note): Delete.
7881         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
7882         * cfg.c: New file
7883         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
7884         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
7885         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
7886         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
7887         expunge_block, flow_delete_block, compute_bb_for_insn,
7888         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
7889         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
7890         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
7891         try_redirect_by_replacing_jump, last_loop_beg_note,
7892         redirect_edge_and_branch, redirect_edge_and_branch_force,
7893         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
7894         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
7895         commit_edge_insertions, dump_flow_info, debug_flow_info,
7896         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
7897         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
7898         Move here from flow.c
7899         * cfganal.c: New file.
7900         (forwarder_block_p, can_fallthru, mark_critical_edges,
7901          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
7902          find_unreachable_blocks, create_edge_list, free_edge_list,
7903          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
7904          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
7905          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
7906          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
7907          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
7908          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
7909         Move here from flow.c
7910         * cfgbuild.c: New file
7911         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
7912          make_edges, find_basic_blocks_1, find_basic_blocks,
7913          find_sub_basic_blocks): Move here from flow.c
7914         * cfgcleanup.c: New file.
7915         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
7916          merge_blocks_move_predecessor_nojumps,
7917          merge_blocks_move_successor_nojumps, merge_blocks,
7918          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
7919          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
7920         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
7921         if succeeded.
7922         * cfgloop.c: New file
7923         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
7924          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
7925          flow_loop_exit_edges_find, flow_loop_nodes_find,
7926          flow_loop_pre_header_scan, flow_loop_pre_header_find,
7927          flow_loop_tree_node_add, flow_loops_tree_build,
7928          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
7929          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
7930         Move here from flow.c
7931         * flow.c: Remove everything moved elsewhere
7932         * output.h (cleanup_cfg): Return bool.
7933
7934         * bb-reorder.c (reorder_block_def): Remove 'index'.
7935         (insert_intra_1): Add argument BB, set block for new note.
7936         (make_reorder_chain): Do not depdent on BB indexes.
7937         (make_reorder_chain_1): Do not use BB indexes.
7938         (label_for_bb): Likewise; set BB for new insn.
7939         (emit_jump_to_block_after): Likewise.
7940         (fixup_reorder_chain): Sanity check that all basic blocks
7941         are chained; verify newly created insn chain; remove
7942         undocnitional jump simplifying; Do not use BB indexes;
7943         properly initialize count and frequency information;
7944         dump reordered sequence.
7945         (insert_intra_bb_scope_notes): update call of insert_intra_1.
7946         (insert_inter_bb_scope_notes): Set block for new insn.
7947         (reorder_basic_blocks): Dump flow info before reoredering.
7948
7949 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7950
7951         * alias.c (clear_reg_alias_info): Use K&R format definition.
7952         Avoid unsigned warning.
7953         * builtins.c: Use "unsigned int", not "unsigned".
7954         (target_char_cast): Use host_integerp and tree_low_cst.
7955         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
7956         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
7957         (c_getstr): Likewise.
7958         (std_expand_builtin_va_arg): Use int_size_in_bytes.
7959         (builtin_memcpy_read_str): Avoid unsigned warning.
7960         (expand_builtin_memcpy): Alignments are unsigned.
7961         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
7962         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
7963         * predict.c (expensive_function_p): LIMIT now unsigned.
7964         * resource.c (mark_target_live_regs): Make some vars unsigned.
7965         * sdbout.c: Use "unsigned int", not "unsigned".
7966         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
7967         (sdbout_source_line): Likewise.
7968         (sdbout_record_type_name): Remove "const" for NAME declaration.
7969         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
7970
7971 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
7972
7973         * calls.c (store_one_arg): Expand comment.
7974
7975 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7976
7977         * calls.c (store_one_arg): Make sure that the entire argument is
7978         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
7979
7980 2001-09-09  Richard Henderson  <rth@redhat.com>
7981
7982         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
7983
7984 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
7985
7986         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
7987
7988 2001-09-09  Richard Henderson  <rth@redhat.com>
7989
7990         * config/alpha/alpha.c (alpha_next_sequence_number): New.
7991         (alpha_this_literal_sequence_number): New.
7992         (alpha_this_gpdisp_sequence_number): New.
7993         (some_operand, input_operand): Add HIGH.
7994         (local_symbolic_operand): New.
7995         (alpha_encode_section_info): New.
7996         (alpha_legitimate_address_p): Allow LO_SUM.
7997         (alpha_legitimize_address): Generate HIGH+LO_SUM.
7998         (alpha_expand_mov): Likewise.
7999         (secondary_reload_class): Check memory_operand not general_operand
8000         for FP_REGS test.
8001         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
8002         (alpha_expand_unaligned_store): Likewise.
8003         (alpha_expand_unaligned_load_words): Likewise.
8004         (alpha_expand_unaligned_store_words): Likewise.
8005         (alpha_expand_block_clear): Likewise.
8006         (print_operand): Handle %#, %*, %H.
8007         (print_operand_address): Handle LO_SUM.
8008         (find_lo_sum): New.
8009         (alpha_does_function_need_gp): Use it.
8010         (alpha_expand_block_move): Fix signed compare warnings.
8011         (alpha_sa_mask, alpha_align_insns): Likewise.
8012         * config/alpha/alpha-protos.h: Update.
8013         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
8014         (MASK_EXPLICIT_RELOCS): New.
8015         (TARGET_SWITCHES): Add -mexplicit-relocs.
8016         (EXTRA_CONSTRAINT): Add 'T'.
8017         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
8018         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
8019         (ENCODE_SECTION_INFO): Out line.
8020         (REDO_SECTION_INFO_P): New.
8021         (STRIP_NAME_ENCODING): New.
8022         (ASM_OUTPUT_LABELREF): New.
8023         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
8024         (PREDICATE_CODES): Update.
8025         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
8026         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
8027         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
8028         builtin_setjmp_receiver_er, exception_receiver_1_er,
8029         call_value_osf_1_er): New patterns.
8030         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
8031         (movqi, movhi, movsi): Add explicit $31 base register to lda.
8032         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
8033         (FINAL_PRESCAN_INSN): New.
8034
8035 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
8036
8037         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
8038
8039 2001-09-08  Andreas Jaeger  <aj@suse.de>
8040
8041         * i386.h (TARGET_SWITCHES): Fix description.
8042
8043 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
8044
8045         * rs6000.c (num_insns_constant): Compute number of instructions
8046         more accurately.
8047
8048         * doc/install.texi: Explain AIX exception handling work-around.
8049         Update URL for AIX fixes.
8050
8051 2001-09-07  Jim Wilson  <wilson@redhat.com>
8052
8053         * alias.c (clear_reg_alias_info): New.
8054         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
8055         * rtl.h (clear_reg_alias_info): Declare.
8056
8057 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8058
8059         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
8060         available.
8061         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
8062         (m16m,edivm,emulm): Change declaration to match definition.
8063
8064 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
8065
8066         * reload.c (push_reload): Check for subreg_lowpart_p instead of
8067         SUBREG_BYTE being 0 when determining if the inner part of a subreg
8068         can be reloaded.
8069
8070 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8071
8072         * c-common.c (signed_or_unsigned_type): Handle machine mode types
8073         which have no corresponding C type.
8074         * fold_const.c (target_isinf,target_isnan,target_negative): Update
8075         the representation of 64-bit doubles to work with 64-bit ints.
8076
8077 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
8078
8079         * config/mips/mips.c (override_options): Do not override ISA when ABI
8080         specified if MIPS_CPU_STRING_DEFAULT was specified.
8081
8082 2001-09-07  Richard Henderson  <rth@redhat.com>
8083
8084         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
8085         (express_from_1): Wrap lines.
8086         * rtlanal.c (commutative_operand_precedence): Rename from
8087         operand_preference; export.
8088         * rtl.h: Declare it.
8089         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
8090         (simplify_binary_operation): Invoke simplify_plus_minus on
8091         (CONST (PLUS ...)) as well.
8092         (struct simplify_plus_minus_op_data): New.
8093         (simplify_plus_minus_op_data_cmp): New.
8094         (simplify_plus_minus): Use them.  Avoid infinite recursion with
8095         simplify_binary_operation wrt CONST.
8096
8097 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
8098
8099         * h8300-protos.h (general_operand_dst_push): Remove.
8100         * h8300.c (general_operand_dst_push): Likewise.
8101         * h8300.h (OK_FOR_T): Likewise.
8102         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
8103         * h8300.md (pushqi_h8300): New.
8104         (pushqi_h8300hs): Likewise.
8105         (pushqi): Likewise.
8106         (pushhi_h8300): Likewise.
8107         (pushhi_h8300hs): Likewise.
8108         (pushhi): Likewise.
8109
8110 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8111
8112         * genattrtab.c (attr_printf): First arg is unsigned.
8113         Clean up formatting of callers.
8114
8115 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
8116
8117         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
8118         registers.
8119
8120 2001-09-07  Andreas Jaeger  <aj@suse.de>
8121
8122         * i386.h (TARGET_SWITCHES): Fix descriptions.
8123
8124 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8125
8126         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
8127
8128 2001-09-06  Ira Ruben  <ira@apple.com>
8129
8130         Remove OP_IDENTIFIER.
8131         * tree.def (OP_IDENTIFIER): Remove.
8132         * tree.c (tree_node_kind enum): Remove op_id_kind.
8133         (tree_node_kind_names): Remove "op_identifiers".
8134         (make_node): Remove OP_IDENTIFIER test.
8135         (build_op_identifier): Removed because it isn't being used.
8136         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
8137         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
8138
8139 2001-09-06  Richard Henderson  <rth@redhat.com>
8140
8141         * simplify-rtx.c (simplify_binary_operation): Revert last change.
8142
8143 2001-09-06  Richard Henderson  <rth@redhat.com>
8144
8145         * simplify-rtx.c (simplify_binary_operation): Simplify contents
8146         of CONST.
8147
8148 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8149
8150         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
8151         number used for CR register.
8152
8153 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
8154                           Joern Rennecke (amylaar@cygnus.com)
8155
8156         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
8157         * h8300.c (initial_offset): Handle offset between RP and FP.
8158         (h8300_return_addr_rtx): New function.
8159         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
8160         return register.
8161         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
8162         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8163         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
8164         (CAN_ELIMINATE, REGISTER_NAMES):
8165         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
8166
8167 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
8168
8169         Remove TYPE_NONCOPIED_PARTS.
8170         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
8171         (struct tree_type): Remove noncopied_parts.
8172         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
8173         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
8174         (fixed_type_p): Remove.
8175         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
8176         (expand_expr, MODIFY_EXPR): Likewise.
8177         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
8178         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
8179
8180 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
8181
8182         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
8183         compiler warnings.
8184         (mask64_operand): Likewise.
8185         (includes_rldic_lshift_p): Likewise.
8186         (includes_rldicr_lshift_p): Likewise.
8187
8188 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
8189
8190         * objc/objc-act.c (build_message_expr): If a class method cannot
8191         be found, do not issue a warning if a corresponding instance
8192         method exists in the root class.
8193
8194 2001-09-05  Richard Henderson  <rth@redhat.com>
8195
8196         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
8197
8198 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
8199
8200         * function.c (ggc_mark_struct_function): Mark f->outer.
8201         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
8202         * integrate.c (output_inline_function): ... not here.
8203
8204 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
8205
8206         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
8207
8208         * i386.c (size_cost): New static variable.
8209         (override_function): Use size_cost when -Os is specified.
8210
8211         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
8212         properly;  Use current_function_calls_eh_return.
8213         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
8214         use leave to avoid dependency chain.
8215
8216         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
8217         get BB loop_depth instead of computing it from LOOP notes.
8218
8219         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
8220
8221 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8222
8223         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8224         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8225         UNALIGNED_DOUBLE_INT_ASM_OP): Define
8226
8227 2001-09-05  Jeffrey A Law  (law@cygnus.com)
8228             Jason Merrill (jason@redhat.com)
8229
8230         * stor-layout.c (layout_type): Complain if an array's size can
8231         not be represented in a size_t.
8232
8233         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
8234
8235 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
8236
8237         * gcc.c: (process_command) Add parentheses around assignment
8238         used as truth value.
8239
8240 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
8241
8242         * config/mips/mips.c (save_restore_insns): Don't mark any register
8243         save slots as unchanging if current_function_calls_eh_return.
8244
8245 2001-09-05  Richard Henderson  <rth@redhat.com>
8246
8247         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
8248         * config/alpha/alpha-protos.h: Declare it.
8249         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
8250         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
8251         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
8252         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
8253         (REG_OK_FOR_BASE_P): Select one of the above.
8254
8255 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
8256
8257         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
8258         (crti.o): Prefix name of object file with $(T).
8259         (crtn.o): Likewise.
8260
8261 2001-09-05  David S. Miller  <davem@redhat.com>
8262
8263         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
8264         * config/sparc/linux64.h: Likewise.
8265
8266 2001-09-05  Andreas Jaeger  <aj@suse.de>
8267
8268         * doc/invoke.texi (i386 Options): -mwide-multiply is not
8269         available anymore, remove the documentation.
8270         (i386 Options): Fix typo, cleanup index entries.
8271
8272         * prefix.c (concat): Remove, we can use the version from liberty.
8273
8274 2001-09-05  Richard Henderson  <rth@redhat.com>
8275
8276         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
8277         New functions split out of md file expanders.
8278         * config/alpha/alpha-protos.h: Declare them.
8279         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
8280
8281 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8282
8283         * cppmacro.c (funlike_invocation_p): No need to restore context.
8284
8285 2001-09-04  Richard Henderson  <rth@redhat.com>
8286
8287         * reload.c (push_reload): Export.
8288         * reload.h (push_reload): Declare it.
8289
8290         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
8291         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
8292         * config/alpha/alpha.c (alpha_legitimize_address): New.
8293         (alpha_legitimize_reload_address): Likewise.
8294         * config/alpha/alpha-protos.h: Declare them.
8295
8296 2001-09-04  Stan Shebs  <shebs@apple.com>
8297
8298         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
8299         * config/darwin.c (machopic_stub_name): Account for internally
8300         generated lib calls such as memcpy.
8301
8302 2001-09-04  Richard Henderson  <rth@redhat.com>
8303
8304         * unwind.h (_UA_END_OF_STACK): New flag.
8305         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
8306
8307 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
8308
8309         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
8310
8311 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
8312
8313         * config/mips/mips.c (save_restore_insns): Change base_offset to
8314         fp_offset in second call to mips_emit_frame_related_store.
8315
8316 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
8317
8318         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
8319         sometimes be represented as a NOTE of type
8320         NOTE_INSN_DELETED_LABEL.
8321         (Insns): Document NOTE_INSN_DELETED_LABEL.
8322
8323 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
8324
8325         * c-common.h (tree_dump_index): Add more comments.
8326         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
8327         (dump_option_value_info): New struct.
8328         (dump_options): New array.
8329         (dump_switch_p): Parse switch options symbolically.
8330         * doc/invoke.texi (-fdump-ast): Rename to ...
8331         (-fdump-tree): ... here. Document that options are symbolic, and
8332         not all are applicable.
8333
8334 2001-09-04  David S. Miller  <davem@redhat.com>
8335
8336         * config/sparc/sparc.md (define_splits): Kill constraints.
8337
8338         Cleanup redundant and unused insn attributes.
8339         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
8340         binary, and move.  Mark ialu as default.
8341         (commented out define_function_unit "alu"): Kill.
8342         (define_attr "use_clobbered"): Kill.
8343         (whole file): Kill address insn type references.  Replace
8344         all unary/binary/move references with ialu.
8345         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
8346         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
8347         TYPE_IALU.
8348
8349         Simplify length insn attribute and make more judicious use
8350         of insn attribute defaulting.
8351         * config/sparc/sparc.md (all insns with length > one): Mark as
8352         insn type multi if real instructions, else use default if
8353         it is a forced splitter.
8354         (all insns with length == one): Use default insn length.
8355         (all insns of type ialu): Use default insn type.
8356
8357         Fix erroneous insn attribute settings.
8358         (addx): Set insn type to misc.
8359         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
8360         const_umulsidi3_sp64): Set insn type to imul.
8361
8362         Track SFmode vs DFmode insns according to UltraSPARC
8363         scheduling rules.
8364         * config/sparc/sparc.md ("fptype"): New attribute, default
8365         to "single".
8366         (all DFmode single insns): Mark as fptype "double".
8367
8368 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
8369
8370         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
8371
8372 2001-09-03  Richard Henderson  <rth@redhat.com>
8373
8374         * function.h (struct function): Add arg_pointer_save_area_init.
8375         * function.c (expand_function_end): Init arg_pointer_save_area.
8376         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
8377         when called from a nested function.
8378
8379 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
8380
8381         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
8382         is enabled.
8383
8384 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
8385
8386         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
8387
8388 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
8389
8390         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
8391         (emit_push_insn): Use specified padding direction when
8392         STACK_PUSH_CODE is POST_INC.
8393
8394         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
8395
8396 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8397
8398         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
8399
8400 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8401
8402         * cppinit.c (cpp_start_read): Free the imacros list as we
8403         traverse it.  Don't free the chains before returning.
8404         (_cpp_push_next_buffer): Only try pushing buffers if we've
8405         completed -imacros handling.
8406
8407 2001-08-31  Eric Christopher  <echristo@redhat.com>
8408
8409         * gcc.c (handle_braces): Add explaination for abort.
8410
8411 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
8412
8413         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
8414         move adjustment of bitpos instead.
8415
8416 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
8417
8418         * function.c: Remove all_functions.  Make outer_function_chain
8419         static.
8420         (init_function_start): Don't add new function structure to
8421         all_functions.
8422         (find_function_data, push_function_context_to,
8423         pop_function_context_from, put_var_into_stack,
8424         trampoline_address): Update for changed structure element names.
8425         (push_function_context_to): Disentangle.
8426         (free_after_compilation): Also free F.
8427         (expand_dummy_function_end): Don't free cfun here.
8428         (put_var_into_stack): Comment why we can't use find_function_data here.
8429         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
8430         (mark_function_chain): Split into maybe_mark_struct_function and
8431         ggc_mark_struct_function.  Export the latter.
8432         (init_function_once): Mark from cfun and outer_function_chain;
8433         not all_functions.
8434
8435         * function.h (struct function): Kill next_global.  Rename next
8436         to outer.  All users updated to match.
8437         (all_functions, outer_function_chain): Don't declare.
8438
8439         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
8440         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
8441         don't touch f->inlinable, after calling rest_of_compilation.
8442
8443         * tree.h: Forward-declare struct function.  Prototype
8444         ggc_mark_struct_function.
8445
8446 2001-08-31  Kazu Hirata  <kazu@hxi.com>
8447
8448         * config/h8300/h8300.md (*andorhi3): Fix typos.
8449
8450 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8451
8452         * calls.c (emit_library_call_value): Don't use a fixed
8453         argument after VA_CLOSE, i.e. out of scope in traditional C.
8454
8455         * emit-rtl.c (gen_rtvec): Likewise.
8456
8457 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8458
8459         * Makefile.in (c-pragma.o): Depend on output.h.
8460         (reorg.o): Depend on except.h.
8461
8462         * c-pragma.c: Include output.h.
8463
8464         * reorg.c: Include except.h.
8465
8466         * unwind-dw2.c: Call __builtin_alloca, not alloca.
8467
8468 2001-08-31  Richard Henderson  <rth@redhat.com>
8469
8470         * sched-deps.c (add_dependence): Don't elide dependency if the
8471         conditional used by insn is modified in elem.
8472
8473 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
8474
8475         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
8476
8477 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
8478
8479         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
8480         dump_switch_p.
8481
8482 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
8483
8484         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
8485         function.
8486         (stormy16_asm_out_constructor): New function.
8487         (TARGET_ASM_CONSTRUCTOR): Define.
8488         (TARGET_ASM_DESTRUCTOR): Define.
8489
8490 2001-08-31  Andreas Jaeger  <aj@suse.de>
8491
8492         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
8493         * loop.c (add_label_notes): Likewise.
8494         * reload.c (find_reloads): Likewise.
8495         * config/sh/sh.c (machine_dependent_reorg): Likewise.
8496
8497 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
8498
8499         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
8500         code here.  Take _Unwind_{W,Sw}ord*.
8501         (read_encoded_value_with_base): Use them.
8502         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
8503         words.
8504         (extract_cie_info): Simplify read_?leb128 handling.
8505         (execute_stack_op, execute_cfa_program): Likewise.
8506         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
8507
8508 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
8509
8510         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
8511         the frame pointer to pop the stack if convenient.
8512
8513         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
8514         Don't use post-increment before combine.
8515         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
8516         a call-saved register.
8517
8518 2001-08-31  Andreas Jaeger  <aj@suse.de>
8519
8520         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
8521         code was correct.
8522
8523 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
8524
8525         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
8526         not DIV/MOD, of course.
8527
8528 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
8529
8530         * rtl.def: Undo my patch commited 2001-08-27.
8531
8532         * genattrtab.c: Ditto.
8533
8534         * rtl.h: Ditto.
8535
8536         * sched-int.h: Ditto.
8537
8538         * target-def.h: Ditto.
8539
8540         * target.h: Ditto.
8541
8542         * haifa-sched.c: Ditto.
8543
8544         * sched-rgn.c: Ditto.
8545
8546         * sched-vis.c: Ditto.
8547
8548         * Makefile.in: Ditto.
8549
8550         * doc/md.texi: Ditto.
8551
8552         * doc/tm.texi: Ditto.
8553
8554         * doc/contrib.texi: Ditto.
8555
8556         * doc/gcc.texi: Ditto.
8557
8558         * genattrtab.h: Remove it.
8559
8560         * genautomata.c: Remove it.
8561
8562         * genattr.c: Undo my patch and Richard Henderson's patch commited
8563         2001-08-27.
8564
8565 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
8566
8567         * config.gcc (h8300-*-elf*): New case.
8568         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
8569         (SUBTARGET_CPP_SPEC): Define.
8570         (EXTRA_SPECS): Define.
8571         (SUBTARGET_EXTRA_SPECS): Define.
8572         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
8573         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
8574
8575 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
8576
8577         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
8578         (LIB2FUNCS_EXTRA): Define.
8579         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
8580         config/h8300/fixunssfsi.c: New file.
8581
8582 2001-08-30  Kazu Hirata  <kazu@hxi.com>
8583
8584         * config/h8300/h8300.md (zero_extendqihi2): Changes to
8585         define_expand to accommodate target-specific attributes.
8586         (anonymous zero_extendqihi2 patterns): New.
8587
8588 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
8589
8590         * h8300.md (*andorhi3): New pattern.
8591
8592 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
8593
8594         * h8300.c (dosize): Fix test for "sub".
8595
8596 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
8597
8598         * c-typeck.c (pointer_diff): Try to eliminate common term before
8599         doing conversions.
8600
8601 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
8602
8603         * config/arm/arm.c (arm_compute_initial_elimination_offset):
8604         Account for the saves of the FP registers.
8605
8606         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
8607         (TEXT_SECTION_ASM_OP): Define.
8608         (INIT_SECTION_ASM_OP): Define.
8609         (FINI_SECTION_ASM_OP): Define.
8610         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
8611         (RDATA_SECTION_FUNCITON): Provide prototype.
8612
8613 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
8614
8615         * reload1.c (move2add_note_store): Correct typo checking for
8616         argument pushes.
8617
8618 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
8619
8620         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
8621         note should not be considered outside the libcall block.
8622
8623 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8624
8625         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
8626
8627 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8628
8629         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
8630
8631 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8632
8633         * config/h8300/h8300-protos.h: Add a prototype for
8634         emit_logical_op.
8635         * config/h8300/h8300.c (emit_logical_op): New.
8636         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
8637         (andsi3): Likewise.
8638         (iorhi3): Likewise.
8639         (iorsi3): Likewise.
8640         (xorhi3): Likewise.
8641         (xorsi3): Likewise.
8642
8643 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8644
8645         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
8646         comparison with rtx INTVAL.
8647         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
8648         expression.
8649         * pa.h (FUNCTION_ARG_SIZE): Likewise.
8650
8651 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8652
8653         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
8654         comment typos.
8655
8656 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8657
8658         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
8659         (reg n) to (mem (pre_dec (reg n))
8660         (anonymous movsi pattern): Likewise.
8661
8662 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8663
8664         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
8665
8666 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8667
8668         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
8669         several special constants.
8670
8671 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8672
8673         * config/h8300/lib1funcs.asm: Fix comment typos.
8674
8675 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8676
8677         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
8678         Fix format specifier warnings.
8679
8680         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
8681         inet_makeaddr, semctl): Prototype.
8682
8683         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
8684         (save_restore_insns): Use base_offset, not gp_offset.
8685
8686         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
8687         (ASM_OUTPUT_BYTE): Fix format specifier warning.
8688
8689 2001-08-29  Richard Henderson  <rth@redhat.com>
8690
8691         * bb-reorder.c (function_tail_eff_head): New.
8692         (record_effective_endpoints): Set it.
8693         (fixup_reorder_chain): Use it.
8694
8695 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8696
8697         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
8698
8699 2001-08-28  Dale Johannesen  <dalej@apple.com>
8700
8701         * config/darwin.c (machopic_function_base_name): Add const
8702         qualifier to a string.
8703         (darwin_encode_section_info): Ditto.
8704
8705 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8706
8707         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
8708         function definition.
8709
8710 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
8711
8712         * df.h (struct df): Add rts_order variable.
8713
8714         * df.c (df_visit_next_rts): New function.
8715         (df_visit_next): Renamed to df_visit_next_rc
8716         (df_analyse_1): Allocate/compute/free rts_order as well.
8717         (df_rd_global_compute): Use df_visit_next_rc instead of
8718         df_visit_next.
8719         (df_ru_global_compute): Use df_visit_next_rts instead of
8720         df_visit_next.
8721
8722         * flow.c (flow_reverse_top_sort_order_compute): New function.
8723
8724         * basic-block.h: Add prototype.
8725
8726 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
8727
8728         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
8729         blocks, the BB_REACHABLE is now set, rather than aux being
8730         non-NULL. Update the test to reflect this.
8731
8732 2001-08-28  Eric Christopher  <echristo@redhat.com>
8733
8734         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
8735         config/mips/crti.asm: Ditto.
8736
8737 2001-08-28  Eric Christopher <echristo@redhat.com>
8738             Richard Henderson <rth@redhat.com>
8739
8740         * c-pragma.h (add_weak): Move prototype from here...
8741         * output.h (add_weak): ... to here.
8742         * varasm.c (add_weak): Fix typo.
8743         * config/mips/crti.asm: New file.
8744         * config/mips/crtn.asm: Ditto.
8745         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
8746         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
8747         (INVOKE__main): Ditto.
8748         (INIT_SECTION_ASM_OP): New.
8749         (FINI_SECTION_ASM_OP): Ditto.
8750         (STARTFILE_SPEC): Add crti.
8751         (ENDFILE_SPEC): Add crtn.
8752         * config/mips/elf64.h: Same.
8753         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
8754         Remove.
8755         * config/mips/vxworks.h: Ditto.
8756         * config/mips/t-elf: Support crti and crtn.
8757
8758 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8759
8760         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
8761         INSN_LIST.
8762
8763 2001-08-28  Richard Henderson  <rth@redhat.com>
8764
8765         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
8766         (one_cmplbi2 splitter): Remove redundant test.
8767
8768 2001-08-28  Dale Johannesen  <dalej@apple.com>
8769
8770         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
8771
8772 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
8773
8774         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
8775
8776 2001-08-28  Stan Shebs  <shebs@apple.com>
8777
8778         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
8779         (UNALIGNED_SHORT_ASM_OP): Define.
8780         (UNALIGNED_INT_ASM_OP): Define.
8781
8782 2001-08-28  Will Cohen  <wcohen@redhat.com>
8783
8784         * config/rs6000/rs6000.md (store_multiple): Correct RTL
8785         generation for first set.
8786
8787 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
8788
8789         * flow.c (redirect_edge_succ_nodup): Return new edge.
8790         (try_simplify_condjump): Use new edge.
8791         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
8792
8793         * cse.c (cse_basic_block): Skip note instructions.
8794
8795 2001-08-27  Richard Henderson  <rth@redhat.com>
8796
8797         * combine.c (combine_simplify_rtx): Don't reverse condition
8798         if there is no reverse for the condition.
8799         (simplify_comparison): Don't simplify subregs from INT to FP.
8800
8801         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
8802         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
8803         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
8804         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
8805         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
8806         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
8807
8808 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
8809
8810         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
8811         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
8812         (pushqi1): New.
8813         (adddi_dilshr32, adddi_dishl32): Only data register can be
8814         source for mem destination.
8815
8816         * expmed.c (store_bit_field): Ignore adjustment to bitpos
8817         and use bitnum to decide about register move.
8818
8819 2001-08-27  Richard Henderson  <rth@redhat.com>
8820
8821         * genattr.c (main): Emit state_t even when not doing scheduling.
8822
8823 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
8824             Richard Henderson  <rth@redhat.com>
8825
8826         * gcse.c (reg_first_set, reg_last_set): Replace with ...
8827         (reg_avail_info, current_bb): ... these.
8828         (oprs_unchanged_p, record_last_reg_set_info): Use them.
8829         (compute_hash_table): Likewise.
8830
8831 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
8832
8833         * flow.c (verify_flow_info): Use checksums to verify edges.
8834
8835 2001-08-27  Richard Henderson  <rth@redhat.com>
8836
8837         * genautomata.c (expand_automata): Always create a description.
8838
8839 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
8840
8841         * optabs.c (expand_binop): Correctly handle the carry in multiword
8842         add/subtract operations.
8843
8844 2001-08-27  Fred Fish  <fnf@be.com>
8845
8846         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
8847         __SIZE_TYPE__.
8848
8849 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
8850
8851         * reload.c (find_reloads_toplev): Back out this change:
8852
8853         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
8854
8855         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
8856         mem if the address is a mode_dependent_address_p.
8857
8858 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
8859
8860         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
8861         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8862         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8863         RTL constructions.
8864
8865         * genattr.c (main): New variable num_insn_reservations.  Increase
8866         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
8867         pipeline hazard recognizer interface.
8868
8869         * genattrtab.h: New file.
8870
8871         * genattrtab.c: Include genattrtab.h.
8872         (attr_printf, check_attr_test, make_internal_attr,
8873         make_numeric_value): Move protypes into genattrtab.h.  Define them
8874         as external.
8875         (num_dfa_decls): New global variable.
8876         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8877         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8878         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8879         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
8880
8881         * genautomata.c: New file.
8882
8883         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8884
8885         * sched-int.h: (curr_state): Add the external definition for
8886         automaton pipeline interface.
8887         (haifa_insn_data): Add comments for members blockage and units.
8888
8889         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8890         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8891         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8892         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8893         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8894         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8895         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8896         macros.
8897         (TARGET_SCHED): Use the new macros.
8898
8899         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8900         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8901         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8902         dfa_bubble): New members in gcc_target.sched.
8903
8904         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
8905         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8906         (insn_queue): Redefine it as pointer to array.
8907         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8908         INSN_QUEUE_SIZE.
8909         (max_insn_queue_index_macro_value): New variable.
8910         (curr_state, dfa_state_size, ready_try): New varaibles for
8911         automaton interface.
8912         (ready_element, ready_remove, max_issue): New function prototypes
8913         for automaton interface.
8914         (choose_ready): New function prototype.
8915         (insn_unit, blockage_range): Add comments.
8916         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8917         FUNCTION_UNITS_SIZE == 0.
8918         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8919         actual_hazard, potential_hazard): Add comments.
8920         (insn_cost): Use cost -1 as undefined value.  Remove
8921         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
8922         pipeline interface.
8923         (ready_element, ready_remove): New functions for automaton
8924         interface.
8925         (schedule_insn): Add new code for automaton pipeline interface.
8926         (queue_to_ready): Add new code for automaton pipeline interface.
8927         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8928         (debug_ready_list): Print newline when the queue is empty.
8929         (max_issue): New function for automaton pipeline interface.
8930         (choose_ready): New function.
8931         (schedule_block): Add new code for automaton pipeline interface.
8932         Print ready list before scheduling each insn.
8933         (sched_init): Add new code for automaton pipeline interface.
8934         Initiate insn cost by -1.
8935         (sched_finish): Free the current automaton state and finalize
8936         automaton pipeline interface.
8937
8938         * sched-rgn.c: Include target.h.
8939         (init_ready_list, new_ready, debug_dependencies): Add new code for
8940         automaton pipeline interface.
8941
8942         * sched-vis.c: Include target.h.
8943         (get_visual_tbl_length): Add code for automaton interface.
8944         (target_units, print_block_visualization):  Add comments.
8945
8946         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
8947         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8948         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8949         (getruntime.o, genautomata.o): New entries.
8950         (genattrtab.o): Add new dependency file genattrtab.h.
8951         (genattrtab): Add new dependencies.  Link it with `libm.a'.
8952         (getruntime.o, hashtab.o): New entries for canadian cross.
8953
8954         * doc/md.texi: Description of automaton based model.
8955
8956         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
8957         Add comments.
8958         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8959         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8960         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8961         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8962         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8963         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8964         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
8965         hook descriptions.
8966         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
8967         MAX_DFA_ISSUE_RATE): New macro descriptions.
8968
8969         * doc/contrib.texi: Add dfa based scheduler contribution.
8970
8971         * doc/gcc.texi: Add more information about genattrtab.
8972
8973 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
8974
8975         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
8976         an RTL basic block.
8977
8978 2001-08-27  Richard Henderson  <rth@redhat.com>
8979
8980         * function.c (expand_function_end): Don't init arg_pointer_save_area.
8981         (get_arg_pointer_save_area): New.  Create an init it here.
8982         (fix_lexical_addr): Use it.
8983         * function.h: Declare it.
8984         * builtins.c (expand_builtin_setjmp_receiver): Use it.
8985         * stmt.c (expand_nl_goto_receiver): Use it.
8986
8987 2001-08-27  Richard Henderson  <rth@redhat.com>
8988
8989         * final.c (final_scan_insn): Don't enter APP_ON mode for
8990         empty asm strings.
8991
8992         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
8993         alignment for assemble_integer for DW_EH_PE_aligned.
8994         * except.c (output_function_exception_table): Likewise.
8995
8996 2001-08-26  Andreas Jaeger  <aj@suse.de>
8997
8998         * c-tree.h: Add prototyp for c_sizeof_nowarn.
8999
9000 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
9001
9002         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
9003
9004 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
9005
9006         * config/rs6000/rs6000.c (mask_operand): Rewrite without
9007         bit-shifting loop.
9008         (mask64_operand): Likewise.
9009         (rldic_operand): Delete.
9010         (includes_lshift64_p): Delete.
9011         (includes_rldic_lshift_p): New function.
9012         (includes_rldicr_lshift_p): New function.
9013         (print_operand): Don't call rldic_operand in case 'W'.
9014         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
9015         (includes_lshift64_p): Remove.
9016         (includes_rldic_lshift_p): Declare.
9017         (includes_rldicr_lshift_p): Declare.
9018         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
9019         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
9020         Replace match_operand rldic_operand predicate with
9021         const_int_operand.  Replace includes_lshift64_p condition with
9022         includes_rldic_lshift_p.
9023         <ashldi3_internal 64 bit rldicr patterns>: New.
9024
9025 2001-08-27  Andreas Jaeger  <aj@suse.de>
9026
9027         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9028         * errors.c: Likewise.
9029         * final.c: Likewise.
9030         * dwarf2asm.c: Likewise.
9031         * doprint.c (checkit): Likewise.
9032         * diagnostic.c: Likewise.
9033         * collect2.c: Likewise.
9034         * calls.c: Likewise.
9035         * c-semantics.c (build_stmt): Likewise.
9036         * c-format.c (status_warning): Likewise.
9037         * c-errors.c (pedwarn_c99): Likewise.
9038         * builtins.c (validate_arglist): Likewise.
9039         * config/pj/pj.c (pj_printf): Likewise.
9040         * fix-header.c: Likewise.
9041         * gcc.c: Likewise.
9042         * gcov.c (fnotice): Likewise.
9043         * gensupport.c (message_with_line): Likewise.
9044         * mips-tfile.c: Likewise.
9045         * protoize.c (notice): Likewise.
9046         * read-rtl.c (fatal_with_file_and_line): Likewise.
9047         * rtl-error.c: Likewise.
9048         * tradcpp.c: Likewise.
9049         * tree.c: Likewise.
9050         * cp/tree.c (build_min_nt): Likewise.
9051         (build_min): Likewise.
9052         * cp/lex.c: Likewise.
9053         * cp/errfn.c: Likewise.
9054         * cp/rtti.c (create_pseudo_type_info): Likewise.
9055
9056 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
9057
9058         * df.c (df_uses_record): Return after recording all uses
9059         in ASM_OPERANDS.
9060
9061 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
9062
9063         * df.c (df_insn_modify): Realloc the INSN table here, if
9064         necessary, here, too.
9065
9066 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
9067
9068         * config/mips/mips.c (mips_function_value): Handle complex return
9069         values.
9070
9071 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
9072
9073         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
9074         unshared.
9075         * reload.c (make_memloc): Copy result if it is still
9076         reg_equiv_memory_loc[regno] on return.
9077         (subst_reloads) [ENABLE_CHECKING]: Check that none of
9078         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
9079         reg_equiv_mem are modified by the substitutions.
9080
9081 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9082
9083         * predict.c (expensive_function_p): New.
9084         * rtl.h (expensive_function_p): Declare.
9085         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
9086         (use_fast_prologue_epilogue): New static variable.
9087         (expand_prologue): Set it; emit short prologues if unset.
9088         (expand_epilogue): Likewise.
9089
9090 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
9091
9092         * config.gcc: Add stormy16-*-elf case.
9093         * config/stormy16/stormy-abi: New file.
9094         * config/stormy16/stormy16-lib2.c: New file.
9095         * config/stormy16/stormy16-protos.h: New file.
9096         * config/stormy16/stormy16.c: New file.
9097         * config/stormy16/stormy16.h: New file.
9098         * config/stormy16/stormy16.md: New file.
9099         * config/stormy16/t-stormy16: New file.
9100
9101 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
9102
9103         * i386.h (no-accumulate-outgoing-args): Use proper mask.
9104
9105 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
9106
9107         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
9108         descriptor members are pointer size, not constant 4.
9109         * config/rs6000/rs6000.md (define_splits): Remove more unused
9110         constraints.
9111
9112 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9113
9114         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
9115
9116 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
9117
9118         * cp/rtti.c (VPARAMS): Fix parameter.
9119
9120 2001-08-24  Zack Weinberg  <zackw@panix.com>
9121
9122         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
9123         to zero.
9124         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
9125         to switch.
9126         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
9127         in if controlling use of insv.
9128         (extract_bit_field): Likewise, for extv and extzv.
9129
9130 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
9131
9132         * i386.md (movcc peep2): Fix load of 0.
9133
9134 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9135
9136         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
9137         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
9138
9139 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
9140
9141         * c-pragma.h: Move weak_syms and weak_decls...
9142         * varasm.c: ...here.  Now static.
9143         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
9144         depend on HANDLE_PRAGMA_WEAK.
9145
9146         * c-common.c (c_alignof, c_alignof_expr): Move here...
9147         * c-typeck.c: ...from here.
9148         * c-tree.h, c-common.h: Adjust.
9149
9150 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
9151
9152         * config/ia64/ia64.c (rws_update): If !pred, set write_count
9153         instead of incrementing it.
9154
9155         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
9156         asm ready, don't try to move them all into the same array element.
9157
9158 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
9159
9160         * function.c (thread_prologue_and_epilogue_insns): Avoid
9161         fallthru flag on edge to exit.
9162
9163         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
9164
9165         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
9166         dead edges.
9167
9168 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
9169
9170         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
9171         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
9172         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
9173         Remove prototype.
9174
9175 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
9176
9177         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
9178         replace "GNU CC" with "GCC".
9179
9180 2001-08-23  Richard Henderson  <rth@redhat.com>
9181
9182         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
9183         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
9184         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
9185         Need GR between FR and not GR_AND_FR.
9186         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
9187         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
9188         AR regs before GR regs.
9189         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
9190         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
9191         (REGISTER_MOVE_COST): Update.
9192         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
9193
9194 2001-08-23  Richard Henderson  <rth@redhat.com>
9195
9196         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
9197         a register class.
9198
9199 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
9200
9201         * reload1.c (emit_reload_insns): Don't look for notes
9202         on a NULL store_insn.
9203
9204 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9205
9206         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
9207         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
9208         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
9209         format specifier warnings.
9210         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
9211
9212 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
9213
9214         * config/i386/i386-protos.h: Correct declaration of
9215         i386_pe_asm_named_section.
9216
9217 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9218
9219         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
9220         variable i.
9221         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
9222
9223 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9224
9225         * cpperror.c (print_location): Don't show _Pragma.
9226         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
9227         and file change callback generation here.
9228         (stack_include_file): Update use of cpp_push_buffer.
9229         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
9230         (struct cpp_buffer): Remove type, pfile members.
9231         * cppinit.c (cpp_handle_option): Use free_chain.
9232         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
9233         (skip_escaped_newlines, get_effective_char, lex_percent): Take
9234         a cpp_reader rather than a cpp_buffer.
9235         (skip_escaped_newlines, get_effective_char, skip_block_comment,
9236         skip_line_comment, parse_string, lex_percent, lex_dot,
9237         _cpp_lex_token): Update accordingly.
9238         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
9239         generation here.
9240         (cpp_push_buffer): Update prototype.
9241         (run_directive): Update use of cpp_push_buffer.
9242         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
9243         handle_assertion): Update use of run_directive.
9244         * cpplib.h (enum cpp_buffer_type): Remove.
9245         (cpp_push_buffer): Update prototype.
9246         * fix-header.c (read_scan_file): Update.
9247
9248 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9249
9250         * gcc.c (struct prefix_list): Change prefix to const char *.
9251
9252 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9253
9254         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
9255
9256 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
9257
9258         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
9259         from a new MEM.
9260
9261         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
9262         a squeezable note.
9263         * rtl.h: Adjust.
9264         * ifcvt.c (dead_or_predicable): Adjust.
9265         * loop.c (find_and_verify_loops): Adjust.
9266         * stmt.c (expand_end_case): Adjust.
9267         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
9268         head and end insn pointers in the basic block, not just local copies.
9269         (merge_blocks_move_predecessor_nojumps): Likewise.
9270
9271 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
9272
9273         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
9274         bitmap.h, builtin-types.def, builtins.c, builtins.def,
9275         c-aux-info.c, c-common.c, c-common.def, c-common.h,
9276         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
9277         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
9278         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
9279         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
9280         conditions.h, config.gcc, configure.frag, configure.in,
9281         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
9282         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
9283         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
9284         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
9285         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
9286         emit-rtl.c, errors.c, errors.h, except.c, except.h,
9287         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
9288         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
9289         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
9290         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
9291         gencheck.c, gencodes.c, genconfig.c, genemit.c,
9292         genextract.c, genflags.c, gengenrtl.c, genmultilib,
9293         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
9294         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
9295         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
9296         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
9297         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
9298         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
9299         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
9300         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
9301         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
9302         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
9303         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
9304         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
9305         params.h, predict.c, predict.def, predict.h, prefix.c,
9306         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
9307         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
9308         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
9309         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
9310         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
9311         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
9312         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
9313         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
9314         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
9315         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
9316         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
9317         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
9318         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
9319         xcoffout.h: replace "GNU CC" with "GCC".
9320
9321 2001-08-21  Richard Henderson  <rth@redhat.com>
9322
9323         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
9324         (final_scan_insn): Consider jump tables data even if we have no
9325         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
9326         ADDR_VEC_ALIGN.
9327         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
9328         (ASM_OUTPUT_CASE_END): Remove.
9329         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
9330         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
9331         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
9332
9333 2001-08-21  Richard Henderson  <rth@redhat.com>
9334
9335         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
9336         at barrier insns.  Emit stop bits before barriers.
9337
9338         * flow.c (flow_find_cross_jump): Don't consider unconditional
9339         return insns for commoning.
9340
9341         * final.c (compute_alignments): Fix typo.
9342
9343         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
9344         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
9345         (store_bit_field): Use mode_for_extraction more places.
9346         (extract_bit_field): Likewise.
9347
9348 2001-08-21  Zack Weinberg  <zackw@panix.com>
9349
9350         * caller-save.c: Don't include insn-codes.h.
9351         (reg_save_code, reg_restore_code): Make arrays of int.
9352         All uses updated to match.
9353         (insert_save, insert_restore): No need to initialize "code"
9354         variable upon declaration.
9355         * Makefile.in: update dependencies; fix typo in clean rule.
9356
9357 2001-08-21  Richard Henderson  <rth@redhat.com>
9358
9359         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
9360         (merge_if_block): Handle fallout from same.
9361
9362 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9363
9364         * builtins.c (type_to_class): Fix typo in last change.
9365
9366 2001-08-21  Richard Henderson  <rth@redhat.com>
9367
9368         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
9369         ia64_asm_output_label.
9370
9371         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
9372         copy of gp while the real gp register contains garbage.
9373
9374 2001-08-21  Zack Weinberg  <zackw@panix.com>
9375
9376         * expmed.c (mode_for_extraction): New function.
9377         (store_bit_field, extract_bit_field): Use it.
9378         * expr.h: Prototype it and provide an enum for its first argument.
9379
9380         * combine.c, function.c, recog.c: Don't include insn-codes.h.
9381         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
9382         and digging through the insn_data tables.
9383         * Makefile.in: Update dependencies.
9384
9385 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9386
9387         * cppfiles.c (stack_include_file): line-map.c now handles include
9388         depth.
9389         (handle_missing_handler): Similarly.
9390         (_cpp_execute_include): Similarly.
9391         (_cpp_pop_file_buffer): Similarly.
9392         * cpphash.h (struct cpp_reader): Remove system_include_depth,
9393         buffer_stack_depth and include_depth.
9394         * cpplib.c (do_include_common): line-map.c now handles include depth.
9395         (cpp_push_buffer): Similarly.
9396         (_cpp_pop_buffer): Similarly.
9397         * cppmacro.c (builtin_macro): Update.
9398         * line-map.c (init_line_maps): Set depth.
9399         (add_line_map): Increment "used" earlier.  Update and use the
9400         include depth.
9401         (trace_include): Use the include depth.
9402         * line-map.h (struct line_maps): New member depth.
9403
9404 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9405
9406         * cppfiles.c (stack_include_file): Don't handle -H here.
9407         * cppinit.c (cpp_start_read): Set include tracing after
9408         cpp_post_options and after stacking the main file.
9409         * line-map.c (trace_include): New.
9410         (init_line_maps, add_line_map): Update.
9411         * line-map.h (struct line_maps): New member trace_includes.
9412
9413 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9414
9415         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
9416         * cppfiles.c (stack_include_file): Only stack a file if there
9417         is something to do.  Return a boolean indicating whether a
9418         buffer was stacked or not.
9419         (_cpp_execute_include): Similarly.
9420         (_cpp_read_file): Similarly.
9421         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
9422
9423 2001-08-21  Sam Steingold  <sds@gnu.org>
9424
9425         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
9426         (RECACHE): keep obufp_before_macroname up to date
9427
9428 2001-08-21  Zack Weinberg  <zackw@panix.com>
9429
9430         * stmt.c: Don't include insn-codes.h.
9431         (expand_end_case): Machine specific logic moved to expr.c.
9432         No need to worry about __builtin_classify_type.
9433         (check_for_full_enumeration_handling, emit_case_nodes):
9434         Kill #if 0 blocks.
9435
9436         * builtins.o (expand_builtin_classify_type): Split up so code
9437         can be shared with fold_builtin_classify_type.
9438         (type_to_class, fold_builtin_classify_type): New functions.
9439         (fold_builtins): Handle __builtin_classify_type.
9440
9441         * expr.c (do_tablejump): Now static.
9442         (case_values_threshold, try_casesi, try_tablejump): New;
9443         code mostly from stmt.c (expand_end_case).
9444         (expr.h): Update prototypes.
9445
9446         * Makefile.in (stmt.o): Update dependencies.
9447
9448 2001-08-21  Will Cohen  <wcohen@redhat.com>
9449
9450         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
9451         declaration of variable i.
9452         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
9453         declaration of variable i.
9454
9455 2001-08-21  Richard Henderson  <rth@redhat.com>
9456
9457         * crtstuff.c: Fix thinko last change.  Move list tails to start
9458         of CRT_END section.  Tidy ifdefs.
9459         (__EH_FRAME_BEGIN__): Always static for ELF.
9460         (__do_global_ctors_1): Rename from __frame_dummy.
9461         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
9462         name change; don't hide __EH_FRAME_BEGIN__.
9463
9464 2001-08-21  Richard Henderson  <rth@redhat.com>
9465
9466         * gdbinit.in: Move break on exit after break on fancy_abort.
9467
9468         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
9469         sized types.
9470
9471 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9472
9473         * cpphash.h (_cpp_push_next_buffer): New.
9474         * cppinit.c (do_includes): Remove.
9475         (push_include, free_chain, _cpp_push_next_buffer): New.
9476         (cpp_start_read): Use them to rework command line option handling.
9477         (cpp_handle_option): Combine handling of -include and -imacros.
9478         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
9479         appropriate.  Always insert missing \n at EOF.
9480         * cpplib.c (start_directive): Get the directive position right.
9481         * cppmain.c (cb_file_change): Always print the first line, unless
9482         preprocessed.
9483
9484 2001-08-20  Andreas Jaeger  <aj@suse.de>
9485
9486         * profile.c (compute_branch_probabilities): Remove extra new-line
9487         in error message.
9488         * flow.c (verify_flow_info): Likewise.
9489
9490 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
9491
9492         * basic-block.h (basic_block): Add new field 'flags'.
9493         (BB_REACHABLE): Define.
9494         (expunge_block): Declare.
9495         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
9496         (EXIT_BLOCK_PTR): Ditto.
9497         (expunge_block): Remove static declaration.
9498         (cleanup_cfg): Clear bb->aux on every basic block.
9499         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
9500         computing reachability.
9501         (delete_unreachable_blocks): Delete block b if b->flags has
9502         BB_REACHABLE unset.
9503
9504 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
9505
9506         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
9507
9508 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9509
9510         * sparc.c (sparc_variable_issue): Fix typo in last change.
9511
9512 2001-08-20  Richard Henderson  <rth@redhat.com>
9513
9514         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
9515
9516 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9517
9518         * pa.h (RETURN_IN_MEMORY): Improve comment.
9519
9520 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
9521
9522         * doc/invoke.texi (Profiling options): Clarify the interactions
9523         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
9524
9525 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
9526
9527         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
9528         command.
9529
9530 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9531
9532         * gcc.c (make_relative_prefix): Allocate a sufficiently large
9533         buffer.
9534
9535 2001-08-20  Richard Henderson  <rth@redhat.com>
9536
9537         * final.c (end_final): Fix typo last change.
9538
9539 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9540
9541         * cppinit.c (init_standard_includes): The returned buffer
9542         is already malloc-ed.
9543         * gcc.c (add_prefix): Similarly.
9544         * prefix.c (translate_name): Update to support clear buffer
9545         ownership rules.
9546         (update_path): Similarly.  Be sure to free any newly allocated
9547         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
9548         (tr): New function.
9549         * prefix.h (update_path): Update prototype and document.
9550         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
9551         up and update to new buffer ownership rules.
9552         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
9553
9554 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
9555
9556         * final.c (compute_alignments): New function.
9557         (init_insn_lengths): Do not care label_align.
9558         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
9559         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
9560         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
9561         (shorted_branches): Realloc label_align array; do
9562         not call init_insn_lengths; Do not care about loop alignments.
9563         * output.h (compute_alignments): Declare.
9564         * toplev.c (rest_of_compilation): Call compute_alignments.
9565         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
9566
9567         * predict.c (block_info_def): Add npredecesors, remove nvisited;
9568         change visited to tovisit.
9569         (propagate_freq): Use faster traversing algorithm.
9570         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
9571         to tovisit; reverse meaning.
9572
9573         * predict.c (struct block_info_def): Remove nvisited.
9574         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
9575         (estimate_bb_frequencies): Call mark_dfs_back_edges.
9576
9577 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
9578
9579         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
9580         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
9581         (TARGET_FUSED_MADD): New.
9582         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
9583         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
9584         the multiply-add instructions.
9585
9586 2001-08-19  Richard Henderson  <rth@redhat.com>
9587
9588         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
9589         is aligned to pointer size.
9590
9591 2001-08-19  Richard Henderson  <rth@redhat.com>
9592
9593         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
9594         display markers during final schedule.
9595
9596 2001-08-19  Richard Henderson  <rth@redhat.com>
9597
9598         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
9599
9600 2001-08-19  Richard Henderson  <rth@redhat.com>
9601
9602         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
9603         in the same string.
9604         (ASM_NAME_TO_STRING): Remove.
9605         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
9606         in the same string.  Remove support for expressions.
9607
9608 2001-08-19  Richard Henderson  <rth@redhat.com>
9609
9610         * config/i386/i386.md (tablejump): Make an expander; handle
9611         pic relative addressing here.
9612         (tablejump_1): Rename from tablejump_pic.
9613         (casesi): Remove.
9614
9615 2001-08-19  Richard Henderson  <rth@redhat.com>
9616
9617         * regclass.c (fix_register): Fix typo.
9618
9619 2001-08-18  Richard Henderson  <rth@redhat.com>
9620
9621         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
9622         (struct _Unwind_Context): Expand br_loc to hold it.
9623         (uw_frame_state_for): Handle leaf functions better.
9624         (uw_update_reg_address): Update for br_loc change.
9625
9626 2001-08-18  Richard Henderson  <rth@redhat.com>
9627
9628         * crtstuff.c: Move list heads before code that uses them.
9629         (__JCR_LIST__): Remove initial null.
9630         (frame_dummy, __frame_dummy): Do java registration here ...
9631         (__do_global_ctors_aux): ... not here.
9632
9633         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
9634         (__do_global_dtors_aux): Update to match.
9635         (__JCR_LIST__, __do_jv_register_classes): New.
9636         (.init): Call it.
9637         * config/ia64/crtend.asm (__JCR_END__): New.
9638         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
9639         instead of an indirect LTOFF22 reloc.
9640
9641 2001-08-18  Richard Henderson  <rth@redhat.com>
9642
9643         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
9644         * regclass.c (init_reg_sets_1): Fix typo.
9645         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
9646         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
9647         (ia64_compute_frame_size): Make ar.unat live when in use.
9648         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
9649         for ar.pfs; remove ar.unat handling.
9650         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
9651         call-saved.
9652         (PREDICATE_CODES): Add ar_pfs_reg_operand.
9653         * config/ia64/ia64-protos.h: Update decls.
9654         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
9655         (sibcall_pic): Likewise.
9656
9657 2001-08-18  Richard Henderson  <rth@redhat.com>
9658
9659         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
9660         pred_rel_mutex when searching for insn_group_barrier.
9661         * config/ia64/ia64.md (cycle_display): Combine the expander
9662         and insn patterns.
9663
9664         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
9665         bit before asm as needed.
9666
9667 2001-08-18  Richard Henderson  <rth@redhat.com>
9668
9669         * timevar.def (TV_MACH_DEP): New.
9670         * toplev.c (rest_of_compilation): Use it.
9671         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
9672
9673 2001-08-18  Zack Weinberg  <zackw@panix.com>
9674
9675         * unwind-dw2.c (execute_stack_op): Add default aborts to
9676         the inner switches to prevent warnings.
9677
9678 2001-08-18  Richard Henderson  <rth@redhat.com>
9679
9680         * timevar.h (struct timevar_time_def): Change element type to float.
9681         (ticks_to_msec, clocks_to_msec): Likewise.
9682         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
9683         (get_time): Likewise.
9684         (timevar_print): Adjust zero check and printing to match.
9685
9686 2001-08-18  Zack Weinberg  <zackw@panix.com>
9687
9688         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
9689         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
9690         Eliminate overfull or underfull hboxes.
9691
9692 2001-08-18  Zack Weinberg  <zackw@panix.com>
9693
9694         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9695
9696 2001-08-18  Zack Weinberg  <zackw@panix.com>
9697
9698         * haifa-sched.c: Convert to target hooks.  Macros replaced
9699         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
9700         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
9701         MD_SCHED_FINISH, and HAVE_cycle_display.
9702         * target-def.h (TARGET_SCHED_ADJUST_COST,
9703         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
9704         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
9705         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
9706         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
9707         New hook #defines to be overridden.
9708         (TARGET_SCHED): Bring them all together.
9709         (TARGET_INITIALIZER): Update.
9710         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
9711         instead of 'struct rtx_def *' throughout.
9712         (struct sched): New set of hooks for the scheduler.
9713         * Makefile.in (haifa-sched.o): Depend on target.h.
9714         * doc/tm.texi: Document the new scheduler hooks, together in
9715         their own section, instead of scattered around.
9716         Fix a bunch of underfull/overfull hboxes.
9717
9718         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
9719         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
9720         sparc.h: Don't define any of the old scheduler macros.
9721
9722         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
9723         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
9724         sparc.c: Create hook functions from code extracted from
9725         corresponding target header, or make existing hooks static, as
9726         appropriate.  Set the appropriate entries in targetm.
9727
9728         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
9729         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
9730         rs6000-protos.h, s390-protos.h, sparc-protos.h:
9731         Remove prototypes for functions which are now static.
9732
9733         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
9734         related gunk; the Haifa scheduler is now the only choice.
9735
9736 2001-08-18  Zack Weinberg  <zackw@panix.com>
9737
9738         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
9739         * genopinit.c: Put floating point divide insns in sdiv_optab.
9740         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
9741         * config/gofast.h, config/c4x/c4x.h,
9742         config/ia64/hpux_longdouble.h, config/mips/mips.h,
9743         config/pa/long_double.h, config/rs6000/sysv4.h,
9744         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
9745         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
9746         (init_optabs): Use init_optabv for overflow-trapping optabs.
9747         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
9748         cmp_optab RTX codes so have_insn_for can find them.
9749
9750         * optabs.c (expand_simple_binop, expand_simple_unop,
9751         have_insn_for, gen_sub3_insn): New interfaces.
9752         * expr.h: Prototype new functions.
9753         (enum optab_methods): Move here from optabs.h.
9754
9755         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
9756         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
9757         Use new functions instead of working directly with optabs.
9758         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
9759         unroll.c: Don't include optabs.h.
9760         * caller-save.c, combine.c, function.c, stmt.c: Just include
9761         insn-codes.h, not optabs.h.
9762         * Makefile.in: Update dependencies.
9763
9764         * combine.c (make_compound_operation, simplify_comparison):
9765         Fix typos testing for this or that instruction.
9766
9767 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9768
9769         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
9770         generating libgcc.a.
9771
9772 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9773
9774         * except.c (TYPE_HASH): Delete.
9775
9776         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
9777         HOST_WIDE_INT.
9778
9779         * tree.c (TYPE_HASH): Delete.
9780
9781         * tree.h (TYPE_HASH): Define.
9782
9783 2001-08-18  Graham Stott  <grahams@redhat.com>
9784
9785         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
9786         define_split.
9787         (adddi3_internal_2+2): Likewise.
9788         (eh_set_lr_di+1): Likewise.
9789
9790 2001-08-17  Richard Henderson  <rth@redhat.com>
9791
9792         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9793         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
9794         * dwarf2asm.c: ... here.
9795         * dwarfout.c: Remove them.
9796
9797         * varasm.c (assemble_integer): Add align parameter.
9798         (assemble_real, output_constant, output_constructor): Likewise.
9799         * output.h: Update decls.
9800         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
9801         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
9802         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
9803         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
9804         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
9805         Update all callers.
9806
9807         * final.c (end_final): Abort profile block generation if we
9808         haven't layed it out properly.
9809         * output.h (assemble_eh_integer): Remove stale decl.
9810         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
9811         (min_align): New.
9812         (assemble_integer): Handle unaligned data.
9813         (assemble_real): Abort on unaligned data.
9814         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
9815         anything useful.
9816         (default_dtor_section_asm_out_destructor): Use assemble_align.
9817         (default_named_section_asm_out_constructor): Likewise.
9818         (default_ctor_section_asm_out_constructor): Likewise.
9819         * config/darwin.c (machopic_asm_out_constructor): Likewise.
9820         (machopic_asm_out_destructor): Likewise.
9821         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
9822         (nextstep_asm_out_destructor): Likewise.
9823         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
9824         (vms_asm_out_destructor): Likewise.
9825
9826 2001-08-17  Richard Henderson  <rth@redhat.com>
9827
9828         * config/mips/iris6.h (TARGET_IRIX6): New.
9829         (current_section_name, current_section_flags): New.
9830         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
9831         (MAX_OFILE_ALIGNMENT): New.
9832         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
9833         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
9834         (copy_file_data): Split out from
9835         (mips_asm_file_end): ... here.
9836         (mips_asm_file_start): Remove extra .section directive.  Use
9837         tmpfile instead of mips_make_temp_file.
9838         (mips_unique_section): Use const char * as needed for warnings.
9839         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
9840         re-add align parameter.
9841         (iris6_asm_named_section): New.
9842         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
9843         (iris6_asm_output_align, iris6_section_align_1): New.
9844         (iris6_asm_file_start, iris6_asm_file_end): New.
9845         * config/mips/mips-protos.h: Update decls.
9846
9847 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
9848
9849         * doc/install.texi (Install GCC): Add links to build status pages.
9850         (Specific): Ditto.
9851         (Final install): Ditto; request updates for specific info
9852
9853 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9854
9855         * cpperror.c (print_location):  Don't take a file name; use the
9856         line map instead.
9857         (_cpp_begin_message): Similarly.
9858         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
9859         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
9860         (cpp_pedwarn_with_file_and_line): Remove.
9861         * cppfiles.c (stack_include_file): Update; set filename to stdin
9862         here when appropriate.
9863         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
9864         (_cpp_begin_message): Don't take a file name.
9865         * cppinit.c: Add comment.
9866         * cpplex.c: Fix end-of-directive indicator.
9867         * cpplib.c: Don't include intl.h.
9868         (run_directive, do_diagnostic): Update.
9869         (do_line): Update to not use nominal_fname.
9870         (cpp_push_buffer): Don't take a filename.
9871         * cpplib.h (struct ht): Remove.
9872         (cpp_push_buffer): Don't take a filename.
9873         (cpp_pedwarn_with_file_and_line): Remove.
9874         * cppmacro.c (struct cpp_macro): Remove file.
9875         (builtin_macro): Update.
9876         (_cpp_create_definition): Update.
9877         * cppmain.c: Correct comment.
9878         * fix-header.c (read_scan_file): Update.
9879
9880 2001-08-17  Kazu Hirata  <kazu@hxi.com>
9881
9882         * sbitmap.c: Fix comment formatting.
9883         * sched-deps.c: Likewise.
9884         * sibcall.c: Likewise.
9885         * simplify-rtx.c: Likewise.
9886         * ssa.c: Likewise.
9887         * ssa-ccp.c: Likewise.
9888         * stor-layout.c: Likewise.
9889         * timevar.c: Likewise.
9890         * toplev.c: Likewise.
9891         * unwind-dw2.c: Likewise.
9892         * unwind-dw2-fde.c: Likewise.
9893         * varasm.c: Likewise.
9894
9895 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9896
9897         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
9898         or larger than an integer in memory.
9899
9900 2001-08-17  Zack Weinberg  <zackw@panix.com>
9901
9902         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
9903         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
9904         * rtl.h: Don't forward-declare union tree_node here.  Don't
9905         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
9906         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9907         and tree respectively.
9908         * tree.h: Don't forward-declare struct rtx_def here.  Don't
9909         typedef tree here.  Change all uses of struct rtx_def *,
9910         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9911         and tree respectively.
9912
9913 2001-08-17  Richard Henderson  <rth@redhat.com>
9914
9915         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
9916         config/mips/openbsd.h: Fix typos last change.
9917
9918 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9919
9920         * doc/invoke.texi (Optimize Options): The default for
9921         -finline-limit is 600.
9922
9923 2001-08-17  Richard Henderson  <rth@redhat.com>
9924
9925         * varasm.c (text_section): Allow TEXT_SECTION to override the
9926         printing of TEXT_SECTION_ASM_OP.
9927         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
9928         (DATA_SECTION, BSS_SECTION): Remove.
9929         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
9930         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
9931         Rename from s/_NAME//.
9932         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
9933         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
9934         (TEXT_SECTION): ... here.  New.
9935         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
9936         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
9937         * config/mips/openbsd.h: Likewise.
9938         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
9939         (mips_asm_file_end): Likewise test.
9940         (mips_output_function_epilogue): Likewise.  Switch back to data
9941         section after emitting the function.
9942
9943         * doc/tm.texi (Sections): Document TEXT_SECTION.
9944
9945 2001-08-17  Richard Henderson  <rth@redhat.com>
9946
9947         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
9948         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
9949
9950 2001-08-17  Richard Henderson  <rth@redhat.com>
9951
9952         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
9953         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
9954         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
9955         Add aligned attribute.
9956
9957 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
9958
9959         * config/sh/sh.md: Add modes to unspecs in first insn to match
9960         those in the second.
9961
9962         * Makefile.in: Fix collect2 copy for Cygwin.
9963
9964 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
9965
9966         Install the proper patch.
9967         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
9968         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
9969         (expand_function_start): Likewise.
9970         * stmt.c (expand_decl): Likewise.
9971         * varasm.c (make_decl_rtx): Likewise.
9972
9973 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9974
9975         * final.c: Undo my previous accidental checkin.
9976         * output.h: Likewise.
9977         * tm.texi: Likewise.
9978
9979 2001-08-16  Richard Henderson  <rth@redhat.com>
9980
9981         * varasm.c (named_section_flags): Remove align parameter.
9982         * varasm.c, dwarf2out.c: Update all callers.
9983         * output.h: Update prototypes.
9984
9985         * target.h (target.asm_out.named_section): Remove align parameter.
9986         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
9987         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
9988         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
9989         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
9990         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
9991
9992         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
9993         (get_named_section_flags, set_named_section_flags): New.
9994         (named_section_flags): Use them.
9995         (named_section): Do decl vs section flags check here...
9996         (default_section_type_flags): ... not here.
9997         (init_varasm_once): Create in_named_htab.
9998         (resolve_unique_section): Mark reloc unused.
9999
10000 2001-08-16  Richard Henderson  <rth@redhat.com>
10001
10002         * varasm.c (force_const_mem): Keep pool alignment in bits.
10003         (output_constant_pool): Use assemble_align.
10004
10005 2001-08-16  Zack Weinberg  <zackw@panix.com>
10006
10007         * doc/tm.texi: Remove extra @table command.
10008
10009 2001-08-16  Zack Weinberg  <zackw@panix.com>
10010
10011         * final.c (shorten_branches): Clear the end of the label_align
10012         array only if we made it larger.  Break up messy expressions
10013         for clarity.
10014
10015         * diagnostic.c (internal_error): Check for error recursion
10016         before doing ICE suppression.
10017
10018         * timevar.c: Timing variables now count in milliseconds.
10019         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
10020         (get_time): Not here.
10021         (timevar_print): Don't print any timer whose user, cpu, and
10022         wall times are all zero as displayed.
10023         * timevar.h: Update comment aboout units.  Make timevar
10024         counters unsigned.
10025
10026 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
10027
10028         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
10029         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
10030         (expand_function_start): Likewise.
10031         * stmt.c (expand_decl): Likewise.
10032         * varasm.c (make_decl_rtx): Likewise.
10033
10034 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
10035
10036         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
10037         (finalize_record_size): Don't set TYPE_USER_ALIGN.
10038
10039 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10040
10041         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
10042         variables.
10043
10044 2001-08-16  Andreas Jaeger  <aj@suse.de>
10045
10046         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
10047         prototype.
10048
10049 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
10050
10051         * rtl.h (only_sets_cc0_p): New prototype.
10052         * jump.c (sets_cc0_p): Handle INSN.
10053         (only_sets_cc0_p): New function.
10054         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
10055         (tidy_fallthru_edge): Likewise.
10056         * integrate.c (copy_insn_list): Likewise.
10057         * unroll.c (unroll_loop): Likewise.
10058         (copy_loop_body): Likewise.
10059
10060 2001-08-15  Jason Eckhardt  <jle@redhat.com>
10061
10062         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
10063
10064 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10065
10066         * predict.c (struct block_info_def): Remove nvisited.
10067         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
10068         (estimate_bb_frequencies): Call mark_dfs_back_edges.
10069
10070         * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
10071         (ix86_adjust_cost): Teach scheduler that latency to load operand can
10072         be masked.
10073
10074 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
10075
10076         * predict.def: Update hitrates.
10077
10078 2001-08-15  Richard Henderson  <rth@redhat.com>
10079
10080         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
10081
10082 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
10083
10084         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
10085         note from its associated jump.
10086
10087 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
10088
10089         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
10090         also on 64-bit s390x targets.
10091
10092 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
10093
10094         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
10095         function.
10096         (arm_expand_prologue): Handled nested functions which take a
10097         variable argument list.
10098         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
10099         macro with an invocation of
10100         arm_compute_initial_elimination_offset.
10101         * config/arm/arm-protos.h: Prototype
10102         arm_compute_initial_elimination_offset.
10103
10104 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10105
10106         * doc/install.texi (Specific, avr): Fix markup.
10107         (Specific, c4x): Ditto.
10108
10109 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10110
10111         * predict.c (dump_prediction): Change `bool' parameter to `int'.
10112
10113 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
10114
10115         * Makefile.in (OBJS): Add rtl-error.o
10116         (rtl-error.o): New rule.
10117         (diagnostic.o): Adjust dependency.
10118         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
10119         error_for_asm, _fatal_insn, _fatal_insn_not_found,
10120         warning_for_asm): Move to...
10121         rtl-error.c: ...here.  New file.
10122
10123 2001-08-14  Richard Henderson  <rth@redhat.com>
10124
10125         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
10126         if USING_SJLJ_EXCEPTIONS.
10127
10128 2001-08-14  Steve Ellcey <sje@cup.hp.com>
10129
10130         * tlink.c (scan_linker_output): Check string for unsatisfied in
10131         addition to undefined and unresolved.
10132
10133 2001-08-14  Graham Stott  <grahams@redhat.com>
10134
10135         * libgcc2.c (*): Replace EH_FRAME_SECTION with
10136         EH_FRAME_SECTION_NAME.
10137
10138 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
10139
10140         * genattrtab.c (simplify_test_exp_in_temp): New function.
10141         (simplify_test_exp): Avoid explicit use of temporary obstack.
10142         (simplify_cond, insert_right_side, evaluate_eq_attr,
10143         simplify_and_tree, simplify_or_tree, eliminate_known_true):
10144         Use simplify_test_exp_in_temp.
10145         (optimize_attrs): Iterate until expression stabilizes.
10146
10147 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
10148
10149         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
10150         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
10151
10152 2001-08-13  Richard Henderson  <rth@redhat.com>
10153
10154         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
10155         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
10156         * config/arm/conix-elf.h: Likewise.
10157
10158 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
10159
10160         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
10161         in gcc.c.
10162         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10163
10164         * gcse.c (hash_scan_set): Expressions that are set as part of
10165         jump instructions are not available.
10166
10167 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
10168
10169         * config/s390/s390.c (print_operand, s390_function_prologue,
10170         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
10171
10172 2001-08-13  Richard Henderson  <rth@redhat.com>
10173
10174         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
10175         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
10176         * doc/tm.texi (Exception Region Output): Document it.
10177
10178 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
10179
10180         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
10181         DWARF2 instead of stabs by default.
10182
10183 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
10184
10185         * config/rs6000/rs6000.c: Include optabs.h.
10186
10187 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
10188
10189         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
10190         save/restore routines.
10191         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
10192
10193 2001-08-13  Andreas Jaeger  <aj@suse.de>
10194
10195         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
10196         the english is correct.
10197
10198 2001-08-13  Zack Weinberg  <zackw@panix.com>
10199
10200         * expr.h: Split out optab- and libfunc-related code to...
10201         * optabs.h, libfuncs.h: ... these new headers.
10202
10203         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
10204         (OPTABS_H): New.
10205         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
10206         dependencies.
10207         * mkconfig.sh: Don't include insn-codes.h from config.h.
10208
10209         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
10210         enum insn_code is available.  Move reload_in_optab and
10211         reload_out_optab array declarations to optabs.h.
10212         * regmove.c (gen_add3_insn): Move to optabs.c, export from
10213         there, prototype in expr.h.
10214         * gencodes.c: Cleanup: zap global variables, don't use
10215         printf where puts will do, don't bother defining MAX_INSN_CODE
10216         which nothing uses, let CODE_FOR_nothing get its value implicitly.
10217
10218         * genemit.c, genopinit.c: Include optabs.h in generated file.
10219         * genoutput.c: Include insn-codes.h in generated file.
10220         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
10221         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
10222         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
10223         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
10224         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
10225         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
10226         Include optabs.h.
10227         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
10228         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
10229         config/m88k/m88k.c, config/sparc/sparc.c:
10230         Include libfuncs.h.
10231         * reload.c: Include expr.h and optabs.h before reload.h.
10232         * config/alpha/alpha.c: Include tree.h before reload.h.
10233         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
10234         and reload.h in that order.
10235         * config/sparc/sparc.c: Include debug.h.
10236         * recog.c: Include insn-codes.h.
10237
10238 2001-08-13  Andreas Jaeger  <aj@suse.de>
10239
10240         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
10241         s390*linux.
10242
10243 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10244
10245         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
10246         * gcc.c (init_spec): Fix typo in comment.
10247         * varasm.c (data_section): Fix typo in comment.
10248
10249 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
10250
10251         * predict.c (dump_prediction): New argument "USED".
10252         (combine_predictions_for_insn): Determine the used heuristics,
10253         output the case no heuristic applied.
10254         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
10255
10256 2001-08-13  Andreas Jaeger  <aj@suse.de>
10257
10258         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
10259         register %rip.
10260
10261 2001-08-13  Kazu Hirata  <kazu@hxi.com>
10262
10263         * jump.c: Fix formatting.
10264
10265 2001-08-13  Kazu Hirata  <kazu@hxi.com>
10266
10267         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
10268         length.
10269
10270 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
10271
10272         * loop.c (check_dbra_loop): Use condjump_label to compute
10273         jump_label.
10274
10275         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
10276         to better document the files they're in.
10277
10278 2001-08-12  Zack Weinberg  <zackw@panix.com>
10279
10280         * recog.h (struct insn_operand_data): Shrink 'mode' field
10281         to 16 bits.
10282
10283 2001-08-12  Kazu Hirata  <kazu@hxi.com>
10284
10285         * gcc.c: Fix comment formatting.
10286         * gccspec.c: Likewise.
10287         * gcov.c: Likewise.
10288         * gcse.c: Likewise.
10289         * genemit.c: Likewise.
10290         * gengenrtl.c: Likewise.
10291         * genrecog.c: Likewise.
10292         * gensupport.c: Likewise.
10293         * ggc-page.c: Likewise.
10294         * global.c: Likewise.
10295         * graph.c: Likewise.
10296         * ifcvt.c: Likewise.
10297         * integrate.c: Likewise.
10298         * lcm.c: Likewise.
10299         * libgcc2.c: Likewise.
10300         * loop.c: Likewise.
10301         * mbchar.c: Likewise.
10302         * optabs.c: Likewise.
10303         * predict.c: Likewise.
10304         * prefix.c: Likewise.
10305         * profile.c: Likewise.
10306         * protoize.c: Likewise.
10307         * real.c: Likewise.
10308         * recog.c: Likewise.
10309         * regclass.c: Likewise.
10310         * regmove.c: Likewise.
10311         * reg-stack.c: Likewise.
10312         * reload1.c: Likewise.
10313         * resource.c: Likewise.
10314         * rtlanal.c: Likewise.
10315         * rtl.c: Likewise.
10316
10317 2001-08-12  Kazu Hirata  <kazu@hxi.com>
10318
10319         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
10320         a tree representing a constant is passed to the macro.
10321
10322 2001-08-12  Richard Henderson  <rth@redhat.com>
10323
10324         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
10325         (rs6000_elf_asm_out_destructor): New.
10326         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
10327         (DTORS_SECTION_ASM_OP): Remove.
10328         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10329         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
10330
10331 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
10332
10333         Revert:
10334         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10335         * gcc.c (set_collect_gcc_options): New function, split out from
10336         main.
10337         Ignore elided switches.
10338         (do_spec_1): Invoke before executing command.
10339         (set_input): Export.
10340         Move declaration ...
10341         * gcc.h (set_input): ... here.
10342         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
10343         file.
10344
10345 2001-08-12  Richard Henderson  <rth@redhat.com>
10346
10347         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
10348         thinko wrt TARGET_RELOCATABLE.
10349
10350 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10351
10352         * fix-header.c (cb_file_change): Update prototype.
10353
10354 2001-08-11  Zack Weinberg  <zackw@panix.com>
10355
10356         * toplev.c (set_float_handler): Make static.
10357         * toplev.h: Don't prototype set_float_handler.
10358
10359         * simplify-rtx.c: Don't include setjmp.h.
10360         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
10361         New functions.
10362         (simplify_unary_operation, simplify_binary_operation): Use them,
10363         via do_float_handler.
10364
10365         * fold-const.c: Don't include setjmp.h.
10366         (exact_real_inverse_1): New function.
10367         (exact_real_inverse): Use it, via do_float_handler.
10368
10369         * varasm.c: Don't include setjmp.h.
10370         (assemble_real_1): New function.
10371         (assemble_real): Use it, via do_float_handler.
10372         Call internal_error if we get a trap here.
10373
10374         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
10375         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
10376
10377 2001-08-11  Zack Weinberg  <zackw@panix.com>
10378
10379         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
10380         STACK_BOUNDARY if not already defined.
10381
10382         * calls.c, function.c, reload1.c, explow.c: Don't default
10383         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
10384         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
10385
10386         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
10387         to run-time test.
10388
10389         * doc/tm.texi: Document that STACK_BOUNDARY is required;
10390         clarify difference between it and PREFERRED_STACK_BOUNDARY.
10391
10392 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10393
10394         * cppmacro.c (enter_macro_context): Push macro expansions even
10395         if empty.
10396
10397 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10398
10399         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
10400         (rs6000_elf_section_type_flags): Actually return a value.
10401
10402 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
10403
10404         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
10405         Clean up code: add missing comments and prototypes, fix warnings,
10406         remove obsolete code, fix spacing to conform to coding style.
10407
10408 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
10409
10410         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
10411         and TARGET_ASM_CLOSE_PAREN.
10412         (regclass_map): CC register belongs to class NO_REGS.
10413         (legitimize_pic_address): Don't generate unnecessary moves
10414         (to avoid confusing loop optimization).
10415         (check_and_change_labels): Replace jump_long by indirect_jump.
10416         (s390_final_chunkify): Don't start a new literal pool on section
10417         switch in 64-bit code.
10418         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
10419
10420         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
10421         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
10422         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
10423         modes correctly.
10424         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
10425         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
10426         (CONST_COSTS): Fixed incorrect costs.
10427
10428         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
10429         Use emit_jump instead of emit_jump_insn (gen_jump).
10430         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
10431         (to avoid confusing flow analysis).
10432         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
10433         (casesi, casesi_jump): New.
10434         (jump_long): Removed.  Functionality merged into indirect_jump.
10435         (indirect_jump): Accept address_operand, not just register_operand.
10436         (cjump_long, icjump_long): Use same logic as indirect_jump.
10437         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
10438         Fixed broken setjmp/longjmp handling.
10439         (do_builtin_setjmp_setup): Removed.
10440
10441         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
10442         broken GNU as versions that don't accept .quad with large
10443         negative values.  Use hexadecimal output instead.
10444         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
10445         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
10446         FUNCTION_EPILOGUE): Removed.  Now in targetm.
10447
10448         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
10449
10450         * config/s390/fixdfdi.h: Add missing copyright statement.
10451         Fix type conflicts on 64-bit.  Add missing SFmode routines.
10452
10453         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
10454         email address.
10455
10456 2001-08-11  Richard Henderson  <rth@redhat.com>
10457
10458         * rtl.h (REG_EH_RETHROW): Remove.
10459         * rtl.c (reg_note_name): Update.
10460         * combine.c (distribute_notes): Don't check for it.
10461
10462 2001-08-11  Richard Henderson  <rth@redhat.com>
10463
10464         * combine.c (distribute_notes): Place REG_SETJMP.
10465
10466 2001-08-11  Richard Henderson  <rth@redhat.com>
10467
10468         * doc/extend.texi (Arrays and pointers implementation): Discourage
10469         relying on sign-extension of pointers.
10470
10471 2001-08-11  H.J. Lu <hjl@gnu.org>
10472
10473         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
10474         in_dtors.
10475         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
10476         RDATA_SECTION_ASM_OP.
10477
10478 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10479
10480         * doc/install.texi (Specific, c4x): Fix cross-reference to the
10481         main manual to work both for info and HTML versions.
10482
10483 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10484             Matt Kraai <kraai@alumni.carnegiemellon.edu>
10485
10486         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
10487         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
10488         (struct cpp_pool): New member first.
10489         * cppinit.c (append_include_chain): Plug memory leaks.
10490         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
10491         Allocate pragma structures from the (aligned) macro pool to
10492         avoid leaking memory.
10493         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
10494         so we don't leak memory.
10495         * hashtable.c (ht_destroy): New.
10496         * hashtable.h (ht_destroy): New.
10497
10498 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10499             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10500
10501         * c-lex.c (map): Make const.
10502         (cb_file_change): Update for callback passing a line map.
10503         Don't assume we have a previous map.  Remove sanity check
10504         about popping too many files.
10505         * cpperror.c (print_location): Make map const.
10506         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
10507         (cpp_make_system_header): Similarly.
10508         (search_from): Similarly.
10509         (_cpp_execute_include): Don't remember where we came from.
10510         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
10511         (struct cpp_reader): Make map const.
10512         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
10513         * cpplib.c (do_line): Update; line maps now hold sysp.
10514         (cpp_push_buffer): Similarly.
10515         (_cpp_do_file_change): Similarly; callback with map instead.
10516         (cpp_get_line_maps): Constify return value.
10517         (_cpp_pop_buffer): Update.
10518         * cpplib.h (struct cpp_file_change): Remove.
10519         (struct cpp_callbacks): Update.
10520         (cpp_get_line_maps): Constify return value.
10521         * cppmacro.c (_cpp_create_definition): Update.
10522         * cppmain.c (struct printer): Constify map.
10523         (maybe_print_line): Similarly.
10524         (print_line): Similarly.  Deduce flags 1 and 2 here.
10525         (cb_file_change): Update.
10526         * line-map.c (free_line_maps): Warn regardless.
10527         (add_line_map): Return pointer to const.  When passed NULL to_file
10528         with LC_LEAVE, use the obvious values for the return point so the
10529         caller doesn't have to figure them out.
10530         (lookup_line): Return pointer to const.
10531         (print_containing_files): Take pointer to const.
10532         * line-map.h (struct line_map): New members reason, sysp.
10533         (add_line_map): Return pointer to const.
10534         (lookup_line): Similarly.
10535         (print_containing_files): Take pointer to const.
10536
10537 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
10538             Richard Henderson  <rth@redhat.com>
10539
10540         * regmove.c (regmove_optimize): Avoid setting a register twice in
10541         a parallel set.
10542
10543 2001-08-10  Richard Henderson  <rth@redhat.com>
10544
10545         * doc/extend.texi (Arrays and pointers implementation): Document
10546         behavior of pointer/integer conversion.
10547
10548 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
10549
10550         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
10551
10552 2001-08-10  Richard Henderson  <rth@redhat.com>
10553
10554         * doc/extend.texi (C Implementation): New chapter.
10555         * doc/gcc.texi (Top): Link it in.
10556
10557 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
10558
10559         * doc/install.texi (Specific): Fix CVS merge botch.
10560
10561 2001-08-10  Richard Henderson  <rth@redhat.com>
10562
10563         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
10564         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
10565
10566 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
10567
10568         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
10569         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
10570         this macro is now required.
10571
10572         * cselib.c (cselib_process_insn), flow.c (propagate_block),
10573         loop.c (find_and_verify_loops), reload.c (reload): Check
10574         for rtx code of CALL_INSN, not CALL, when deciding if we
10575         need to check for REG_SETJMP note.
10576
10577         * gcse.c (compute_hash_table, compute_store_table): Update
10578         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
10579         logic.
10580
10581         * config/avr/avr.c: Fix typo.
10582         * config/convex/convex.c (expand_movstr): Use adjust_address.
10583         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
10584         variable.
10585         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
10586         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
10587         Fix typo.
10588         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
10589         Do define STACK_BOUNDARY.
10590         * config/i370/i370.c: Include expr.h.
10591         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
10592         config/pa/som.h, config/v850/v850.h: Take in_ctors and
10593         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
10594         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
10595         * config/m88k/m88k.c: Include c-tree.h after expr.h.
10596         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
10597         * config/romp/romp.c: Include expr.h after tree.h.
10598         Include toplev.h.
10599         (output_fpop): Use xmalloc, not oballoc.
10600         * config/we32k/we32k.c: Include expr.h.
10601
10602 2001-08-10  Kazu Hirata  <kazu@hxi.com>
10603
10604         * config/h8300/h8300.h: Fix formatting.
10605
10606 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
10607
10608         * c-common.h (RETURN_NULLIFIED_P): Lose.
10609         * c-semantics.c (genrtl_return_stmt): Don't check it.
10610
10611 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10612
10613         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
10614         (mips_annotate_frame_insn): New function.
10615         (mips_emit_frame_related_store): New function.
10616         (save_restore_insns): Don't mark instructions that set up the base
10617         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
10618         the store instructions instead.
10619         (mips_expand_prologue): If the stack size is moved into a temporary
10620         register, do not mark that move as frame-related.  Add a
10621         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
10622
10623 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10624
10625         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
10626         stack slot as unchanging if current_function_calls_eh_return.
10627
10628 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10629
10630         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
10631         access the second half of the TFmode scratch operand.
10632
10633 2001-08-10  Anthony Green  <green@redhat.com>
10634
10635         * java/class.c (emit_register_classes): Conditionalize code on
10636         JCR_SECTION_NAME.
10637
10638 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10639
10640         * doc/install.texi (Specific, avr): Fix cross-reference to the
10641         main manual to work both for info and HTML versions.
10642
10643 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10644
10645         * stmt.c (expand_null_return_1): Remove code to generate simple returns
10646         and "use_goto" argument.
10647         (expand_null_return, expand_value_return): Update all callers.
10648         * function.c (expand_function_end): Remove code to generate simple
10649         return.
10650         * config/vax/vax.md (epilogue): New expander for function return.
10651         * doc/md.texi (epilogue): Remove "if defined".
10652
10653 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
10654
10655         * Makefile.in: Partially revert my previous change:
10656         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
10657         of the hashtab.o and safe-ctype.o rules.
10658
10659 2001-08-09  Richard Henderson  <rth@redhat.com>
10660
10661         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
10662         (USE_COLLECT2): Remove duplicate definition.
10663         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
10664         (use_collect2): Remove dead code.
10665         * configure.in (use_collect2): Remove will_use_collect2 and
10666         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
10667         * configure: Rebuild.
10668
10669         * target.h (targetm.asm_out.constructor): New.
10670         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
10671         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
10672         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
10673         * varasm.c (in_ctors, in_dtors): New.
10674         (assemble_constructor, assemble_destructor): Remove.
10675         (default_stabs_asm_out_destructor): New.
10676         (default_named_section_asm_out_destructor): New.
10677         (dtors_section, default_dtor_section_asm_out_destructor): New.
10678         (default_stabs_asm_out_constructor): New.
10679         (default_named_section_asm_out_constructor): New.
10680         (ctors_section, default_ctor_section_asm_out_constructor): New.
10681         * output.h: Update declarations.
10682         * c-decl.c (c_expand_body): Use target hooks instead of
10683         assemble_constructor and assemble_destructor.
10684         * profile.c (output_func_start_profiler): Likewise.
10685         * objc/objc-act.c (finish_objc): Likewise.
10686         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
10687         for the constructor.
10688         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
10689
10690         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
10691         (DTORS_SECTION_ASM_OP): Likewise.
10692         (__CTOR_LIST__): Use attribute section when possible.
10693         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
10694
10695         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
10696         ASM_OUTPUT_CONSTRUCTOR.
10697
10698         * config/darwin.c (machopic_asm_out_constructor): New.
10699         (machopic_asm_out_destructor): New.
10700         * config/darwin-protos.h: Update declarations.
10701         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10702         (ASM_OUTPUT_DESTRUCTOR): Remove.
10703         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10704         * config/nextstep.c (nextstep_asm_out_constructor): New.
10705         (nextstep_asm_out_destructor): New.
10706         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10707         (ASM_OUTPUT_DESTRUCTOR): Remove.
10708         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10709         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
10710         ASM_OUTPUT_*STRUCTOR.
10711         * config/i386/aix386ng.h: Likewise.
10712
10713         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
10714         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
10715         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10716         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10717         * config/lynx.h: Likewise.
10718         * config/netware.h: Likewise.
10719         * config/psos.h: Likewise.
10720         * config/alpha/alpha-interix.h: Likewise.
10721         * config/alpha/elf.h: Likewise.
10722         * config/arc/arc.h: Likewise.
10723         * config/arm/aof.h: Likewise.
10724         * config/arm/coff.h: Likewise.
10725         * config/arm/elf.h: Likewise.
10726         * config/c4x/c4x.h: Likewise.
10727         * config/h8300/h8300.h: Likewise.
10728         * config/i386/cygwin.h: Likewise.
10729         * config/i386/djgpp.h: Likewise.
10730         * config/i386/i386-coff.h: Likewise.
10731         * config/i386/i386-interix.h: Likewise.
10732         * config/i386/sco5.h: Likewise.
10733         * config/i386/vsta.h: Likewise.
10734         * config/i386/win32.h: Likewise.
10735         * config/i960/i960-coff.h: Likewise.
10736         * config/ia64/sysv4.h: Likewise.
10737         * config/m68hc11/m68hc11.h: Likewise.
10738         * config/m68k/coff.h: Likewise.
10739         * config/m68k/mot3300.h: Likewise.
10740         * config/m88k/m88k.h: Likewise.
10741         * config/mcore/mcore-pe.h: Likewise.
10742         * config/mcore/mcore.h: Likewise.
10743         * config/mips/elf.h: Likewise.
10744         * config/mips/elf64.h: Likewise.
10745         * config/mips/iris6.h: Likewise.
10746         * config/pa/pa64-hpux.h: Likewise.
10747         * config/rs6000/sysv4.h: Likewise.
10748         * config/sh/sh.h: Likewise.
10749         * config/sparc/litecoff.h: Likewise.
10750
10751         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
10752         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10753         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10754         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10755         (ASM_OUTPUT_DESTRUCTOR): Remove.
10756         * config/a29k/a29k.c: Move include of tree.h.
10757         * config/a29k/udi.h: Delete file.
10758         * config/alpha/alpha.c (vms_asm_out_constructor): New.
10759         (vms_asm_out_destructor): New.
10760         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
10761         (EXTRA_SECTION_FUNCTIONS): Likewise.
10762         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10763         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10764         * config/c4x/c4x.c: Move include of tree.h.
10765         * config/clipper/clipper.c (clix_asm_out_constructor): New.
10766         (clix_asm_out_destructor): New.
10767         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10768         (ASM_OUTPUT_DESTRUCTOR): Remove.
10769         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10770         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10771         (TARGET_ASM_CONSTRUCTOR): New.
10772         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
10773         (sco_asm_out_constructor): New.
10774         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
10775         * config/i386/svr3gas.h: Remove stack grows up code.
10776         Remove code duplicated from i386/sysv3.h.
10777         (TARGET_ASM_CONSTRUCTOR): New.
10778         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10779         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
10780         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10781         (TARGET_ASM_CONSTRUCTOR): New.
10782         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
10783         (m68hc11_asm_out_destructor): New.
10784         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
10785         (TARGET_ASM_DESTRUCTOR): New.
10786         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
10787         * config/m68k/dpx2.h: Properly undef all the bits inherited from
10788         config/svr3.h pertaining to section manipulation.
10789         * config/m68k/dpx2g.h: Remove #if 0 code.
10790         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
10791         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
10792         (ASM_OUTPUT_CONSTRUCTOR): Remove.
10793         (TARGET_ASM_CONSTRUCTOR): New.
10794         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
10795         (m88k_svr3_asm_out_constructor): New.
10796         (m88k_svr3_asm_out_destructor): New.
10797         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10798         (ASM_OUTPUT_DESTRUCTOR): Remove.
10799         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10800         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
10801         * config/rs6000/aix.h: Likewise.
10802         * config/mips/rtems64.h: Don't undef removed constructor related bits.
10803         * config/mips/vxworks.h: Likewise.
10804         * config/rs6000/lynx.h: Likewise.
10805         * config/sh/elf.h: Likewise.
10806         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
10807         (DTORS_SECTION_ASM_OP): New.
10808         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10809         (ASM_OUTPUT_DESTRUCTOR): Remove.
10810         * config/sparc/sol2-sld-64.h: Likewise.
10811         * config/vax/vax.c (vms_asm_out_constructor): New.
10812         (vms_asm_out_destructor): New.
10813         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10814         (ASM_OUTPUT_DESTRUCTOR): Remove.
10815         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10816
10817         * doc/tm.texi (@node Initialization): Update.
10818
10819 2001-08-09  Richard Henderson  <rth@redhat.com>
10820
10821         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
10822         (__do_global_dtors_aux): Use gp-relative static data to avoid
10823         one dynamic relocation.
10824         (__do_frame_setup): Register Java classes.
10825         * config/alpha/crtend.asm (__JCR_END__): New.
10826
10827 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
10828
10829         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
10830         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
10831         (GEN, STAGESTUFF): Add new files.
10832         (insn-constants.h, s-constants, tm-preds.h, s-preds,
10833         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
10834         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
10835         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
10836         as well as insn-codes.h and insn-flags.h in config.h; and no
10837         extra headers in tconfig.h and hconfig.h.
10838
10839         * gencodes.c: Eliminate code to generate predicate declarations
10840         or #defines for md-file constants.
10841         * genconstants.c, genpreds.c: New files.
10842
10843         * i386.md: Re-order guard expressions such that TARGET_64BIT
10844         comes first, when this permits better optimization.  Add
10845         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
10846         why this is desirable.
10847
10848 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
10849
10850         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
10851         (find_fde_for_dso): Remove.
10852         (_Unwind_IteratePhdrCallback): New.
10853         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
10854         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
10855
10856 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10857
10858         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
10859         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
10860
10861 2001-08-09  Graham Stott  <grahams@redhat.com>
10862
10863         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
10864         (vis_no_unit): Use it.
10865         (visualize_no_unit): Add the insn only if room exists.
10866
10867 2001-08-09  Graham Stott  <grahams@redhat.com>
10868
10869         * predict.c (estimate_probability): Replace magic numbers with
10870         appropriate enumeration.
10871
10872 2001-08-09  Graham Stott  <grahams@redhat.com>
10873
10874         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
10875         parameter.
10876         (EXTRACT_FLAGS): Likewise.
10877
10878 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
10879
10880         * config/mips/mips.c    (mips_legitimate_address_p): Check for
10881         CONST_INT in last patch.
10882
10883 2001-08-08  Anthony Green  <green@redhat.com>
10884
10885         * java/class.c (emit_register_classes): Use assemble_jcr if
10886         possible.  Keep the original mechanism as a fallback.
10887         * defaults.h (JCR_SECTION_NAME): Define if we have named section
10888         and weak symbol support.
10889         * crtstuff.c (__JCR_LIST__): Define.
10890         (__JCR_END__): Define.
10891         (_Jv_RegiserClasses): Define weak symbol if possible.
10892         (__do_global_ctors_aux): Register classes for ELF targets with
10893         weak symbol support.
10894
10895 2001-08-08  Kazu Hirata  <kazu@hxi.com>
10896
10897         * dbxout.c: Fix comment formatting.
10898         * dependence.c: Likewise.
10899         * df.c: Likewise.
10900         * diagnostic.c: Likewise.
10901         * dominance.c: Likewise.
10902         * doprint.c: Likewise.
10903         * dwarf2out.c: Likewise.
10904         * dwarfout.c: Likewise.
10905         * emit-rtl.c: Likewise.
10906         * except.c: Likewise.
10907         * explow.c: Likewise.
10908         * expmed.c: Likewise.
10909         * expr.c: Likewise.
10910         * flow.c: Likewise.
10911         * fold-const.c: Likewise.
10912         * function.c: Likewise.
10913
10914 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10915
10916         * global.c (retry_global_alloc): Avoid shadowing allocno.
10917
10918 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
10919
10920         * except.c (remove_fixup_regions): Fix typo.
10921
10922 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
10923
10924         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
10925         unsigned HOST_WIDE_INT to avoid warning.
10926         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
10927         * flow.c (set_block_for_new_insns): Likewise.
10928
10929 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
10930
10931         * sibcall.c (return_value_pseudo): New static variable.
10932         (skip_copy_to_return_value): Handle return_value_pseudo.
10933         (call_ends_block_p): Ensure that return_value_pseudo is set.
10934         (optimize_sibling_and_tail_recursive_call): Discover the
10935         load of pseudo return value in alternate exit block.
10936
10937 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
10938
10939         * calls.c (ECF_ALWAYS_RETURN): New constant.
10940         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
10941         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
10942         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
10943         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
10944         * rtl.c (reg_note_name): New name.
10945         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
10946
10947 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
10948
10949         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
10950
10951 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
10952
10953         * alias.c (get_alias_set): Return a previously calculated
10954         alias set for a VAR_DECL.
10955         * function.c (gen_mem_addressof): Calculate the alias set before
10956         touching the RTL.
10957
10958 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
10959
10960         * predict.def: Set hitrates according our experimental run.
10961
10962 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
10963
10964         * i386.h (HARD_REGNO_RENAME_OK): New macro.
10965
10966 2001-08-08  H.J. Lu <hjl@gnu.org>
10967
10968         * config/mips/mips.c (mips_unique_section): New. Copied from
10969         config/mips/elf.h.
10970
10971         * config/mips/mips-protos.h (mips_unique_section): New
10972         prototype.
10973
10974         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
10975
10976         * config/mips/little.h: New. Generic little endian mips
10977         targets. Only mips*-*-linux* is converted to use it so far.
10978
10979         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
10980         (WCHAR_TYPE): Defined
10981         (WCHAR_TYPE_SIZE): Likewise.
10982         (INIT_SUBTARGET_OPTABS): Likewise.
10983         (BSS_SECTION_ASM_OP): Likewise.
10984         (SBSS_SECTION_ASM_OP): Likewise.
10985         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10986         (ASM_DECLARE_OBJECT_NAME): Likewise.
10987         (UNIQUE_SECTION): Likewise.
10988         (EXTRA_SECTIONS): Likewise.
10989         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
10990         (ASM_OUTPUT_DESTRUCTOR): Likewise.
10991         (ASM_OUTPUT_DEF): Likewise.
10992         (HANDLE_SYSV_PRAGMA): Removed.
10993         (NO_IMPLICIT_EXTERN_C): Likewise.
10994         (TARGET_MEM_FUNCTIONS): Likewise.
10995         (STARTFILE_SPEC): Likewise.
10996         (ENDFILE_SPEC): Likewise.
10997         (LIB_SPEC): Likewise.
10998         (INVOKE__main): Likewise.
10999         (CTOR_LIST_BEGIN): Likewise.
11000         (CTOR_LIST_END): Likewise.
11001         (DTOR_LIST_BEGIN): Likewise.
11002         (DTOR_LIST_END): Likewise.
11003         (SET_ASM_OP): Likewise.
11004         (ASM_OUTPUT_SOURCE_LINE): Likewise.
11005         (ASM_OUTPUT_DEF): Likewise.
11006         (ASM_OUTPUT_IDENT): Likewise.
11007
11008         * config/mips/mips.h (ASM_SPEC): Undefine before define.
11009         (CPLUSPLUS_CPP_SPEC): Likewise.
11010         (ASM_APP_ON) Redefine only if not defined.
11011         (ASM_APP_OFF): Likewise.
11012         (ASM_OUTPUT_SOURCE_LINE): Likewise.
11013         (ASM_OUTPUT_IDENT): Likewise.
11014
11015         * config.gcc: Update tm_file for Linux/mips.
11016
11017 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
11018
11019         * cselib.c (cselib_record_sets): If insn is predicated, turn
11020         sources into IF_THEN_ELSEs.
11021
11022         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
11023         Turn into define_insn_and_split.
11024
11025         * sched-deps.c: Include "cselib.h".
11026         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
11027         Use cselib to turn memory addresses into VALUEs.
11028         (sched_analyze): Call cselib_init/cselib_finish if necessary.
11029         * sched-int.h (struct sched_info): New member USE_CSELIB.
11030         * sched-ebb.c (ebb_sched_info): Initialize it.
11031         * sched-rgn.c (rgn_sched_info): Likewise.
11032         * Makefile.in (sched-deps.o): Update dependencies.
11033
11034         * cselib.h (cselib_subst_to_values): Declare.
11035         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
11036         that have no value and autoincs to be handled by generating a new
11037         dummy value.
11038
11039 2001-08-08  Graham Stott  <grahams@redhat.com>
11040
11041         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
11042         within fixed length SEQUENCE.
11043
11044 2001-08-08  Graham Stott  <grahams@redhat.com>
11045
11046         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
11047         (diagnostic_prefixing_rule): Likewise.
11048         (diagnostic_line_cutoff): Likewise.
11049         (diagnostic_kind_count): Likewise.
11050
11051 2001-08-08  Graham Stott  <grahams@redhat.com>
11052
11053         * alias.c (find_base_decl): Delete redundent assignment.
11054
11055 2001-08-08  Graham Stott  <grahams@redhat.com>
11056
11057         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
11058         (abs): Uppercase and paranthesize macro parameter.
11059         (MEM_DEPENDENCY): Add whitespace.
11060
11061 2001-08-08  Graham Stott  <grahams@redhat.com>
11062
11063         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
11064         failure check for CONST_INT
11065
11066 2001-08-08  Graham Stott  <grahams@redhat.com>
11067
11068         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
11069         (libcall_dead_p): Likewise.
11070
11071         (mark_used_regs): Constify fmt.
11072         (find_use_as_address): Likewise.
11073
11074 2001-08-08  Graham Stott  <grahams@redhat.com>
11075
11076         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
11077          parameter.
11078
11079 2001-08-08  Graham Stott  <grahams@redhat.com>
11080
11081         * combine.c (combine_simplify_rtx): Update comment and
11082         remove erroneous test.
11083
11084 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
11085
11086         * cppinit.c (cpp_finish): Pop the final buffer without comment.
11087         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
11088         take care to avoid multiple no-newline at EOF warnings in that
11089         case.
11090
11091 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
11092
11093         * calls.c (expand_call): Do not emit INSN_SETJMP note.
11094         (emit_library_call_value_1): Likewise.
11095         (emit_call_1): Emit REG_SETJMP note.
11096         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
11097         of INSN_SETJMP
11098         * cselib.c (cselib_process_insn): Likewise.
11099         * flow.c (propagate_block): Likewise.
11100         * loop.c (find_and_verify_loops): Likewise.
11101         * reload.c (find_equiv_regs): Likewise.
11102         * reload1.c (reload): Likewise.
11103         * resource.c (mark_referenced_resources,
11104         mark_set_resources): Likewise.
11105         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
11106         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
11107         * haifa-sched.c (unlink_other_notes): Likewise.
11108         (reemit_notes): Likewise.
11109         * sched-ebb.c (sched_ebb): Likewise.
11110         * sched-rgc.c (sched_region): Likewise.
11111         * rtl.c (note_insn_name): Likewise.
11112         (reg_note_name): Add REG_SETJMP
11113         * rtl.h (reg_note): Add REG_SETJMP.
11114         (insn_note): Remove NOTE_INSN_SETJMP.
11115
11116         * profile.c (branch_prob): Add fake edges for setjmp.
11117
11118 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
11119
11120         * config.gcc: Quote target_cpu_default2 correctly for
11121         powerpc*-*-* targets.
11122
11123 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
11124
11125         * cpplib.h, line-map.h: Update comments.
11126         * cppmain.c (printer_init): Move inline.
11127         (maybe_print_line, print_line): Take a map pointer.
11128         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
11129         (cb_file_change): Don't use prior value of print.map.
11130
11131 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
11132
11133         * doc/install.texi: Document fine-grained multilib configuration.
11134
11135 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
11136
11137         * rtlanal.c (find_first_parameter_load): Call note_stores
11138         only on the instructions.
11139
11140 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11141
11142         * alias.c (nonlocal_mentioned_p):
11143         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
11144         * calls.c (emit_call_1): Likewise.
11145         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
11146         * cselib.c (cselib_process_insn): Likewise.
11147         * df.c (df_insns_modify): Likewise.
11148         * flow.c (need_fake_edge_p): Likewise.
11149         (propagate_one_insn): Likewise.
11150         * haifa-sched.c (reemit_notes): Likewise.
11151         * integrate.c (copy_insn_list): Likewise.
11152         * jump.c (delete_prior_computation): Likewise.
11153         * local-alloc.c (validate_equiv_mem): Likewise.
11154         * loop.c (scan_loop): Likewise.
11155         * predict.c (estimate_probability): Likewise.
11156         * reload.c (reload): Likewise.
11157         * sched-deps (sched_analyze): Likewise.
11158         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
11159         * gcse.c (compute_hash_table): Likewise.
11160         (mark_call): Likewise.
11161         (store_killed_in_insn): Likewise.
11162
11163 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
11164
11165         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
11166
11167 2001-08-06  Richard Henderson  <rth@redhat.com>
11168
11169         * varasm.c (assemble_gc_entry): Remove.
11170         * output.h: Likewise.
11171
11172 2001-08-06  Richard Henderson  <rth@redhat.com>
11173
11174         * varasm.c (assemble_constructor): Take a symbol_ref and a
11175         priority instead of a bare string.  Move priority handling
11176         here from cp/decl2.c.
11177         * output.h: Update decls.
11178
11179         * c-decl.c (c_expand_body): Update calls to assemble_constructor
11180         and assemble_destructor.
11181         * profile.c (output_func_start_profiler): Likewise.
11182         * objc/objc-act.c (finish_objc): Likewise.
11183         (build_module_descriptor): Return the symbol not the symbol name.
11184
11185 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
11186
11187         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
11188         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
11189         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
11190         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
11191         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
11192         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
11193
11194 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
11195
11196         * cpperror.c (print_containing_files): Moved to line-map.c.
11197         (print_location): line-map.c handles re-listing or otherwise.
11198         * cpphash.h (struct lexer_state): Remove next_bol.
11199         (struct cpp_buffer): Remove include_stack_listed.
11200         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
11201         Remove faked buffer handling.
11202         (_cpp_do_file_change): Tweak.
11203         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
11204         * cppmain.c (struct printer): Remove filename.
11205         (print_line, cb_file_change): Update accordingly.
11206         * line-map.c: Include intl.h.
11207         (init_line_maps): Initialize last_listed.
11208         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
11209         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
11210         (print_containing_files): New.
11211         * line-map.h (struct line_maps): New member last_listed.
11212         (print_containing_files, INCLUDED_FROM): New.
11213         * Makefile.in: Update.
11214         * po/POTFILES.in: Add line-map.c.
11215
11216 2001-08-06  Richard Henderson  <rth@redhat.com>
11217
11218         * except.c (convert_from_eh_region_ranges_1): Never mark
11219         USE or CLOBBER insns as throwing.
11220
11221         * expr.c (store_constructor): Don't clobber memory targets.
11222
11223 2001-08-06  Andreas Jaeger  <aj@suse.de>
11224
11225         * profile.c (branch_prob): Remove unused variable insn.
11226
11227         * Makefile.in (local-alloc.o): Add dependency on except.h.
11228
11229         * local-alloc.c: Include except.h for can_throw_internal prototype.
11230
11231 2001-08-06  Richard Henderson  <rth@redhat.com>
11232
11233         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
11234         * function.c (expand_main_function): Implement it.
11235         * doc/tm.texi: Document it.
11236
11237 2001-08-06  Stan Shebs  <shebs@apple.com>
11238
11239         * doc/install.texi: Document powerpc-*-darwin* details.
11240
11241 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
11242
11243         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
11244         (ASM_CPU_SPEC): Move back to rs6000.h
11245         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
11246
11247         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
11248
11249         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
11250         readded.
11251
11252         * config/rs6000/linux64.h: Ditto.
11253
11254         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11255         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
11256         nothing.
11257
11258         Remove accidently readded definitions of FUNCTION_PROLOGUE,
11259         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
11260
11261         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11262         to rs6000.h
11263
11264 2001-08-05  Richard Henderson  <rth@redhat.com>
11265
11266         * local-alloc.c (update_equiv_regs): Do not move insns that
11267         can throw.
11268
11269 2001-08-05  Jan Hubicka  <jh@suse.cz>
11270
11271         * Makefile.in (reload1.o): Add dedendancy on except.h
11272         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
11273         prototypes.
11274         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
11275         indicating wehther edges has been cleaned up.
11276         * reload1.c: Inlucde except.h
11277         (fixup_abnormal_edges): Accept deleted insns.
11278         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
11279         after combine.
11280
11281 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
11282
11283         * cpplib.c (do_line): Correct line number after pop_buffer.
11284
11285 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11286
11287         PR preprocessor/3824
11288         * line-map.c: Update comments.
11289         * line-map.h: Update comments.
11290         * tradcif.y: Don't consider large numbers unsigned.
11291
11292 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11293
11294         PR preprocessor/3081
11295         * c-lex.c (map): New.
11296         (cb_file_change): Update map and use it.
11297         (cb_def_pragma, cb_define, cb_undef): Use map and line.
11298         (c_lex): Update to use map.
11299         * cpperror.c (print_location): Move to using logical line numbers.
11300         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
11301         (cpp_make_system_header): Similarly.
11302         (_cpp_execute_include): Stop line numbering hacks.  Store the
11303         line we will return to.
11304         * cpphash.h (CPP_BUF_LINE): Remove.
11305         (struct cpp_buffer): Remove lineno and pseudo_newlines.
11306         Add map and return_to_line.
11307         (_cpp_do_file_change): Update.
11308         * cppinit.c (cpp_start_read): Update line kludge.
11309         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
11310         (trigraph_ok): Use logical line numbers for diagnostics.
11311         (skip_block_comment): Likewise.
11312         (skip_whitespace): Likewise.
11313         (skip_line_comment): Use pfile->line instead.
11314         (_cpp_lex_token): Update to use logical line numbering exclusively.
11315         Handle BOL locally.  Accept new lines in directives, but keep
11316         pfile->line decremented.  Diagnostics use logical lines.  Update
11317         directive handling.
11318         * cpplib.c (SEEN_EOL): New.
11319         (skip_rest_of_line, check_eol): Use it.
11320         (end_directive): Increase line number when accepting the newline
11321         at the end of a directive.
11322         (run_directive): Simplify.
11323         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
11324         (_cpp_do_file_change): Update to take buffer line number as an
11325         argument, and store the current map in the cpp_reader.  Remove
11326         line number kludges.
11327         (_cpp_do__Pragma): Restore output position after a _Pragma.
11328         (cpp_push_buffer): Don't set output line or lineno.
11329         (_cpp_pop_buffer): Transfer more info from a faked buffer.
11330         Remove line kludge.  Set output_line.
11331         * cppmacro.c (builtin_macro): Update handling of __LINE__.
11332         (parse_arg): Use logical lines.
11333         (save_lookahead_token): Save EOFs too now.
11334         * cppmain.c (struct printer): Fix comments.
11335         (printer_init): Simplify, let caller do errors.
11336         (scan_translation_unit, check_multiline_token, dump_macro): Update.
11337         (maybe_print_line): Simplify.
11338         (print_line): Don't print a linemarker if -P.
11339         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
11340         (cb_file_change): Simplify.
11341         * line-map.h (LAST_SOURCE_LINE): Fix.
11342         (CURRENT_LINE_MAP): New.
11343
11344 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
11345
11346         * doloop.c (doloop_modify_runtime): Properly compute number of
11347         iterations if loop was unrolled.
11348
11349         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
11350         if their CSELIB_VAL_PTRs are.
11351
11352         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
11353         (setup_spill_pointers): Initialize it.
11354         (spill_restore_mem): Set it.
11355         (do_spill, do_restore): Use it to add REG_INC note.
11356         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
11357
11358         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
11359         asms if other insns are available.
11360
11361         * config/ia64/ia64.c (condop_operator): New predicate.
11362         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
11363         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
11364         patterns.
11365
11366         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
11367         temporary register than directly using a MEM.
11368
11369 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
11370
11371         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
11372         parameter in last change.
11373
11374 2001-08-04  Zack Weinberg  <zackw@panix.com>
11375
11376         * sparc.md: Don't use #if inside C test expression.
11377
11378 2001-08-04  Richard Henderson  <rth@redhat.com>
11379
11380         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
11381
11382 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
11383
11384         * cpphash.h (struct cpp_reader): New member directive_line.
11385         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
11386         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
11387         do_pragma): Pass line to callbacks.
11388         (start_directive): Record line of directive.
11389         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
11390         cb_include): Similarly.
11391         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
11392         Similarly.
11393
11394 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
11395
11396         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
11397         comment.
11398
11399 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
11400
11401         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
11402
11403         * reload1.c (fixup_abnormal_edges): New static function.
11404         (reload): Use it.
11405
11406         * flow.c (need_fake_edge_p): New function.
11407         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
11408         avoid call insn to be very last insn in the insn stream.
11409
11410         * profile.c (branch_prob): Call flow_call_edges_add instead of
11411         doing that by hand; cleanup cfg to re-merge basic blocks once
11412         we are done.
11413
11414 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11415
11416         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
11417         are also on line-map.h.
11418         * cppfiles.c (stack_include_file): Update.
11419         * cpphash.h (struct cpp_buffer): New member return_at_eof.
11420         (_cpp_pop_buffer): New.
11421         * cppinit.c (cpp_destroy, cpp_finish): Update.
11422         (do_includes): Mark each buffer to return at EOF.
11423         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
11424         return as requested.
11425         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
11426         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
11427         * cpplib.h (cpp_pop_buffer): Remove.
11428         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
11429         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
11430         buffers.
11431         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
11432         to pop buffers.
11433         (do_preprocessing): Update.
11434         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
11435         * c-parse.in (_yylex): Similarly.
11436         * scan-decls.c (scan_decls): Similarly.
11437         * line-map.h: Update comments.
11438
11439         * objc/Make-lang.in (objc-act.o): Update dependencies.
11440
11441 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11442
11443         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
11444         and soft register for operand 0.
11445         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
11446
11447 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11448
11449         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
11450         register for operand 0.
11451         ("bitcmpqi_z_used"): Allow memory for operand 0.
11452         (split "bitcmpqi"): New split to handle address reg as operand 1.
11453
11454 2001-08-04  Andreas Jaeger  <aj@suse.de>
11455
11456         * gcse.c: Revert Daniel's last patch.
11457
11458 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
11459
11460         * sparc-protos.h: Add prototypes for fp_zero_operand and
11461         reg_or_0_operand.
11462         * sh-protos.h: Add prototype for fpul_operand.
11463
11464 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
11465
11466         * doc/extend.texi (Other Builtins): Fix typo in last change.
11467
11468 2001-08-03  Richard Henderson  <rth@redhat.com>
11469
11470         * target.h (gcc_target): Add asm_out.named_section,
11471         section_type_flags, have_named_sections.
11472         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
11473         (TARGET_HAVE_NAMED_SECTIONS): New.
11474         (TARGET_SECTION_TYPE_FLAGS): New.
11475
11476         * Makefile.in (toplev.o): Depend on TARGET_H.
11477         (varasm.o, dbxout.o): Likewise.
11478         * c-common.c (decl_attributes): Check targetm.have_named_sections
11479         instead of ifdef ASM_OUTPUT_SECTION_NAME.
11480         * dbxout.c (dbxout_function_decl): Likewise.
11481         (dbxout_function_end): Likewise.
11482         * toplev.c (compile_file): Likewise.
11483         * varasm.c (exception_section): Likewise.
11484         * cp/decl2.c (finish_objects): Likewise.
11485
11486         * defaults.h (EH_FRAME_SECTION): Remove.
11487         (EH_FRAME_SECTION_ASM_OP): Remove.
11488         (EH_FRAME_SECTION_NAME): New.
11489         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
11490         (UNIQUE_SECTION_P): Remove.
11491         * dwarf2out.c (SECTION_FORMAT): Remove.
11492         (ASM_OUTPUT_SECTION): Remove.
11493         (output_call_frame_info): Use named_section_flags.
11494         (output_comp_unit, dwarf2out_start_source_file): Likewise.
11495         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
11496         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
11497         * varasm.c (in_eh_frame, eh_frame_section): Remove.
11498         (named_section_flags): New.
11499         (named_section): Use it and targetm.section_type_flags.
11500         (resolve_unique_section): New.
11501         (assemble_start_function): Use it.
11502         (asm_emit_uninitialised, assemble_variable): Likewise.
11503         (default_section_type_flags): New.
11504         (default_no_named_section, default_elf_asm_named_section): New.
11505         (default_coff_asm_named_section, default_pe_asm_named_section): New.
11506         * output.h: Update varasm.c decls.
11507         (SECTION_*): New flags.
11508
11509         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
11510         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
11511
11512         * config/elfos.h (UNIQUE_SECTION_P): Remove.
11513         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
11514         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
11515         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
11516         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
11517         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
11518         * config/mips/elf.h, config/mips/elf64.h: Likewise.
11519         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
11520         * config/pa/pa64-hpux.h,
11521
11522         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
11523         (TARGET_ASM_NAMED_SECTION): New.
11524         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
11525         * config/alpha/vms.h, config/arm/coff.h: Likewise.
11526         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
11527         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
11528         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
11529         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
11530         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
11531         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
11532         * config/i386/sco5.h, config/i386/win32.h: Likewise.
11533         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
11534         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
11535         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
11536         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
11537         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
11538         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
11539         * config/sparc/sysv4.h: Likewise.
11540
11541         * config/nextstep.h: Error until named sections implemented.
11542
11543         * config/a29k/a29k.c (a29k_asm_named_section): New.
11544         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
11545         (vms_section_type_flags, vms_asm_named_section): New.
11546         * config/arm/arm.c (arm_elf_asm_named_section): New.
11547         * config/avr/avr.c (asm_output_section_name): Remove.
11548         * config/avr/avr-protos.h: Update.
11549         * config/c4x/c4x.c (c4x_asm_named_section): New.
11550         * config/h8300/h8300.c (h8300_asm_named_section): New.
11551         * config/i386/i386.c (sco_asm_named_section): New.
11552         * config/i386/winnt.c (SECTION_PE_SHARED): New.
11553         (i386_pe_section_type_flags): New.
11554         (i386_pe_asm_named_section): New.
11555         * config/i386/i386-protos.h: Update.
11556         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
11557         * config/mcore/mcore.c (mcore_asm_named_section): New.
11558         * config/mips/mips.c (iris6_asm_named_section): New.
11559         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
11560         instead of UNIQUE_SECTION_P.
11561         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
11562         (xcoff_asm_named_section): New.
11563         * config/sh/sh.c (sh_asm_named_section): New.
11564         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
11565
11566         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
11567         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
11568         (EH_FRAME_SECTION_NAME): New.
11569         (EXCEPTION_SECTION): New.
11570         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
11571         (DEBUG_*_SECTION): Remove.
11572         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
11573         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
11574         (EH_FRAME_SECTION_ASM_OP): Remove.
11575
11576         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
11577         (ASM_OUTPUT_SECTION_NAME): Remove.
11578         (TARGET_ASM_NAMED_SECTION): New.
11579         (TARGET_HAVE_NAMED_SECTIONS): New.
11580         (TARGET_SECTION_TYPE_FLAGS): New.
11581         (EH_FRAME_SECTION_ASM_OP): Remove.
11582         (EH_FRAME_SECTION_NAME): New.
11583
11584 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
11585
11586         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
11587         for complex expressions when cfun == 0.
11588         * doc/extend.texi: Document that __builtin_constant_p can be
11589         used in data initializers as well as functions.
11590
11591 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
11592
11593         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
11594         variable I locally, instead of expecting a declaration in the
11595         calling context.
11596
11597 2001-08-03  Richard Henderson  <rth@redhat.com>
11598
11599         * except.c (collect_one_action_chain): Add an explicit cleanup
11600         action if regions surrounding a catch were encoded entirely
11601         within the call-site entry.
11602
11603 2001-08-03  Richard Henderson  <rth@redhat.com>
11604
11605         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
11606         don't take REGNO of a non-register.
11607
11608 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11609
11610         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
11611         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
11612         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
11613         (__gthread_mutex_init_function): New function for mutex initialization.
11614
11615 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11616
11617         * Makefile.in: Revert screwed up commit.
11618
11619 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11620
11621         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
11622         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
11623         merged by linker script to get a final _exit().
11624         (__do_global_dtors): New for destructor handling in specific exit
11625         section.
11626         (__do_global_ctors): New for constructors in specific install section.
11627         (__map_data_section): Map data sections before running constructors.
11628         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
11629         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
11630         (DTORS_SECTION_ASM_OP): Likewise.
11631         (CTORS_SECTION_FUNCTION): Define to force a reference to
11632         __do_global_ctors.
11633         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
11634
11635 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11636
11637         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
11638
11639         * Makefile.in: Add df.h to gcse.c dependencies.
11640
11641 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11642
11643         * varasm.c (output_constant_def_contents): Use for the length of a
11644         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
11645         depending on which is larger.
11646
11647 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11648
11649         * gcse.c: Include df.h for use as a dataflow analyzer.
11650         Remove regvec.
11651         Declaration of reg_set_info: gone.
11652         New df_analyzer variable used by store motion.
11653         (reg_set_info): Deleted.
11654         (mark_mem_regs): New function, analyze regs used by a mem.
11655         (store_ops_ok): Use dataflow analyzer results to determine if
11656         necessary regs are changed in the block.
11657         (find_moveable_store): Remove check for symbol ref, we can handle
11658         much more complex expressions now.
11659         (compute_store_table): Remove most of the code, it's unnecessary
11660         now that the dataflow analyzer records the info for us.
11661         (store_killed_after): Add parameter to say whether to do the
11662         store_ops_okay test, used to speed up testing when we already know
11663         the answer, and just want to know if the store itself was killed.
11664         (build_store_vector): Largely rewritten to calculate the various
11665         vectors properly, and somewhat optimized.
11666         (store_motion): Init the df_analyzer, get REG_DEF chains.
11667         Also handle trapping expressions (since mems almost always trap)
11668         (simple_mem): Redefine what a simple mem is.
11669
11670 2001-08-03  DJ Delorie  <dj@redhat.com>
11671
11672         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
11673         set from a constant part of the condition.
11674
11675 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
11676
11677         * mkdeps.c (deps_add_default_target): Make local variable
11678         ``start'' a const char pointer.
11679         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
11680
11681 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11682
11683         * doc/install.texi (Configuration): Fix markup.
11684         (Specific, i?86-*-udk): Likewise.
11685         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
11686         --with-gnu-ld.
11687         Document --enable-threads and --enable-libgcj status.
11688         (Specific, mips-sgi-irix*): Canonicalize triples.
11689         (Specific, mips-sgi-irix5): Warn about problems with this config.
11690         Mention required GNU as patch.
11691         Native assembler problems are fixed.
11692         (Specific, mips-sgi-irix6): Update O32 ABI support status.
11693         Document --enable-threads and --enable-libgcj status.
11694
11695 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11696
11697         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
11698         of mkinstalldirs.
11699
11700 2001-08-03  Richard Henderson  <rth@redhat.com>
11701
11702         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
11703         constant data.
11704
11705 2001-08-03  Richard Henderson  <rth@redhat.com>
11706
11707         * rtlanal.c (find_first_parameter_load): Stop if we
11708         reach a CODE_LABEL at BOUNDARY.
11709
11710 2001-08-03  Richard Henderson  <rth@redhat.com>
11711
11712         * config/alpha/alpha.md (force_movdi): New insn.
11713         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
11714         Tweek FRP marking of VMS prologue insns.
11715         * config/alpha/vms.h (EPILOGUE_USES): New.
11716
11717 2001-08-02  Richard Henderson  <rth@redhat.com>
11718
11719         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
11720
11721 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
11722
11723         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
11724         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
11725         config/convex/convex.h, config/d30v/d30v.c,
11726         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11727         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
11728         config/mips/mips.h, config/mn10200/mn10200.h,
11729         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
11730         config/v850/v850.h, config/vax/openbsd.h,
11731         config/vax/openbsd1.h, config/vax/ultrix.h,
11732         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
11733         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
11734         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
11735         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
11736         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
11737         in comments and documentation.
11738
11739 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11740
11741         * line-map.c: New.
11742         * line-map.h: New.
11743         * Makefile.in (line-map.o): New.
11744         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
11745         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
11746         * cpperror.c (print_containing_files): Similarly.
11747         (print_location): Update.  Don't output a space before _Pragma.
11748         * cppfiles.c (stack_include_file): Set to line 1 immediately.
11749         (stack_include_filee, cpp_make_system_header): Update.
11750         (_cpp_execute_include): Get logical line number right for calling
11751         as-yet-unterminated #include.
11752         * cpphash.h (struct cpp_reader): Add line_maps.
11753         (_cpp_do_file_change): Update.
11754         * cppinit.c (cpp_create_reader): Initialize line maps.
11755         (cpp_destroy): Destroy line maps.
11756         (cpp_start_read): Get logical line number right.
11757         * cpplex.c (parse_string): Only warn once for multi-line strings.
11758         Use boolean variable for null warning.
11759         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
11760         already.
11761         (do_include_common): End the directive early.
11762         (do_line): Don't warn about out-of-range lines in preprocessed
11763         source.  Update.  Remove unused variables.
11764         (_cpp_do_file_change): Update for new line mapping.
11765         (pragma_cb): New typedef.
11766         (cpp_register_pragma): Stop looking ahead before calling the
11767         handler.  Clean up.
11768         (do_pragma_system_header): End directive early.
11769         (cpp_get_line_maps): New.
11770         (cpp_pop_buffer): Fudge logical line.  Update.
11771         * cpplib.h: Include line-map.h
11772         (enum cpp_fc_reason): Remove.
11773         (struct cpp_file_change): Update.
11774         (cpp_get_line_maps): New.
11775         * cppmain.c (struct_printer): New member map.
11776         (cb_file_change): Update for new mappings.
11777         * fix-header.c (cb_file_change): Similarly.
11778
11779 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11780
11781         * Makefile.in (libgcc.mk): Define mkinstalldirs.
11782         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
11783
11784 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
11785
11786         * config/vax/vax.c: include expr.h.
11787
11788 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11789
11790         * Makefile.in ($(srcdir)/configure): Only rebuild in
11791         maintainer mode.
11792         ($(srcdir)/config.in): Only define in maintainer mode.
11793         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
11794
11795 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
11796
11797         * doc/install.texi (Install GCC: Binaries): Update Bull info.
11798
11799 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11800
11801         * gcc.c (set_collect_gcc_options): New function, split out from
11802         main.
11803         Ignore elided switches.
11804         (do_spec_1): Invoke before executing command.
11805         (set_input): Export.
11806         Move declaration ...
11807         * gcc.h (set_input): ... here.
11808         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
11809         file.
11810
11811 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
11812
11813         Kill -fhonor-std.
11814         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
11815         interaction.
11816         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
11817
11818 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
11819
11820         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
11821         for the unnamed instructions it expands to.
11822
11823 2001-08-02  Richard Henderson  <rth@redhat.com>
11824
11825         * regclass.c (call_really_used_regs): Conditionally define.
11826         (init_reg_sets_1): Don't use it if not defined.
11827         (fix_register): Similarly, don't set it.
11828
11829 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11830
11831         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
11832         Correct comment that had been missed in the previous change.
11833
11834 2001-08-01  Stan Shebs  <shebs@apple.com>
11835
11836         * config/darwin.c (machopic_stub_name): Try matching by name.
11837         (update_stubs): New function.
11838         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
11839         unconditionally.
11840
11841 2001-08-01  Richard Henderson  <rth@redhat.com>
11842
11843         * except.c (output_function_exception_table): Use assemble_align.
11844         * varasm.c (assemble_eh_label): Remove.
11845         (assemble_eh_align, assemble_eh_integer): Remove.
11846
11847 2001-08-01  Robert Lipe  <robertl@caldera.com>
11848
11849         * dwarfout.c: Remove reference to README.DWARF.
11850
11851 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
11852
11853         * regclass.c (call_really_used_regs): New array for registers which
11854         are actually used by a call.
11855         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
11856         new array.
11857         (fix_register): Set call_really_used too.
11858         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
11859         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
11860
11861 2001-08-01  Richard Henderson  <rth@redhat.com>
11862
11863         * read-rtl.c (read_name): Consider \r whitespace.
11864
11865 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
11866
11867         * config.gcc: Recognize powerpc-*-netbsd*.
11868
11869         * doc/install.texi (Host/target specific installation notes for
11870         GCC): Mention powerpc-*-netbsd*.
11871
11872         * config/rs6000/netbsd.h: New file.
11873         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
11874         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
11875         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
11876         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
11877         (TARGET_VERSION): Redefine.
11878
11879         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
11880         mcall-netbsd as a match for mcall-sysv.
11881         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
11882         (ncrti.S, ncrtn.S): New targets.
11883         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
11884
11885         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
11886         "netbsd' as a V4 ABI.
11887         (ASM_SPEC): Check for -mcall-netbsd.
11888         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
11889         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
11890         (LIB_SPEC, ENDFILE_SPEC): Ditto.
11891         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
11892         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
11893         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
11894         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
11895
11896         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
11897         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
11898
11899 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
11900
11901         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
11902         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
11903         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
11904         including "unwind-pe.h".
11905
11906 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
11907
11908         * rs6000.md (define_splits): Kill unused constraints.
11909
11910 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
11911                               Jan Hubicka  <jh@suse.cz>
11912
11913         * function.c (thread_prologue_and_epilogue_insns): Kill code
11914         dealing with non-existent CFG.
11915
11916 2001-08-01  Kazu Hirata  <kazu@hxi.com>
11917
11918         * alias.c: Fix comment formatting.
11919         * bitmap.c: Likewise.
11920         * builtins.c: Likewise.
11921         * calls.c: Likewise.
11922         * c-common.c: Likewise.
11923         * c-decl.c: Likewise.
11924         * c-dump.c: Likewise.
11925         * c-lex.c: Likewise.
11926         * collect2.c: Likewise.
11927         * combine.c: Likewise.
11928         * conflict.c: Likewise.
11929         * cppfiles.c: Likewise.
11930         * cppinit.c: Likewise.
11931         * cpplex.c: Likewise.
11932         * cpplib.c: Likewise.
11933         * cppmacro.c: Likewise.
11934         * cppspec.c: Likewise.
11935         * c-pragma.c: Likewise.
11936         * crtstuff.c: Likewise.
11937         * cse.c: Likewise.
11938         * cselib.c: Likewise.
11939         * c-semantics.c: Likewise.
11940         * c-typeck.c: Likewise.
11941
11942 2001-08-01  H.J. Lu <hjl@gnu.org>
11943
11944         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
11945
11946 2001-08-01  H.J. Lu <hjl@gnu.org>
11947
11948         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
11949
11950 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
11951
11952         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
11953         contextualizing Objective-C class name lookup by the lexer.
11954         (typespec_reserved_nonattr): Disable ObjC class name lookup after
11955         seeing a TYPESPEC.
11956         (protocoldef): Add support for forward @protocol declarations.
11957         (yylexname): Suppress ObjC class name lookup in certain contexts;
11958         re-enable after lookup is complete.
11959         (_yylex): Re-enable ObjC class name lookup when certain
11960         punctuation marks are seen.
11961
11962         * objc/objc-act.c (check_protocol_recursively): New function used
11963         for finding circular dependencies in protocols.
11964         (objc_declare_protocols): New function for handling forward
11965         @protocol declarations.
11966         (receiver_is_class_object): Detect the case when 'self' is used
11967         inside of a class method.
11968         (build_message_expr): Issue a warning if class method is desired
11969         but instance method is found instead.
11970         (conforms_to_protocol): Streamline.
11971         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
11972         protocol Foo, even if 'Bar foo' does not.
11973         (check_protocols): Streamline.
11974         (start_protocol): Add checks for circular and duplicate protocol
11975         definitions.
11976         (encode_aggregate_within): For typedefs of structs, encode the
11977         underlying struct.
11978         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
11979         (objc_declare_protocols): New prototype.
11980
11981 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11982
11983         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
11984         * cpplex.c (handle_newline): Update prototype.  Maintain logical
11985         line number.
11986         (skip_escaped_newlines, skip_block_comment, parse_string):
11987         Update accordingly.
11988         (_cpp_lex_token): Update, and store token position within the token.
11989         * cpplib.h (struct cpp_token): Add line and column entries.
11990         * cppmacro.c (replace_args): Position stringified tokens correctly.
11991
11992 2001-08-01  Andreas Jaeger  <aj@suse.de>
11993
11994         * basic-block.h: Add prototype for last_loop_beg_note.
11995
11996 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
11997
11998         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
11999         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
12000         comment.
12001         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
12002         while handling WITH_CLEANUP_EXPR node. Use second operand calling
12003         expand_decl_cleanup.
12004         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
12005         the first RTX.
12006         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
12007         operand while calling simple_cst_equal.
12008         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
12009         operand is the cleanup expression, the third is the RTL_EXPR.
12010         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
12011
12012 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
12013
12014         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
12015
12016 2001-07-31  matthew green  <mrg@eterna.com.au>
12017
12018         * config.gcc (i386-*-netbsdelf): New description.
12019         * config/i386/netbsd-elf.h: New file.
12020
12021 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
12022
12023         * loop.c (check_dbra_loop): Use single_set to compute
12024         jump_label.
12025
12026 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
12027
12028         PowerPC reorg and support for powerpc64-*-linux*.
12029
12030         Also fixes emitting of constants on 32 bit and 64 bit
12031         platforms.
12032
12033         * config.gcc: powerpc64-*-linux* is a new target.
12034         Things that needed aix.h now also include xcoff.h
12035
12036         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
12037         xcoff.h.
12038         Move AIX specific stuff into aix.h.
12039         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
12040         with more than just XCOFF now.
12041         (SET_ASM_OP): Remove, now defined where needed.
12042         (FUNCTION_PROLOGUE): New macro definition.
12043         (FUNCTION_EPILOGUE): New macro definition.
12044         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
12045
12046         * config/rs6000/xcoff.h: New file.
12047
12048         * config/rs6000/linux64.h: New file.
12049
12050         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
12051
12052 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
12053
12054         * rs6000.c (print_operand_address): Handle ELF syntax.
12055         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
12056         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
12057         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
12058
12059 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
12060
12061         * rs6000.c (rs6000_override_options): Only disable
12062         flag_function_sections for XCOFF.
12063         (exact_log2_cint_operand): New predicate.
12064         (reg_or_{add,sub}_cint64_operand): New predicates.
12065         (add_operand): Compare CONST_INT with fewer function calls.
12066         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
12067         (print_operand, case 'p'): Ensure positive operand.
12068         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
12069         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
12070         (PREDICATE_CODES): Add new predicates.
12071         * rs6000.md (addsi3): Split 32-bit constants more correctly.
12072         (divsi3, modsi3): Ensure positive power-of-2.
12073         (adddi3): Use new predicate.  Split 32-bit constants more
12074         correctly.  Re-arrange splitter to handle any constant.
12075         (subdi3): Use new predicate.
12076         (divdi3, moddi3): Ensure positive power-of-2.
12077         (movdi): Use rs6000_emit_set_const.
12078         (load_toc_v4_pic_di): Delete.
12079
12080 2001-07-31  Graham Stott <grahams@redhat.com>
12081
12082         * function.c (pad_below): Revert 2001-07-26 patch.
12083
12084 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
12085
12086         * reg-stack (convert_regs_1): Fix best edge condition.
12087
12088 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
12089
12090         * jump.c (duplicate_loop_exit_test): Better test for jumps
12091         entering the loop; create loop pre_header.
12092
12093 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
12094
12095         * doc/install.texi: Add s390 and s390x as new targets.
12096         * doc/invoke.texi: Add documentation of S/390 and zSeries
12097         target options.
12098         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
12099
12100 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
12101
12102         * config/m68k/m68k.md: Replace all general_operand with
12103         nonimmediate_operand for all destinations.
12104         * config/m68k/m68k.c (not_sp_operand): Likewise.
12105
12106 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
12107
12108         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
12109
12110 2001-07-30  Richard Henderson  <rth@redhat.com>
12111
12112         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
12113         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
12114
12115 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
12116
12117         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
12118         Add missing doc strings
12119         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
12120         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
12121
12122 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
12123
12124         * i386.c (ix86_output_main_function_alignment_hack): New function.
12125         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
12126
12127         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
12128         edges by EDGE_DFS_BACK flag.
12129         (dump_edge_info): Add dfs_back flag.
12130         * basic-block.h (EDGE_DFS_BACK): New constant.
12131         (mark_dfs_back_edges): Declare.
12132         * alias.c (loop_p): Remove.
12133         (mark_constant_function): Use mark_dfs_back_edges.
12134
12135         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
12136         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
12137         (compensate_edge): Break out from ...
12138         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
12139         (convert_regs_2): Set block_done once block is really done;
12140         Do updating of the predecessors counts.
12141
12142         * toplev.c (rest_of_compilation): Recompute block_for_insn
12143         before post-reload cfg_cleanup.
12144         * function.c (thread_prologue_epilogue_insns):
12145         Call set_block_for_new_insns when emitting prologue directly.
12146
12147 2001-07-30  Andreas Jaeger  <aj@suse.de>
12148
12149         * jump.c: Add prototype for mark_modified_reg.
12150
12151         * cse.c (set_live_p): Add unused attribute.
12152
12153         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
12154         overflow.
12155         (scan_for_source_files): Use long for count to avoid overflow.
12156         (output_data): Likewise.
12157         (output_data): Don't use string concatatenation to silence gcc
12158         -traditional.
12159
12160         * predict.c: Fix typos and grammar.
12161
12162         * gcse.c (insert_insn_end_bb): Remove unused variables.
12163
12164 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
12165
12166         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
12167         (attempt_auto_inc): LIkewise.
12168         (mark_used_reg): Likewise.
12169         (try_pre_increment_1): Likewise.
12170         * regclass.c (regclass): Likewise.
12171         * global.c (allocno_compare): Update comment; change scaling factor.
12172         * local-alloc.c (QTY_CMP_PRI): Likewise.
12173         * regs.h (REG_FREQ_FROM_BB): New.
12174         (REG_FREQ_MAX): Likewise.
12175
12176 2001-07-30  H.J. Lu <hjl@gnu.org>
12177
12178         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
12179         -D_GNU_SOURCE.
12180
12181 2001-07-30  H.J. Lu  (hjl@gnu.org)
12182
12183         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
12184         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
12185         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
12186
12187 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
12188
12189         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
12190         as -mthumb-interwork when -mcpu=arm7 is specified.
12191
12192 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
12193
12194         * predict.def (noreturn, loop branch, loop exit): Mark as first
12195         match heuristics.
12196
12197 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
12198
12199         * combine.c (try_combine): Avoid barrier after noop jumps.
12200
12201 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12202
12203         * cpphash.h (struct cpp_reader): Remove import_warning.
12204         * cpplib.c (skip_rest_of_line): Don't bother turning off
12205         macro expansion.
12206         (parse_include): Move include handling to...
12207         (do_include_common): ... here.  Move import warning from...
12208         (do_import): ... here.
12209         (do_pragma_poison): Don't do a callback for poison identifiers.
12210         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
12211         * cppmain.c (setup_callbacks): Similarly.
12212
12213 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
12214
12215         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
12216         handle multiple sets.
12217         * except.c (sjlj_mark_call_sites): .... here.
12218         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
12219
12220 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
12221
12222         Suggested by Richard Henderson and Richard Kenner:
12223         * combine.c (recog_for_combine): Use the fake recog
12224         only if instruction does not match.
12225         * rtl.h (NOOP_MOVE_INSN_CODE): New.
12226         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
12227
12228         * combine.c (try_combine): Discover noop jump as direct jump.
12229
12230 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
12231
12232         * df.c (df_rd_global_compute): Add successors to worklist, not
12233         current item.
12234         (df_ru_global_compute): Ditto.
12235
12236 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
12237
12238         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
12239         increment REG_N_SETS.
12240
12241 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
12242
12243         * sbitmap.h: New prototype for sbitmap_a_xor_b.
12244
12245         * sbitmap.c (sbitmap_a_xor_b): New function.
12246         ifdef the basic block stuff on IN_GCC.
12247
12248 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12249
12250         * cppexp.c (parse_defined): Always record the macro name.
12251         (lex): Don't worry about identifiers, or special-case
12252         CPP_NOT here.
12253         (_cpp_parse_expr): Figure out at the end of the routine
12254         whether we saw a valid !defined() expression.
12255         * cppfiles.c (stack_include_file): Update for mi_valid.
12256         (_cpp_pop_file_buffer): Similarly.
12257         * cpplex.c (_cpp_lex_token): Similarly.
12258         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
12259         mi_if_not_defined, mi_lexed): Remove.
12260         (mi_valid): New.
12261         * cpplib.c (do_if): Simplify.
12262         (do_endif, push_conditional, _cpp_handle_directive): Update
12263         for renaming of mi_state to mi_valid.
12264 doc:
12265         * cpp.texi: Add index entries for digraphs, and add comment
12266         that C++ refers to them as alternative tokens.
12267
12268 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
12269
12270         * basic-block.h (CLEANUP_PRE_LOOP): New.
12271         * except.c (finish_eh_generation): Update call of cleanup_cfg.
12272         * sibcall.c (optimize_sibling_calls): Likewise.
12273         * toplev.c (rest_of_compilation): Likewise.
12274         * flow.c (try_forward_edges): Take argument MODE;
12275         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
12276         (try_optimize_cfg): Update call of try_forward_edges.
12277
12278 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
12279                                 Jan Hubicka  <jh@suse.cz>
12280
12281         * (validate_replace_rtx_1): Fix simplification of MINUS.
12282
12283 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12284
12285         PR preprocessor/3669
12286         * cppinit.c (init_dependency_output): Turn off dump requests
12287         if sending dependencies to stdout.
12288
12289 2001-07-28  Richard Henderson  <rth@redhat.com>
12290
12291         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
12292         not optimizing.
12293
12294 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
12295
12296         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
12297
12298 2001-07-28  Kazu Hirata  <kazu@hxi.com>
12299
12300         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
12301         is VAR_DECL first to prevent an ICE.
12302
12303 2001-07-28  Richard Henderson  <rth@redhat.com>
12304
12305         * varasm.c (immed_real_const_1): Don't elide special cases for
12306         nested functions.
12307         (clear_const_double_mem): Clear const_tiny_rtx too.
12308
12309 2001-07-28  Richard Henderson  <rth@redhat.com>
12310
12311         * dwarf2out.c (dw_val_class_offset): New.
12312         (struct dw_ranges_struct, dw_ranges_ref): New.
12313         (ranges_table, ranges_table_allocated): New.
12314         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
12315         (add_AT_offset, add_ranges, output_ranges): New.
12316         (print_die, output_die): Handle dw_val_class_offset.
12317         (attr_checksum, size_of_die, value_format): Likewise.
12318         (gen_lexical_block_die): Handle non-contiguous blocks.
12319         (gen_block_die): Likewise.
12320         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
12321         if needed.  Dump the ranges table.
12322         * final.c (final_start_function): Remove unnecessary notes and
12323         rebuild the block tree before numbering the blocks.
12324         * function.c (reorder_blocks_0): Walk the existing block tree
12325         to unmark all blocks.
12326         (reorder_blocks_1): Create block fragments when duplicate block
12327         notes are seen.
12328         (reorder_fix_fragments): New.
12329         (reorder_blocks): Call it.
12330         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
12331
12332 2001-07-28  Richard Henderson  <rth@redhat.com>
12333
12334         * emit-rtl.c (adjust_address): Make a copy of the memory address.
12335
12336 2001-07-28  Richard Henderson  <rth@redhat.com>
12337
12338         * flow.c (add_to_mem_set_list): New function.
12339         (init_propagate_block_info): Use it.
12340         (mark_set_1): Likewise.
12341         (insn_dead_p): Canonicalize memory address for dead store
12342         comparison.  Allow wider mode stores to kill narrower mode stores.
12343         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
12344         (invalidate_mems_from_set): Don't handle MEMs.
12345
12346 2001-07-28  Kazu Hirata  <kazu@hxi.com>
12347
12348         * config/h8300/h8300.h: Fix formatting.
12349
12350 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
12351
12352         * basic-block.h (EDGE_FREQUENCY): New macro.
12353         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
12354         for new BB/edges.
12355         * flow.c (find_sub_basic_blocks): Likewise.
12356         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
12357         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
12358
12359         * predict.c (DEF_PREDICTOR): New argument FLAGS.
12360         (HITRATE): New macro.
12361         (PRED_FLAG_FIRST_MATCH): New constant.
12362         (predictor_info): New field flgags.
12363         (combine_predictions_for_insn): Use DS theory to combine
12364         probabilities; set the edge probabilities when finished.
12365         (estimate_probability): Avoid duplicated matches
12366         of LOOP_BRANCH heuristics for nested loops; update comment.
12367         * predict.def: Add flags for each prediction, set probabilities
12368         according to B&L paper.
12369         * predict.h (DEF_PREDICTOR): New argument FLAGS.
12370
12371         * profile.c (compute_branch_probabilities):  Cleanup way the edge
12372         probabilities are computed and REG_BR_PROB notes are dropped; if
12373         values does not match, emit error.
12374         (init_branch_prob): Do error instead of warning when profile driven
12375         feedback is missing or corrupt.
12376
12377 2001-07-27  DJ Delorie  <dj@redhat.com>
12378
12379         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
12380         against a constant, try to adjust the compare to have the desired
12381         constant in it so that min/max optimizations happen more often.
12382
12383 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
12384
12385         * flow.c (last_loop_beg_note): New function.
12386         (redirect_edge_and_branch): Use it.
12387         (split_edge): Likewise.
12388
12389         * alias.c (loop_p): Avoid uninitialized memory access.
12390
12391         * flow.c (try_forward_edges): Avoid accessing freed memory.
12392
12393         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
12394         variable access.
12395
12396 2001-07-26  Andrew Haley  <aph@redhat.com>
12397         Joern Rennecke <amylaar@redhat.com>
12398
12399         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
12400         (SUBTARGET_CPP_ENDIAN_SPEC): New.
12401         (SUBTARGET_CPP_SPEC): New.
12402         (CPP_SPEC): Remove.
12403         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
12404         (SUBTARGET_CPP_PTR_SPEC): New.
12405         (CPP_DEFAULT_CPU_SPEC): New.
12406         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
12407         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12408         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
12409         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12410         (SUBTARGET_CPP_SPEC): Define as an empty string.
12411
12412 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12413
12414         * doc/install.texi (Configuration): Properly link the host
12415         specific instructions also when generating HTML.
12416
12417 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
12418
12419         * flow.c (redirect_edge_and_branch_force): Test
12420         target->global_live_at_start.
12421
12422 2001-07-26  Richard Henderson  <rth@redhat.com>
12423
12424         * simplify-rtx.c (avoid_constant_pool_reference): Export.
12425         * rtl.h (avoid_constant_pool_reference): Declare it.
12426         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
12427         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
12428
12429 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
12430
12431         * rtl.h (cleanup_barriers): Declare.
12432         * jump.c (cleanup_barriers): New function.
12433         * toplev.c (rest_of_compilation): Call cleanup_barriers
12434         before loop optimizer and after bb_reorder.
12435
12436         * flow.c (back_edge_of_syntactic_loop_p): New.
12437         (split_edge): Use it.
12438
12439 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12440
12441         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
12442
12443 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
12444
12445         * cse.c (cse_process_notes): Replace any registers if the address
12446         remains valid.
12447
12448 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
12449
12450         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
12451         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
12452         (propagate_block): Update prototype.
12453         * flow.c (update_life_info): Simplify the CFG and
12454         recalculate the global regs which are alive when
12455         removing dead code during a global update.
12456         (propagate_block): Return non-zero if an INSN is
12457         deleted.
12458
12459 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12460
12461         * Makefile.in (LIBICONV): Define.
12462
12463 2001-07-26  Catherine Moore  <clm@redhat.com>
12464
12465         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
12466         of conditional to avoid tree checking errors.
12467
12468 2001-07-26  Kazu Hirata  <kazu@hxi.com>
12469
12470         * regmove.c (regmove_optimize): Don't replace a reg with
12471         another reg of a different mode.
12472
12473 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
12474
12475         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
12476         limit length of dependency flush list.
12477         * params.h (MAX_PENDING_LIST_LENGTH): Define.
12478         * sched-int.h  (struct deps): Add pending_flush_length field.
12479         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
12480         has 1 element in it.
12481         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
12482         (sched_analyze): After a jump, if the pending memory flush list is too
12483         large, flush the pending lists.
12484         (init_deps): Initialize pending_flush_length to 0.
12485         * doc/invoke.texi (max_pending_list_length): Document parameter.
12486
12487 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12488
12489         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
12490         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
12491         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
12492
12493 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12494
12495         * cpphash.h (struct_lexer_state): Delete was_skipping.
12496         Move skipping here from struct cpp_reader.
12497         * cpplex.c (parse_identifier): Update.
12498         (_cpp_lex_token): Don't skip tokens in a directive.
12499         * cpplib.c (struct if_stack): Update.
12500         (start_directive, end_directive): Don't change skipping state.
12501         (_cpp_handle_directive): Update.
12502         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
12503         (do_else, do_endif): Update; only check for excess tokens if not
12504         in a skipped conditional block.
12505         (push_conditional): Update for new struct if_stack.
12506
12507 2001-07-26  Graham Stott  <grahams@redhat.com>
12508
12509         * function.c (locate_and_pad_parm): Also pad initial offset
12510         so that the total argument size also includes the padding.
12511
12512 2001-07-26  Graham Stott <grahams@redhat.com>
12513
12514         * gensupport.c (alter_output_for_insn): Correct enable checking failure
12515         change XSTR to XTMPL.
12516
12517         (process_one_cond_exec): Likewise
12518
12519 2001-07-25  Richard Henderson  <rth@redhat.com>
12520
12521         * varasm.c (assemble_variable): Create DECL_RTL before setting
12522         TREE_ASM_WRITTEN.
12523
12524 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
12525
12526         * predict.c (estimate_probability): Avoid duplicated predictions.
12527
12528         * loop.c (find_and_verify_loops): Grok multiple barriers.
12529
12530 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12531
12532         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
12533
12534         * dbxout.c: Consistently use putc instead of fputc.
12535         (print_wide_int): New function; call instead of direct fprintf.
12536         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
12537         (dbxout_type_fields, dbxout_type_method_1): Likewise.
12538         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
12539         (print_int_cst_octal): Likewise.
12540         (print_octal): Show we wrote characters.
12541         (dbxout_type): Set have_used_extensions in more places.
12542
12543 2001-07-25  Catherine Moore  <clm@redhat.com>
12544
12545         * config/v850/v850.c (v850_va_arg):  Use addr
12546         instead of valist to build incr.
12547
12548 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
12549
12550         * flow.c (delete_dead_jumptables): New function.
12551         (life_analyzis): Call it.
12552         * bb-reorder.c (skip_insns_after_block): Handle contradictory
12553         sequences.
12554
12555 2001-07-25  Richard Henderson  <rth@redhat.com>
12556
12557         * except.c (reachable_handlers): Handle a region being removed
12558         out from under a RESX.
12559
12560 2001-07-25  Richard Henderson  <rth@redhat.com>
12561
12562         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
12563         swap GE/GT if it is an fp comparison.
12564
12565 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
12566
12567         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
12568         operands.
12569
12570 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
12571
12572         * ssa.c (rename_insn_1): Do not wrap an assignment to a
12573         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
12574         glitch.
12575
12576         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
12577         throw an exception.
12578         (visit_expression): When attempting to simplify an expression,
12579         retrieve any modes for arguments before they are simplified
12580         to constants.
12581
12582 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
12583             Janis Johnson  <janis@us.ibm.com>
12584
12585         * stmt.c (expand_goto): A nonlocal goto can be a call too.
12586         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
12587         pointer parameters to match documented usage of nonlocal_goto.
12588         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
12589         parameters to their correct order.
12590         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
12591         parameters to their correct order.
12592
12593 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
12594
12595         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
12596
12597 2001-07-25  Jan Hubicka  <jh@suse.cz>
12598             Richard Henderson  <rth@redhat.com>
12599
12600         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
12601         the sequence.
12602         (make_edges): New argument update_p; populate the edge cache if set.
12603         (find_basic_blocks): Update make_edges invocation.
12604
12605 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12606
12607         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
12608
12609 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12610
12611         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
12612         -Acpu and -Amachine.h.
12613         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
12614         Corrected header to say ELF not a.out.
12615         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
12616         when given -msoft-float.
12617
12618 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12619
12620         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
12621         extra multilib parts like arm-elf.
12622         (i960-*-coff*, i960-*-rtems): Should not use collect2.
12623         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
12624         crtfini.o as extra multilib parts.
12625
12626 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12627
12628         * configure.in: Add rtems as a supported thread model.
12629         * gthr-rtems.h: Add missing entry point __gthread_active_p.
12630         * configure: Rebuilt.
12631
12632 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
12633
12634         * stor-layout.c (get_mode_alignment): make it work when
12635         BITS_PER_UNIT is not a power of two.
12636         * builtins.c (get_pointer_alignment): Likewise.
12637
12638 2001-07-24  Richard Henderson  <rth@redhat.com>
12639
12640         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
12641         the retrieved constant into the expected mode.
12642
12643 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
12644
12645         * flow.c (try_simplify_condjump): Avoid duplicated edges.
12646         (verify_flow_info): Check for duplicated edges; clarify
12647         error reporting.
12648
12649         * flow.c (block_label): Update basic_block_for_insn.
12650         (commit_edge_insertions): Call compute_bb_for_insn.
12651
12652         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
12653         returns too.
12654
12655         * flow.c (redirect_edge_and_branch,
12656         try_optimize_cfg): Use redirect_edge_succ_nodup
12657         (redirect_edge_succ_nodup): New.
12658         * basic_block.h (redirect_edge_succ_nodup): Declare.
12659
12660         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
12661         after gcse.
12662
12663 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
12664
12665         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
12666         (try_crossjump_to_edge): Update commetns.
12667         (try_crossjump_bb): Likewise.
12668
12669 2001-07-24  Richard Henderson  <rth@redhat.com>
12670
12671         * combine.c (distribute_notes): Move set of need_refresh
12672         for noop_move_p down to catch all cases.
12673
12674 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
12675
12676         * recog.c (split_all_insns_noflow): New.
12677         * rtl.h (split_all_insns_noflow): Declare.
12678         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
12679         * m68hc11.c (m68hc11_reorg): Likewise.
12680         * sh.c (machine_dependent_reorg): Likewise.
12681         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
12682         call.
12683
12684 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
12685
12686         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
12687         (ashlsi3_n splitter): Likewise.
12688         (lshrsi3_n splitter): Likewise.
12689
12690         (GOTaddr2picreg): Make const SImode.
12691         (sym_label2reg): Likewise.
12692         (symGOT2reg): Likewise.
12693         (symGOTOFF2reg) Likewise.
12694
12695         (casesi_worker_0): Make unspec SImode.
12696
12697 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
12698
12699         * config/sh/sh.c (barrier_align): Check that an operand really is
12700         an insn before extracting its INSN_CODE.
12701
12702 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
12703
12704         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
12705         dangling else.
12706
12707         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
12708         for SImode to prevent overflow.
12709
12710 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12711
12712         * config/mips/irix6-libc-compat.c: New file.
12713         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
12714         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
12715         passing workaround.
12716
12717 2001-07-24  lars brinkhoff  <lars@nocrew.org>
12718
12719         * rtl.texi (REG_POINTER): Document.
12720         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
12721         QFmode, HFmode, TQFmode, QCmode, and HCmode.
12722
12723 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
12724
12725         * flow.c (delete_noop_moves): Do not confuse libcall regions.
12726
12727 2001-07-23  Richard Henderson  <rth@redhat.com>
12728
12729         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
12730
12731 2001-07-23  Kazu Hirata  <kazu@hxi.com>
12732
12733         * config/h8300/h8300-protos.h: Add a prototype for
12734         general_operand_dst_push.
12735         * config/h8300/h8300.c (general_operand_dst_push): New.
12736         * config/h8300/h8300.h (OK_FOR_T): New.
12737         (EXTRA_CONSTRAINT): Use it.
12738         * config/h8300/h8300.md (movqi_push): Remove and integrate into
12739         the existing movqi pattern.
12740         (movhi_push): Likewise.
12741
12742         * reload.c: Fix comment typos.
12743
12744 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
12745
12746         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
12747
12748 2001-07-23  H.J. Lu  (hjl@gnu.org)
12749
12750         * doc/extend.texi: Update __builtin_return_address and
12751         __builtin_frame_address.
12752
12753 2001-07-23  Richard Henderson  <rth@redhat.com>
12754
12755         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
12756         before CSE.
12757         * config/i386/i386.md: New setcc+movzbl peephole2.
12758
12759 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12760
12761         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
12762         * objc/objc-act.c: Include debug.h.
12763         (synth_module_prologue): Save and restore debug hooks too.
12764
12765 2001-07-23  lars brinkhoff  <lars@nocrew.org>
12766
12767         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
12768         and C4X_FLOAT_FORMAT.
12769         (BOOL_TYPE_SIZE): Document.
12770
12771 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
12772
12773         * unroll.c (loop_iterations): Fix miscalculation of initial
12774         giv offset.
12775
12776 2001-07-13  Andrew Haley  <aph@redhat.com>
12777
12778         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
12779         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
12780         * config/sh/sh.c (sh_can_redirect_branch): New function.
12781         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
12782         * reorg.c (steal_delay_list_from_target): Use
12783         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
12784
12785 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
12786
12787         * flow.c (try_simplify_condjump): Unlink insn chain on
12788         fallthru edge; use can_fallthru.
12789
12790 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
12791
12792         * basic-block.h (find_sub_basic_block): Declare.
12793         * flow.c (make_edges): New arguments MIN and MAX;
12794         (find_sub_basic_blocks): Revamp to use make_edges
12795         and purge_dead_edges.
12796         (find_basic_blocks): Update call of find_sub_basic_block.
12797
12798         * recog.c (split_all_insns): Always expect CFG to be consistent;
12799         call find_sub_basic_blocks in case something has changed.
12800         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
12801         has been built.
12802
12803         * basic-block.h (delete_noop_moves): Declare.
12804         * combine.c (combine_instructions): Call it.
12805         (recog_for_combine): Tolerate noop moves
12806         (distribute_notes): Force refresh when register dies at noop move.
12807         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
12808         too.
12809         (life_analysis): Update delete_noop_moves call.
12810         (set_noop_p): Move too ...
12811         * rtlanal.c (noop_move_p): ... here.
12812         * rtl.h (noop_move_p): Declare.
12813
12814         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
12815         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
12816         after combine.
12817         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
12818         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
12819
12820 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
12821
12822         * reload.c (push_reload): Fix typo in comment.
12823         (find_reloads_address): Ditto.
12824         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
12825
12826 2001-07-22  Richard Henderson  <rth@redhat.com>
12827
12828         * flow.c: Grammar check and clarify a lot of comments.
12829         (try_simplify_condjump): Rename variables to be clearer.
12830         (try_forward_edges): Skip complex and fallthru edges.
12831         Rearrange tests to avoid duplicate checks.
12832         (flow_find_cross_jump): Likewise.
12833         (outgoing_edges_match): Allow match if neither branch has
12834         probability data.  Loosen probability match to 5%.
12835         (try_crossjump_to_edge): Hoist repeated indirection into
12836         local variables.
12837         (try_crossjump_bb): Don't check complex edges.  Eliminate
12838         redundant crossjump tests.
12839         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
12840         checks before more expensive checks.
12841
12842 2001-07-22  Richard Henderson  <rth@redhat.com>
12843
12844         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
12845         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
12846         arguments.
12847
12848 2001-07-22  Richard Henderson  <rth@redhat.com>
12849
12850         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
12851         (const_sint32_operand): Likewise.
12852         * m68k.md (anon mulsi pattern): Use const_int_operand not
12853         const_sint32_operand.
12854         (umulsi3_highpart): Zero extend a constant input.
12855         (smulsi3_highpart): Don't bother checking SImode constant.
12856         (const_umulsi3_highpart): Give op3 DImode.
12857         (const_smulsi3_highpart): Likewise.
12858
12859 2001-07-22  Richard Henderson  <rth@redhat.com>
12860
12861         * flow.c (split_block): Make sure bb_note is included in the
12862         new block when splitting before a label.
12863
12864 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
12865
12866         * basic-block.h (redirect_edge_and_branch_force,
12867         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
12868         * flow.c (redirect_edge_and_branch_force,
12869         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
12870         (redirect_edge_and_branch_force): Fix copying of lifeness information.
12871         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
12872         * ifcvt.c (dead_or_predictable): Take BB as an new destination
12873         instead of label; update CFG after transformation.
12874         (find_if_case_1): Update call, use redirect_edge_and_branch_force
12875         for finishing the transformation; handle even case where ELSE
12876         does not follow THEN.
12877         (find_if_case_2): Update call of dead_or_predictable; simplify
12878         CFG update.
12879
12880         * emit-rtl.c (split_branch_probability): New global variable.
12881         (try_split): Take care to set split_branch_probability and
12882         create REG_BR_PROB note for new jump insns.
12883         * md.texi (define_split): Document new feature.
12884
12885         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
12886
12887 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12888
12889         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
12890         (asm_out_file): Remove redundant declaration.
12891         (assemble_asm): Remove old #if 0 block.
12892         (assemble_variable): Remove end of function; debug output is
12893         now handled with global_decl.  Remove old #if 0 block.  Update.
12894         Remove saved_in_section and associated no-op code.
12895         * Makefile.in (varasm.o): Correct dependencies.
12896
12897 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
12898
12899         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
12900         the definition in defaults.h.
12901
12902 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
12903
12904         * jump.c: Update comments.
12905         (delete_barrier_successors, delete_unreferenced_labels,
12906         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
12907         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
12908         jump_optimize, jump_optimize_minimal): Kill.
12909         (rebuild_jump_labels): Move code from jump_optimize_1.
12910         (purge_line_number_notes): Likewise.
12911         (copy_loop_headers): Likewise.
12912         * reg-stack.c: Update comment.
12913         * stmt.c: Likewise.
12914         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
12915         JUMP_AFTER_REGSCAN): Kill.
12916         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
12917         purge_line_number_notes and copy_loop_headers.
12918
12919 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
12920            Richard Henderson  <rth@redhat.com>
12921
12922         * dbxout.c (dbxout_global_decl): New.
12923         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
12924         * sdbout.c (sdbout_finish): New.
12925         (sdbout_debug_hooks): Use it, add comments.
12926         (sdbout_global_decl): Defer initialised public vars to
12927         sdbout_finish.
12928         * varasm.c (assemble_variable): Don't output debug information
12929         for file-scope variables.
12930
12931 2001-07-22  Richard Henderson  <rth@redhat.com>
12932
12933         * config/alpha/alpha.c (get_trap_mode_suffix): New.
12934         (get_round_mode_suffix): New.
12935         (print_operand): Use them for [/].  Remove support for [&'`()+].
12936         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
12937         * config/alpha/alpha.md (attr round_suffix): New.
12938         (attr trap_suffix): New.
12939         (all insns): Set them appropriately.  Use %/ instead of the
12940         myriad punctuators.
12941
12942 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12943
12944         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
12945
12946 2001-07-22  Richard Henderson  <rth@redhat.com>
12947
12948         * regrename.c (regrename_optimize): Compute nregs for each
12949         potential target register.
12950
12951 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
12952            Richard Henderson  <rth@redhat.com>
12953
12954         * dbxout.c (dbxout_global_decl): New.
12955         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
12956         * sdbout.c (sdbout_finish): New.
12957         (sdbout_debug_hooks): Use it, add comments.
12958         (sdbout_global_decl): Defer initialised public vars to
12959         sdbout_finish.
12960         * varasm.c (assemble_variable): Don't output debug information
12961         for file-scope variables.
12962
12963 2001-07-21  H.J. Lu  (hjl@gnu.org)
12964
12965         * config/mips/mips.c (mips_cpu): Moved into ...
12966         (override_options): Here.
12967
12968         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
12969         mips_tune.
12970         (mips_cpu): Removed.
12971
12972 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12973
12974         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
12975         ("iorqi3"): Likewise.
12976         ("xorqi3"): Likewise.
12977         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
12978         ("*subhi3_sp): Likewise.
12979         ("*subhi3"): Likewise.
12980         ("extendhisi2"): Accept D, X and Y as source operand to avoid
12981         reload problems.
12982
12983 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
12984
12985         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
12986         * config/freebsd.h: Likewise.
12987         * config/linux.h: Likewise.
12988         * config/openbsd.h: Likewise.
12989         * config/alpha/linux-elf.h: Likewise.
12990         * config/arm/linux-elf.h: Likewise.
12991         * config/d30v/d30v.h: Likewise.
12992         * config/fr30/fr30.h: Likewise.
12993         * config/ia64/aix.h: Likewise.
12994         * config/ia64/ia64.h: Likewise.
12995         * config/mips/linux.h: Likewise.
12996         * config/pj/pj.h: Likewise.
12997         * config/rs6000/linux.h: Likewise.
12998         * config/sparc/linux.h: Likewise.
12999         * config/sparc/linux64.h: Likewise.
13000
13001 2001-07-20  Bruce Korb  <bkorb@gnu.org>
13002
13003         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
13004         because getc() and char* may disagree on signedness.
13005
13006 2001-07-20  Richard Henderson  <rth@redhat.com>
13007
13008         * doc/rtl.texi (REG_DEAD): Update for current semantics.
13009
13010         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
13011         insns to delete in the presence of cc0 in a jump insn.
13012
13013 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
13014                                 Jan Hubicka  <jh@suse.cz>
13015
13016         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
13017         of doing the change by hand.
13018
13019 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
13020
13021         * rtlanal.c (set_noop_p): Return true for noop jumps.
13022
13023         * expr.c (emit_single_push_insn): Add call to push expander.
13024         * expr.h (optab_index): Add OTI_push
13025         (push_optab): New constant.
13026         * genopinit.c (optabs): Add push_optab.
13027         * optabs.c (init_optab): Init push optab.
13028         * md.texi (push??1): Document
13029
13030 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13031
13032         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
13033         expand to emit the pattern; put a REG_INC note for push/pop
13034         instructions.
13035         ("movdf", "movdf_internal"): Likewise.
13036         ("movsi", "movsi_internal"): Likewise.
13037         ("movsf", "movsf_internal"): Likewise.
13038         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
13039
13040 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13041
13042         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
13043         gen_highpart.
13044
13045 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
13046
13047         * params.def: Change default max inline insns to 100.
13048
13049 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
13050
13051         * combine.c (combine_simplify_rtx): Generate a new shift operation
13052         when simplifying the first operand of a (neg (ashift)) expression.
13053
13054 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
13055
13056         * regclass.c (N_REG_INTS): Use only 32 bits per element.
13057
13058 2001-07-20  Kelley Cook  <kelley.cook@home.com>
13059
13060         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
13061         information.   Move rest into ...
13062         (*-*-solaris): ... here.  Eliminate redundant information and
13063         reword necessary packages section.  Delete 4.x assembler bug info.
13064         (sparc-sun-*): Merge into ...
13065         (sparc-sun-sunos*): here.
13066
13067 2001-07-20  Catherine Moore  <clm@redhat.com>
13068
13069         * config/v850/v850.md (casesi): Generate LABEL_REF
13070         with Pmode.
13071
13072 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
13073
13074         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
13075         * i386.c (ix86_zero_extend_to_Pmode): Make global.
13076         * i386.md (strclrsi expander): Use it.
13077
13078 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13079
13080         * integrate.c (copy_insn_list): handle
13081         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
13082         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
13083         identically as to CODE_LABEL.
13084
13085         * fold-const (fold): Convert A/B/C to A/(B*C) and
13086         A/(B/C) to (A/B)*C
13087
13088         * except.c (connect_post_landing_pads): Delete the RESX insns.
13089
13090 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
13091
13092         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
13093
13094         * config/mips/mips.md (nmadd/nmsub): Use macro.
13095
13096 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
13097
13098         * cppinit.c (remove_dup_dir): Make static.
13099         (remove_dup_dirs): Make static. Only warn about preempting a
13100         system directory with a non-system directory.
13101
13102 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
13103
13104         * ifcvt.c (noce_try_store_flag_constants): Correct order
13105         of parameters to trunc_int_for_mode.
13106
13107 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
13108
13109         * reorg.c (fill_simple_delay_slots): If an instruction might throw
13110         an exception that will be caught within this function, do not fill
13111         its delay slot with any subsequent instruction.
13112
13113 2001-07-19  Steve Ellcey <sje@cup.hp.com>
13114
13115         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
13116         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
13117         pointer extension instruction.
13118         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
13119         * simplify-rtx.c (simplify_unary_operation) Likewise.
13120         * explow.c (convert_memory_address) Check value of
13121         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
13122         less than zero.
13123         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
13124         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
13125         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
13126         Add Multilib Support.
13127         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
13128         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
13129         Add Multilib Support.
13130         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
13131         support.
13132         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
13133         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
13134         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
13135
13136 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
13137
13138         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
13139         old and new operands in `<', `3' and `b'.
13140
13141 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13142
13143         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
13144         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
13145         (toplev.o): Don't depend on xcoffout.h.
13146         * c-decl.c: Include debug.h
13147         (duplicate_decls): Use debug hook.
13148         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
13149         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13150         (dbxout_types): Remove.
13151         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
13152         * debug.c (do_nothing_debug_hooks): Update.
13153         (debug_true_tree, debug_nothing_rtx): New.
13154         * debug.h (struct rtx_def): New.
13155         (struct gcc_debug_hooks): New hooks ignore_block,
13156         outlining_inline_function and label.
13157         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
13158         dwarf2out_frame_finish): New.
13159         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
13160         Make static, update prototype.
13161         (dwarf2_debug_hooks): Update.
13162         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
13163         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
13164         * dwarfout.c (dwarf_debug_hooks): Update.
13165         * emit-rtl.c: Include debug.h.
13166         (remove_unnecessary_notes): Use debug hook.
13167         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
13168         (final_scan_insn): Use debug hook.
13169         * integrate.c (output_inline_function): Use debug hook.
13170         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
13171         (sdb_debug_hooks): Update.
13172         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
13173         * toplev.c: Don't include xcoffout.h.
13174         (note_outlining_of_inline_function, debug_ignore_block): Remove.
13175         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
13176         Remove.
13177         * tree.h (dwarf2out_do_frame): Remove.
13178
13179 2001-07-19  Catherine Moore  <clm@cygnus.com>
13180
13181         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
13182
13183 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
13184
13185         * reload1.c (eliminate_regs_in_insn): When updating a set
13186         to the frame pointer to the hardware frame pointer, perform
13187         the update always not just when REPLACE is set.
13188
13189         * reload1.c (choose_reload_regs): Don't inherit a reload
13190         that crosses multiple registers if registers past the first
13191         don't fit in the desired class.
13192
13193         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
13194         when negating constants.
13195
13196 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
13197
13198         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
13199         * doc/tree.texi: Ditto.
13200
13201 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
13202             Jakub Jelinek  <jakub@redhat.com>
13203
13204         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
13205         (extract_cie_info): Handle "eh" augmentation properly,
13206         remember eh_ptr.
13207         (struct frame_state, __frame_state_for): New.
13208
13209 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13210
13211         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
13212         HANDLE_SYSV_PRAGMA): Define.
13213         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
13214         previous args.
13215         (copy_object): Caller changed.
13216
13217 2001-07-19  Andreas Schwab  <schwab@suse.de>
13218
13219         * configure.in (assembler dwarf2 debug_line support): Define nop
13220         insn for m68k.
13221         * configure: Regenerated.
13222
13223 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13224
13225         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
13226         dwarfout.h.
13227         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
13228         to conditionally compiled block.
13229         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13230         * dbxout.h (dbxout_function): Remove.
13231         * debug.c (do_nothing_debug_hooks): Update.
13232         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
13233         global_decl, deferred_inline_function.
13234         * dwarf2out.c (dwarf2_debug_hooks): Update.
13235         (dwarf2out_global_decl): New.
13236         * dwarfout.c: Don't include dwarfout.h.
13237         (dwarfout_global_decl, dwarfout_function_decl,
13238         dwarfout_deferred_inline_function): New.
13239         (dwarf_debug_hooks): Update.
13240         * dwarfout.h: Remove.
13241         * final.c: Don't include dwarfout.h.
13242         * sdbout.c (sdbout_global_decl): New.
13243         (sdbout_debug_hooks): Update.
13244         * toplev.c: Don't include dwarfout.h.
13245         (check_global_declarations, rest_of_compilation): Use new debug hooks.
13246         (note_deferral_of_defined_inline_function): Remove.
13247         * toplev.h (note_deferral_of_defined_inline_function): Remove.
13248         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
13249         * ch/lex.c: Don't include dwarfout.h.
13250         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
13251         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
13252         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
13253         * cp/optimize.c: Include debug.h.
13254         (maybe_clone_body): Use debug hook.
13255         * cp/semantics.c: Include debug.h.
13256         (expand_body): Use debug hook.
13257         * po/POTFILES.in: Remove dwarfout.h.
13258
13259 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13260
13261         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
13262         * c-parse.in (yyerror, _yylex): Similarly.
13263         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
13264         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
13265         Update comments.
13266         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
13267         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
13268
13269 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
13270
13271         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
13272         in-class declaration at -g1.  Fixes c++/2814.
13273
13274 2001-07-18  Richard Henderson  <rth@redhat.com>
13275
13276         * doc/md.texi (reload_in/out): Document restrictions in predicates
13277         and constraints for these patterns.  Document empty string matching
13278         ALL_REGS.
13279
13280 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13281
13282         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
13283
13284 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
13285
13286         * cse.c: Undo my previous patch.
13287
13288 2001-07-18  Tom Tromey  <tromey@redhat.com>
13289
13290         For PR java/2812:
13291         * configure: Rebuilt.
13292         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
13293         instead.
13294         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
13295
13296 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
13297                                 Jan Hubicka  <jh@suse.cz>
13298
13299         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
13300         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
13301         * jump.c (mark_jump_label): Do not forward branches.
13302
13303 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
13304
13305         * cse.c (delete_trivially_dead_insns): Delete the libcall block
13306         when return value is unused.
13307
13308 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13309
13310         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
13311
13312 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
13313
13314         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
13315         on error.  We can't blindly return the result of
13316         pthread_mutex_trylock because it returns a positive number on
13317         error, while we must return -1 on error.
13318         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
13319         fixes.
13320         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
13321
13322 2001-07-18  Andreas Jaeger  <aj@suse.de>
13323
13324         * integrate.c (output_inline_function): Correct type of debug_hooks.
13325
13326 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
13327
13328         * combine.c (combine_simplify_rtx): DIV can be treated
13329         associatively for floats if unsafe math optimisations are enabled.
13330
13331 2001-07-17  Richard Henderson  <rth@redhat.com>
13332
13333         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
13334
13335 2001-07-17  Richard Henderson  <rth@redhat.com>
13336
13337         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
13338         don't force the function address into a register.
13339         (expand_call, emit_library_call_value_1): Update callers.
13340         * builtins.c (expand_builtin_apply): Likewise.
13341         * expr.h (prepare_call_address): Update decl.
13342
13343 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
13344
13345         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
13346         config directory.
13347         * config/i386/chorus.h: Move up.
13348         * config/sparc/chorus.h: Likewise.
13349         * config/rs6000/chorus.h: Likewise.
13350         * config/chorus.h: Moved here.
13351
13352 2001-07-17  Andreas Schwab  <schwab@suse.de>
13353
13354         * configure.in  (assembler eh_frame optimization): Handle big
13355         endian.
13356         * configure: Regenerated.
13357
13358 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
13359
13360         * expr.c (epxand_expr): Convert divisions into multiplications by
13361         reciprocals if -ffast-math.
13362
13363 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13364
13365         * dbxout.c (dbxout_really_begin_function): Rename to
13366         dbxout_begin_function.
13367         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13368         (dbxout_begin_function): Remove.
13369         (dbxout_function): Update.
13370         (dbxout_source_line): Update prototype.
13371         * dbxout.h (dbxout_begin_function): Remove.
13372         * debug.c (do_nothing_debug_hooks): Update.
13373         (debug_nothing_tree): Update.
13374         (debug_nothing_charstar_rtx): Remove.
13375         * debug.h (union tree_node): Declare.
13376         (struct rtx_def): Remove.
13377         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
13378         begin_function.  Change source_line prototype.
13379         (debug_nothing_tree): New.
13380         (debug_nothing_charstar_rtx): Delete.
13381         (dwarf2out_begin_prologue): Moved from ...
13382         * tree.h: ... here.
13383         * dwarf2out.c (dwarf2_debug_hooks): Update.
13384         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
13385         debug info, call dwarf2out_source_line.
13386         (dwarf2out_souce_line): Update prototype.
13387         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
13388         Change prototype, make static.
13389         (dwarfout_source_line): Update prototype.
13390         (dwarf_debug_hooks): Update.
13391         * dwarfout.h (dwarfout_begin_function): Remove.
13392         * final.c (final_start_function, final_scan_insn): Use appropriate
13393         debug hooks, update to use notice_source_line.
13394         (output_source_line): Rename notice_source_line.  Don't call the
13395         source_line debug hook.
13396         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
13397         make static, update prototype.
13398         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
13399         prototype.
13400         (sdbout_end_prologue): New.
13401         (sdbout_source_line): Update prototype.
13402         (sdbout_debug_hooks): Update.
13403         (sdbout_symbol): Remove unused var.
13404         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
13405         Delete.
13406         * varasm.c: Include debug.h.
13407         (assemble_start_function): Use begin_function debug_hook.
13408         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13409         update with prototype.
13410         (xcoffout_source_line): Update prototype.
13411         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13412         update prototype.
13413         (xcoffout_source_line): Update prototype.
13414
13415 2001-07-17  Richard Henderson  <rth@redhat.com>
13416
13417         * c-typeck.c (build_binary_op): Do not shorten unsigned
13418         right shift after sign extension.
13419
13420 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
13421
13422         * combine.c (combine_simplify_rtx): Attempt to simplify
13423         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
13424
13425         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
13426         (simplify_binary_operation, simplify_unary_operation,
13427          simplify_relational_operation): Use it.
13428
13429         * combine.c (combine_simplify_rtx): Don't do associative law
13430         on divisions; allow associative law on floats.
13431
13432 2001-07-17  H.J. Lu <hjl@gnu.org>
13433             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13434
13435         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
13436         ASM_OUTPUT_WEAK_ALIAS are defined.
13437         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
13438         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
13439         Moved ...
13440         * config/mips/iris5.h: ... here.
13441         (HANDLE_SYSV_PRAGMA): Defined as 1.
13442         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
13443         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
13444         symbol.
13445
13446 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
13447
13448         * c-parse.in (all_prefix_attributes): New variable.
13449         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
13450         (maybe_resetattrs): New production.
13451         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
13452         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
13453         notype_initdcl, nested_function, notype_nested_function,
13454         component_decl, components, components_notype,
13455         component_declarator, component_notype_declarator,
13456         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
13457         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
13458         after a comma being applied to more than one declarator.
13459         * doc/extend.texi (Attribute Syntax): Update.  Remove
13460         documentation of bugs that are no longer present.
13461
13462 2001-07-13  Eric Christopher  <echristo@redhat.com>
13463
13464         * config/mips/mips.h: Change TUNE_MIPS* options to use
13465         mips_tune.
13466         (EXTRA_SPECS): Add cc1_cpu_spec.
13467         * config/mips/mips.md (muldf3): Fix typo.
13468
13469 2001-07-16  Richard Henderson  <rth@redhat.com>
13470
13471         * config/m68k/m68k.c: Include expr.h and reload.h.
13472         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
13473         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
13474
13475 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
13476             Richard Henderson  <rth@redhat.com>
13477
13478         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
13479         (insn_live_p): Fix fall off end of function.
13480         (dead_libcall_p): Remove COUNTS argument; update callers.
13481         (delete_trivially_dead_insns): Remove unused variables.
13482
13483 2001-07-17  Andreas Jaeger  <aj@suse.de>
13484
13485         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
13486         x86-64 pic support.
13487
13488         * lcm.c (optimize_mode_switching): Avoid warning for unused
13489         variable if !NORMAL_MODE.
13490
13491         * flow.c (try_crossjump_to_edge): Remove unused variable.
13492
13493 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13494
13495         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
13496         atexit declaration in stdlib.h.
13497
13498 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
13499
13500         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
13501
13502 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13503
13504         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
13505         * except.c (finish_eh_generation): Update call of cleanup_cfg;
13506         do rebuild_jump_labels instead of jump_optimize
13507         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
13508         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
13509         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
13510
13511         * flow.c: Include timevar.h
13512         (find_basic_block): Push/pop timevar;
13513         (cleanup_cfg): Likewise.
13514         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
13515         * Makefile: Add dependencies on timevar.h
13516
13517         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
13518         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
13519
13520         * rtl.h (delete_trivially_dead_insns): Add new parameter.
13521         * toplev.c (rest_of_compilation): Update calls.
13522         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
13523         (delete_trivially_dead_insns): ... here; accept new argument
13524         preserve_basic_blocks; preserve basic blocks if set.
13525
13526         * reg-stack.c (stack_regs_mentioned): Return 0 if
13527         stack_regs_mentioned_data is not initialized.
13528         (reg_to_stack): Make stack_regs_mentioned survive after the
13529         reg-stack is completted; do not call cleanup_cfg.
13530         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
13531         make cleanup_cfg after bb-reorder to output to debug file.
13532
13533 2001-07-16  Richard Henderson  <rth@redhat.com>
13534
13535         * regclass.c (init_reg_sets): Use only 32 bits per initializer
13536         from int_reg_class_contents.
13537
13538 2001-07-16  Richard Henderson  <rth@redhat.com>
13539
13540         * hard-reg-set.h (regs_invalidated_by_call): Declare.
13541         * regclass.c (regs_invalidated_by_call): Move from cse.c.
13542         (init_reg_sets_1): Move initialization from cse_main.
13543         * cse.c (regs_invalidated_by_call): Move to regclass.c.
13544         (cse_main): Move its initialization also.
13545         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
13546         * flow.c (propagate_one_insn): Likewise.
13547         * gcse.c (compute_hash_table): Likewise.
13548         (compute_kill_rd, compute_store_table): Likewise.
13549         * sched-deps.c (sched_analyze_1): Likewise.
13550
13551 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
13552
13553         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
13554         gen_rtx_SET.
13555
13556 2001-07-16  Steve Ellcey <sje@cup.hp.com>
13557
13558         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
13559         in if statement so we don't access undefined memory.
13560
13561 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
13562
13563         * gcse.c: Update comment at top.
13564         Update comment on mem handling.
13565         mem_last_set, mem_first_set, mem_set_in_block: gone.
13566         Declaration of reg_set_info: gone.
13567         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
13568         pointless with load_killed_in_block_p (they are *more*
13569         conservative then it, not less, and less accurate).
13570         (oprs_not_set_p): Ditto.
13571         (alloc_gcse_mem): Don't allocate mem_set_in_block
13572         (free_gcse_mem): Don't free it, either.
13573         (record_last_mem_set_info): Update comment in front, remove
13574         mem_*set_* stuff. Note the reason we don't handle stores directly
13575         here.
13576         (compute_hash_table): Update comments to reflect reality. Remove
13577         mem_*set_* references.
13578         (reset_opr_set_tables): Remove mem_*set_* references.
13579         (mark_call): Ditto.
13580         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
13581         (mark_clobber): Ditto (on both parts, we double set here too).
13582         (expr_killed_p): Remove mem_set_in_block test.
13583         (compute_transp): Remove mem_set_in_block test.
13584
13585         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
13586         of edge, and removal of phi alternative to dump file.
13587         (ssa_ccp_substitute_constants): Add note about register now being
13588         constant, and which uses were replaced in what insns to dump file.
13589
13590 2001-07-16  Andreas Jaeger  <aj@suse.de>
13591
13592         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
13593         variables of type HOST_WIDEST_INT.
13594
13595         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
13596         (__bb_exit_func): Correct type of count_max to avoid overflow.
13597         (num_digits): Handle long long argument.
13598
13599         * combine.c (gen_lowpart_for_combine): Remove unused variable.
13600
13601 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13602
13603         * output.h (sdb_begin_function_line): Restore as an extern
13604         variable.
13605         * sdbout.c (sdb_begin_function_line): Make extern.
13606
13607 2001-07-15  Richard Henderson  <rth@redhat.com>
13608
13609         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
13610         * genrecog.c (maybe_both_true_mode): New.
13611         (maybe_both_true_2): Use it.
13612         (write_switch): Don't put Pmode in a switch.
13613         * rtl.c (mode arrays): Don't explicitly size them.
13614
13615 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
13616
13617         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
13618         handling; move unconditional splitting before mode switching.
13619
13620         * i386.md (type): Add fistp type.
13621         (i387, length_attr, scheduling definitions): Handle this type.
13622         (fix_trunc?f?i2): Revamp to use mode switching.
13623         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
13624         * i386.h (fp_cw_mode): New enum
13625         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
13626         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
13627
13628 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13629
13630         * Makefile.in (integrate.o): Add debug.h.
13631         * integrate.c (debug.h): Add.
13632         (output_inline_function): Save, reset, and restore debug_hooks.
13633
13634 2001-07-15  Richard Henderson  <rth@redhat.com>
13635
13636         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
13637         instead of COMPARE for the EQUIV expression.
13638
13639 2001-07-15  Richard Henderson  <rth@redhat.com>
13640
13641         * flow.c (redirect_edge_and_branch_force): Initialize
13642         global_live_at_start and global_live_at_end.
13643         (allocate_bb_life_data): Export.
13644         * basic-block.h (allocate_bb_life_data): Declare.
13645         * toplev.c (rest_of_compilation): Call it.
13646
13647 2001-07-15  Richard Henderson  <rth@redhat.com>
13648
13649         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
13650         (alpha_tablejump_best_label): New.
13651         * config/alpha/alpha-protos.h: Declare them.
13652         * config/alpha/alpha.md: Use braced strings for code blocks.
13653         (tablejump_osf): Break out add with r29.
13654         (tablejump_osf_internal): Remove.
13655         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
13656         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
13657
13658 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
13659
13660         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
13661         of the movable.
13662
13663         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
13664
13665         * i386-protos.h (ix86_split_fp_branch): Update prototype.
13666         (ix86_fp_jump_nontrivial_p): New.
13667         * i386.md (fp_jcc_?): Update call of split_fp_branch;
13668         use ix86_fp_jump_nontrivial_p.
13669         * i386.c (ix86_fp_jump_nontrivial_p): New.
13670         (ix86_split_fp_branch): Accept code instead of rtx.
13671         (ix86_expand_compare): Expand comparison early in case
13672         doing so is resonably cheap.
13673
13674 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
13675
13676         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
13677         not 'machine'.
13678         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
13679         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
13680
13681 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
13682
13683         * dbxout.c (dbxout_source_line): Make static, update prototype.
13684         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
13685         (dbxout_init, dbxout_finish, dbxout_source_line,
13686         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
13687         * dbxout.h (dbxout_source_line): Delete.
13688         * debug.c (debug_nothing_file, debug_nothing_file_int,
13689         debug_nothing_file_charstar_rtx): New.
13690         (do_nothing_debug_hooks): Update.
13691         (debug_nothing_void, debug_nothing_charstar_rtx,
13692         dwarf2out_end_epilogue): New.
13693         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13694         * debug.h (struct rtx_def): Declare.
13695         (gcc_debug_hooks): New hooks source_line, end_epilogue
13696         and end_function.
13697         (debug_nothing_void, debug_nothing_charstar_rtx,
13698         dwarf2out_end_epilogue): New.
13699         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13700         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
13701         (dwarf2_debug_hooks): Update.
13702         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
13703         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
13704         * dwarf2out.h (dwarf2out_source_line): Remove.
13705         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
13706         Make static, update prototype.
13707         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
13708         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
13709         (dwarf_debug_hooks): Update.
13710         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
13711         dwarfout_end_function): Remove.
13712         * final.c (profile_function): Use debug hooks for ending functions
13713         and epilogues.
13714         (output_source_line, final_end_function): Update prototype,
13715         use debug hooks.
13716         (final_start_function, final_scan_insn): Update.
13717         * output.h (sdb_begin_function_line): Remove.
13718         (final_end_function): Update prototype.
13719         * sdbout.c (sdb_begin_function_line): Make static.
13720         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
13721         (sdbout_source_line): New.
13722         (sdbout_end_epilogue, sdbout_end_function): Make static, update
13723         prototypes.
13724         (sdb_debug_hooks): Update.
13725         (sdbout_init, sdbout_source_line,
13726         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
13727         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
13728         * toplev.c (compile_file, rest_of_compilation): Update.
13729         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
13730         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
13731         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
13732         Update for prototype changes.
13733         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
13734         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
13735
13736 2001-07-15  Richard Henderson  <rth@redhat.com>
13737
13738         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
13739         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
13740         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
13741         * config/alpha/alpha.c: Likewise.
13742         * config/alpha/alpha.md: Likewise.
13743         * config/alpha/alpha32.h: Likewise.
13744         * config/alpha/vms.h: Likewise.
13745         (OPEN_VMS): Remove.
13746
13747 2001-07-14  Richard Henderson  <rth@redhat.com>
13748
13749         * config/alpha/alpha.md: Use define_constants for unspec values.
13750         Substitute throughout.
13751
13752 2001-07-14  Tim Josling  <tej@melbpc.org.au>
13753
13754         * tree.def (EXPON_EXPR) remove. Never supported anyway.
13755
13756 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13757
13758         * pa.md: Remove unused constraints from define_split's.
13759
13760 2001-04-14  Richard Henderson  <rth@redhat.com>
13761
13762         * ifcvt.c (find_cond_trap): Test for exit block.
13763
13764 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
13765
13766         Re-install recently reverted patch.
13767         * emit-rtl.c (try_split): Update mark_jump_label call.
13768         * flow.c (find_sub_basic_blocks): Likewise.
13769         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13770         jump_back_p): Kill.
13771         (mark_all_labels): Kill second parameter.
13772         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13773         (rebuild_jump_labels, jump_optimize_minimal): Update call
13774         of jump_optimize_1.
13775         (jump_optimize_1): Kill crossjumping code.
13776         (mark_jump_label): Kill cross_jump parameter.
13777         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13778         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13779         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13780          splitting.
13781         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13782         DFI_bpro.
13783         (dump_file_info): Likewise.
13784         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13785         reorganize passes to do reg-stack first, bb-reorder second.
13786         * invoke.texi (-d letters doc): Remove the jump2 pass.
13787
13788 2001-07-14  Richard Henderson  <rth@redhat.com>
13789
13790         * ifcvt.c (find_cond_trap): New.
13791         (find_if_header): Call it.
13792         (merge_if_block): Relax existing jump sanity check.
13793         * jump.c (jump_optimize_1): Remove conditional trap handling.
13794
13795 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
13796
13797         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
13798         millicode.
13799         (insn_refs_are_delayed): Correct comment.
13800         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
13801         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
13802         instead of r31.  Make associated insn !TARGET_64BIT, and
13803         provide an additional 64-bit insn that clobbers r2.
13804         (divsi3): Likewise.
13805         (udivsi3): Likewise.
13806         (modsi3): Likewise.
13807         (umodsi3): Likewise.
13808
13809 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
13810
13811         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
13812
13813         * flow.c (redirect_edge_and_branch_force, split_edge,
13814         try_crossjump_to_edge): Use set_block_for_new_insns.
13815         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
13816
13817 2001-07-13  H.J. Lu  (hjl@gnu.org)
13818
13819         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
13820         the correct patch.
13821
13822 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
13823
13824         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
13825
13826 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
13827
13828         * c-common.c (decl_attributes): Take a pointer to the node to
13829         which attributes are to be attached, and a flags argument.
13830         * c-common.h (enum attribute_flags): New.
13831         (decl_attributes): Update prototype.
13832         * c-decl.c (start_decl, push_parm_decl, finish_struct,
13833         finish_enum, start_function): Update calls to decl_attributes.
13834         * c-parse.in (component_declarator, component_notype_declarator,
13835         label): Update calls to decl_attributes.
13836
13837 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
13838
13839         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
13840         * config/avr/avr.c (legitimate_address_p): Return value changed
13841         from letter to register classes. For better debugging.
13842
13843 2001-07-13  Kazu Hirata  <kazu@hxi.com>
13844
13845         * jump.c (reversed_comparison_code_parts): Fix comment typos.
13846
13847 2001-07-13  H.J. Lu  (hjl@gnu.org)
13848
13849         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
13850
13851 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
13852
13853         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
13854         correctly for shared configurations.
13855         * config/t-libgcc-pic:  New.
13856         * config/{i386,m68k,sparc}/t-openbsd:  New.
13857         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
13858         Support -shared.  Support debugging libraries with -g.
13859         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
13860         frame information does not emit pointer diffs.
13861         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
13862         emit pointer diffs.
13863
13864 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
13865
13866         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
13867
13868 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
13869
13870         * combine.c (try_combine): Ensure const_int pow2 is positive.
13871
13872 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
13873
13874         * config.gcc: Add configuration for s/390.
13875         * config/s390/s390.c: New. Subroutines for code generation.
13876         * config/s390/s390.h: New. Definitions for s/390.
13877         * config/s390/s390-protos.h: New. Prototypes.
13878         * config/s390/linux.h: New. Definitions for linux for s/390.
13879         * config/s390/linux64.h: New. Definitions for linux for zSeries.
13880         * config/s390/t-linux: New. Makefile fragment.
13881         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
13882         * config/s390/fixdfdi.h: New. Fix L_fix*di.
13883
13884 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
13885
13886         * emit-rtl.c (try_split): Update mark_jump_label call.
13887         * flow.c (find_sub_basic_blocks): Likewise.
13888         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13889         jump_back_p): Kill.
13890         (mark_all_labels): Kill second parameter.
13891         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13892         (rebuild_jump_labels, jump_optimize_minimal): Update call
13893         of jump_optimize_1.
13894         (jump_optimize_1): Kill crossjumping code.
13895         (mark_jump_label): Kill cross_jump parameter.
13896         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13897         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13898         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13899          splitting.
13900         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13901         DFI_bpro.
13902         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13903         reorganize passes to do reg-stack first, bb-reorder second.
13904         * invoke.texi (-d letters doc): Remove the jump2 pass.
13905
13906 2001-07-12  Steve Ellcey <sje@cup.hp.com>
13907
13908         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
13909
13910 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13911
13912         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
13913         basic blocks.
13914         (verify_flow_info): Make diagnostics prettier.
13915
13916 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
13917
13918         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
13919
13920         * flow.c (outgoing_edges_match): Return early if condition reversal
13921         failed.
13922
13923 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
13924
13925         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
13926         (mips_move_2words): When splitting a move into two instructions,
13927         prefix the second address operand with '%D'.
13928
13929 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
13930
13931         * Makefile.in (final.o): Depend on debug.h.
13932         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
13933         (dbx_debug_hooks): Add new hooks.
13934         (xcoff_debug_hooks): New.
13935         * debug.c (debug_nothing_file_int_int): New.
13936         (do_nothing_debug_hooks): Update.
13937         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
13938         (debug_nothing_file_int_int): New.
13939         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
13940         static, update prototype.
13941         (dwarf2_debug_hooks): Update.
13942         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
13943         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
13944         static, update prototype.
13945         (dwarf_debug_hooks): Update.
13946         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
13947         * final.c: Include debug.h.
13948         (final_scan_insn): Use debug hooks when beginning and ending blocks.
13949         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
13950         static, update prototype.
13951         (sdb_debug_hooks): Update.
13952         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
13953         * toplev.c: Distinguish between xcoff and dbx.
13954
13955         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
13956         Call all debug hooks, not just dwarf ones.
13957
13958 2001-07-11  Timothy Wall  <twall@redhat.com>
13959
13960         * config.gcc: Add configuration for AIX5/IA64.
13961         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
13962         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
13963         support prefix/suffix code.
13964         * config/ia64/t-aix: New.  Makefile fragment.
13965         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
13966
13967 2001-07-11  Kazu Hirata  <kazu@hxi.com>
13968
13969         * recog.c (validate_change): Fix a comment typo.
13970
13971 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13972
13973         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
13974         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
13975         hooks directly.
13976         * dbxout.c (dbx_debug_hooks): Add new hooks.
13977         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
13978         make static.
13979         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
13980         make static.
13981         * dbxout.h (dbxout_start_new_source_file,
13982         dbxout_resume_previous_source_file): Delete.
13983         * debug.c (do_nothing_debug_hooks): Add new hooks.
13984         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
13985         (debug_nothing_int_charstar, debug_nothing_int): New.
13986         * debug.h (gcc_debug_hooks): New hooks define, undef,
13987         start_source_file and end_source_file.
13988         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
13989         (debug_nothing_int_charstar, debug_nothing_int): New.
13990         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
13991         the conditionally compiled section.
13992         (dwarf2out_start_source_file, dwarf2out_end_source_file,
13993         dwarf2out_define, dwarf2out_undef): Make static.
13994         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
13995         dwarf2out_define, dwarf2out_undef): Remove.
13996         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
13997         (dwarfout_start_source_file, dwarfout_end_source_file,
13998         dwarfout_define, dwarfout_undef): Make static.
13999         (dwarfout_start_source_file_check,
14000         dwarfout_end_source_file_check): New.
14001         (dwarfout_define, dwarfout_finish): Update.
14002         * dwarfout.h (dwarfout_start_new_source_file,
14003         dwarfout_resume_previous_source_file, dwarfout_define,
14004         dwarfout_undef): Remove.
14005         * sdbout.c (sdb_debug_hooks): Add new hooks.
14006         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
14007         make static.
14008         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
14009         make static, take an arg.
14010         * sdbout.h (sdbout_start_new_source_file,
14011         sdbout_resume_previous_source_file): Delete.
14012         * toplev.c (debug_start_source_file, debug_end_source_file,
14013         debug_define, debug_undef): Delete.
14014         * toplev.h (debug_start_source_file, debug_end_source_file,
14015         debug_define, debug_undef): Delete.
14016
14017         * java/jcf-parse.c: Include debug.h.
14018         (parse_class_file): Update to use debug hooks directly.
14019         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
14020
14021 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14022
14023         * alias.c (set_mem_alias_set): New function.
14024         * rtl.h (set_mem_alias_set): Declare it.
14025         * builtins.c (expand_builtin_return_addr): Call it instead of
14026         using MEM_ALIAS_SET accessor.
14027         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
14028         (get_memory_rtx, expand_builtin_va_arg): Likewise.
14029         (expand_builtin_va_copy):Likewise.
14030         * caller-save.c (setup_save_areas): Likewise.
14031         * calls.c (compute_argument_addresses): Likewise.
14032         * explow.c (set_mem_attributes): Likewise.
14033         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
14034         (expand_assignment, store_constructor_field, store_field): Likewise.
14035         (expand_expr_unaligned): Likewise.
14036         * function.c (assign_stack_temp_for_type): Likewise.
14037         (put_reg_into_stack, gen_mem_addressof): Likewise.
14038         * ifcvt.c (noce_try_cmove_arith): Likewise.
14039         * reload1.c (reload, alter_reg): Likewise.
14040         * config/alpha/alpha.c (get_aligned_mem): Likewise.
14041         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
14042         (alpha_expand_unaligned_store): Likewise
14043         (alpha_expand_unaligned_load_words): Likewise.
14044         (alpha_expand_unaligned_store_words): Likewise.
14045         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
14046         (alpha_expand_epilogue): Likewise.
14047         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14048         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
14049         * config/i386/i386.c (legitimize_pic_address): Likewise.
14050         * config/i960/i960.c (setup_incoming_varargs): Likewise.
14051         * config/ia64/ia64.c (spill_restore_mem): Likewise.
14052         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14053         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
14054         * config/mips/mips.c (mips_va_arg): Likewise.
14055         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
14056         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
14057         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
14058         (setup_incoming_varargs, rs6000_va_arg): Likewise.
14059         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
14060         (rs6000_emit_epilogue): Likewise.
14061         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
14062         * config/sparc/sparc.c (sparc_va_arg): Likewise.
14063         * config/v850/v850.c (v850_va_arg): Likewise.
14064
14065 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
14066
14067         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
14068         when fallthru edge is present.
14069         (mege_blocks): Handle case where creation of jump insn
14070         is required.
14071
14072         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
14073         CLEANUP_POST_REGSTACK): New constants.
14074         * except.c (finish_eh_generation): Update call of cleanup_cfg,
14075         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
14076         * output.h (cleanup_cfg): Update prototype.
14077         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
14078         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
14079         cleanup_cfg call; kill missleading comment.
14080         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
14081         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
14082         parameter; control optimizations performed using it.
14083         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
14084         try_crossjump_bb): New functions.
14085
14086 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14087
14088         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
14089         extern.
14090         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
14091         pa_output_function_prologue.
14092         * pa-protos.h (pa_output_function_prologue): New prototype.
14093
14094 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14095
14096         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
14097         and low to get correct sign extension in low+high test.
14098
14099 2001-07-11  Janis Johnson <janis@us.ibm.com>
14100
14101         * gcov.c (arcdata): Use gcov_type to fix branch percentage
14102         for large hit count.
14103
14104         * profile.c (branch_prob): Fix .bbg info for computed gotos
14105         and C++ EH code.
14106
14107 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
14108
14109         * stmt.c (parse_output_constraint): New function, split out
14110         from ...
14111         (expand_asm_operands): ... here.  Use parse_output_constraint.
14112         * tree.h (parse_output_constraint): Declare it.
14113
14114 2001-07-11  Richard Henderson  <rth@redhat.com>
14115
14116         * bitmap.c: Comment some functions; fiddle whitespace.
14117         (bitmap_free): Don't export.
14118         (bitmap_element_allocate): Use memset.
14119         * bitmap.h (bitmap_free): Don't declare.
14120
14121 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
14122
14123         * gcse.c, lcm.c, sched-deps.c:
14124         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
14125
14126         * flow.c (flow_loops_find): Free dom if we found no loops, since
14127         we aren't going to save it.
14128
14129         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
14130         done.
14131
14132 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
14133
14134         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
14135
14136 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14137
14138         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
14139         #ifndef DWARF2_DEBUGGING_INFO.
14140
14141 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14142
14143         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
14144
14145 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14146
14147         * config/mips/mips.c (gen_int_relational): Tell the caller not to
14148         reverse a branch if a NE comparison is implemented with GTU.
14149
14150 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14151             H.J. Lu  <hjl@gnu.org>
14152
14153         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
14154         constant addresses.
14155         (call_internal2): Likewise.
14156         (call_value_internal1): Likewise.
14157         (call_value_internal2): Likewise.
14158         (call_value_multiple_internal1): Likewise.
14159         (call_value_multiple_internal2): Likewise.
14160
14161 2001-07-10  Kazu Hirata  <kazu@hxi.com>
14162
14163         * calls.c (emit_library_call_value_1): Fix a comment typo.
14164         * dwarf2out.c (mem_loc_descriptor): Likewise.
14165         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
14166
14167 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
14168
14169         * simplify-rtx.c (simplify_subreg): Fix typo in comment
14170
14171 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14172
14173         * recog.c (offsettable_address_p): Handle LO_SUM case.
14174         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
14175         instead of plus_constant.
14176
14177 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14178
14179         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
14180         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
14181
14182 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14183
14184         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
14185         adjust_address_nv instead of plus_constant.
14186
14187 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
14188
14189         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
14190         dwarf2out.o): Depend on debug.h, wrap long lines.
14191         * dbxout.c: Include debug.h.
14192         (dbx_debug_hooks): New.
14193         (dbxout_init): Make static, take just 2 args.
14194         (dbxout_finish): Make static.
14195         * dbxout.h (dbxout_init, dbxout_finish): Delete.
14196         * debug.c: New file.
14197         * debug.h: New file.
14198         * dwarf2out.c: Include debug.h.
14199         (dwarf2_debug_hooks): New.
14200         (dwarf2out_init): Make static.
14201         (dwarf2out_finish): Make static, take 2 args.
14202         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
14203         * dwarfout.c: Include debug.h.
14204         (dwarf_debug_hooks): New.
14205         (dwarfout_init): Make static.
14206         (dwarfout_finish): Make static, take 2 args.
14207         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
14208         * sdbout.c: Include debug.h.
14209         (sdb_debug_hooks): New.
14210         (sdbout_init): Make static, take 2 args.
14211         * sdbout.h (sdbout_init): Delete.
14212         * toplev.c: Include debug.h.
14213         (debug_hooks): New.
14214         (compile_file): Set deubg_hooks based on command line options.
14215         Use the hooks unconditionally rather than conditional compilation.
14216
14217 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
14218
14219         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
14220         first_insn_after_basic_block_note instead.
14221
14222         * df.c (df_bb_refs_unlink): #if 0 out for now.
14223
14224 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
14225
14226         * ssa.h: Add prototype for ssa_const_prop
14227         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
14228         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
14229         (ssa_fast_dce): Remove unused variable
14230
14231 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
14232
14233         * diagnostic.c (finish_diagnostic): Rename to
14234         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
14235         calls thourghout.
14236
14237 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
14238
14239         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
14240         .loc support.
14241
14242         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
14243         (dump_file): Only pad the demangled name with spaces if the
14244         mangled name was padded with spaces.
14245
14246 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
14247
14248         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
14249         edge detection.
14250
14251 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14252
14253         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
14254         extraction if no direct load if either EXPAND_CONST_ADDRESS or
14255         EXPAND_INITIALIZER.
14256
14257         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
14258         whether can put offset inside LO_SUM to check mode alignment, not size.
14259
14260 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
14261
14262         * doc/tm.texi (Misc): Fix thinko.
14263
14264 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
14265
14266         * regmove.c (replace_in_call_usage): Fix warnings.
14267         * sched-deps.c (add_dependence): Fix warnings.
14268         * simplify-rtx.c (simplify_subreg): Likewise.
14269         Return NULL_RTX instead of NULL.
14270
14271         * reg-stack.c (emit_swap_insn): Eliminate warnings.
14272         (subst_asm_stack_regs): Likewise.
14273
14274         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
14275         warnings.
14276
14277         * dwarf2out.c (output_call_frame_info): Declare i as int.
14278         (build_abbrev_table): Declare n_alloc as int.
14279         (dwarf2out_finish): Initialize die.
14280         * except.c: Declare sjlj_funcdef_number as unsigned.
14281         (connect_post_landing_pads): Declare j as unsigned.
14282         (convert_to_eh_region_ranges): Initialize call_site.
14283         (output_function_exception_table): Initialize tt_format_size.
14284         * expr.c (move_by_pieces_1): Initialize to1.
14285         (store_constructor): Initialize minelt and maxelt.
14286         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
14287         * function.c (instantiate_decls): Avoid signed/unsigned warning.
14288
14289         * c-decl.c (combine_parm_decls): Unused, remove.
14290         * c-tree.h: Remove prototype for combine_parm_decls.
14291
14292         * reload.c (push_reload): Fix warning.
14293         (regno_clobbered_p): Likewise.
14294         * reload1.c (replace_pseudos_in_call_usage): Likewise.
14295         (reload_combine): Likewise.
14296
14297         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
14298         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
14299         warnings.
14300         * bitmap.c (bitmap_operation): Change user.
14301         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
14302
14303 2001-07-10  Eric Christopher  <echristo@redhat.com>
14304
14305         * config/mips/mips.c (override_options): Fix typo.
14306
14307 2001-07-09  Stan Shebs  <shebs@apple.com>
14308
14309         * target.h (struct gcc_target): New fields init_builtins and
14310         expand_builtin.
14311         * target-def.h (TARGET_INIT_BUILTINS): New macro.
14312         (TARGET_EXPAND_BUILTIN): New macro.
14313         (TARGET_INITIALIZER): Add them.
14314         * builtins.c: Include target.h.
14315         (expand_builtin): Use targetm.expand_builtin.
14316         (default_init_builtins): New function.
14317         (default_expand_builtin): New function.
14318         * expr.h (default_init_builtins): Declare.
14319         (default_expand_builtin): Declare.
14320         * c-common.c (c_common_nodes_and_builtins): Use
14321         targetm.init_builtins.
14322         * defaults.h (MD_INIT_BUILTINS): Remove.
14323         * Makefile.in (builtins.o): Depend on target.h.
14324
14325         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
14326         (TARGET_EXPAND_BUILTIN): Define.
14327         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
14328         (MD_EXPAND_BUILTIN): Remove.
14329
14330         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
14331         (TARGET_EXPAND_BUILTIN): Define.
14332         (c4x_init_builtins): Make endlink arg a local.
14333         (c4x_print_operand): Fix typos in adjust_address usages.
14334         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
14335         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
14336         (MD_EXPAND_BUILTIN): Remove.
14337
14338         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
14339         (TARGET_EXPAND_BUILTIN): Define.
14340         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
14341         (ix86_init_builtins): Call new function only if TARGET_MMX.
14342         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
14343         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
14344         (MD_EXPAND_BUILTIN): Remove.
14345
14346         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
14347         (TARGET_EXPAND_BUILTIN): Define.
14348         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
14349         (MD_EXPAND_BUILTIN): Remove.
14350
14351         * doc/tm.texi: Document these changes.
14352
14353 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
14354
14355         * basic-block.h (tree_node): Forward declare if needed.
14356         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
14357         (BLOCK_HEAD_TREE): Define.
14358         (BLOCK_END_TREE): Define.
14359         (struct loops): Rename field 'tree' to 'tree_root'.
14360         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
14361         'end_tree'.
14362         (flow_loops_tree_build): Rename reference to field 'tree' to
14363         'tree_root'.
14364         (flow_loops_level_compute): Ditto.
14365         * predict.c (estimate_bb_frequencies): Ditto.
14366         * tree.h (struct tree_common): Add field 'aux'.
14367
14368 2001-07-09  Stan Shebs  <shebs@apple.com>
14369
14370         * config/darwin.c (darwin_encode_section_info): Don't mark any
14371         DECL_EXTERNAL node as defined.
14372
14373 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14374
14375         * pa.c (pa_init_machine_status, pa_mark_machine_status,
14376         pa_free_machine_status, hppa_init_pic_save): Delete.
14377         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
14378         (hppa_profile_hook): Use hppa_pic_save_rtx.
14379         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
14380         hppa_init_pic_save): Delete.
14381         (hppa_pic_save_rtx): Declare.
14382         * pa.md (call, call_value, sibcall, sibcall_value,
14383         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
14384
14385 2001-07-09  Kazu Hirata  <kazu@hxi.com>
14386
14387         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
14388         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
14389
14390 2001-07-09  Andreas Jaeger  <aj@suse.de>
14391
14392         * output.h: Add declaration of final_forward_branch_p.
14393
14394         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
14395
14396         * varray.c: Include errors.h for internal_error and trim_filename
14397         declarations.
14398
14399         * Makefile.in (varray.o): Add errors.h.
14400
14401 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
14402
14403         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
14404         * optabs.c (have_add2_insn): Check whether the add insn chosen
14405         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
14406         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
14407
14408 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
14409
14410         * Makefile.in (OBJS): Add ssa-ccp.o
14411         (ssa-ccp.o): Add dependencies.
14412         * toplev.c (DFI_ssa_ccp): New dump file enum.
14413         (dump_file): Add entry for dumping after SSA CCP.
14414         (flag_ssa_ccp): New flag variable.
14415         (f_options): Add -fssa-ccp.
14416         (rest_of_compilation): Run SSA CCP if requested.
14417         * timevar.def (TV_SSA_CCP): New timevar.
14418         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
14419         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
14420         Fix minor typo in SSA DCE documentation.
14421         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
14422         Add documentation for new dump option.  Renumber dump files
14423         appropriately.
14424
14425 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
14426
14427         * emit-rtl.c (gen_highpart_mode): New.
14428         * rtl.h (gen_highpart_mode): Declare.
14429         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
14430         operand can be VOIDmode constant.
14431
14432 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
14433
14434         * flow.c (redirect_edge_and_branch_force): New.
14435         (can_fallthru): Ensure that basic blocks are succeeding.
14436         (try_optimize_cfg): Do not delete basic block if it is the last one.
14437
14438         * flow.c (try_redirect_by_replacing_jump): Do not remove
14439         jumps with side effects, unlink chain on fallthru edge;
14440         set block for new jump instruction; avoid basic block to
14441         over by line number note.
14442
14443         * flow.c (try_simplify_condjump): Verify that the condjump
14444         is not always falling through.
14445
14446         Re-install patch:
14447         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
14448
14449         * flow.c (forwarder_block_p): Fix for fallthru blocks.
14450         (try_redirect_by_replacing_jump): Update properly the count
14451         and frequency information.
14452
14453 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14454
14455         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
14456         address that is a LO_SUM specially.
14457         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
14458
14459         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
14460
14461         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
14462         (operand_subword): Use them.
14463         (change_address_1): Renamed from change_address; new arg VALIDATE.
14464         * expr.h: Reflect above changes; change_address now macro.
14465         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
14466         making MEM.
14467         * cselib.c (add_mem_for_addr): Likewise.
14468         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
14469         * regmove.c (try_apply_stack_adjustment): Likewise.
14470         * reload.c (push_reload, make_memloc): Likewise.
14471         * reload1.c (eliminate_regs): Likewise.
14472         * simplify-rtx.c (simplify_replace_rtx): Likewise.
14473         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
14474         adjust_addess.
14475         * combine.c (make_extraction, simplify_shift_const): Likewise.
14476         (gen_lowpart_for_combine): Likewise.
14477         * cse.c (gen_lowpart_if_possible): Likewise.
14478         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
14479         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
14480         * optabs.c (gen_move_insn): Likewise.
14481         * reload1.c (alter_reg): Likewise.
14482         * simplify-rtx.c (simplify_subreg): Likewise.
14483         * stmt.c (expand_anon_union_decl): Likewise.
14484         * recog.c (validate_replace_rtx_1): Likewise.
14485         (expr.h): Include.
14486         * Makefile.in (recog.o): Add $(EXPR_H).
14487         * explow.c (stabilize): Call replace_equiv_address.
14488         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
14489         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
14490
14491 2001-07-03  Andrew Haley  <aph@redhat.com>
14492
14493         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
14494         the mode of the memory location.
14495
14496 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
14497
14498         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
14499
14500 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14501
14502         * final.c (output_addr_const): Use target opening and
14503         closing parentheses.
14504         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
14505         defaults, add to TARGET_ASM_OUT.
14506         * target.h (struct gcc_target): Add open_paren and close_paren.
14507         * doc/md.texi: Update.
14508         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
14509         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
14510         TARGET_ASM_CLOSE_PAREN.
14511         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
14512         Override.
14513         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
14514         Override.
14515         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
14516         * config/a29k/a29k.h: Similarly.
14517         * config/alpha/alpha.h: Similarly.
14518         * config/arc/arc.h: Similarly.
14519         * config/arm/aof.h: Similarly.
14520         * config/arm/aout.h: Similarly.
14521         * config/avr/avr.h: Similarly.
14522         * config/c4x/c4x.h: Similarly.
14523         * config/clipper/clipper.h: Similarly.
14524         * config/convex/convex.h: Similarly.
14525         * config/d30v/d30v.h: Similarly.
14526         * config/dsp16xx/dsp16xx.h: Similarly.
14527         * config/elxsi/elxsi.h: Similarly.
14528         * config/fr30/fr30.h: Similarly.
14529         * config/h8300/h8300.h: Similarly.
14530         * config/i370/i370.h: Similarly.
14531         * config/i386/i386.h: Similarly.
14532         * config/i860/i860.h: Similarly.
14533         * config/i960/i960.h: Similarly.
14534         * config/ia64/ia64.h: Similarly.
14535         * config/m32r/m32r.h: Similarly.
14536         * config/m68hc11/m68hc11.h: Similarly.
14537         * config/m68k/m68k.h: Similarly.
14538         * config/m88k/m88k.h: Similarly.
14539         * config/mcore/mcore.h: Similarly.
14540         * config/mips/mips.h: Similarly.
14541         * config/mn10200/mn10200.h: Similarly.
14542         * config/mn10300/mn10300.h: Similarly.
14543         * config/ns32k/ns32k.h: Similarly.
14544         * config/pa/pa.h: Similarly.
14545         * config/pdp11/pdp11.h: Similarly.
14546         * config/pj/pj.h: Similarly.
14547         * config/romp/romp.h: Similarly.
14548         * config/rs6000/rs6000.h: Similarly.
14549         * config/sh/sh.h: Similarly.
14550         * config/sparc/sparc.h: Similarly.
14551         * config/v850/v850.h: Similarly.
14552         * config/vax/vax.h: Similarly.
14553         * config/we32k/we32k.h: Similarly.
14554
14555 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
14556
14557         * doc/c-tree.texi: Document representation of attributes.
14558
14559 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14560
14561         * doc/tm.texi: Update some places for the rename of target to
14562         targetm.  Fix typo.
14563
14564 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14565
14566         * target.h (struct gcc_target): Add insert_attributes.
14567         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
14568         (TARGET_INITIALIZER): Update.
14569         * tree.c, tree.h (default_insert_attributes): New function.
14570         Update comments on other default functions to refer to targetm,
14571         not target.
14572         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
14573         TARGET_INSERT_ATTRIBUTES.
14574         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
14575         * c-common.c (decl_attributes): Use targetm.insert_attributes.
14576         Don't use PRAGMA_INSERT_ATTRIBUTES.
14577         * Makefile.in (c-common.o): Depend on $(TARGET_H).
14578         * c-decl.c (start_decl, start_function): Don't call
14579         SET_DEFAULT_DECL_ATTRIBUTES.
14580         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14581         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
14582         declare.
14583         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
14584         (c4x_check_attribute): Avoid modifying attribute list itself.
14585         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
14586         Make static.
14587         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
14588         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
14589         declare.
14590         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
14591         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
14592         Make static.
14593         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14594         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
14595         declare.
14596         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
14597         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
14598         Adjust parameters.  Make static.
14599
14600 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14601
14602         * c-common.c (decl_attributes): Only take a single attributes
14603         parameter.
14604         * c-common.h (decl_attributes): Update prototype.
14605         * c-decl.c (start_decl, start_function): Only take a single
14606         attributes parameter.  Update calls to decl_attributes.
14607         (finish_struct, finish_enum): Update calls to decl_attributes.
14608         (push_parm_decl): Expect unified list of attributes.  Update call
14609         to decl_attributes.
14610         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
14611         notype_nested_function, component_declarator,
14612         component_notype_declarator, label): Update calls to
14613         decl_attributes.
14614         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
14615         lists that are passed to push_parm_decl.
14616         * c-tree.h (start_function, start_decl): Update prototypes.
14617         * config/sh/sh-protos.h, config/sh/sh.c
14618         (sh_pragma_insert_attributes): Only take a single attributes
14619         parameter.
14620         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
14621         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
14622         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
14623         build_module_descriptor, generate_static_references,
14624         generate_strings, build_selector_translation_table,
14625         generate_descriptor_table, generate_protocols,
14626         generate_ivars_list, generate_dispatch_table,
14627         generate_protocol_list, generate_category,
14628         generate_shared_structures, really_start_method, add_objc_decls,
14629         generate_classref_translation_entry): Update calls to start_decl
14630         and start_function.
14631         (build_tmp_function_decl, start_method_def): Unify attribute lists
14632         that are passed to push_parm_decl.
14633
14634 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14635
14636         * final.c (no_asm_to_stream): New.
14637         (final_scan_insn): Use target structures for prologue ends
14638         and epilogue starts.
14639         * output.h (no_asm_to_stream): New.
14640         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
14641         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
14642         (TARGET_ASM_OUT): Update.
14643         * target.h (struct gcc_target): New members function_end_prologue
14644         and function_begin_epilogue.
14645         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
14646         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
14647         * config/alpha/alpha.c (output_end_prologue): Rename to
14648         alpha_output_function_end_prologue.  Use in target struct
14649         and make static.
14650         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
14651         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
14652         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
14653         ia64_output_function_end_prologue.  Use in target struct
14654         and make static.
14655         (ia64_function_prologue, ia64_funciton_epilogue): Rename
14656         mistyped prototypes.
14657         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
14658         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
14659         Delete.
14660         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
14661         an use in target struct, make static.
14662         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
14663         Delete.
14664
14665 2001-07-08  Richard Henderson  <rth@redhat.com>
14666
14667         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
14668
14669 2001-07-08  Richard Henderson  <rth@redhat.com>
14670
14671         * config/i386/i386.md: Remove constraints strings from define_split
14672         and define_peephole2 patterns.
14673         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
14674         (eh_return): Use them.
14675
14676 2001-07-08  Richard Henderson  <rth@redhat.com>
14677
14678         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
14679         Document MD_FALLBACK_FRAME_STATE_FOR.
14680
14681 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14682
14683         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
14684         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
14685         elimination.
14686         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
14687
14688 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
14689
14690         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
14691         of the label inside NAME as opposed to just the end of NAME.
14692
14693 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14694
14695         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
14696         * config/alpha/alpha.c (alpha_init_machine_status,
14697         alpha_mark_machine_status, alpha_free_machine_status): Delete.
14698         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
14699         (vms_valid_decl_attribute_p): Make static, conditionally compile.
14700         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
14701
14702 2001-07-06  Stan Shebs  <shebs@apple.com>
14703
14704         * target.h (targetm): Rename global from "target", so as not to
14705         conflict with local variables.
14706         * c-decl.c: Ditto.
14707         * c-typeck.c: Ditto.
14708         * final.c: Ditto.
14709         * tree.c: Ditto.
14710         * cp/decl.c: Ditto.
14711         * cp/decl2.c: Ditto.
14712         * cp/typeck.c: Ditto.
14713         * 1750a/1750a.c: Ditto.
14714         * a29k/a29k.c: Ditto.
14715         * arc/arc.c: Ditto.
14716         * arm/arm.c: Ditto.
14717         * avr/avr.c: Ditto.
14718         * clipper/clipper.c: Ditto.
14719         * convex/convex.c: Ditto.
14720         * d30v/d30v.c: Ditto.
14721         * dsp16xx/dsp16xx.c: Ditto.
14722         * elxsi/elxsi.c: Ditto.
14723         * fr30/fr30.c: Ditto.
14724         * h8300/h8300.c: Ditto.
14725         * i370/i370.c: Ditto.
14726         * i386/i386.c: Ditto.
14727         * i860/i860.c: Ditto.
14728         * i960/i960.c: Ditto.
14729         * ia64/ia64.c: Ditto.
14730         * m32r/m32r.c: Ditto.
14731         * m68hc11/m68hc11.c: Ditto.
14732         * m68k/m68k.c: Ditto.
14733         * m88k/m88k.c: Ditto.
14734         * mips/mips.c: Ditto.
14735         * ns32k/ns32k.c: Ditto.
14736         * pa/pa.c: Ditto.
14737         * pdp11/pdp11.c: Ditto.
14738         * romp/romp.c: Ditto.
14739         * rs6000/rs6000.c: Ditto.
14740         * sh/sh.c: Ditto.
14741         * sparc/sparc.c: Ditto.
14742         * vax/vax.c: Ditto.
14743         * we32k/we32k.c: Ditto.
14744         * doc/tm.texi: Update the manual to match.
14745
14746 2001-07-06  Richard Henderson  <rth@redhat.com>
14747
14748         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
14749         DWARF2_UNWIND_INFO not just whether it is defined.
14750
14751 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
14752
14753         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
14754         call to simplify_binary_operation returns a new pattern.
14755
14756 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
14757
14758         * glimits.h (__SHRT_MAX__): New.
14759         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
14760         (SHRT_MAX): Define in terms of __SHRT_MAX__.
14761
14762 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
14763
14764         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
14765         avoid warnings.
14766
14767 2001-07-06  Richard Henderson  <rth@redhat.com>
14768
14769         * bitmap.c (bitmap_release_memory): Move adjacent to the
14770         allocation functions.
14771         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
14772         the implementation.  Binary search for the set bit.
14773         (bitmap_union_of_diff): Allocate the temporary on the stack
14774         instead of using xmalloc.
14775
14776 2001-07-06  Richard Henderson  <rth@redhat.com>
14777
14778         * genrecog.c (validate_pattern): Warn for constraints in
14779         define_{expand,split,peephole2}.  Remove strict_low_part
14780         before looking up match_dup.
14781
14782 2001-07-06  DJ Delorie  <dj@redhat.com>
14783
14784         * doc/gcc.texi (Makefile): Rename to be a more general purpose
14785         chapter about various build hints and history.  Add section
14786         talking about the various types of native and cross builds.
14787
14788 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14789
14790         * Makefile.in (final.o): Depend on target.h.
14791         * final.c: Include target.h.
14792         (default_function_pro_epilogue): New.
14793         (final_start_function): Use target structure for function prologues.
14794         (final_end_function): Use target structure for function epilogues.
14795         * fold-const.c (real_hex_to_f): Constify s and p.
14796         * output.h (default_function_pro_epilogue): New.
14797         * real.h (real_hex_to_f): Update prototype.
14798         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
14799         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
14800         (TARGET_INITIALIZER): Update.
14801         * target.h (gcc_target): Add struct asm_out.
14802         * doc/tm.texi: Update.
14803
14804 config:
14805         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
14806         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
14807         in cpu/cpu.c, or rename old functions consistently.  Take
14808         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
14809         redundant macros and prototypes.  Make new functions static.
14810
14811         * 1750a/1750a.c: Similarly.
14812         * 1750a/1750a.h: Similarly.
14813         * a29k/a29k-protos.h: Similarly.
14814         * a29k/a29k.c: Similarly.
14815         * a29k/a29k.h: Similarly.
14816         * arc/arc-protos.h: Similarly.
14817         * arc/arc.c: Similarly.
14818         * arc/arc.h: Similarly.
14819         * arm/arm-protos.h: Similarly.
14820         * arm/arm.c: Similarly.
14821         * arm/arm.h: Similarly.
14822         * avr/avr-protos.h: Similarly.
14823         * avr/avr.c: Similarly.
14824         * avr/avr.h: Similarly.
14825         * clipper/clipper-protos.h: Similarly.
14826         * clipper/clipper.c: Similarly.
14827         * clipper/clipper.h: Similarly.
14828         * convex/convex.c: Similarly.
14829         * convex/convex.h: Similarly.
14830         * d30v/d30v-protos.h: Similarly.
14831         * d30v/d30v.c: Similarly.
14832         * d30v/d30v.h: Similarly.
14833         * d30v/d30v.md: Similarly.
14834         * dsp16xx/dsp16xx-protos.h: Similarly.
14835         * dsp16xx/dsp16xx.c: Similarly.
14836         * dsp16xx/dsp16xx.h: Similarly.
14837         * elxsi/elxsi.c: Similarly.
14838         * elxsi/elxsi.h: Similarly.
14839         * fr30/fr30.c: Similarly.
14840         * fr30/fr30.md: Similarly.
14841         * h8300/h8300-protos.h: Similarly.
14842         * h8300/h8300.c: Similarly.
14843         * h8300/h8300.h: Similarly.
14844         * i370/i370-protos.h: Similarly.
14845         * i370/i370.c: Similarly.
14846         * i370/i370.h: Similarly.
14847         * i386/i386.c: Similarly.
14848         * i386/osf1elf.h: Similarly.
14849         * i386/osfrose.h: Similarly.
14850         * i860/i860-protos.h: Similarly.
14851         * i860/i860.c: Similarly.
14852         * i860/i860.h: Similarly.
14853         * i960/i960-protos.h: Similarly.
14854         * i960/i960.c: Similarly.
14855         * i960/i960.h: Similarly.
14856         * ia64/ia64-protos.h: Similarly.
14857         * ia64/ia64.c: Similarly.
14858         * ia64/ia64.h: Similarly.
14859         * m32r/m32r-protos.h: Similarly.
14860         * m32r/m32r.c: Similarly.
14861         * m32r/m32r.h: Similarly.
14862         * m68hc11/m68hc11-protos.h: Similarly.
14863         * m68hc11/m68hc11.c: Similarly.
14864         * m68hc11/m68hc11.h: Similarly.
14865         * m68k/crds.h: Similarly.
14866         * m68k/dpx2.h: Similarly.
14867         * m68k/m68k-protos.h: Similarly.
14868         * m68k/m68k.c: Similarly.
14869         * m68k/m68k.h: Similarly.
14870         * m68k/news.h: Similarly.
14871         * m88k/m88k-protos.h: Similarly.
14872         * m88k/m88k.c: Similarly.
14873         * m88k/m88k.h: Similarly.
14874         * mips/mips-protos.h: Similarly.
14875         * mips/mips.c: Similarly.
14876         * mips/mips.h: Similarly.
14877         * ns32k/merlin.h: Similarly.
14878         * ns32k/ns32k.c: Similarly.
14879         * ns32k/ns32k.h: Similarly.
14880         * ns32k/tek6000.h: Similarly.
14881         * pa/pa-protos.h: Similarly.
14882         * pa/pa.c: Similarly.
14883         * pa/pa.h: Similarly.
14884         * pdp11/2bsd.h: Similarly.
14885         * pdp11/pdp11-protos.h: Similarly.
14886         * pdp11/pdp11.c: Similarly.
14887         * pdp11/pdp11.h: Similarly.
14888         * romp/romp-protos.h: Similarly.
14889         * romp/romp.c: Similarly.
14890         * romp/romp.h: Similarly.
14891         * rs6000/rs6000-protos.h: Similarly.
14892         * rs6000/rs6000.c: Similarly.
14893         * rs6000/rs6000.h: Similarly.
14894         * rs6000/sysv4.h: Similarly.
14895         * sh/sh-protos.h: Similarly.
14896         * sh/sh.c: Similarly.
14897         * sh/sh.h: Similarly.
14898         * sparc/sparc-protos.h: Similarly.
14899         * sparc/sparc.c: Similarly.
14900         * sparc/sparc.h: Similarly.
14901         * vax/vax.c: Similarly.
14902         * vax/vax.h: Similarly.
14903         * vax/vms.h: Similarly.
14904         * we32k/we32k.c: Similarly.
14905         * we32k/we32k.h: Similarly.
14906
14907 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
14908
14909         * basic-block.h (first_insn_after_basic_block_note): Declare.
14910         * flow.c (first_insn_after_basic_block_note): Define.  Moved
14911         from...
14912         * ssa.c (first_insn_after_basic_block_note): Remove.
14913         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
14914         necessary.
14915         (ssa_eliminate_dead_code): Properly update the CFG and PHI
14916         nodes when we find a dead conditional branch.  Insert BARRIERs
14917         after any blocks with no successors, but which do not have
14918         any BARRIERs.
14919
14920 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
14921
14922         * varray.c (varray_check_failed): Use internal_error.
14923
14924 2001-07-05  Andrew Haley  <aph@redhat.com>
14925
14926         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
14927         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
14928         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
14929
14930 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
14931
14932         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
14933         reference if the target constant is also a SYMBOL_REF.
14934
14935 2001-07-05  Eric Christopher  <echristo@redhat.com>
14936
14937         * config/mips/mips.h (MASK_MIPS3900): Remove.
14938         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
14939         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
14940         (TARGET_MIPS3900): Change to use mips_arch.
14941         (TARGET_MIPS4000): New.
14942         (TARGET_MIPS4100): New.
14943         (TARGET_MIPS4300): New.
14944         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
14945         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
14946         for -mipsX.
14947         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
14948         (ISA_HAS_BRANCHLIKELY): To here.
14949         (CC1_CPU_SPEC):  New.
14950         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
14951         (mips_arch_string): Declare.
14952         (mips_arch): Declare.
14953         (TARGET_OPTIONS): Add -march and -mtune.
14954
14955         * config/mips/mips.c (mips_arch_string): New.
14956         (mips_arch): New.
14957         (override_options): Handle -march for codegen and -mtune
14958         for scheduling. Use mips_arch. Move tx39 target default here.
14959         (mips_parse_cpu): Move error message to override_options.
14960
14961         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
14962
14963         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
14964
14965         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
14966         (MIPS Options): Ditto.  Change mcpu entry to historical text.
14967
14968 2001-07-05  H.J. Lu  (hjl@gnu.org)
14969
14970         * config/mips/mips.c (mips_parse_cpu): New function to parse
14971         -march=*/-mcpu=*.
14972
14973 2001-07-05  Jim Wilson  <wilson@redhat.com>
14974
14975         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
14976         * config/ia64/t-ia64: Likewise.
14977         (LIB1ASMFUNCS): Update comment.
14978
14979 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
14980
14981         * doc/install.texi (Install GCC: Binaries): Fix typo.
14982
14983 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14984
14985         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
14986         reference using the stack pointer, adjust it since we push Y
14987         temporarily.
14988         ("*ashrsi3"): Likewise.
14989         ("*lshrsi3"): Likewise.
14990
14991 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14992
14993         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
14994         when -fomit-frame-pointer is used.
14995
14996 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
14997
14998         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
14999         (try_redirect_by_replacing_jump): Reverse updating properly the
15000         count and frequency information.  Reverse removing cc0 setter.
15001         (forwarder_block_p): Reverse fixing for fallthru blocks.
15002
15003 2001-07-05  DJ Delorie  <dj@redhat.com>
15004
15005         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
15006         (translate_options): If the above is defined, use it to map
15007         given options to new options.
15008         * doc/tm.texi: Document it.
15009
15010 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
15011             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15012
15013         * doc/invoke.texi (Optimize Options): Document that -fgcse may
15014         cause programs using computed gotos to run more slowly.
15015
15016 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15017
15018         * doc/install.texi (Specific): Markup, spelling and typo fixes.
15019         Fixed sorting.
15020         Consistently require binutils 2.11.2, not prereleases.
15021         (Specific, decstation-*): Canonicalize as mips-dec-*.
15022         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
15023         always necessary.
15024         (Specific, m68k-altos): Removed reference to README.altos, deleted.
15025         (Specific, mips-*): Reword MIPS C compiler requirements.
15026         (Specific, powerpc*-*-*): New, mention --with-cpu once.
15027         (Specific, sunv5): Removed, obsolete.
15028
15029 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
15030
15031         * dwarf2out.c (output_loc_list): Use an all ones mask for
15032         .text asm output and don't rely on long long
15033         literals. Reformat some long lines.
15034
15035 2001-07-05  Andreas Jaeger  <aj@suse.de>
15036
15037         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
15038         section.
15039
15040 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15041
15042         * dwarf2out.c (dwarf2out_define): Update comment.
15043         (dwarf2out_undef): Ditto.
15044         (dwarf2out_start_source_file): Ditto.
15045         (dwarf2out_end_source_file): Ditto.
15046         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
15047         since we never call the start/end debug hook for the primary file.
15048
15049 2001-07-04  Kazu Hirata  <kazu@hxi.com>
15050
15051         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
15052         from shll.
15053
15054 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
15055
15056         * cppinit.c (remove_dup_dirs): Inform if a system include
15057         directory is being reordered.
15058         * doc/invoke.texi (Directory Options): GCC warns if you hide a
15059         system include.
15060         * doc/cpp.texi (Search Paths): Likewise.
15061         * doc/gcc.texi (Interoperation): Remove information about
15062         -I/usr/include.
15063
15064 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
15065
15066         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
15067         (VARRAY_TOP_CHAR_PTR): Likewise.
15068
15069 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15070
15071         * gcc.c (process_command): Don't assign elements of a const char*.
15072
15073 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15074
15075         * emit-rtl.c (change_address): Don't abort if invalid address while
15076         reload is in progress.
15077
15078 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15079
15080         * c-lex.c (cb_file_change): Pass line number to
15081         debug_start_source_file.
15082         (cb_undefine): Pass correct line number to debug_undef.
15083
15084         * toplev.c (debug_start_source_file): Add line number to
15085         parameters. Pass it along to dwarf2out_start_source_file.
15086         (decode_g_option): Stop resetting debug level back to normal when
15087         we change debug formats, unless the current level is
15088         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
15089         3).
15090
15091         * toplev.h (debug_start_source_file): Add line number to
15092         parameters.
15093
15094         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
15095         parameters.
15096
15097         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
15098         parameters.
15099         Output debug_macinfo data for starting file if requested.
15100         (dwarf2out_end_source_file): Output debug_macinfo data for ending
15101         file if requested.
15102         (dwarf2out_define): Output debug_macinfo data for defining a macro
15103         if requested.
15104         (dwarf2out_undef): Output debug_macinfo data for undefining a
15105         macro if requested.
15106         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
15107         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
15108         (macinfo_section_label): New. DWARF2 macro info section label.
15109         (dwarf2out_init): If we want macro info, output the start label
15110         for the section.
15111         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
15112         attribute to the compilation unit die pointing to the macro info.
15113
15114 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15115
15116         * dwarf2out.c (new_loc_list): Move to inside #ifdef
15117         DWARF2_DEBUGGING_INFO.
15118         (add_loc_descr_to_loc_list): Ditto.
15119         (output_loc_list): Ditto.
15120         Also, fix thinko in curr not being initialized.
15121         (gen_internal_sym): Ditto.
15122
15123 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15124
15125         * emit-rtl.c (replace_equiv_address): New function.
15126         * expr.h (replace_equiv_address): New declaration.
15127         * explow.c (validize_mem): Call it instead of change_address and
15128         also call if -fforce-addr and address is constant.
15129         * expr.c: Replace more calls to change_address with adjust_address
15130         and/or replace_equiv_address or to validize_mem.
15131         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
15132         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
15133         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15134         * config/i370/i370.md, config/i860/i860.md: Likewise.
15135         * config/i960/i960.md, config/mips/mips.c: Likewise.
15136         * config/mips/mips.md, config/pa/pa.md: Likewise.
15137         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
15138         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
15139
15140 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15141
15142         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
15143
15144         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
15145         function.
15146
15147 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
15148
15149         * doc/include: New directory.
15150         * doc/fdl.texi: Move to doc/include/fdl.texi.
15151         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
15152         * doc/include/funding.texi, doc/include/gpl.texi: New files.
15153         * doc/gcc.texi: Use funding.texi and gpl.texi.
15154         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
15155         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
15156         Update dependencies and use -I $(docdir)/include.
15157
15158 2001-07-04  Anthony Green  <green@redhat.com>
15159
15160         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
15161
15162 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15163
15164         * doc/install.texi (sparc64-*-*): Remove garbage.
15165
15166 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
15167
15168         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
15169         Fix typo in last change to use adjust_address.
15170
15171 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15172
15173         * doc/install.texi (Specific): Update information for *-*-solaris*.
15174
15175 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15176
15177         * explow.c (plus_constant_wide): Reinitialize Y for restart.
15178
15179 2001-07-03  Stan Shebs  <shebs@apple.com>
15180
15181         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
15182         case for flag_no_mach_text_sections.
15183         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
15184         * config/darwin.c (flag_no_mach_text_sections): Remove.
15185         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
15186
15187 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15188
15189         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
15190         and avoid checking for constant as first operand.
15191         * recog.c (find_constant_term_loc): No longer static.
15192         (adj_offettable_operand): Delete.
15193         * rtl.h (adj_offsettable_operand): Delete declaration.
15194         (find_constant_term): Add declaration.
15195         * caller-save.c: Replace calls to adj_offsettable_operand with calls
15196         to adjust_address.
15197         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
15198         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
15199         * config/i386/i386.c, config/i386/i386.md: Likewise.
15200         * config/i860/i860.c, config/i960/i960.c: Likewise.
15201         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
15202         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
15203         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
15204         * config/mips/mips.c, config/mips/mips.md: Likewise.
15205         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
15206         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
15207         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
15208         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
15209         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
15210         * config/ns32k/ns32k.md: Likewise.
15211
15212 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
15213
15214         * rtl.c (copy_rtx): Handle 'T' format letter.
15215         * gensupport.c (collect_insn_data): Likewise.
15216         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
15217
15218 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
15219
15220         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
15221         -B option.  Use 'dir' not 'foo' as example directory name.
15222
15223 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15224
15225         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15226         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
15227
15228 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
15229
15230         * doc/cppinternals.texi: Improve formatting and logical markup.
15231
15232 2001-07-03  Andreas Jaeger  <aj@suse.de>
15233
15234         * Makefile.in (insn-recog.o): Add dependency on reload.h.
15235
15236         * genrecog.c (write_header): Include reload.h for prototypes in
15237         insn-recog.c.
15238
15239 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
15240
15241 config:
15242         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
15243         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
15244         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
15245         i386_pe_valid_type_attribute_p): Add.
15246         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
15247         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
15248
15249 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15250
15251         * explow.c (plus_constant_wide, case LO_SUM): New case.
15252         (plus_constant_for_output_wide): Delete.
15253         * rtl.h (plus_constant_for_output): Delete.
15254         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
15255         instead of plus_constant_for_output.
15256         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
15257         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
15258         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
15259         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
15260         * config/sparc/sparc.md: Likewise.
15261         Convert some change_address calls to adjust_address.
15262
15263 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
15264
15265         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
15266         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
15267         documentation of -std and -Wwrite-strings.
15268
15269 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
15270
15271         * cse.c (canon_hash): Don't register registers in very small
15272         register classes, as extending their lifetime might cause
15273         reload to fail.
15274
15275 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
15276
15277         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
15278
15279         * flow.c (forwarder_block_p): Fix for fallthru blocks.
15280         (try_redirect_by_replacing_jump): Update properly the count
15281         and frequency information.
15282
15283 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
15284
15285         * toplev.c (dump_file_index): Move SSA dumps just after first
15286         jump dump.
15287         (dump_file): Corresponding changes.
15288         (rest_of_compilation): Move SSA path to just after the first
15289         jump pass.
15290         * doc/gcc.texi (Passes): Update due to movement of SSA path.
15291         * doc/invoke.texi: Update dump file #s as they were completely
15292         out of date with reality.
15293
15294 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
15295
15296         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
15297
15298         * expr.c (emit_move_insn_1): Deal with non-default
15299         STACK_PUSH_CODE.
15300
15301         * expr.c (emit_single_push_insn): Fix warning.
15302
15303 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
15304
15305         * expr.c (emit_move_insn_1): Avoid modifying
15306         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
15307
15308 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15309
15310         * emit-rtl.c (adjust_address): New function.
15311         * expr.h (adjust_address): Add declaration.
15312         * builtins.c: Replace some calls to change_address with calls to it
15313         or to validize_mem.
15314         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
15315         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
15316         * config/arm/arm.c, config/convex/convex.c: Likewise.
15317         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15318         * config/i386/i386.c, config/i386/i386.md: Likewise.
15319         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
15320         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
15321         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
15322         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
15323         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
15324
15325 2001-07-02  Jim Wilson  <wilson@redhat.com>
15326
15327         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
15328
15329 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
15330
15331         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
15332         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
15333
15334 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
15335
15336         * cppinit.c (lang_defaults): New table.
15337         (set_lang): Just read from lang_defaults into the live options
15338         structure.
15339
15340 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
15341
15342         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
15343         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
15344         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
15345
15346 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15347
15348         * doc/install.texi: Various spelling and markup fixes.
15349         (Installing GCC): Component specific installation instructions are
15350         gone.
15351         Fix reference.
15352         Warn about removing old install dir in the presence of shared libs.
15353         (Configuration): Invoke with options target to match configure
15354         --help.
15355         Consistently refer to gas, gld pathnames.
15356         Invert --enable-multilib documentation.
15357         Remove references to old compiler versions.
15358
15359 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15360
15361         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
15362
15363 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15364
15365         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
15366         section.
15367         (Specific, mips*-sgi-irix5): Note IDO download.
15368         Reworded MIPS C hints.
15369         Use GNU as instead of GAS.
15370         Markup fixes.
15371         Removed SGI Freeware reference, IRIX 6 only.
15372         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
15373         Note N64 library requirement/workaround.
15374         Update O32 hints.
15375         Complete list of structure passing bug victims.
15376
15377 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15378
15379         * doc/install.texi: Remove CVS Id.
15380
15381 2001-07-02  Andreas Jaeger  <aj@suse.de>
15382
15383         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
15384         (find_inherently_necessary): Remove unused variable.
15385
15386 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
15387
15388         * c-common.h (TDI_inlined): New ast dump phase.
15389         (dump_flag_name): New function.
15390         * c-dump.c (dump_files): Add inlined phase.
15391         (dump_flag_name): Define.
15392         * doc/invoke.texi (-fdump-ast-inlined): Document.
15393
15394 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15395
15396         * stor-layout.c (layout_decl): Revert change to handling of alignment
15397         in packed types.
15398
15399 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15400
15401         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
15402         for FIELD_DECL.
15403
15404 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
15405
15406         * doc/tm.texi (FUNCTION_ARG): Document that the last call
15407         is special.
15408
15409 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
15410
15411         * tlink.c (recompile_files): Remove COMPILER_PATH and
15412         LIBRARY_PATH from the environment.
15413
15414 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
15415
15416         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
15417         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
15418         enumerators.
15419         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
15420
15421         * c-parse.in (OBJC_STRING): Kill.
15422         (objc_string): Decompose to [objc_string] '@' STRING.
15423         (reswords): Take the leading '@' off all the Objective C keywords.
15424         (objc_rid_sans_at): Kill.
15425         (init_reswords): Don't initialize it.
15426         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
15427         (_yylex): Kill reconsider label.  Look ahead one token after
15428         an '@'; if we get an identifier, check whether it's an
15429         Objective C @-keyword.  If so, return the keyword.  Otherwise,
15430         put back the token and return the '@' as a terminal.
15431
15432         * cpplib.c (lex_macro_node): Remove unnecessary check for
15433         leading '@' on identifier.  Clarify control flow and commentary.
15434
15435 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15436
15437         * cse.c (new_label_ref): Variable deleted.
15438         (insert): Remove set of new_label_ref.
15439         (check_for_label_ref): New function.
15440         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
15441
15442 See ChangeLog.5 for earlier changes.