OSDN Git Service

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