OSDN Git Service

* configure.in: Arrange to include defaults.h in [ht]config.h/tm.h.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2
3         * configure.in: Arrange to include defaults.h in [ht]config.h/tm.h.
4
5         * Makefile.in: Remove all dependencies on defaults.h.
6         * builtins.c: Don't include defaults.h.
7         * c-common.c: Likewise.
8         * c-decl.c: Likewise.
9         * c-pragma.c: Likewise.
10         * c-typeck.c: Likewise.
11         * combine.c: Likewise.
12         * i386.c: Likewise.
13         * frame-ia64.c: Likewise.
14         * cppexp.c: Likewise.
15         * crtstuff.c: Likewise.
16         * dbxout.c: Likewise.
17         * dwarf2out.c: Likewise.
18         * dwarfout.c: Likewise.
19         * emit-rtl.c: Likewise.
20         * except.c: Likewise.
21         * expr.c: Likewise.
22         * final.c: Likewise.
23         * frame-dwarf2.c: Likewise.
24         * libgcc2.c: Likewise.
25         * optabs.c: Likewise.
26         * profile.c: Likewise.
27         * sdbout.c: Likewise.
28         * toplev.c: Likewise.
29         * tradcif.y: Likewise.
30         * tree.c: Likewise.
31         * varasm.c: Likewise.
32
33 2001-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
34
35         * builtins.c (expand_builtin_fputs): Use size_one_node when
36         transforming into fwrite.
37
38 2001-01-27  Joseph S. Myers  <jsm28@cam.ac.uk>
39
40         * extend.texi (Attribute Syntax): New section.
41
42 2001-01-27  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
43
44         * fixproto: Correctly install synthesised unistd.h and stdlib.h when
45         they didn't need fixing.
46
47 2001-01-27  Janis Johnson <janis@us.ibm.com>
48
49         * config.gcc (i[34567]86-sequent-{ptx4*,sysv4*}): Use usegas.h
50         if appropriate.
51         * config/ptx4.h: Several fixes to build on DYNIX/ptx v4.[456], and
52         to remove macro definitions that are duplicated from elfos.h.
53
54 2001-01-27  Richard Henderson  <rth@redhat.com>
55
56         * config/i386/sco5gas.h: Move ...
57         * config/usegas.h: ... here.
58         * config.gcc (i[34567]86-*-sco3.2v5) [tm_file]: Update.
59
60 2001-01-27  Jakub Jelinek  <jakub@redhat.com>
61
62         * c-typeck.c (struct constructor_stack): Add range_stack member.
63         (really_start_incremental_init): Clear it.
64         (push_init_level): Save constructor_range_stack and clear it if
65         pushing explicit braces.
66         (pop_init_level): abort if constructor_range_stack is non-zero at
67         explicit closing brace.  Restore saved constructor_range_stack if
68         not implicit.
69
70 2001-01-27  Alexandre Oliva  <aoliva@redhat.com>
71
72         * expr.c (emit_move_insn): Add REG_EQUAL note when constant loaded
73         into register was forced into memory.
74
75 2001-01-27  Alexandre Oliva  <aoliva@redhat.com>
76
77         * Makefile.in: Remove uses of + before $(MAKE).
78
79 2001-01-26  Richard Henderson  <rth@redhat.com>
80
81         * stmt.c (cost_table): Remove.
82         (COST_TABLE, cost_table_initialized): New.
83         (estimate_case_costs): Use the later instead of the former.
84         (balance_case_nodes): Likewise.
85
86 2001-01-26  Richard Henderson  <rth@redhat.com>
87
88         * alias.c (objects_must_conflict_p): Read-only slots may not
89         conflict despite having the same type.
90
91 2001-01-27  Michael Hayes  <mhayes@redhat.com>
92
93         * loop.c (loop_giv_reduce_benefit): Copy mode size into
94         int variable.
95         (check_ext_dependant_givs): Initialise u_start_val and
96         u_end_val.
97         (load_mems): Make last_max_reg unsigned.
98         (try_swap_copy_prop): Use INSN_P and initialise set.
99
100 Fri Jan 26 23:22:58 2001  Denis Chertykov  <denisc@overta.ru>
101
102         * README.AVR : Removed.
103
104 Fri Jan 26 11:37:26 2001  Jeffrey A Law  (law@cygnus.com)
105
106         * pa-64.h (text_section): Remove declaration.
107
108         * pa.md (return_internal): Remove mode on PIC register use.
109
110 2001-01-25  lars brinkhoff  <lars@nocrew.org>
111
112         * tm.texi (DATA_ALIGNMENT, LOCAL_ALIGNMENT, ASM_OPEN_PAREN,
113         ASM_CLOSE_PAREN): fix typos.
114
115 2001-01-25  Mark Mitchell  <mark@codesourcery.com>
116
117         * acconfig.h: Define `const' to the empty string if neither
118         __STDC__ nor __cplusplus is defined.
119         * config.in: Regenerated.
120
121 2001-01-25  David Edelsohn  <edelsohn@gnu.org>
122
123         * config.gcc (rs6000-ibm-aix[5-9]*): Change to aix51.h.
124         * collect2.c (main): Delete importf.  Add ".obj" file extension.
125         (GCC_CHECK_HDR): Handle AIX V5 new magic number.
126         (aix_std_libs): Add additional AIX libraries to skip.
127         * config/rs6000/aix.h (MY_ISCOFF): Add AIX V5 new magic number.
128         * config/rs6000/aix51.h: New file.
129
130 2001-01-25  Michael Hayes  <mhayes@redhat.com>
131
132         * loop.c (loop_call_insn_emit_before, loop_call_insn_hoist): New.
133         (loop_insn_emit_before): No longer static.
134         (move_movables): Replace emit_insn_after with loop_insn_emit_after.
135         (loop_givs_rescan, load_mems): Likewise.
136         (check_dbra_loop): Replace emit_insn_before with loop_insn_emit_before.
137         (maybe_eliminate_biv_1):
138         (move_movables): Replace emit_call_insn_before with
139         loop_call_insn_hoist.
140         * loop.h (loop_insn_emit_before): Add.
141         * unroll.c (copy_loop_body): Replace emit_insn_before with 
142         loop_insn_emit_before.
143
144 2001-01-25  Neil Booth  <neil@daikokuya.demon.co.uk>
145
146         * diagnostic.c (fatal): Request preprocessed source.
147
148 Thu Jan 25 02:01:16 2001  J"orn Rennecke <amylaar@redhat.com>
149
150         * c-decl.c (duplicate_decls): If different_binding_level is nonzero,
151         olddecl has argument types and newdecl has none, use the argument
152         types from olddecl.
153
154 2001-01-24  Ulrich Drepper  <drepper@redhat.com>
155
156         * dwarf2out.c (prefix_of): New function.  Determine longest common
157         prefix of the two arguments.  The units are whole path components.
158         (output_file_names): When adding a new directory find the one entry
159         with the longest common prefix already in the list.  Artificially
160         generate entry if there is none for this prefix.
161         Fix test to check whether the zeroth directory entry is used.
162
163 Wed Jan 24 23:51:55 2001  J"orn Rennecke <amylaar@redhat.com>
164
165         * reload1.c (reload_reg_free_for_value_p): New parameter start_regno.
166         Changed all callers.  Take it into account when deciding if a
167         previously loaded value matches.
168
169 2001-01-24  Richard Henderson  <rth@redhat.com>
170
171         * reload.c (find_reloads_subreg_address): Fail the substitution
172         if the resulting address is insufficiently aligned.
173
174 2001-01-24  DJ Delorie  <dj@redhat.com>
175
176         * combine.c (combine_simplify_rtx): If the modes are all VOIDmode,
177         check the original operand's mode also.
178         * simplify-rtx.c (simplify_ternary_operation): Ditto.
179
180 2001-01-24  Joseph S. Myers  <jsm28@cam.ac.uk>
181
182         * c-parse.in (cast_expr): Move compound literals from here ...
183         (primary): ... to here.  Use standard terminology "compound
184         literal" instead of "constructor expression".
185
186 2001-01-24  Joseph S. Myers  <jsm28@cam.ac.uk>
187
188         * gcc.1, cpp.1: Regenerate.
189
190 2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
191
192         * calls.c (emit_library_call_value_1): Memory slot for
193         pass-by-reference argument should have the mode of the argument,
194         not of the pointer to it.
195
196 2001-01-24  Tom Tromey  <tromey@redhat.com>
197
198         * gcc.texi (G++ and GCC): Mention gcj manual.
199         (Standards): Link to section of manual mentioning gcj/Java
200         compatibility.
201
202 2001-01-24  Jakub Jelinek  <jakub@redhat.com>
203
204         * cppfiles.c (_cpp_read_file): Add to dependencies if requested.
205         * cppinit.c (cpp_start_read): Remove deps_add_dep call.
206         * tradcpp.c (main): Add -imacros or -include'd dependencies
207         for -M*.
208         * cpp.texi (-M, -MM): Document -M -include behaviour.
209
210 2001-01-24  Roger Collins <roger@ProProject.com>
211
212         * config/i386/xm-i386.h: Make __i386__ a boolean macro.
213
214 2001-01-24  Will Cohen  <wcohen@redhat.com>
215
216         * config/mips/abi64.h (RETURN_IN_MEMORY): Always take into account
217         whether registers are 32 bits or 64 bits in size.
218
219 2001-01-24  Ben Elliston  <bje@redhat.com>
220
221         * config/m32r/m32r.h (PREDICATE_CODES): Remove m32r_not_same_reg.
222
223 2001-01-24  Richard Henderson  <rth@redhat.com>
224
225         * config/alpha/alpha.md (builtin_longjmp_internal): New.
226         (builtin_longjmp): Use it instead of emit_indirect_jump.
227
228 2001-01-23  John David Anglin  <dave@hiauly1.hia.nrc.ca>
229
230         * bb-reorder.c (make_reorder_chain_1): Handle case where
231         jump edge goes to the same block as the fallthru edge.
232
233 2001-01-23  Jim Wilson  <wilson@redhat.com>
234
235         * dwarf2out.c (dwarf2out_line): Make last_file_num be unsigned.
236         * frame.h (__ia64_personality_v1): Add prototype.
237         * libgcc2.c (ia64_throw_helper): Change personality declaration to
238         prototype form.  Add void * cast to first argument to personality
239         call.
240         * real.c (e113toe): Surround with INTEL_EXTENDED_IEEE_FORMAT ifdefs.
241         (asctoe113): Likewise.
242         * config/ia64/frame-ia64.c: Include eh-common.h.
243         * config/ia64/ia64-protos.h (sdata_section, sbbs_section): Add
244         prototypes.
245         * config/ia64/ia64.c (emit_insn_group_barriers): Add ATTRIBUTE_UNUSED
246         to dump parameter.
247         (itanium_split_issue): Add prototype.
248         (gen_nop_type): Ifdef out.
249         (find_best_packet): Initialize best_packet.
250         (ia64_encode_section_info): New local string.  Use for ggc_alloc_string
251         result.
252         * config/ia64/ia64.h (ASM_OUTPUT_LONG_DOUBLE): Use 0L not 0.
253         * config/ia64/ia64.md (bsp_value): Add explicit stop bit at start.
254         (flushrs): Add explicit stop bit at end.
255         * config/ia64/lib1funcs.asm (__ia64_restore_stack_nonlocal): Change
256         trailing \ to >.
257
258 2001-01-23  Chris Demetriou  <cgd@broadcom.com>
259
260         * libgcc-std.ver (GCC_3.0): Add __terminate_func_set to list
261         of EH symbols.
262         * libgcc2.c (__terminate_func): Make variable static.
263         (__terminate_set_func): New function to set __terminate_func.
264         * libgcc2.h (__terminate_func_ptr): New typedef.
265         (__terminate_set_func): New function.
266
267 2001-01-23  Richard Henderson  <rth@redhat.com>
268
269         * flow.c (init_propagate_block_info): Don't consider unchanging
270         memories for dead frame store elimination.
271
272 2001-01-23  Richard Henderson  <rth@redhat.com>
273
274         * varasm.c (UNIQUE_SECTION): Move default implementation ...
275         * defaults.h: ... here.
276
277 2001-01-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
278
279         * c4x.h (TARGET_LOAD_DIRECT_MEMS): Define.
280
281 2001-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
282
283         * c-lex.c (lex_charconst): Fix typo: s/p/str.
284
285 2001-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
286
287         * rs6000.h (rs6000_return_addr): Move prototype from here...
288         * rs6000-protos.h (rs6000_return_addr): ...to here.
289         (rs6000_init_expanders): Delete prototype.
290
291 2001-01-23  Nick Clifton  <nickc@redhat.com>
292
293         * invoke.texi: Replace , with \, inside @gccoptlist macros.
294         (Spec Files): Document %B and %j and %. and %v3 and %M and
295         %{S*&T} spec switches.
296
297 2001-01-24  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
298
299         * c4x.c (c4x_r11_set_p): Calculate rtx code correctly.
300
301 2001-01-23  Chris Demetriou  <cgd@sibyte.com>
302             Neil Booth  <neil@daikokuya.demon.co.uk>
303
304         * cpperror.c: Merge handlers of PEDWARN and WARNING.
305         Have -Werror make pedantic warnings errors, like the
306         rest of GCC.
307
308 2001-01-23  Phil Edwards  <pme@sources.redhat.com>
309
310         * c-tree.texi (IDENTIFIER_LENGTH):  Fix typo.
311
312 2001-01-23  Jakub Jelinek  <jakub@redhat.com>
313
314         * integrate.h (struct inline_remap): Add compare_src, compare_mode.
315         * integrate.c (expand_inline_function): Initialize them.
316         (subst_constants): If changing COMPARE so that both its arguments
317         will be VOIDmode and the comparison mode will be lost, note
318         compare_mode.  Use the recorded compare_mode to optimize
319         IF_THEN_ELSE.
320
321 2001-01-23  Jason Merrill  <jason@redhat.com>
322
323         * dwarf2out.c (new_die): Use xcalloc.
324         (output_die): Abort rather than emit a local reference to offset 0.
325
326 2001-01-17  Andrew Haley  <aph@redhat.com>
327
328         * libgcc2.c (get_reg_addr): Don't abort if we haven't got a copy
329         of a saved register; return NULL instead.
330         (copy_reg): Take a pointer to a source register rather than a
331         frame_state.
332         (next_stack_level): Remember the address in the stack frame of all
333         saved registers.
334         Use the saved register pointer array as the source of the CFA.
335         (throw_helper): Rewrite.  Unwind once rather than twice and keep
336         track of saved registers as we go.
337
338 2001-01-23  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
339
340         * c4x-protos.h (c4x_legitimize_reload_address): Remove.
341         * c4x.c (c4x_legitimize_reload_address): Remove.
342         * c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Rewrite to generate correct
343         reload address for ldp(k) insn.
344
345 Mon Jan 22 20:53:47 2001  Jeffrey A Law  (law@cygnus.com)
346
347         * pa.md (return_internal): Add a USE of the PIC register to ensure
348         it is restored after each call.
349         (return expander): Corresponding changes.
350
351 2001-01-22  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
352
353         * rs6000.h (INIT_EXPANDERS): Delete.
354         (RETURN_ADDR_RTX): Call rs6000_return_addr().
355         * rs6000.c (rs6000_override_options): Call *_machine_status from
356         here...
357         (rs6000_init_expanders): ...instead of here. Delete.
358         (rs6000_mark_machine_status): New function.
359         (rs6000_init_machine_status): Use xcalloc.
360         (rs6000_return_addr): Generate RTX for the return address.
361         (rs6000_ra_ever_killed): New, check if LR was ever destroyed.
362         (rs6000_stack_info): Use it.
363
364 2001-01-22  Thomas Pfaff  <tpfaff@gmx.net>
365
366         * gthr-win32.h: Include errno.h to get a declaration for
367         EINVAL and _mingw.h if the target is mingw32.
368
369 2001-01-22  Andres Felipe Vargas <avargas@teletulua.com.co>
370
371         * cpp.texi: Correct typos.
372
373 Mon Jan 22 13:59:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
374
375         * explow.c (probe_stack_range): Ensure value passed to
376         stack_check_libfunc is ptr_mode, not Pmode.
377
378 Mon Jan 22 16:53:06 2001  J"orn Rennecke <amylaar@redhat.com>
379
380         * recog.c (validate_replace_rtx_1): In ZERO_EXTEND / SIGN_EXTEND
381         case, don't use operand_subword to calculate a SUBREG that is
382         wider than a word.
383
384         * rtl.texi: Comparisons yield 0 or STORE_FLAG_VALUE.
385
386 2001-01-22 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
387
388         * c4x.c (c4x_valid_rptb_p, c4x_label_ref_used_p): New functions.
389         (c4x_rptb_insert): Call c4x_valid_rptb_p to check if repeat block is
390         valid.  If not replace it by equivalent insns.
391
392 2001-01-22 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
393
394         * c4x.c (c4x_check_legit_addr): Only check CONST.  Not if CONST
395         contains SYMBOL_REF, LABEL_REF and CONST_INT.
396         (c4x_U_constraint, symbolic_address_operand): Likewise.
397         (c4x_immed_float_constant): Do not check if CONST_DOUBLE is in
398         memory.
399         (c4x_r11_set_p, c4x_check_laj_p): New functions.
400         * c4x-protos.h (c4x_check_laj_p): Add prototype.
401         * c4x.md (in_annul_slot_3): Do not allow auto-increment in last
402         anulling slot because of silicon bug.
403         (laj, lajv): Call c4x_check_laj_p to check for silicon bug.
404
405 2001-01-22  Alan Modra <alan@linuxcare.com.au>
406
407         * cppexp.c (parse_charconst):  Change `mask' type to agree
408         with parse_escape.
409
410 2001-01-21  Richard Henderson  <rth@redhat.com>
411
412         * config/i386/i386.c (ix86_asm_file_end): Disable putting
413         pic_label_name in a linkonce section.
414
415 2001-01-17  Philipp Thomas  <pthomas@suse.de>
416
417         * aclocal.m4 (AM_WITH_NLS): Add -lintl to LIBS if gettext was
418         found in libintl.
419         * configure: Regenerate.
420
421 Sun Jan 21 02:38:56 2001  J"orn Rennecke <amylaar@redhat.com>
422
423         * expmed.c (synth_mult, expand_mult_highpart, expand_divmod): Guard
424         uses of shift_cost, shiftadd_cost and shiftsub_cost with bound checks.
425
426 Sun Jan 21 09:44:17 2001  Denis Chertykov  <denisc@overta.ru>
427
428         * config/avr/avr.c (ret_cond_branch): New argument (reverse) added.
429         If REVERSE nonzero then condition code in X must be reversed.
430         (encode_section_info): Optimise if/else.
431         (avr_function_value): Fix formatting.
432
433         * config/avr/avr.md (branch): Call to ret_cond_branch changed.
434         (difficult_branch): Likewise.
435         (rvbranch): Likewise.
436         (difficult_rvbranch): Likewise.
437
438         * config/avr/avr-protos.h (ret_cond_branch): Prototype changed.
439
440         * config/avr/libgcc.S: Fix comment.
441
442 2001-01-20  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
443
444         * sdbout.c (PUT_SDB_DEF): Fix after last bogus change.
445
446 2001-01-20  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
447
448         * cppinit.c (INO_T_EQ): Don't use #elif, fix formatting.
449
450 2001-01-20  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
451
452         * aclocal.m4 (gcc_AC_FUNC_STRSTR): New macro.
453         * configure.in (gcc_AC_FUNC_STRSTR): Add invokation.
454         * configure, config.in: Regenerate.
455         * Makefile.in (STRSTR, HOST_STRSTR, USE_HOST_STRSTR): New variables.
456         (LIBDEPS, HOST_LIBDEPS, LIBS, HOST_LIBS): Add strstr handling.
457         (strstr.o, $(HOST_PREFIX_1)strstr.o): New rules.
458         (doprint.o): New rule.
459
460 2001-01-20  Joseph S. Myers  <jsm28@cam.ac.uk>
461
462         * c-typeck.c (digest_init): Handle boolean types as scalars.
463
464 Sat Jan 20 12:46:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
465
466         * stmt.c (expand_return): Don't return anything if size is zero.
467         Delete redundant assignment to BYTES.
468         * expr.c (move_block_from_reg): Do nothing if NREGS is zero.
469
470 2001-01-20  Marek Michalkiewicz  <marekm@linux.org.pl>
471
472         * config/avr/avr.h (INIT_TARGET_OPTABS): Remove most of it, was
473         the same as the default library function names.
474         * config/avr/avr.md: Document special characters after '%'.
475         (mulqi3, mulhi3, mulsi3): Call libgcc.S functions ourselves,
476         knowing which of the call-used registers are really clobbered.
477         (divmodqi4, udivmodqi4, divmodhi4, udivmodhi4, divmodsi4, udivmodsi4):
478         New.  Both quotient and remainder from one libgcc.S call.
479         * config/avr/libgcc.S: Optimize mul/divmod for the new insns above,
480         clobber as few registers as possible.
481         * config/avr/t-avr (LIB1ASMFUNCS): Adjust for the above changes.
482
483 2001-01-20  Neil Booth  <neil@daikokuya.demon.co.uk>
484
485         * cppmacro.c (funlike_invocation_p): Don't move back up to the
486         context of the top of the stack.
487
488 2001-01-20  Jakub Jelinek  <jakub@redhat.com>
489
490         * function.c (fixup_var_refs): Move CALL_PLACEHOLDER handling...
491         (fixup_var_refs_insns): ...here.
492
493 2001-01-20  Zack Weinberg  <zack@wolery.stanford.edu>
494
495         * function.c (fixup_var_refs_insns): Break up into
496         fixup_var_refs_insn [body of loop], fixup_var_refs_insns
497         [loop over entire insn list], and fixup_var_refs_insns_with_hash
498         [loop over hash table entries].
499         (fixup_var_refs): Adjust calls to fixup_var_refs_insns and/or
500         fixup_var_refs_insns_with_hash, to match above changes.
501
502 2001-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
503
504         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Add MAKEOVERRIDES variable.
505         (libgcc.a): Likewise.
506         (stmp-multilib): Likewise.
507         (STAGE2_FLAGS_TO_PASS): Likewise.
508
509 2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
510
511         * config/sh/sh.c (prepare_move_operands) [PIC]: Use operands[0] as
512         temporary if no_new_pseudos.
513
514 2001-01-19  Neil Booth  <neil@daikokuya.demon.co.uk>
515
516         * cppinternals.texi: Update.
517
518 2001-01-19  Richard Earnshaw  <rearnsha@arm.com>
519
520         * arm.c (arm_init_builtins): Re-enable builtins.
521
522 Fri Jan 19 13:02:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
523
524         * rtl.texi (SET, CLOBBER): Document PARALLEL as SET_DEST possibility.
525         * flow.c (mark_set_1, case PARALLEL): Don't require BLKmode, allow
526         element to be null, and always expect an EXPR_LIST.
527         * rtlanal.c (reg_overlap_mentioned_p, note_stores): Likewise.
528         * sched-deps.c (sched_analyze_1): Likewise.
529         * sched-rgn.c (check_live_1, update_live_1): Likewise.
530
531         * regclass.c (max_set_parallel): New variable.
532         (reg_scan): Take it into account in computation of max_parallel.
533         (reg_scan_mark_refs, case SET): Compute it.
534
535         * alias.c (rtx_equal_for_memref_p, case ADDRESSOF): Don't assume
536         args are REG.
537         * expr.c (store_constructor): Don't look at MEM_ALIAS_SET unless MEM.
538         * function.c (assign_parms): Use INTVAL for a CONST_INT.
539
540 2001-01-19  Jason Merrill  <jason@redhat.com>
541
542         * dwarf2out.c (gen_subprogram_die): Don't reuse the in-class decl
543         for the abstract instance of an inline function.
544
545 Fri Jan 19 14:31:35 2001  Alexandre Oliva  <aoliva@redhat.com>
546                           J"orn Rennecke <amylaar@redhat.com>
547
548         * reload1.c (move2add_note_store): Treat all registers directly or
549         indirectly derived from a base register as members of the same set
550         of values.
551         (reload_cse_move2add): Adjust accordingly.  Take mode and offset
552         of base register into account.
553
554 Fri Jan 19 09:18:42 2001  J"orn Rennecke <amylaar@redhat.com>
555
556         * alias.c (find_base_value): Recognize TRUNCATE.
557         (record_set): In PLUS case, invalidate if other summand is also a
558         base value.
559
560 Thu Jan 18 06:43:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
561
562         * flow.c (mark_set_1, case PARALLEL): New case; rework to allow
563         entry to be EXPR_LIST.
564         * rtlanal.c (reg_overlap_mentioned_p): Allow PARALLEL in SET to
565         be an EXPR_LIST (but not null, which other code doesn't allow).
566         (note_stores): Properly handle PARALLEL in SET.
567         Recursively call for top-level PARALLEL.
568         * sched-deps.c (sched_analyze_1): Handle EXPR_LIST in PARALLEL in SET.
569         * sched-rgn.c (check_live_1, update_live_1): Likewise.
570
571         * config.gcc (rs6000-ibm-aix*, rs6000-bull-bosx): Add rs6000/aix.h.
572
573 2001-01-18  Neil Booth  <neil@daikokuya.demon.co.uk>
574
575         * cpplib.c (_cpp_handle_directive): Use buffer->was_skipping,
576         not pfile->skipping (== 0).
577
578 2001-01-17  Nick Clifton  <nickc@redhat.com>
579
580         * config/rs6000/rs6000.c: Add prototypes for {init|free}_
581         machine_status.
582
583 2001-01-17  Jim Wilson  <wilson@redhat.com>
584
585         * invoke.texi (IA-64 options): Improve.
586
587 2001-01-17  Tom Tromey  <tromey@redhat.com>
588
589         * invoke.texi (Optimize Options): Use `{}' to around @samp
590         argument.
591
592 2001-01-17  Aldy Hernandez  <aldyh@redhat.com>
593
594         * invoke.texi (-fno-guess-branch-probability): New option.
595
596 Wed Jan 17 13:26:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
597
598         * combine.c (try_combine): Don't set i3_subst_into_i2 for
599         case of making new double-word constant.
600         Revert last change: instead just test i3_subst_into_i2.
601
602 2001-01-17  Jakub Jelinek  <jakub@redhat.com>
603
604         * config/i386/i386.md (cmpqi_minus_1): Use {b} for QImode operation.
605         Use q constraints instead of r.
606
607 Tue Jan 16 22:23:04 2001  Alan Modra (alan@linuxcare.com.au)
608
609         * config/pa/pa.h (PIC_OFFSET_TABLE_REGNUM_SAVED): Remove.
610         (machine_function): Define.
611         (PIC_OFFSET_TABLE_SAVE_RTX) : Define.
612         * config/pa/pa.c (pa_init_machine_status, pa_mark_machine_status,
613         pa_free_machine_status): New functions.
614         (override_options): Set {init,mark,free}_machine_status to above.
615         (hppa_expand_prologue): Use PIC_OFFSET_TABLE_SAVE_RTX instead of
616         PIC_OFFSET_TABLE_REGNUM_SAVED.
617         * config/pa/pa.md: Use PIC_OFFSET_TABLE_SAVE_RTX instead of
618         PIC_OFFSET_TABLE_REGNUM_SAVED throughout.
619         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Remove
620         references to PIC_OFFSET_TABLE_REGNUM_SAVED.
621         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
622
623 2001-01-15  DJ Delorie  <dj@redhat.com>
624
625         * Makefile.in (gcov.1): Protect against texi2pod/pod2man failing.
626         (cpp.1): Ditto.
627         (gcc.1): Ditto.
628
629 Tue Jan 16 17:20:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
630
631         * flow.c (propagate_on_insn): Make trying to delete a prologue
632         or epilogue insn an ICE, not a warning.  Allow doing this if
633         the current function returns with stack pointer depressed.
634
635         * combine.c (try_combine): If i3_subst_into_i2, properly check for
636         I3 having more than one SET.
637
638 2001-01-16  Jim Wilson  <wilson@redhat.com>
639
640         * invoke.texi: Document IA-64 options.
641
642         * config/ia64/ia64.c (ia64_print_operand_address): Delete 'B' support.
643         (fixup_errata): Delete TARGET_A_STEP use.
644         * config/ia64/ia64.h (MASK_A_STEP, TARGET_A_STEP): Delete.
645         (TARGET_SWITCHES): Delete -ma-step option.
646         * config/ia64/ia64.md (all FP patterns): Delete %B0.
647         (movqicc_astep, movqi_internal_astep, movhicc_astep,
648         movhi_internal_astep, movsicc_astep, movsi_internal_astep, movdi+1,
649         movdi_internal_astep, movsfcc_astep, movsf_internal_astep,
650         movdfcc_astep, movdf_internal_astep, movtfcc_astep,
651         movtf_internal_astep, cmovdi_internal_astep, cmovsi_internal_astep):
652         Delete.
653         (movqi_internal, movhi_internal, movsi_internal, movdi_internal,
654         movsf_internal, movdf_internal, movtf_internal, cmovdi_internal,
655         cmovsi_internal): Delete ! TARGET_A_STEP check.
656
657 2001-01-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
658
659         * gcc.texi (Bug Lists): Do not mention newsgroups nor the
660         possibility to report bugs via postal mail. Change a URL and
661         merge in a nearly duplicate statement...
662         (Bug Reporting): ...from here.
663         (Service): Refer to the Bug Reporting section instead of
664         duplicating an URL.
665         (Contributing): Remove trivial explanations concerning snapshots.
666
667 2001-01-16  Alan Modra <alan@linuxcare.com.au>
668
669         * cppmain.c (general_init): Don't use ANSI prototype.
670
671 2001-01-16  Tom Tromey  <tromey@redhat.com>
672
673         * gcc.c (cpp_options): Added `*' to specs for -MF, -MQ, and -MT.
674
675 2001-01-16  Richard Henderson  <rth@redhat.com>
676
677         * config/i386/i386.h: Fix comment typo.
678         * config/i386/i386.md (shift+compare pattern names): s/cmpno/cmp/
679         (ashr+compare patterns): Match CCGOCmode not CCNOmode.
680
681 2001-01-16  Phil Edwards  <pme@sources.redhat.com>
682
683         * gcc.c:  Revert previous -fsyntax-only-related change; move
684           to cp/g++spec.c.
685
686 2001-01-16  Jakub Jelinek  <jakub@redhat.com>
687
688         * config/i386/i386.c (fcmov_comparison_operator): Only initialize
689         inmode after checking GET_CODE (op).
690
691 2001-01-16  Richard Henderson  <rth@redhat.com>
692
693         * flow.c (struct propagate_block_info): Add mem_set_list_len.
694         (MAX_MEM_SET_LIST_LEN): New.
695         (propagate_one_insn): Update mem_set_list_len.
696         (invalidate_mems_from_autoinc): Likewise.
697         (invalidate_mems_from_set): Likewise.
698         (mark_used_regs): Likewise.
699         (init_propagate_block_info): Likewise.  Stop collecting memories
700         when we reach MAX_MEM_SET_LIST_LEN.
701         (mark_set_1): Likewise.
702
703 2001-01-16  Richard Henderson  <rth@redhat.com>
704
705         * unroll.c (precondition_loop_p): Fail if no iteration
706         variable found.
707
708 2001-01-16  Phil Edwards  <pme@sources.redhat.com>
709
710         * gcc.c:  When -fsyntax-only is given, do not complain about
711           unused libraries.
712
713 2001-01-15  Richard Henderson  <rth@redhat.com>
714
715         * config/i386/i386.c (asm_output_function_prefix): Remove.
716         (ix86_asm_file_end): New.
717         (load_pic_register): Generate pic_label_name into a
718         staticly allocated buffer.
719         * config/i386/i386-protos.h: Update.
720         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_PREFIX): Remove.
721         (ASM_FILE_END): New.
722         * config/i386/i386afe.h: New file.
723         * config.gcc (i?86-*-elf) [tm_file]: Use it.
724         (i?86-*-{freebsd,linux*,moss*}): Likewise.
725         * config/elfos.h (ASM_FILE_END): Undef before redefinition.
726         * config/i386/cygwin.h (ASM_FILE_END): Likewise.
727         * config/i386/osfrose.h (ASM_FILE_END): Invoke ix86_asm_file_end.
728         * config/i386/sco5.h (ASM_FILE_END): Likewise.
729         * config/i386/winnt.c (i386_pe_asm_file_end): Likewise.
730
731 2001-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
732
733         * Makefile.in (install-man): Remove explicit dependency on
734         $(srcdir)/gcc.1.
735
736         * configure.in, configure: Revert previous patch requiring perl
737         5.6.0.
738
739 2001-01-12  Aldy Hernandez  <aldyh@redhat.com>
740
741         * toplev.c (flag_guess_branch_prob): New.
742         (f_options): Add guess-branch-probability option.
743         (rest_of_decl_compilation): Only estimate branch probability if
744         flag set.
745         (main): set flag_guess_branch_prob.
746
747         * flags.h (flag_guess_branch_prob): New.
748
749 2001-01-15  DJ Delorie  <dj@redhat.com>
750
751         * gcc.texi (Makefile): Add documentation for Makefile targets.
752
753 2001-01-15  Philip Blundell  <philb@gnu.org>
754
755         * config/arm/arm.c (arm_finalize_pic): New arg "prologue".
756         (is_pic): Delete.
757         * config/arm/arm-protos.h (arm_finalize_pic): Update prototype.
758         (is_pic): Delete declaration.
759         * config/arm/arm.h (FINALIZE_PIC): Update call to arm_finalize_pic.
760         (OUTPUT_INT_ADDR_CONST): Remove special handling of PIC address.
761         * config/arm/arm.md (builtin_setjmp_receiver): New.
762
763 2001-01-15  Richard Earnshaw  <rearnsha@arm.com>
764
765         * arm.c (use_return_insn): Don't try to determine the function type
766         until after reload has completed.
767         (arm_output_epilogue): Don't adjust the sp value recovered from the
768         stack.
769         (emit_multi_reg_push): Don't record dwarf information for the pc.
770         * arm.md (eh_epilogue): The function type may have changed, so it
771         needs to be recalculated.
772         * arm/netbsd.h (DWARF2_UNWIND_INFO): Delete.  Can now use dwarf2
773         unwind tables on arm/netbsd.
774
775 2001-01-15  Richard Earnshaw  <rearnsha@arm.com>
776
777         * arm.md (cbranchsi4): Correct calculation of branch ranges.
778         (negated_cbranchsi4): Likewise.
779
780 2001-01-15  Richard Earnshaw  <rearnsha@arm.com>
781
782         * config/arm/semi.h (SUBTARGET_EXTRA_SPECS): Define.
783         (SUBTARGET_EXTRA_ASM_SPEC): Define to empty string.
784         (ASM_SPEC): Call subtarget_extra_asm_spec.  Don't
785         pass -mapcs-* options to assembler.
786         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Define.
787         (SUBTARGET_EXTRA_ASM_SPEC): Define to empty string.
788         (ASM_SPEC): Call subtarget_extra_asm_spec.
789
790 2001-01-15  Andreas Jaeger  <aj@suse.de>
791
792         * config/i386/i386.c (ix86_init_builtins): Make i size_t to remove
793         warnings.
794         (ix86_expand_builtin): Likewise.
795
796         * gencodes.c (output_predicate_decls): Make i size_t to avoid
797         warning about comparison between signed and unsigned.
798
799 2001-01-14  Geoffrey Keating  <geoffk@redhat.com>
800
801         * expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.
802
803 2001-01-14  Ralf Baechle <ralf@gnu.org>
804
805         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Default ABI is 32; change
806         SUBTARGET_CPP_SPEC apropriatly.
807
808 2001-01-12  Mark Mitchell  <mark@codesourcery.com>
809
810         * varasm.c (make_decl_rtl): Fix typo in last change.
811
812 2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>
813
814         * defaults.h (SUPPORTS_INIT_PRIORITY): New macro to indicate the
815         linker supports the init_priority C++ attribute.
816         * tm.texi (SUPPORTS_INIT_PRIORITY): Documentation for new macro.
817         * config/mips/iris6.h (SUPPORTS_INIT_PRIORITY): Indicate Irix
818         linker does not support init_priority C++ attribute.
819
820 Sun Jan 14 22:31:30 2001  J"orn Rennecke <amylaar@redhat.com>
821
822         * Makefile.in (libgcc1-test.o): Depends on stmp-int-hdrs.
823
824 2001-01-14  Neil Booth  <neil@daikokuya.demon.co.uk>
825
826         * c-parse.in (finish_parse): Add comment about cpp_destroy.
827         * cp/lex.c (finish_parse): Similarly.
828         * cppinit.c (cpp_cleanup): Rename cpp_destroy for clarity.
829         Return the number of errors encountered.
830         * cpplib.h (cpp_cleanup): Rename cpp_destroy, return int.
831         * cppmain.c (main): Don't call cpp_destroy.
832
833 2001-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
834
835         * configure.in: Require at least perl 5.6.0 to regenerate
836         manpages.
837         * configure: Regenerate.
838
839 2001-01-14  Richard Henderson  <rth@redhat.com>
840
841         * genrecog.c (DT_veclen_ge): New.
842         (add_to_sequence) [MATCH_PARALLEL]: Generate one.
843         (maybe_both_true_2): Simplify DT_veclen vs DT_veclen_ge.
844         (nodes_identical_1): Handle DT_veclen_ge.
845         (write_cond, debug_decision_2): Likewise.
846
847 2001-01-14  Richard Earnshaw  <rearnsha@arm.com>
848
849         * arm.md (ldmsi_postinc, ldmsi, stmsi_postinc, smsi): Delete.  Replace
850         with ...
851         (ldmsi_postinc[432], ldmsi[432], stmsi_postinc[432], stmsi[432]): New.
852
853 2001-01-14  Neil Booth  <neil@daikokuya.demon.co.uk>
854
855         * cppmain.c (do_preprocessing): New function; most of the old
856         main.
857         (main): Call it to do most of the work.
858         (cb): Move from global scope to set_callbacks ().
859         (setup_callbacks): Get the callback pointer.
860         (general_init, printer_init): Clean up code and comments.
861
862 2001-01-14  Richard Earnshaw  <rearnsha@arm.com>
863
864         * config/arm/semi.h (ASM_SPEC): Pass -k to the assembler when
865         compiling PIC.
866
867 2001-01-14  Kazu Hirata  <kazu@hxi.com>
868
869         * config/h8300/h8300.c (get_shift_alg): Update comments.
870
871 Sun Jan 14 06:20:49 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
872
873         * ggc-page.c (alloc_annon): Call perror and correctly call exit.
874         (alloc_page, ggc_alloc): Add casts to remove warnings.
875
876 2001-01-14  Geoffrey Keating  <geoffk@redhat.com>
877
878         * combine.c (simplify_comparison): Don't change `code' when
879         can't reverse comparison.
880
881 2001-01-14  Richard Henderson  <rth@redhat.com>
882
883         * rtlanal.c (computed_jump_p_1): Rename from jmp_uses_reg_or_mem;
884         update all call sites.  Return true for all non-label constants.
885
886 Sun Jan 14 10:09:48 MET 2001  Jan hubicka  <jh@suse.cz>
887
888         * i386.c (ix86_expand_compare): Add bypass_test and second_test
889         parameters.
890         (ix86_expand_branch): Update.
891         (ix86_expand_setcc): Update to handle multiple test conditions.
892         (expand_int_movcc): Likewise.
893         (expand_fp_movcc): Likewise.
894         * i386-protos.h (ix86_expand_compare): New.
895         * i386.md (andqi_?_slp, orqi_?_slp): New.
896         (conditional trap expander): Update call to ix86_expand_compare.
897
898 2001-01-14  Richard Henderson  <rth@redhat.com>
899
900         * config/vax/vax.md: Use nonimmediate_operand instead of
901         general_operand in destinations.
902
903         * config/vax/vax.md (indirect_jump): Use register_operand.
904
905         * config/vax/vax.h (RETURN_POPS_ARGS): Max at 255 arguments.
906         * config/vax/vax.md (call_pop): Turn into an expander.
907         (call_value_pop): Likewise.
908         (call, call_value): New.
909
910 2001-01-14  Andreas Jaeger  <aj@suse.de>
911
912         * config/i386/i386.c (ix86_split_fp_branch): Remove unused
913         variables.
914         (ix86_fp_compare_mode): Add unused attribute.
915         (ix86_expand_fp_movcc): Remove unused variable.
916         (ix86_expand_builtin): Make fcode unsigned.
917
918         * expr.c (MOVE_BY_PIECES_P): Cast MOVE_RATIO to unsigned.
919         (expand_expr): Add cast to avoid signed warning.
920         (store_field): Likewise.
921         (store_constructor_field): Likewise.
922         (store_constructor): Likewise.
923         (store_expr): Likewise.
924         (clear_storage): Likewise.
925         (emit_group_store): Likewise.
926         (emit_group_load): Likewise.
927
928 2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
929
930         * c-common.c: Move format checking code to ...
931         * c-format.c: ... here.  New file.  Reorder some functions and
932         declarations.
933         (decl_handle_format_attribute, decl_handle_format_arg_attribute):
934         New functions.
935         * c-common.h (decl_handle_format_attribute,
936         decl_handle_format_arg_attribute): Declare.
937         * Makefile.in (C_AND_OBJC_OBJS): Add c-format.o.
938         (c-common.o): Adjust dependencies.
939         (c-format.o): New list of dependencies.
940
941 2001-01-13  Jakub Jelinek  <jakub@redhat.com>
942
943         * unroll.c (loop_iterations): If we cannot prove iteration variable
944         is set once in each iteration, punt.
945
946 Sun Jan 14 00:23:15 2001  Denis Chertykov  <denisc@overta.ru>
947
948         * config/avr/avr.md ("strlenhi"): Remove clobber of input address.
949         (*strlenhi): Remove clobber (which was buggy) of output address.
950
951 2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
952
953         * Makefile.in (generated-manpages): Add gcc.1
954         ($(srcdir)/gcc.1): New target.
955         (maintainer-clean): Delete $(srcdir)/gcc.1.
956         * gcc.texi: Add macros @gccoptlist and @gol.
957         * invoke.texi: Include option summary in manpage.  Mark up option
958         summary with @gccoptlist and @gol.  Use @r in one place where
959         appropriate.
960         * texinfo.tex: Update to version 2000-12-11.07 from ftp.gnu.org.
961         * gcc.1: Generate from invoke.texi.
962
963 2001-01-13  Richard Henderson  <rth@redhat.com>
964
965         * ggc-page.c (USING_MALLOC_PAGE_GROUPS): New; set if not using mmap.
966         (struct page_entry): Add group member.
967         (struct page_group): New.
968         (struct globals): Add page_groups member.
969         (alloc_anon): Only define for using mmap; remove valloc call.
970         (page_group_index): New.
971         (set_page_group_in_use): New.
972         (clear_page_group_in_use): New.
973         (alloc_page): Implement USING_MALLOC_PAGE_GROUPS.
974         (free_page, release_pages): Likewise.
975         * configure.in (with-gc): Default to ggc-page always.
976
977 2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
978
979         * reload1.c (replace_pseudos_in_call_usage): Use
980         reg_equiv_constant and reg_equiv_address, and don't try
981         regno_reg_rtx first.
982
983 2001-01-13  Richard Henderson  <rth@redhat.com>
984
985         * ggc-page.c (alloc_page): Round up allocation size to one page.
986         Set e->order on extra pages.
987
988 2001-01-13  Richard Henderson  <rth@redhat.com>
989
990         * genrecog.c (nodes_identical): Expand commentary.
991         (write_switch): Watch out for identical nodes.
992
993 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
994
995         * cppfiles.c (_cpp_fake_include): New function.
996         * cpphash.h (_cpp_fake_include): New.
997         * cpplib.c (do_line): Call _cpp_fake_include when entering
998         header files in preprocessed input.
999         * cppmain.c (cb_pragma_implementation): Remove handling.
1000         (setup_callbacks): Don't register pragmas.
1001
1002 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1003
1004         * extend.texi: Udate for CPP.
1005
1006 2001-01-13  Andreas Jaeger  <aj@suse.de>
1007
1008         * reload1.c: Add prototype for replace_pseudos_in_call_usage.
1009
1010         * regmove.c: Add prototype for replace_in_call_usage.
1011
1012 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1013
1014         * cpplib.h (cpp_pool, mi_state, mi_ind, struct cpp_macro,
1015         struct cpp_chunk, struct htab, struct toklist,
1016         struct cpp_context, CPP_STACK_MAX, struct lexer_state,
1017         struct spec_nodes, struct cpp_reader, CPP_OPTION, CPP_BUFFER,
1018         CPP_BUF_LINE, CPP_BUF_COL, CPP_BUF_COLUMN, U, ustrcmp, ustrncmp,
1019         ustrlen, uxstrdup, ustrchr, ufputs): Move to cpphash.h.
1020         (struct macro_args): Delete.
1021         * cpphash.h: See above.
1022
1023 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1024
1025         * cppmain.c (struct printer): Remove no_line_dirs.
1026         (options, cb): New.
1027         (main, setup_callbacks, scan_buffer, printer_init, cb_define)
1028         : Use options rather than CPP_OPTION.
1029         (setup_callbacks): Use cb rather than pfile->cb.
1030         (main): No need to check for a buffer.  Use cpp_errors.
1031         (printer_init): Don't set no_line_dirs.
1032         (maybe_print_line): Use options not no_line_dirs.
1033         (cb_file_change): Don't call print_line if -P.
1034
1035 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1036
1037         * c-lex.c (init_c_lex): Use cpp_get_callbacks to set
1038         callbacks.
1039         * c-parse.in (finish_parse): Use cpp_errors.
1040         (__yylex): Use return value of cpp_pop_buffer.
1041         * cp/lex.c (finish_parse): Use cpp_errors.
1042         * cp/spew.c (read_token): Use return value of cpp_pop_buffer.
1043
1044 Sat Jan 13 16:57:40 2001  Denis Chertykov  <denisc@overta.ru>
1045
1046         * README.AVR: URLs corrected.
1047
1048 Sat Jan 13 07:30:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1049
1050         * c-decl.c (start_function): Don't warn if old prototype is builtin
1051         that's not in C's namespace.
1052         * libgcc2.c (_varargs): Update definition of __builtin_saveregs.
1053         (_bb): Add prototype for ctime.
1054         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Add missing protos.
1055
1056 Sat Jan 13 09:53:32 MET 2001  Jan Hubicka  <jh@suse.cz>
1057
1058         * i386.c (ix86_fp_comparison_arithmetics_cost,
1059         ix86_fp_comparison_fcomi_cost, ix86_fp_comparison_sahf_cost,
1060         ix86_fp_comparison_cost): New functions.
1061         (ix86_expand_fp_compare): Use the costs to choose best bethod; add
1062         two new parameters SECOND_TEST and BYPASS_TEST; allow generating
1063         two-branch sequences; make static.
1064         (ix86_use_fcomi_compare): Do decision according to the costs.
1065         (split_fp_branch): New.
1066         * i386.md (compare-and-branch patterns): Use split_fp_branch.
1067         * i386-protos.h (ix86_expand_fp_compare): Remove
1068         (ix86_split_fp_branch): Declare.
1069
1070         * i386.h (PREDICATE_CODES): Update codes from fcmov_comparison_operand
1071         and ix86_comparison_operator.
1072
1073         * i386.c (ix86_prepare_fp_compare_args): Try to rearange the comparison
1074         to make it cheaper.
1075
1076         * i386.c (put_condition_code): Output properly the unordered/ordered
1077         compares in fp case.
1078         (ix86_expand_fp_movcc): Use ix86_expand_compare infrastructure.
1079
1080         * tm.texi (REVERSE_CONDITION): Document.
1081         * i386.c (ix86_fp_compare_mode): Simplify; return always CCFPmode
1082         in -ffast-math mode.
1083         * i386.h (REVERSE_CONDITION, REVERSIBLE_CC_MODE): New macro.
1084
1085 2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
1086
1087         * config/sh/sh.c (sh_expand_epilogue): Use PR explicitly.
1088
1089         * config/sh/sh.c (sh_expand_prologue): Let the second toggle_sz be
1090         optimized away.
1091
1092         * config/sh/sh.c (mova_p): Fix test for mova_const.
1093
1094 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1095
1096         * fix-header.c (read_scan_file): Use cpp_get_callbacks and
1097         cpp_get_options rather than dereferencing pfile and using
1098         CPP_OPTION.
1099         * scan-decls.c (scan_decls): Use return value of
1100         cpp_pop_buffer rather than CPP_BUFFER.
1101
1102 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
1103
1104         * cppinit.c (cpp_handle_option): help_only is now part of the
1105         cpp_options structure.
1106         * cpplib.c (cpp_errors, cpp_get_options, cpp_get_callbacks,
1107         cpp_set_callbacks): New functions.
1108         * cpplib.h (cpp_callbacks): Break out as a named structure.
1109         (cpp_options): Move help_only here from cpp_reader.
1110         (CPP_FATAL_ERRORS): Update to use cpp_errors.
1111         (cpp_errors, cpp_get_options, cpp_get_callbacks,
1112         cpp_set_callbacks): New prototypes.
1113         * cppmain.c (main): Update for help_only.
1114
1115 2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
1116
1117         * Makefile.in (info, maintainer-clean, install-info, uninstall):
1118         Also build and remove and install and uninstall c-tree.info and
1119         cppinternals.info.
1120         ($(srcdir)/gcc.info): Add dependency on contrib.texi.
1121         ($(srcdir)/cppinternals.info): New target.
1122         * c-tree.texi: Change file name used when makeinfo used without -o
1123         from ir.info to c-tree.info.  Add info directory entry.
1124         * cppinternals.texi: Add info directory entry.
1125         * .cvsignore: Update.
1126
1127 2001-01-12  Jakub Jelinek  <jakub@redhat.com>
1128
1129         * c-typeck.c (store_init_value): Don't require constant initializer
1130         elements with -pedantic -std=c99.
1131         (digest_init): Change error about non-constant initializer elements
1132         into pedwarn.
1133         (constructor_range_end): Remove.
1134         (constructor_incremental, designator_depth,
1135         designator_errorneous): New variables.
1136         (struct constructor_stack): Remove range_end, add incremental.
1137         (struct constructor_range_stack, constructor_range_stack): New.
1138         (struct initializer_stack): Add constructor_range_stack.
1139         (finish_init): Set it.
1140         (start_init): Likewise.  require_constant_elements for non-static
1141         trees only if not flag_isoc99.
1142         (really_start_incremental_init): Remove constructor_range_end, add
1143         constructor_incremental.
1144         (pop_init_level): Likewise.
1145         (push_init_level): Likewise.  If implicit and the subobject had some
1146         value set already, preinitialize the level with it.
1147         Warn about missing braces only if not pushing due to designators.
1148         (set_designator, push_range_stack): New functions.
1149         (set_init_label): Use them.
1150         (set_init_index): Likewise.  Remove constructor_range_end.
1151         Error if designator index is outside of array bounds.
1152         (add_pending_init): Compare values of purpose index trees, not the
1153         trees themselves.  Allow overwriting of already initialized element.
1154         Issue a warning if it had side-effects.
1155         (set_nonincremental_init, set_nonincremental_init_from_string): New
1156         functions.
1157         (pending_init_member): Rename to...
1158         (find_init_member): ...this function.  Call set_nonincremental_init
1159         if necessary.  Compare values of purpose index trees, not the trees
1160         themselves.  Return the actual value, not just non-zero if something
1161         is found.
1162         (output_init_element): Remove checks for duplicates.
1163         If field has zero size, only check the initializer for correctness.
1164         Call set_nonincremental_init if necessary.  Push RECORD/ARRAY into AVL
1165         if constructor_incremental is zero.  Change error about initializers
1166         not computable at load time into pedwarn.
1167         (output_pending_init_elements): Compare bit positions, not
1168         FIELD_DECLs to take into account zero-sized fields.
1169         (process_init_element): Use constructor_range_stack to fill all
1170         ranges in the designator lists from current level up.
1171         * extend.texi: Update documentation for labeled elements.
1172
1173 2001-01-12  Alexandre Oliva  <aoliva@redhat.com>
1174
1175         * calls.c (emit_library_call_value_1): Add USEs and CLOBBERs
1176         to function usage for arguments passed by reference.  Optimize
1177         callee-copied arguments.
1178         * regmove.c (replace_in_call_usage): New function.
1179         (fixup_match_1): Call it.
1180         * cse.c (cse_insn): Canonicalize registers in function usage.
1181         * reload1.c (replace_pseudos_in_call_usage): New function.
1182         (reload): Call it.
1183
1184         * Makefile.in: Reverted yesterday's wrong patch.  Installed the
1185         right version.
1186
1187 2001-01-12  Jakub Jelinek  <jakub@redhat.com>
1188
1189         * config/alpha/alpha.c (alpha_expand_block_move): GET_MODE of tmp,
1190         not XEXP (tmp, 0).
1191
1192 2001-01-12  DJ Delorie  <dj@redhat.com>
1193
1194         * Makefile.in (bootstrap): rename stages to be mnemonic.  Add
1195         restageN, unstageN, bubblestrap, quickstrap, and cleanstrap
1196         targets.
1197
1198 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
1199
1200         * cpp.texi, extend.texi, gcc.texi, install.texi, invoke.texi,
1201         tm.texi: Consistently refer to ISO C instead of ANSI C.  Refer to
1202         -std options alongside references to -ansi.  Update some
1203         documentation for C99.
1204         * cpp.1: Regenerate.
1205
1206 2001-01-12  Andreas Jaeger  <aj@suse.de>
1207
1208         * haifa-sched.c (restore_line_notes): Remove argument block B
1209         since it's unused.
1210         * sched-ebb.c (schedule_ebb): Change caller.
1211         * sched-rgn.c (schedule_region): Likewise.
1212         * sched-int.h (restore_line_notes): Adjust prototype.
1213
1214         * loop.h: Remove wrong declaration of doloop_condition_get.
1215
1216 2001-01-12  Phil Edwards  <pme@sources.redhat.com>
1217
1218         * extend.texi:  Move C++-extension-related node from the C section
1219           into the C++ section.
1220
1221 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
1222
1223         * extend.texi: Refer to an array of pointers to functions instead
1224         of one of functions.
1225
1226 Fri Jan 12 12:08:12 MET 2001  Andreas Jaeger  <aj@suse.de>
1227                               Jan Hubicka  <jh@suse.cz>
1228
1229         * combine.c (reversed_comparison): Fix typo in last patch.
1230         Check X for NULL.
1231         (combine_reversed_comparison_code): Make static to follow
1232         prototype declaration.
1233
1234 2001-01-12  Phil Edwards  <pme@sources.redhat.com>
1235
1236         * install.texi:  Remove misplaced duplicate entry.
1237
1238 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
1239
1240         * config/float-i386.h: Define FLT_EVAL_METHOD and DECIMAL_DIG for C99.
1241
1242 Thu Jan 11 17:06:30 EST 2001  John Wehle  (john@feith.com)
1243
1244         * final.c: (leaf_function_p): Fix typo.
1245
1246 2001-01-11  Zack Weinberg  <zack@wolery.stanford.edu>
1247
1248         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Completely rewritten.
1249         Now defines HAVE_MMAP_DEV_ZERO and/or HAVE_MMAP_ANON depending
1250         which you have.
1251         (AC_FUNC_MMAP_FILE): Don't AC_REQUIRE AC_FUNC_MMAP_ANYWHERE.
1252         * configure.in: Set GGC to ggc-page if any of mmap_dev_zero,
1253         mmap_anon, and valloc is available.
1254         * ggc-page.c: Restructure ifdef logic to match new autoconf
1255         spec.  Don't throw away the test page in init_ggc.
1256
1257         * configure, config.in: Regenerate.
1258
1259 2001-01-12  Michael Hayes  <mhayes@redhat.com>
1260
1261         * loop.h (total_biv_increment): Constify iv_class pointer.
1262         (struct induction): Replace `mem_mode' with `mem' rtx.
1263         * unroll.c (total_biv_increment): Constify iv_class pointer.
1264         * loop.c (loop_giv_reduce_benefit): Derive mem mode from mem rtx.
1265         (find_mem_givs, combine_givs_p): Likewise.
1266         (debug_ivs, debug_iv_class, loop_ivs_dump, loop_iv_class_dump): New.
1267
1268 2001-01-10  Thomas Pfaff <tpfaff@gmx.net>
1269
1270         * gthr-win32.h (__gthread_objc_thread_get_data): Save and restore Win32
1271         LastError.
1272         (__gthread_getspecific): Ditto.
1273
1274 Fri Jan 12 00:04:00 MET 2001  Jan Hubicka  <jh@suse.cz>
1275
1276         * i386.c (ix86_comparison_operator, fcmov_comparison_operator,
1277         put_condition_code): Convert fp comparison codes to integer
1278         before handling.
1279         (ix86_expand_fp_compare): Postnote the fp comparison code converison
1280         to final.
1281
1282         * i386.c (unsigned_comparison, no_comparison_operator): Kill.
1283         * i386-protos.h (no_comparison_operator): Kill.
1284
1285         * i386.c (ix86_expand_fp_compare): Fix ordered/unordered confussion.
1286
1287         * combine.c (REVERSIBLE_CC_MODE): Remove.
1288         (reversible_comparison_p): Remove.
1289         (combine_reversed_comparison_code): New.
1290         (reversed_comparison): New.
1291         (combine_simplify_rtx): Use
1292         combine_reversed_comparison_code/reversed_comparison instead
1293         of reversible_comparison_p.
1294         (simplify_if_then_else): Likewise.
1295         (simplify_set): Likewise.
1296         (simplify_logical): Likewise.
1297         (if_then_else_cond): Likewise.
1298         (known_cond): Likewise.
1299         (simplify_comparison): Likewise.
1300
1301 2001-01-11  Alan Lehotsky  <lehotsky@tiac.net>
1302
1303         * builtins.c (std_expand_builtin_va_start): Handle varargs when
1304         sizeof (int) is larger than sizeof(__word__).
1305
1306 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1307
1308         * cppinit.c (do_includes): Fix typo.
1309
1310 2001-01-11  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1311
1312         * config/m68hc11/m68hc11.md (cmphi_1): Make sure reloading
1313         in S_REGS does not occur because not all sources are possible
1314         when a S_REGS is a destination (sometimes needs a clobber).
1315         (movqi_const0, zero_extendhisi2, zero_extendqisi2): Likewise.
1316         (zero_extendhidi2, extendqisi2, extendqihi2, extendhisi2): Likewise.
1317         (anddi3, iordi3, xordi3, negqi2, one_cmplhi2, one_cmplqi2: Likewise.
1318         (ashldi3_const32, ashldi3_const1, ashlsi3_const16): Likewise.
1319         (ashlsi3_const1, ashlhi3_2, ashlqi3_const1, ashrhi3): Likewise.
1320         (ashrqi3_const1, lshrdi3_const32, lshrdi3_const63): Likewise.
1321         (lshrdi_const1, lshrsi3_const16): Likewise.
1322         (*addhi3, lshrsi3_const1, lshrqi3_const1): Likewise.
1323         (*movhi_68hc12, *movqi_68hc12): Likewise.
1324         (movstrictqi): Make sure reloading in D_REGS as a destination
1325         does not happen.
1326
1327 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1328
1329         * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ.
1330
1331 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1332
1333         * cppinit.c (cpp_start_read): If -fpreprocessed, ignore
1334         -D, -U and -A, and don't initialize the builtins.
1335         (do_includes): Error if -include or -imacros with -fpreprocessed.
1336         * cppmain.c (cb_define, cb_undef): Unconditionally process
1337         the callback.
1338         * tradcpp.c (main): Fix typo.
1339
1340 2000-01-11  Mark Elbrecht  <snowball3@bigfoot.com>
1341
1342          * cppfiles.c (cpp_included, find_include_file, _cpp_execute_include)
1343            (read_name_map): Use IS_ABSOLUTE_PATH.
1344          * tradcpp.c (get_filename): Likewise.
1345
1346 2001-01-11  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1347
1348         * config/m68hc11/m68hc11.md (*adcq, *subcq): Fix operand numbers.
1349         (*ashlsi3_const16_zexthi, *ashlsi3_const1): Likewise.
1350         (*lshrsi3_const, *lshrsi3_const1, *lshrsi3_const16): Likewise.
1351         (*ashrsi3, *ashrsi3_const, *ashlsi3, *ashlsi3_const): Likewise.
1352         (*ashlsi3_const1, *lshrsi3, *ashlsi3_const16): Likewise.
1353         (cmphi_z_used): Don't use '@' for the output.
1354         (tstqi_z_used): Likewise.
1355         (cmpqi_z_used): Likewise.
1356         (one_cmplsi2): Likewise.
1357
1358 2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
1359
1360         * config/sh/sh.c (barrier_align): Recognize branch around far
1361         branch and redundant insn.
1362
1363 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1364
1365         * invoke.texi: Restore documentation of the drivers' switches -MD
1366         and -MMD.
1367
1368 2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
1369
1370         * config/sh/sh.h (LABEL_ALIGN): Use UNSPECV_ALIGN instead of 1.
1371
1372         * Makefile.in (check-gcc//%, check-g++//%, check-g77//%,
1373         check-objc//%): Support parallel testing of multilibs.
1374         (TESTSUITEDIR): Set to testsuite by default, but override for
1375         parallel testing.
1376         (check-gcc, check-g++, check-g77, check-objc): Enter
1377         $(TESTSUITEDIR).
1378
1379 2001-01-11  Bernd Schmidt  <bernds@redhat.com>
1380
1381         * alias.c (throughout): Use REGNO, rather than ORIGINAL_REGNO.
1382         * sched-deps.c (deps_may_trap_p): Likewise.
1383         * basic-block.h: Remove a comment.
1384         * flow.c (PROP_POSTRELOAD): Remove.
1385         (update_life_info): Don't add it to prop_flags.
1386         (mark_set_1): Lose the code that was enabled by it.
1387
1388 2001-01-11  Michael Hayes  <mhayes@redhat.com>
1389
1390         * flow.c (flow_call_edges_add): New.
1391         * basic_block.h (flow_call_edges_add): New.
1392
1393 2001-01-11  J"orn Rennecke <amylaar@redhat.com>
1394
1395         * reload1.c (move2add_note_store): Update reg_set_luid even if
1396         base reg remains the same.
1397
1398 2001-01-10  Nick Clifton  <nickc@redhat.com>
1399
1400         * config/d30v/d30v.c (d30v_init_machine_status): Initialise
1401         machine_function structure to zero.
1402         Add prototypes for machine_status functions.
1403
1404 2001-01-10  Mark Mitchell  <mark@codesourcery.com>
1405
1406         * c-common.h (CTI_VOID_LIST): Remove.
1407         (void_list_node): Likewise.
1408         * tree.h (TI_VOID_LIST_NODE): New enumeral.
1409         (void_list_node): New macro.
1410         * config/arm/arm.c (arm_init_builtins): Use void_list_node.
1411         * config/i386/i386.c (ix86_init_builtins): Likewise.
1412         * config/ia64a/ia64.c (ia64_init_builtins): Likewise.
1413
1414 2001-01-10  Neil Booth  <neil@daikokuya.demon.co.uk>
1415
1416         * Makefile.in (tradcpp0): Depend on mkdeps.h.  Link mkdeps.o
1417         * cppinit.c (cpp_start_read): Update comment, remove unneeded
1418         if statement.
1419         * tradcpp.c: Include mkdeps.h.
1420         (deps, print_deps_phony_targets, deps_append, output_deps,
1421         init_dependency_output, output_deps): New.
1422         (deps_buffer, deps_allocated_size, deps_size, deps_column,
1423         deps_output): Delete.
1424         (print_deps_missing_files): Rename deps_missing_files.
1425         (inhibit_output): Make global.
1426         (main): Delete inhibit_output, deps_stream, deps_target.
1427         Use mkdeps functionality in the same way as cpplib.  Remove
1428         -g3 handling.  Handle -MF, -MP, -MQ, -MT.  Update handling of
1429         -M and -MM.  Remove old handling of deps via deps_out, and
1430         old reading of environment variables.
1431         (get_filename): Update to use deps_add_dep.
1432
1433 2001-01-10  Mark Mitchell  <mark@codesourcery.com>
1434
1435         * output.h (make_function_rtl): Remove prototype.
1436         (make_decl_rtl): Likewise.
1437         * varasm.c (make_function_rtl): Remove.
1438         (make_decl_rtl): Determine top-levelness from DECL_CONTEXT, rather
1439         than from a third parameter.
1440         * tree.h (make_decl_rtl): Remove last parameter.
1441         * c-decl.c (builtin_function): Remove last argument in call to
1442         make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
1443         (start_function): Likewise.
1444         * except.c (call_get_eh_context): Likewise.
1445         * expr.c (emit_block_move): Likewise.
1446         (clear_storage): Likewise.
1447         * profile.c (output_func_start_profiler): Likewise.
1448         * toplev.c (rest_of_decl_compilation): Likewise.
1449         * objc/objc-act.c (create_builtin_decl): Likewise.
1450         (synth_module_prologue): Likewise.
1451         (generate_static_reference): Likewise.
1452         (build_selector_reference_decl): Likewise.
1453         (build_class_reference_decl): Likewise.
1454         (build_objc_string_decl): Likewise.
1455         (build_protocol_reference): Likewise.
1456
1457 2001-01-10  Richard Henderson  <rth@redhat.com>
1458
1459         * hwint.h: Revert yesterday's change.
1460
1461 2001-01-10  Nick Clifton  <nickc@redhat.com>
1462
1463         * function.h (save_machine_status): Delete.
1464         (restore_machine_status): Delete.
1465         Amend comment describing {init|mark|free}_machine_status.
1466
1467         * function.c (save_machine_status): Delete.
1468         (restore_machine_status): Delete.
1469         Amend comment describing {init|mark|free}_machine_status.
1470         (push_function_context_to): Remove invocation of
1471         save_machine_status.
1472         (pop_function_context_from): Remove invocation of
1473         restore_machine_status.
1474
1475         * emit-rtl.c (init_emit_once): Amend comment describing
1476         {init|mark|free}_machine_status.
1477
1478         * tm.texi (Per-Function Data): New node.  Describe the
1479         INIT_EXPANDERS macro and the {init|mark|free}_machine_status
1480         function pointers.
1481
1482 2001-01-10  Neil Booth  <neil@daikokuya.demon.co.uk>
1483
1484         * cppinit.c (OPT_g): Remove.
1485         (cpp_handle_option): Update for removed -g3.
1486         (print_help): Update.
1487         * cpplib.h (struct cpp_options): Remove debug_output.
1488         * cppmain.c (setup_callbacks, cb_define): Update.
1489         * gcc.c (cpp_options): Translate -g3 to -dD.
1490
1491 2001-01-10  Aldy Hernandez  <aldyh@redhat.com>
1492
1493         * config/i960/i960.md: Change modifier to + on the zero_extract
1494         pattern after the (rotate -2 reg) canonicalization pattern.
1495
1496 2001-01-10  Richard Henderson  <rth@redhat.com>
1497
1498         * config/alpha/alpha.c (alpha_free_machine_status): New.
1499         (override_options): Install it.
1500         (alpha_mark_machine_status): Verify machine non-null.
1501         * config/i386/i386.c (ix86_free_machine_status): New.
1502         (override_options): Install it.
1503         (ix86_init_machine_status): Use xcalloc.
1504         (ix86_mark_machine_status): Verify machine non-null.
1505         * config/ia64/ia64.c (ia64_free_machine_status): New.
1506         (ia64_override_options): Install it.
1507         (ia64_mark_machine_status): Verify machine non-null.
1508
1509 Wed Jan 10 11:34:39 2001  Jeffrey A Law  (law@cygnus.com)
1510
1511         * function.c (instantiate_virtual_regs): Instantiate virtual
1512         registers found in CALL_INSN_FUNCTION_USAGE.
1513
1514 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
1515
1516         * i386.h (CPP_CPU_SPEC): Allow for -std=c* and -std=i* as
1517         equivalent to -ansi in disabling -Di386.
1518
1519 Wed Jan 10 16:38:31 MET 2001  Jan Hubicka  <jh@suse.cz>
1520
1521         * i386.c (ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes):
1522         new functions.
1523         (ix86_expand_fp_compare): Make trivial use of new infrastructure.
1524
1525 2001-01-10  Richard Earnshaw  <rearnsha@arm.com>
1526
1527         * arm.c (arm_init_builtins): Temporarily disable xscale builtins.
1528
1529 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
1530
1531         * invoke.texi: Document that -fcond-mismatch isn't supported for
1532         C++.
1533
1534 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
1535
1536         * gcc.texi: Define macro gcctabopt.
1537         * invoke.texi: Add manpage sections BUGS and AUTHOR.  Use
1538         @command, @env and @option in some places where appropriate.  Use
1539         @gcctabopt where appropriate.  Put URLs and email addresses inside
1540         @w.
1541
1542 2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
1543
1544         * gcc.c (cpp_options): Set MD file name from output
1545         filename, if specified.
1546         (suffix_subst): New static variable.
1547         (do_spec): Clear it.
1548         (do_spec_1, case '.'): Handle new `%.suffix' spec.
1549         Clear it.
1550         (give_switch): Handle suffix_subst.
1551
1552 2001-01-10  Phil Edwards  <pme@sources.redhat.com>
1553
1554         * invoke.texi:  Fix another typo.
1555
1556 2001-01-10  Phil Edwards  <pme@sources.redhat.com>
1557
1558         * invoke.texi:  Fix typo.
1559
1560 2001-01-10  Neil Booth  <neil@daikokuya.demon.co.uk>
1561
1562         * c-lang.c (lang_hooks): Update.
1563         (lang_decode_option): Remove.
1564         (lang_init_options): Rename c_init_options.
1565         * toplev.c (main): Use lang_hooks for lang_init_options
1566         and lang_decode_option.
1567         * toplev.h (lang_hooks): Add 2 new hooks.
1568         * tree.h: Remove lang_init_options and lang_decode_option.
1569         * cp/cp-tree.h (lang_decode_option): Rename cxx_decode_option.
1570         * cp/decl2.c: Similarly.
1571         * cp/lex.c (lang_init_options): Rename cxx_init_options.
1572         (lang_hooks): Update.
1573         * f/com.c (f_init, f_finish): Rename ffe_init, ffe_finish
1574         for consistency.
1575         (lang_init_options): Rename ffe_init_options.
1576         (lang_hooks): Update.
1577         (lang_decode_option): Remove.
1578         * java/lang.c (lang_init_options): Rename java_init_options.
1579         (lang_decode_option): Rename java_decode_option.
1580         (lang_hooks): Update.
1581         * objc/objc-act.c (lang_init_options): Rename objc_init_options.
1582         (lang_decode_option): Rename objc_decode_option.
1583         (lang_hooks): Update.
1584
1585 2001-01-09  Nick Clifton  <nickc@redhat.com>
1586
1587         * config/d30v/d30v.c (d30v_eh_epilogue_sp_ofs): Delete.
1588         (d30v_return_addr_rtx): Delete.
1589         (d30v_expand_epilogue): Use eh_epilogue_sp_ofs field in the
1590         cfun->machine structure.
1591         (struct machine_function): Move to d30v.h
1592         (d30v_save_machine_status): Delete.
1593         (d30v_restore_machine_status): Delete.
1594         (d30v_init_machine_status): New Function.
1595         (d30v_mark_machine_status): New Function.
1596         (d30v_free_machine_status): New Function.
1597         (d30v_init_expanders): Use new functions.
1598         (d30v_return_addr): Use ra_rtx field in cfun->machine.
1599         (d30v_add_gc_roots): Remove d30v_eh_epilogue_sp_ofs and
1600         d30v_return_addr_rtx.
1601
1602         * config/d30v/d30v.h (struct_machine): Move here.
1603         Add eh_epilogue_sp_ofs field.
1604
1605         *config/d30v/d30v.md (epilogue): Initialise eh_epilogue_sp_ofs
1606         field in cfun->machine structure.
1607
1608 Tue Jan  9 21:34:57 2001  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1609
1610         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): When generating pic code,
1611         PIC_OFFSET_TABLE_REGNUM_SAVED is a call_used register.
1612         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
1613
1614 Tue Jan  9 21:25:19 2001  Jeffrey A Law  (law@cygnus.com)
1615
1616         * objc/lang-options.h: Remove bogus reference to
1617         Java trademark.
1618
1619 2001-01-09  Kazu Hirata  <kazu@hxi.com>
1620
1621         * config/h8300/h8300.c (get_shift_alg): Use a struct shift_info to
1622         return the result.
1623
1624 2001-01-09  Alan Lehotsky  <lehotsky@tiac.net>
1625
1626         * reload.c (find_reloads_address): Check for eliminable registers
1627                   when substituting a constant expression for a pseudo.
1628
1629 2001-01-09  Joseph S. Myers  <jsm28@cam.ac.uk>
1630
1631         * c-common.c (enum format_type): Add format_type_error.
1632         (decode_format_type): New function.
1633         (decl_attributes): Use it.
1634         (format_kind_info): Adjust comment.
1635
1636 2001-01-09  David O'Brien  <obrien@BSDi.com>
1637
1638         * config.gcc (*-*-gnu*, i[34567]86-*-elf*, i[34567]86-*-linux*libc1,
1639         i[34567]86-*-linux*, i[34567]86-*-moss*): Specify needed platform specific
1640         files in tm_file.
1641         * config/i386/gnu.h: Don't include required platform specific .h files,
1642         tm.h will do it instead.
1643         * config/i386/i386elf.h: Likewise.
1644         * config/i386/linux.h: Likewise.
1645         * config/i386/moss.h: Likewise.
1646         * config/mips/gnu.h: Likewise.
1647
1648 2001-01-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1649
1650         * config.gcc (powerpc-*-beos*): Include ${tm_file} and rs6000/aix.h.
1651         (rs6000-ibm-aix3.[01]*): Likewise.
1652         (rs6000-ibm-aix3.2.[456789]*, powerpc-ibm-aix3.2.[456789]*): Likewise.
1653         (rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Likewise.
1654         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Likewise.
1655         (rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*): Likewise.
1656         (powerpc-*-sysv*): Include {tm_file}. svr4.h and rs6000/sysv4.h.
1657         (powerpc-*-eabiaix*): Likewise.
1658         (powerpc-*-eabisim*): Likewise.
1659         (powerpc-*-elf*): Likewise.
1660         (powerpc-*-eabi*): Likewise.
1661         (powerpc-*-rtems*): Likewise.
1662         (powerpc-*-linux*libc1): Likewise.
1663         (powerpc-*-linux*): Likewise.
1664         (powerpc-wrs-vxworks*): Likewise.
1665         (powerpcle-wrs-vxworks*): Likewise.
1666         (powerpcle-*-sysv*): Likewise.
1667         (powerpcle-*-elf*): Likewise.
1668         (powerpcle-*-eabisim*): Likewise.
1669         (powerpcle-*-eabi*): Likewise.
1670         (powerpcle-*-solaris2*): Likewise.
1671         * config/rs6000/aix31.h: Delete includes.
1672         * config/rs6000/aix3newas.h: Likewise.
1673         * config/rs6000/aix41.h: Likewise.
1674         * config/rs6000/aix43.h: Likewise.
1675         * config/rs6000/beos.h: Likewise.
1676         * config/rs6000/rtems.h: Likewise.
1677         * config/rs6000/sysv4.h: Likewise.
1678
1679 2001-01-09  Kazu Hirata  <kazu@hxi.com>
1680
1681         * config/h8300/h8300.c (get_shift_alg): Remove an argument cpu.
1682         Change an argument mode of machine_mode to shift_mode of
1683         shift_mode.  Remove an extra error check.
1684         (emit_a_shift): Adopt to the new calling prototype of
1685         get_shift_alg.
1686         (function_prologue): Fix code for a monitor
1687         function.  Support H8/S.
1688         (function_epilogue): Do not output pop for a monitor function.
1689
1690 2001-01-09  Nick Clifton  <nickc@redhat.com>
1691
1692         * config/rs6000/rs6000.c (rs6000_sysv_varargs_p): Delete.
1693         (setup_incoming_varargs): Use sysv_varargs_p field of the
1694         cfun->machine structure.
1695         (struct machine_function): Move to rs6000.h
1696         (rs6000_save_machine_status): Delete.
1697         (rs6000_restore_machine_status): Delete.
1698         (rs6000_init_machine_status): New Function.
1699         (rs6000_free_machine_status): New Function.
1700         (rs6000_init_expanders): Use new functions.
1701
1702         * config/rs6000/rs6000.h (rs6000_sysv_varargs_p): Delete
1703         export.
1704         (struct machine_function): Move here.
1705
1706         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
1707         sysv_varargs_p field of the cfun->machine structure.
1708
1709         * config/rs6000/rs6000-protos.h (rs6000_save_machine_status):
1710         Remove prototype.
1711         (rs6000_restore_machine_status): Remove prototype.
1712
1713 2001-01-09  Richard Henderson  <rth@redhat.com>
1714
1715         * sched-int.h (struct deps): Add max_reg, reg_last_in_use; merge
1716         reg_last_uses, reg_last_sets, reg_last_clobbers into struct deps_reg.
1717         * sched-deps.c (sched_analyze_1): Update uses of struct deps.
1718         (sched_analyze_2, sched_analyze_insn): Likewise.
1719         (sched_analyze, init_deps): Likewise.
1720         (free_deps): Likewise.  Iterate with EXECUTE_IF_SET_IN_REG_SET.
1721         * sched-rgn.c (propagate_deps): Likewise.  Remove max_reg argument.
1722         (compute_block_backward_dependences): Update propagate_deps call.
1723
1724 2001-01-09  Mark Elbrecht  <snowball3@bigfoot.com>
1725
1726         * gcc.c (process_command): Set switches[n_switches].ordering to 0.
1727
1728 2001-01-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1729
1730         * cppinit.c (OPT_MD, OPT_MMD): Restore.
1731         (cpp_handle_option): Handle them.
1732         (cpp_post_options): Ensure one of -M or -MM is specified with
1733         any other -M? option.
1734         (init_dependency_output): Suppress output with -MG.
1735
1736 2001-01-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1737
1738         * cpp.texi: Update.
1739         * invoke.texi: Update.
1740
1741 2001-01-09  Bernd Schmidt  <bernds@redhat.com>
1742
1743         * sh.md (reload_outsf): Generate recognizable patterns for
1744         TARGET_SH3E.
1745
1746 2001-01-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1747
1748         * c-lang.c (lang_hooks): Update.
1749         (lang_init): Rename c_init.
1750         (lang_finish): Remove.
1751         * toplev.c (compile_file): Use lang_hooks for lang_init ()
1752         and lang_finish ().
1753         * toplev.h (lang_hooks): Add init () and finish ().
1754         * tree.h (lang_init, lang_finish): Remove.
1755         * cp/tree.h (lang_init, lang_finish): Remove.
1756         * cp/decl2.c (cxx_post_options, lang_hooks): Move to cp/lex.c.
1757         * cp/lex.c (cxx_init, cxx_finish, cxx_post_options,
1758         lang_hooks): New.
1759         (lang_init, lang_finish): Remove.
1760         * f/com.c (lang_init, lang_finish): Rename f_init, f_finish.
1761         (lang_hooks): Update.
1762         * java/lang.c (lang_init): Rename java_init.
1763         (lang_finish): Remove.
1764         (lang_hooks): Update.
1765         * objc/objc-act.c (lang_init): Rename objc_init.
1766         (lang_finish): Remove.
1767         (lang_hoooks): Update.
1768
1769 20001-01-09  Graham Stott  <grahams@redhat.com>
1770
1771         * cppfiles.c (_cpp_execute_include): Move `len` initialisation
1772         after `ptr` is initialised.
1773
1774 2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
1775
1776         * config/sh/sh.h (STATIC_CHAIN_REGNUM): Change from r13 to r3.
1777         (INITIALIZE_TRAMPOLINE): Adjust accordingly.
1778         * config/sh/sh.c (sh_expand_prologue): Use r1 as temporary for
1779         stack adjusts, instead of r3.
1780
1781 2001-01-09  Michael Hayes  <mhayes@redhat.com>
1782
1783         * flow.c (flow_loop_scan): Break out of ...
1784         (flow_loops_find) ... here.
1785         * basic-block.h (flow_loop_scan): New.
1786         (LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES): Add.
1787         (LOOP_EDGES, LOOP_EXITS_DOMS, LOOP_ALL): Redefine.
1788
1789 2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
1790
1791         * cppinit.c (cpp_cleanup): NULLify macro_buffer and zero
1792         macro_buffer_len.
1793         * cppmacro.c (cpp_macro_definition): Reset macro_buffer_len when
1794         realloc()ing macro_buffer.
1795
1796         * hwint.h (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Use long long
1797         if it's wider than long and the target's long is wider than the
1798         host's.
1799
1800 2001-01-09  Mark Mitchell  <mark@codesourcery.com>
1801
1802         Remove support for using UWIN as a host machine.
1803         * configure.in: Issue an error message.
1804         * configure: Regenerated.
1805         * config.gcc: Remove xm_* UWIN configury.
1806         * config/i386/xm-uwin.h: Remove.
1807
1808 2001-01-08  Nick Clifton  <nickc@redhat.com>
1809
1810         * config/v850/v850.c (ra_rtx): Delete.
1811         (v850_save_machine_status): Delete.
1812         (v850_restore_machine_status): Delete.
1813         (v850_init_machine_status): New function.
1814         (v850_mark_machine_status): New function.
1815         (v850_free_machine_status): New function.
1816         (v850_return_addr): Use ra_rtx field in machine structure.
1817         (v850_init_expanders): Use new functions.
1818
1819         * config/v850/v850-protos.h: Fix prototypes for v850_output_*
1820         * config/v850/v850.c: Change arguments to v850_output+* functions
1821         to take a const char *, to avoid compile time warning.
1822         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Undefine, not needed.
1823         (USER_LABEL_PREFIX): Redefine.
1824
1825 2000-01-08  Jim Wilson  <wilson@redhat.com>
1826
1827         * sched-rgn.c (BITSET_ADD, BITSET_REMOVE, bitset_member): Cast
1828         1 to unsigned HOST_WIDE_INT before left shift.
1829
1830 2001-01-08  Nick Clifton  <nickc@redhat.com>
1831
1832         * config/arm/arm.c (arm_mark_machine_status): Check to see if
1833         the machine structure has been allocated.
1834         (arm_free_machine_status): New function: Free the machine
1835         specific function structure.
1836
1837 2001-01-08  Richard Henderson  <rth@redhat.com>
1838
1839         * jump.c (simplejump_p): Revert last change.
1840
1841 2001-01-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1842
1843         * cppinit.c (init): Rename init_library.
1844         (cpp_create_reader): Update.
1845         * gcc.c (cpp_options): If -o given, use it as the target of
1846         any -M options.
1847
1848 2001-01-08  Richard Earnshaw  <rearnsha@arm.com>
1849
1850         * arm.c (arm_arch5e): New variable.
1851         (all_cores): XScale is a 5TE device.
1852         (arm_override_options): Set arm_arch5e.
1853         (arm_init_builtins): __builtin_prefetch is in arch5e.
1854         * arm.h (arm_arch5e): Declare it.
1855
1856         * arm.h (PREDICATE_CODES): Add arm_hard_register_operand.
1857
1858         * arm.md (define_constants): Add defines for UNSPEC and
1859         UNSPEC_VOLATILE insns.  Update all users.
1860         (define_constants): Add constants for IP_REGNUM, SP_REGNUM, PC_REGNUM.
1861         * arm.c (multi_register_push, note_invalid_constants)
1862         (emit_multi_reg_push, emit_sfm, expand_prologue): Use constants.
1863         * arm.h (SP_REGNUM, IP_REGNUM, PC_REGNUM): Delete defines.
1864         (STACK_POINTER_REGNUM): Define in terms of SP_REGNUM.
1865
1866 Mon Jan  8 16:14:56 MET 2001  Jan Hubicka  <jh@suse.cz>
1867
1868         * jump.c (jump_optimize_1): Use reversed_comparison_code
1869         instead of can_reverse_comparison_p.
1870         (jump_back_p): Likewise.
1871         (invert_exp_1): Likewise.
1872         (thread_jumps): Likewise.
1873         * simplify-rtx.c (simplify_unary_operation): Likewise.
1874         (simplify_ternary_operation): Likewise.
1875         * cse.c (find_comparison_args): Convert to use
1876         can_reverse_comparison_p.
1877         (record_jump_equiv): Likewise.
1878
1879 2001-01-08  Richard Earnshaw  <rearnsha@arm.com>
1880
1881         * arm.h (HARD_REGNO_RENAME_OK): Delete.
1882         (EPILOGUE_USES): Define.
1883         (INITIAL_ELIMINATION_OFFSET): Current prologue code does not
1884         automatically stack the LR if it isn't live.
1885
1886 Mon Jan  8 13:46:02 MET 2001  Jan Hubicka  <jh@suse.cz>
1887
1888         * i386.c (ix86_expand_int_movcc): Take care to reverse fp conditions
1889         properly.
1890
1891 Sun Jan  7 18:37:43 2001  Mark P Mitchell  <mark@codesourcery.com>
1892
1893         * ggc-page.c (max_alignment): New structure.
1894         (MAX_ALIGNMENT): New macro.
1895         (init_ggc): Use it to round up the sizes in the
1896         extra_order_size_table.
1897
1898 2001-01-07  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1899
1900         * config/rs6000/rs6000.h (EPILOGUE_USES): New, mark link register
1901         after reload.
1902
1903 2001-01-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1904
1905         * builtins.def (BUILT_IN_FPRINTF): New entry.
1906
1907         * c-common.c (c_expand_builtin_fprintf): New function.
1908         (init_function_format_info): Handle __builtin_fprintf.
1909         (c_common_nodes_and_builtins): Declare fprintf/__builtin_fprintf.
1910         (c_expand_builtin): Handle BUILT_IN_FPRINTF.
1911
1912         * c-decl.c (duplicate_decls): Adjust comment.
1913
1914         * extend.texi (fprintf): Document new builtin.
1915
1916 2001-01-07  Richard Henderson  <rth@redhat.com>
1917
1918         * jump.c (simplejump_p): Recognize any single_set jump
1919         of the proper form.
1920
1921 2001-01-07  Richard Henderson  <rth@redhat.com>
1922
1923         * configure.in (slibdir): Accept an --with-slibdir option.
1924         Use "test" not "[" in configure.  Default to $(libdir).
1925
1926         * config/t-linux (SHLIB_INSTALL): Double quote slibdir;
1927         fix typo in rm -f.
1928         * config/t-aix43 (SHLIB_INSTALL): Likewise.
1929         * config/alpha/t-osf4 (SHLIB_INSTALL): Likewise.
1930         (SHLIB_LINK): Create links for the soname.
1931         * config/mips/t-iris6: Likewise.
1932         * config/sparc/t-slibgcc: Likewise.
1933         * config/sparc/t-slibgcc-sld: Likewise.
1934
1935 2001-01-07  Jakub Jelinek  <jakub@redhat.com>
1936
1937         * config/i386/i386.c (constant_call_address_operand): Accept
1938         (const (plus (symbol_ref) (const_int))).
1939         * config/i386/i386.h (PREDICATE_CODES): Add CONST for
1940         constant_call_address_operand.
1941
1942 2001-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
1943
1944         * libgcc2.h (W_TYPE_SIZE): Fix case where MIN_UNITS_PER_WORD == 1
1945         and LONG_LONG_TYPE_SIZE > 32.
1946
1947 2001-01-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1948
1949         * jump.c (reversed_comparison_code_parts): Fix typo introduced by
1950         the previous change.
1951
1952 Sun Jan  7 19:37:48 MET 2001  Jan Hubicka  <jh@suse.cz>
1953
1954         * jump.c (reversed_comparison_code_parts, reversed_comparison_code):
1955         New.
1956         (can_reverse_comparison_p): Rewrite to use reversed_comparison_code.
1957         (reverse_condition_maybe_unordered): Abort on unsigned comparisons.
1958         * rtl.h (reversed_comparison_code_parts, reversed_comparison_code):
1959         Declare.
1960
1961 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1962
1963         * fix-header.c (read_scan_file): s/pfile/scan_in/.
1964
1965 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1966
1967         * c-lang.c (c_post_options): Call cpp_post_options.
1968         * objc/objc-act.c (objc_post_options): Similarly.
1969         * cppmain.c (main): Similarly.
1970         * fix-header.c (read_scan_file): Similarly.
1971         * cppinit.c (cpp_start_read): Move option consistency checks
1972         to cpp_post_options.  Don't call init_dependency_output.
1973         If needed, add default target and main file dependency.
1974         (OPT_MD, OPT_MMD): Remove.
1975         (OPT_MF): New.
1976         (cpp_handle_option): Update for OPT_* changes.
1977         (cpp_post_options): New.
1978         (init_dependency_output): Command line -MF overrides environment
1979         variables.  Don't set default target etc.  Suppress output
1980         if dependencies are going to stdout.
1981         (print_help): Update.
1982         * cpplib.h (cpp_post_options): New.
1983         * gcc.c (cpp_options): Update for -MD, -MMD, -MF.
1984
1985 Sun Jan  7 14:44:19 MET 2001  Jan Hubicka  <jh@suse.cz>
1986
1987         * jump.c (comparison_dominates_p): Support unordered compares.
1988
1989 Sun Jan  7 14:39:07 MET 2001  Jan Hubicka  <jh@suse.cz>
1990
1991         * simplify-rtx.c (simplify_relational_operation): Always simplify
1992         ORDERED and UNORDERED when FLAG_FAST_MATH.  Handle properly UNLE
1993         and UNGE.
1994
1995 Sun Jan  7 14:35:13 MET 2001  Jan Hubicka  <jh@suse.cz>
1996
1997         * combine.c (combine_simplify_rtx): Recognize the unordered compares.
1998         (nonzero_bits): Likewise.
1999         (simplify_comparison): Likewise.
2000         (num_sign_bit_copies): Likewise; return more sane value depending
2001         on STORE_FLAG_VALUE.
2002         (known_cond): Do not assume EQ to be always true for equivalent
2003         operands.
2004
2005 Sun Jan  7 14:31:57 MET 2001  Jan Hubicka  <jh@suse.cz>
2006
2007         * cse.c (fold_rtx): Handle unordered comparisons.
2008
2009 Sun Jan  7 13:49:19 MET 2001  Jan Hubicka  <jh@suse.cz>
2010
2011         * rtlanal.c (set_of_1): New static function.
2012         (reg_set_last_1, reg_set_p_1, reg_set_reg, reg_set_flag,
2013          reg_set_last_unknown, reg_set_last_value, reg_set_last_first_regno,
2014          reg_set_last_last_regno): Remove.
2015         (set_of): New global function.
2016         (set_of_data): New structure.
2017         (reg_set_p, reg_set_last): Revamp for set_of.
2018         * rtl.h (set_of): New.
2019
2020 2001-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2021
2022         * c-common.c (c_common_nodes_and_builtins): Add _Exit builtin.
2023         * extend.texi: Document _Exit builtin.
2024
2025 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2026
2027         * (initialize, initialize_builtins,
2028         initialize_dependency_output, initialize_standard_includes):
2029         Rename s/initialize/init. Update.
2030         (init_dependency_output): Move to after
2031         cpp_handle_options, the correct location temporally at least.
2032         (opt_comp): Move next to init (), its caller.  Fix prototype.
2033         (init): Make "initialized" local scope.
2034         (cpp_create_reader): Always call init ().
2035         (cpp_start_read): Update.
2036         (output_deps): New function, broken out of cpp_finish.
2037         (cpp_finish): Break out output_deps.
2038
2039 2001-01-07  Richard Henderson  <rth@redhat.com>
2040
2041         * collect2.c (COFF specific stuff): Revert 12-06 patch
2042         to prototype system functions.
2043
2044 2001-01-07  Michael Hayes  <mhayes@redhat.com>
2045
2046         * hard-reg-set.h: Add multiple include guard.
2047         * basic-block.h (struct loop): Add `sink' field.
2048         * loop.h: Include sbitmap.h, hard-reg-set.h, and basic-block.h.
2049         (emit_iv_add_mult): Delete.
2050         (loop_iv_add_mult_hoist, loop_iv_add_mult_sink): Define.
2051         (loop_iv_add_mult_emit_before, loop_insn_sink): Define.
2052         (unroll_loop): Remove end_insert_before argument.
2053         * loop.c (loop_givs_rescan): Remove end_insert_before argument.
2054         (maybe_eliminate_biv_1): Likewise.
2055         (emit_iv_add_mult): Delete.
2056         (gen_add_mult, loop_regs_update): New.
2057         (loop_insn_emit_after, loop_insn_emit_before): New.
2058         (loop_insn_sink, loop_insn_sink_or_swim): New.
2059         (emit_iv_add_mult): Delete.
2060         (scan_loop): Set loop->sink.
2061         (loop_givs_reduce): Use loop_insn_sink and its ilk.
2062         (loop_givs_rescan, strength_reduce, check_dbra_loop): Likewise.
2063         (maybe_eliminate_biv_1): Likewise.
2064         (maybe_eliminate_biv_1): Add basic block argument.
2065         * unroll.c (unroll_loop): Remove end_insert_before argument.
2066         (find_splittable_regs): Likewise.
2067         (find_splittable_regs): Use loop_insn_sink and its ilk.
2068         (find_splittable_givs, final_biv_value, final_giv_value): Likewise.
2069
2070 2001-01-07  Michael Hayes  <mhayes@redhat.com>
2071
2072         * loop.h (loop_insn_hoist): New prototype.
2073         * loop.c (loop_insn_hoist, loop_insn_emit_before): New.
2074         (move_movables, loop_givs_rescan): Use loop_insn_hoist.
2075         (check_dbra_loop, load_mems): Likewise.
2076         * unroll.c (unroll_loop, find_splittable_regs): Likewise.
2077         (find_splittable_givs): Likewise.
2078
2079 2001-01-07  Michael Hayes  <mhayes@redhat.com>
2080
2081         * loop.c (emit_iv_add_mult): Use single_set to examine new insn.
2082
2083 2001-01-07  Richard Henderson  <rth@redhat.com>
2084
2085         * sched-rgn.c (is_cfg_nonregular): Fix thinko's last change.
2086
2087 2001-01-07  Richard Henderson  <rth@redhat.com>
2088
2089         * Makefile.in (DRIVER_DEFINES): Define ENABLE_SHARED_LIBGCC and
2090         NO_SHARED_LIBGCC_MULTILIB as required for the target.
2091         * gcc.c (init_spec): Massage the existing libgcc_spec into a
2092         variant that handles a shared libgcc.
2093         (process_command): Always validate -{static,shared}-libgcc.
2094         (do_spec_1): New 'M' case.
2095         * invoke.text (Link Options): Document -{static,shared}-libgcc.
2096
2097 2001-01-07  Richard Henderson  <rth@redhat.com>
2098
2099         * Makefile.in (slibdir): New variable.
2100         (libgcc.mk): Pass SHLIB_INSTALL to mklibgcc.
2101         (installdirs): Create slibdir.
2102         (install-libgcc, install-multilib): Defer to libgcc.mk.
2103         * configure.in (slibdir): Substitute.
2104         * mklibgcc.in (install): New target.
2105
2106         * config/t-linux (SHLIB_LINK): Create links for the soname.
2107         (SHLIB_INSTALL): New.
2108         * config/alpha/t-osf4 (SHLIB_INSTALL): New.
2109         * config/mips/t-iris6 (SHLIB_INSTALL): New.
2110         * config/rs6000/t-aix43 (SHLIB_INSTALL): New.
2111         * config/sparc/t-slibgcc (SHLIB_INSTALL): New.
2112         * config/sparc/t-slibgcc-sld (SHLIB_INSTALL): New.
2113
2114 2001-01-07  Richard Henderson  <rth@redhat.com>
2115
2116         * config/rs6000/aix.h (LINK_LIBGCC_SPECIAL_1): New.
2117         * config/rs6000/rs6000.h (LIBGCC_SPEC): Remove.
2118         * config/rs6000/sysv4.h (LIBGCC_SPEC): Remove.
2119
2120 2001-01-07  Michael Hayes  <mhayes@redhat.com>
2121
2122         * loop.c (count_loop_regs_set): Delete.
2123         (load_mems_and_recount_loop_regs_set): Delete.
2124         (loop_regs_scan): Merge common code from count_loop_regs_set,
2125         scan_loop, and load_mems_and_recount_loop_regs_set.
2126         (scan_loop): Call load_mems directly and loop_regs_scan
2127         again if new registers created.
2128
2129 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2130
2131         * toplev.c (main): Call the front-end specific post_options
2132         hook if one is given.
2133         * toplev.h (struct_lang_hooks, lang_hooks): New.
2134         * c-lang.c (c_post_options, lang_hooks): Implement lang_hooks
2135         for the C front end.
2136         * cp/decl2.c (cxx_post_options, lang_hooks): Implement
2137         lang_hooks for the C++ front end.
2138         * objc/objc-act.c (objc_post_options, lang_hooks): Implement
2139         lang_hooks for the ObjC front end.
2140         * f/com.c (lang_hooks): Hooks for the Fortran front end.
2141         * java/lang.c (lang_hooks): Hooks for the Java front end.
2142
2143 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2144
2145         * c-lex.c (init_c_lex): Request #define / #undef callbacks
2146         for verbose DWARF[2] debugging.
2147         (cb_define, cb_undef): The new callbacks.
2148         * toplev.h (debug_define, debug_undef): Make const correct.
2149         * toplev.c (debug_define, debug_undef): Similarly.  Do not
2150         perform the verbosity tests here anymore.
2151
2152 2001-01-07  Alexandre Oliva  <aoliva@redhat.com>
2153
2154         * reload.c (subst_reloads): Take INSN argument.  When
2155         replacing a LABEL_REF in a JUMP_INSN, add a REG_LABEL note.
2156         * reload.h (subst_reloads): Adjust prototype.
2157         * reload1.c (reload_as_needed): Pass INSN to subst_reloads.
2158         * jump.c (mark_all_labels): Canonicalize any REG_LABEL notes
2159         present in JUMP_INSNs and copy them to JUMP_LABEL.
2160         * flow.c (find_label_refs, find_basic_blocks_1): Skip
2161         JUMP_INSNs and insns with REG_LABELs that are followed by
2162         JUMP_INSNs with the same REG_LABEL.
2163         * sched-rgn.c (is_cfg_nonregular): Likewise.
2164         * rtlanal.c (computed_jump_p): Make it false if a REG_LABEL
2165         note is available.
2166         * unroll.c (unroll_loop): Look for REG_LABEL notes in
2167         JUMP_INSNs too.
2168         * rtl.texi (REG_LABEL): Document usage in JUMP_INSNs.
2169
2170 2001-01-06  Richard Henderson  <rth@redhat.com>
2171
2172         * loop.c (scan_loop): Use xcalloc for the regs array.
2173         (load_mems_and_recount_loop_regs_set): Zero the new memory
2174         received from xrealloc.
2175
2176 2001-01-06  Neil Booth  <neil@daikokuya.demon.co.uk>
2177
2178         * mkdeps.c (deps_add_dep): Fix vector re-allocation.
2179
2180 Sat Jan  6 00:09:34 2001  J"orn Rennecke <amylaar@redhat.com>
2181
2182         * integrate.c (copy_rtx_and_substitute): When copying
2183         an ignored return value, strip REG_FUNCTION_VALUE_P.
2184
2185 2001-01-06  Michael Hayes  <mhayes@redhat.com>
2186
2187         * loop.c (debug_biv, debug_giv): New.
2188         (loop_biv_dump): Break out from ...
2189         (record_biv): ... here.
2190         (loop_giv_dump): Break out from ...
2191         (record_giv): ... here.
2192         (loop_bivs_check): Use print_simple_rtl.
2193         * unroll.c (loop_iterations): Use print_simple_rtl.
2194
2195 2000-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2196
2197         * pa.md (return, return_internal): Modify patterns to prevent regrename
2198         mucking with the return pointer.
2199
2200 2001-01-05  Richard Henderson  <rth@redhat.com>
2201
2202         * dwarf2out.c (mem_loc_descriptor) [case MEM]: Revert 10-31 change.
2203
2204 Fri Jan  5 16:34:18 2001  Nick Clifton  <nickc@redhat.com>
2205
2206         * config/v850/lib1funcs.asm: Replace __mulsi3 routine with faster
2207         version supplied by Matteo Frigo.
2208
2209 2001-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2210
2211         * cpp.texi: Update for -MQ.
2212         * cppinit.c (cpp_create_reader): Always create pfile->deps.
2213         (cpp_cleanup): Always free pfile->deps.
2214         (initialize_dependency_output): Don't create pfile->deps.
2215         (cpp_handle_option): Similarly.
2216         (OPT_MQ): New.
2217         * gcc.c (cpp_options): Handle -MQ.
2218         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ.
2219         * mkdeps.c (base_name): Remove.
2220         (deps_init): Don't allocate vector space until it's needed.
2221         (deps_free): Only free vectors if allocated.
2222         (deps_add_target, deps_add_dep): Update for initial allocation.
2223         (deps_add_default_target): Don't strip to the base_name.
2224
2225 2001-01-05  DJ Delorie <dj@redhat.com>
2226
2227         * config/v850/v850.h (RETURN_ADDR_RTX): Define.
2228         (INIT_EXPANDERS): Define.
2229
2230         * config/v850/v850.c (struct machine_function): Define.
2231         (v850_save_machine_status): New function.
2232         (v850_restore_machine_status): New function.
2233         (v850_return_addr): New function.
2234         (v850_init_expanders): New function.
2235
2236         * config/v850/v850-protos.h: Add prototypes for v850_return_addr
2237         and v850_init_expanders.
2238
2239 2001-01-05  Zack Weinberg  <zack@wolery.stanford.edu>
2240
2241         * cpplib.h (struct cpp_reader): Add help_only field.
2242         * cppinit.c (COMMAND_LINE_OPTIONS): Add OPT_version.
2243         (cpp_handle_option): Set pfile->help_only if we see -h,
2244         --help, -target-help, or --version.  Print version string but
2245         do not set help_only if we see -v or -version.  Make text
2246         printed by -v match that printed by (-)-version.
2247
2248         * cppmain.c (main): Exit after option parsing if
2249         pfile->help_only is true.
2250
2251         * toplev.c (independent_decode_option): Call print_version,
2252         then exit, if we see --version (but not -version).
2253         (print_version): Split lengthy message into two lines.
2254
2255 2001-01-05  Nick Clifton  <nickc@redhat.com>
2256
2257         * config/v850/v850.c (v850_encode_data_area): Use alloca to create
2258         temporary string for initialisation before calling ggc_alloc_string.
2259
2260 2001-01-06  Michael Hayes  <mhayes@redhat.com>
2261
2262         * rtl.h (print_simple_rtl): New.
2263         * print-rtl.c (print_simple_rtl): New.
2264         (flag_simple): New.
2265         (print_rtx): Disable printing of flags and modes, etc.,
2266         if `flag_simple` nonzero.
2267
2268 2001-01-05  Zack Weinberg  <zack@wolery.stanford.edu>
2269
2270         * function.c (fixup_var_refs): Use push_to_full_sequence where
2271         possible.
2272
2273 2001-01-05  Michael Meissner  <meissner@redhat.com>
2274
2275         * flags.h (flag_reorder_blocks): Add declaration.
2276         (flag_rename_block): Ditto.
2277
2278 2001-01-05  DJ Delorie  <dj@redhat.com>
2279
2280         * function.c (reorder_blocks): Make sure the flags are all reset
2281         before using them to mark blocks, else a second invocation will
2282         corrupt the block chain.
2283         (reorder_blocks_0): New, resets the flags.
2284
2285 Fri Jan  5 20:34:06 2001  J"orn Rennecke <amylaar@redhat.com>
2286
2287         * cse.c (find_comparison_args): Stop if the argument is known to
2288         be constant.
2289
2290 2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
2291
2292         * config/sh/sh.md (movdf): When splitting load into pair of
2293         registers, don't clobber the register used in the address too
2294         early.
2295
2296 2001-01-05  Jeffrey Oldham  <oldham@codesourcery.com>
2297
2298         * varasm.c (mark_constant_pool): Improve initial comments.
2299         (mark_constants): Move marking of constants to mark_constant.
2300         (mark_constant): New function to recursively mark all constants
2301         referred to by a constant.
2302
2303 2001-01-05  Catherine Moore  <clm@redhat.com>
2304
2305         * dbxout.c ((dbxout_parms): Handle invisible ref where decl is a REG.
2306
2307 2001-01-05  Phil Edwards  <pme@sources.redhat.com>
2308
2309         * cp/lang-options.h:  Bring comment in line with reality.
2310         * f/lang-options.h:  Likewise.
2311         * java/lang-options.h:  Likewise.
2312         * objc/lang-options.h:  Likewise.
2313         * ch/lang-options.h:  Likewise.
2314         * f/g77.texi:  And update the manual.
2315
2316 2001-01-05  Marek Michalkiewicz  <marekm@linux.org.pl>
2317             Denis Chertykov  <denisc@overta.ru>
2318
2319         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Prototype.
2320         * config/avr/avr.c (avr_peep2_scratch_safe): New function.
2321         * config/avr/avr.md (all peepholes that request a scratch register):
2322         Call it, FAIL the peephole if not safe (in interrupt functions).
2323
2324 2001-01-05  Mark Mitchell  <mark@codesourcery.com>
2325
2326         * ggc-page.c (NUM_EXTRA_ORDERS): Hardwire to zero for now.
2327
2328 2001-01-05  Joseph S. Myers  <jsm28@cam.ac.uk>
2329
2330         * builtins.def (BUILT_IN_CONJ, BUILT_IN_CREAL, BUILT_IN_CIMAG):
2331         Define.
2332         * builtins.c (expand_builtin): Abort on BUILT_IN_CONJ,
2333         BUILT_IN_CREAL and BUILT_IN_CIMAG.
2334         * c-common.c (c_common_nodes_and_builtins): Create builtin conjf,
2335         conj, conjl, crealf, creal, creall, cimagf, cimag and cimagl.
2336         (expand_tree_builtin): Handle BUILT_IN_CONJ, BUILT_IN_CREAL and
2337         BUILT_IN_CIMAG.
2338         * extend.texi: Document these builtins.
2339
2340 2001-01-05  Daniel Berlin  <dberlin@redhat.com>
2341
2342         * c-common.c (lang_get_alias_set): Say we know nothing of
2343         VECTOR_TYPE aliasing.
2344
2345         * dwarf2out.c (is_base_type): Handle VECTOR_TYPE properly.
2346
2347 2001-01-05  Bruce Korb  <bkorb@gnu.org>
2348
2349         * fixinc/mkfixinc.sh(vax-*-bsd): convert exit and atexit calls to
2350         their x* equivalent versions for atexit-less systems
2351         * fixinc/fixincl.c(main): do not return from main() on atexit-less
2352         systems (or any other system any more).
2353
2354 2001-01-05  Richard Earnshaw  <rearnsha@arm.com>
2355
2356         * arm.md (ldmsi_postinc): Avoid use of match_dup between input and
2357         output operands.  Use arm_hard_register_operand for operand 4.
2358         (stmsi_postinc): Similarly.
2359         (ldmsi): Use arm_hard_register_operand for opernand 2.
2360         (stmsi): Similarly.
2361         * arm.c (arm_hard_register_operand): New function.
2362         * arm-protos.h (arm_hard_register_operand): Prototype it.
2363
2364         * arm.h (HARD_REGNO_RENAME_OK): Define.
2365
2366 Fri Jan  5 16:29:49 MET 2001  Jan Hubicka  <jh@suse.cz>
2367
2368         * simplify-rtx.c (cfc_args): add "unordered" field.
2369         (check_fold_consts): Set unordered field.
2370         (simplify_relational_operation): Simplify the unordered
2371         comparisons.
2372
2373         * reg-stack.c (swap_rtx_condition): Ensure that the transformation
2374         is valid.
2375
2376         * emit-rtl.c (try_split): Fix code to mark labels.
2377         * jump.c (mark_jump_label): Make global.
2378         * rtl.h (mark_jump_label): Declare.
2379
2380         * predict.c (estimate_probability): Handle unordred comparisons.
2381
2382 2001-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
2383
2384         * cpp.texi: Update for -MP.  Clarify behaviour of -MT.
2385         * cppinit.c (initialize_dependency_output):  Update.
2386         (cpp_finish): Output dummy targets for -MP.
2387         (OPT_MP): New.
2388         (cpp_handle_option): Handle -MP.  Don't quote -MT options.
2389         * cpplib.h (struct cpp_options): Add deps_phony_targets.
2390         * gcc.c (cpp_options): Update to handle -MP.
2391         * mkdeps.c (deps_add_target, deps_add_default_target): Update
2392         to quote only the default target.
2393         (deps_phony_targets): Insert a preceding newline.  Rename from
2394         deps_dummy_targets for consistency.
2395         * mkdeps.h: Update
2396
2397 2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
2398
2399         * calls.c (emit_library_call_value_1): Support
2400         INIT_CUMULATIVE_LIBCALL_ARGS.
2401         * tm.texi (INIT_CUMULATIVE_LIBCALL_ARGS): Document it.
2402
2403 2001-01-04  Richard Henderson  <rth@redhat.com>
2404
2405         * c-decl.c (finish_struct): Detect flexible array members
2406         used in an inappropriate context.
2407         * c-typeck.c (really_start_incremental_init): Special case
2408         constructor_max_index for zero length arrays.
2409         (pop_init_level): Allow initialization of flexible array
2410         members.  Deprecate initialization of zero length arrays.
2411         Don't issue missing initializer warning for flexible array
2412         members or zero length arrays.
2413         (process_init_element): Don't dereference null DECL_SIZE.
2414         * varasm.c (array_size_for_constructor): Return a HOST_WIDE_INT.
2415         Don't abort for empty constructors.  Use size_binop
2416         (output_constructor): Add commentary regarding zero length
2417         array futures.  Abort if we try to initialize an array of
2418         unspecified length with a non-empty constructor in the middle
2419         of a structure.
2420
2421         * extend.texi (Zero Length): Update and clarify documentation
2422         on static initialization.
2423
2424 2001-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2425
2426         * config/c4x/c4x.c (c4x_expand_prologue): Don't compile an ISR
2427         with more than 32767 words of local storage.
2428
2429 2001-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
2430
2431         * config/c4x/c4x.c (c4x_init_builtins): Remove builtin support
2432         for 'abs', 'labs', and 'fabs'.
2433         (c4x_expand_builtin): Likewise.
2434         * config/c4x/c4x.h (enum c4x_builtins): Likewise.
2435
2436 2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
2437
2438         * config/sh/sh.md (prget, prset): New insn types.
2439         (return delay slot): Dont' allow prset.
2440         (call, sfunc delay slot): Don't allow prget.
2441         (movsi_i, movsi_ie, movsi_i_lowpart): Create separate alternatives
2442         for prset and prget.
2443
2444 2001-01-05  Michael Hayes  <mhayes@redhat.com>
2445
2446         * loop.h (struct loop_reg): New.
2447         (struct loop_regs): Change to use array of `struct loop_reg'.
2448         * loop.c: Replace assortment of varrays with single regs array.
2449         (count_one_set): Delete may_not_move array argument
2450         and use regs array instead.  All caller's changed.
2451         (count_loop_regs_set): Delete may_not_move and single_usage
2452         arguments and use regs array instead.  All caller's changed.
2453         (find_single_use_in_loop): Replace usage array argument with pointer
2454         to regs structure.  All caller's changed.
2455         (loop_optimize): Delete `moved_once' array.
2456
2457 2001-01-05  Michael Hayes  <mhayes@redhat.com>
2458
2459         * loop.c (prescan_loop): Set loop_info->has_nonconst_call.
2460         Use it instead of loop_info->has_call for scanning loop mems.
2461         (check_dbra_loop): Replace loop_info->has_call test with
2462         loop_info->has_nonconst_call.
2463
2464 2000-01-04  Matthew Hiller  <hiller@redhat.com>
2465
2466         * config/sh/sh.h (EPILOGUE_USES): Recognize fpscr as epilogue-used
2467         for TARGET_SH3E.
2468
2469 2001-01-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2470
2471         * fold-const.c (fold): When folding a CONJ_EXPR of a COMPLEX_CST,
2472         use TREE_REALPART and TREE_IMAGPART instead of TREE_OPERAND.
2473
2474 2001-01-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2475
2476         * c-common.c (SIZE_TYPE, WCHAR_TYPE): Define.
2477         (flag_short_double, flag_short_wchar): Define.
2478         (c_common_nodes_and_builtins): Create many tree nodes shared
2479         between C and C++ here instead of in cp/decl.c and ...
2480         * c-decl.c (init_decl_processing): ... here.
2481         (SIZE_TYPE, WCHAR_TYPE): Don't define.
2482         (flag_short_double, flag_short_wchar): Don't define.
2483         (record_builtin_type): New function.
2484         (build_void_list_node): New function.
2485         * c-common.h (flag_short_double, flag_short_wchar,
2486         record_builtin_type, build_void_list_node): Declare.
2487
2488 Thu Jan  4 21:09:47 2001  J"orn Rennecke <amylaar@redhat.com>
2489
2490         * integrate.c (expand_inline_function): Don't put a virtual
2491         register into the reg map.
2492
2493         * function.c (fixup_var_refs_1): If force_operand didn't put
2494         the address into the target, move it there.
2495
2496 2001-01-04  Mark Mitchell  <mark@codesourcery.com>
2497
2498         Special-case tree_decl/tree_list allocations.
2499         * ggc-page.c (OBJECT_PER_PAGE): Reimplement.
2500         (OBJECT_SIZE): New macro.
2501         (NUM_EXTRA_ORDER): Likewise.
2502         (extra_order_size_table): New variable.
2503         (NUM_ORDERS): New macro.
2504         (objects_per_page_table): New variable.
2505         (object_size_table): New variable.
2506         (G.pages): Use NUM_ORDERS to bound the array.
2507         (G.page_tails): Likewise.
2508         (DIV_ROUND_UP): Remove.
2509         (BITMAP_SIZE): Use CEIL, instead of DIV_ROUND_UP.
2510         (alloc_page): Use OBJECT_SIZE.
2511         (size_lookup): Don't make it const.
2512         (ggc_alloc): Use OBJECT_SIZE.
2513         (ggc_set_mark): Likewise.
2514         (ggc_get_size): Likewise.
2515         (init_ggc): Set up the object_size_table, objects_per_page_table,
2516         and adjust size_lookup.
2517         (ggc_recalculate_in_use_p): Use CEIL, not DIV_ROUND_UP.
2518         (ggc_pop_context): Use NUM_ORDERS.
2519         (clear_marks): Likewise.
2520         (sweep_pages): Likewise.
2521         (poison_pages): Likewise.
2522         (ggc_print_statistics): Use OBJECT_SIZE.
2523
2524 Thu Jan  4 15:54:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2525
2526         * varasm.c (output_constructor): Use HOST_WIDE_INT for sizes.
2527         Only call array_size_for_constructor if last field and array type
2528         with no upper bound.
2529
2530 2001-01-04  Philip Blundell  <philb@gnu.org>
2531
2532         * config/arm/arm.c (arm_gen_constant): Prefer to emit constants
2533         from bit 31 downwards, if this requires no more insns.
2534         (count_insns_for_constant): New helper function for above.
2535
2536 2001-01-04  Alexandre Oliva  <aoliva@redhat.com>
2537
2538         * gencodes.c (output_predicate_decls): Remove empty initializer.
2539
2540 2001-01-04  Mark Mitchell  <mark@codesourcery.com>
2541
2542         * tree.c (copy_node): Remove documentation about obstacks.
2543         (buidl1): Check that nobody tries to build 2-argument nodes this
2544         way.
2545
2546 2001-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2547
2548         * sparc.h (PREDICATE_CODES): Delete fp_sethi_p, fp_mov_p and
2549         fp_high_losum_p.
2550
2551         * gencodes.c (output_predicate_decls): Fill empty initializer
2552         braces.
2553
2554 2001-01-04  Jakub Jelinek  <jakub@redhat.com>
2555
2556         * tradcpp.c (deps_file, print_deps_missing_files): New variables.
2557         (main): Handle -MG, -MD, -MMD.  Bail out if -MG is given without -M
2558         or -MM.
2559         (do_include): Handle missing headers like cpp0.
2560         * cppfiles.c (_cpp_execute_include): Don't prefix absolute header
2561         paths with first include pathname.  Don't strcat to uninitialized
2562         string.
2563
2564 2001-01-04  Bernd Schmidt  <bernds@redhat.com>
2565
2566         * regrename.c (regrename_optimize): Don't rename from frame pointer
2567         if frame_pointer_needed.
2568         (do_replace): Don't set ORIGINAL_REGNO to a hard register number.
2569         * config/ia64/ia64.c (emit_all_group_insn_barriers): New function.
2570         (ia64_reorg): Use it instead of scheduling if ! optimize.
2571         (errata_emit_nops): Properly call asm_noperands.
2572         (ia64_sched_reorder): Finish cycle if we see an asm.
2573         (ia64_variable_issue): Clear scheduling state after asms.
2574
2575 2001-01-04  Neil Booth  <neil@daikokuya.demon.co.uk>
2576
2577         * cpp.texi: Update for -MT.
2578         * cppinit.c (initialize_dependency_output): Add a default
2579         target if none has been given already.
2580         (no_tgt, OPT_MT): New.
2581         (cpp_handle_option): Handle -MT.  Update -M etc.
2582         * cpplib.h (struct cpp_options): Remove deps_target.
2583         * gcc.c (cpp_options): Handle -MT.
2584         * mkdeps.c (struct deps): Move from mkdeps.h.
2585         (deps_calc_target): Rename deps_add_default_target.  Add a
2586         default target if none has been specified already.
2587         * mkdeps.h (struct deps): Move to mkdeps.c.
2588         (deps_calc_target): Rename deps_add_default_target.
2589
2590 2000-01-03  Richard Henderson  <rth@redhat.com>
2591
2592         * c-decl.c (grokdeclarator): Give zero-length arrays size zero.
2593         Remove dead code.
2594         * c-typeck.c (push_init_level): Move checks for flexible array
2595         members and zero length arrays ...
2596         (pop_init_level): ... here.  Silently discard empty initializations.
2597         Remove dead code.
2598         * varasm.c (output_constructor): Update for sizeof change to
2599         zero-length arrays.
2600
2601         * extend.texi (Zero Length): Clarify semantics.
2602
2603 2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
2604
2605         * configure.in (tm.h): Include isns-codes.h last.
2606         * configure: Rebuilt.
2607
2608 2001-01-03  Richard Henderson  <rth@redhat.com>
2609
2610         * config/alpha/alpha.md (addvsi3, addvdi3): New.
2611         (negvsi2, negvdi2, subvsi3, subvdi3, mulvsi3, mulvdi3): New.
2612
2613 2001-01-03  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2614
2615         * tradcpp.c (main): Make sure finclude() is called with a valid
2616         indepth value while handling -include.
2617
2618 2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
2619
2620         * gencodes.c (output_predicate_decls): New function.
2621         (main): Call it.
2622         * machmode.h (GET_MODE_MASK): Arrange for it to be defined
2623         even if it is not the first time machmode.h is #included.
2624         * config/sh/sh.c (fpul_operand): Declare MODE argument.
2625         * tm.texi (PREDICATE_CODES): Document predicate declarations.
2626         * gcc.texi (Copyright): Added 2001.
2627
2628 2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
2629
2630         * c-common.c (c_common_lang_init): New function.  Warn if format
2631         warning options which only have effects when used with -Wformat
2632         are used without -Wformat.
2633         * c-common.h (c_common_lang_init): Declare.
2634         * c-lang.c (lang_init): Call c_common_lang_init.
2635         * objc/objc-act.c (lang_init): Call c_common_lang_init.
2636
2637 2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
2638
2639         * configure.in: Check for the mktemp command.
2640         * configure: Regenerate.
2641         * gccbug.in: Use a separate temporary file $TEMP0 for one use of
2642         $TEMP.  Create temporary files with mktemp, if available at
2643         configure time; otherwise use set -C.  Remove temporary files
2644         before exit.
2645
2646 2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
2647
2648         * configure.in: Require at least texinfo 4.0.  Check for whether
2649         Pod::Man is sufficiently recent to regenerate GCC manpages.
2650         * configure:  Regenerate.
2651         * Makefile.in (TEXI2POD): Call perl explicitly rather than relying
2652         on #!.
2653         (GENERATED_MANPAGES): Define.
2654         (generated-manpages): New target.  Depend on cpp.1 as well as
2655         gcov.1.
2656         (install-man): Depend on $(GENERATED_MANPAGES) (defined by
2657         configure to generated-manpages or empty) rather than on the
2658         manpages directly.  Remove execute permission from installed
2659         gcov.1 as well as cpp.1.
2660         * cpp.1, gcov.1: Regenerate.
2661
2662 2001-01-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2663
2664         * builtins.c (expand_builtin_strncmp): Use host_integerp and
2665         tree_low_cst.  Allow using cmpstrsi in more cases.
2666
2667 Wed Jan  3 10:48:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2668
2669         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for variable
2670         sized types.
2671
2672 Wed Jan  3 12:22:32 2001  Alexandre Oliva  <aoliva@redhat.com>
2673
2674         * build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'.
2675         * Makefile.in (HOST_CFLAGS): Mention build-make.
2676
2677 Wed Jan  3 08:53:50 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2678
2679         * config/sparc/sparc.md (nonlocal_goto): Emit goto_handler_and_restore
2680         as JUMP_INSN.
2681
2682 2001-01-01  Bernd Schmidt  <bernds@redhat.com>
2683
2684         * builtins.c (expand_builtin_return_addr): Don't use MEM_ALIAS_SET on
2685         a REG rtx.
2686
2687         * cse.c (cse_rtx_varies_p): Accept additional FROM_ALIAS arg.  All
2688         callers changed.
2689
2690         * alias.c (throughout): Use ORIGINAL_REGNO when accessing
2691         reg_base_value and reg_known_value arrays.
2692         (init_alias_analysis): Add more cases to detect known values.
2693         * sched-deps.c (deps_may_trap_p): New function.
2694         (sched_analyze_2): Use it.
2695
2696 2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
2697
2698         * combine.c (simplify_shift_const): Even if we're sign-extracting,
2699         don't discard an ASHIFTRT if we're shifting in a wider mode.
2700
2701 2000-01-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2702
2703         * toplev.c (rest_of_compilation): Don't print basic block information
2704         when CFG isn't up to date.
2705
2706 2001-01-02  Mark Elbrecht  <snowball3@bigfoot.com>
2707
2708         * config/i386/djgpp.h (DWARF2_DEBUGGING_INFO): Define.
2709         (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_ASM_OP): Define.
2710         (UNALIGNED_SHORT_ASM_OP): Define.
2711         (CPP_PREDEFINES): Remove defines for GO32 and DJGPP.
2712
2713 2001-01-02  Mark Mitchell  <mark@codesourcery.com>
2714
2715         * fold-const.c (fold_convert): Fix typo.
2716
2717 2001-01-02  Richard Henderson  <rth@redhat.com>
2718
2719         * c-common.h (ASM_INPUT_P): New.
2720         * c-parse.in (asm): Set it when needed.
2721         * c-semantics.c (genrtl_asm_stmt): Test it instead of the
2722         existance of an operand.
2723
2724 Tue Jan  2 20:27:07 MET 2001  Jan Hubicka  <jh@suse.cz>
2725
2726         * dwarf2out.c (stack_adjust_offset): Handle PRE_MODIFY.
2727         (dwarf2out_frame_debug_expr): Likewise.
2728         (mem_loc_descriptor): Handle PRE and POST_MODIFY.
2729
2730 Tue Jan  2 20:21:31 MET 2001  Jan Hubicka  <jh@suse.cz>
2731
2732         * i386.c (ix86_split_to_parts): Return number of part required;
2733         handle TFmodes.
2734         (print_operand, ix86_expand_branch, ix86_expand_fp_movcc): Handle
2735         TFmodes.
2736         (ix86_split_long_move): Use number of part returned
2737         by ix86_split_to_parts
2738         * i386.h (MASK_128BIT_LONG_DOUBLE, TARGET_128BIT_LONG_DOUBLE):
2739         New macros.
2740         (TARGET_SWITCHES): Add 128bit-long-double and 96bit-long-double
2741         (LONG_DOUBLE_TYPE_SIZE): Change from constant.
2742         (MAX_LONG_DOUBLE_TYPE_SIZE): New macro.
2743         (INTEL_EXTENDED_IEEE_FORMAT): Likewise.
2744         (ALIGN_MODE_128): Add TFmode.
2745         (IS_STACK_MODE): Likewise.
2746         (HARD_REGNO_NREGS): TFmode needs 3 registers.
2747         (HARD_REGNO_OK): Support TFmodes.
2748         (ASM_OUTPUT_LONG_DOUBLE): Handle TFmodes.
2749         * i386.md (scheduler definitions): Use memory operand to determine
2750         fst/fld instructions; use mode attribute to determine real mode of
2751         the instruction.
2752         (*tf): New patterns, expanders and splitters; based on XFmode patterns.
2753         * invoke.texi (128bit-long-double, 96bit-long-double): Document.
2754
2755 2001-01-02  Mark Mitchell  <mark@codesourcery.com>
2756
2757         * tree.def (TRUTH_NOT_EXPR): Improve documentation.
2758
2759 Tue Jan  2 10:47:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
2760
2761         * expr.c (store_constructor_field): Update ALIGN before calling
2762         store_constructor.
2763
2764 2001-01-02  Jeffrey Oldham  <oldham@codesourcery.com>
2765
2766         * config/mips/mips.c (function_arg): Don't pass NULL_TREE to
2767         host_integerp.
2768
2769 2001-01-02  Jeffrey Oldham  <oldham@codesourcery.com>
2770
2771         * tm.texi (FUNCTION_ARG): Document that @var{type} can be an
2772         incomplete type.
2773
2774 Tue Jan  2 10:47:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
2775
2776         * c-decl.c (start_function): Don't warn on third parameter to main.
2777
2778 2001-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2779
2780         * tsystem.h: Define HAVE_DECL_GETOPT.
2781
2782 2001-01-02  Philip Blundell  <pb@futuretv.com>
2783
2784         * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Avoid illegal clobber
2785         of input operand.
2786
2787 2001-01-02  Richard Henderson  <rth@redhat.com>
2788
2789         * alpha.md (*ze_and_ne): Duplicate insn condition to split.
2790
2791 2001-01-02  Andreas Jaeger  <aj@suse.de>
2792
2793         * c-decl.c (c_decode_option): Remove support of
2794         -Wmissing-noreturn.
2795
2796         * toplev.c (documented_lang_options): Remove -Wmissing-noreturn.
2797         (W_options): Add -Wmissing-noreturn here.
2798
2799         * flow.c: Define lang_missing_noreturn_ok_p.
2800         (check_function_return_warnings): Use it.
2801
2802         * c-common.h: Declare lang_missing_noreturn_ok_p.
2803
2804         * c-lang.c (c_missing_noreturn_ok_p): New function.
2805         (lang_init): Set lang_missing_noreturn_ok_p.
2806
2807         * invoke.texi (Warning Options): Document this.
2808
2809 2000-12-27  Phil Edwards  <pme@sources.redhat.com>
2810
2811         * extend.texi (C++ Extensions):  New node for C++ attributes;
2812           describe init_priority and com_interface.
2813         * invoke.texi:  Remove -finit-priority as it now has zero effect.
2814         * install.texi:  Fix xref syntax.
2815         * md.texi:  Likewise.
2816
2817 Mon Jan  1 21:28:29 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2818
2819         * config.gcc (sparc64-wrs-vxworks*): New case.
2820         * config/sparc/vxsparc64.h, config/sparc/t-vxsparc64: New files.
2821
2822         * config/sparc/sparc.c (sparc_override_options): Do support different
2823         pointer and architecture size.
2824         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Always 4.
2825         (POINTERS_EXTEND_UNSIGNED): Define.
2826         (Pmode): Test TARGET_ARCH64, not TARGET_PTR64.
2827         (FUNCTION_MODE): Define to be Pmode.
2828         * config/sparc/sparc.md (64-bit call patterns): FUNCTION_MODE now DI.
2829
2830         * function.c (expand_function_end): Properly handle DECL_RESULT
2831         and copy when ptr_mode != Pmode.
2832         * expmed.c (make_tree): Convert X from Pmode to ptr_mode, if needed.
2833
2834 2001-01-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2835
2836         * c-common.c (c_common_nodes_and_builtins): Set prototype
2837         parameters for __builtin_fputs, __builtin_fputc and
2838         __builtin_fwrite.  Don't declare plain fputc as a builtin.
2839
2840 2001-01-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2841
2842         * loop.c (add_label_notes): Increment the label usage count when
2843         a note is added to an insn which refers to a CODE_LABEL.
2844         * gcse.c (add_label_notes): Likewise.
2845
2846 2001-01-01  Andreas Jaeger  <aj@suse.de>
2847
2848         * loop.c (scan_loop): Use xmalloc to allocate movables.
2849
2850 2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
2851
2852         * tm.texi (REGISTER_MOVE_COST): Add a mode argument.
2853         * reload.c (REGISTER_MOVE_COST): Likewise.  Adjust all callers.
2854         * reload1.c (REGISTER_MOVE_COST): Likewise.
2855         * regclass.c (REGISTER_MOVE_COST): Likewise.
2856         (move_cost, may_move_in_cost, may_move_out_cost): Add mode
2857         dimension.  Adjust all users.
2858         (init_reg_sets_1): Iterate on all modes.
2859         * config/1750a/1750a.h (REGISTER_MOVE_COST): Adjust.
2860         * config/a29k/a29k.h (REGISTER_MOVE_COST): Adjust.
2861         * config/alpha/alpha.h (REGISTER_MOVE_COST): Adjust.
2862         * config/arc/arc.h (REGISTER_MOVE_COST): Adjust.
2863         * config/arm/arm.h (REGISTER_MOVE_COST): Adjust.
2864         * config/avr/avr.h (REGISTER_MOVE_COST): Adjust.
2865         * config/c4x/c4x.h (REGISTER_MOVE_COST): Adjust.
2866         * config/d30v/d30v.h (REGISTER_MOVE_COST): Adjust.
2867         * config/dsp16xx/dsp16xx.h (REGISTER_MOVE_COST): Adjust.
2868         * config/h8300/h8300.h (REGISTER_MOVE_COST): Adjust.
2869         * config/i386/i386.h (REGISTER_MOVE_COST): Adjust.
2870         * config/ia64/ia64.h (REGISTER_MOVE_COST): Adjust.
2871         * config/m32r/m32r.h (REGISTER_MOVE_COST): Adjust.
2872         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Adjust.
2873         * config/m68k/m68k.h (REGISTER_MOVE_COST): Adjust.
2874         * config/mcore/mcore.h (REGISTER_MOVE_COST): Adjust.
2875         * config/mips/mips.h (REGISTER_MOVE_COST): Adjust.
2876         * config/mn10200/mn10200.h (REGISTER_MOVE_COST): Adjust.
2877         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Adjust.
2878         * config/ns32k/ns32k.h (REGISTER_MOVE_COST): Adjust.
2879         * config/pa/pa.h (REGISTER_MOVE_COST): Adjust.
2880         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Adjust.
2881         * config/pj/pj.h (REGISTER_MOVE_COST): Adjust.
2882         * config/romp/romp.h (REGISTER_MOVE_COST): Adjust.
2883         * config/rs6000/rs6000.h (REGISTER_MOVE_COST): Adjust.
2884         * config/sh/sh.h (REGISTER_MOVE_COST): Adjust.
2885         * config/sparc/sparc.h (REGISTER_MOVE_COST): Adjust.
2886
2887 2001-01-01  Bernd Schmidt  <bernds@redhat.com>
2888
2889         * alias.c (fixed_scalar_and_varying_struct): Adjust prototype of
2890         arg VARIES_P.  Call it with extra arg.
2891         (true_dependence): Likewise.
2892         * rtl.h (rtx_addr_can_trap_p): Declare.
2893         (rtx_varies_p, rtx_addr_varies_p, true_dependence): Update
2894         prototypes.
2895         * rtlanal.c (rtx_addr_can_trap_p): No longer static.
2896         (rtx_varies_p): Accept extra arg FOR_ALIAS; only disallow
2897         pic offset table register if it's zero.  All callers changed.
2898         (rtx_addr_varies_p): Accept extra arg FOR_ALIAS; all callers changed.
2899
2900 Mon Jan  1 07:38:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2901
2902         * explow.c (convert_memory_address, case SYMBOL_REF): Copy
2903         STRING_POOL_ADDRESS_P.
2904
2905         * config/sparc/sparc.c (input_operand): Properly test for short op.
2906
2907         * config.gcc (sparc-*-elf): Include sparc/sol2.h.
2908         (sparc-*-rtems*): Include sparc/sol2.h and sparc/elf.h.
2909         (sparclite-*-elf*, sparc86x-*-elf*): Likewise.
2910         * config/sparc/elf.h: No longer include sol2.h.
2911         * config/sparc/lifeelf.h: No longer include sparc/elf.h.
2912         * config/sparc/rtemself.h, config/sparc/sp86x-elf.h: Likewise.
2913
2914         * config/sparc/sparc.md: Test TARGET_ARCH64 instead of TARGET_PTR64.
2915
2916 2001-01-01  Michael Hayes  <mhayes@redhat.com>
2917
2918         * loop.c (check_insn_for_bivs): Use ivs->n_regs to check array bounds.
2919         (find_mem_givs, record_biv, maybe_eliminate_biv): Likewise.
2920         (record_initial): Likewise.
2921         * unroll.c (copy_loop_body, loop_iterations): Likewise.
2922         (remap_split_bivs): Likewise.
2923
2924 2001-01-01  Michael Hayes  <mhayes@redhat.com>
2925
2926         * loop.c (loop_ivs_free): New function.
2927         (strength_reduce): Break out from...
2928
2929 2001-01-01  Michael Hayes  <mhayes@redhat.com>
2930
2931         * loop.h (struct iv): New.
2932         (REG_IV_TYPE, REG_IV_CLASS, REG_INFO): Modify to use 'struct iv'.
2933         (struct loop_ivs): Replace 'reg_iv_type', 'reg_iv_info',
2934         'reg_biv_class' fields with 'regs' and 'n_regs'.
2935         (struct ivs): Rename 'loop_iv_list' field to 'list'.
2936         * loop.c (loop_bivs_find, strength_reduce): Use ivs->regs array.
2937         * unroll.c (loop_iterations): Check array bounds with ivs->n_regs.
2938
2939 2000-12-31  Alexandre Oliva  <aoliva@redhat.com>
2940
2941         * resource.c (mark_referenced_resources): Abort() before
2942         attempting to mark a pseudo register.
2943         (mark_set_resources): Likewise.
2944
2945 2001-01-01  Michael Hayes  <mhayes@redhat.com>
2946
2947         * loop.h (REG_IV_CLASS): New accessor macro.
2948         * loop.c (REG_IV_CLASS): Use it instead of reg_iv_class array.
2949         * unroll.c (REG_IV_CLASS): Likewise.
2950
2951 See ChangeLog.4 for earlier changes.