OSDN Git Service

Add new test - do not warn about (non-)redundant friend declaration.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-05-14  David Edelsohn  <edelsohn@gnu.org>
2
3         * rs6000.c (num_insns_constant_wide): Constants are sign-extended.
4         (num_insns_constant): CONST_INT can be 64-bits.
5
6 2001-05-14  Stan Shebs  <shebs@apple.com>
7
8         * config/darwin.h (LIB_SPEC): Just use -lSystem.
9         (LIBGCC_SPEC): Don't define.
10
11 2001-05-14  Richard Henderson  <rth@redhat.com>
12
13         * configure.in (gcc_cv_as_eh_frame): New test.
14         * config.in, configure: Rebuild.
15         * gcc.c (init_spec): Honor USE_AS_TRADITIONAL_FORMAT.
16
17 2001-05-14  Andrew MacLeod  <amacleod@redhat.com>
18
19         * config/ia64/lib1funcs.asm (__divtf3): Fix incorrect bits in
20         extended precision divide.
21
22 2001-05-14  Andrew MacLeod  <amacleod@redhat.com>
23
24         * config/ia64/ia64.c (rtx_needs_barrier): Call rtx_needs_barrier
25         for RETURNS as well.
26
27 Mon May 14 17:34:48 CEST 2001  Jan Hubicka  <jh@suse.cz>
28
29         * i386.h (TARGET_64BIT): Define to constant if !TARGET_BI_ARCH
30         (CPP_CPU??_SIZE_TYPE): New.
31         (CPP_CPU??_SPEC, CPP_CPUCOMMON_SPEC): Break out from...
32         (CPP_CPU_SPEC): ... here; support choosing of CPU.
33         (EXTRA_SPECS): Add cpp_cpu??, cpp_cpu??sizet, cpp_cpucommon.
34         (MAX_LONG_TYPE_SIZE, MAX_BITS_PER_WORD): Define to 32 for 32bit-only
35         compiler.
36         * i386.c (override_options): Add sorry about not suported modes.
37
38 Mon May 14 08:56:47 2001  Jeffrey A Law  (law@cygnus.com)
39
40         * config/pa/som.h (NM_FLAGS): Remove.
41         (ASM_OUTPUT_FUNCTION_PREFIX): No longer truncate subspace names.
42         (ASM_OUTPUT_SECTION_NAME): Remove.
43         (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Likewise.
44
45 2001-05-14  Mark Mitchell  <mark@codesourcery.com>
46
47         * regrename.c (regrename_optimize): Do not rename registers to
48         leaf registers.
49
50 2001-05-14  Alexandre Oliva  <aoliva@redhat.com>
51
52         * rtl.texi (CALL_INSN_FUNCTION_USAGE): Note that (and when) it may
53         contain MEMs.  Remove useless distinction about clobbering
54         registers.
55
56 2001-05-13  Geoff Keating  <geoffk@redhat.com>
57
58         * config/rs6000/rs6000.h (EXCEPTION_SECTION): Move to...
59         * config/rs6000/aix.h (EXCEPTION_SECTION): ... here.
60         * config/rs6000/sysv4.h (CONST_SECTION_ASM_OP): Delete.
61         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
62         (EXCEPTION_SECTION): Define.
63
64 2001-05-13  Zack Weinberg  <zackw@stanford.edu>
65
66         * libgcc2.c, libgcc2.h: Restore __eprintf.  Label as used for
67         binary backward compat only.
68         * Makefile.in (LIB2FUNCS_ST): New.  Put _eprintf here, not
69         in LIB2FUNCS.  Pass it to mklibgcc.
70         * mklibgcc.in: Handle LIB2FUNCS_ST.
71
72         * Makefile.in (installdirs): Don't create $(gcc_tooldir).
73
74 2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
75
76         * tm.texi (THREAD_MODEL_SPEC): Document it.
77         * gcc.c (main): Use it.
78         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Define it.
79         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Likewise.
80
81 2001-05-13  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
82
83         * rtl.h (SYMBOL_REF_WEAK): New macro.
84         * rtlanal.h (rtx_addr_can_trap): Use it, a weak SYMBOL_REF can trap.
85         * varasm.c (make_decl_rtl): Mark SYMBOL_REF weak if necessary.
86         * rtl.texi (SYMBOL_REF_WEAK): Document it.
87         * gcc.texi: Remove wrong description.
88
89 2001-05-13  Mark Mitchell  <mark@codesourcery.com>
90
91         * Makefile.in (STAMP): New macro.
92         Replace all uses of `touch' with $(STAMP).
93         * fixinc/Makefile.in: Likewise.
94
95 Sun May 13 07:26:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
96
97         * configure.in: ldopen is never in -lexc, so don't test for it.
98         Add test for exc_resume in -lexc for Ada.
99         * configure: Regenerated.
100
101 2001-05-12  Richard Henderson  <rth@redhat.com>
102
103         * dwarf2asm.c (size_of_encoded_value): New function.
104         * dwarf2asm.h: Declare it.
105         * except.c (output_function_exception_table): Align the TType
106         array only as wide as the encoding.
107
108 2001-05-12  Zack Weinberg  <zackw@stanford.edu>
109
110         * extend.texi: Document #pragma GCC java_exceptions.
111
112 2001-05-12  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
113
114         * c-parse.in (bison parser, init_reswords): Remove uses of
115         doing_objc_thang.
116         * c-tree.h (doing_objc_thang): Remove.
117
118 2001-05-12  Neil Booth  <neil@daikokuya.demon.co.uk>
119
120         * cpplex.c (_cpp_lex_token): Ensure we warn at most once
121         about files not ending in newlines.
122
123 2001-05-12  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
124
125         * dwarfout.c (dwarfout_init): Add cast.
126         * sched-deps.c (sched_analyze_insn): Remove unused vars.
127         * unwind-dw2-fde.c (_Unwind_Find_FDE): Flag unused parameter so.
128 cp:
129         * method.c (build_mangled_C99_name): Remove unused prototype.
130
131 2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
132
133         * config/arm/arm.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Use delta.
134
135 2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
136
137         * defaults.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
138         * tm.texi (TARGET_PRTMEMFUNC_VBIT_LOCATION): Document.
139
140 2001-05-11  Richard Henderson  <rth@redhat.com>
141
142         * defaults.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
143         * dwarf2asm.c (dw2_force_const_mem, dw2_output_indirect_constant_1,
144         dw2_output_indirect_constants, dw2_asm_output_encoded_addr_rtx): New.
145         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): Prototype.
146         (dw2_output_indirect_constants): Prototype.
147         * dwarf2out.c (dwarf2out_begin_prologue): Generate
148         current_function_func_begin_label if we'll need it for EH.  Exit
149         early for IA64_UNWIND_INFO.
150         * except.c: Get DW_EH_PE_* defines from dwarf2.h.
151         (eh_data_format_name): Update for indirect references.
152         (output_function_exception_table): Care for IA64_UNWIND_INFO.
153         Handle ASM_PREFERRED_EH_DATA_FORMAT.
154         * except.h (MUST_USE_SJLJ_EXCEPTIONS): IA64_UNWIND_INFO needn't
155         define HAVE_eh_return etc.
156         * final.c (final_start_function): Always call dwarf2out_begin_prologue.
157         (final_end_function): Don't call output_function_exception_table.
158         * toplev.c (compile_file): Call dw2_output_indirect_constants.
159         (rest_of_compilation): Invoke output_function_exception_table 
160         for ia64 before assemble_end_function.
161         * tm.texi (ASM_PREFERRED_EH_DATA_FORMAT): Document.
162         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Document.
163
164         * unwind-dw2.c (_Unwind_GetTextRelBase, _Unwind_GetDataRelBase): New.
165         * unwind.h: Declare them.
166         * libgcc-std.ver: Export them.
167         * unwind-pe.h: New file.
168
169         * config/alpha/elf.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
170
171         * config/ia64/fde-glibc.c: Use "struct unw_table_entry"
172         instead of "fde".
173         (find_fde_for_dso): Extract DT_PLTGOT.
174         (_Unwind_FindTableEntry): Rename from __ia64_find_fde; return
175         the segment and gp as well.
176         * config/ia64/frame-ia64.c: Remove file.
177         * config/ia64/frame-ia64.h: Remove file.
178         * config/ia64/unwind-ia64.c: New file.
179         * config/ia64/unwind-ia64.h: New file.
180         * config/ia64/ia64.h (ASM_OUTPUT_EH_CHAR): Remove.
181         (ASM_OUTPUT_EH_SHORT, ASM_OUTPUT_EH_INT): Remove.
182         (ASM_OUTPUT_EH_DOUBLE_INT): Remove.
183         (ASM_PREFERRED_EH_DATA_FORMAT): New.
184         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New.
185         (IA64_UNWIND_INFO): Re-enable.
186         (HANDLER_SECTION): Remove.
187         (EH_RETURN_DATA_REGNO): New.
188         * config/ia64/ia64.md (exception_receiver): Remove.
189         * config/ia64/t-glibc (LIB2ADDEH): Re-enable.
190         * config/ia64/t-ia64 (LIB2ADDEH): Re-enable.
191
192 2001-05-11  Richard Henderson  <rth@redhat.com>
193
194         * config/ia64/ia64.c (group_barrier_needed_p): Don't allow
195         calls and jumps to be bundled together.
196         (ia64_reorg): Emit a break after a noreturn call that ends
197         a function.
198         * config/ia64/ia64.md (break_f): New.
199
200 2001-05-12  Neil Booth  <neil@daikokuya.demon.co.uk>
201
202         * c-lex.c (lex_charconst): Convert into a simple wrapper
203         around cpp_interpret_charconst, to which most of the code
204         body is moved.
205         * cppexp.c (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE,
206         MAX_LONG_TYPE_SIZE, MAX_INT_TYPE_SIZE, MAX_CHAR_TYPE_MASK,
207         MAX_WCHAR_TYPE_MASK, parse_escape, parse_charconst): Remove.
208         (lex): Use cpp_interpret_charconst.
209         * cpplex.c (parse_escape, read_ucs, cpp_interpret_charconst,
210         hex_digit_value): New functions.
211         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): New macros.
212         * cpplib.h (cpp_interpret_charconst): New prototype.
213         * Makefile.in: Update.
214
215 2001-05-12  Dean Wakerley  <dean@wakerley.com>
216
217         * doc/install.texi: New file. Converted to texinfo from the HTML
218         documentation in wwwdocs/htdocs/install.
219
220 Fri May 11 15:50:13 2001  Jeffrey A Law  (law@cygnus.com)
221
222         * gcse.c (insert_insn_end_bb): Do not search for assignments to
223         non-argumment registers that are mentioned in CALL_INSN_FUNCTION_USAGE.
224
225         * toplev.c (compile_file): Move comment for opening output
226         file to just before the code that opens the output file.
227
228 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
229
230         * regmove.c (regmove_optimize): Suppress the optimization for
231         unchanging destination register.  Add comment above function.
232
233 2001-05-11  Zack Weinberg  <zackw@stanford.edu>
234
235         * Makefile.in: Exterminate all references to assert.h.
236         * cross-make: Likewise.
237         * assert.h: Delete.
238         * configure.in: Correct commentary.
239         * configure: Regenerate.
240
241         * libgcc-std.ver, libgcc2.c, libgcc2.h, sys-protos.h:
242         Remove __eprintf.
243
244         * config/t-freebsd, config/t-linux, config/t-linux-aout,
245         config/t-netbsd, config/t-rtems, config/x-linux,
246         config/i386/t-beos, config/mcore/t-mcore, config/mcore/t-mcore-pe:
247         No need to override INSTALL_ASSERT_H.
248
249         * fixinc/fixinc.dgux, fixinc/fixinc.interix, fixinc/fixinc.ptx,
250         fixinc/fixinc.svr4, fixinc/fixinc.winnt, fixinc/fixinc.wrap,
251         fixinc/fixincl.sh: Don't install assert.h into objdir/include.
252
253 2001-05-11  Graham Stott  <grahams@redhat.com>
254
255         * combine.c (simplify_comparison): Fix typo.
256
257 2001-05-11  Mark Mitchell  <mark@codesourcery.com>
258
259         * loop.h (struct movables): Remove `num'.
260         * loop.c (scan_loop): Don't set it.  Use count_insns_in_loop.
261         Adjust call to strength_reduce.
262         (num_unmoved_movables): New function.
263         (move_movables): Don't set movables->num.
264         (strength_reduce): Compute the number of instructions in the loop
265         here, rather than in the caller.
266         (check_dbra_loop): Always clear reversible_mem_store if there
267         are any memory sets.
268         (loop_regs_scan): Don't count instructions here.
269         (count_insn_in_loop): New function.
270
271 2001-05-11  Mark Mitchell  <mark@codesourcery.com>
272
273         * optabs.c (emit_libcall_block): Don't mark calls as CONST_CALL_P.
274
275 2001-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
276
277         * c-common.c (finish_label_expr): New function, lifted from
278         from cp/semantics.c.
279         * c-common.h (finish_label_expr, lookup_label): New prototypes.
280         * c-parse.in: Move 3 blocks of parser code into new functions.
281         * c-typeck.c (simple_asm_stmt, c_cast_expr): New functions.
282         * c-tree.h (simple_asm_stmt, c_cast_expr): New prototypes.
283         (lookup_label): Remove.
284
285 2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
286
287         * config/mn10300/t-mn10300 (dp-bit.c, fp-bit.c): Don't define
288         FLOAT_BIT_ORDER_MISMATCH.
289
290 2001-05-10  David Edelsohn  <edelsohn@gnu.org>
291
292         * expr.c (emit_push_insn): Convert PUSH_ROUNDING argument to
293         bytes.  Reported by Kazu Hirata <kazu@hxi.com>.
294
295 2001-05-10  David Edelsohn  <edelsohn@gnu.org>
296
297         * expr.c (emit_group_load): extract_bit_field requires a REG or
298         MEM as an argument.
299
300 Thu May 10 14:45:44 2001  Jeffrey A Law  (law@cygnus.com)
301
302         * cse.c (cse_insn): Mostly remove first hunk of code which collapsed
303         a computed jump into an unconditional jump.
304         In second hunk of code for collapsing computed and conditional jumps
305         into unconditional jumps, reemit the jump in additional cases.
306
307         * jump.c (jump_optimize_1): Do not wrap the new jump target
308         inside a LABEL_REF; gen_jump will do that automatically.
309
310 2001-05-10  Toon Moene  <toon@moene.indiv.nluug.nl>
311
312         * dwarf2out.c (mem_loc_descriptor): Do not pass constant pool
313         contents for a SYMBOL_REF in case of floating point constants.
314
315 2001-05-10  DJ Delorie  <dj@redhat.com>
316
317         * c-common.c (combine_strings): Widen strings in a
318         host-endian-independent way.
319
320 2001-05-10  Joseph S. Myers  <jsm28@cam.ac.uk>
321
322         * c-parse.in: Remove many shift/reduce conflicts.  Update
323         %expect values.
324         (declspecs_nosc_nots_nosa_noea, declspecs_nosc_nots_nosa_ea,
325         declspecs_nosc_nots_sa_noea, declspecs_nosc_nots_sa_ea,
326         declspecs_nosc_ts_nosa_noea, declspecs_nosc_ts_nosa_ea,
327         declspecs_nosc_ts_sa_noea, declspecs_nosc_ts_sa_ea,
328         declspecs_sc_nots_nosa_noea, declspecs_sc_nots_nosa_ea,
329         declspecs_sc_nots_sa_noea, declspecs_sc_nots_sa_ea,
330         declspecs_sc_ts_nosa_noea, declspecs_sc_ts_nosa_ea,
331         declspecs_sc_ts_sa_noea, declspecs_sc_ts_sa_ea, declspecs_ts,
332         declspecs_nots, declspecs_ts_nosa, declspecs_nots_nosa,
333         declspecs_nosc_ts, declspecs_nosc_nots, declspecs_nosc, declspecs,
334         maybe_type_quals_setattrs, typespec_nonattr, typespec_attr,
335         typespec_reserved_nonattr, typespec_reserved_attr,
336         typespec_nonreserved_nonattr, maybe_setattrs, structsp_attr,
337         structsp_nonattr, components_notype, component_notype_declarator,
338         absdcl1_ea, absdcl1_noea, direct_absdcl1, absdcl_maybe_attribute,
339         firstparm, setspecs_fp): New
340         (typed_declspecs, reserved_declspecs, typed_typespecs,
341         reserved_typespecquals, declmods, typespec, typespecqual_reserved,
342         typed_declspecs_no_prefix_attr reserved_declspecs_no_prefix_attr
343         declmods_no_prefix_attr, nonempty_type_quals, structsp,
344         type_quals): Remove.  Users updated.
345         (initdecls, notype_initdecls, after_type_declarator,
346         parm_declarator, notype_declarator, absdcl1, components, ivars):
347         Don't allow attributes at the start of a declarator; include them
348         in the production containing the declarator instead.  Always
349         require type specifiers before trying to redeclare a typedef name.
350         (typename): Allow for attributes but warn that they are ignored.
351         (parmlist, firstparm, setspecs_fp): Include attributes in
352         parmlist; suck them off the parser stack in firstparm using
353         setspecs_fp.
354
355 Thu May 10 09:17:42 2001  Jeffrey A Law  (law@cygnus.com)
356
357         * ifcvt.c (merge_if_block): Use any_uncondjump_p, not simplejump_p
358         to determine if a block has an unconditional jump at its end.
359
360         * jump.c (jump_optimize_1): When converting a conditional jump
361         to an unconditional jump, build the jump using gen_jump instead
362         of just modify operands in-place.
363
364 2001-05-09  Zack Weinberg  <zackw@stanford.edu>
365
366         * cppinit.c (cpp_post_options): Shut off macro expansion if
367         -fpreprocessed.
368         * cpplib.c (_cpp_handle_directive): If -fpreprocessed, accept
369         IN_I directives only if the # is in column 1 and the directive
370         name begins in column 2.
371         * cppmain.c (scan_buffer): Insert a space between # and an
372         identifier, when that identifier is a directive name.
373
374         * tradcpp.c (struct file_buf): Add a pointer to the next entry
375         in the header search path.
376         (enum node_type): Add T_INCLUDE_NEXT.
377         (directive_table): Add entry for include_next.
378         (do_include_next): New function.
379         (process_include): New routine, broken out of do_include.
380         (finclude): Insert 'nhd' argument, to be copied into
381         next_header_dir of the new buffer.
382         (main): Adjust to match.
383         * gsyslimits.h, limity.h: Un-indent #include_next.
384
385 2001-05-09  Joseph S. Myers  <jsm28@cam.ac.uk>
386
387         * objc.texi: Move from ../libobjc/objc-features.texi.  Adjust for
388         inclusion as a chapter of the GCC manual.
389         * gcc.texi: Include objc.texi.
390         * fdl.texi: Use @unnumberedsec for the addendum.
391         * Makefile.in ($(srcdir)/gcc.info, gcc.dvi): Update dependencies.
392
393 Wed May  9 16:01:41 CEST 2001  Jan Hubicka  <jh@suse.cz>
394
395         * i386.md (DImode move splitters): Use !MMX and !SSE for the condition.
396
397 Wed May  9 10:40:25 2001  Alexandre Oliva  <aoliva@redhat.com>
398
399         * regclass.c (scan_one_insn): Update REG_N_REFS when optimizing
400         handling of two-address insns.
401
402 Wed May  9 10:36:18 2001  Alexandre Oliva  <aoliva@redhat.com>
403
404         * Makefile.in (NM_FOR_TARGET): Look for ./nm, then
405         ../binutils/nm-new instead of ../binutils/nm.
406
407 Wed May  9 12:15:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
408
409         * i386.md (movdi splitter): Fix the splitting condition
410         (float_extenddftf splitter): Fix mode.
411
412 Wed May  9 12:05:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
413
414         * genrecog.c (write_switch): Avoid outputting of switch for
415         types wider than int.
416
417 2001-05-03  Andrew Haley  <aph@cambridge.redhat.com>
418
419         * reload1.c (copy_eh_notes): New function.
420         (emit_input_reload_insns): Call it.
421         (emit_output_reload_insns): Call it.
422
423 2001-05-07  Zack Weinberg  <zackw@stanford.edu>
424
425         * config.gcc (i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*):
426         Delete stanzas.
427         * config/i386/sco.h, config/i386/sco4.h, config/i386/scodbx.h,
428         config/i386/sco4dbx.h, config/i386/x-sco4: Delete file.
429
430         * optabs.c: Delete #ifdef BROKEN_LDEXP block.
431
432 2001-05-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
433
434         * pa.md (interspace_jump): Revise comment.
435         (builtin_longjmp): Block initial setup insns from delay slot of
436         interspace branch.
437         (builtin_setjmp_receiver): New expander to save and restore PIC
438         register.
439
440         * som.h (NM_FLAGS): Remove `-n' sort option.  Revise comment.
441
442 Mon May  7 09:30:14 2001  Jeffrey A Law  (law@cygnus.com)
443
444         * toplev.c (compile_file): Set up the output file before we call
445         the various initializers for the compiler.
446
447         * except.c (sjlj_mark_call_sites): Do not search for assignments to
448         non-argumment registers that are mentioned in CALL_INSN_FUNCTION_USAGE.
449
450         * pa.h (MAX_LONG_TYPE_SIZE): Should be 32, not 64.
451         * pa-64.h (*_TYPE_SIZE): Undefine before redefining.
452
453 2001-05-06  Zack Weinberg  <zackw@stanford.edu>
454
455         * Makefile.in (tradcpp0): Correct typo in dependency list.
456
457 2001-05-06  Geoff Keating  <geoffk@redhat.com>
458
459         * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't save
460         the link register if we're not going to use it.
461
462         * config/rs6000/rs6000.c (output_profile_hook): Fix a warning.
463         (output_function_profiler): Likewise.
464
465 2001-05-07  Alan Modra  <amodra@one.net.au>
466
467         * pa.c (compute_frame_size): 64-bit frame marker is 16 bytes.
468
469 2001-05-06  Alexandre Oliva  <aoliva@redhat.com>
470
471         * unroll.c (loop_iterations): Don't sign-extend abs_diff;
472         zero-extend it.  Make abs_inc unsigned.
473
474         * optabs.c (expand_binop): Sign-extend xop0 and xop1 from the
475         widest mode in narrowing and widening operations.
476
477         * config/mips/mips.md: Sign extend CONST_INTs.
478
479 2001-05-06  Andreas Jaeger  <aj@suse.de>
480
481         * invoke.texi (Option Summary): Add -momit-leaf-frame-pointer
482         (i386 Options): Document -momit-leaf-frame-pointer.
483
484 2001-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
485
486         * c-typeck.c (internal_build_compound_expr): Check for
487         array to pointer conversion just once.
488
489 2001-05-05  Richard Henderson  <rth@redhat.com>
490
491         * integrate.c (copy_insn_list): Substitute NOTE_EXPECTED_VALUE.
492
493 2001-05-05  Richard Henderson  <rth@redhat.com>
494
495         * except.c (remove_fixup_regions): Adjust REG_EH_REGION notes
496         to the parent of the fixup region.
497
498 2001-05-05  Jakub Jelinek  <jakub@redhat.com>
499
500         * gcc.c (cpp_options): Define __NO_INLINE__ unless we are honoring
501         "inline" keyword.
502         * cpp.texi (__NO_INLINE): Document it.
503
504 2001-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
505
506         * cppfiles.c (struct include_file): New member err_no.
507         (find_or_create_entry): Set it.
508         (open_file): Don't set fds to -2.  Instead, use err_no to
509         remember previous errors, if any.
510
511 2001-05-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
512
513         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Optimize moves
514         between X and Y by using sequences of xgdx and xgdy.
515
516 2001-05-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
517
518         * config/m68hc11/m68hc11.md ("*logicalsi3_silshr16"): Use '?' instead
519         of '!' for the 'D' alternative ('!' is too strong).
520         ("*logicalsi3_silshl16"): Likewise.
521         ("movstricthi"): Accept 'A' when 'd' constraint, remove spurious '+'.
522         ("movstrictsi"): Remove spurious '+'.
523         ("movstrictqi"): Don't accept 'A' and remove spurious '+'.
524         ("tstqi_1", "*lshrqi3_const1"): Put 'm' constraint before 'd'.
525         ("subqi3"): Disparage with '!' the 'x' and 'y' registers to avoid
526         a reload to them.
527
528 2001-05-04  David Edelsohn  <edelsohn@gnu.org>
529
530         * calls.c (store_one_arg): Don't divide align by BITS_PER_UNIT.
531
532 2001-05-04  Lars Brinkhoff  <lars@nocrew.org>
533
534         * simplify-rtx.c (simplify_binary_operation): Simplify ~a + 1
535         into -a.
536
537 2001-05-04  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
538
539         * config/rs6000/rs6000.md (ashldi3 splits): Guard with
540         TARGET_POWERPC64.
541
542 2001-05-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
543
544         * config/m68hc11/m68hc11.md (lshrhi3_const1): Fix shift of
545         soft register, use ror instead of rol.
546
547 2001-05-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
548
549         * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Take
550         into account pre/post increment decrement for 68HC12.
551         Fix other problems in replacement and fix call to reg_mentioned_p.
552
553 2001-05-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
554
555         * config/m68hc11/larith.asm (L_regs_frame): New for _.frame.
556         Put the soft registers in bss for 68HC12.
557         (L_regs_d3_4): New for _.d3 and _.d4.
558         (L_regs_d5_6): Likewise.
559         (L_regs_d1_2): Likewise.
560         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Compile new parts.
561
562 2001-05-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
563
564         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__HAVE_SHORT_DOUBLE__
565         to the pre-processor when -fshort-double is specified.
566         * config/m68hc11/m68hc11.2 (CPP_SPEC): Likewise.
567
568 2001-05-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
569
570         * config/m68hc11/larith.asm (divmodhi4): Empty for 68HC12.
571         (__mulsi3): Rewrite for 68HC12.
572         * config/m68hc11/m68hc11.md (divmodhi4): Use idivs for 68HC12.
573         Mark 'x' constraint with earlyclobber to prevent a
574         RELOAD_FOR_OTHER_ADDRESS to go in it.
575         (mulhi3_m68hc12): New pattern.
576         (mulhi3_m68hc11): Rename of mulhi3.
577         (mulhi3): New expand for 68HC12 optimisation.
578         (umulhisi3, mulhisi3): New patterns for 68HC12.
579
580 2001-05-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
581
582         * config/m68hc11/m68hc11.md (*tbne, *tbeq): New patterns for 68HC12.
583         (extendqisi2, extendqihi2, extendhisi2): Use sex for 68HC12.
584         (uminqi3, umaxqi3, uminhi3, umaxhi3): New pattern for 68HC12.
585
586 2001-05-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
587
588         * config/m68hc11/m68hc11.h (CONST_COSTS): Make the cost of
589         constants cheap after reload.
590         * config/m68hc11/m68hc11.c (m68hc11_shift_cost): Shift by 16 and 32
591         are cheap.
592         (m68hc11_rtx_costs): Cost of multiplication by 65536 is expensive
593         so that gcc prefers a shift by 16.
594         (m6811_cost, m6812_cost): Make the shift cheap compared to an add.
595
596 2001-05-04  Nick Clifton  <nickc@cambridge.redhat.com>
597
598         * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Define.
599
600 2001-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
601
602         * alpha.h: NULL_PTR -> NULL.
603         * arm.c: Likewise.
604         * arm.h: Likewise.
605         * avr.h: Likewise.
606         * c4x.c: Likewise.
607         * c4x.h: Likewise.
608         * i386.c: Likewise.
609         * i386.md: Likewise.
610         * i860.c: Likewise.
611         * ia64.c: Likewise.
612         * m68hc11.h: Likewise.
613         * rs6000.h: Likewise.
614         * sh.c: Likewise.
615         * sh.h: Likewise.
616         * sparc.h: Likewise.
617         * v850.c: Likewise.
618
619         * expr.c: Likewise.
620         * final.c: Likewise.
621         * gcc.c: Likewise.
622         * recog.c: Likewise.
623
624 2001-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
625
626         * i386.c (ix86_emit_restore_regs_using_mov, ix86_save_reg): Change
627         `bool' parameter to `int'.
628
629         * hash.c (hash_lookup): Likewise.
630
631         * hash.h (hash_lookup): Likewise.
632
633         * tlink.c (symbol_hash_lookup, demangled_hash_lookup): Likewise.
634
635 Fri May  4 13:10:03 CEST 2001  Jan Hubicka  <jh@suse.cz>
636
637         * i386.c (x86_initialize_trampoline): Fix mode of constant.
638
639 2001-05-03  Geoff Keating  <geoffk@redhat.com>
640
641         * invoke.texi (i386 Options): Delete references to -malign-jumps,
642         -malign-loops, -malign-functions.
643         * i386.c (ix86_align_funcs): Delete.
644         (ix86_align_loops): Delete.
645         (ix86_align_jumps): Delete.
646         (override_options): Mark -malign-* as obsolete.  Emulate their
647         behaviour with the -falign-* options.  Default -falign-* from
648         the processor table.
649         * i386.h (FUNCTION_BOUNDARY): Define to 16; revert Richard Kenner's
650         patch of Wed May 2 13:09:36 2001.
651         (LOOP_ALIGN): Delete.
652         (LOOP_ALIGN_MAX_SKIP): Delete.
653         (LABEL_ALIGN_AFTER_BARRIER): Delete.
654         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Delete.
655
656 2001-05-04  Andreas Jaeger  <aj@suse.de>
657
658         * except.h: Add prototype declaration for
659         expand_builtin_init_dwarf_reg_sizes.
660
661 2001-05-03  Geoffrey Keating  <geoffk@redhat.com>
662
663         * Makefile.in (site.exp): Set TESTING_IN_BUILD_TREE.
664
665 2001-05-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
666
667         * config/m68hc11/m68hc11.md ("bitcmpqi"): New pattern for bitb
668         instruction.
669         ("bitcmpqi2"): New pattern for bit-extract and test.
670         ("bitcmphi"): New pattern for bitb/bita instructions.
671
672 2001-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
673
674         * gccbug.in: Use a temporary directory when the mktemp command is
675         not available.
676
677 2001-05-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
678
679         * config/m68hc11/m68hc11.h (STATIC_CHAIN_REGNUM): Use soft z register
680         instead of _.d1.
681         (INITIALIZE_TRAMPOLINE): Call it.
682         (TRAMPOLINE_SIZE): Define according to 68HC11/68HC12.
683         (TRAMPOLINE_TEMPLATE): Remove.
684         * config/m68hc11/m68hc11.c (m68hc11_initialize_trampoline): New.
685         * config/m68hc11/m68hc11-protos.h (m68hc11_initialize_trampoline):
686         Declare.
687
688 2001-05-03  David O'Brien  <obrien@FreeBSD.org>
689
690         * config/t-freebsd: Don't install "assert.h" in gcc.  Compile crtbeginS.o
691         and crtendS.o with PIC.
692
693 2001-05-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
694
695         * config/m68hc11/larith.asm (__mulqi3): Fix multiplication of two
696         negative numbers.
697         (___subdi3, ___adddi3): Use x instead of y as index register.
698         (__init_bss_section, __map_data_section): Optimize for 68HC12.
699         (__memset, __memcpy): Likewise.
700         (regs): Put the soft registers in bss for 68HC12.
701         (abort): Use trap to abort for 68hc12.
702         (__mulhi3, __mulhi32): Use emul for 68hc12.
703         (__mulsi3): Avoid to use the tmp soft register for 68hc12.
704
705 2001-05-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
706
707         * config/m68hc11/m68hc11.h (LIMIT_RELOAD_CLASS): Don't define.
708         * config/m68hc11/m68hc11-protos.h (limit_reload_class): Remove.
709         * config/m68hc11/m68hc11.c (limit_reload_class): Remove.
710         (m68hc11_override_options): Remove setting of flag_no_nonansi_builtin.
711         Set 68HC12 min offset to -65536.
712         (print_operand): Put parenthesis arround the operand if it refers
713         to a symbol having the same name as a register.
714         (m68hc11_z_replacement): When z register is replaced by its
715         equivalent soft register, force the insn to be re-recognized.
716         (m68hc11_check_z_replacement): Fix the test when destination is
717         the index register and z dies in the insn.
718         (m68hc11_reorg): Remove the REG_DEAD notes beforce recomputing them.
719
720 2001-05-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
721
722         * config/m68hc11/m68hc11.c (m68hc11_override_options): Initialize
723         costs according to processor variant.
724         (m68hc11_shift_cost): New function to compute shift costs.
725         (m68hc11_rtx_costs): Define costs according to processor variant.
726         (m6811_cost): Costs for 68HC11.
727         (m6812_cost): Costs for 68HC12.
728         (COSTS_N_INSNS): Remove.
729
730         * config/m68hc11/m68hc11.h (RTX_COSTS): New.
731         (DEFAULT_RTX_COSTS): Remove.
732         (CONST_COSTS): Define costs according to OUTER_CODE.
733         (processor_costs): New struct to define costs.
734         (m68hc11_cost): Pointer to current costs.
735
736 2001-05-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
737
738         * config/m68hc11/m68hc11.md (*addhi3_68hc12): Fix generation
739         and use m68hc11_notice_keep_cc when using leax/leay.
740         (addhi3 split): Reject split if the insn is handled by
741         leax/leay above.
742         * config/m68hc11/m68hc11.c (m68hc11_split_move): For 68HC12 the
743         push must be handled in a special way if the source operand uses
744         sp as index register.
745         (m68hc11_notice_keep_cc): New function.
746         (m68hc11_gen_movhi): Use it when an insn changes a register but
747         not the flags.
748         (m68hc11_gen_movqi): Fix move for 68HC12.
749         * config/m68hc11/m68hc11-protos.h (m68hc11_notice_keep_cc): Declare.
750
751 2001-05-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
752
753         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use LCT_CONST
754         and don't pass operands[0] to emit_library_call_value.
755
756 2001-05-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
757
758         * config/m68hc11/m68hc11.md (tsthi_1): Use cpd for 68HC12.
759         (zero_extendsi split): Simplify and use (zero_extendhi).
760         (*addhi3): Remove 'w' constraint since stack pointer is handled
761         by (addhi3_sp).
762         (*ashlhi3_2): Operand 2 is clobbered use '+' for its constraint.
763         (*ashlhi3, *ashrhi3, *lshrhi3): Likewise.
764         (*ashrhi3_const): Fix shift by 7.
765         (*lshrsi3_const16): Fix template.
766         (call, call_value): Fix constraint and predicate.
767
768 2001-05-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
769
770         * config/m68hc11/m68hc11.md (X_REGNUM, D_REGNUM): New constant.
771         (Y_REGNUM, SP_REGNUM, PC_REGNUM, A_REGNUM, B_REGNUM): Likewise.
772         (CC_REGNUM): Likewise.
773         (*unnamed splits): Use above constants instead of hard coded numbers.
774         (*adcq, *subcq, *addsi_carry, *rotlqi3_with_carry): Likewise.
775         (*rotlhi3_with_carry, *rotrhi3_with_carry): Likewise.
776         (*return_16bit, *unnamed peepholes): Likewise.
777
778 2001-05-03  David O'Brien  <obrien@FreeBSD.org>
779
780         * config.gcc(rs6000-ibm-aix|powerpc-ibm-aix):  Do not include
781         rs6000/rs6000.h twice.
782
783 2001-05-03  Mark Elbrecht  <snowball3@bigfoot.com>
784
785         * config/i386/djgpp.h (CPP_PREDEFINES): Define __GO32__.
786         (CPP_SPEC): Conditionally define MSDOS and GO32.
787         (SUBTARGET_SWITCHES): Ignore -mbnu210 and -mno-bnu210.
788         (SUBTARGET_OVERRIDE_OPTIONS): Warn that -mbnu210 and -mno-bnu210 are
789         ignored.
790         (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY): Remove.
791
792 2001-05-03  Alexandre Oliva  <aoliva@redhat.com>
793
794         * config/mn10300/mn10300.md: Sign-extend GEN_INT operands.
795
796 2001-05-03  Mark Mitchell  <mark@codesourcery.com>
797
798         * integrate.h (struct inline_remap): Add leaf_reg_map table.
799         * integrate.c (expand_inline_function): Use xcalloc to allocate
800         memory.
801         (copy_rtx_and_substitute): Use the leaf_reg_map for leaf
802         registers.
803
804 2001-05-03  Mark Mitchell  <mark@codesourcery.com>
805
806         * c-dump.c (dequeue_and_dump): Don't look at DECL_ASSEMBLER_NAME
807         if it is not set.
808
809 2001-05-03  Alexandre Oliva  <aoliva@redhat.com>
810
811         * config/mn10300/mn10300.h (LINK_SPEC): Pass --relax to the
812         linker if -mrelax is given.
813         (TARGET_SWITCHES): Document -mrelax.
814
815         Re-installed 2001-01-09's patch:
816         * hwint.h (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Use long long
817         if it's wider than long and the target's long is wider than the
818         host's.
819
820 2001-05-02  David O'Brien  <obrien@FreeBSD.org>
821
822         * config.gcc, config/rs6000/aix51.h, config/rs6000/mach.h:  Do not
823         directly include rs6000/rs6000.h.  Instead do it in tm.h.
824
825 2001-05-02  Stan Shebs  <shebs@apple.com>
826
827         * objc/objc-act.c (STRING_OBJECT_CLASS_NAME): Default to
828         NSConstantString for NeXT-style runtimes.
829         (STRING_OBJECT_GLOBAL_NAME): New macro.
830         (enum objc_tree_index): Add values OCTI_CNST_STR_GLOB_ID and
831         OCTI_STRING_CLASS_DECL.
832         (constant_string_global_id): New macro.
833         (string_class_decl): Ditto.
834         (setup_string_decl): New function.
835         (build_objc_string_object): Use it to build a NeXT runtime
836         compatible string initializer.
837
838 2001-05-02  Jakub Jelinek  <jakub@redhat.com>
839
840         * tradcpp.c (do_define): Make sure we don't walk past limit.
841
842 2000-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
843
844         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow any stack
845         offsets if not REG_OK_STRICT.
846
847         * config/rs6000/rs6000.h (REG_OK_STRICT_FLAG): New macro.
848         (INT_REG_OK_FOR_INDEX_P): Likewise.
849         (INT_REG_OK_FOR_BASE_P): Likewise.
850         (REG_OK_FOR_INDEX_P): Use INT_REG_OK_FOR_INDEX_P.
851         (REG_OK_FOR_BASE_P): Use INT_REG_OK_FOR_BASE_P.
852         (LEGITIMATE_OFFSET_ADDRESS_P): Use INT_REG_OK_FOR_INDEX_P and
853         INT_REG_OK_FOR_BASE_P instead of REG_OK_FOR_INDEX_P and
854         REG_OK_FOR_BASE_P. Take an additional parameter.
855         (LEGITIMATE_INDEXED_ADDRESS_P): Likeewise.
856         (LEGITIMATE_INDIRECT_ADDRESS_P): Likewise.
857         (LEGITIMATE_LO_SUM_ADDRESS_P): Likewise.
858         (GO_IF_LEGITIMATE_ADDRESS): Move code into new function
859         rs6000_legitimate_address() and use it.
860         * config/rs6000/rs6000.c: Update all callers.
861         (rs6000_legitimate_address): New function.
862
863 2001-05-02  David Edelsohn  <edelsohn@gnu.org>
864
865         * config/rs6000/rs6000.c (rs6000_emit_move): Merge
866         special_constant conditional blocks together.
867
868 2001-05-02  Dale Johannesen  <dalej@apple.com>
869
870         * config/rs6000/rs6000.h (RS6000_ARG_SIZE): Remove unused NAMED
871         parameter.
872         (STRICT_ARGUMENT_NAMING): Define.
873         * config/rs6000/rs6000.c (function_arg_advance, function_arg,
874         function_arg_partial_nregs, setup_incoming_varargs): Remove
875         args logic which depends on "named" now that STRICT_ARGUMENT_NAMING
876         is defined.
877
878 Wed May  2 13:09:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
879
880         * config/i386/i386.h (FUNCTION_BOUNDARY): Result is unsigned.
881
882         * function.c (fixup_var_regs_1, case SUBREG): Use promoted mode
883         for replacement.
884
885         * expr.c (store_field): Do nothing except elaborate side-effects if
886         zero-bit field.
887
888 2001-05-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
889
890         * c-lex.c: NULL_PTR -> NULL.
891         * cse.c: Likewise.
892         * emit-rtl.c: Likewise.
893         * gcse.c: Likewise.
894         * genpeep.c: Likewise.
895         * jump.c: Likewise.
896         * mips-tdump.c: Likewise.
897         * reload1.c: Likewise.
898         * rtlanal.c: Likewise.
899         * stmt.c: Likewise.
900         * stor-layout.c: Likewise.
901         * toplev.c: Likewise.
902
903 2001-05-01  Per Bothner  <per@bothner.com>
904
905         * expr.c (expand_expr):  When compiling LABELED_BLOCK_EXPR,
906         call do_pending_stack_adjust before emiting label.
907
908 2001-05-01  Mark Mitchell  <mark@codesourcery.com>
909
910         * extend.texi: Fix typo.
911
912 2001-05-01  Stan Shebs  <shebs@apple.com>
913
914         * objc/objc-act.c (build_module_descriptor): Clear DECL_CONTEXT
915         of UOBJC_MODULES_decl.
916         (generate_strings): Clear DECL_CONTEXT of new decl nodes.
917         (generate_descriptor_table): Ditto.
918         (generate_protocols): Ditto.
919         (generate_protocol_list): Ditto.
920         (generate_classref_translation_entry): Ditto.
921
922 2001-05-01  Jeffrey Oldham  <oldham@codesourcery.com>
923
924         * invoke.texi (Optimize Options): Add documentation for `--param
925         max-delay-slot-insn-search' and `--param
926         max-delay-slot-live-search' and reorder --param section.
927         * params.def: Modify initial comment.
928         * params.h (param_info): Add `help' member.
929         * toplev.c (lang_independent_params): Include `help' description.
930         (display_help): Print --param parameters.
931
932 2001-05-01  Zack Weinberg  <zackw@stanford.edu>
933
934         * config.gcc: Don't default xmake_file to ${cpu_type}/x-${cpu_type}.
935         Remove references to deleted files.
936         (*-*-openbsd): No need to override xmake_file.
937         (*-*-sysv4): Treat like *-*-sysv.
938
939         * configure.in: Probe for ldopen in various places, and set up
940         collect2 to be linked with them if found.
941         Don't dink with Windows registry stuff unless $host_os is a
942         Win32 os name.  Check to see if we need -ladvapi32.
943         * configure: Regenerate.
944
945         * Makefile: Get rid of CLIB and HOST_CLIB.
946         Substitute in COLLECT2_LIBS and link collect2 against its contents.
947         * build-make: Get rid of HOST_CLIB.
948
949         * config/a29k/x-unix, config/alpha/x-osf, config/i386/x-aix,
950         config/i386/x-osfrose, config/m68k/x-dpx2, config/mips/x-iris3,
951         config/mips/x-mips, config/mips/x-osfrose, config/mips/x-sony,
952         config/mips/x-sysv, config/rs6000/x-aix31, config/rs6000/x-aix41,
953         config/rs6000/x-rs6000: Delete.
954
955         * config/i386/x-cygwin, config/m68k/t-aux, config/mips/x-iris:
956         Don't set CLIB.
957
958         24 x-host fragments remain, 0 x-cpu, 3 top level.
959
960 2001-05-01  Zack Weinberg  <zackw@stanford.edu>
961
962         * aclocal.m4 (gcc_AC_C_CHAR_BIT): Correct test program.
963         * configure: Regenerate.
964
965 2001-05-01  Angela Marie Thomas <angela@cygnus.com>
966
967         * Makefile.in (install-headers): Remove redundant dependency.
968
969 2001-05-01  Nathan Sidwell  <nathan@codesourcery.com>
970
971         * c-tree.texi (USING_STMT): Document.
972
973 2001-05-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
974
975         * bitmap.c: Change NULL_PTR to NULL or "(rtx*)0".
976         * c-common.c: Likewise.
977         * c-decl.c: Likewise.
978         * combine.c: Likewise.
979         * rs6000.c: Likewise.
980         * except.c: Likewise.
981         * explow.c: Likewise.
982         * expr.c: Likewise.
983         * fold-const.c: Likewise.
984         * function.c: Likewise.
985         * gcc.c: Likewise.
986         * gcse.c: Likewise.
987         * integrate.c: Likewise.
988         * loop.c: Likewise.
989         * objc/objc-act.c: Likewise.
990         * recog.c: Likewise.
991         * reg-stack.c: Likewise.
992         * reload.c: Likewise.
993         * reload1.c: Likewise.
994         * simplify-rtx.c: Likewise.
995         * stmt.c: Likewise.
996         * varasm.c: Likewise.
997
998 2001-05-01  Gabriel Dos Reis  <gdr@codesourcery.com>
999
1000         * diagnostic.def: New file.
1001         * diagnostic.h (diagnostic_t): New enum.
1002         * Makefile.in (diagnostic.o): Depend on diagnostic.def
1003
1004 2001-04-30  Zack Weinberg  <zackw@stanford.edu>
1005
1006         * tsystem.h: Test only POSIX for availability of string.h
1007         and time.h.
1008         * config.gcc (all systems): If USG appeared in xm_defines,
1009         change it to POSIX.  If both USG and POSIX appeared, just
1010         delete USG. Remove unnecessary quotes around xm_defines
1011         settings.
1012         (m68k-crds-unos*): Don't #define unos - tested nowhere.
1013         (m68k-apple-aux*): Don't #define AUX - tested nowhere.
1014         (alpha*-*-linux*ecoff*, powerpc-*-linux*libc1,
1015         powerpc-*-linux*): No need to set xm_defines - handled by
1016         global settings for *-*-linux*.
1017
1018 2001-04-30  Zack Weinberg  <zackw@stanford.edu>
1019
1020         * dbxout.c, mips-tfile.c, config/mips/mips.c, xcoffout.c:
1021         Always include gstab.h, not system stab.h.  Don't provide
1022         default definitions of N_CATCH or N_OPT.  Always use the
1023         gstab.h variant of STAB_CODE_TYPE.
1024         * final.c: Don't include stab.h/gstab.h at all, or provide
1025         defaults for N_SLINE and N_SOL.
1026
1027         * xcoffout.c: Can assume N_MAIN, N_DSLINE, N_BSLINE, N_BINCL,
1028         N_EINCL, N_EXCL, N_M2C, N_SCOPE, N_CATCH, and N_OPT are
1029         available.
1030         * sdbout.c: Always include gsyms.h instead of system syms.h.
1031
1032         * configure.in: No need to check for stab.h.
1033         * configure, config.in: Regenerate.
1034         * Makefile.in (final.o): Don't depend on gstab.h.
1035
1036 2001-04-30  Mark Mitchell  <mark@codesourcery.com>
1037             Richard Henderson  <rth@redhat.com>
1038
1039         * extend.texi: Improve documentation of volatile asms.
1040
1041 2001-04-30  Mark Mitchell  <mark@codesourcery.com>
1042
1043         * c-tree.texi: Fix thinko.
1044         * gcc.texi: Likewise.
1045
1046 2001-04-30  Richard Henderson  <rth@redhat.com>
1047
1048         * c-common.c (c_promoting_integer_type_p): New function, from the
1049         corpse of old macro.  Properly promote too-small enumerations and
1050         booleans.  Adjust all callers.
1051         * c-common.h (C_PROMOTING_INTEGER_TYPE_P): Remove.
1052         (c_promoting_integer_type_p): Declare.
1053         * c-decl.c: Adjust C_PROMOTING_INTEGER_TYPE_P invocations.
1054         * c-typeck.c: Likewise.
1055         (default_conversion): Remove now redundant boolean check.
1056
1057 2001-04-30  Jan Hubicka  <jh@suse.cz>
1058             Richard Henderson  <rth@redhat.com>
1059
1060         * regmove.c (try_apply_stack_adjustment): Remove now redundant
1061         sanity checks.
1062         (combine_stack_adjustments_for_block): Don't combine stack
1063         allocation followed by deallocations.  Handle grow-up stacks.
1064
1065 2001-04-30  Mark Mitchell  <mark@codesourcery.com>
1066
1067         * fdl.texi: New file.
1068         * c-tree.texi: Use the GFDL.
1069         * gcc.texi: Likewise.
1070
1071 2001-04-30  Stan Shebs  <shebs@apple.com>
1072
1073         * invoke.texi: Add a section documenting Objective-C options.
1074
1075 2001-04-27  Andrew Haley  <aph@cambridge.redhat.com>
1076
1077         * emit-rtl.c (try_split):  Copy EH notes to sequence.
1078
1079 2001-04-30  Mark Mitchell  <mark@codesourcery.com>
1080
1081         * regmove.c (record_stack_memrefs): Catch all references to the
1082         stack pointer.
1083
1084 2001-04-29  Toomas Rosin <toomas at ns dot tklabor dot ee>
1085
1086         * Makefile.in(stmp-fixinc): quote shell assignment values
1087
1088 2001-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1089
1090         * c-aux-info.c: NULL_PTR->NULL in calls to `concat'.
1091
1092         * gcc.c: Likewise.
1093
1094         * prefix.c: Likewise.
1095
1096 2001-04-28  Stan Shebs  <shebs@apple.com>
1097
1098         * objc/objc-act.c (handle_class_ref): Rewrite to flush target
1099         specific code and use new macro ASM_DECLARE_UNRESOLVED_REFERENCE.
1100         * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Define.
1101         * tm.texi (ASM_DECLARE_UNRESOLVED_REFERENCE): Document.
1102
1103         * config/darwin.h (STANDARD_EXEC_PREFIX): Don't define.
1104         (NEXT_OBJC_RUNTIME): Define.
1105
1106 Sat Apr 28 21:02:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
1107
1108         * rtl.h (simplify_gen_relational): Add cmp_mode parameter.
1109         * simplify-rtx.c (simplify_gen_relational): Likewise.
1110
1111         * simplify-rtx.c (simplify_replace_rtx): Handle relationals and MEMs.
1112
1113         * i386.h (VALID_SSE_REG_MODE): Accept MMX modes if SSE2
1114         * i386.md (movsi_1, movdi2, movdi_1_rex64): Handle SSE2 moves.
1115
1116         * i386.md (negsf2, negdf2, abssf2, absdf2): Force operands to
1117         registers in SSE case; fix handling of the immediates.
1118         (negsf2_ifs, abssf2_ifs): Tweak constraints; require
1119         operands to be in regsiters before reload.
1120         (negdf2_ifs, absdf2_ifs): Likewise; disable for 64bit
1121         (negdf2_ifs_rex64, absdf2_ifs_rtx64): New.
1122         (abstf,absxf,negtf,negxf splitters): Compute
1123         properly the regnum for x86_64.
1124         (avsdf2_if_rex64): New.
1125
1126 Sat Apr 28 10:36:23 2001  Jeffrey A Law  (law@cygnus.com)
1127
1128         * flow.c (propagate_block_delete_insn): Handle deletion of ADDR_VEC
1129         and ADDR_DIFF_VEC insns when the proceeding CODE_LABEL was put
1130         into the constant pool.
1131         * jump.c (jump_optimize_1): Remove barrier successors after all
1132         the LABEL_NUSES counds have been computed.
1133         (delete_barrier_successors): When deleting a tablejump insn, also
1134         delete the jump table it uses.
1135         * varasm.c (force_const_mem): Set LABEL_PRESERVE_P when forcing a
1136         label into memory.
1137
1138 2001-04-28  Martin Kalen  <martin.kalen@todaysystems.com.au>
1139
1140         * pa.c (FRP): Remove erroneous white space in macro definition.
1141
1142 2001-04-28  Andreas Jaeger  <aj@suse.de>
1143
1144         * invoke.texi: Use XX-bit instead of XXbit or XX bit where
1145         appropriate.
1146         * extend.texi: Likewise.
1147         * tm.texi: Likewise.
1148
1149 2001-04-28  Andreas Jaeger  <aj@suse.de>
1150
1151         * md.texi: Use XX-bit instead of XXbit or XX bit where
1152         appropriate.
1153
1154 2001-04-28  Jens Schweikhardt <schweikh@schweikhardt.net>
1155
1156         * gcc.c (process_command): Allow -l lib in addition to -llib
1157         for POSIX compliance. This fixes PR c/2347.
1158
1159         * invoke.texi: Update section on Link Options accordingly.
1160
1161 2001-04-27  Zack Weinberg  <zackw@stanford.edu>
1162
1163         * function.c (purge_addressof_1): Remove the duplicate
1164         if (code == SET) block.  Fold the two if (code == ADDRESSOF)
1165         blocks together.
1166
1167 2001-04-28  Jason Merrill  <jason_merrill@redhat.com>
1168
1169         * except.c (expand_eh_region_start): Don't start a new block.
1170         (expand_eh_region_end): Don't end a block.
1171         * stmt.c (expand_end_bindings): Don't end EH blocks.
1172         (expand_decl_cleanup): Starting an EH region won't change the block.
1173         (mark_block_as_eh_region, mark_block_as_not_eh_region): Lose.
1174         (is_eh_region): Lose.
1175         * tree.h: Adjust.
1176
1177 2001-04-27  Jeffrey Oldham  <oldham@codesourcery.com>
1178
1179         * except.c (expand_eh_region_end_cleanup): word_mode, not Pmode.
1180
1181         * collect2.c (main): Add `-L' case to remove duplicate entries.
1182         (is_in_args): New function to check for a duplicate argument.
1183         * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): New macro.
1184         * tm.texi (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): New documentation.
1185         * config/mips/iris6.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
1186         Define to be nonzero.
1187
1188 2001-04-27  Andreas Jaeger  <aj@suse.de>
1189             Richard Henderson  <rth@redhat.com>
1190
1191         * md.texi (Machine Constraints): Document additional i386
1192         constraints and fix description of "A".
1193
1194 Fri Apr 27 10:43:49 2001  Jeffrey A Law  (law@cygnus.com)
1195
1196         * tm.texi (TARGET_MEM_FUNCTIONS): Update text.
1197
1198 2001-04-27  Jason Merrill  <jason_merrill@redhat.com>
1199
1200         * except.c (get_exception_filter): word_mode, not Pmode.
1201
1202 2001-04-26  Geoffrey Keating  <geoffk@redhat.com>
1203
1204         * config/sparc/sparc.md (movsf_no_f_insn): Add more alternatives
1205         common to other movsf patterns.  Move up so that in future
1206         people who change the other patterns will change it too.
1207         (movsf_lo_sum): Allow even for soft-float; add appropriate
1208         constraints.
1209         (movsf_high): Likewise.
1210         (movsf_high+1): Allow even for soft-float.
1211
1212         * function.c (expand_function_end): Always clobber the
1213         return registers, even if there is no return label.
1214
1215 Thu Apr 26 20:28:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
1216
1217         * (ix86_expand_fp_movcc): Re-enable SSE conditional move generation.
1218
1219 Thu Apr 26 19:20:28 CEST 2001  Jan Hubicka  <jh@suse.cz>
1220
1221         * i386.md (abs/neg splitter): Fix calculation of sign bit for TFmodes
1222         (pushqi2_rex64, pushhi2_rex64): Add.
1223
1224 2001-04-26  Andrew Haley  <aph@cambridge.redhat.com>
1225
1226         * except.c (expand_eh_region_end_cleanup): Force pending stack
1227         adjust before emitting label that branches around cleanup code.
1228
1229 2001-04-26  H.J. Lu  (hjl@gnu.org)
1230
1231         * config.gcc (mips*-*-linux*): Add elfos.h to tm_file.
1232
1233         * config/mips/ecoff.h (STARTFILE_SPEC): Undefine before
1234         define.
1235         * config/mips/elf64.h (MAX_OFILE_ALIGNMENT): Likewise.
1236         (ASM_OUTPUT_SECTION_NAME): Likewise.
1237         (ASM_WEAKEN_LABEL): Likewise.
1238         (UNIQUE_SECTION): Likewise.
1239         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
1240         (ASM_OUTPUT_DESTRUCTOR): Likewise.
1241         * config/mips/elf.h (MAX_OFILE_ALIGNMENT): Likewise.
1242         (ASM_OUTPUT_SECTION_NAME): Likewise.
1243         (ASM_WEAKEN_LABEL): Likewise.
1244         (UNIQUE_SECTION): Likewise.
1245         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
1246         (ASM_OUTPUT_DESTRUCTOR): Likewise.
1247         * config/mips/linux.h (HANDLE_SYSV_PRAGMA): Likewise.
1248         * config/mips/mips.h (DBX_CONTIN_LENGTH): Likewise.
1249         (ASM_FILE_START): Likewise.
1250         (ASM_OUTPUT_SOURCE_LINE): Likewise.
1251         (ASM_DECLARE_OBJECT_NAME): Likewise.
1252         (ASM_FILE_END): Likewise.
1253         (ASM_DECLARE_FUNCTION_NAME): Likewise.
1254         (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
1255         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1256         (ASM_OUTPUT_CASE_LABEL): Likewise.
1257         (ASM_OUTPUT_SKIP): Likewise.
1258         (ASM_OUTPUT_ASCII): Likewise.
1259         (ASM_OUTPUT_IDENT): Likewise.
1260         (READONLY_DATA_SECTION): Likewise.
1261         (EXTRA_SECTIONS): Likewise.
1262         (EXTRA_SECTION_FUNCTIONS): Likewise.
1263         (SELECT_RTX_SECTION): Likewise.
1264         (SELECT_SECTION): Likewise.
1265
1266         * config/mips/linux.h (INVOKE__main): Undefine.
1267         (CTOR_LIST_BEGIN): Likewise.
1268         (CTOR_LIST_END): Likewise.
1269         (DTOR_LIST_BEGIN): Likewise.
1270         (DTOR_LIST_END): Likewise.
1271         (SET_ASM_OP): Defined it to ".dummy".
1272         (ASM_OUTPUT_DEF): Defined.
1273         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Defined.
1274
1275 2001-04-26  Nick Clifton  <nickc@cambridge.redhat.com>
1276
1277         * config/arm/arm.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define, if the
1278         assembler supports .p2align.
1279
1280 2001-04-26  Nathan Sidwell <nathan@codesourcery.com>
1281
1282         * c-lex.c (c_lex): Remove # from %o diagnostic formatting.
1283
1284 2001-04-26  Jakub Jelinek  <jakub@redhat.com>
1285
1286         * integrate.c (expand_inline_function): Check for error_mark_node
1287         in actual argument.
1288
1289 2001-04-26  Jakub Jelinek  <jakub@redhat.com>
1290
1291         * config/i386/i386.h (CC1_CPU_SPEC): Fix deprecation warnings for
1292         -m386 and -m486.
1293
1294 2001-04-26  Alexandre Oliva  <aoliva@redhat.com>
1295
1296         * configure.in (configargs.h): Define thread_model.
1297         * configure: Rebuilt.
1298         * gcc.c (main): Print it with -v.
1299
1300 2001-04-25  Joseph S. Myers  <jsm28@cam.ac.uk>
1301
1302         * invoke.texi: Document -Wmissing-braces, -dumpspecs,
1303         -dumpmachine, -dumpversion, -fmem-report and -ftime-report.
1304         * gcc.1: Regenerate.
1305
1306 2001-04-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1307
1308         * dwarfout.c (is_pseudo_reg, type_main_variant, is_tagged_type,
1309         is_redundant_typedef): Use static inline instead of inline static.
1310
1311 Wed Apr 25 18:21:01 2001  Christopher Faylor <cgf@cygnus.com>
1312
1313         * config/i386/cygwin.h: Move W32API search to LINK_SPEC to ensure that
1314         this directory is always searched.
1315
1316 2001-04-25  Richard Henderson  <rth@redhat.com>
1317
1318         * config/i386/i386.c (ix86_expand_epilogue): Properly compute size
1319         of registers to restore along non eh_return path.
1320
1321 2001-04-25  Jakub Jelinek  <jakub@redhat.com>
1322
1323         * c-format.c (check_format_info_recurse): Handle
1324         PLUS_EXPR for format string.
1325
1326 2001-04-25  Jakub Jelinek  <jakub@redhat.com>
1327
1328         * config/ia64/ia64.h (CC1_SPEC): Define.
1329         * config/ia64/linux.h (CC1_SPEC): Define.
1330
1331 Wed Apr 25 17:09:50 2001  J"orn Rennecke <amylaar@redhat.com>
1332
1333         * emit-rtl.c (constant_subword): Also do sign extension in
1334         BITS_PER_WORD == 16 case.
1335
1336 2001-04-25  Jason Merrill  <jason_merrill@redhat.com>
1337
1338         * loop.c (try_swap_copy_prop): Go back to checking insn.
1339
1340 2001-04-25  Jakub Jelinek  <jakub@redhat.com>
1341
1342         * emit-rtl.c (subreg_hard_regno): Only do HARD_REGNO_MODE_OK check
1343         if check_mode is non-zero.
1344
1345 2001-04-25  Jakub Jelinek  <jakub@redhat.com>
1346
1347         * config/i386/i386.c (ix86_expand_int_movcc): If overlap between
1348         out and comparison sequence has been detected, put result into
1349         proper temporary pseudo.
1350
1351 2001-04-24  Zack Weinberg  <zackw@stanford.edu>
1352
1353         * Makefile.in (LIB2FUNCS): Remove _varargs and __dummy.
1354         * libgcc-std.ver: Remove __builtin_saveregs, __dummy, and __empty.
1355         * libgcc2.c: Remove __dummy and __builtin_saveregs.
1356         * libgcc2.h: Don't prototype __builtin_saveregs or __dummy.
1357         * config/i860/varargs.asm: New file - preserve i860 __builtin_saveregs
1358         for future reference.
1359
1360 2001-04-24  Jason Merrill  <jason_merrill@redhat.com>
1361
1362         * except.c (reachable_handlers): Step out one level from a RESX.
1363
1364         * except.c (struct eh_region): Rename 'last' to 'resume'.
1365         (mark_eh_region, duplicate_eh_region_1): Adjust.
1366         (expand_eh_region_end_cleanup): Remember the jump, not the barrier.
1367         (build_post_landing_pads): Likewise.
1368         (expand_end_catch, expand_eh_region_end_allowed): Don't set it.
1369         (expand_eh_region_end_must_not_throw): Likewise.
1370         (connect_post_landing_pads): Thread (only) regions with non-deleted
1371         resume insns.
1372
1373         * except.c (expand_eh_region_end_cleanup): Save the EH return data
1374         registers around the cleanup.
1375         (get_exception_filter): New fn.
1376         (finish_eh_generation): Use it.
1377
1378 2001-04-24  Nathan Sidwell <nathan@codesourcery.com>
1379
1380         * c-semantics.c (add_scope_stmt): Don't call
1381         current_scope_stmt_stack multiple times.
1382
1383 2001-04-24  Zack Weinberg  <zackw@stanford.edu>
1384             Nathan Sidwell <nathan@codesourcery.com>
1385
1386         Lazy __FUNCTION__ generation.
1387         * c-common.h (RID_FUNCTION_NAME, RID_PRETTY_FUNCTION_NAME,
1388         RID_C99_FUNCTION_NAME): New _RIDs.
1389         (CTI_FUNCTION_ID, CTI_PRETTY_FUNCTION_ID, CTI_FUNC_ID): Remove.
1390         (CTI_FUNCTION_NAME_DECL, CTI_PRETTY_FUNCTION_NAME_DECL,
1391         CTI_C99_FUNCTION_NAME_DECL, CTI_SAVED_FUNCTION_NAME_DECLS): New
1392         global tree slots.
1393         (function_id_node, pretty_function_id_node, func_id_node): Remove.
1394         (c99_function_name_decl_node, function_name_decl_node,
1395         pretty_function_name_decl_node, saved_function_name_decls):
1396         Declare.
1397         (struct language_function): Remove x_function_name_declared_p.
1398         (make_fname_decl): Remove a parameter.
1399         (declare_function_names): Remove prototype.
1400         (start_fname_decls, finish_fname_decls): Prototype.
1401         (fname_as_string): Likewise.
1402         (fname_string, fname_decl): Likewise.
1403         * c-common.c (make_fname_decl): Adjust.
1404         (struct fname_var_t): New struct.
1405         (fname_vars): New static array.
1406         (declare_function_name): Remove.
1407         (start_fname_decls, finish_fname_decls): New functions.
1408         (fname_as_string): New function from remnants of
1409         declare_function_name.
1410         (fname_string, fname_decl): New functions.
1411
1412         * c-decl.c (c_function_name_declared_p): Remove.
1413         (init_decl_processing): Don't generate __FUNCTION__ et al ids,
1414         don't call declare_function_name. Call start_fname_decls.
1415         (c_make_fname_decl): Adjust parameters. Generate the name. Don't
1416         clobber the line number. Call finish_decl.
1417         (start_function): Call start_fname_decls.
1418         (finish_function): Call finish_fname_decls.
1419         Remove c_function_name_declared_p.
1420         (push_c_function_context): Don't push c_function_name_declared_p.
1421         (pop_c_function_context): Don't pop c_function_name_declared_p.
1422         (c_begin_compound_stmt): Don't check c_function_name_declared_p.
1423         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): New tokens.
1424         (program): Call finish_fname_decls for C.
1425         (primary): Add VAR_FUNC_NAME.
1426         (reswords): Add slots for __FUNCTION__ et al.
1427         (rid_to_yy): Add mappings for __FUNCTION__ et al.
1428         (yylexname): If it's a STRING_FUNC_NAME generate the function name
1429         now. Don't look for VAR_DECLs containing __FUNCTION__ et al.
1430         * c-semantics.c (prune_unused_decls): Remove.
1431         (finish_stmt_tree): Don't call prune_unused_decls.
1432         (genrtl_decl_stmt): Don't prune unused decls here.
1433
1434 2001-04-24  Nick Clifton  <nickc@cambridge.redhat.com>
1435
1436         * dwarf2out.c (mem_loc_descriptor): If a SYMBOL_REF is in the
1437         constant pool, use the pool's SYMBOL_REF instead.
1438
1439         * config/v850/v850.h (STRICT_ALIGNMENT): Always set, even for the
1440         v850e.
1441
1442 2001-04-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1443
1444         * c-convert.c (convert): When converting to a BOOLEAN_TYPE, avoid
1445         passing nested NOP_EXPRs to fold.
1446
1447 Mon Apr 23 14:32:12 CEST 2001  Jan Hubicka  <jh@suse.cz>
1448
1449         * reg-stack.c (emit_swap_insn): Do not get pass CALL_INSNs.
1450
1451 2001-04-22  Mark Mitchell  <mark@codesourcery.com>
1452
1453         * loop.c (loop_delete_insns): Add prototype.
1454
1455 2001-04-23  Phil Edwards  <pme@sources.redhat.com>
1456
1457         * configure.in:  Remove ENABLE_STD_NAMESPACE.
1458         * config.in:  Regenerated.
1459         * configure:  Regenerated.
1460
1461 2001-04-22  Stan Shebs  <shebs@apple.com>
1462
1463         * config.gcc (powerpc-*-darwin*): Move the flag in xm-darwin.h
1464         into xm_defines.
1465         * config/rs6000/xm-darwin.h: Remove file.
1466
1467 2001-04-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1468
1469         * collect2.c (main): Use concat in lieu of xmalloc/sprintf.
1470         (write_c_file_stat): Likewise.
1471
1472         * dbxout.c (dbxout_init): Likewise.
1473
1474         * profile.c (output_func_start_profiler): Likewise.
1475
1476 2001-04-22  Philipp Thomas  <pthomas@suse.de>
1477
1478         * ABOUT-GCC-NLS: Now that gettext 0.10.37 is out,
1479         require it instead of the CVS version.
1480         * cpperror.c (v_message): Put a blank before the macro
1481         body to not confuse exgettext.
1482
1483 2001-04-21  Mark Mitchell  <mark@codesourcery.com>
1484
1485         * flow.c (proagate_one_insn): Remove useless assignment.
1486         * jump.c (delete_insn): Tidy.
1487         * loop.c (try_copy_prop): When deleting an instruction with a
1488         REG_RETVAL note, delete the entire libcall sequence.
1489         (loop_delete_insns): New function.
1490         * unroll.c (initial_reg_note_copy): Copy INSN_LIST notes, even if
1491         we're not substituting into them yet.
1492
1493 2001-04-21  Kazu Hirata  <kazu@hxi.com>
1494
1495         * config/h8300/h8300.c (general_operand_src): Fix a comment typo.
1496
1497         * config/sparc/sparc.c (sparc_flat_eligible_for_epilogue_delay):
1498         Fix a comment typo.
1499         * config/i960/i960.c (signed_arith_operand): Likewise.
1500
1501         * calls.c (expand_call): Fix a comment typo.
1502
1503 2001-04-20  Zack Weinberg  <zackw@stanford.edu>
1504
1505         * configure.in: Probe for times, clock, struct tms, and clock_t.
1506         * configure, config.in: Regenerate.
1507         * timevar.c: Replace ifdef forest in get_time with (relatively)
1508         straightforward series of checks based on autoconf's probes.
1509
1510 Fri Apr 20 12:24:50 2001  Jeffrey A Law  (law@cygnus.com)
1511
1512         * config/pa/som.h (NM_FLAGS): Define.
1513
1514 2001-04-20  Bernd Schmidt  <bernds@redhat.com>
1515
1516         * ia64.h (MD_SCHED_REORDER, MD_SCHED_REORDER2): Pass CLOCK to called
1517         function.
1518         * ia64-protos.h (ia64_sched_reorder): Additional arg for clock.
1519         * ia64.c (nop_cycles_until): New function.
1520         (prev_cycle, prev_first, last_issued): New static variables.
1521         (ia64_sched_reorder): Additional arg for clock.
1522         On final scheduling pass, emit extra NOPs as needed.
1523         Set prev_first and prev_cycle.
1524         (ia64_sched_reorder2): Pass clock arg down to ia64_sched_reorder.
1525         (ia64_variable_issue): Set last_issued.
1526
1527 2001-04-20  Alexandre Oliva  <aoliva@redhat.com>
1528
1529         * config/i386/i386.c (ix86_expand_int_movcc,
1530         ix86_expand_strlensi_unroll_1): Sign-extend CONST_INTs.
1531
1532 2001-04-20  Geoff Keating  <geoffk@redhat.com>
1533
1534         * config/rs6000/rs6000.md (ctrsi_internal1, ctrsi_internal2,
1535         ctrsi_internal3, ctrsi_internal4, ctrsi_internal5,
1536         ctrsi_internal6, ctrdi_internal1, ctrdi_internal2,
1537         ctrdi_internal3, ctrdi_internal4, ctrdi_internal5,
1538         ctrdi_internal6): In the short-branch case, this insn is only 4
1539         bytes long.  Reported by Reza Yazdani <reza@apple.com>.
1540
1541 2001-04-20  Jakub Jelinek  <jakub@redhat.com>
1542
1543         * reg-stack.c (check_asm_stack_operands): Issue error if "=t" resp.
1544         "=u" is used together with "st" resp. "st(1)" clobber.
1545
1546 2001-04-20  Jakub Jelinek  <jakub@redhat.com>
1547
1548         * gcse.c (gcse_main): Fix comment typo.
1549         (delete_null_pointer_check): Likewise.
1550         (hash_scan_set): Don't consider sets with REG_EQUIV MEM notes.
1551         * cse.c (cse_insn): Likewise.
1552         * function.c (fixup_var_refs_insns_with_hash): The sequence is
1553         toplevel.
1554
1555 2001-04-19  Zack Weinberg  <zackw@stanford.edu>
1556
1557         * toplev.c: Excise all code for the undocumented -dm option.
1558         (float_signal): Call signal just once, unconditionally.
1559
1560 2001-04-19  Geoff Keating  <geoffk@redhat.com>
1561
1562         * fold-const.c (fold): Use first_rtl_op rather than
1563         TREE_CODE_LENGTH when looping over parameters of a tree.
1564         Correct strange grouping in test for evaluated SAVE_EXPR.
1565
1566 Thu Apr 19 19:15:26 2001  Jeffrey A Law  (law@cygnus.com)
1567
1568         * config/pa/pa-linux.h (CPLUSPLUS_CPP_SPEC): Undefine.
1569         * config/pa/pa.h (CPLUSPLuS_CPP_SPEC): Define.
1570
1571         * config/pa/som.h (ASM_OUTPUT_FUNCTION_PREFIX): Truncate subspace
1572         name at 32 total characters.
1573         (ASM_OUTPUT_SECTION_NAME): Similarly.  Also, only support placing
1574         functions in named sections -- data items can still go into unique
1575         sections, but they have normal names (ie $LIT$ and $DATA$).
1576
1577         * config/pa/som.h (SUPPORTS_INIT_PRIORITY): SOM does not support
1578         INIT_PRIORITY.
1579
1580 2001-04-19 DJ Delorie  <dj@redhat.com>
1581
1582         * config/alpha/vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX
1583         to TARGET_OBJECT_SUFFIX and TARGET_EXECUTABLE_SUFFIX.
1584         * config/i386/cygwin.h: Likewise.
1585         * config/i386/mingw32.h: Likewise.
1586         * config/vax/vms.h: Likewise.
1587         * config/i386/djgpp.h: Remove NO_AUTO_EXE_SUFFIX.
1588
1589         * config/alpha/xm-vms.h: Change OBJECT_SUFFIX and EXECUTABLE_SUFFIX
1590         to HOST_OBJECT_SUFFIX and HOST_EXECUTABLE_SUFFIX.
1591         * config/i386/xm-cygwin.h: Likewise.
1592         * config/i386/xm-djgpp.h: Likewise.
1593         * config/i386/xm-mingw32.h: Likewise.
1594         * config/vax/xm-vms.h: Likewise.
1595
1596         * mkdeps.c (deps_add_default_target): Use TARGET_OBJECT_SUFFIX
1597         instead of OBJECT_SUFFIX.
1598         * collect2.c (find_a_file): Look for files matching the extension
1599         HOST_EXECUTABLE_SUFFIX instead of EXECUTABLE_SUFFIX.
1600         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION): Depend on
1601         TARGET_EXECUTABLE_SUFFIX.
1602         (find_a_file): Use HOST_EXECUTABLE_SUFFIX.
1603         (make_relative_prefix): Likewise.
1604         (convert_filename): Use TARGET_ suffixes throughout.  Remove
1605         NO_AUTO_EXE_SUFFIX.
1606         (process_command): Likewise.
1607         (do_spec_1): Likewise.
1608         * java/lang.c (init_parse): Likewise.
1609
1610         * gcc.texi : Document four new options matching the pattern
1611         (HOST|TARGET)_(OBJECT|EXECUTABLE)_SUFFIX.  Remove documentation
1612         for deleted macros OBJECT_SUFFIX and EXECUTABLE_SUFFIX.  Remove
1613         documentation for NO_AUTO_EXE_SUFFIX.
1614
1615 2001-04-19  Mark Mitchell  <mark@codesourcery.com>
1616
1617         * toplev.h (struct lang_hooks): Allow decode_option to indicate
1618         that language-independent processing should not be done.
1619         * toplev.c (main): Adjust accordingly.
1620
1621         * rtl.texi (jump_insn): Expand on JUMP_LABEL documentation.
1622         * loop.c (load_mems): Handle a NULL JUMP_LABEL for a JUMP_INSN.
1623
1624         * mips.md (reload_outputdi): Require that operand0 be a
1625         general_operand.
1626
1627 2001-04-19  Jakub Jelinek  <jakub@redhat.com>
1628
1629         * invoke.texi (-Wshadow): Clarify.
1630
1631 2001-04-18  Mark Mitchell  <mark@codesourcery.com>
1632
1633         * loop.c (load_mems): Examine all the instructions in the loop
1634         before concluding that all jumps branch to the first instruction
1635         after the loop.
1636
1637 Wed Apr 18 20:32:03 2001  Christopher Faylor <cgf@cygnus.com>
1638
1639         * config/i386/xm-cygwin.h (CPP_SPEC): Fix typo.
1640
1641 2001-04-18  Jakub Jelinek  <jakub@redhat.com>
1642
1643         * cpp.texi (-Wwhite-space): Remove.
1644         (-Wall): -Wall does not imply -Wwhite-space.
1645
1646 2001-04-17  Zack Weinberg  <zackw@stanford.edu>
1647
1648         * dbxout.c (dbxout_init): If DBX_OUTPUT_GCC_MARKER is defined,
1649         use it instead of blindly generating a .stabs.
1650         * xcoffout.h: Define DBX_OUTPUT_GCC_MARKER so we put the type
1651         in the right place.
1652         * xcoffout.c: Don't bother defining default for N_CATCH.
1653         (UNKNOWN_STAB): Use internal_error.
1654         (stab_to_sclass): Remove now-unnecessary aborts.
1655         Remove #if 0'ed case N_BROWS.  Add #ifdef N_OPT block.
1656
1657 Tue Apr 17 21:41:11 2001  Jeffrey A Law  (law@cygnus.com)
1658
1659         * jump.c (mark_all_labels): Canonicalize the tail recursion
1660         label attached to CALL_PLACEHOLDER insns.
1661
1662 2001-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1663
1664         * output.h (dump_flow_info, free_basic_block_vars,
1665         which_alternative): Delete redundant prototypes.
1666
1667         * rtl.h (bss_section): Likewise.
1668
1669 2001-04-17  Loren J. Rittle  <ljrittle@acm.org>
1670
1671         * dbxout.c (N_OPT): Define if not available from <stab.h>
1672
1673 2001-04-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1674
1675         * vax.h (PROMOTE_PROTOTYPES): Define for compatibility with system
1676         libraries and native K&R compilers.
1677
1678 2001-04-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1679
1680         * c-typeck.c (convert_arguments): Don't check for width changes
1681         with -Wtraditional.
1682
1683         * invoke.texi (-Wtraditional): Update documentation.
1684
1685 2001-04-16  Zack Weinberg  <zackw@stanford.edu>
1686
1687         * toplev.c (output_lang_identify): Delete.
1688         (compile_file): Don't call ASM_IDENTIFY_GCC or ASM_IDENTIFY_LANGUAGE.
1689         Don't generate gcc2_compiled. label.  Don't emit a nop if profiling.
1690         If IDENT_ASM_OP is defined, emit an .ident "GCC (GNU) <version>"
1691         after calling ASM_FILE_END.
1692
1693         * dbxout.c (dbxout_init): Don't call ASM_IDENTIFY_GCC_AFTER_SOURCE.
1694         Instead, unconditionally emit an N_OPT stab with string equal
1695         to STABS_GCC_MARKER, which defaults to "gcc2_compiled."
1696
1697         * defaults.h: Don't provide default for ASM_IDENTIFY_LANGUAGE.
1698
1699         * config/dbxelf.h, config/freebsd.h, config/nextstep.h,
1700         config/psos.h, config/ptx4.h, config/1750a/1750a.h,
1701         config/alpha/alpha.h, config/alpha/elf.h, config/arc/arc.h,
1702         config/arm/aof.h, config/arm/coff.h, config/arm/elf.h,
1703         config/arm/linux-elf.h, config/avr/avr.h, config/d30v/d30v.h,
1704         config/dsp16xx/dsp16xx.h, config/h8300/h8300.h,
1705         config/i370/i370.h, config/i386/beos-elf.h,
1706         config/i386/osf1elf.h, config/i386/osfrose.h,
1707         config/ia64/sysv4.h, config/m68k/3b1.h, config/m68k/auxgas.h,
1708         config/m68k/crds.h, config/m68k/hp320.h, config/m68k/m68kv4.h,
1709         config/m68k/mot3300.h, config/m68k/news.h, config/m68k/sgs.h,
1710         config/m68k/tower-as.h, config/mcore/mcore-elf.h,
1711         config/mips/iris6.h, config/mips/osfrose.h,
1712         config/mips/sni-svr4.h, config/pa/som.h, config/pdp11/pdp11.h,
1713         config/sparc/sp64-elf.h:
1714         Delete definitions of any or all of: ASM_IDENTIFY_GCC,
1715         ASM_IDENTIFY_GCC_AFTER_SOURCE, and ASM_IDENTIFY_LANGUAGE.
1716
1717         * config/elfos.h, config/freebsd.h, config/linux.h,
1718         config/alpha/elf.h, config/arm/linux-elf.h, config/i386/i386elf.h,
1719         config/i386/ptx4-i.h, config/mips/gnu.h, config/mips/linux.h,
1720         config/sparc/linux.h, config/sparc/linux64.h: Delete definitions
1721         of ASM_FILE_START which merely emit a .version directive.  Delete
1722         definitions of ASM_FILE_END which merely emit an .ident directive.
1723
1724         * config/avr/avr.h, config/vax/vax.h: Delete definition of
1725         ASM_IDENTIFY_GCC and move part of its logic into
1726         ASM_FILE_START.
1727
1728         * config/i386/att.h, config/i386/gas.h, config/i386/linux.h,
1729         config/sparc/linux-aout.h: Don't emit .version directive in
1730         ASM_FILE_START.
1731
1732         * config/i386/dgux.c, config/m88k/m88k.c, config/sh/sh.c
1733         (output_file_start): Correct comment.
1734
1735         * config/i386/osfrose.h: Don't emit trailing .ident directive.
1736         * config/m68k/mot3300.h: Override STABS_GCC_MARKER to "gcc2_compiled%"
1737         to match gdb.
1738         * config/pa/lib2funcs.asm: Delete gcc_compiled. label.
1739         * config/rs6000/aix.h: Correct comment.
1740
1741         * config/i386/i386afe.h: Delete.
1742         * config.gcc: Remove references to i386afe.h.
1743
1744         * tm.texi: Delete documentation of ASM_IDENTIFY_GCC.  The
1745         other macros deleted by this patch were undocumented.
1746
1747 Mon Apr 16 08:03:48 2001  Jeffrey A Law  (law@cygnus.com)
1748
1749         * pa.md (reload_outdi): Operand 0 must be a non hard register.
1750
1751         * pa.c (secondary_reload_class): SAR<->FP copies require a
1752         secondary register.
1753
1754         * install.texi (mips-mips-bsd): Update list of functions
1755         required to include memmove.
1756         * tm.texi (TARGET_MEM_FUNCTIONS): Update list of implicitly
1757         used functions to include memmove.
1758
1759 2001-04-15  Toon Moene  <toon@moene.indiv.nluug.nl>
1760
1761         * i386.md (sqrtdf2): SFmode should be DFmode.
1762
1763 2001-04-15  Alexandre Oliva  <aoliva@redhat.com>
1764
1765         * gcse.c (compute_ld_motion_mems): ASM outputs aren't moveable.
1766         (find_moveable_store): Likewise.
1767
1768 2001-04-15  Jim Wilson  <wilson@redhat.com>
1769
1770         * function.c (expand_function_end): Handle PARALLEL real_decl_rtl.
1771
1772 Sat Apr 14 16:24:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
1773
1774         * i386.md (ashldi3_1_rex64): Add 'J' to the constraints
1775         (ashrdi3_1_rex64): Change 'n' constraint to 'J'.
1776
1777 2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
1778
1779         * config/mn10300/mn10300.md (cmpsi): Tell reload to disregard the
1780         first alternative.
1781
1782 2001-04-14  Alan Modra  <amodra@one.net.au>
1783
1784         * pa.c (force_mode): New function.
1785         (emit_move_sequence): Use it instead of generating new rtx_REGs.
1786
1787 2001-04-13  Jim Wilson  <wilson@redhat.com>
1788
1789         * config/ia64/ia64.c (ia64_expand_epilogue): Emit alloc if sibcall_p.
1790         (first_instruction): New static variable.
1791         (rtx_needs_barrier): Return 1 for alloc.
1792         (init_insn_group_barriers): Set first_instruction.
1793         (rws_sum): Delete duplicate definition.
1794         (group_barrier_needed_p): Return 0 when first_instruction true.
1795         (safe_group_barrier_needed_p): Save and restore first_instruction
1796         around group_barrier_needed_p call.
1797
1798 Fri Apr 13 21:40:28 2001  Loren J. Rittle  <ljrittle@acm.org>
1799
1800         * expr.h (enum libfunc_index): Add LTI_memmove.
1801         (memmove_libfunc): Define macro.
1802         * optabs.c (init_optabs): Initialize memmove_libfunc.
1803         * expr.c (expand_assignment): Use memmove_libfunc instead of
1804         memcpy_libfunc.
1805
1806 2001-04-13  Alan Modra  <alan@linuxcare.com.au>
1807
1808         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Disallow PIC LO_SUM
1809         fp mode addresses.
1810
1811 2001-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1812
1813         * Makefile.in (reg-stack.o): Depend on reload.h.
1814         (insn-attrtab.o): Depend on flags.h.
1815
1816         * genattrtab (main): Include flags.h in insn-attrtab.c.
1817
1818         * reg-stack.c: Include reload.h.
1819
1820         * sparc.h (flag_pic): Delete redundant declaration.
1821
1822         * output.h (flag_pic): Likewise.
1823
1824         * tree.h (pedantic): Likewise.
1825
1826 2001-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1827
1828         * Makefile.in (toplev.o, jump.o, regmove.o): Depend on reload.h
1829
1830         * jump.c, regmove.c, toplev.c: Include reload.h.
1831
1832         * reload.h (reload_cse_regs): Declare.
1833
1834         * rtl.h (find_equiv_reg, operands_match_p, safe_from_earlyclobber,
1835         reload_cse_regs, init_reload, mark_home_live, reload,
1836         init_caller_save): Delete redundant prototypes.
1837
1838 2001-04-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1839
1840         * Makefile.in (ssa.o, regclass.o): Depend on $(EXPR_H).
1841
1842         * regclass.c, ssa.c: Include expr.h.
1843
1844         * rtl.h (memory_address, force_reg, emit_queue, emit_move_insn,
1845         gen_move_insn): Delete redundant declarations.
1846
1847 2001-04-13  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1848
1849         * Makefile.in (CFLAGS, BOOT_CFLAGS): Partly revert 2000-10-27 patch.
1850         (stage1_build): Instead pass down STAGE1_CFLAGS here. Pass down
1851         MAKEINFO and MAKEINFOFLAGS too.
1852         (stage4_build): Correctly order -B flags.
1853
1854 2001-04-13  Alan Modra  <amodra@one.net.au>
1855
1856         * pa.c (hppa_init_pic_save): Set rtx_unchanging for
1857         PIC_OFFSET_TABLE_SAVE_RTX.
1858         (zdepi_cint_p): Describe zdepi insn.
1859         Formatting and white space fixes throughout file.
1860
1861         * pa.c (uint32_operand): Don't use long constant >= 2^32.
1862         (emit_move_sequence): Use HOST_WIDE_INT constants.  Don't worry
1863         about 32->64 bit sign extension if 32 bit HOST_WIDE_INTs.
1864         (compute_movstrsi_length): Make `align' unsigned to avoid warning.
1865         (output_64bit_and): Use plain `int's for shift counts.
1866         (output_64bit_ior): Likewise.
1867         (function_arg_partial_nregs): Use unsigned vars to avoid warnings.
1868         * pa.h (CONST_OK_FOR_LETTER_P): Use HOST_WIDE_INT constants for case
1869         `N', and simplify.
1870
1871         * pa-hpux10.h (NEW_HP_ASSEMBLER): Define to 1.
1872         * pa-hpux11.h (NEW_HP_ASSEMBLER): Likewise.
1873         * pa.h (LEGITIMATE_CONSTANT_P) Collapse two defines depending on
1874         NEW_HP_ASSEMBLER into one.  Kill warnings.
1875
1876         * pa-gas.h: Delete file.
1877         * config.gcc: Match `parisc' as well as `hppa' for cpu_type=pa.
1878         Add new targets hppa*64*-*-linux* and parisc*64*-*-linux*.  Update
1879         hppa*-*-linux*.  For all pa targets, remove pa/gas.h from tm_file,
1880         instead setting MASK_GAS | MASK_JUMP_IN_DELAY in target_cpu_default2.
1881
1882         * config/pa/mill32.S: New file.
1883         * config/pa/mill64.S: New file.
1884         * config/pa/t-linux (LIBGCC1, CROSS_LIBGCC1, LIB1ASMFUNCS,
1885         LIB1ASMSRC, CRTSTUFF_T_CFLAGS_S, TARGET_LIBGCC2_CFLAGS): Define.
1886         * config/pa/t-linux64: New file.
1887         * config/pa/t-pa64 (CROSS_LIBGCC1): Change to libgcc1-asm.a
1888         (LIB1ASMFUNCS, LIB1ASMSRC): Define.
1889         (TARGET_LIBGCC2_CFLAGS): Add -Dpa64=1 -DELF=1.
1890
1891         * elfos.h (SELECT_SECTION): Undef before defining.
1892         * pa-linux.h (LINUX_DEFAULT_ELF, PTRDIFF_TYPE, CPP_SPEC): Remove.
1893         (LIB_SPEC): Remove -lmilli.
1894         (DBX_REGISTER_NUMBER): Remove.
1895         (PREFERRED_DEBUGGING_TYPE, DWARF2_ASM_LINE_DEBUG_INFO,
1896         (DWARF2_UNWIND_INFO, ASM_SPEC, LINK_SPEC, FUNCTION_OK_FOR_SIBCALL,
1897         NO_PROFILE_COUNTERS, SELECT_RTX_SECTION, INCOMING_RETURN_ADDR_RTX,
1898         DWARF_FRAME_RETURN_COLUMN, STRING_ASM_OP, TEXT_SECTION_ASM_OP,
1899         DATA_SECTION_ASM_OP, BSS_SECTION_ASM_OP, ASM_FILE_START,
1900         ASM_OUTPUT_DEF, ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT,
1901         ASM_OUTPUT_LABEL, ASM_GLOBALIZE_LABEL, ASM_DECLARE_FUNCTION_NAME,
1902         TARGET_GAS): Define.
1903         * pa.c (output_arg_descriptor): Disable for TARGET_ELF32.
1904         (function_arg): If TARGET_ELF32, pass fp args in both general and fp
1905         regs if we don't have a prototype.
1906         * pa.md (canonicalize_funcptr_for_compare): Not for TARGET_ELF32.
1907         * pa.h (TARGET_ELF32): Default to 0 if undefined.
1908         (EH_RETURN_DATA_REGNO, EH_RETURN_STACKADJ_RTX,
1909         EH_RETURN_HANDLER_RTX): Define.
1910         * pa32-regs.h (DBX_REGISTER_NUMBER): Remove unnecessary test.
1911         (DWARF_FRAME_REGNUM): Define.
1912         * pa64-regs.h (DWARF_FRAME_REGNUM): Define.
1913         * pa32-linux.h: New file.
1914         * pa64-linux.h: New file.
1915
1916         * pa-64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
1917         (ASM_OUTPUT_DOUBLE_INT): Format, protect macro with do..while.
1918         (LINK_SPEC, LIB_SPEC, MD_EXEC_PREFIX, MD_STARTFILE_PREFIX,
1919         NEW_HP_ASSEMBLER, ASM_FILE_START, OBJECT_FORMAT_ELF,
1920         DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_FORMAT,
1921         DWARF2_ASM_LINE_DEBUG_INFO, USE_CONST_SECTION, CONST_SECTION_ASM_OP,
1922         CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP, INIT_SECTION_ASM_OP,
1923         FINI_SECTION_ASM_OP, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
1924         READONLY_DATA_SECTION, CONST_SECTION_FUNCTION, CTORS_SECTION_FUNCTION,
1925         DTORS_SECTION_FUNCTION, ASM_OUTPUT_SECTION_NAME, MAKE_DECL_ONE_ONLY,
1926         UNIQUE_SECTION_P, UNIQUE_SECTION, INT_ASM_OP, ASM_OUTPUT_CONSTRUCTOR,
1927         ASM_OUTPUT_DESTRUCTOR, TYPE_ASM_OP, SIZE_ASM_OP, ASM_WEAKEN_LABEL,
1928         TYPE_OPERAND_FMT, ASM_DECLARE_RESULT): Move to..
1929         * pa64-hpux.h: New file.
1930         (ASM_FILE_START): Correct typo.
1931         (PREFERRED_DEBUGGING_FORMAT): Rename to PREFERRED_DEBUGGING_TYPE.
1932         * config.gcc: Modify for above.
1933
1934 Fri Apr 13 00:09:22 EDT 2001  John Wehle  (john@feith.com)
1935
1936         * jump.c (jump_optimize_1): Don't delete dead stores here.
1937         * toplev.c (rest_of_compilation): Call delete_trivially_dead_insns
1938         prior to running jump optimize before cse2.
1939
1940 2001-04-12  Richard Henderson  <rth@redhat.com>
1941
1942         * Makefile.in (regmove.o): Depend on except.h.
1943         * regmove.c: Include it.
1944
1945 2001-04-12  Stan Shebs  <shebs@apple.com>
1946
1947         * objc/objc-act.c: Remove all code ifdefed with the never-used
1948         macro OBJC_INT_SELECTORS.
1949         * config/d30v/d30v.h: Remove commented-out ref to OBJC_INT_SELECTORS.
1950         * tm.texi: Remove doc for OBJC_INT_SELECTORS.
1951
1952 Thu Apr 12 18:13:37 2001  Rodney Brown  <RodneyBrown@mynd.com>
1953
1954         * config/pa/quadlib.c: Add prototypes.
1955
1956 2001-04-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1957
1958         * bitmap.h (debug_bitmap): Delete redundant prototype.
1959
1960         * rtl.h (get_frame_size): Likewise.
1961
1962 2001-04-12  Jim Wilson  <wilson@redhat.com>
1963
1964         * config/ia64/ia64.md (extendsfdf2, extendsftf2, extenddftf2): Simplify
1965         to just emit an fnorm.
1966
1967 2001-04-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1968
1969         * c-common.h (truthvalue_conversion, type_for_mode,
1970         type_for_size): Delete redundant declarations.
1971
1972         * c-lex.h (is_class_name): Likewise.
1973
1974         * c-tree.h (pedantic, convert, getdecls, gettags,
1975         global_bindings_p, init_decl_processing, insert_block,
1976         maybe_build_cleanup, poplevel, print_lang_decl,
1977         print_lang_identifier, print_lang_type, pushdecl, pushlevel,
1978         set_block, incomplete_type_error, build_function_call,
1979         lvalue_or_else, mark_addressable): Likewise.
1980
1981         * expr.h (expand_tree_builtin): Likewise.
1982
1983 2001-04-12  Mark Mitchell  <mark@codesourcery.com>
1984
1985         * invoke.texi: Document --param max-gcse-memory.
1986
1987 2001-04-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1988
1989         * configure.in (errno): Check for declaration.
1990         * configure, config.in: Regenerated.
1991
1992         * system.h (errno): Only declare if not already done.
1993
1994 2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
1995
1996         * recog.c (general_operand, immediate_operand,
1997         nonmemory_operand): Require CONST_INTs to be sign-extended
1998         values for their modes.
1999
2000 2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
2001
2002         * expmed.c (store_bit_field): Truncate CONST_INTs.
2003         (expand_mult_highpart, expand_divmod): Likewise.
2004         * expr.c (convert_modes, store_field): Likewise.
2005         * integrate.c (expand_inline_function): Use promote_mode() to
2006         determine whether to convert_modes() an argument as signed
2007         or unsigned.
2008         * optabs.c (expand_binop): Get CONST_INT operands
2009         sign-extended for their appropriate modes.
2010         * stmt.c (emit_case_nodes): Convert node values to the
2011         appropriate mode.
2012         (expand_end_case): Convert minval and range to the appropriate
2013         mode.
2014         * unroll.c (loop_iterations): Truncate abs_diff to the mode of
2015         the iteration variable.
2016         * varasm.c (immed_double_const): Don't require words to be
2017         narrower than host wide ints to properly sign-extend
2018         CONST_INTs.
2019
2020 2001-04-12  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2021
2022         * sh.md (builtin_setjmp_receiver): New expander.
2023
2024 2001-04-12  David Edelsohn  <dje@watson.ibm.com>
2025
2026         * config/rs6000/rs6000.c (rs6000_emit_move): Do not
2027         special-case HOST_BITS_PER_WIDE_INT != 32.  Use same criteria
2028         for generating CONST_INT and CONST_DOUBLE.
2029
2030 2001-04-12  Alexandre Oliva  <aoliva@redhat.com>
2031
2032         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
2033         already sign-extended.
2034         (rs6000_emit_prologue): Make register iterator signed.
2035         (rs6000_emit_epilogue): Likewise.
2036         * config/rs6000/rs6000.md (addsi3, adddi3): Sign-extend high
2037         and low.
2038         (movsf split, movdf split): Sign-extend CONST_INTs.
2039         (movdi splits): Likewise.
2040
2041 2001-04-12  Kelley Cook <kelley.cook@home.com>
2042
2043         * config-lang.in (lang_dirs): Add in zlib.
2044
2045 2001-04-11  Alexandre Oliva  <aoliva@redhat.com>
2046
2047         * config/i386/i386.md: Apply trunc_int_for_mode() to GEN_INT
2048         operands that make it to RTL.
2049
2050 2001-04-11  Stan Shebs  <shebs@apple.com>
2051
2052         Add Darwin (Mac OS X kernel) native support.
2053         * config.gcc (powerpc-*-darwin*): Add native bits.
2054         * config/darwin.c: New file, generic Darwin support functions.
2055         * config/darwin.h: New file, generic Darwin definitions.
2056         * config/darwin-protos.h: New file, generic Darwin prototypes.
2057         * rs6000/darwin.h: New file, Darwin for PowerPC.
2058         * rs6000/t-darwin: New file, Darwin makefile fragment.
2059         * rs6000/rs6000.h (OBJECT_MACHO): New macro.
2060         (TARGET_MACHO): Ditto.
2061         (rs6000_abi): Add ABI_DARWIN.
2062         (RS6000_REG_SAVE): Add ABI_DARWIN case.
2063         (RS6000_SAVE_AREA): Ditto.
2064         (FP_ARG_MAX_REG): Ditto.
2065         (RETURN_ADDRESS_OFFSET): Ditto.
2066         * rs6000/rs6000.c (rs6000_legitimize_address): Add TARGET_MACHO
2067         cases.
2068         (rs6000_emit_move): Add ABI_DARWIN cases.
2069         (print_operand): Ditto.
2070         (first_reg_to_save): Ditto.
2071         (rs6000_stack_info): Ditto, also align stack by 16 instead of 8.
2072         (debug_stack_info): Ditto.
2073         (rs6000_emit_prologue): Ditto.
2074         (rs6000_emit_epilogue): Ditto.
2075         (output_profiler_hook): Ditto.
2076         (output_function_profiler): Ditto.
2077         (rs6000_add_gc_roots): Call machopic_add_gc_roots if TARGET_MACHO.
2078         (output_mi_thunk): Add TARGET_MACHO case.
2079         (add_compiler_stub): Ditto.
2080         (output_compiler_stub): Ditto.
2081         (no_previous_def): Ditto.
2082         (output_call): Ditto.
2083         (machopic_output_stub): Ditto.
2084         (rs6000_machopic_legitimize_pic_address): Ditto.
2085         (toc_section): Ditto.
2086         * rs6000/rs6000.md (addsi3_high): New TARGET_MACHO pattern.
2087         (macho_high): Ditto.
2088         (macho_low): Ditto.
2089         (movsi_low): Ditto.
2090         (load_macho_picbase): Ditto.
2091         (call): Add TARGET_MACHO case to modify function.
2092         (call_value): Ditto.
2093         (call_nonlocal_sysv): Add ABI_DARWIN case.
2094         (call_value_nonlocal_sysv): Ditto.
2095         * rs6000/rs6000-protos.h (rs6000_machopic_legitimize_pic_address):
2096         Add prototype.
2097         (machopic_output_stub): Ditto.
2098         * ginclude/stddef.h: Test _BSD_WCHAR_T_DEFINED_.
2099
2100 2001-04-11  Mark Mitchell  <mark@codesourcery.com>
2101
2102         * dwarf2out.c (modified_type_die): Don't create new types here.
2103         * tree.h (get_qualified_type): New function.
2104         (build_qualified_type): Adjust comment.
2105         * tree.c (get_qualified_type): New function.
2106         (build_qualified_type): Use it.
2107
2108 2001-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2109
2110         * cpp.texi (-Wtraditional): Update description.
2111
2112         * invoke.texi (-Wtraditional): Likewise.
2113
2114 2001-04-11  Jim Wilson  <wilson@redhat.com>
2115
2116         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Return 128 if argument
2117         requires more than 64 bits of alignment.
2118
2119 2001-04-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2120
2121         * cpplib.c (do_line): Sanity check iff enable checking.
2122
2123 2001-04-11  Richard Henderson  <rth@redhat.com>
2124
2125         * Makefile.in (insn-recog.o): Depend on toplev.h.
2126         (insn-emit.o, doloop.o): Likewise.
2127         * genrecog.c, genemit.c: Include toplev.h in generated file.
2128         * doloop.c: Include toplev.h.
2129
2130 2001-04-11  Mark Mitchell  <mark@codesourcery.com>
2131
2132         * Makefile.in (gcse.o): Depend on params.h.
2133         * gcse.c: Include params.h.
2134         (gcse_main): Don't do GCSE if doing so will take inordinate
2135         amounts of memory.
2136         * params.def (PARAM_MAX_GCSE_MEMORY): New  parameter.
2137         * params.h (MAX_GCSE_MEMORY): New macro.
2138
2139 2001-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2140
2141         * Makefile.in (insn-output.o): Depend on $(EXPR_H).
2142
2143         * genoutput.c (output_prologue): Include expr.h in insn-output.c.
2144
2145 2001-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2146
2147         * output.h (assemble_real): Declare if REAL_VALUE_TYPE is defined.
2148
2149         * real.h (ereal_atof, real_value_truncate, target_isnan,
2150         target_isinf, target_negative, assemble_real, debug_real): Delete
2151         redundant prototypes.
2152
2153         * Makefile.in (ifcvt.o): Depend on toplev.h.
2154
2155         * c-semantics.c: Include expr.h.
2156
2157         * ifcvt.c: Include toplev.h.
2158
2159         * expr.h (rtx_equal_p): Delete prototype.
2160
2161         * rtl.h (exact_log2_wide, floor_log2_wide, permalloc,
2162         protect_from_queue, gen_jump, gen_beq, gen_bge, gen_ble,
2163         eliminate_constant_term, expand_complex_abs, find_single_use,
2164         make_tree, init_expr_once, init_optabs, supports_one_only):
2165         Likewise.
2166
2167         * tree.h (exact_log2_wide, floor_log2_wide, expand_null_return,
2168         rest_of_type_compilation, emit_queue, do_pending_stack_adjust,
2169         expand_assignment, store_expr, emit_line_note_after,
2170         emit_line_note_force, split_specs_attrs, label_rtx): Likewise.
2171
2172         * toplev.h (exact_log2_wide, floor_log2_wide): Add prototype.
2173
2174         * sparc-protos.h: Delete redundant prototypes.
2175
2176 2001-04-11  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2177
2178         * reload.c (push_reload): Add condition missed in SUBREG byte
2179         offset patch.
2180
2181 Wed Apr  4 00:28:23 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2182
2183         * sparc/sol2-sld-64.h (STARTFILE_SPEC): Added missing blank.
2184
2185 Wed Apr 11 14:06:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
2186
2187         * i386.md (floatsisf_sse): Fix output template
2188         * i386.c (ix86_expand_fp_movcc)
2189
2190         * reg-stack.c (emit_pop_insn): Handle complex modes.
2191         (move_for_stack_reg): Emit proper move mode.
2192         (subst_stack_regs_pat): Handle complex modes.
2193
2194 2001-04-11  Jakub Jelinek  <jakub@redhat.com>
2195
2196         * cpplex.c (_cpp_lex_token): Only warn if -Wcomment.
2197
2198 2001-04-10  Richard Henderson  <rth@redhat.com>
2199
2200         * libgcc2.h (__terminate_func_ptr): Remove typedef.
2201         (__pure_virtual, __terminate, __terminate_set_func,
2202         __default_terminate, __throw_type_match, __empty,
2203         __get_eh_context, __get_eh_info, __get_dynamic_handler_chain,
2204         __eh_rtime_match, __unwinding_cleanup, __rethrow,
2205         __sjthrow, __sjpopnthrow, __eh_alloc, __eh_free):
2206         Remove prototypes of deleted functions.
2207
2208 2001-04-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2209
2210         * c-typeck.c (convert_arguments): -Wtraditional now activates
2211         -Wconversion warnings, except for changes in signed-ness.
2212         Detect complex<->int & int<->complex conversions as well.
2213
2214         * invoke.texi (-Wtraditional): Document it.
2215
2216 Tue Apr 10 17:45:50 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2217
2218         * gcse.c (update_ld_motion_stores): Don't use variable I for an insn.
2219         * flow.c (set_block_for_new_insns): Remove needless cast and
2220         properly check for unset block number.
2221
2222 2001-04-10  Andrew MacLeod  <amacleod@redhat.com>
2223
2224         * function.c (purge_single_hard_subreg_set): Only check REGNO if
2225         the subreg was a hard register. Pseudos are left as subregs.
2226
2227 2001-04-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2228
2229         * Makefile.in (LIB2FUNCS_STATIC_EXTRA): New macro.
2230         (LIB2ADD_ST): New macro, pass it to mklibgcc.
2231         * mklibgcc.in (libgcc2_st_objs): New variable, set it from LIB2ADD_ST.
2232         (libgcc_st_objs): New, set from libgcc2_st_objs. Use it for libgcc.a.
2233         * config/rs6000/t-ppccomm (LIB2FUNCS_STATIC_EXTRA): New macro.
2234
2235 2001-04-09  Bo Thorsen  <bo@suse.co.uk>
2236
2237         * config/i386/i386.md: "TARGET_64BIT && TARGET_64BIT": Removed one.
2238
2239 2001-04-09  Andrew MacLeod  <amacleod@redhat.com>
2240
2241         * output.h (set_block_num): Missed it earlier, remove deprecated
2242         prototype.
2243
2244 2001-04-09  Andrew MacLeod  <amacleod@redhat.com>
2245
2246         * gcse.c (oprs_unchanged_p): Pass basic_block to load_killed_in_block_p.
2247         (load_killed_in_block_p): Change bb parameter from int to basic_block.
2248         (oprs_not_set_p): Pass basic_blocks instead of ints as parameters.
2249         (handle_rd_kill_set): Change bb parameter from int to basic_block.
2250         (compute_kill_rd): Pass basic_blocks instead of ints as parameters.
2251         (expr_killed_p): Change bb parameter from int to basic_block, pass
2252         basic_blocks instead of ints as parameters.
2253         (compute_ae_kill): Pass basic_blocks instead of ints as parameters.
2254         (expr_reaches_here_p_work, expr_reaches_here_p): Change bb parameter
2255         from int to basic_block, pass basic_blocks instead of ints as parms.
2256         (pre_expr_reaches_here_p_work, pre_expr_reaches_here_p): Change bb
2257         parameter from int to basic_block, pass basic_blocks instead of ints.
2258         (process_insert_insn): Pass basic_blocks instead of ints as parameters.
2259         (insert_insn_end_bb): Change bb parameter from int to basic_block,
2260         pass basic_blocks instead of ints.
2261         (pre_edge_insert, pre_insert_copy_insn, pre_insert_copies): Pass
2262         basic_blocks instead of ints as parameters.
2263         (pre_delete): Pass basic_blocks instead of ints as parameters.
2264         (hoist_expr_reaches_here_p): Change bb parameter from int to
2265         basic_block, pass basic_blocks instead of ints.
2266         (hoist_code): Pass basic_blocks instead of ints as parameters.
2267         (reg_set_info, store_ops_ok, store_killed_after, store_killed_before):
2268         Change bb parameter from int to basic_block.
2269         (build_store_vectors): Pass basic_blocks instead of ints as parameters.
2270         (insert_insn_start_bb): Change bb parameter from int to basic_block,
2271         pass basic_blocks instead of ints.
2272         (insert_store): Pass basic_blocks instead of ints as parameters.
2273         (replace_store_insn, delete_store): Change bb parameter from int to
2274         basic_block, pass basic_blocks instead of ints.
2275         (store_motion): Pass basic_blocks instead of ints as parameters.
2276
2277 2001-04-09  Andrew MacLeod  <amacleod@redhat.com>
2278
2279         * basic-block.h (set_new_block_for_insns): New Prototype.
2280         (set_block_num): Delete prototype.
2281         * flow.c (set_block_num): Remove obsolete function.
2282         (set_block_for_new_insns): Set BB for single or multiple insns.
2283         * gcse.c (handle_avail_expr): Use set_block_for_new_insns.
2284         (process_insn_end_bb): Use set_block_for_new_insns or
2285         set_block_for_insn instead of set_block_num.
2286         (pre_insert_copy_insn): Use set_block_for_new_insns.
2287         (update_ld_motion_stores): Use set_block_for_new_insns.
2288         (insert_insn_start_bb): Use set_block_for_new_insns.
2289         (replace_store_insn): Use set_block_for_new_insns.
2290
2291 2001-04-09  Andrew MacLeod  <amacleod@redhat.com>
2292             Jeff Law  <law@redhat.com>
2293
2294         * alias.c (get_addr): Externalize.
2295         (canon_true_dependence): New function. Behaves like true_dependance
2296         except it already assumes a MEM has been canonicalized.
2297         * flags.h (flag_gcse_lm, flag_gcse_sm): New optimization flags.
2298         * gcse.c (struct ls_expr): Add load/store expressions structure.
2299         (modify_mem_list, canon_modify_mem_list): New variable.
2300         (gcse_main): Initialize & finalize alias analysis. Use enhanced
2301         load motion and store motion if requested.
2302         (alloc_gcse_mem): Allocate space for modify_mem_list array.
2303         (free_gcse_mem): Free the modify_mem_list array.
2304         (oprs_unchanged_p): Use load_killed_in_block_p.
2305         (gcse_mems_conflict_p, gcse_mem_operand): New variables.
2306         (mems_conflict_for_gcse_p): New function.  Don't kill loads
2307         with stores to themselves if its in the load/store expression list.
2308         (load_killed_in_block_p): New function.
2309         (canon_list_insert): New Function.
2310         (record_last_mem_set_info): Keep a list of all instructions which
2311         can modify memory for each basic block.
2312         (compute_hash_table, reset_opr_set_tables): Clear modify_mem_list.
2313         (oprs_not_set_p): Use load_killed_in_block_p.
2314         (mark_call, mark_set, mark_clobber): Use record_last_mem_set_info.
2315         (expr_killed_p): Use load_killed_in_block_p.
2316         (compute_transp): Do not pessimize memory references.
2317         (pre_edge_insert): Update stores for a load motion expression.
2318         (one_pre_gcse_pass): Check loads/stores for extra load motion.
2319         (ldst_entry): Find or create a ldst_expr structure.
2320         (free_ldst_entry): Free memory for an individual item.
2321         (free_ldst_mems): Free entire load/store expression list.
2322         (print_ldst_list): Print debug info.
2323         (find_rtx_in_ldst): Try to find an rtx expression in the ldst list.
2324         (enumerate_ldsts): Assign integer values to each entry in list.
2325         (first_ls_expr): First expression in the list.
2326         (next_ls_expr): Next expression in the list.
2327         (simple_mem): Check if expression qualifies for ld/st expression list.
2328         (invalidate_any_buried_refs): Remove from expression list if its
2329         used in some other way we dont understand.
2330         (compute_ld_motion_mems): Find all potential enhanced load motion
2331         expression.
2332         (trim_ld_motion_mems): Remove any expressions which are invalid.
2333         (update_ld_motion_stores): Copy store values to registers for loads
2334         which have been moved.
2335         (regvec, st_antloc, num_store): New global statics.
2336         (reg_set_info): Marks registers as set.
2337         (store_ops_ok): Verfies registers expressions are valid in a block.
2338         (find_moveable_store): Look for moveable stores in a pattern.
2339         (compute_store_table): Find stores in a function worth moving, maybe.
2340         (load_kills_store): Check dependance of a load and store.
2341         (find_loads): Find any loads in a pattern.
2342         (store_killed_in_insn): Check if a store is killed in an insn.
2343         (store_killed_after): Check is store killed after an insn in a block.
2344         (store_killed_before): Check is store killed before an insn in a block.
2345         (build_store_vectors): Generate the antic and avail vectors.
2346         (insert_insn_start_bb): Insert at the start of a BB, update BLOCK_HEAD.
2347         (insert_store): Add a store to an edge.
2348         (replace_store_insn): Replace a store with a SET insn.
2349         (delete_store): Delete a store insn.
2350         (free_store_memory): Free memory.
2351         (store_motion): Perform store motion.
2352         * invoke.texi: Add documentation for -fcse-lm and -fgcse-sm.
2353         * rtl.h (get_addr, canon_true_dependence): Add prototypes.
2354         * toplev.c (flag_gcse_lm, flag_gcse_sm): New Variables.
2355         (f_options): Add gcse-lm and gcse-sm.
2356
2357 Mon Apr  9 16:18:03 CEST 2001  Jan Hubicka  <jh@suse.cz>
2358
2359         * i386.c (expand_fp_movcc): Fix condition reversal code.
2360
2361         * i386.c (ix86_register_move_cost): Fix handling of reformating penalty
2362         * i386.h (INTEGER_CLASS_P, MAYBE_INTEGER_CLASS_P): New.
2363         (CLASS_MAX_NREGS): Use it.
2364
2365         * i386.h (HARD_REGNO_NREGS): Handle properly TF and TCmodes on 64bit;
2366         handle properly complex values.
2367         (CLASS_MAX_NREGS): Likewise; update comment.
2368
2369 2001-04-05  Bernd Schmidt  <bernds@redhat.com>
2370
2371         * ia64.c (ia64_flag_schedule_insns2): New variable.
2372         (ia64_override_options): Initialize it.  Clear
2373         flag_schedule_insns_after_reload.
2374         (ia64_reorg): Only do scheduling if ia64_flag_schedule_insns2.
2375
2376 Mon Apr  9 15:09:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
2377
2378         * i386.md (truncdfsf2_*): Add i387->int/sse reg alternatives;
2379         Do not require source to match destination anymore;
2380         Add abort to the nontrivial cases that should be handled by split.
2381         (fix_trunc?fdi): Add SSE case for x86_64.
2382         (floatdi?f): Likewise.
2383         (floatdi?f_sse): New.
2384         (fix_trunc?fdi_sse): New.
2385
2386 2001-04-09  Richard Sandiford   <rsandifo@redhat.com>
2387
2388         * dwarfout.c (DEBUG_ARANGES_BEGIN_LABEL): New label.
2389         (DEBUG_ARANGES_END_LABEL): Ditto.
2390         (dwarfout_init): Generate length and version fields at the start
2391         of the .debug_aranges info.  Insert DEBUG_ARANGES_BEGIN_LABEL
2392         after the length field.
2393         (dwarfout_finish): Insert DEBUG_ARANGED_END_LABEL at the end of
2394         the .debug_aranges info.
2395
2396 Sun Apr  8 00:43:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
2397
2398         * i386.c (call, call_value): Make sure that resulting call_insn
2399         does have proper second operand.
2400
2401 Sun Apr  8 22:50:49 2001  Christopher Faylor <cgf@cygnus.com>
2402
2403         * config/i386/xm-cygwin.h (GET_ENV_PATH_LIST): Eliminate obsolete
2404         function.  Remove include of sys/cygwin.h.
2405
2406 Sun Apr  8 22:20:27 2001  Christopher Faylor <cgf@cygnus.com>
2407
2408         * config/i386/cygwin.h (STARTFILE_SPEC): search */lib/w32api by default.
2409         (CPP_SPEC): Always search */include/w32api for header files.
2410         (ASM_OUTPUT_SECTION_NAME): Avoid testing NULL DECL.
2411         (LINK_SPEC): Add "cyg" to the library search prefixes.
2412
2413 2001-04-08  Philip Blundell  <philb@gnu.org>
2414
2415         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Use asm_fprintf.
2416
2417 2001-04-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2418
2419         * cpperror.c (print_location): Don't special case <stdin>.
2420         (_cpp_begin_message): Handle WARNING_SYSHDR the same as
2421         WARNING, but we don't check if we're in system headers.
2422         * cpplib.h (enum error_type): WARNING_SYSHDR: New.
2423         * cpplib.c (do_warning): Warn in system headers.
2424
2425 2001-04-07  Mumit Khan <khan@NanoTech.Wisc.EDU>
2426
2427         * mbchar.c: Include config.h first.
2428
2429 2001-04-07  Zack Weinberg  <zackw@stanford.edu>
2430
2431         * config.gcc: Set default for xmake_file at top, not bottom.
2432         Change places that set xmake_file to "none" to set to the
2433         empty string instead, or remove them entirely if there is no
2434         default xmake_file for this cpu_type.  Remove references to
2435         deleted files.
2436
2437         * config/x-lynx, config/convex/x-convex, config/elxsi/x-elxsi,
2438         config/i386/x-isc, config/i386/x-isc3, config/i386/x-ncr3000,
2439         config/i386/x-next, config/i386/x-sco, config/i386/x-sysv3,
2440         config/i386/x-vsta, config/i860/x-sysv4, config/m68k/x-amix,
2441         config/m68k/x-apollo68, config/m68k/x-ccur, config/m68k/x-crds,
2442         config/m68k/x-hp2bsd, config/m68k/x-mot3300, config/m68k/x-mot3300-gas,
2443         config/m68k/x-tower, config/m88k/x-sysv4, config/mips/x-dec-osf1,
2444         config/mips/x-sni-svr4, config/mips/x-ultrix, config/romp/x-mach,
2445         config/romp/x-romp, config/rs6000/x-beos, config/rs6000/x-lynx,
2446         config/rs6000/x-mach, config/rs6000/x-sysv4, config/sparc/x-sysv4:
2447         Delete.
2448
2449         * config/a29k/x-unix, config/i386/x-aix, config/i386/x-osf1elf,
2450         config/i386/x-osfrose, config/m68k/x-dpx2, config/mips/x-iris3,
2451         config/mips/x-mips, config/mips/x-osfrose, config/mips/x-sony,
2452         config/mips/x-sysv, config/rs6000/x-aix31:
2453         Just set CLIB to -lld or -lmld, as appropriate.
2454
2455         * config/arm/x-riscix, config/i370/x-oe, config/i386/x-dgux,
2456         config/i386/x-sco4, config/i386/x-sco5, config/m68k/x-hp320,
2457         config/m68k/x-hp320g, config/m68k/x-next, config/m88k/x-dgux,
2458         config/mips/x-iris, config/pa/x-pa:
2459         Just set (some of) FIXPROTO_DEFINES, STMP_FIXPROTO,
2460         OTHER_FIXINCLUDES_DIRS.
2461
2462         * config/i386/x-djgpp: Don't set LN or LN_S.
2463         * config/m88k/x-dolph: Don't define __m88k__.
2464         * config/m88k/x-tekXD88: Don't set AR_FLAGS.
2465         * config/pa/x-pa-mpeix: Just set up quadlib.asm.
2466         * config/i860/fx2800.h: No need to #undef SVR4.
2467
2468         38 x-host fragments remain, 2 x-cpu.
2469
2470 2001-04-07  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2471
2472         * c4x.h (HARD_REGNO_NREGS): HCmode mode uses 2 regs not 4.
2473
2474 2001-04-06  Neil Booth  <neil@daikokuya.demon.co.uk>
2475
2476         * cpplib.c (cpp_push_buffer): Give stdin buffers the name <stdin>.
2477
2478 2001-04-06  Neil Booth  <neil@daikokuya.demon.co.uk>
2479
2480         * configure.in: Add check for lstat.
2481         * configure, config.in: Regenerate.
2482         * cppinit.c (append_include_chain): Make empty path ".".
2483         * cpplib.c (do_line): Don't simplify #line paths.
2484         * cppfiles.c (remove_component_p): New function.
2485         (find_or_create_entry): Acknowledge stat () errors during
2486         path simplification.
2487         (handle_missing_header): Don't simplify paths.
2488         (_cpp_simplify_pathname): Don't simplify VMS paths.  Return
2489         the empty path untouched.  Don't leave a trailing '/'.
2490
2491 2001-04-06  Benjamin Kosnik  <bkoz@redhat.com>
2492
2493         * cppdefault.c (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Add.
2494         * Makefile.in (-DGPLUSPLUS_BACKWARD_INCLUDE_DIR): Add.
2495
2496 2001-04-06  Neil Booth  <neil@daikokuya.demon.co.uk>
2497
2498         * cppfiles.c (open_file): Fail directories silently, but
2499         with an errno of NOENT set.
2500         (read_include_file): Move the common exit code to the sole
2501         caller.  Return an int indicating success or failure.  Let
2502         open_file handle directories.
2503         (stack_include_file): If read_include_file fails,
2504         push a "null" buffer.
2505
2506 2001-04-05  DJ Delorie  <dj@redhat.com>
2507
2508         * function.h (virtuals_instantiated): Declare.
2509         * function.c: (virtuals_instantiated): Make global.
2510         * calls.c (emit_library_call_value_1): Use
2511         virtual_outgoing_args_rtx only if it hasn't been instantiated.
2512         Otherwise, use the stack pointer directly.
2513
2514 Thu Apr  5 19:13:33 CEST 2001  Jan Hubicka  <jh@suse.cz>
2515
2516         * i386.c (x86_initialize_trampoline): New global function.
2517         * i386.h (TRAMPOLINE_SIZE): Size is 23 for x86_64.
2518         (INITIALIZE_TRAMPOLINE): Move offline.
2519         * i386-protos.h (x86_initialize_trampoline): Declare.
2520
2521 Thu Apr  5 19:02:15 CEST 2001  Jan Hubicka  <jh@suse.cz>
2522
2523         * i386.md (movdi_1_rex64): Allow SSE->SSE reg move.
2524         (lea_0): Rename to lea_1.
2525         (lea_1_zext, lea_1_rex64, lea_2_rex64): New patterns.
2526         (lea_general_?): Allow SImodes on TARGET_64BIT
2527         (lea_general_?_zext): New patterns.
2528         (call_1, call_1_rex64): Fix.
2529
2530 Thu Apr  5 19:00:15 CEST 2001  Jan Hubicka  <jh@suse.cz>
2531
2532         * i386.c (ix86_split_long_move): Use PUT_MODE instead of change_address.
2533
2534 Thu Apr  5 18:25:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
2535
2536         * i386.c (function_arg): Return constm1_rtx for last argument.
2537         (ix86_expand_prologue): Update gen_call calls.
2538         * i386.h (FUNCTION_BLOCK_PROFILER_EXIT): Likewise.
2539         * i386.md (call_pop): Likewise.
2540         (call): Second operand is VOIDmode.
2541         (call_0): Likewise; Support 64bits.
2542         (call_exp): New expander.
2543         (call_1): Get to the sync.
2544         (call_1_exp): New pattern.
2545         (call_value): Support 64bit.
2546         (call_value_exp): New pattern.
2547         (untyped_call): Update gen_call call.
2548         (call_value_pop): Disable for 64bit.
2549         (call_value_0_rex64): New pattern.
2550         (call_value_1_rex64): Likewise.
2551
2552 2001-04-05  Bo Thorsen  <bo@suse.de>
2553
2554         * i386.md: Don't allow "builtin_setjmp_receiver" for TARGET_64BIT.
2555
2556 Thu Apr  5 13:44:17 2001  J"orn Rennecke <amylaar@redhat.com>
2557
2558         * i386.md (*andsi_1+3): If used after reload, make sure the operand
2559         satisfies ANY_QI_REG_P.
2560
2561 2001-04-05  Bernd Schmidt  <bernds@redhat.com>
2562
2563         * config/ia64/ia64.c (rtx_needs_barrier): A PARALLEL can contain
2564         ASM_OPERAND.
2565
2566         * sched-deps.c (sched_analyze_insn): Revert more of the March 27
2567         change.
2568
2569 2001-04-04  Zack Weinberg  <zackw@stanford.edu>
2570
2571         * config.gcc: Remove default for xm_file.  Clean up local
2572         machine type handling.  Remove settings of xm_file to
2573         something that doesn't exist.  In the big switch, set xm_file,
2574         don't append to it (the value before the big switch is always
2575         null).  Don't force build_xm_file or host_xm_file to have a value.
2576         * configure.in: Remove default for xm_file.  Do not special
2577         case $cpu/xm-$cpu.h not existing.
2578         * configure: Regenerate.
2579
2580 2001-04-04  Diego Novillo  <dnovillo@redhat.com>
2581
2582         * simplify-rtx.c (simplify_binary_operation): Check for overflow
2583         when folding integer division and modulo operations.
2584
2585 2001-04-04  Andrew MacLeod  <amacleod@redhat.com>
2586
2587         * dwarf2out.c (output_cfi): Add 'for_eh' parameter, use PTR_SIZE
2588         instead of DWARF2_ADDR_SIZE for EH addresses.
2589         (output_call_frame_info): Use PTR_SIZE instead of DWARF2_ADDR_SIZE for
2590         EH addresses.
2591
2592 2001-04-04  Richard Henderson  <rth@redhat.com>
2593
2594         * config/ia64/ia64.h (IA64_UNWIND_INFO): Disable.
2595         * config/ia64/t-glibc (LIB2ADDEH): Disable.
2596         * config/ia64/t-ia64 (LIB2ADDEH): Disable.
2597
2598 2001-04-04  Richard Henderson  <rth@redhat.com>
2599
2600         * configure.in (gcc_cv_as_leb128): Escape "." in regexp.
2601         * configure: Rebuilt.
2602
2603 2001-04-04  Jakub Jelinek  <jakub@redhat.com>
2604
2605         * gcse.c (delete_null_pointer_checks_1): Add delete_list argument,
2606         push insns to delete to it instead of deleting them.
2607         (delete_null_pointer_checks): Delete insns from delete_list after
2608         all delete_null_pointer_checks_1 passes are done.
2609
2610 2001-04-04  Richard Henderson  <rth@redhat.com>
2611
2612         * configure.in (gcc_cv_as_leb128): Tweek minor number extraction.
2613         * configure: Rebuilt.
2614
2615 2001-04-04  Zack Weinberg  <zackw@stanford.edu>
2616
2617         * expr.h: Remove #ifdef FUNCTION_CONVERSION_BUG logic.
2618         * config/romp/xm-romp.h: Delete.
2619
2620 2001-04-04  Bernd Schmidt  <bernds@redhat.com>
2621
2622         * sched-deps.c (sched_analyze_insn): Partially revert March 27
2623         change.
2624
2625 2001-04-04 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2626
2627         * emit-rtl.c (mark_label_nuses) Increment the label uses for
2628         all labels present in rtx.
2629         (try_split) Call new function for all split insns.
2630
2631 2001-04-04  Jakub Jelinek  <jakub@redhat.com>
2632
2633         * recog.c (validate_replace_rtx_1): Instead of aborting just make
2634         sure the change won't be validated.
2635
2636 Wed Apr  4 00:45:38 EDT 2001  John Wehle  (john@feith.com)
2637
2638         * rtl.h (set_noop_p): Declare.
2639         * flow.c (set_noop_p): Move from here ...
2640         * rtlanal.c (set_noop_p): ... to here and enhance.
2641         * cse.c (delete_trivially_dead_insns): Use it.
2642         * gcse.c (hash_scan_set): Likewise.
2643         * jump.c (delete_noop_moves): Likewise.
2644         * recog.c (split_all_insns): Likewise.
2645
2646 2001-04-04  Alan Modra  <alan@linuxcare.com.au>
2647
2648         * dwarf2out.c (dwarf2out_frame_debug_expr): Support adjusting
2649         stack pointer via a LO_SUM.  Ditto for setting a temp register
2650         used to save to the stack.  Set cfa_temp when setting fp, and
2651         allow matches to cfa_temp in addition to cfa_store when saving
2652         regs.  Handle POST_INC and LO_SUM register stores.  Document the
2653         changes and errors in rule 12 doco.
2654
2655         * pa.c (set_reg_plus_d, store_reg, load_reg): Return last insn.
2656         (actual_fsize, local_fsize, save_fregs): Move for store_reg to see.
2657         (load_reg): Move closer to epilogue code.
2658         (DO_FRAME_NOTES): Define to control the following..
2659         (FRP): Define to set RTX_FRAME_RELATED_P on insns.
2660         (hppa_expand_prologue): Use FRP and REG_FRAME_RELATED_EXPR
2661         notes as necessary.
2662         (hppa_expand_epilogue): Likewise.
2663
2664 2001-04-03  Richard Henderson  <rth@redhat.com>
2665
2666         * configure.in (gcc_cv_as_leb128): Reject gas before 2.11.
2667         * configure: Rebuild.
2668
2669 2001-04-03  Richard Henderson  <rth@redhat.com>
2670
2671         * rtl.h (LCT_THROW): New.
2672         * calls.c (emit_library_call_value_1): Handle it.
2673         * except.c (connect_post_landing_pads): Use it.
2674
2675 2001-04-03  Zack Weinberg  <zackw@stanford.edu>
2676
2677         * gansidecl.h: Delete file.
2678         * configure.in: Change all refs to gansidecl.h to use
2679         ansidecl.h.  Adjust *_file_list so they know where ansidecl.h
2680         lives.
2681         * configure: Regenerate.
2682
2683         * Makefile.in (intl.o): Don't depend on gansidecl.h.
2684         * defaults.h: s/gansidecl.h/ansidecl.h/ in comment.
2685         * ggc.h, config/fr30/fr30.h, config/mcore/mcore.c:
2686         Don't include gansidecl.h.
2687         * intl.c, main.c, version.c, fixinc/fixlib.h,
2688         fixinc/procopen.c, fixinc/server.c: Include ansidecl.h not
2689         gansidecl.h.
2690
2691 Tue Apr  3 19:41:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
2692
2693         * i386.c (ix86_force_to_memory, ix86_free_from_memory):
2694         Update for 64bit.
2695
2696 2001-04-03  Zack Weinberg  <zackw@stanford.edu>
2697
2698         * config/i386/xm-beos.h, config/i386/xm-isc.h,
2699         config/i386/xm-next.h, config/i386/xm-sco.h,
2700         config/i386/xm-sco5.h, config/m68k/xm-plexus.h,
2701         config/m88k/xm-m88k.h: Delete.
2702
2703         * config/i386/xm-djgpp.h: Don't define __MSDOS__.
2704         * config/romp/xm-romp.h: Don't define bcopy.
2705         * config/rs6000/xm-beos.h: Don't define bcopy, HAVE_VPRINTF,
2706         HAVE_PUTENV, HAVE_RENAME, or USE_C_ALLOCA.
2707
2708         * config.gcc: Remove references to deleted files.
2709
2710         14 xm-host.h remain, 1 xm-cpu.h.
2711
2712 2001-04-03  Jakub Jelinek  <jakub@redhat.com>
2713             David S. Miller  <davem@pierdol.cobaltmicro.com>
2714             Andrew MacLeod  <amacleod@redhat.com>
2715
2716         Use byte offsets in SUBREGs instead of words.
2717
2718         * alias.c (nonlocal_mentioned_p): Use subreg_regno function.
2719         * caller-save.c (mark_set_regs): Change callers of subreg_hard_regno
2720         to pass new argument.
2721         (add_stored_regs): Use subreg_regno_offset function.
2722         * calls.c (expand_call): For non-paradoxical SUBREG take endianess
2723         into account.
2724         (precompute_arguments): Use gen_lowpart_SUBREG.
2725         * combine.c (try_combine): Replace explicit XEXP with SUBREG_REG.
2726         (combine_simplify_rtx): Rework to use SUBREG_BYTE.
2727         (simplify_set): Rework to use SUBREG_BYTE.
2728         (expand_field_assignment): Use SUBREG_BYTE.
2729         (make_extraction): Use SUBREG_BYTE.
2730         (if_then_else_cond): Use SUBREG_BYTE.
2731         (apply_distributive_law): Use SUBREG_BYTE and fixup subreg comments.
2732         (gen_lowpart_for_combine): Compute full byte offset.
2733         * cse.c (mention_regs): Use SUBREG_BYTE.
2734         (remove_invalid_subreg_refs): Rework to use SUBREG_BYTE.
2735         (canon_hash): Use SUBREG_BYTE.
2736         (fold_rtx): Pass SUBREG_BYTE div UNITS_PER_WORD to operand_subword.
2737         (gen_lowpart_if_possible): Formatting.
2738         * dbxout.c (dbxout_symbol_location): Compute SUBREG hard regnos
2739         correctly.
2740         * dwarf2out.c (is_pseudo_reg): Fixup explicit XEXP into SUBREG_REG
2741         (mem_loc_descriptor): Fixup explicit XEXP into SUBREG_REG
2742         (loc_descriptor): Fixup explicit XEXP into SUBREG_REG
2743         * dwarfout.c (is_pseudo_reg): Fixup explicit XEXP into SUBREG_REG
2744         (output_mem_loc_descriptor): Fixup explicit XEXP into SUBREG_REG
2745         (output_loc_descriptor): Fixup explicit XEXP into SUBREG_REG
2746         * emit-rtl.c (gen_rtx_SUBREG): New function, used to verify
2747         certain invariants about SUBREGs the compiler creates.
2748         (gen_lowpart_SUBREG): New function.
2749         (subreg_hard_regno): New function to get the final register number.
2750         (gen_lowpart_common): Use SUBREG_BYTE.
2751         (gen_imagpart): Spacing nits.
2752         (subreg_realpart_p): Use SUBREG_BYTE.
2753         (gen_highpart): Use SUBREG_BYTE.
2754         (subreg_lowpart_p): Always compute endian corrected goal offset,
2755         even at the byte level, then compare against that.
2756         (constant_subword): New function, pulled out all constant cases
2757         from operand_subword and changed second argument name to offset.
2758         (operand_subword): Detect non REG/SUBREG/CONCAT/MEM cases early
2759         and call constant_subword to do the work.  Return const0_rtx if
2760         looking for a word outside of OP.
2761         (operand_subword_force): Change second arg name to offset.
2762         * expmed.c (store_bit_field): Use SUBREG_BYTE.
2763         (store_split_bit_field): Use SUBREG_BYTE.
2764         (extract_bit_field): Use SUBREG_BYTE.
2765         (extract_split_bit_field): Use SUBREG_BYTE.
2766         (expand_shift): Use SUBREG_BYTE.
2767         * expr.c (store_expr, expand_expr): Use gen_lowpart_SUBREG.
2768         * final.c (alter_subreg) Use subreg_hard_regno and SUBREG_BYTE.
2769         * flow.c (set_noop_p): Use SUBREG_BYTE.
2770         (mark_set_1): Remove ALTER_HARD_SUBREG. Use subreg_regno_offset instead.
2771         * function.c (fixup_var_refs_1): Fixup explicit XEXP into a SUBREG_REG.
2772         (fixup_memory_subreg): Use SUBREG_BYTE and remove byte endian
2773         correction code.
2774         (optimize_bit_field): Use SUBREG_BYTE.
2775         (purge_addressof_1): Use SUBREG_BYTE.
2776         (purge_single_hard_subreg_set): Use subreg_regno_offset function.
2777         (assign_params): Mark arguments SUBREG_PROMOTED_VAR_P if they are
2778         actually promoted by the caller and PROMOTE_FOR_CALLS_ONLY is true.
2779         * gengenrtl.c (special_rtx): Add SUBREG.
2780         * global.c (mark_reg_store): Use SUBREG_BYTE.
2781         (set_preference): Rework to use subreg_regno_offset and SUBREG_BYTE.
2782         * ifcvt (noce_emit_move_insn): Use SUBREG_BYTE.
2783         * integrate.c (copy_rtx_and_substitute): Use SUBREG_BYTE and make sure
2784         final byte offset is congruent to subreg's mode size.
2785         (subst_constants): Use SUBREG_BYTE.
2786         (mark_stores): Use subreg_regno_offset function.
2787         * jump.c (rtx_renumbered_equal_p, true_regnum): Use subreg_regno_offset
2788         function and SUBREG_BYTE.
2789         * local-alloc.c (combine_regs): Use subreg_regno_offset function.
2790         (reg_is_born): Use subreg_hard_regno.
2791         * recog.c (valid_replace_rtx_1): Use SUBREG_BYTE and remove byte
2792         endian correction code.  Don't combine subregs unless resulting
2793         offset aligns with type.  Fix subreg constant extraction for DImode.
2794         Simplify SUBREG of VOIDmode CONST_DOUBLE.
2795         (general_operand): Remove dead mode_altering_drug code.
2796         (indirect_operand): Use SUBREG_BYTE.
2797         (constrain_operands): Use subreg_regno_offset function.
2798         * reg-stack.c (get_true_reg): Use subreg_regno_offset function.
2799         * regmove.c (regmove_optimize): Use SUBREG_BYTE.
2800         (optimize_reg_copy_3): Use gen_lowpart_SUBREG.
2801         * regs.h (REG_SIZE): Allow target to override.
2802         (REGMODE_NATURAL_SIZE): New macro which target can override.
2803         * reload.c (reload_inner_reg_of_subreg): subreg_regno should be used
2804         on the entire subreg rtx.
2805         (push_reload): Use SUBREG_BYTE in comments and code.
2806         (find_dummy_reload): Use subreg_regno_offset.  Only adjust offsets
2807         for hard registers inside subregs.
2808         (operands_match_p): Use subreg_regno_offset.
2809         (find_reloads): Use SUBREG_BYTE and only advance offset for subregs
2810         containing hard regs.
2811         (find_reload_toplev): Use SUBREG_BYTE.  Remove byte endian
2812         corrections when fixing up MEM subregs.
2813         (find_reloads_address_1): Use SUBREG_BYTE, subreg_regno, and
2814         subreg_regno_offset where appropriate.
2815         (find_reloads_subreg_address): Use SUBREG_BYTE.  Remove
2816         byte endian corrections when fixing up MEM subregs.
2817         (subst_reloads): When combining two subregs, make sure final
2818         offset is congruent to subreg's mode size.
2819         (find_replacement): Use SUBREG_BYTE and subreg_regno_offset.
2820         (refers_to_regno_for_reload_p): Use subreg_regno.
2821         (reg_overlap_mentioned_for_reload_p): Use subreg_regno_offset.
2822         * reload1.c (eliminate_regs) Use SUBREG_BYTE. Remove byte endian
2823         correction code for memory subreg fixups.
2824         (forget_old_reload_1): Use subreg_regno_offset.
2825         (choose_reload_regs): Use subreg_regno.
2826         (emit_input_reload_insns): Use SUBREG_BYTE.
2827         (reload_combine_note_store): Use subreg_regno_offset.
2828         (move2add_note_store): Use subreg_regno_offset.
2829         * resource.c (update_live_status, mark_referenced_resources): Use
2830         subreg_regno function.
2831         (mark_set_resources): Use subreg_regno function.
2832         * rtl.h (SUBREG_WORD): Rename to SUBREG_BYTE.
2833         (subreg_regno_offset, subreg_regno): Define prototypes.
2834         (subreg_hard_regno, constant_subword, gen_rtx_SUBREG): Newi functions.
2835         (gen_lowpart_SUBREG): Add prototype.
2836         * rtl.texi (subreg): Update to reflect new byte offset representation.
2837         Add mentioning of the effect that BYTES_BIG_ENDIAN has on subregs now.
2838         * rtlanal.c (refers_to_regno_p): Use subreg_regno.
2839         (reg_overlap_mentioned_p): Use subreg_regno.
2840         (replace_regs); Make sure final offset of combined subreg is
2841         congruent to size of subreg's mode.
2842         (subreg_regno_offset): New function.
2843         (subreg_regno): New function.
2844         * sched-vis.c (print_value): Change SUBREG_WORD to SUBREG_BYTE.
2845         * sdbout.c (sdbout_symbol): Compute offset using alter_subreg.
2846         * stmt.c (expand_anon_union_decl): Use gen_lowpart_SUBREG.
2847         * tm.texi (ALTER_HARD_SUBREG): Remove, it is now dead.
2848         (SUBREG_REGNO_OFFSET): Describe SUBREG_REGNO_OFFSET overrides.
2849         * config/a29k/a29k.c (gpc_reg_operand): Use subreg_regno.
2850         (a29k_get_reloaded_address): Use SUBREG_BYTE.
2851         (print_operand): Use SUBREG_BYTE.
2852         * config/alpha/alpha.c (print_operand_address): Use SUBREG_BYTE.
2853         * config/arm/arm.c (arm_reload_in_hi): Use SUBREG_BYTE.
2854         (arm_reload_out_hi): Use SUBREG_BYTE.
2855         * config/d30v/d30v.c (d30v_split_double): Use subreg_regno_offset
2856         instead of SUBREG_WORD.
2857         (d30v_print_operand_memory_reference): Use subreg_regno_offset.
2858         * config/dsp16xx/dsp16xx.md (extendqihi2, zero_extendqihi2): Fix
2859         SUBREG creation to use byte offset.
2860         * config/h8300/h8300.md (Unnamed HImode zero extraction and 16bit
2861         inverted load insns): Fix explicit rtl subregs to use byte
2862         offsets.
2863         * config/i370/i370.md (cmpstrsi, movstrsi, mulsi3, divsi3,
2864         udivsi3, umodsi3): Generate SUBREGs with byte offsets.
2865         * config/i860/i860.c (single_insn_src_p): Use SUBREG_BYTE.
2866         * config/i860/i860.md (mulsi3_big): Fixup explicit SUBREGs in rtl
2867         to use byte offsets.
2868         (unnamed fmlow.dd insn): Fixup SUBREGS to use byte offsets.
2869         * config/i960/i960.md (extendhisi2): Generate SUBREGs with byte
2870         offsets, also make sure it is congruent to SUBREG's mode size.
2871         (extendqisi2, extendqihi2, zero_extendhisi2, zero_extendqisi2,
2872         unnamed ldob insn): Generate SUBREGs with byte offset.
2873         (zero_extendqihi2): SUBREG's are byte offsets.
2874         * config/m68hc11/m68hc11.c (m68hc11_gen_lowpart): Use SUBREG_BYTE.
2875         (m68hc11_gen_highpart): Use SUBREG_BYTE.
2876         * config/m68k/m68k.md (zero_extendhisi2, zero_extendqihi2,
2877         zero-extendqisi2): Generate SUBREGs with byte offset.
2878         (umulsidi3, mulsidi3, subreghi1ashrdi_const32,
2879         subregsi1ashrdi_const32, subreg1lshrdi_const32): Fixup explicit
2880         subregs in rtl to use byte offsets.
2881         * config/m88k/m88k.md (extendsidi2): fixup subregs to use byte offset.
2882         * config/mips/mips.c (mips_move_1word): Use subreg_regno_offset.
2883         (mips_move_2words): Use subreg_regno_offset.
2884         (mips_secondary_reload_class): Use subreg_regno_offset.
2885         * config/mips/mips.md (DImode plus, minus, move, and logical op
2886         splits): Fixup explicit subregs in rtl to use byte offsets.
2887         * config/mn10200/mn10200.c (print_operand): Use subreg_regno function.
2888         * config/mn10300/mn10300.c (print_operand): Use subreg_regno function.
2889         * config/ns32k/ns32k.md (udivmoddisi4): Fix explicit subregs in
2890         rtl to use byte offsets.
2891         * config/pa/pa.c (emit_move_sequence): Use SUBREG_BYTE.
2892         * config/pa/pa.md (floatunssisf2, floatunssidf2, mulsi3): fix explicit
2893         subregs to use byte offsets.
2894         * config/pdp11/pdp11.md (zero_extendhisi2, modhi3, modhi3+1):
2895         Fixup explicit subregs in rtl to use byte offsets.
2896         * config/romp/romp.c (memory_offset_in_range_p): Use SUBREG_BYTE
2897         and remove byte endian correction code.
2898         * config/sh/sh.c (output_movedouble): Use subreg_regno.
2899         (gen_ashift_hi): Use SUBREG_BYTE.
2900         (regs_used): Use subreg_regno_offset.
2901         (machine_dependent_reorg): Use subreg_regno_offset.
2902         * config/sh/sh.h (INDEX_REGISTER_RTX_P): Use SUBREG_BYTE.
2903         * config/sh/sh.md (DImode and DFmode move splits): Use subreg_regno.
2904         (movdf_i4): Subregs are byte offsets now.
2905         * config/sparc/sparc.c (ultra_find_type): Use SUBREG_BYTE.
2906         * config/sparc/sparc.h (ALTER_HARD_SUBREG): Removed.
2907         (REGMODE_NATURAL_SIZE): Override.
2908         (REG_SIZE): For SUBREG check float mode on SUBREG_REG's mode.
2909         * config/sparc/sparc.md (TFmode move splits): Generate SUBREGs
2910         with byte offsets.
2911         (zero_extendhisi2, zero_extendqidi2_insn, extendhisi2,
2912         extendqihi2, sign_extendqihi2_insn, sign_extendqisi2_insn,
2913         extendqidi2): Generate SUBREGs with byte offsets, also make sure
2914         it is congruent to SUBREG's mode size.
2915         (smulsi3_highpart_v8plus): Fix explicit subregs in rtl to use byte
2916         offsets.
2917         (cmp_siqi_trunc, cmp_siqi_trunc_set, cmp_diqi_trunc,
2918         cmp_diqi_trunc_set, lshrdi3_v8plus+1, lshrdi3_v8plus+2,
2919         lshrdi3_v8plus+3, lshrdi3_v8plus+4): Use proper
2920         SUBREG_BYTE offset for non-paradoxical subregs in patterns.
2921         * config/v850/v850.c (print_operand, output_move_double): Use
2922         subreg_regno function.
2923
2924 2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
2925
2926         * configure.in (target_subdir): Use target_alias, not target.
2927         * configure: Rebuilt.
2928
2929         * config/sh/crtn.asm (init, fini): Restore r15 from r14, not the
2930         other way round.
2931         * config/sh/crti.asm: Fix typos in comments.
2932
2933 2001-04-03  Alan Modra  <alan@linuxcare.com.au>
2934
2935         * pa.h: Revise comments for TARGET_NO_SPACE_REGS and
2936         TARGET_FAST_INDIRECT_CALLS.
2937         * pa.c (override_options): TARGET_NO_SPACE_REGS is now OK with
2938         -fPIC.  Don't warn.
2939         (return_addr_rtx): Short circuit export stub matching when
2940         TARGET_NO_SPACE_REGS.
2941         (output_millicode_call): For out of range calls, make -fPIC
2942         take precedence, then TARGET_PORTABLE_RUNTIME, then ble.  Don't
2943         return before delay slot checks when TARGET_PORTABLE_RUNTIME.
2944         * pa.md: Modify length attr calculation of all millicode insns to
2945         match above.
2946
2947 2001-04-02  Geoffrey Keating  <geoffk@redhat.com>
2948
2949         * configure.in (gcc_cv_as_leb128): Correct name of cache variable.
2950         Require at least 2.11 in the version test.  Specifically check
2951         for and reject GAS version 2.10.90.
2952         * configure: regenerate.
2953
2954 2001-04-03  Alan Modra  <alan@linuxcare.com.au>
2955
2956         * pa.c (override_options): Remove PIC profiling warning.
2957         (hp_profile_labelno): Delete.
2958         (hp_profile_label_rtx): Delete.
2959         (hp_profile_label_name): Delete.
2960         (pa_add_gc_roots): Remove reference to hp_profile_label_rtx.
2961         (output_function_prologue): Remove profiling code and all tests on
2962         profile_flag.  Move store of PIC_OFFSET_TABLE_REGNUM now that
2963         merge_sp_adjust_with_store can work for PIC and profiling.
2964         (hppa_expand_epilogue): Remove profile_flag test.
2965         (hppa_can_use_return_insn_p): Likewise.
2966         (hppa_init_pic_save): Emit before tail_recursion_reentry, and
2967         cater for PROFILE_HOOK.
2968         (hppa_profile_hook): New function.
2969         * pa.h (FUNCTION_PROFILER): Now does nothing.
2970         (PROFILE_HOOK): Define.
2971         (hppa_profile_hook): Declare.
2972         (PROFILE_BEFORE_PROLOGUE): Delete.
2973         (ASM_OUTPUT_REG_PUSH): Delete.
2974         (ASM_OUTPUT_REG_POP): Delete.
2975         * pa.md (call_profiler): Turn it into a call insn, and don't `use'
2976         r24.  Accept function name operand, and use this and a locally
2977         generated label to calculate pc-rel offset to func start.
2978
2979 2001-04-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2980
2981         * $(HOST_PREFIX_1)errors.o, $(HOST_PREFIX_1)ggc-none.o,
2982         ggc-common.o, ggc-simple.o, ggc-page.o, ggc-none.o: Depend on
2983         $(SYSTEM_H).
2984
2985 2001-04-03  Alan Modra  <alan@linuxcare.com.au>
2986
2987         * dwarf2out.c (dwarf2out_frame_debug_expr): Move errant HIGH and
2988         LO_SUM cases to where they belong.
2989
2990 2001-04-02  Richard Henderson  <rth@redhat.com>
2991
2992         * except.h (lang_eh_type_covers): Mark extern.
2993         (lang_eh_runtime_type): Likewise.
2994
2995 2001-04-02  Zack Weinberg  <zackw@stanford.edu>
2996
2997         * genattr.c, gencheck.c, gencodes.c, genconfig.c, genflags.c,
2998         gengenrtl.c:  Wrap generated header in multiple-include guard.
2999         Improve error checking.
3000
3001 2001-04-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3002
3003         * configure.in: Don't check for putenv.
3004         * configure: Regenerate.
3005         * gcc.c (putenv): Don't define.
3006         * vax/xm-vms.h: Handle putenv.
3007
3008 2001-04-02  Jakub Jelinek  <jakub@redhat.com>
3009
3010         * ifcvt.c (noce_emit_move_insn): New.
3011         (noce_try_store_flag, noce_try_store_flag_constants,
3012         noce_try_store_flag_inc, noce_try_store_flag_mask,
3013         noce_try_cmove, noce_try_cmove_arith, noce_try_minmax,
3014         noce_try_abs): Use it.
3015         (noce_process_if_block): Likewise.
3016         For STRICT_LOW_PART, take mode from its SUBREG.
3017
3018 2001-04-02  Jakub Jelinek  <jakub@redhat.com>
3019
3020         * fold-const.c (fold): Before optimizing unsigned comparison with
3021         0x7fffffffU, make sure arg0 is integral type.
3022
3023 2001-04-02  Joseph S. Myers  <jsm28@cam.ac.uk>
3024
3025         * c-tree.texi: Document representation of wide strings.
3026
3027 2001-04-01  Richard Henderson  <rth@redhat.com>
3028
3029         * except.h (expand_builtin_dwarf_fp_regnum): Declare.
3030
3031 Sun Apr  1 11:49:05 CEST 2001  Jan Hubicka  <jH@suse.cz>
3032
3033         * i386.md: remove obsoleted comments.
3034         (adddi_?): Rename to adddi_?_rex64; disable for 32bit.
3035         (x86_movsicc_0_m1_rex64): Rename to x86_movdicc_0_m1_rex64;
3036         fix output template.
3037
3038 2001-03-31  Marek Michalkiewicz  <marekm@linux.org.pl>
3039
3040         * config/avr/libgcc.S (__mulhi3): Optimize previous change.
3041
3042 2001-03-30  Bernd Schmidt  <bernds@redhat.com>
3043
3044         * loop.c (load_mems): When generating a load from a pseudo, update
3045         REGNO_LAST_UID.
3046
3047 Fri Mar 30 17:36:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
3048
3049         * i386.c (ix86_split_long_move): Use change address to compensate
3050         stack pointer change in push instruction.
3051
3052 Fri Mar 30 00:31:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
3053
3054         * i386.md (sse_movdfcc_eq): Fix constraint (sse_mov?fcc splitter): Use operands_match_p
3055         instead of rtx_equal_p; fix the output template.
3056
3057 Fri Mar 30 00:21:41 CEST 2001  Jan Hubicka  <jh@suse.cz>
3058
3059         * i386.c (ix86_expand_setcc): Support 64bit.
3060         (ix86_expand_int_movcc): Likewise.
3061         * i386.md (movdicc_rex64, x86_movsicc_0_m1_rex64, movdicc_c_rex64):
3062         New patterns.
3063
3064         * i386.md (allocate_stack_worker): Turn to expander.
3065         (allocate_stack_worker_1, allocate_stack_worker_rex64): New insns.
3066
3067         * i386.c (print_reg): Do not print x86_64 style regs on IA-32
3068
3069 2001-03-29  Richard Henderson  <rth@redhat.com>
3070
3071         * libgcc2.c [L__main]: Include unwind-dw2-fde.h instead of frame.h.
3072
3073 2001-03-28  Matthew Hiller  <hiller@redhat.com>
3074
3075         * config/mn10300/mn10300.md (cmpsi): Fix first alternative's
3076         output template.
3077
3078         * MAINTAINERS: Added self.
3079
3080 2001-03-28  Richard Henderson  <rth@redhat.com>
3081
3082         * Makefile.in (cs-tconfig.h): Depend on CONFIG_H, not GCONFIG_H.
3083         Use ALL_CFLAGS not HOST_CFLAGS for sjlj detection.
3084
3085 2001-03-28  Jim Wilson  <wilson@redhat.com>
3086
3087         * config/ia64/ia64.md (movtf): Change DImode to TFmode in calls to
3088         operand_subword.
3089
3090 2001-03-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3091
3092         * toplev.h (fatal_error): Add ATTRIBUTE_NORETURN.
3093
3094         * tradcif.y (yyerror): Likewise.  Add format specifier in call to
3095         `error'.
3096
3097         * tradcpp.c (macroexpand): Likewise for call to `error_with_line'.
3098
3099 2001-03-28  DJ Delorie  <dj@redhat.com>
3100
3101         * Makefile.in (stage1_build): Revert CFLAGS patch.
3102
3103 2001-03-28  Marek Michalkiewicz  <marekm@linux.org.pl>
3104
3105         * config/avr/libgcc.S (__mulhi3): Correct tests to exit the loop
3106         when multiplier or multiplicand is zero.
3107
3108 2001-03-28  Bernd Schmidt  <bernds@redhat.com>
3109
3110         * cselib.c (hash_rtx): Don't do tail recursion elimination by hand.
3111
3112         * config/ia64/ia64.c (update_set_flags): New function, broken out of
3113         rtx_needs_barrier.
3114         (set_src_needs_barrier): Likewise.
3115         (rtx_needs_barrier): For SET case, use these two functions.  Rework
3116         PARALLEL case to handle all inputs before all outputs.
3117         (emit_insn_group_barriers): Call init_insn_group_barriers only if we
3118         saw a label and no stop bit since then.
3119         (maybe_rotate, process_epilogue): Add prototypes.
3120
3121 2001-03-28  Richard Henderson  <rth@redhat.com>
3122
3123         * config/rs6000/rs6000.h (EPILOGUE_USES): Use TARGET_AIX,
3124         not TARGET_TOC for special toc restore handling.
3125         * config/rs6000/rs6000.md (eh_return): Likewise.
3126
3127 2001-03-28  Richard Henderson  <rth@redhat.com>
3128
3129         * config/sparc/sparc.c (eligible_for_epilogue_delay): False if
3130         current_function_calls_eh_return.
3131         (output_function_epilogue): Handle eh_return.
3132         * config/sparc/sparc.h (DOESNT_NEED_UNWINDER): Remove.
3133         (EH_RETURN_DATA_REGNO): New.
3134         (EH_RETURN_STACKADJ_RTX): New.
3135         (EH_RETURN_HANDLER_RTX): New.
3136         * config/sparc/sparc.md (call/short branch peepholes): Check
3137         can_throw_internal instead of in_same_eh_region.
3138
3139         * config/rs6000/rs6000.c (rs6000_stack_info): Allocate space
3140         for eh_return data registers.
3141         (rs6000_emit_prologue): Save eh_return data registers.
3142         (rs6000_emit_epilogue): Force inline restores if eh_return.
3143         Restore eh_return data registers.  Mind EH_RETURN_STACKADJ_RTX.
3144         * config/rs6000/rs6000.h (rs6000_stack_t): Add ehrd_offset.
3145         (EH_RETURN_DATA_REGNO, EH_RETURN_STACKADJ_RTX): New.
3146         (EPILOGUE_USES): True for TOC_REGISTER if calls_eh_return and
3147         the target uses one.
3148         * config/rs6000/rs6000.md (eh_epilogue, eh_reg_restore): Remove.
3149         (return_eh_si, return_eh_di): Remove.
3150         (eh_return): New, from corpse of eh_epilogue.
3151         (eh_set_lr_si, eh_set_lr_di): New.
3152
3153         * config/i386/i386.c (general_no_elim_operand): Disallow virtual regs.
3154         (ix86_save_reg): If maybe_eh_return, true for EH_RETURN_DATA_REGNOs.
3155         True for pic register if current_function_calls_eh_return.
3156         (ix86_expand_epilogue): Change "emit_return" argument into "style".
3157         Handle eh_return requirements.
3158         * config/i386/i386.h (EH_RETURN_DATA_REGNO): New.
3159         (EH_RETURN_STACKADJ_RTX): New.
3160         * config/i386/i386.md (exception_receiver): Remove.
3161         (eh_return, eh_return_1): New.
3162         * config/i386/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
3163
3164         * config/alpha/alpha.c (alpha_sa_mask): Add EH_RETURN_DATA_REGNOs.
3165         (alpha_mark_machine_status): No eh_epilogue_sp_ofs ...
3166         (alpha_expand_epilogue): ... use EH_RETURN_STACKADJ_RTX instead.
3167         * config/alpha/alpha.h (machine_function): Remove eh_epilogue_sp_ofs.
3168         (EH_RETURN_DATA_REGNO): New.
3169         (EH_RETURN_STACKADJ_RTX, EH_RETURN_HANDLER_RTX): New.
3170         * config/alpha/alpha.md (eh_epilogue): Remove.
3171         (exception_receiver): Use $26 for ldgp input.
3172         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
3173
3174 2001-03-28  Richard Henderson  <rth@redhat.com>
3175
3176         * except.c: Rewrite entirely for IA-64 ABI exception handling.
3177         * except.h: Likewise.
3178
3179         * Makefile.in (LIB2ADDEH): Mention unwind-dw2*.c
3180         (LIB2ADDEHDEP): New.
3181         (LIB2FUNCS_EH): Remove.
3182         (LIB2ADD): Remove LIB2ADDEH.
3183         (libgcc.mk): Pass LIB2ADDEHDEP, don't pass LIB2FUNCS_EH.
3184         (LIBGCC_DEPS): Use LIB2ADDEHDEP.
3185         (crt{begin,end}[S].o): Likewise.
3186         (except.o): Update includes.
3187         * mklibgcc.in: Remove LIB2FUNCS_EH, add LIB2ADDEH, LIB2ADDEHDEP.
3188         (libgcc2_c_dep): Use LIB2ADDEHDEP.
3189
3190         * basic-block.h (struct basic_block_def): Remove eh_beg, eh_end.
3191         * bb-reorder.c (reorder_basic_blocks): Don't disable for EH.
3192         * builtins.def (BUILT_IN_EH_RETURN_DATA_REGNO): New.
3193         * builtins.c (expand_builtin): Implement it.
3194         [BUILT_IN_EH_RETURN]: Update for nr arguments change.
3195         * c-common.c (c_common_nodes_and_builtins): Declare it.
3196         * c-decl.c (init_decl_processing): Update __builtin_eh_return.
3197         * calls.c (libfunc_nothrow): Remove.
3198         (emit_library_call_value_1): Don't call it.
3199         * crtstuff.c: Include unwind-dw2-fde.h instead of frame.h.
3200         * dwarf2.h (dwarf_call_frame_info): Add dwarf2.1 elements.
3201         (DW_EH_PE_*): New defines for pointer encoding in .eh_frame.
3202         * dwarf2out.c (struct dw_fde_struct): Add uses_eh_lsda, funcdef_number.
3203         (current_funcdef_number): Globalize.
3204         (output_call_frame_info): Emit frame data if an lsda is needed.
3205         Generate augmentation for personality routine.  Don't play with
3206         difference symbols.
3207         (dwarf2out_begin_prologue): Record funcdef_number.
3208         * dwarf2out.h (current_funcdef_number): Declare.
3209         * expr.c (expand_expr): Update for except.h name changes.
3210         Remove POPDCC_EXPR, POPDHC_EXPR.  Add EXC_PTR_EXPR.
3211         * expr.h (LTI_throw, LTI_rethrow): Remove.
3212         (LTI_sjthrow, LTI_sjpopnthrow, LTI_terminate): Remove.
3213         (LTI_eh_rtime_match): Remove.
3214         (LTI_unwind_resume, LTI_eh_personality): Add.
3215         (LTI_unwind_sjlj_register, LTI_unwind_sjlj_unregister): Add.
3216         * final.c (final): Don't call check_exception_handler_labels,
3217         init_insn_eh_region, or free_insn_eh_region.
3218         (final_scan_insn): Always emit debug labels for
3219         NOTE_INSN_EH_REGION notes.
3220         * flags.h (flag_new_exceptions): Remove.
3221         * flow.c (entry_exit_blocks): Remove eh_beg, eh_end.
3222         (record_active_eh_regions): Remove.
3223         (count_basic_blocks): Check all instructions for REG_EH_REGION.
3224         Use can_throw_internal.
3225         (find_basic_blocks_1): Likewise.
3226         (move_stray_eh_region_notes): Remove.
3227         (find_label_refs): No eh_return_stub_label.
3228         (make_edges): Likewise.  No init/free_eh_nesting_info.  Handle RESX.
3229         (make_eh_edge): No eh_nest_info.  Update for reachable_handlers
3230         changes.
3231         (delete_unreachable_blocks): Don't track deleted handlers.
3232         (flow_delete_block): Use maybe_remove_eh_handler.
3233         (delete_eh_regions): Remove.
3234         (merge_blocks): Don't check for eh region match.
3235         (mark_regs_live_at_end): Handle EH_RETURN_DATA_REGNO,
3236         EH_RETURN_STACKADJ_RTX, EH_RETURN_HANDLER_RTX.
3237         (init_propagate_block_info): Disable dead frame store optimization
3238         when current_function_calls_eh_return.
3239         (dump_bb): Don't print eh_beg, eh_end.
3240         * function.c (fixup_var_refs): No catch_clauses.
3241         (expand_function_end): Likewise.  Call expand_eh_return before
3242         the return register use.  Call sjlj_emit_function_exit_after.
3243         (expand_function_start): Force pseudo DECL_RESULT if sjlj exceptions.
3244         * function.h (struct function): Add calls_eh_return, uses_eh_lsda.
3245         * ifcvt.c (dead_or_predicable): Remove eh region check.
3246         * integrate.c (function_cannot_inline_p): Disallow __builtin_eh_return.
3247         Don't check for EH vs parameters.
3248         (expand_inline_function_eh_labelmap, eif_eh_map): Remove.
3249         (expand_inline_function): Call duplicate_eh_regions.
3250         (copy_insn_list): Don't handle NOTE_INSN_EH_REGION_BEG/END.
3251         (copy_insn_notes): Remap REG_EH_REGION notes.
3252         (copy_rtx_and_substitute): Remove SYMBOL_REF_NEED_ADJUST check.
3253         * integrate.h (struct inline_remap): Add local_return_label.
3254         * jump.c (jump_optimize_1): Don't init/free_insn_eh_region, nor
3255         check_exception_handler_labels, nor exception_optimize.
3256         (find_cross_jump): No EH region check.
3257         * optabs.c (init_optabs): Update for changed eh libfuncs.
3258         * rtl.def (RESX): New.
3259         * rtl.h (SYMBOL_REF_NEED_ADJUST): Remove.
3260         * stmt.c (expand_decl_cleanup): Simplify using_eh_for_cleanups_p
3261         checks.  Update for except.h name changes.
3262         (expand_cleanups): Likewise.
3263         (expand_dcc_cleanup, expand_dhc_cleanup): Remove.
3264         * toplev.c (dump_file_index, dump_file): Add .02.eh dump.
3265         (compile_file): Call init_eh before init_optabs.  Don't
3266         output_exception_table here.
3267         (rest_of_compilation): Call convert_from_eh_region_ranges,
3268         convert_to_eh_region_ranges, output_function_exception_table.
3269         Don't emit_eh_context.
3270         * tree.def (POPDHC_EXPR, POPDCC_EXPR): Remove.
3271         (EXC_PTR_EXPR): New.
3272
3273         * md.texi (eh_epilogue): Remove.
3274         (eh_return): Document.
3275         * tm.texi (EH_RETURN_DATA_REGNO): Document.
3276         (EH_RETURN_STACKADJ_RTX, EH_RETURN_HANDLER_RTX): Document.
3277
3278         * eh-common.h: Remove file.
3279         * frame-dwarf2.c, frame.c, frame.h: Remove files.
3280         * libgcc2.c (L_eh): Remove.
3281
3282         * unwind-dw2-fde.c: New file, largely copied from frame.c.
3283         * unwind-dw2-fde.h: New file.
3284         * unwind-dw2.c: New file, largely cribbed from frame-dwarf2.c.
3285         * unwind-sjlj.c, unwind.h, unwind.inc: New files.
3286         * libgcc-std.ver: Update for eh symbols.
3287
3288 2001-03-27  Richard Henderson  <rth@redhat.com>
3289
3290         * regmove.c (perhaps_ends_bb_p): Use can_throw_internal to
3291         reduce false positives.
3292         (regmove_optimize): Disable if flag_non_call_exceptions.
3293
3294         * stmt.c (expand_return): Remove always true predicate.
3295         (expand_decl_cleanup_no_eh): Remove dead code.
3296
3297         * sched-deps.c (sched_analyze_insn): Consolidate scheduling
3298         barrier code.  Add a scheduling barrier if a non-call insn
3299         can throw internally.
3300
3301         * rtlanal.c (rtx_addr_can_trap_p): Virtual registers cannot trap.
3302         Auto-inc addresses trap only if their base register does.
3303
3304         * except.c (can_throw_internal): Rename from can_throw.
3305         * except.h, resource.c: Update references.
3306
3307         * integrate.c (copy_insn_list): Use returnjump_p.
3308         (copy_insn_notes): Recurse for CALL_PLACEHOLDER.
3309
3310         * function.h (struct function): Move all boolean valued fields
3311         to single bit fields at the end of the struct.
3312
3313         * bb-reorder.c, dwarf2out.c, except.c, except.h, flow.c,
3314         jump.c, toplev.c:
3315         Rename asynchronous_exceptions to flag_non_call_exceptions.
3316
3317         * gthr-single.h (UNUSED): New.  Distinguish between how C
3318         and C++ mark unused function arguments.  Use throughout.
3319
3320         * Makefile.in (cs-tconfig.h): Copy USING_SJLJ_EXCEPTIONS
3321         value to target configuration header.
3322         * configure.in (CONFIG_SJLJ_EXCEPTIONS): New.
3323         * config.in, configure: Rebuild.
3324         * except.h (USING_SJLJ_EXCEPTIONS): New.  Define based on
3325         configuration and target defines.
3326         (exceptions_via_longjmp): Remove.
3327         * dwarf2out.c, except.c, final.c, toplev.c, config/ia64/ia64.c:
3328         Use USING_SJLJ_EXCEPTIONS instead of exceptions_via_longjmp.
3329
3330         * except.h (flag_non_call_exceptions): Move ...
3331         * flags.h: ... here.
3332
3333         * combine.c (distribute_notes) [REG_EH_REGION]: If non-call
3334         exceptions, put the note on the trapping instruction.
3335
3336         * flags.h (flag_new_exceptions): Remove.
3337         * toplev.c: Don't set it.
3338         * final.c: Don't check it.
3339         * except.c: Provide stub definition.
3340
3341         * flow.c (tidy_fallthru_edges): Don't combine complex edges.
3342         (calculate_global_regs_live): Kill call-clobbered registers
3343         across exception edges.
3344         * reg-stack.c (convert_regs_1): Kill the entire target stack
3345         across non-call exception edges.
3346
3347         * flow.c (cleanup_cfg): Take no argument.
3348         * output.h, sibcall.c, toplev.c: Update all calls.
3349
3350 2001-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3351
3352         * configure.in: Don't check for bcopy.
3353         * configure, config.in: Regenerate.
3354
3355         * system.h: Don't define or prototype bcopy, instead poison it.
3356
3357 2001-03-27  Richard Henderson  <rth@redhat.com>
3358
3359         * function.c (expand_function_start): Set DECL_REGISTER on
3360         a pseudo used for DECL_RESULT.
3361
3362         * rtl.h (LCT_NORETURN): New.
3363         * calls.c (emit_library_call_value_1): Handle it.
3364
3365 2001-03-27  Stan Shebs  <shebs@apple.com>
3366
3367         * objc/objc-act.c (objc_init): Use dump_base_name.
3368         (gen_declaration): Clear the buffer arg.
3369         (gen_declaration_1): New function, body of gen_declaration.
3370         (adorn_decl): Call gen_declaration_1 instead of gen_declaration.
3371         (gen_method_decl): Ditto, plus always clear buffer arg.
3372         (error_with_ivar): Simplify.
3373         (warn_with_method): Ditto.
3374         (build_message_expr): Don't clear buffers.
3375         (dump_interface): Ditto.
3376         (objc_debug): Ditto.
3377         (build_keyword_selector): Clear the buffer by only zeroing
3378         the first element.
3379         (objc_implementation_context): Declare.
3380         (start_class): Warn about missing @end.
3381         (finish_objc): Ditto.
3382
3383 2001-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3384
3385         * reload1.c (eliminate_regs): Don't abort on MEM USEs.
3386
3387 2001-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3388
3389         * Makefile.in (SYSTEM_H): Define.
3390         Depend on $(SYSTEM_H), not system.h.
3391
3392         * objc/Make-lang.in: Depend on $(SYSTEM_H), not system.h.
3393
3394 2001-03-27  Jim Wilson  <wilson@redhat.com>
3395
3396         * final.c (final_scan_insn, case NOTE_INSN_BASIC_BLOCK): Call
3397         IA64_UNWIND_EMIT.
3398         * config/ia64/ia64.c (block_num, need_copy_state): New static vars.
3399         (process_epilogue): New static function.
3400         (process_set): Call process_epilogue instead of emitting .restore
3401         directly.
3402         (process_for_unwind_directive): Handle NOTE_INSN_BASIC_BLOCK.
3403
3404         * flow.c (struct reg_cond_life_info): New fields orig_condition
3405         and stores.
3406         (init_propagate_block_info): Set new fields.
3407         (mark_regno_cond_dead): Set and use new fields.
3408         (flush_reg_cond_reg_1): Likewise.
3409         (and_reg_cond, case AND): Check for redundant AND conditions.
3410         (mark_used_reg): Delete unnecessary clears before freeing splay trees.
3411         Set new fields.
3412
3413 2001-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
3414
3415         * cppmacro.c (stringify_arg): Null terminate strings.
3416
3417 2001-03-27  Zack Weinberg  <zackw@stanford.edu>
3418
3419         * config.gcc (m68hc11-*-*, m68hc12-*-*): Convert to new tm.h
3420         inclusion style.  xm-m68hc11.h no longer exists.
3421         * config/m68hc11/xm-m68hc11.h: Delete file.
3422         * config/m68hc11/m68hc12.h: Convert to new tm.h inclusion style.
3423
3424         * config/m68hc11/m68hc11.h: Convert to new tm.h inclusion style.
3425         Don't define GCC_VERSION, N_, or PARAMS; don't include
3426         gansidecl.h or stdio.h.  Define inhibit_libc here.
3427         Make code conditioned on #if GCC_VERSION > 2095 unconditional.
3428         Delete code conditioned on #if GCC_VERSION == 2095.
3429
3430         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
3431         Make code conditioned on #if GCC_VERSION > 2095 unconditional.
3432         Delete code conditioned on #if GCC_VERSION == 2095.
3433
3434 2001-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3435
3436         * system.h: Include symcat.h.
3437         (STRINGIFY): Don't define.
3438
3439         * configure.in: Adjust comment.
3440
3441         * builtins.c: Use STRINGX, not STRINGIFY.
3442         * gencheck.c: Likewise.
3443         * gengenrtl.c: Likewise.
3444         * protoize.c: Likewise.
3445
3446         * cpplex.c: Don't include symcat.h.
3447         * cpplib.c: Likewise.
3448
3449         * gansidecl.h (HAVE_STRINGIZE): Don't define.
3450
3451 2001-03-27  Alan Modra  <alan@linuxcare.com.au>
3452
3453         * c-typeck.c (digest_init): Fold init expression.
3454
3455 2001-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3456
3457         * sbitmap.c (sbitmap_copy): Call memcpy, not bcopy.
3458
3459 2001-03-27  Alan Modra  <alan@linuxcare.com.au>
3460
3461         * except.c (eh_regs): Save results of build_pointer_type to a temp
3462         as FUNCTION_VALUE macro may evaluate its args multiple times.
3463
3464 2001-03-26  Mark Mitchell  <mark@codesourcery.com>
3465
3466         * c-common.h (DECL_NUM_STMTS): New macro.
3467         * c-decl.c (duplicate_decls): Copy DECL_NUM_STMTS, not
3468         DECL_FRAME_SIZE.
3469         (pushdecl): Likewise.
3470         * c-semantics.c (add_stmt): Update DECL_NUM_STMTS.
3471         * integrate.c (expand_inline_function): Don't check
3472         DECL_FRAME_SIZE.
3473         * print-tree.c (print_node): Don't print it.
3474         * toplev.c (rest_of_compilation): Don't try to inline when
3475         flag_no_inline is on.
3476         * tree.h (DECL_FRAME_SIZE): Remove.
3477         (tree_decl): Adjust accordingly.
3478
3479 2001-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3480
3481         * combine.c (try_combine): Use memcpy, not bcopy.
3482
3483         * genattrtab.c (expand_units): Likewise.
3484
3485 Mon Mar 26 15:55:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
3486
3487         * i386.md (push mem DI peep2): New.
3488         (mov 0, mov -1 peep2): Handle 64bit.
3489         (lea to arithmetics peep2): Handle 64bit leas.
3490         (rsp arithmetics to push/pop peep2s): New.
3491
3492         * i386.md (truncdfsf2_3, trunctfsf2_2): Change predicate to memory_operand.
3493
3494 Mon Mar 26 14:35:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
3495
3496         * i386.c (struct machine_function): Add save_varrargs_registers.
3497         (ix86_save_varrargs_registers): New macro.
3498         (ix86_frame_layout): Support 64bit; support red zones and varrargs area.
3499         (ix86_expand_prologue): Likewise.
3500         (ix86_emit_epilogue_esp_adjustement): Likewise.
3501         (ix86_expand_epilogue): Likewise.
3502         * i386.md (pro_epilogue_adjust_stack): Turn to expander; support 64bit.
3503         (pro_epilogue_adjust_stack_1): New insn.
3504         (pro_epilogue_adjust_stack_rex64): Likewise.
3505         * i386.h (MASK_NO_RED_ZONE): New constant.
3506         (TARGET_RED_ZONE): New macro.
3507         (TARGET_OPTIONS): Add "red-zone" and "no-red-zone"
3508         (RED_ZONE_SIZE): New constant.
3509         (RED_ZONE_RESERVE): New constant.
3510
3511 2001-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3512
3513         * toplev.c (set_float_handler): Use memcpy, not bcopy.
3514
3515 2001-03-25  Kazu Hirata  <kazu@hxi.com>
3516
3517         * config/h8300/h8300.md (umodqi3): Output a tab instead of a
3518         space.
3519         (modqi3): Likewise.
3520         (umodhi3): Likewise.
3521         (modhi3): Likewise.
3522
3523 2001-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3524
3525         * mkconfig.sh (DEFINES): Handle entries with '='.
3526
3527         * config.gcc: Don't use i370/xm-mvs.h or ns32k/xm-pc532-min.h.
3528         Set xm_defines to MACRO=value instead.
3529
3530         * i370/xm-mvs.h: Delete.
3531
3532         * ns32k/xm-pc532-min.h: Likewise.
3533
3534 Sun Mar 25 15:01:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
3535
3536         * i386.md (ashldi3, ashrdi3, lshrdi3): Change predicates to
3537         shiftdi_operand;
3538         use ix86_expand_binary_operator
3539         (?sh??i_?): Disable for 64bit.
3540         * i386.h (PREDICATE_CODES): Add shiftdi_operand.
3541         * i386.c (shiftdi_operand): New predicate.
3542
3543         * (ashldi3_1_rex64, ashldi3_cmp_rex64, ashlsi3_1_zext, ashlsi3_cmp_zext,
3544         ashrdi3_63_rex64, ashrdi3_1_one_bit_rex64, ashrdi3_1_rex64,
3545         ashrdi3_one_bit_cmp_rex64, ashrdi3_cmp_rex64, ashrsi3_31_zext,
3546         ashrsi3_1_one_bit_zext, ashrsi3_1_zext, ashrsi3_one_bit_cmp_zext,
3547         ashrsi3_cmp_zext, lshrdi3_1_one_bit_rex64, lshrdi3_1_rex64,
3548         lshrdi3_cmp_one_bit_rex64, lshrdi3_cmp_rex64, lshrsi3_1_one_bit_zext,
3549         lshrsi3_1_zext, lshrsi3_cmp_one_bit_zext, lshrsi3_cmp_zext,
3550         rotlsi3_1_one_bit_rex64, rotldi3_1_rex64,
3551         rotlsi3_1_one_bit_zext, rotlsi3_1_zext, rotrdi3_1_one_bit_rex64,
3552         rotrdi3_1_rex64, rotrsi3_1_one_bit_zext, rotrsi3_1_zext): New patterns.
3553         (rotldi3, rotrdi3): New expanders.
3554
3555 Sun Mar 25 14:25:33 CEST 2001  Jan Hubicka  <jh@suse.cz>
3556
3557         * i386.md (movstrsi): Move offline.
3558         (movstrdi): New.
3559         (strmovdi_rex64): New.
3560         (strmov?i): Accept 64bit.
3561         (strmov?i_rex64): New.
3562         (strmov?i_rex_1): New.
3563         (strmov?i_1): Disable for 64bit.
3564         (rep_mov?i_rex64): New.
3565         (rep_mov?i): Disable for 64bit.
3566         (clrstrsi): Move offline.
3567         (strset?i_rex64): New.
3568         (strset?i: Accept 64bit.
3569         (rep_stos?i): Disable for 64bit.
3570         (rep_stos?i_rex64): New.
3571         (strset?i_rex_1): New.
3572         (strset?i_1): Disable for 64bit.
3573         (cmpstrsi): Accept 64bit.
3574         (cmpstrsi_nz_1): Rename to cmpstrqi_nz_1; Disable for 64bit.
3575         (cmpstrqi_nz_rex_1): New.
3576         (cmpstrsi_1): Rename to cmpstrqi_1; Disable for 64bit.
3577         (strlensi): Move offline.
3578         (strlendi): New.
3579         (strlenqi_1): Disable for 64bit; fix constraints.
3580         (strlenqi_rex_1): New.
3581         * i386.c (ix86_adjust_counter): New static function.
3582         (ix86_zero_extend_to_Pmode): Likewise.
3583         (ix86_expand_aligntest): Likweise.
3584         (ix86_expand_strlensi_unroll_1): Make static; update for 64bit.
3585         (ix86_expand_movstr): New global function.
3586         (ix86_expand_clrstr): New global function.
3587         (ix86_expand_strlen): New global function.
3588         * i386-protos.h (ix86_expand_movstr, ix86_expand_clrstr,
3589         ix86_expand_strlen): Declare.
3590         (ix86_expand_strlensi_unroll_1): Delete.
3591
3592 Sat Mar 24 23:15:19 CET 2001  Jan Hubicka  <jh@suse.cz>
3593
3594         * i386.md (cmpdi): Fix operand predicates.
3595         (cmpdi_ccno_1_rex64, cmpdi_minus_1_rex64, cmpdi_1_rex64,
3596          cmpdi_1_insn_rex64): New patterns.
3597         (adddi3): Turn to expander.
3598         (adddi3_1, adddi3_carry_rex64, adddi3_cc_rex64): New patterns.
3599         (addsi3_carry_zext): New pattern.
3600         (adddi_?_rex64): New patterns and splitters.
3601         (addsi_?_zext): New patterns.
3602         (subsi3_carry_zext): New pattern.
3603         (subdi_?_rex64): New patterns and splitters.
3604         (iorsi_?_zext): New patterns.
3605         (iordi_?_rex64): New patterns and splitters.
3606         (iorsi_?_zext): New patterns.
3607         (iorsi_?_zext_imm): New patterns.
3608         (xorsi_?_zext): New patterns.
3609         (xordi_?_rex64): New patterns and splitters.
3610         (xorsi_?_zext): New patterns.
3611         (negdi*): New patterns.
3612         (one_cmpldi*): Likewise.
3613         (one_cmplsi*_zext, negsi*_zext): Likewise.
3614         (testqi_ext_3_rex64): New pattern.
3615
3616 Sat Mar 24 21:13:28 CET 2001  Jan Hubicka  <jh@suse.cz>
3617
3618         * i386-protos.h (ix86_split_long_move): Return void.
3619         * i386.c (ix86_split_to_parts): Handle 64bit target.
3620         (ix86_split_long_move): Likewise.
3621         * i386.md (all calls to ix86_split_long_move): Update.
3622
3623 2001-03-23  Richard Henderson  <rth@redhat.com>
3624
3625         * config/mips/iris4.h (ASM_OUTPUT_ASCII): Rename local variables
3626         to avoid shadowing arguments.
3627
3628 2001-03-23  Jakub Jelinek  <jakub@redhat.com>
3629
3630         * varasm.c (make_decl_rtl): Don't append var_labelno discriminator
3631         to variable names where DECL_NAME is different from
3632         DECL_ASSEMBLER_NAME.
3633
3634 2001-03-23  Jim Wilson  <wilson@redhat.com>
3635
3636         * varasm.c (make_decl_rtl): Add TREE_PUBLIC check to abort test.
3637         (assemble_alias): Call make_decl_rtl.
3638
3639 Fri Mar 23 16:59:08 2001  J"orn Rennecke <amylaar@redhat.com>
3640
3641         * stor-layout.c (layout_type): Give OFFSET_TYPE a MODE_INT type.
3642
3643 2001-03-23  Bryce McKinlay  <bryce@albatross.co.nz>
3644
3645         * extend.texi: Document the "java_interface" attribute.
3646
3647 2001-03-22  Zack Weinberg  <zackw@stanford.edu>
3648
3649         * mkconfig.sh: Use a subshell with redirected stdout,
3650         instead of closing stdout and confusing commands that run
3651         afterward.  Throw away output of cmp.
3652
3653 2001-03-22  Gordon Sadler  <gbsadler1@lcisp.com>
3654
3655         * Makefile.in (stage1_build): Pass CFLAGS to stage1_build.
3656
3657 Thu Mar 22 22:15:59 CET 2001  Jan Hubicka  <jh@suse.cz>
3658
3659         * i386.md (zero_extendsidi2_32): Break out from ...
3660         (zero_extendsidi2): ... here ; turn to expander.
3661         (zero_extendsidi2_rex64): New.
3662         (extendsidi2_32): Break out from ...
3663         (extendsidi2): ... here ; turn to expander.
3664         (extendsidi2_rex64): New.
3665         (zero_extendhidi2, zero_extendqidi2, extendhidi2, extendqidi2): New.
3666         (trunc?f?f splitters): Add 64bit versions.
3667
3668 Thu Mar 22 21:41:16 CET 2001  Jan Hubicka  <jh@suse.cz>
3669
3670         * i386.md (pushsi, pushsi2_prologue): Disable.
3671         (pushsi2_rex64): New.
3672         (movabs?i_1_rex64, movabs?i_2_rex64): New.
3673         (movqi_ext_1): Disable for 64bit.
3674         (movqi_ext_1_rex64): New.
3675         (pushdi2_rex64): New pattern, peep2s and splitter.
3676         (pushdi2_prologue_rex64): New pattern.
3677         (popdi1_epilogue_rex64, popdi1, movdi_xor_rex64, movdi_or_rex64):
3678         Likewise.
3679         (movdi splitters): Disable for 64bit.
3680         (movdi_1_rex64): New pattern, peep2s and splitters.
3681         (swapdi): New pattern.
3682         (pushsf): Disable for 64bit.
3683         (pushsf_rex64): New pattern and splitter.
3684         (pushdf_nointeger): Disable for 64bit.
3685         (pushdf_integer): Handle the 64bit case.
3686         (pushtf): Likewise; update splitters.
3687
3688 2001-03-22  Richard Henderson  <rth@redhat.com>
3689
3690         * mkconfig.sh: Include insn-flags.h.
3691         * Makefile.in (CONFIG_H): Include insn-flags.h.
3692         (lots of objects): Remove insn-codes.h and insn-flags.h.
3693
3694         * alias.c, bb-reorder.c, calls.c, do-loop.c, flow.c, haifa-sched.c,
3695         integrate.c, jump.c, loop.c, predict.c, profile.c, reg-stack.c,
3696         regmove.c, reorg.c, a29k/a29k.c, alpha/alpha.c, arc/arc.c, arm/arm.c,
3697         avr/avr.c, clipper/clipper.c, convex/convex.c, d30v/d30v.c,
3698         dsp16xx/dsp16xx.c, fr30/fr30.c, h8300/h8300.c, i370/i370.c,
3699         i386/i386.c, i860/i860.c, ia64/ia64.c, m32r/m32r.c, m68hc11/m68hc11.c,
3700         m68k/m68k.c, m88k/m88k.c, mcore/mcore.c, mn10200/mn10200.c,
3701         mn10300/mn10300.c, ns32k/ns32k.c, pa/pa.c, pdp11/pdp11.c,
3702         pj/pj.c, romp/romp.c, rs6000/rs6000.c, sh/sh.c, sparc/sparc.c,
3703         v850/v850.c, vax/vax.c:
3704         Don't include insn-flags.h.
3705
3706         * diagnostic.c, expr.h, reload.c, toplev.c:
3707         Don't include insn-codes.h.
3708
3709         * builtins.c, combine.c, except.c, explow.c, expmed.c, expr.c,
3710         final.c, function.c, optabs.c, recog.c, reload1.c, stmt.c,
3711         c4x/c4x.c, i960/i960.c, mips/mips.c:
3712         Don't include insn-codes.h or insn-flags.h.
3713
3714         * genemit.c, genopinit.c, genoutput.c: Don't include insn-codes.h
3715         or insn-flags.h in the generated code.
3716         * genflags.c (gen_proto): Use "struct rtx_def *" instead of "rtx".
3717         (main): Forward declare struct rtx_def.
3718
3719 2001-03-22  Joseph S. Myers  <jsm28@cam.ac.uk>
3720
3721         * invoke.texi (-ffast-math): Remove duplicate line about
3722         __FAST_MATH__.
3723
3724         * gcc.texi: Remove more obsolete documentation of bugs and
3725         installation problems.
3726
3727 2001-03-21  Kazu Hirata  <kazu@hxi.com>
3728
3729         * config/h8300/h8300.md (movsi_h8300hs): Split the 2nd alternative
3730         into two parts.
3731
3732 2001-03-20  Jason Merrill  <jason@redhat.com>
3733
3734         * collect2.c (is_ctor_dtor): Always use '_' in the file fn names,
3735         not '.' or '$'.
3736         * tree.c (FILE_FUNCTION_FORMAT): Likewise.
3737         * varasm.c (CHKR_PREFIX): Likewise.
3738
3739 Wed Mar 21 14:27:11 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3740
3741         * gcse.c (hash_scan_set): An expression is not anticipatible if it
3742         is part of a multi-SET insn.
3743
3744         * cse.c (find_comparison_args): Remove previous change.
3745         * ifcvt.c (noce_process_if_block): When moving an insn, remove any
3746         REG_EQUAL notes.
3747
3748         * config/i386/i386.md (conditional_trap): Remove warning.
3749
3750         * recog.c (push_operand): Fix error in last change that caused
3751         undefined symbol on many targets.
3752
3753         * sdbout.c: #include ggc.h.
3754         (sdbout_init): Move to end of file.
3755         Call ggc_add_tree_root for anonymous_types.
3756         (sdbout_symbol): Use DECL_NAME for local, not DECL_ASSEMBLER_NAME.
3757         (sdbout_one_type): Use DECL_NAME for field name.
3758         * Makefile.in (sdbout.o): Show includes ggc.h.
3759
3760 Wed Mar 21 20:33:26 CET 2001  Jan Hubicka  <jh@suse.cz>
3761
3762         * i386.c (override_options): Default ix86_regparm to REGPARM_MAX.
3763         (override_options): Use properlimits for preferred_stack_boundary.
3764         (ix86_valid_type_attribute_p): Disable stdcall and cdecl attributes
3765         on x86_64.
3766         (ext_register_operand): Accept DImode.
3767         (load_pic_register): Abort on 64bit.
3768         (gen_push): Use Pmode instead of SImode.
3769         (ix86_save_reg): Pic reg is never used on 64bit.
3770         (ix86_expand_prologue): Likewise.
3771         (ix86_emit_save_regs): Use Pmode instead of SImode.
3772         (legitimate_address_p): Check displacement for 64bit.
3773         (print_operand): Avoid outputting of (%rip) on 64bit.
3774         (print_operand_address): Output (%rip) where possible.
3775         (split_di): Abort on 64bit registers.
3776         (ix86_expand_branch): DImode comparison is simple for x86_64.
3777         (memory_address_length): Recognize memory addresses formed using
3778         PRE/POST modify.
3779         (ix86_data_alignment, ix86_local_alignment): Align arrays to 16 bytes
3780         for x86_64.
3781         * i386.h (TARGET_USE_SAHF): Disable for 64bit.
3782
3783 Wed Mar 21 18:51:19 CET 2001  Jan Hubicka  <jh@suse.cz>
3784
3785         * recog.c (push_operand): Recognize new format of push instructions.
3786
3787 Wed Mar 21 10:53:57 CET 2001  Jan Hubicka  <jh@suse.cz>
3788
3789         * i386.md (pushqi1): New.
3790         * i386-protos.h (x86_64_general_operand, x86_64_szext_general_operand,
3791         x86_64_nonmemory_operand, x86_64_szext_nonmemory_operand,
3792         x86_64_immediate_operand, x86_64_immediate_operand,
3793         x86_64_zext_immediate_operand): Declare.
3794         * i386.c (x86_64_general_operand, x86_64_szext_general_operand,
3795         x86_64_nonmemory_operand, x86_64_szext_nonmemory_operand,
3796         x86_64_immediate_operand, x86_64_immediate_operand,
3797         x86_64_zext_immediate_operand): define.
3798         * i386.h (PREDICATE_CODES): Add new predicates.
3799
3800 Wed Mar 21 10:25:13 CET 2001  Jan Hubicka  <jh@suse.cz>
3801
3802         * i386.md (pophi1, popqi1, pushqi1): Remove.
3803
3804         * expr.c (emit_single_push_insn): New function.
3805         (move_by_pieces): Accept NULL as destination for push instructions.
3806         (gen_push_operand): Kill.
3807         (emit_push_insn): Pass NULL when pushing; avoid updating of
3808         stack_pointer_delta.
3809         * expr.h (gen_push_operand): Kill.
3810
3811 Tue Mar 20 20:15:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3812
3813         * rtl.texi (COMPARE): Clarify documentation and reference section
3814         on comparisons.
3815
3816 2001-03-20  Stan Shebs  <shebs@apple.com>
3817
3818         * objc/objc-act.c (get_static_reference): Use NULL_TREE.
3819         (get_object_reference): Ditto.
3820         (error_with_ivar): Use error_with_file_and_line.
3821         (warn_with_method): Use warning_with_file_and_line.
3822
3823 2001-03-20  Tom Tromey  <tromey@redhat.com>
3824
3825         * libgcc-std.ver: Added __fixunssfsi and __fixunsdfsi.
3826
3827 2001-03-20  Mark Mitchell  <mark@codesourcery.com>
3828
3829         * tree.c (set_decl_assembler_name): Set DECL_ASSEMBLER_NAME for
3830         variables that are TREE_PUBLIC, even if not TREE_STATIC.
3831
3832 2001-03-20  DJ Delorie  <dj@redhat.com>
3833
3834         * Makefile.in (install-libgcc): Pass complete list of variables.
3835         (install-multilib): Ditto.
3836
3837 2001-03-20  David Billinghurst  <David.Billinghurst@riotinto.com>
3838
3839         * config/i386/cygwin.h: Declare ctor_section, dtor_section
3840         drectve_section, switch_to_section.
3841
3842         * winnt.c: Declare functions associated_type, gen_stdcall_suffix,
3843         i386_pe_dllexport_p, i386_pe_dllimport_p, i386_pe_mark_dllexport,
3844         i386_pe_mark_dllimport.
3845
3846 2001-03-20  David Billinghurst <David.Billinghurst@riotinto.com>
3847
3848         * config/i386/cygwin.h: Include <stdio.h> Declare and constify
3849         functions i386_pe_*.
3850
3851         * config/i386/winnt.c: Include "tm_p.h" and "toplev.h" Constify
3852         i386_pe_* functions with char * arguments.
3853
3854 2001-03-20  Alexandre Oliva  <aoliva@redhat.com>
3855
3856         * config/sh/sh.md (movsf_ie): Fix output patterns for fpul load
3857         and store.
3858         (movsi_ie): Introduce fpul store.
3859
3860 2001-03-20  Alan Modra  <alan@linuxcare.com.au>
3861
3862         * Makefile.in (OBJS): Remove hashtab.o.
3863
3864 2001-03-19  Stan Shebs  <shebs@apple.com>
3865
3866         * objc/objc-act.c (maybe_objc_method_name): Remove, never called.
3867         * c-lang.c (maybe_objc_method_name): Ditto.
3868         * c-tree.h (maybe_objc_method_name): Remove decl.
3869
3870 2001-03-19  Tom Tromey  <tromey@redhat.com>
3871
3872         * gcc.c (init_gcc_specs): Fix comment.
3873
3874 2001-03-19  Mark Mitchell  <mark@codesourcery.com>
3875
3876         Compute DECL_ASSEMBLER_NAME lazily.
3877         * tree.h (DECL_ASSEMBLER_NAME): Compute it lazily.
3878         (DECL_ASSEMBLER_NAME_SET_P): New macro.
3879         (SET_DECL_ASSEMBLER_NAME): Likewise.
3880         (COPY_DECL_ASSEMBLER_NAME): Likewise.
3881         (set_decl_assembler_name): Declare.
3882         (lang_set_decl_assembler_name): Likewise.
3883         * tree.c (lang_set_decl_assembler_name): New variab.e
3884         (set_decl_assembler_name): New function.
3885         (init_obstacks): Set lang_set_decl_assembler_name.
3886         (build_decl): Don't set DECL_ASSEMBLER_NAME.
3887         * c-decl.c (duplicate_decls): Use SET_DECL_ASSEMBLER_NAME,
3888         COPY_DECL_ASSEMBLER_NAME, etc.  Don't set DECL_ASSEMBLER_NAME
3889         where it's not necessary.
3890         (builtin_function): Likewise.
3891         (finish_decl): Likewise.
3892         * dbxout.c (dbxout_type_methods): Likewise.
3893         * ggc-common.c (ggc_mark_trees): Likewise.
3894         * profile.c (output_func_start_profiler): Likewise.
3895         * varasm.c (make_decl_rtl): Likewise.
3896
3897         * cse.c (find_comparison_args): Update documentation.  Fix
3898         mishandling of COMPARE operations.
3899
3900         * tree.def (ABS_EXPR): Add documentation.
3901         * fold-const.c (fold): Improve folding of ABS_EXPRs.
3902
3903 2001-03-19  Zack Weinberg  <zackw@stanford.edu>
3904
3905         * Makefile.in (hash.o): Depend on $(GCONFIG_H), not $(CONFIG_H).
3906
3907 2001-03-19  Jakub Jelinek  <jakub@redhat.com>
3908
3909         * crtstuff.c (init_dummy): Use CRT_END_INIT_DUMMY if defined.
3910         Remove ia32 linux PIC kludge and move it...
3911         * config/i386/linux.h (CRT_END_INIT_DUMMY): ...here.
3912
3913 Mon Mar 19 18:53:54 CET 2001  Jan Hubicka  <jh@suse.cz>
3914
3915         * i386.md (absdf2 expander): Fix 64bit case.
3916
3917 2001-03-19  Brad Lucier  <lucier@math.purdue.edu>
3918
3919         * Makefile.in: Have splay-tree.o depend on $(GCONFIG_H).
3920
3921 2001-03-16  Andrew Haley  <aph@cambridge.redhat.com>
3922
3923         * config/ia64/libgcc-ia64.ver: Add __ia64_backtrace.
3924
3925 2001-03-19  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3926
3927         * README.X11: Remove obsolete file.
3928
3929 2001-03-18  Anthony Green  <green@redhat.com>
3930
3931         * config/pj/pj.h: Remove some trailing commas.
3932         (ASM_SPEC): Use -EB and -EL, not -mb and -ml.
3933
3934 2001-03-18  Richard Henderson  <rth@redhat.com>
3935
3936         * defaults.h (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Move from ...
3937         * calls.c: ... here.
3938         * combine.c, expr.c, final.c, function.c toplev.c: Don't provide
3939         defaults for them here.
3940
3941 2001-03-17  Anthony Green  <green@redhat.com>
3942
3943         * config/pj/lib1funcs.S: Fix broken comment.
3944         * config/pj/pj.h (LOCAL_LABEL_PREFIX): Prefix internal
3945         labels with '.'.
3946
3947 2001-03-18  Joseph S. Myers  <jsm28@cam.ac.uk>
3948
3949         * gcc.texi: Remove obsolete information relating to build and
3950         installation problems with enquire or the Pyramid C compiler.
3951
3952 2001-03-17  Richard Henderson  <rth@redhat.com>
3953
3954         * dwarf2out.c (queue_reg_save): New.
3955         (flush_queued_reg_saves, clobbers_queued_reg_save): New.
3956         (dwarf2out_frame_debug_expr): Call queue_reg_save instead of
3957         dwarf2out_reg_save.
3958         (dwarf2out_frame_debug): Call flush_queued_reg_saves when needed.
3959         (cfa, cfa_store, cfa_temp): Make static.
3960         * final.c (final_scan_insn): Always call dwarf2out_frame_debug.
3961
3962 2001-03-17  Richard Henderson  <rth@redhat.com>
3963
3964         * integrate.h (struct inline_remap): Add local_return_label.
3965         * integrate.c (expand_inline_function): Initialize it and emit
3966         it after copy_insn_notes.
3967         (copy_insn_list): Don't store local_return_label here.
3968         (copy_insn_notes): New function split out from copy_insn_list.
3969
3970 2001-03-17  Richard Henderson  <rth@redhat.com>
3971
3972         * dwarf2out.c (lookup_filename): Emit .file if the assembler
3973         is generating .debug_line.
3974         (dwarf2out_init): Add main_input_filename to the file table first.
3975         * configure.in (as_dwarf2_debug_line): Test with file number 1
3976         instead of file number 0.
3977
3978 Sat Mar 17 11:52:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3979
3980         * combine.c (undobuf): Remove field previous_undos; all refs deleted.
3981         (gen_rtx_combine): Deleted; all references changed as appropriate.
3982         (gen_unary): Deleted; all refs changed to call simplify_gen_unary.
3983
3984         * print-tree.c (print_node): Print DECL_NONADDRESSABLE_P.
3985
3986 2001-03-17  David Billinghurst  <David.Billinghurst@riotinto.com>
3987
3988         * config/i386/xm-cygwin.h: Include <sys/cygwin.h.  Remove unused
3989         variable.
3990
3991 2001-03-16  Jim Wilson  <wilson@redhat.com>
3992
3993         * config/ia64/ia64.c (ia64_compute_frame_size): If reg_fp is zero,
3994         then set it to LOC_REG (79) instead of aborting.
3995
3996 2001-03-16  Phil Edwards  <pme@sources.redhat.com>
3997
3998         * gccbug.in:  Remove high priority.
3999
4000 2001-03-16  Richard Henerson  <rth@redhat.com>
4001
4002         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT): Substitute leading od
4003         output with a space instead of deleting it.
4004         * configure: Regenerate.
4005
4006 2001-03-16  Zack Weinberg  <zackw@stanford.edu>
4007
4008         * aclocal.m4 (gcc_AC_EXAMINE_OBJECT): New utility macro which
4009         handles the gory details of converting an object file into
4010         something that's safe to grep.
4011         (gcc_AC_C_COMPILE_BIGENDIAN): Rename to
4012         gcc_AC_C_COMPILE_ENDIAN.  Use gcc_AC_EXAMINE_OBJECT.  Put
4013         newlines at either end of the string we're looking for.
4014         Make 'checking ...' message less stilted.
4015         (gcc_AC_C_FLOAT_FORMAT): Use gcc_AC_EXAMINE_OBJECT.  Handle
4016         ARM in-memory layout and its hypothetical converse.  Don't
4017         define HOST_FLOAT_WORDS_BIG_ENDIAN unless it's different from
4018         HOST_WORDS_BIG_ENDIAN.
4019
4020         * configure.in: Adjust for renamed macro.  Move
4021         gcc_AC_C_FLOAT_FORMAT below gcc_AC_C_COMPILE_ENDIAN.
4022         * configure, config.in: Regenerate.
4023
4024 2001-03-16  Laurynas Biveinis  <lauras@softhome.net>
4025
4026         * fixinc/Makefile.in: Set SHELL.
4027
4028 2001-03-16  Laurynas Biveinis  <lauras@softhome.net>
4029
4030         * fixinc/fixincl.c (fix_with_system): Quote file names before
4031         passing them to shell.
4032
4033 2001-03-16  Laurynas Biveinis  <lauras@softhome.net>
4034
4035         * Makefile.in: Use fix-header$(build_exeext) instead
4036         of fix-header.
4037
4038 2001-03-16  Richard Henderson  <rth@redhat.com>
4039
4040         * dwarf2out.c: Revert most of 2000-11-25 and 2001-01-24 changes.
4041         (LN_PROLOG_AS_LABEL, LN_PROLOG_END_LABEL): New.
4042         (size_of_line_prolog): Remove.
4043         (output_line_info): Compute prologue size via label difference.
4044         (lookup_filename): Return "unspecified" for <internal> and <built-in>.
4045
4046         * configure.in (HAVE_AS_DWARF2_DEBUG_LINE): Require that the
4047         assembler error when redefining file numbers.
4048         * config.in, configure: Rebuild.
4049
4050         * dwarf2asm.c (dw2_asm_output_data): Mask data to the output size.
4051         (dw2_asm_output_data_uleb128): Use space not tab after .uleb128.
4052         (dw2_asm_output_delta_uleb128): Likewise.
4053         (dw2_asm_output_delta_sleb128): Similarly.
4054         (dw2_asm_output_data_sleb128): Similarly.  Print number in decimal.
4055
4056 2001-03-16  Michael Meissner  <meissner@redhat.com>
4057
4058         * mips.h (BITMASK_HIGH): Replacement for 0x80000000 that avoids
4059         warnings.
4060         (BITMASK_UPPER16): Replacement for 0xffff0000 that avoids
4061         warnings.
4062         (BITMASK_LOWER16): Replacement for 0x0000ffff.
4063
4064         * mips.c (save_restore_insns): Use BITMASK_UPPER16/BITMASK_LOWER16
4065         instead of 0xffff0000/0x0000ffff to avoid warnings about constants
4066         being unsigned in ISO C and signed in traditional.
4067         (expand_prologue): Ditto.
4068         (RA_MASK): Use BITMASK_HIGH to avoid warnings.
4069
4070         * mips.md (divmodsi4,divmodsi4): Use BITMASK_HIGH to avoid
4071         warnings.
4072         (divsi3,divdi3): Ditto.
4073         (modsi3,moddi3): Ditto.
4074         (fix_truncdfsi2,fix_truncdfdi2): Ditto.
4075         (fix_truncsfsi2,fix_truncsfdi2): Ditto.
4076         (movsi split): Use BITMASK_UPPER16/BITMASK_LOWER16 to avoid
4077         warnings.
4078
4079 Fri Mar 16 14:47:57 CET 2001  Jan Hubicka  <jh@suse.cz>
4080
4081         * i386.c (ix86_expand_fp_movcc): Do not attempt to construct
4082         SSE based conditional moves on LTGT/UNEQ conditions;
4083         Canonicalize EQ to NE.
4084         * i386.md (sse_mov?fcc): Disallow EQ and NE in IEEE mode.
4085         (sse_mov?fcc_ne): New.
4086
4087         * i386-protos.h (sign_extended_value, zero_extended_value): Declare.
4088
4089 2001-03-16  Alexandre Oliva  <aoliva@redhat.com>
4090
4091         * config/sh/sh.c (sh_expand_prologue): Insns that set up the PIC
4092         register may be dead.
4093
4094 2001-03-16  Brad Lucier  <lucier@math.purdue.edu>
4095
4096         * Makefile.in (hash.o): Depend on CONFIG_H.
4097
4098 2001-03-15  Mark Mitchell  <mark@codesourcery.com>
4099
4100         * dwarf2out.c (rtl_for_decl_location): Use DECL_RTL_IF_SET.
4101
4102 2001-03-15  Richard Henderson  <rth@redhat.com>
4103
4104         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): New.
4105         (ASM_OUTPUT_DWARF_PCREL): New.
4106         * config/ia64/hpux.h (ASM_OUTPUT_DWARF_OFFSET): Remove.
4107
4108 2001-03-16  Alexandre Oliva  <aoliva@redhat.com>
4109
4110         * cppfiles.c (stack_include_file): Use MAX of sysp.
4111
4112 2001-03-15  Steve Ellcey  <sje@cup.hp.com>
4113
4114         * config.gcc (ia64*-*-hpux*): New case.
4115         * config/ia64/hpux.h: New file for HP-UX support.
4116         * config/ia64/t-hpux: New file for HP-UX support.
4117
4118 2001-03-16  Bruce Korb  <bkorb@gnu.org>, Alexandre Oliva  <aoliva@redhat.com>
4119
4120         * fixinc/inclhack.def (irix_stdio_va_list): New.
4121         * fixinc/fixincl.x: Rebuilt.
4122
4123 2001-03-15  Richard Henderson  <rth@redhat.com>
4124
4125         * dwarf2asm.c (dw2_asm_output_offset): Use ASM_OUTPUT_DWARF_OFFSET
4126         if provided by the target.
4127         (dw2_asm_output_pcrel): Likewise with ASM_OUTPUT_DWARF_PCREL.
4128         (dw2_asm_output_addr): New.
4129         * dwarf2asm.h (dw2_asm_output_addr): Declare.
4130         * dwarf2out.c (output_cfi): Use it for program addresses.
4131         (output_call_frame_info, output_die): Likewise.
4132         (output_aranges, output_line_info): Likewise.
4133
4134 2001-03-15  Bruce Korb  <bkorb@gnu.org>
4135
4136         * gcc.c(main): make more rigorous
4137         * collect2.c(main): guard against ignoring SIGCHLD
4138         * protoize.c(main): ditto
4139         * gcc/fixinc/fixincl.c(initialize): ditto
4140
4141 2001-03-15  Mark Mitchell  <mark@codesourcery.com>
4142
4143         * sdbout.c (sdbout_symbol): Use DECL_RTL_SET_P, SET_DECL_RTL.
4144         (sdbout_parms): Likewise.
4145
4146 Thu Mar 15 12:57:14 2001  Jeffrey A Law  (law@cygnus.com)
4147
4148         * reload1.c (reload_cse_simplify_set): For LOAD_EXTEND_OP, do not
4149         "widen" a destination that is already wider than a word.  Also do
4150         not widen if LOAD_EXTEND_OP is NIL for the given mode.
4151
4152 2001-03-15  Bernd Schmidt  <bernds@redhat.com>
4153
4154         * config/ia64/ia64.c (ia64_sched_reorder): Remove debugging aids.
4155
4156 Thu Mar 15 11:30:31 EST 2001  John Wehle  (john@feith.com)
4157
4158         * i960.h (ROUND_TYPE_SIZE_UNIT): Fix typo.
4159
4160 Thu Mar 15 11:24:29 EST 2001  John Wehle  (john@feith.com)
4161
4162         * i960.h (i960_maxbitalignment,
4163         i960_last_maxbitalignment): Declare.
4164         * i960.c (i960_maxbitalignment,
4165         i960_last_maxbitalignment): Make global.
4166         (process_pragma): Delete.
4167         (i960_pr_align, i960_pr_noalign): Move from here ...
4168         * i960-c.c: ... to this new file.
4169         * t-960bare (i960-c.o): New rule.
4170         * t-vxworks960 (i960-c.o): Likewise.
4171         * config.gcc (i960-*-*): Define c_target_objs and
4172         cxx_target_objs.
4173
4174 2001-03-15  Bernd Schmidt  <bernds@redhat.com>
4175
4176         * cselib.c (hash_rtx): For REG and MEM, just use value of expression
4177         without adding in rtx code and mode.
4178
4179         * alias.c (init_alias_analysis): Don't use any rtx whose value
4180         varies as a known value.
4181         Delete a superfluous test.
4182
4183         * config/ia64/ia64.c (maybe_rotate): New function, broken out of
4184         ia64_sched_reorder.
4185         (ia64_sched_reorder): Call maybe_rotate; also rotate after
4186         scheduling a stop bit.
4187         (ia64_emit_nops): Correctly handle ASMs.
4188
4189 2001-03-15  Mark Mitchell  <mark@codesourcery.com>
4190
4191         * varasm.c (assemble_variable): Use DECL_RTL_SET_P.
4192
4193 2001-03-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4194
4195         * cpp.texi: Update documentation for -include and -imacros.
4196         * cppfiles.c (struct include_file): Remove "defined" memeber.
4197         (find_or_create_entry): Make a copy of the file name, and
4198         simplify it.
4199         (open_file): Update to ensure we use the simplified filename.
4200         (stack_include_file): Don't set search_from.
4201         (cpp_included): Don't simplify the path name here.
4202         (find_include_file): New prototype.  Call search_from to
4203         get the start of the "" include chain.  Don't simplify the
4204         filenames here.
4205         (_cpp_execute_include): New prototype.  Move diagnostics to
4206         do_include_common.  Update.
4207         (_cpp_pop_file_buffer): Don't set defined.
4208         (search_from): New prototype.  Use the preprocessor's cwd
4209         for files included from the command line.
4210         (read_name_map): Don't simplify the pathname here.
4211         * cpphash.h (enum include_type): New.
4212         (struct buffer): Delete search from.  New search_cached.
4213         (_cpp_execute_include): Update prototype.
4214         * cppinit.c (do_includes): Use _cpp_execute_include.
4215         * cpplib.c (do_include_common): New function.
4216         (do_include, do_include_next, do_import): Use it.
4217
4218 2001-03-14  Mark Mitchell  <mark@codesourcery.com>
4219
4220         * varasm.c (assemble_alias): Use DECL_ASSEMBLER_NAME, not the
4221         contents of the RTL, to determine the name of the object.
4222
4223 2001-03-14  Mark Mitchell  <mark@codesourcery.com>
4224
4225         * tree.h (DECL_RTL): Allocate RTL lazily.
4226         (SET_DECL_RTL): New macro.
4227         (DECL_RTL_SET_P): Likewise.
4228         (COPY_DECL_RTL): Likewise.
4229         (DECL_RTL_IF_SET): Likewise.
4230         * varasm.c (make_decl_rtl): Add assertions about the kind of
4231         declaration we are processing.
4232         * c-decl.c (duplicate_decls): Use COPY_DECL_RTL, DECL_RTL_SET_P, etc.
4233         (start_decl): Likewise.
4234         (finish_decl): Likewise.
4235         * c-semantics.c (emit_local_var): Likewise.
4236         * calls.c (expand_call): Likewise.
4237         * dbxout.c (dbxout_symbol): Likewise.
4238         * emit-rtl.c (unshare_all_rtl): Likewise.
4239         (unshare_all_decls): Likewise.
4240         (reset_used_decls): Likewise.
4241         * expr.c (store_constructor): Likewise.
4242         (safe_from_p): Likewise.
4243         (expand_expr): Likewise.
4244         * function.c (put_var_into_stack): Likewise.
4245         (instantiate_decls_1): Likewise.
4246         (assign_parms): Likewise.
4247         (expand_function_start): Likewise.
4248         (expand_function_end): Likewise.
4249         * ggc-common.c (gcc_mark_trees): Likewise.
4250         * integrate.c (function_cannot_inline_p): Likewise.
4251         (copy_decl_for_inlining): Likewise.
4252         (expand_inline_function): Likewise.
4253         (integrate_parm_decls): Likewise.
4254         (integrate_decl_tree): Likewise.
4255         * print-tree.c (print_node): Likewise.
4256         * reg-stack.c (stack_result): Likewise.
4257         * stmt.c (label_rtx): Likewise.
4258         (expand_return): Likewise.
4259         (expand_decl): Likewise.
4260         (expand_decl_cleanup): Likewise.
4261         (expand_anon_union_decl): Likewise.
4262         * toplev.c (check_global_declarations): Likewise.
4263         (rest_of_decl_compilation): Likewise.
4264         * tree.c (simple_cst_equal): Likewise.
4265         * objc/objc-act.c (generate_static_references): Likewise.
4266
4267 2001-03-14  Zack Weinberg  <zackw@stanford.edu>
4268
4269         * aclocal.m4 (gcc_AC_C_CHARSET, gcc_AC_C_COMPILE_BIGENDIAN,
4270         gcc_AC_C_FLOAT_FORMAT): New macros.
4271         * configure.in: Add AC_PROG_CPP after CC tests;
4272         gcc_AC_C_CHARSET and gcc_AC_C_FLOAT_FORMAT after the sizeof
4273         tests; and gcc_AC_C_COMPILE_BIGENDIAN after gcc_AC_C_CHAR_BIT.
4274         * configure, config.in: Regenerate.
4275
4276         * config/a29k/xm-a29k.h, config/arc/xm-arc.h,
4277         config/arm/xm-arm.h, config/c4x/xm-c4x.h,
4278         config/convex/xm-convex.h, config/d30v/xm-d30v.h,
4279         config/i370/xm-linux.h, config/i370/xm-oe.h,
4280         config/ia64/xm-ia64.h, config/m32r/xm-m32r.h,
4281         config/m68k/xm-m68k.h, config/mips/xm-mips.h,
4282         config/pa/xm-linux.h, config/pa/xm-pa.h,
4283         config/rs6000/xm-lynx.h, config/rs6000/xm-mach.h,
4284         config/rs6000/xm-rs6000.h, config/rs6000/xm-sysv4.h,
4285         config/sparc/xm-sparc.h, config/vax/xm-vax.h,
4286         config/we32k/xm-we32k.h: Delete.
4287
4288         * config/i370/xm-mvs.h, config/m88k/m88k.h,
4289         config/romp/xm-romp.h, config/rs6000/xm-beos.h,
4290         config/vax/xm-vms.h: Don't define any of:
4291         HOST_FLOAT_FORMAT, HOST_EBCDIC, HOST_WORDS_BIG_ENDIAN
4292
4293         * config/rs6000/aix.h: Define COLLECT_EXPORT_LIST here.
4294
4295         * config.gcc: Remove references to deleted files.
4296         (i370-*-opened*): Use i370/xm-mvs.h (which now defines only
4297         FATAL_EXIT_CODE, which is the same between oe and mvs).
4298
4299 2001-03-14  DJ Delorie  <dj@redhat.com>
4300             Vladimir Makarov  <vmakarov@redhat.com>
4301
4302         * config/i960/i960.c (i960_function_prologue): Compute size of
4303         frame according to number of registers actually saved there.
4304
4305 2001-03-14  Richard Henderson  <rth@redhat.com>
4306
4307         * expr.c (emit_move_insn_1): Fix else if around #endif.
4308
4309 Wed Mar 14 22:39:12 CET 2001  Jan Hubicka  <jh@suse.cz>
4310                               Vojtech Pavlik
4311
4312         * md.texi (machine constraints): Document 'Q', 'R', 'e' and 'Z'
4313         constraints.
4314
4315 Wed Mar 14 22:26:10 CET 2001  Jan Hubicka  <jh@suse.cz>
4316
4317         * i386.c (ix86_cmodel_string, ix86_cmodel): Define.
4318         (override_options): Parse cmodel string.
4319         (x86_64_sign_extended_value, x86_64_zero_extended_value): New.
4320         * i386.h (TARGET_OPTIONS): Add "cmodel".
4321         (EXTRA_CONSTRAINT): Recognize 'e' and 'Z'.
4322         (enum cmodel): New.
4323         (ix86_cmodel_string, ix86_cmodel): Declare.
4324
4325 Wed Mar 14 22:26:54 CET 2001  Jan Hubicka  <jh@suse.cz>
4326
4327         Spot by Matt Kraai:
4328         * i386.h (GENERAL_REG_P): Add missing REG_P.
4329
4330 2001-03-14  Laurynas Biveinis  <lauras@softhome.net>
4331
4332         * configure.in: Use $gcc_cv_as instead of $as.
4333         * configure: Regenerated.
4334
4335 2001-03-14  Neil Booth  <neil@daikokuya.demon.co.uk>
4336
4337         * cppfiles.c (stack_include_file): Only increase the include
4338         count if we actually process the file properly, as opposed
4339         to treating it as length zero.  Only call read_include_file
4340         if not DO_NOT_REREAD.  Handle the -H include file output
4341         here.
4342         (read_include_file): Remove now redundant DO_NOT_REREAD check.
4343         (cpp_included, find_include_file): Simplify pathnames after
4344         remapping them.  If remapping, don't use the remapped file
4345         name's buffer as our scratch buffer.
4346         (cpp_pop_file_buffer): Replace the multiple include macro
4347         only if it isn't yet set.
4348         (read_name_map): Simplify remapped names when reading in.
4349         (remap_filename): Move code to code path that uses it.
4350         (_cpp_simplify_pathname): Return the input pointer.
4351         * cpphash.h (_cpp_simplify_pathname): Update prototype.
4352
4353 2001-03-14  Mark Mitchell  <mark@codesourcery.com>
4354
4355         * expr.c (expand_expr): Revove bogus conditional.
4356
4357 Wed Mar 14 19:29:50 CET 2001  Jan Hubicka  <jh@suse.cz>
4358
4359         * expr.c (emit_move_insn_1): Guard PUSH_ROUNDING use by ifdef.
4360
4361 2001-03-14  Jakub Jelinek  <jakub@redhat.com>
4362
4363         * reg-stack.c (stack_result): Unconditionally use
4364         FUNCTION_OUTGOING_VALUE resp. FUNCTION_VALUE.
4365
4366 Wed Mar 14 16:36:25 CET 2001  Jan Hubicka  <jh@suse.cz>
4367
4368         * expr.c (emit_move_insn_1):  Split push of complex value when
4369         no suitable push instruction exist.
4370
4371         * i386.md (QImode move/add/shift patterns): Use ANY_QI_REG_P
4372         instead of QI_REG_P.
4373
4374 Tue Mar 13 22:22:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4375
4376         * alias.c (handled_component_p, can_address_p): New functions.
4377         (get_alias_set): Use them.
4378
4379 2001-03-13  Jim Wilson  <wilson@redhat.com>
4380
4381         * config/ia64/ia64.c (find_gr_spill): Subtract frame_pointer_needed
4382         from 80 in try_locals code.
4383         (ia64_expand_prologue): Add comment pointing to find_gr_spill change.
4384
4385 2001-03-13  Zack Weinberg  <zackw@stanford.edu>
4386
4387         * aclocal.m4 (gcc_AC_COMPILE_CHECK_SIZEOF, gcc_AC_C_CHAR_BIT,
4388         gcc_AC_C_LONG_LONG): New.
4389         * configure.in: Use them.  Probe the size of short, int, long,
4390         and long long/__int64 if we have them.  Move all the AC_C_*
4391         checks together, except gcc_AC_C_CHAR_BIT which has to go
4392         after AC_CHECK_HEADERS(limits.h).
4393         Take hwint.h out of host_xm_file and build_xm_file.
4394
4395         * hwint.h: Unconditionally define HOST_BITS_PER_CHAR,
4396         HOST_BITS_PER_SHORT, HOST_BITS_PER_INT, HOST_BITS_PER_LONG,
4397         and HOST_BITS_PER_LONGLONG in terms of SIZEOF_* and CHAR_BIT.
4398         Move the HOST_WIDEST_INT setup logic here from system.h.
4399         Provide HOST_WIDEST_INT even if HOST_BITS_PER_LONGLONG is not
4400         defined.
4401         * system.h: Include hwint.h after limits.h.  HOST_WIDEST_INT
4402         is now handled by hwint.h.
4403
4404         * config/alpha/xm-alpha-interix.h, config/alpha/xm-vms.h,
4405         config/c4x/xm-c4x.h, config/i370/xm-oe.h,
4406         config/ia64/xm-ia64.h: Don't define any of:
4407         HOST_BITS_PER_LONG, HOST_BITS_PER_CHAR, HOST_BITS_PER_SHORT,
4408         HOST_BITS_PER_LONGLONG.
4409
4410         * config/alpha/xm-alpha.h, config/dsp16xx/xm-dsp16xx.h,
4411         config/h8300/xm-h8300.h, config/mips/iris6.h,
4412         config/mn10200/xm-mn10200.h, config/pa/xm-pa64hpux.h,
4413         config/sparc/xm-sp64.h: Delete.
4414         * config.gcc: Remove references to deleted files.
4415
4416         * config/arm/xm-arm.h, config/mips/xm-mips.h: Don't define
4417         HOST_FLOAT_FORMAT to IEEE_FLOAT_FORMAT.
4418         * config/i370/xm-linux.h: Clarify floating-point situation in
4419         a comment.
4420
4421 2001-03-13  Neil Booth  <neil@daikokuya.demon.co.uk>
4422
4423         * cppfiles.c (NO_INCLUDE_PATH): New macro.
4424         (find_include_file): Decide here which part of the include
4425         chain to start the search.  Complain about an empty include
4426         chain in all cases apart from an abolsute file name.
4427         (_cpp_execute_include): Don't choose the search chain here.
4428         Don't call handle_missing_include in the case of an empty
4429         include chain.
4430         (_cpp_compare_file_date): Don't choose the search chain here.
4431         * cpplib.c (do_include_next): Move the in-main-file diagnostic
4432         here from _cpp_execute_include.  Behave like #include if
4433         we're in the main file.
4434
4435 2001-03-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4436
4437         * system.h (malloc, realloc, calloc, strdup): Only poison these
4438         tokens when IN_GCC is defined.
4439
4440 Tue Mar 13 14:38:44 CET 2001  Jan Hubicka  <jh@suse.cz>
4441
4442         * i386.md (abs?f expander): Support SSE case.
4443         (abd?f_if): Add new "USE"; add splitters.
4444
4445 2001-03-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4446
4447         * cpp.texi (poison): Explain the macro expansion exception.
4448
4449 2001-03-13  Jakub Jelinek  <jakub@redhat.com>
4450
4451         * expr.c (store_expr): Add dont_store_target.  If temp is already in
4452         target before copying to reg, don't store it into target again.
4453
4454 2001-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
4455
4456         * cppinternals.texi: Update for file handling.
4457
4458 2001-03-12  Jeffrey Oldham  <oldham@codesourcery.com>
4459
4460         * emit-rtl.c (remove_unnecessary_notes): Reverse Richard Kenner's
4461         2001-02-24 which broke building the Java library.
4462         * function.c (identify_blocks): Likewise.
4463         (all_blocks): Likewise.
4464         * integrate.c (integrate_decl_tree): Likewise.
4465         * print-tree.c (print_node): Likewise.
4466         * tree.h (BLOCK_NUMBER): Likewise.
4467         (struct tree_block): Likewise.
4468
4469 2001-03-12  David Edelsohn  <edelsohn@gnu.org>
4470
4471         * rs6000/aix51.h (CPP_SPEC, CPLUSPLUS_CPP_SPEC): Fix typo in
4472         __WCHAR_TYPE__ definition.
4473         (WCHAR_TYPE_SIZE): #undef before #define.
4474
4475 2001-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
4476
4477         * cppfiles.c: Update comments.
4478         (destroy_include_file_node): Rename destroy_node.
4479         (find_or_create_entry): New function.
4480         (open_file, _cpp_fake_include): Use it.
4481         (handle_missing_header): New function, broken out of
4482         _cpp_execute include.  Don't segfault if there is no
4483         system or quoted path.
4484         (_cpp_execute_include): Use handle_missing_header.
4485
4486 2001-03-12  Jeffrey Oldham  <oldham@codesourcery.com>
4487
4488         * jump.c (reversed_comparison_code_parts): Reverse Jan Hubricka's
4489         2001-02-28 patch because it breaks arm-linux and mips-sgi-irix6.5.
4490
4491 Mon Mar 12 14:05:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4492
4493         * flow.c (insn_dead_p): Don't consider two memrefs equivalent
4494         unless anti_dependence says they are.
4495         * alias.c (objects_must_conflict): If neither has a type specified,
4496         they must conflict.
4497
4498 2001-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
4499             David Billinghurst <David.Billinghurst@riotinto.com>
4500
4501         * config/mips/iris5.h:  Change WCHAR_TYPE to int.
4502
4503 Mon Mar 12 16:32:21 CET 2001  Jan Hubicka  <jh@suse.cz>
4504
4505         * i386.md (trunctfdf2_2): Rename missnamed pattern.
4506         (*_one_bit): Remove type on the match_operand in attributes.
4507
4508 Mon Mar 12 16:27:56 CET 2001  Jan Hubicka  <jh@suse.cz>
4509
4510         * i386.c: Commit forgotten hunk in previous patch.
4511         (regclass_map): Add extended registers.
4512         (dbx_register_map): Add missing frame register.
4513
4514 Mon Mar 12 15:41:08 CET 2001  Jan Hubicka  <jh@suse.cz>
4515
4516         * i386.md (all XFmode patterns except swapxf): Disable for 64bit.
4517
4518         * i386.md (x86_sahf_1): Disable for 64bit.
4519         (popsi*, pophi*): Likewise.
4520         (pushqi, pushhi): Likewise.
4521         (movdi, pushdi): Likewise.
4522         (zero extend DImode splitter): Likewise.
4523         (adddi, minusdi splitter): Likewise.
4524         (umulsidi): Likewise.
4525         (umulsi): New.
4526         (mulsidi): Disable for 64bit
4527         (lshift:DI/ashift:DI): Disable for 64bit.
4528         (loop patterns): Likewise.
4529         (call_pop, call_value_pop expanders and patterns): Likewise.
4530         (prologue_get_pc): Likewise.
4531         (leave): Likewise.
4532         (fcmovDI pattern and splitter): Likewise.
4533         (movdfcc_1_rex64): New.
4534
4535 Mon Mar 12 15:16:36 CET 2001  Jan Hubicka  <jh@suse.cz>
4536
4537         * i386.h (VALID_FP_MODE_P): XFmode is invalid on x86_64.
4538         (MODES_TIEABLE_P): QImodes and DImodes are tiable on x86_64.
4539         (HARD_REGNO_CALLER_SAVE_MODE): Save QImodes as QImodes for x86_64.
4540         (STATIC_CHAIN_REGNUM): Set to r10 for x86_64.
4541         (PIC_OFFSET_TABLE_REGNUM): Set to INVALID_REGNUM for x86_64.
4542         (LIMIT_RELOAD_CLASS): Avoid limiting of QImodes on x86_64.
4543         (SECONDARY_OUTPUT_RELOAD_CLASS): No need to QImodes.
4544         (PUSH_ROUNDING): x86_64 rounds to 64bits.
4545         (CONSTANT_ADDRESS_P): Accept CONST_DOUBLE.
4546         (REGPARM_MAX): Set to 6 for x86_64.
4547         (SSE_REGPARM_MAX): Set to 16 for x86_64.
4548         * i386.c (hard_regno_mode_ok): QImodes can be in all general purpose
4549         registers.
4550
4551         * (patterns that does use upper halves): Update constraints
4552         'q' to 'Q' and 'r' to 'R'.
4553         (cmpqi_ext_1): Disable for 64bit.
4554         (cmpqi_ext_3_insn): Likewise.
4555         (movqi_extzv_1): Likewsie.
4556         (addqi_ext_1): Liekwsie
4557         (testqi_ext_1): Liekwsie
4558         (andqi_ext_1): Liekwsie
4559         (xorqi_ext_1): Liekwsie
4560         (cmpqi_ext_1_rex64): New.
4561         (cmpqi_ext_3_insn_rex64): Likewise.
4562         (movqi_extzv_1_rex64): Likewsie.
4563         (addqi_ext_1_rex64): Liekwsie
4564         (testqi_ext_1_rex64): Liekwsie
4565         (andqi_ext_1_rex64): Liekwsie
4566         (xorqi_ext_1_rex64): Liekwsie
4567
4568 2001-03-11  Zack Weinberg  <zackw@stanford.edu>
4569
4570         * configure.in: Move check for unsigned enumerated bitfields
4571         to macro in aclocal.m4.  Disable it for now.
4572         * configure, config.in: Regenerate.
4573         * system.h: Don't do anything with ONLY_INT_FIELDS.  Use the
4574         unsigned-int form of ENUM_BITFIELD() unless being compiled by GCC.
4575         * varasm.c (struct rtx_const): Use ENUM_BITFIELD().  Move enum
4576         kind above its first use.
4577
4578         * config/xm-interix.h, config/alpha/xm-alpha.h,
4579         config/i370/xm-linux.h, config/i386/xm-beos.h,
4580         config/i386/xm-mingw32.h, config/mips/xm-mips.h,
4581         config/pa/xm-pa.h, config/pa/xm-pa64hpux.h,
4582         config/rs6000/xm-beos.h, config/rs6000/xm-sysv4.h,
4583         Don't define ONLY_INT_FIELDS under any circumstances.
4584
4585         * config/pa/xm-pa.h: Don't define __BSD_NET2__.
4586
4587         * config/pa/xm-pahpux.h, config/pa/xm-papro.h,
4588         config/sparc/xm-sysv4.h: Delete - now identical with some
4589         other xm header.
4590         * config.gcc (hppa targets): Replace xm-pahpux.h and
4591         xm-papro.h with implicit xm-pa.h.
4592         (sparc targets): Replace xm-sysv4.h with implicit or explicit
4593         xm-sparc.h.
4594
4595 2001-03-12  Aldy Hernandez  <aldyh@redhat.com>
4596
4597         * reload1.c (reload_cse_simplify): Call reload_cse_simplify_set
4598         before reload_cse_noop_set_p.
4599
4600 2001-03-11  Zack Weinberg  <zackw@stanford.edu>
4601
4602         * config.gcc: Where xm-host.h used to include another
4603         xm-host.h, list the nested header directly in xm_file.  Remove
4604         references to deleted files.  Can now use sparc/xm-sp64.h for
4605         sparcv9-*-solaris*.
4606
4607         * config/xm-linux.h, config/arm/xm-linux.h,
4608         config/i386/xm-dos.h, config/i386/xm-gnu.h,
4609         config/i386/xm-linux.h, config/i386/xm-openbsd.h,
4610         config/i860/xm-fx2800.h, config/m68k/xm-atari.h,
4611         config/m68k/xm-linux.h, config/m68k/xm-sun3.h,
4612         config/sparc/xm-linux.h, config/sparc/xm-sysv4-64.h:
4613         Delete.
4614
4615         * config/alpha/xm-alpha-interix.h: Don't include alpha/xm-alpha.h.
4616         * config/mips/xm-iris5.h: Don't include mips/xm-mips.h.  Don't
4617         bother to wrap #undef in #ifdef.
4618         * config/pa/xm-linux.h, config/rs6000/xm-sysv4.h:
4619         Don't include xm-linux.h.
4620         * config/sparc/xm-sp64.h: Don't include sparc/xm-sparc.h.
4621
4622         * configure.in: Wrap regexps using [] in changequote block.
4623         Use expr : not echo | grep.  Simplify regexps.
4624         * configure: Regenerate.
4625
4626         56 xm-files remain, 22 xm-arch.
4627
4628 2001-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4629
4630         * mips-tfile.c: Cast arg to PTR when specifier is HOST_PTR_PRINTF.
4631         (__proto, PTR_T, CPTR_T): Delete, use PARAMS/PTR instead.
4632         (local_index, local_rindex): Delete, use strchr/strrchr instead.
4633         (copy_object): Fix format specifier vs argument mismatch.
4634
4635         * mips-tdump.c: Make local functions static.
4636         (rindex): Don't #undef.
4637         (__proto, PTR_T, CPTR_T): Delete, use PARAMS/PTR instead.
4638         (fatal, fancy_abort): Delete.
4639         (read_seek): Avoid signed/unsigned compare.
4640
4641 Sun Mar 11 17:01:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4642
4643         * combine.c (try_combine): Fix error in change to try original
4644         register.
4645         (gen_rtx_combine): Do same as gen_rtx for now.
4646
4647 2001-03-11  Zack Weinberg  <zackw@stanford.edu>
4648
4649         * configure.in: AC_SUBST xm_defines.
4650         * configure: Regenerate.
4651         * Makefile.in: Set DEFINES=$(xm_defines) when building
4652         tconfig.h.
4653
4654 2001-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
4655
4656         * cppfiles.c (INCLUDE_LEN_FUDGE, ENOMEM): Delete.
4657         (cpp_included, find_include_file): Update.
4658         (_cpp_compare_file_date): Make else unconditional.
4659
4660 2001-03-10  kaz Kojima <kkojima@rr.iij4u.or.jp>
4661
4662         * config/sh/sh.h (LEGITIMATE_PIC_OPERAND_P): Defined.
4663
4664 2001-03-10  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4665
4666         * config/sh/sh.md (umulhisi3_i, mulhisi3_i): Fix mnemonics.
4667         * config/sh/lib1funcs.asm (mulsi3): Convert mulu to mulu.w.
4668
4669 Sat Mar 10 22:42:05 2001  Alexandre Oliva  <aoliva@redhat.com>
4670
4671         * tree.c (build_common_tree_nodes_2): Don't copy va_list_type_node
4672         if it's a record type.
4673
4674 Sat Mar 10 17:52:54 2001  Christopher Faylor <cgf@cygnus.com>
4675
4676         * config/i386/cygwin.h: Make ../w32api a system directory.  Reorganize
4677         mingw includes slightly.
4678
4679 2001-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4680
4681         * system.h (malloc, realloc, calloc, strdup, bzero, bcmp, rindex):
4682         #undef token before poisoning it.
4683
4684 2001-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4685
4686         * alpha.c (check_float_value): Use memcpy, not bcopy.
4687
4688         * m32r.c (m32r_sched_reorder): Likewise.
4689
4690         * vax.c (check_float_value): Likewise.
4691
4692 2001-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4693
4694         * toplev.c (file_name_nondirectory): Remove.
4695         * toplev.h: Similarly.
4696         * dwarf2out.c (compute_section_prefix): Use lbasename instead
4697         of file_name_nondirectory.
4698
4699 Sat Mar 10 10:36:45 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4700
4701         * mips-tdump.c (read_seek): Call xmalloc, not malloc.
4702         * mips-tfile.c: Don't #undef rindex; not used.
4703
4704 Sat Mar 10 14:34:59 CET 2001  Jan Hubicka  <jh@suse.cz>
4705
4706         * i386.h (DBX_REGISTER_NUMBER): Return proper values for 64bits.
4707         (dbx64_register_map): Declare.
4708         (RETURN_ADDR_RTX): Fix for 64bit.
4709         (DWARF_FRAME_RETURN_COLUMN): Set to 16 for 64bit.
4710         (INCOMING_FRAME_SP_OFFSET): Set to 8.
4711         * i386.c (dbx64_register_map): New global array.
4712         * beos-elf.h, freebsd.h, i386-interix.h, i386elf.h,
4713         linux.h (DBX_REGISTER_REGNUMBER): Use dbx64_register_map
4714         for 64bits.
4715
4716 2001-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
4717
4718         * cppfiles.c (search_from): Use lbasename.
4719         * mkdeps.c (deps_add_default_target): Use lbasename.
4720
4721 2001-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4722
4723         * fixinc/server.c (load_data, run_shell): Use xmalloc, xrealloc &
4724         xcalloc in lieu of malloc, realloc & calloc.
4725
4726         * gencheck.c (xmalloc): Use really_call_malloc, not malloc.
4727
4728         * gengenrtl.c (xmalloc): Likewise.
4729
4730         * gensupport.c (xcalloc, xrealloc, xmalloc): Use the
4731         really_call_* memory allocation routines.
4732
4733         * stmt.c (check_for_full_enumeration_handling): Use
4734         really_call_calloc, not calloc.
4735
4736         * system.h (really_call_malloc, really_call_calloc,
4737         really_call_realloc): Define.
4738         (malloc, realloc, calloc, strdup, bzero, bcmp, rindex): Poison.
4739
4740 Fri Mar  9 18:39:19 2001  Jeffrey A Law  (law@cygnus.com)
4741
4742         * pa.md (builtin_longjmp): Rework slightly to work for PA64 too.
4743
4744 2001-03-09  Nicola Pero <n.pero@mi.flashnet.it>
4745
4746         * configure: Rebuilt.
4747         * configure.in: Only use `lang_requires' for languages athat are
4748         actually enabled.
4749
4750 2001-03-09  Joseph S. Myers  <jsm28@cam.ac.uk>
4751
4752         * invoke.texi: Fix typo.
4753         * gcc.1: Regenerate.
4754
4755 2001-03-09  Zack Weinberg  <zackw@stanford.edu>
4756
4757         * configure.in: Prune nonexistent files from build_xm_file,
4758         xm_file, and host_xm_file lists.  Warn unless they're
4759         $cpu/xm-$cpu.h.
4760         Don't generate *config.h here.
4761         AC_SUBST all variables needed to generate *config.h.
4762         * configure: Regenerate.
4763         * mkconfig.sh: New helper script, from code removed from
4764         configure.in.
4765         * Makefile.in: Zap all MALLOC variables - no longer used
4766         anywhere, and malloc.c doesn't exist.
4767         Substitute in variables needed to generate *config.h.
4768         Stop lying about the dependencies contained in CONFIG_H and
4769         GCONFIG_H.
4770         (HCONFIG_H, TCONFIG_H, TM_P_H): New variables.
4771         (config.h, hconfig.h, tconfig.h, tm_p.h, cs-config.h,
4772         cs-hconfig.h, cs-tconfig.h, cs-tm_p.h): New rules.
4773         (all .o): Add dependencies on $(HCONFIG_H), $(TCONFIG_H),
4774         $(TM_P_H), etc. as appropriate.
4775
4776         * config.gcc: Zap references to deleted files.
4777         * ggc-none.c: Don't include rtl.h or tm_p.h.
4778
4779         * config/i386/xm-beos.h, config/i386/xm-dgux.h,
4780         config/i386/xm-djgpp.h, config/i386/xm-dos.h,
4781         config/i386/xm-gnu.h, config/i386/xm-i386-interix.h,
4782         config/i386/xm-linux.h, config/i386/xm-linux.h,
4783         config/i386/xm-next.h, config/i386/xm-openbsd.h,
4784         config/i386/xm-sun.h, config/i386/xm-sysv3.h:
4785         Don't include i386/xm-i386.h.
4786
4787         * config/elxsi/xm-elxsi.h, config/i386/xm-bsd386.h,
4788         config/i386/xm-i386.h, config/i860/xm-i860.h,
4789         config/i960/xm-i960.h, config/mcore/xm-mcore.h,
4790         config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
4791         config/pj/xm-pj.h, config/sh/xm-sh.h, config/v850/xm-v850.h:
4792         Delete (empty except comments, #includes of other deleted
4793         files, and macros used nowhere).
4794
4795 Fri Mar  9 20:05:27 CET 2001  Jan Hubicka  <jh@suse.cz>
4796
4797         * i386.h (MAX_WCHAR_TYPE_SIZE): New constant to keep tradcpp
4798         independent on TARGET_FLAGS.
4799
4800 Fri Mar  9 19:52:52 CET 2001  Jan Hubicka  <jh@suse.cz>
4801
4802         * i386.h (FIRST_PSEUDO_REGISTER): Set to 53.
4803
4804         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ONES): Add
4805         extended ones.
4806         (CONDITIONAL_REGISTER_USAGE): Set proper values according to
4807         TARGET_64BIT.
4808         (FIRST_REX_INT_REG, LAST_REX_INT_REG, FIRST_REX_SSE_REG,
4809         LAST_REX_SSE_REG): define.
4810         (enum reg_class): Add 'LEGACY_REGS'
4811         (REG_CLASS_CONTENTS): Likewise; add extended registers.
4812         (SSE_REGNO_P): Recognize extended registers.
4813         (ANY_QI_REG_P, REX_INT_REGNO_P, REX_INT_REG_P): New.
4814         (REG_CLASS_FROM_LETTER): Add 'R' and 'Q'.
4815         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P,
4816         REG_OK_FOR_BASE_NONSTRICT_P): Recognize REX registers.
4817         (REG_OK_FOR_STRREG_NONSTRICT_P, REG_OK_FOR_STRREG_STRICT_P,
4818          REG_OK_FOR_STRREG_P): Remove.
4819         (HI_REGISTER_NAMES): Add extended registers.
4820         (ADDITIONAL_REGISTER_NAMES): Likewise.
4821         (QI_REGISTER_NAMES): Add 8bit extended registers.
4822         (DEBUG_REG): Support extended registers.
4823         * i386.c (regclass_map): Add extended registers.
4824         (dbx_register-map): Likewise.
4825         (svr4_dbx_register_map): Likewise.
4826         (print_reg): Support extended registers.
4827         (print_operand): Support 64bit operands.
4828
4829 Fri Mar  9 19:37:46 CET 2001  Jan Hubicka  <jh@suse.cz>
4830
4831         * i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 128bit for x86_64
4832         (BOOL_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE,
4833          FLOAT_TYPE_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE,
4834          DOUBLE_TYPE_SIZE, LONG_LONG_TYPE_SIZE): New constants.
4835         (BITS_PER_WORD, UNITS_PER_WORD, POINTER_SIZE, PARM_BOUNDARY,
4836          STACK_BOUNDARY): Set properly for 64bits.
4837         (MAX_BITS_PER_WORD, MIN_UNITS_PER_WORD): New constants.
4838         (EMPTY_FIELD_BOUNDARY): Define using BITS_PER_WORD.
4839         (BIGGEST_FIELD_ALIGNMENT): Set to 128 for 64bits.
4840         (MOVE_MAX): Set to 16.
4841         (MOVE_MAX_PIECES): 8 for 64bit.
4842         (Pmode): Set to SImode.
4843
4844 Fri Mar  9 09:00:36 2001  Mike Stump  <mrs@wrs.com>
4845
4846         * cselib.c (hash_rtx): Ensure that hash isn't zero upon return.
4847
4848 Fri Mar  9 17:38:08 CET 2001  Jan Hubicka  <jh@suse.cz>
4849
4850         * i386.h (mask_64bit): New constant.
4851         (target_64bit): New macro.
4852         (target_options): Add '64'/'32'
4853         (target_default): Define.
4854         * cygwin.h freebsd-aout.h i386-interix.h i386.h i386elf.h isc.h
4855         isccoff.h netbsd.h next.h openbsd.h p sco.h sco5.h scodbx.h sequent.h
4856         unix.h win32.h (TARGET_DEFAULT): Rename to TARGET_SUBTARGET_DEFAULT.
4857
4858 Thu Mar  8 23:36:56 2001  Jeffrey A Law  (law@cygnus.com)
4859
4860         * config/pa/som.h (MAKE_DECL_ONE_ONLY, ASM_WEAKEN_LABEL): Disable.
4861
4862 Thu Mar  8 23:29:37 2001  John Wehle  (john@feith.com)
4863
4864         * rtlanal.c (rtx_varies_p): Check operand 0 of a
4865         LO_SUM unless for_alias is set.
4866
4867 2001-03-08  Stan Shebs  <shebs@apple.com>
4868
4869         * objc/objc-act.c: Fix old typos in comments, add comments for
4870         various functions.
4871         (hash_init): Fix file name in error message.
4872         (hash_enter): Ditto.
4873         (hash_add_attr): Ditto.
4874         (continue_class): Ditto.
4875
4876 2001-03-08  Bruce Korb  <bkorb@gnu.org>
4877
4878         gcc.c(main): ensure SIGCHLD handling is set to SIG_DFL so that
4879         wait4() can receive the signal.
4880
4881 Thu Mar  8 21:09:10 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4882
4883         * fixinc/inclhack.def (AAB_dgux_int_varargs): Don't use HTML
4884         entities.
4885         * fixinc/fixincl.x: Regenerate.
4886
4887 Thu Mar  8 21:09:10 2001  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4888
4889         * fixinc/inclhack.def (AAA_standards): Undo <standards.h> breakage
4890         on Tru64 UNIX.
4891         * fixinc/fixincl.x: Regenerate.
4892
4893 2001-03-08  Richard Henderson  <rth@redhat.com>
4894
4895         * configure.in (HAVE_AS_LEB128): New assembler check.
4896         * configure, config.in: Rebuilt.
4897
4898 Thu Mar  8 19:54:04 CET 2001  Jan Hubicka  <jh@suse.cz>
4899
4900         * reg-stack.c (move_for_stack_reg): Avoid non-poping fst for
4901         TFmode too.
4902
4903 2001-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4904
4905         * config/ns32k/xm-pc532-min.h, config/we32k/xm-we32k.h: Delete
4906         references to the MAXPATHLEN macro.
4907
4908         * config/alpha/xm-alpha.h, config/arm/xm-arm.h,
4909         config/i386/xm-cygwin.h, config/xm-linux.h: Delete references to
4910         the POSIX macro.
4911
4912         * config/i386/xm-gnu.h, config/xm-gnu.h,
4913         config/alpha/xm-openbsd.h, config/i386/xm-openbsd.h,
4914         config/m68k/xm-openbsd.h, config/mips/xm-openbsd.h,
4915         config/sparc/xm-openbsd.h, config/xm-openbsd.h: Delete empty
4916         and/or unused files.
4917
4918         * config.gcc: Define POSIX in xm_defines as appropriate in lieu of
4919         doing so in various xm-*.h files.
4920
4921 Thu Mar  8 06:32:50 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4922
4923         * config/i386/i386.md (clrstrsi): Call ix86_set_move_mem_attrs.
4924
4925 2001-03-08  Alexandre Oliva  <aoliva@redhat.com>
4926
4927         * configure.in (enable_shared): Support per-package shared-library
4928         enabling.
4929         * configure: Rebuilt.
4930
4931 2001-03-07  David Edelsohn  <edelsohn@gnu.org>
4932
4933         * rs6000.md (cr logic): Add original POWER mnemonic alternative
4934         for crnot.  Set operands[5] in splitter.
4935
4936 2001-03-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4937
4938         * config/i370/xm-mvs.h, config/i370/xm-oe.h,
4939         config/i386/xm-beos.h, config/i386/xm-mingw32.h,
4940         config/m88k/xm-m88k.h, config/mips/xm-iris6.h,
4941         config/mips/xm-openbsd.h, config/pa/xm-pa64hpux.h,
4942         config/pa/xm-pahpux.h, config/rs6000/xm-beos.h,
4943         config/rs6000/xm-darwin.h, config/rs6000/xm-mach.h,
4944         config/rs6000/xm-rs6000.h, config/xm-interix.h: Delete references
4945         to the USG macro.
4946
4947         * config/vax/xm-vaxv.h, config/a29k/xm-unix.h,
4948         config/i370/xm-i370.h, config/i386/xm-dgux.h,
4949         config/i386/xm-sun.h, config/i386/xm-sysv3.h,
4950         config/m68k/xm-tower.h, config/m68k/xm-aux.h,
4951         config/m68k/xm-hp320.h, config/m68k/xm-amix.h,
4952         config/m68k/xm-altos3068.h, config/m68k/xm-mot3300.h,
4953         config/m68k/xm-m68kv.h, config/m88k/xm-openbsd.h,
4954         config/mips/xm-nws3250v4.h, config/mips/xm-sysv.h,
4955         config/mips/xm-iris3.h, config/mips/xm-iris4.h, config/xm-svr3.h,
4956         config/xm-svr4.h, config/sparc/xm-pbd.h, config/clipper/xm-clix.h:
4957         Delete unused and/or empty files.
4958
4959         * config.gcc: Define USG in xm_defines as appropriate.  Define
4960         POSIX in lieu of xm-svr4.h.  Delete all references to the SVR3
4961         macro.  Remove deleted xm-* files from $xm_files variable.
4962
4963 2001-03-07  Tom Tromey  <tromey@redhat.com>
4964
4965         * configure: Rebuilt.
4966         * configure.in: Allow config-lang.in to set `lang_requires' to list
4967         of other required languages.
4968
4969 2001-03-07  Andrew MacLeod  <amacleod@redhat.com>
4970
4971         * config/a29k/a29k.c (print_operand): Free a29k_last_prologue_insn
4972         after its emitted.
4973         (output_prologue): Use xmalloc not oballoc.
4974         (output_epilog): Free a29k_first_epilogue_insn when finished.
4975         * confif/a29k/a29k.h (PREDICATE_CODES): Remove shift_constant_operand.
4976
4977 2001-03-07  Brad Lucier  <lucier@math.purdue.edu>
4978
4979         * builtins.c (expand_builtin_mathfn): Check
4980         flag_unsafe_math_optimizations, not flag_fast_math.
4981         (expand_builtin): Likewise
4982         * combine.c (combine_simplify_rtx): Likewise.
4983         (simplify_if_then_else): Likewise.
4984         * cse.c (fold_rtx): Likewise.
4985         * flags.h: Remove flag_fast_math.  Add
4986         flag_unsafe_math_optimizations and flag_trapping_math.
4987         * fold-const.c (negate_expr): Check
4988         flag_unsafe_math_optimizations, not flag_fast_math.
4989         (invert_truthvalue): Likewise.
4990         (fold): Likewise.  Before associating operands, check that
4991         code == MULT_EXPR, not code != MULT_EXPR.
4992         * ifcvt.c (noce_try_minmax): Check
4993         flag_unsafe_math_optimizations, not flag_fast_math.
4994         (noce_operand_ok): Check flag_trapping_math, not flag_fast_math.
4995         * invoke.texi: Document -funsafe-math-optimizations and
4996         -fno-trapping-math.  Change documentation for -ffast-math.
4997         * jump.c (reversed_comparison_code_parts): Likewise.
4998         (rtx_equal_for_thread_p): Likewise.
4999         * optabs.c (emit_conditional_move): Likewise.
5000         * simplify-rtx.c (simplify_binary_operation): Likewise.
5001         (simplify_relational_operation): Likewise.
5002         (simplify_ternary_operation): Likewise.
5003         * toplev.c: Remove flag_fast_math.  Add flag_trapping_math and
5004         flag_unsafe_math_optimizations.  Remove fast-math entry from f_options.
5005         Add trapping-math and unsafe-math-optimizations entries to f_options.
5006         (set_fast_math_flags): New, sets flags for -ffast-math.
5007         (set_no_fast_math_flags): New, sets flags for -fno-fast-math.
5008         (decode_f_option): Add code to handle -ffast-math and -fno-fast-math.
5009         * toplev.h: Declare set_fast_math_flags and set_no_fast_math_flags.
5010
5011         * config/alpha/alpha.c (alpha_emit_conditional_branch): Likewise.
5012         (alpha_emit_conditional_move): Initialize local_fast_math to
5013         flag_unsafe_math_optimizations, not flat_fast_math.
5014         * config/c4x/c4x.c (c4x_override_options): Call set_fast_math_flags
5015         instead of setting flag_fast_math to 1.
5016         * config/convex/convex.md: Check flag_unsafe_math_optimizations,
5017         not flag_fast_math.
5018         * config/i386/i386.c (override_options): Likewise
5019         * config/i386/i386.md: Likewise.
5020         * config/m68k/m68k.md: Likewise.
5021         * config/mips/mips.md: Likewise.
5022         * config/rs6000/rs6000.c (validate_condition_mode): Likewise.
5023         (rs6000_generate_compare): Likewise.
5024
5025 2001-03-07  Laurynas Biveinis  <lauras@softhome.net>
5026
5027         * Makefile.in: Set RANLIB to @RANLIB@.
5028         Remove RANLIB_TEST.
5029
5030 2001-03-07  Laurynas Biveinis  <lauras@softhome.net>
5031
5032         * fixinc/inclhack.def (djgpp_wchar_h): New test.
5033         * fixinc/fixincl.x: Regenerated.
5034
5035 2001-03-07  Richard Henderson  <rth@redhat.com>
5036
5037         * config/alpha/alpha.md (call_osf_1_noreturn): New pattern.
5038
5039 2001-03-07  Richard Henderson  <rth@redhat.com>
5040
5041         * emit-rtl.c (remove_unnecessary_notes): Verify proper nesting
5042         of block notes and exception handling notes.
5043
5044         * lists.c (init_EXPR_INSN_LIST_cache): Don't check initialized.
5045         * toplev.c (rest_of_compilation): Call init_EXPR_INSN_LIST_cache ...
5046         (compile_file): ... here.
5047
5048 2001-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5049
5050         * fixinc/Makefile.in (FIXINC_DEFS): Add -DHAVE_CONFIG_H.
5051
5052         * fixinc/gnu-regex.c: Don't include auto-host.h since we get
5053         config.h now.  Include libiberty.h to handle alloca.
5054
5055 2001-03-06  Zack Weinberg  <zackw@stanford.edu>
5056
5057         * c-parse.in (yylexname): New function, split out of _yylex.
5058         (objc_rid_sans_at): New table.
5059         (init_reswords): Initialize it.
5060         (_yylex): Give labels clearer names.  Handle CPP_ATSIGN by
5061         retrieving the next token and checking it for significance as
5062         an ObjC keyword or string constant.
5063
5064         * cpplex.c (_cpp_lex_token): Just return CPP_ATSIGN for '@'.
5065         * cpplib.h (TTYPE_TABLE): Add CPP_ATSIGN, drop CPP_OSTRING.
5066
5067         * c-lex.c, c-parse.in, cppmacro.c, cpplex.c: Remove references
5068         to CPP_OSTRING.
5069
5070 2001-03-06  Stephen L Moshier  <moshier@mediaone.net>
5071
5072         * config/m68k/m68k.c (const_uint32_operand): Accept any
5073         const_int on a 32-bit host.
5074
5075 2001-03-06  Nicola Pero  <n.pero@mi.flashnet.it>
5076
5077         * objc/objc-act.c (init_objc): Set save_lang_status,
5078         restore_lang_status, and mark_lang_status.
5079
5080 2001-03-06  Krister Walfridsson  <cato@df.lth.se>
5081
5082         * dwarf2asm.c (dw2_asm_output_delta): Fix smallest_mode_for_size call.
5083
5084 2001-03-06  Neil Booth  <neil@daikokuya.demon.co.uk>
5085
5086         * cppinternals.texi: Update.
5087
5088 2001-03-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5089
5090         * config/a29k/xm-a29k.h, config/a29k/xm-unix.h,
5091         config/alpha/xm-alpha.h, config/arc/xm-arc.h, config/arm/xm-arm.h,
5092         config/c4x/xm-c4x.h, config/clipper/xm-clix.h,
5093         config/convex/xm-convex.h, config/d30v/xm-d30v.h,
5094         config/dsp16xx/xm-dsp16xx.h, config/elxsi/xm-elxsi.h,
5095         config/h8300/xm-h8300.h, config/i370/xm-i370.h,
5096         config/i370/xm-linux.h, config/i370/xm-mvs.h, config/i370/xm-oe.h,
5097         config/i386/xm-i386.h, config/i860/xm-i860.h,
5098         config/i960/xm-i960.h, config/ia64/xm-ia64.h,
5099         config/m32r/xm-m32r.h, config/m68k/xm-m68k.h,
5100         config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
5101         config/mips/xm-mips.h, config/mn10200/xm-mn10200.h,
5102         config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
5103         config/pa/xm-linux.h, config/pa/xm-pa.h, config/pa/xm-pa64hpux.h,
5104         config/pa/xm-pahpux.h, config/pa/xm-papro.h, config/pj/xm-pj.h,
5105         config/romp/xm-romp.h, config/rs6000/xm-beos.h,
5106         config/rs6000/xm-lynx.h, config/rs6000/xm-rs6000.h,
5107         config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
5108         config/sparc/xm-sparc.h, config/sparc/xm-sysv4.h,
5109         config/v850/xm-v850.h, config/vax/xm-vax.h, config/vax/xm-vms.h,
5110         config/we32k/xm-we32k.h: Delete HOST_BITS_PER_* definitions which
5111         match the defaults provided in hwint.h.
5112
5113         * config/i386/xm-lynx.h, config/m68k/xm-lynx.h,
5114         config/sparc/xm-lynx.h, config/xm-std32.h: Delete files.
5115
5116         * config.gcc (xm_file): Don't set to files which are deleted.
5117
5118         * hwint.h: Provide default values for HOST_BITS_PER_*.  No longer
5119         guard this file against these macros being undefined.
5120
5121 2001-03-06  Zack Weinberg  <zackw@stanford.edu>
5122
5123         * objc/objc-act.c (objc_add_static_instance): Set DECL_INITIAL
5124         and DECL_DEFER_OUTPUT on the decl we create, before calling
5125         rest_of_decl_compilation.
5126
5127 2001-03-06  Zack Weinberg  <zackw@stanford.edu>
5128
5129         * aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
5130         AC_FUNC_ALLOCA.
5131         * configure, config.in: Regenerate.
5132         * config.gcc: Remove references to deleted files.
5133
5134         * genattr.c, genattrtab.c, genextract.c, genoutput.c,
5135         genrecog.c, rtl.c: Do not use alloca anywhere.
5136
5137         * Makefile.in, build-make, system.h, config/x-interix,
5138         config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
5139         config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
5140         config/arc/xm-arc.h, config/arm/xm-arm.h,
5141         config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
5142         config/h8300/xm-h8300.h, config/i370/x-oe,
5143         config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
5144         config/i386/x-ncr3000, config/i386/x-sco5,
5145         config/i386/xm-dgux.h, config/i860/x-sysv4,
5146         config/i960/xm-i960.h, config/m32r/xm-m32r.h,
5147         config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
5148         config/m68k/x-hp320g, config/m69k/x-mot3300,
5149         config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
5150         config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
5151         config/m68k/xm-mot3300.h, config/m88k/x-dolph,
5152         config/m88k/x-sysv4, config/m88k/x-tekXD88,
5153         config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
5154         config/mips/x-iris, config/mips/x-iris3,
5155         config/mips/x-sni-svr4, config/mips/x-sysv,
5156         config/mips/xm-iris6.h, config/mips/xm-mips.h,
5157         config/mips/xm-nws3250v4.h, config/pa/x-hpux,
5158         config/pa/x-pa-mpeix, config/pa/xm-pa.h,
5159         config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
5160         config/pa/xm-papro.h, config/romp/xm-romp.h,
5161         config/rs6000/x-aix31, config/rs6000/x-aix41,
5162         config/rs6000/x-beos, config/rs6000/x-lynx,
5163         config/rs6000/x-mach, config/rs6000/x-rs6000,
5164         config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
5165         config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
5166         config/sparc/x-sysv4, config/sparc/xm-linux.h,
5167         config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
5168         config/vax/xm-vms.h: Eradicate all references to alloca and
5169         related stuff.
5170
5171         * config/xm-alloca.h, config/clipper/x-clix,
5172         config/i386/xm-sysv4.h, config/i860/x-fx2800,
5173         config/i860/x-sysv3, config/m88k/x-sysv3,
5174         config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
5175         (contained only alloca related hacks).
5176
5177         * config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
5178         USE_C_ALLOCA.
5179
5180 2001-03-05  Brad Lucier  <lucier@math.purdue.edu>
5181
5182         * invoke.texi: Document __FAST_MATH__.
5183
5184 2001-03-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5185
5186         * crtstuff.c: Restore include of auto-host.h.
5187
5188 2001-03-05  Fergus Henderson  <fjh@cs.mu.oz.au>
5189
5190         Put main() in a separate file, so that the language
5191         front-end can use a different main().
5192
5193         * main.c: New.
5194         * toplev.c: (main): Rename as toplev_main.
5195         * toplev.h: Declare toplev_main.
5196         * Makefile.in (OBJS): add toplev.o.
5197           (BACKEND): remove toplev.o, add main.o.
5198
5199 2001-03-04  Neil Booth  <neil@daikokuya.demon.co.uk>
5200
5201         * cppfiles.c (search_from): Special case the empty string.
5202
5203 2001-03-04  Neil Booth  <neil@daikokuya.demon.co.uk>
5204
5205         * cppfiles.c (_cpp_execute_include): Don't make a null-terminated
5206         copy of the filename.  Don't use CPP_PREV_BUFFER.  Don't call
5207         strlen or strcpy; we already know the length.
5208         (_cpp_compare_file_date): Similarly.
5209         * cpphash.h (struct cpp_reader): Delete done_initialising.
5210         (CPP_PREV_BUFFER): Delete.
5211         * cppinit.c (cpp_start_read): Don't set done_initialising.
5212         * cpplex.c (parse_string): Guarantee null-termination.
5213         (_cpp_equiv_toklists): Remove.
5214         * cpplib.c (glue_header_name): Null-terminate.
5215         (do_line): Don't leak memory.
5216         * cpplib.h (BT_WEAK): Delete.
5217         * cppmain.c (cb_ident): Strings are now null-terminated.
5218
5219 2001-03-04  Laurynas Biveinis  <lauras@softhome.net>
5220
5221         * gcc.c (convert_filename): Append executable suffix
5222         if NO_AUTO_EXE_SUFFIX is not defined.
5223         * gcc.texi: Document NO_AUTO_EXE_SUFFIX.
5224         * config/i386/djgpp.h: Define NO_AUTO_EXE_SUFFIX.
5225
5226 2001-03-03  David O'Brien  <obrien@FreeBSD.org>
5227
5228         from 2000-09-06  Zack Weinberg  <zack@wolery.cumb.org>
5229         * c-parse.gperf, c-gperf.h: Delete.
5230         (c-gperf.h was accidently re-added to the CVS repo in the rev
5231         1.16 commit by tromey)
5232
5233 2001-03-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5234
5235         * cpplex.c (_cpp_lex_token): Don't warn about directives in
5236         macro arguments when looking for the '('.
5237         * cppmacro.c (funlike_invocation_p): Set parsing_args to
5238         2 when really parsing arguments; 1 when looking for '('.
5239         Always restore the lexer position.
5240
5241 2001-03-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5242
5243         * longlong.h (umul_ppmm): Don't use a multiline string.
5244
5245 2001-03-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5246
5247         * fixinc/fixlib.h (t_bool): Add identifier `t_bool' in typedef.
5248         * fixinc/server.c (read_pipe_timeout): Use enum t_bool instead of
5249         t_bool in declaration because pcc can't combine volatile with typedef
5250         types.
5251
5252 Sat Mar  3 19:47:13 CET 2001  Jan Hubicka  <jh@suse.cz>
5253
5254         * i386.c (ix86_expand_fp_compare): Delay creating of scratch register
5255         until when it is really needed.
5256         (ix86_expand_compare): Update call of ix86_expand_fp_compare.
5257         * i386.h (PREDICATE_CODES): Add all codes for sse_comparison_operator
5258         * i386.md (float?i?f splitter): Don't force source operand to memory
5259         for SSE.
5260         (sse_movdfcc): Fix constraint.
5261         (sse_movdfcc splitter): Handle properly the second alternative.
5262
5263 2001-03-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5264
5265         * cpplex.c (parse_string): Unconditionally pedwarn.
5266
5267 2001-03-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5268
5269         * cpp.texi: Update.
5270         * cppexp.c (parse_number): Update.
5271         * cpplex.c (parse_string): Pedwarn if multiline string does not
5272         result from a system header's macro.
5273         * cpplib.h (sys_objmacro_p): Rename sys_macro_p.
5274         * cppmacro.c (sys_objmacro_p): Rename sys_macro_p.  Return true
5275         for function-like macros too.
5276         * c-lex.c (lex_number): Update.
5277
5278 2001-03-03  Richard Henderson  <rth@redhat.com>
5279
5280         * dwarf2out.c (output_call_frame_info): Fix augmentation length.
5281
5282 Sat Mar  3 04:17:17 2001  J"orn Rennecke <amylaar@redhat.com>
5283
5284         * combine.c (try_combine): If split with mode-changed scratch
5285         register didn't work, try the original mode.
5286
5287 Sat Mar  3 03:46:47 2001  J"orn Rennecke <amylaar@redhat.com>
5288
5289         * tm.texi: Change STRUCT_FORCE_BLK to MEMBER_TYPE_FORCES_BLK.
5290         * config/c4x/c4x.h: Likewise.
5291         * stor-layout.c (compute_record_mode): Likewise.
5292         (layout_type, case ARRAY_TYPE): Use MEMBER_TYPE_FORCES_BLK.
5293
5294 2001-03-02  Zack Weinberg  <zackw@stanford.edu>
5295
5296         * configure.in: Kill tm.h.  Include the files in the $tm_file
5297         list in all three of config.h, hconfig.h, tconfig.h, after the
5298         relevant set of xm_files.  Put TARGET_CPU_DEFAULT in all
5299         three, include insn-codes.h in all three (#ifndef GENERATOR_FILE).
5300         * configure: Regenerate.
5301         * Makefile.in (clean): Don't delete tm.h.
5302
5303         * system.h: If SUCCESS_EXIT_CODE and FATAL_EXIT_CODE are not
5304         defined, set them from EXIT_SUCCESS and EXIT_FAILURE.  If
5305         those are not defined, set SEC and FEC to 0 and 1.
5306         * gcc.texi: Update to match.
5307
5308         * crtstuff.c: Include tconfig.h, not auto-host.h and tm.h.
5309         * config/fp-bit.c, config/m68k/aux-crt2.asm,
5310         config/m68k/aux-crtn.asm, config/m68k/aux-mcount.c:
5311         Include tconfig.h, not tm.h.
5312
5313         * config/xm-lynx.h, config/xm-std32.h,
5314         config/a29k/xm-a29k.h, config/a29k/xm-unix.h,
5315         config/alpha/xm-alpha.h, config/arc/xm-arc.h,
5316         config/avr/xm-avr.h, config/c4x/xm-c4x.h,
5317         config/clipper/xm-clix.h, config/convex/xm-convex.h,
5318         config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
5319         config/elxsi/xm-elxsi.h, config/fr30/xm-fr30.h,
5320         config/h8300/xm-h8300.h, config/i370/xm-linux.h,
5321         config/i386/xm-i386.h, config/i860/xm-i860.h,
5322         config/i960/xm-i960.h, config/ia64/xm-ia64.h,
5323         config/m32r/xm-m32r.h, config/m68hc11/xm-m68hc11.h,
5324         config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
5325         config/mips/xm-mips.h, config/mn10200/xm-mn10200.h,
5326         config/mn10300/xm-mn10300.h, config/ns32k/xm-ns32k.h,
5327         config/pa/xm-linux.h, config/pa/xm-pa.h,
5328         config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
5329         config/pa/xm-papro.h, config/pdp11/xm-pdp11.h,
5330         config/pj/xm-pj.h, config/romp/xm-romp.h,
5331         config/rs6000/xm-beos.h, config/rs6000/xm-rs6000.h,
5332         config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
5333         config/sparc/xm-sparc.h, config/sparc/xm-sysv4.h,
5334         config/v850/xm-v850.h, config/vax/xm-vax.h,
5335         config/we32k/xm-we32k.h:
5336         Don't include tm.h.
5337         Don't define SUCCESS_EXIT_CODE or FATAL_EXIT_CODE.
5338
5339         * config/i370/xm-i370.h, config/i370/xm-mvs.h,
5340         config/i370/xm-oe.h: Don't include tm.h.  Don't define
5341         SUCCESS_EXIT_CODE.
5342         * config/vax/xm-vms.h: Don't include tm.h.
5343
5344         * config/xm-lynx.h, config/avr/xm-avr.h,
5345         config/fr30/xm-fr30.h, config/pdp11/xm-pdp11.h,
5346         Delete; made empty by above changes.
5347         * config/i386/xm-lynx.h, config/m68k/xm-lynx.h,
5348         config/rs6000/xm-lynx.h, config/sparc/xm-lynx.h:
5349         Don't include config/xm-lynx.h or tm.h.
5350
5351         * config/xm-gnu.h: Don't include fcntl.h.
5352         * config/sparc/xm-lynx.h: Don't include sys/types.h and
5353         sys/wait.h.
5354         * config/clipper/xm-clix.h, config/vax/xm-vax.h: Don't define isinf.
5355
5356 2001-03-02  Richard Henderson  <rth@redhat.com>
5357
5358         * tm.texi (File Framework): Document UNALIGNED_SHORT_ASM_OP,
5359         UNALIGNED_INT_ASM_OP, and UNALIGNED_DOUBLE_INT_ASM_OP.
5360
5361 2001-03-02  Richard Henderson  <rth@redhat.com>
5362
5363         * Makefile.in (OBJS): Add dwarf2asm.o.
5364         * dwarf2asm.c, dwarf2asm.h: New files.
5365         * dwarf2out.c (*): Use them.
5366         (size_of_uleb128, size_of_sleb128): Remove.
5367         (output_uleb128, output_sleb128): Remove.
5368         (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP): Remove.
5369         (UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Remove.
5370         (UNALIGNED_OFFSET_ASM_OP, UNALIGNED_WORD_ASM_OP): Remove.
5371         (FDE_LABEL, LINE_NUMBER_BEGIN_LABEL, LINE_NUMBER_END_LABEL): New.
5372         (ASM_OUTPUT_DWARF_DATA1, ASM_OUTPUT_DWARF_DELTA1): Remove.
5373         (ASM_OUTPUT_DWARF_DATA2, ASM_OUTPUT_DWARF_DELTA2): Remove.
5374         (ASM_OUTPUT_DWARF_DATA4, ASM_OUTPUT_DWARF_DELTA4): Remove.
5375         (ASM_OUTPUT_DWARF_DATA, ASM_OUTPUT_DWARF_DELTA): Remove.
5376         (ASM_OUTPUT_DWARF_ADDR, ASM_OUTPUT_DWARF_ADDR_DATA): Remove.
5377         (ASM_OUTPUT_DWARF_ADDR_DELTA, ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
5378         (ASM_OUTPUT_DWARF_OFFSET4, ASM_OUTPUT_DWARF_OFFSET): Remove.
5379         (ASM_OUTPUT_DWARF_CONST_DOUBLE): Remove.
5380         (ASM_OUTPUT_DWARF_NSTRING, ASM_OUTPUT_DWARF_STRING): Remove.
5381         (dwarf2out_frame_debug): Remove unused variables.
5382         (output_loc_operands): Don't abort on 8 byte constants if
5383         host integers are wide enough.
5384         (output_symbolic_ref): Remove.
5385         (size_of_die): Don't assume 4 byte host integers.
5386         (output_line_info): Use ASM_GENERATE_INTERNAL_LABEL for begin
5387         and end labels.
5388         (add_const_value_attribute) [CONST_INT]: Verify we're not doing
5389         something stupid with HOST_WIDE_INT to long truncation.
5390         [CONST_DOUBLE]: Likewise.
5391
5392         * config/arm/conix-elf.h (UNALIGNED_WORD_ASM_OP): Remove.
5393         (ASM_OUTPUT_DWARF2_ADDR_CONST, ASM_OUTPUT_DWARF_ADDR_CONST): Remove.
5394         * config/arm/unknown-elf.h: Likewise.
5395         * config/rs6000/aix.h (UNALIGNED_SHORT_ASM_OP): New.
5396         (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): New.
5397         (ASM_OUTPUT_DWARF_ADDR_VAR, ASM_OUTPUT_DWARF_DELTA_VAR): Remove.
5398         (ASM_OUTPUT_DWARF_DELTA2, ASM_OUTPUT_DWARF_DELTA4): Remove.
5399         (ASM_OUTPUT_DWARF_DELTA, ASM_OUTPUT_DWARF_ADDR_DELTA): Remove.
5400         (ASM_OUTPUT_DWARF_ADDR, ASM_OUTPUT_DWARF_DATA4): Remove.
5401         (ASM_OUTPUT_DWARF_DATA2, ASM_OUTPUT_DWARF_OFFSET4): Remove.
5402         (ASM_OUTPUT_DWARF_OFFSET): Remove.
5403         * config/rs6000/sysv4.h (ASM_OUTPUT_DWARF_ADDR): Remove.
5404         * config/sparc/sp64-elf.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
5405         (UNALIGNED_LONGLONG_ASM_OP, ASM_OUTPUT_DWARF_ADDR): Remove.
5406         (ASM_OUTPUT_DWARF_ADDR_CONST, ASM_OUTPUT_DWARF_REF): Remove.
5407
5408 2001-03-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5409
5410         * cselib.c (hash_rtx): Cast enums to unsigned int.
5411
5412 2001-03-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5413
5414         * print-rtl.c (print_rtx): Cast enums to int for comparison.
5415         * c-decl.c (grokdeclarator): Cast enums to int for comparison and
5416         shifts.
5417         * c-format.c (C_STD_VER): Cast to int for comparisons.
5418         (check_function_format): Cast various enums to int for &.
5419         (maybe_read_dollar_number): Likewise.
5420         (check_format_info): Likewise.
5421         (check_format_info_main): Likewise.
5422         * expr.c (emit_move_insn_1): Cast enums to unsigned int for comparison.
5423         (safe_from_p): Likewise.
5424         * varasm.c (const_hash): Cast enum to int for %.
5425         * emit-rtl.c (init_emit_once): Use int loop variable to work around
5426         pcc enum problems with < and ++ operators.
5427         * regclass.c (init_reg_sets_1): Cast enums for comparison.
5428         (choose_hard_reg_mode): Use unsigned int to iterate over CCmodes.
5429         (regclass_init): Change enum class to int to iterate over reg_classes.
5430         * genrecog.c (merge_trees): Cast enums for comparison.
5431         * rtl.h (GET_CODE): Cast to enum rtx_code.
5432         (PUT_CODE): Cast to ENUM_BITFIELD(rtx_code).
5433         (GET_MODE): Cast to enum machine_mode.
5434         (PUT_MODE): Cast to ENUM_BITFIELD(machine_mode).
5435         (GET_NOTE_INSN_NAME): Cast enum to int.
5436         * tree.h (TREE_CODE): Cast to enum tree_code.
5437         (TREE_SET_CODE): Cast VALUE to ENUM_BITFIELD(tree_code).
5438         * timevar.c (timevar_print): Change loop variable id from enum to
5439         unsigned int.
5440         * fixinc/fixincl.c (VLEVEL): Cast enums in comparison to unsigned int.
5441         * config/i386/i386.md: Use PUT_MODE for mode assignment.
5442         * toplev.c (compile_file): Cast enum DFI to int.
5443         (decode_d_option): Likewise.
5444
5445 Fri Mar  2 12:18:13 2001  Christopher Faylor <cgf@cygnus.com>
5446
5447         * cppinit.c (append_include_chain): Mark "after" include file name list
5448         as a system directory.
5449         * cpp.texi: Document new behavior.
5450
5451 Fri Mar  2 11:59:43 CET 2001  Jan Hubicka  <jh@suse.cz>
5452
5453         * ifcvt.c (noce_operand_ok): Handle properly unarry operations.
5454
5455 2001-03-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5456
5457         * cppfiles.c (struct include_file): Update.
5458         (stack_include_file): Use search_from.
5459         (cpp_included, find_include_file): Update.
5460         (cpp_execute_include): Update.  ptr->name may not be
5461         null terminated.  Use the new search_from member variable
5462         of cpp_buffer.
5463         (_cpp_compare_file_date): Similarly.
5464         (search_from): New function, similiar to actual_directory.
5465         (actual_directory): Delete.
5466         (remap_filename): Update.  loc->name may not be null terminated.
5467         (struct file_name_list): Rename search_path.  Update.
5468         * cpphash.h (struct cpp_buffer): Delete actual_dir.  New members
5469         search_from and dir.
5470         (struct cpp_reader): Remove actual_dirs.
5471         * cppinit.c (struct cpp_pending): Update for renamed objects.
5472         (append_include_chain, remove_dup_dir, remove_dup_dirs,
5473         merge_include_chains, cpp_destroy, cpp_start_read): Similarly.
5474         * cpplib.h (struct cpp_options): Similarly.
5475
5476 2001-03-01  Zack Weinberg  <zackw@stanford.edu>
5477
5478         * config/xm-lynx.h, config/xm-std32.h, config/a29k/xm-a29k.h,
5479         config/a29k/xm-unix.h, config/alpha/xm-alpha.h,
5480         config/arc/xm-arc.h, config/arm/xm-arm.h, config/c4x/xm-c4x.h,
5481         config/clipper/xm-clix.h, config/convex/xm-convex.h,
5482         config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
5483         config/elxsi/xm-elxsi.h, config/fr30/xm-fr30.h,
5484         config/h8300/xm-h8300.h, config/i370/xm-i370.h,
5485         config/i370/xm-linux.h, config/i370/xm-mvs.h,
5486         config/i370/xm-oe.h, config/i386/xm-aix.h,
5487         config/i386/xm-i386.h, config/i386/xm-osf.h,
5488         config/i860/xm-i860.h, config/i960/xm-i960.h,
5489         config/ia64/xm-ia64.h, config/m32r/xm-m32r.h,
5490         config/m68k/xm-m68k.h, config/m88k/xm-m88k.h,
5491         config/mcore/xm-mcore.h, config/mips/xm-mips.h,
5492         config/mn10200/xm-mn10200.h, config/mn10300/xm-mn10300.h,
5493         config/ns32k/xm-ns32k.h, config/pa/xm-linux.h,
5494         config/pa/xm-pa.h, config/pa/xm-pa64hpux.h,
5495         config/pa/xm-pahpux.h, config/pa/xm-papro.h,
5496         config/pj/xm-pj.h, config/romp/xm-romp.h,
5497         config/rs6000/xm-beos.h, config/rs6000/xm-rs6000.h,
5498         config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
5499         config/sparc/xm-sparc.h, config/sparc/xm-sysv4.h,
5500         config/v850/xm-v850.h, config/vax/xm-vax.h,
5501         config/vax/xm-vms.h, config/we32k/xm-we32k.h:
5502         Do not define TRUE or FALSE.
5503
5504         * config/i386/xm-aix.h, config/i386/xm-osf.h: Delete; made
5505         empty by above change.
5506         * config.gcc: Remove references to these files.
5507
5508         * configure.in: Detect stdbool.h.
5509         * configure, config.in: Regenerate.
5510         * system.h: Include stddef.h here if available.
5511         Set HAVE__BOOL based on GCC_VERSION and __STDC_VERSION__.
5512         Then set up a sensible boolean type at the very end.
5513
5514         * combine.c, cse.c, expr.c, fold-const.c, gensupport.c,
5515         config/mcore/mcore.c: Rename variables named 'true' and/or 'false'.
5516
5517         * hash.h: Delete 'boolean' typedef and related #undefs.
5518
5519         * function.c, ggc-common.c, hash.h, hash.c, tlink.c: Replace
5520         all uses of 'boolean' with 'bool'.
5521
5522 2001-03-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5523
5524         * cpplib.c (_cpp_init_stacks): Cast enum for comparison.
5525         * cppexp.c (lex): Cast enums for comparison.
5526         * cppinit.c (parse_option): Cast enum for comparison.
5527         * cpplex.c (cpp_spell_token): Cast enums to int for minus.
5528         (cpp_output_token): Likewise.
5529         (cpp_can_paste): Cast enums for comparsion and plus/minus.
5530         (cpp_avoid_paste): Cast enums for minus and comparison.
5531
5532 2001-03-01  Zack Weinberg  <zackw@stanford.edu>
5533
5534         * gcc.c, objc/lang-specs.h: Add zero initializer for cpp_spec
5535         field to all array elements.
5536
5537 2001-03-01  Zack Weinberg  <zackw@stanford.edu>
5538
5539         * cpphash.h (struct cpp_reader): Add print_version field.
5540         * cppinit.c (cpp_handle_option): For -v, -version, and --version,
5541         just set print_version and other flags as appropriate.
5542         (cpp_post_options): Print version here if print_version is set.
5543
5544         * toplev.c (exit_after_options): New flag.
5545         (independent_decode_option): Don't exit here; just set
5546         exit_after_options.
5547         (main): Exit after calling lang_hooks.post_options if
5548         exit_after_options is true.
5549
5550         * cppinit.c (append_include_chain): Drop never-used case QUOTE.
5551         (merge_include_chains): Adjust comment to match code.
5552
5553 2001-03-01  Zack Weinberg  <zackw@stanford.edu>
5554
5555         * stringpool.c (set_identifier): New function.
5556         * tree.h: Prototype it.
5557
5558         * c-parse.in: Kill D_YES. If compiled for objc, call
5559         save_and_forget_protocol_qualifiers from init_reswords.
5560         * objc/objc-act.c (remember_protocol_qualifiers,
5561         forget_protocol_qualifiers): Don't diddle C_IS_RESERVED_WORD.
5562         Swap out the non-keyword IDENTIFIER_NODEs for keyword ones, or
5563         vice versa.
5564         (save_and_forget_protocol_qualifiers): New function.
5565         * c-lex.h: Prototype save_and_forget_protocol_qualifiers.
5566
5567 2001-03-01  Diego Novillo  <dnovillo@redhat.com>
5568
5569         * c-semantics.c (prune_unused_decls): Return error_mark_node
5570         instead of (tree) 1 to stop traversing the tree chain.
5571
5572 2001-03-01  Bernd Schmidt  <bernds@redhat.com>
5573
5574         Fix a problem introduced by Kenner's Feb 18 change.
5575         * toplev.c (rest_of_compilation): Disable flag_cse_follow_jumps and
5576         flag_cse_skip_blocks only temporarily, not for ever.
5577
5578 Thu Mar  1 09:49:58 2001  Jeffrey A Law  (law@cygnus.com)
5579
5580         * config/pa/som.h  (ASM_IDENTIFY_GCC): Define.
5581         (ASM_IDENTIFY_GCC_AFTER_SOURCE): Likewise.
5582
5583         * pa.c (emit_move_sequence): Verify operand0 is a hard register
5584         before determining its register class.
5585
5586 2001-03-01  Bernd Schmidt  <bernds@redhat.com>
5587
5588         * config/ia64/ia64.c (ia64_hard_regno_rename_ok): Disallow renaming
5589         from reg 4 if current_function_calls_setjmp.
5590         (gen_nop_type): New function.
5591         (ia64_emit_nops): New function.
5592         (ia64_reorg): Call it.
5593         (ia64_sched_reorder): Move code that rotates bundles up a bit.
5594
5595         * reload1.c (eliminate_regs_in_insn): Restrict the special case
5596         code not to try to optimize adds with anything but a REG destination.
5597
5598         * sched-int.h (struct haifa_insn_data): Add new member priority_known.
5599         (INSN_PRIORITY_KNOWN): New accessor macro.
5600         * haifa-sched.c (priority): Use it instead of testing priority against
5601         zero.
5602
5603 2001-02-28  DJ Delorie  <dj@redhat.com>
5604
5605         * config/m68k/m68k.h (MOVE_BY_PIECES_P): Avoid pushing bytes,
5606         since that doesn't work the way gcc wants on a generic m68k.
5607
5608 2001-02-28  Richard Henderson  <rth@redhat.com>
5609
5610         * caller-save.c (save_call_clobbered_regs): Fix typo in
5611         comparison last change.
5612
5613 Wed Feb 28 19:31:42 CET 2001  Jan Hubicka  <jh@suse.cz>
5614
5615         * i386.c (pentium4_cost): New.
5616         (m_PENT4): New macro.
5617         (x86_push_memory, x86_movx,x86_cmove, x86_deep_branch, x86_use_sahf
5618         x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8
5619         x86_integer_DFmode_moves, x86_partial_reg_dependency,
5620         x86_memory_mismatch_stall): Add Pentium4
5621         (x86_use_q_reg, x86_use_any_reg): Kill.
5622         (override_options): Add pentium4.
5623         (incdec_operand): Return 0 for pentium4.
5624         (ix86_issue_rate): Add PROCESSOR_PENTIUM4 and PROCESSOR_ATHLON.
5625         * i386.h (x86_use_q_reg, x86_use_any_reg): Kill.
5626         (TARGET_PENTIUM4): Define.
5627         (enum processor_type): Add PROCESSOR_PENTIUM4.
5628         (CPP_CPU_DEFAULT_SPEC): Add pentium4 support.
5629         * i386.md (attribute "cpu"): Add pentium4.
5630         * invoke.texi (march): Add pentium4.
5631
5632 Wed Feb 28 19:28:06 CET 2001  Jan Hubicka  <jh@suse.cz>
5633
5634         * i386.md (sse_mov?fcc*): New patterns and splitters.
5635         * i386.c (ix86_expand_movcc): Work post-reload; recognize
5636         the SSE based conditional moves.
5637
5638 Wed Feb 28 19:18:23 CET 2001  Jan Hubicka  <jh@suse.cz>
5639
5640         * i386.md (attribute mode): Add "TI".
5641         (movsf_1): Add pxor support; remove constant propagation splitter.
5642         (movdf_integer): Likewise.
5643         (movdf_nointeger): Likewise.
5644         (movxf constant prop splitter): Handle all modes; update for SSE.
5645         * i386.h (CONST_DOUBLE_OK_FOR_LETTER): Add 'H' for SSE constants.
5646         * i386.c (standard_80387_constant_p): Rewrite.
5647         (standard_sse_constant_p): New.
5648         * i386-protos.h (standard_sse_constant_p): New.
5649
5650 Wed Feb 28 19:05:37 CET 2001  Jan Hubicka  <jh@suse.cz>
5651
5652         * i386.md (sse_setccsf, sse_setccdf): New.
5653         (sse_cmp* patterns): Use '%D' instead of outputtting condition
5654         flag directly.
5655         * i386.c (sse_comparison_operator): Accept the supported unordered
5656         comparses; be ready for fast_math.
5657         (print_operand): Support 'D'.
5658
5659 Wed Feb 28 18:54:51 CET 2001  Jan Hubicka  <jh@suse.cz>
5660
5661         * jump.c (reversed_comparison_code): Kill.
5662
5663 Wed Feb 28 18:50:15 CET 2001  Jan Hubicka  <jh@suse.cz>
5664
5665         * toplev.c (rest_of_compilation): Do post-reload splitting unconditionally
5666         for STACK_REGS
5667
5668 Wed Feb 28 18:47:37 CET 2001  Jan Hubicka  <jh@suse.cz>
5669
5670         * i386.md (sse_andti3, sse_nandti_3, sse_xorti3): Add SSE2 versions;
5671         add missing '%' in constraints.
5672
5673 Wed Feb 28 17:24:24 CET 2001  Jan Hubicka  <jh@suse.cz>
5674
5675         * c-common.c (build_common_tree_nodes): Build intTI_type_nodes
5676         for HOST_BITS_PER_WIDE_INT == 32 too.
5677
5678 Wed Feb 28 17:22:35 CET 2001  Jan Hubicka  <jh@suse.cz>
5679
5680         * caller-save.c (reg_save_code, reg_restore_code):  Index by mode, not
5681         NREGS.
5682         (insert_save, insert_restore): New parameter save_mode.
5683         (init_caller_save): Update initialization of reg_save_code
5684         and reg_restore_code.
5685         (save_call_clobbered_regs):  Compute save_modes and update calls to
5686         reg_save_code and reg_restore_code.
5687         (insert_restore):  Unsignetize numbers; use save_modes to choose mode
5688         of spill; update use of reg_restore_code.
5689         (insert_save):  Likewise.
5690         * i386.h (HARD_REGNO_CALLER_SAVE_MODE): Update.
5691         * c4x.h (HARD_REGNO_CALLER_SAVE_MODE): Update.
5692         * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
5693
5694 Wed Feb 28 17:19:28 CET 2001  Jan Hubicka  <jh@suse.cz>
5695
5696         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag_constants,
5697         noce_try_store_flag_inc, noce_try_store_flag_mask,
5698         noce_try_cmove_arith):
5699         Use reversed_comparison_code instead of reverse_comparison and
5700         can_reverse_comparison_p.
5701
5702 Wed Feb 28 17:17:29 CET 2001  Jan Hubicka  <jh@suse.cz>
5703
5704         * jump.c (reversed_comparison_code_parts): Allow reversal of
5705         unordered compares in -ffast-math mode; reverse ordered compares
5706         for FP even w/o -ffast-math.
5707
5708 2001-02-27  Richard Henderson  <rth@redhat.com>
5709
5710         * print-rtl.c (print_rtx) [i]: Don't print field five on
5711         NOTEs other than NOTE_INSN_DELETED_LABEL.
5712
5713 2001-02-27  Zack Weinberg  <zackw@stanford.edu>
5714
5715         * mips/xm-iris4.h: Delete #if 0 block (there since before 1997).
5716         * pa/xm-linux.h, pa/xm-pa.h, pa/xm-papro.h: Don't declare errno.
5717
5718 2001-02-27  Diego Novillo  <dnovillo@redhat.com>
5719
5720         * c-common.c (walk_stmt_tree): Visit the chain of the current tree
5721         even if walk_subtrees is 0.
5722         * c-semantics.c (prune_unused_decls): Return a non-null value to
5723         stop traversing the tree chain.
5724
5725 2001-02-27  DJ Delorie  <dj@redhat.com>
5726
5727         * config/m68k/m68k.c (output_function_prologue): Save the new CFA
5728         register, *then* define it as the new CFA.
5729
5730 Tue Feb 27 16:49:13 2001  Jeffrey A Law  (law@cygnus.com)
5731
5732         * pa.c (override_options): Promote -fpic to -fPIC.
5733         (legitimize_pic_address): Simplify due to removal of
5734         small PIC as a code generation option.
5735         (secondary_reload_class): Similarly.
5736         * pa.h (GO_IF_LEGITIMATE_ADDRESS): Similarly.
5737         (PRINT_OPERAND_ADDRESS): Similarly.
5738         * pa.md (various patterns): Similarly.
5739         (small pic lo_sum pattern): Remove.
5740
5741 Tue Feb 27 16:01:13 CET 2001  Jan Hubicka  <jh@suse.cz>
5742                               Fergus Henderson
5743
5744         * md.texi (min, max): Document
5745
5746 Tue Feb 27 15:51:35 CET 2001  Jan Hubicka  <jh@suse.cz>
5747
5748         * i386.md (movsf, movdf): Use movaps for reg-reg moves if
5749         TARGET_PARTIAL_REG_DEPENDENCY.
5750         (truncdfsf2_1_sse, truncdfsf2_2): Penalize the fpreg->mem case.
5751
5752 Tue Feb 27 15:36:48 CET 2001  Jan Hubicka  <jh@suse.cz>
5753
5754         * i386.md (mins*, maxs*): New patterns, expanders and splitters.
5755
5756 2001-02-26  Jeffrey Oldham  <oldham@codesourcery.com>
5757
5758         * mips.c (mips_make_temp_file): Fix thinko in last change.
5759
5760 2001-02-26  Jason Eckhardt  <jle@redhat.com>
5761
5762         * combine.c (known_cond): Do not reverse the condition when
5763         SMAX/UMAX is being considered and the condition is for equality
5764         or inequality.
5765
5766         * testsuite/gcc.c-torture/execute/20010221-1.c: New test.
5767
5768 2001-02-26  Philip Blundell  <philb@gnu.org>
5769
5770         * config.gcc: Remove obsolete targets "arm*-*-linuxoldld" and
5771         "armv2-*-linux".
5772         * config/arm/linux-elf.h: Remove historical relics related to
5773         above configurations.
5774         * config/arm/linux-oldld.h: Delete.
5775         * config/arm/linux-elf26.h: Delete.
5776
5777 2001-02-26  Jason Merrill  <jason@redhat.com>
5778
5779         * c-decl.c (finish_decl): Set DECL_DEFER_OUTPUT on tentative file-scope
5780         definitions.
5781         * toplev.c (rest_of_decl_compilation): Check DECL_DEFER_OUTPUT to
5782         recognize a tentative definition.  Lose obsolete code.
5783
5784         * toplev.c (wrapup_global_declarations): Don't emit DECL_COMDAT
5785         variables unless necessary, either.
5786
5787 2001-02-25  Richard Henderson  <rth@redhat.com>
5788
5789         * ifcvt.c (struct noce_if_info): Add test_bb.
5790         (noce_get_alt_condition): New.
5791         (noce_try_minmax, noce_try_abs): New.
5792         (noce_operand_ok): New.
5793         (noce_process_if_block): Use them.
5794         * rtlanal.c (may_trap_p): NEG and ABS can never trap.
5795
5796 Sun Feb 25 14:26:17 2001  Christopher Faylor <cgf@cygnus.com>
5797
5798         * config/i386/cygwin.h (CPP_SPEC): Add missing space before w32api
5799         include.
5800
5801 2001-02-25  Zack Weinberg  <zackw@stanford.edu>
5802
5803         * config.gcc: Put back pa/t-openbsd and rs6000/t-openbsd.
5804         * config/mips/mips.c (mips_make_temp_file): Set temp_filename
5805         properly.
5806         (mips_asm_file_end): Free temp_filename here.
5807
5808 Sun Feb 25 08:34:23 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5809
5810         * config/i386/i386-protos.h (ix86_set_move_mem_attrs): Move decl.
5811         * config/i386/i386.c (ix86_set_move_mem_attrs_1): Fix typo.
5812
5813         * config/i386/i386.md (movstrsi): Handle FAIL case.
5814
5815 2001-02-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5816
5817         * cppinit.c (builtin_array): Update.
5818         (init_builtins): Flag builtins to warn if redefined or
5819         undefined.  Define __GXX_WEAK as a normal macro.
5820         * cpplib.c (do_undef): Warn if flagged NODE_WARN.
5821         * cpplib.h (NODE_WARN): New flag.
5822         * cppmacro.c (builtin_macro): Remove handling of __GXX_WEAK__.
5823         Handle __STDC__ as a builtin only on Solaris.
5824         (warn_of_redefinition): Renamed from check_macro_definition.
5825         Reverse sense of test.  Always warn if NODE_WARN.
5826         (_cpp_create_definition): Use warn_of_redefinition.  Flag
5827         any macro beginning with "__STDC_" to require a mandatory
5828         warning if redefined or undefined.
5829
5830 2001-02-24  Zack Weinberg  <zackw@stanford.edu>
5831
5832         * xm-interix.h, xm-lynx.h, alpha/xm-vms.h, convex/xm-convex.h,
5833         i370/xm-i370.h, i370/xm-linux.h, i370/xm-mvs.h, i370/xm-oe.h,
5834         i386/xm-beos.h, i386/xm-dos.h, i386/xm-mingw32.h,
5835         i860/xm-i860.h, m68k/xm-3b1.h, m68k/xm-amix.h, m68k/xm-aux.h,
5836         m68k/xm-crds.h, m68k/xm-mot3300.h, m88k/xm-sysv3.h,
5837         mips/xm-mips.h, rs6000/xm-beos.h, vax/xm-vms.h:
5838         Don't define any of:
5839         USE_PROTOTYPES, vfork, mktemp, SVR3, NO_SYS_PARAMS_H,
5840         P_tmpdir, MVS, NO_DBX_FORMAT, USE_STDARGS, STDC_HEADERS,
5841         NO_PRECOMPILES, i860, __PTR_TO_INT, __INT_TO_PTR, rindex,
5842         index, FULL_PROTOTYPES, AUX, R_OK, W_OK, X_OK, F_OK,
5843         STACK_DIRECTION, MIPS, MAX_READ_LEN, MAX_WRITE_LEN.
5844
5845         * alpha/xm-alpha.h, clipper/xm-clix.h, d30v/xm-d30v.h,
5846         fr30/xm-fr30.h, i370/xm-linux.h: Remove commented-out macro
5847         definitions.
5848
5849         * m68k/xm-3b1.h, m68k/xm-crds.h, m88k/xm-sysv3.h:
5850         Delete now-empty file.
5851
5852         * alpha/vms.h: Define NEED_ATEXIT here...
5853         * alpha/xm-vms.h: ...not here.
5854
5855         * i386/cygwin.h: Don't define PARAMS.
5856         * mips/mips.c: Don't prototype mktemp.  Don't define
5857         P_tmpdir.  Use make_temp_file to create temporary files.
5858         Don't be clever and delete temporary files early.
5859         * config.gcc: Drop references to deleted files.  Don't define
5860         FULL_PROTOTYPES.
5861         * gcc.texi: Don't mention USE_PROTOTYPES.
5862
5863 Sat Feb 24 20:25:29 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5864
5865         * config/i386/i386.c (ix86_set_move_mem_attrs): New function.
5866         (ix86_set_move_mem_attrs_1): Likewise.
5867         * config/i386/i386-protos.h (ix86_set_move_mem_attrs): New declaration.
5868         * config/i386/i386.md (movstrsi): Call it.
5869
5870 2001-02-24  Zack Weinberg  <zackw@stanford.edu>
5871
5872         * config.gcc: Expunge references to alpha/t-pe, pa/t-openbsd,
5873         x-linux-aout, i386/t-go32, t-osf, m68k/x-m68kv,
5874         ns32k/xm-netbsd.h, rs6000/t-openbsd, rs6000/t-xnewas,
5875         rs6000/x-aix41-gld.  These are nonexistent, empty, or obsolete.
5876
5877         (i750a-*-*): Error here if hosting on i750a.
5878         (alpha*-*-winnt*, ix86-*-winnt3*): Remove stanzas entirely.
5879
5880         * x-linux-aout, xm-freebsd.h, i386/beos-pe.h, ns32k/xm-netbsd.h:
5881         Remove (empty modulo comments).
5882
5883         * 1750a/xm-1750a.h, alpha/config-nt.sed, alpha/win-nt.h,
5884         alpha/xm-winnt.h, i386/config-nt.sed, i386/os2.h,
5885         i386/t-winnt, i386/win-nt.h, i386/xm-freebsd.h, i386/xm-os2.h,
5886         i386/xm-winnt.h, m68k/x-alloca-c, m88k/x-dguxbcs,
5887         mips/x-netbsd, mips/x-nws3250v4, rs6000/t-xnewas,
5888         rs6000/t-xrs6000, rs6000/xm-cygwin.h: Remove (obsolete)
5889
5890         * i386/crtdll.h, i386/cygwin.h, i386/mingw32.h:
5891         Remove reference to winnt.h in comment.
5892         * rs6000/t-newas, rs6000/t-rs6000: Override LIBGCC1_TEST to null.
5893
5894 2001-02-24  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5895
5896         * loop.c (check_dbra_loop): A biv has uses besides counting if it is
5897         used to set another biv.
5898
5899 Sat Feb 24 06:45:21 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5900
5901         * tree.h (BLOCK_DEAD): New macro.
5902         (struct tree_block): New flag, dead_flag.
5903         * print-tree.c (print_node, case 'b'): Print missing fields.
5904         * emit-rtl.c (remove_unnecessary_notes): Set BLOCK_DEAD.
5905         * function.c (identify_blocks): Enable test for misplaced notes.
5906         (all_blocks): Skip BLOCK_DEAD blocks.
5907         * integrate.c (integrate_decl_tree): Likewise.
5908
5909         * errors.c (internal_error, trim_filename): New functions.
5910         (fancy_abort): Call internal_error.
5911         * errors.h (internal_error, trim_filename): New declarations.
5912
5913 2001-02-24  Alexandre Oliva  <aoliva@redhat.com>
5914
5915         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Reverted
5916         2000-08-26's patch.
5917         (EXTRA_CONSTRAINT): Formatting changes.
5918
5919 2001-02-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5920
5921         * rtl.c (rtl_check_failed_code2): Fix typo in last change.
5922
5923 2001-02-23  Per Bothner  <per@bothner.com>
5924
5925         * gcc.c (record_temp_file, pfatal_with_name, error):  Make non-static,
5926         so they can be called from java/jvspec.c.
5927         * gcc.h (record_temp_file, pfatal_with_name, error):  Declare.
5928
5929 Sat Feb 24 03:32:50 CET 2001  Jan Hubicka  <jh@suse.cz>
5930
5931         * i386.c (ix86_frame): New structure.
5932         (ix86_compute_frame_size): Kill.
5933         (ix86_compute_frame_layout): New.
5934         (ix86_save_reg): New.
5935         (ix86_can_use_return_insn_p): Use frame layout stuff.
5936         (ix86_expand_prologue): Likewise.
5937         (ix86_expand_epilogue): Likewise.
5938         (ix86_initial_elimination_offset): Likewise.
5939         (ix86_nsaved_regs): Use ix86_save_reg.
5940         (ix86_emit_save_regs): Likewise.
5941
5942 Sat Feb 24 03:30:38 CET 2001  Jan Hubicka  <jh@suse.cz>
5943
5944         * flow.c (find_sub_basic_blocks): New function.
5945         (split_block): Be ready for basic block introduced by CODE_LABEL.
5946         (commit_one_edge_insertion): Call find_sub_basic_block.
5947
5948         * flow.c (make_edges): Add edge from entry for blocks starting with
5949         label having ALTERNATE_NAME
5950
5951 Sat Feb 24 03:19:42 CET 2001  Jan Hubicka  <jh@suse.cz>
5952
5953         * function.c (epilogue_done): Be ready for first basic block not
5954         containing PROLOGUE_END note.
5955         (reposition_prologue_and_epilogue_notes): Avoid placing
5956         PROLOGUE_END note between BASIC_BLOCK.
5957
5958 Sat Feb 24 03:17:09 CET 2001  Jan Hubicka  <jh@suse.cz>
5959
5960         * loop.c (canonicalize_condition): Move to reversed_comparison_code.
5961
5962 2001-02-21  DJ Delorie  <dj@redhat.com>
5963
5964         * config/i960/i960.h (FRAME_POINTER_REQUIRED): Revert removal of
5965         check for current_function_has_nonlocal_goto from 1999-11-12.
5966
5967 Fri Feb 23 15:28:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5968
5969         * diagnostic.c (trim_filename): No longer static.
5970         * toplev.h (trim_filename): Declare.
5971         * rtl.c (rtl_check_failed_bounds): Call internal_error.
5972         (rtl_check_failed_type1, rtl_check_failed_type2): Likewise.
5973         (rtl_check_failed_code1, rtl_check_failed_code2): Likewise.
5974         (rtvec_check_failed_bounds): Likewise.
5975         * tree.c (tree_check_failed, tree_class_check_failed): Likewise.
5976
5977         * convert.c (convert_to_integer): Don't do unsigned unless result or
5978         both inputs are unsigned.
5979
5980         * fold-const.c (fold_convert): Don't call size_int_type_wide if
5981         input overflows.
5982
5983         * c-decl.c (set_block): Set NAMES and BLOCKS from BLOCK.
5984
5985         * varasm.c (output_constant): Recompute CODE after lang-specific fn.
5986
5987 2001-02-23  Jeffrey Oldham  <oldham@codesourcery.com>
5988
5989         * Makefile.in (resource.o): Add params.h dependence.
5990         * params.def (MAX_DELAY_SLOT_LIVE_SEARCH): New parameter.
5991         * params.h (MAX_DELAY_SLOT_LIVE_SEARCH): Likewise.
5992         * resource.c: Add dependence on params.h.
5993         (current_live_regs): Fix explanatory comment.
5994         (find_basic_block): Add new parameter to permit limiting search
5995         for a BARRIER.
5996         (mark_target_live_regs): Add new argument to find_basic_block call.
5997         (incr_ticks_for_insn): Likewise.
5998
5999 2001-02-23  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6000
6001         * diagnostic.c (output_to_stream): Rename to
6002         output_buffer_to_stream. Loses the stream parameter.
6003         (init_output_buffer): Set diagnosic_buffer's stream.
6004         (flush_diagnostic_buffer): Adjust.
6005         (default_print_error_function): Likewise.
6006         (finish_diagnostic): Likewise.
6007         (verbatim): Likewise.
6008
6009         * diagnostic.h (struct output_buffer): Add `stream' field.
6010         (output_buffer_attached_stream): New macro.
6011
6012 2001-02-23  Jakub Jelinek  <jakub@redhat.com>
6013
6014         * fold-const.c (extract_muldiv) [case PLUS_EXPR]: If not MULT_EXPR,
6015         check if either operand is divisible by C.
6016         (multiple_of_p): Handle LSHIFT_EXPR with small constant shift.
6017         If type is signed, consider negative numbers as well.
6018
6019 2001-02-22  Richard Henderson  <rth@redhat.com>
6020
6021         * config/ia64/crtbegin.asm (.fini): Use pc-relative relocs to
6022         reach .text instead of gp-relative relocs.
6023         * config/ia64/crtend.asm (.init): Likewise.
6024
6025 2001-02-22  Andreas Jaeger  <aj@suse.de>
6026
6027         * extend.texi (C++ Attributes): Fix typo.
6028
6029 2001-02-21  David Mosberger  <davidm@hpl.hp.com>
6030
6031         * config/ia64/ia64.c (ia64_epilogue_uses): For syscall_linkage
6032         functions, drop current_function_args_info.words test.
6033         (ia64_compute_frame_size): Mark syscall_linkage functions as
6034         using eight input registers.
6035
6036 2001-02-21  Loren J. Rittle  <ljrittle@acm.org>
6037         Bruce Korb  <bkorb@gnu.org>
6038
6039         * fixinc/inclhack.def (freebsd_gcc3_breakage): new fix
6040         * fixinc/README: Document how to convert sed substitutions
6041         to format style c_fix-es.
6042         * fixinc/fixincl.x: regen
6043
6044 2001-02-21  Jeffrey D. Oldham  <oldham@codesourcery.com>
6045
6046         * gcc.c: Add comment explaining how to add a command-line option.
6047         Add title to specs language comment.
6048
6049 2001-02-21  Jeffrey Oldham  <oldham@codesourcery.com>
6050
6051         * gcc.c (cc1_options): Add "-param".
6052         (DEFAULT_WORD_SWITCH_TAKES_ARG): Likewise.
6053         (option_map): Likewise.
6054         * toplev.c (display_help): Add entry for "--param".
6055         (independent_decode_option): Fix typographical error.
6056
6057 Wed Feb 21 18:57:28 CET 2001  Catherine Moore  <clm@redhat.com>
6058                               Bernd Schmidt  <bernds@redhat.com>
6059                               Jan Hubicka  <jh@suse.cz>
6060
6061         * i386.c (function_arg_advance):  Pass SSE arguments in registers.
6062         (function_arg): Likewise.
6063
6064 Wed Feb 21 18:12:41 CET 2001  Jan Hubicka  <jh@suse.cz>
6065
6066         * i386.md (mmx_lshrdi3, mmx_ashldi3): Guard by unspec.
6067
6068 2001-02-21  Kazu Hirata  <kazu@hxi.com>
6069
6070         * config/h8300/h8300.md (iorsi3): Do not output an extra newline
6071         character.
6072         (xorsi3): Likewise.
6073
6074 Wed Feb 21 17:35:24 CET 2001  Jan Hubicka  <jh@suse.cz>
6075
6076         * flow.c (init_propagate_block_info): Canon address and use single_set
6077         for killing dead memory stores.
6078
6079 2001-02-21  Jeffrey Oldham  <oldham@codesourcery.com>
6080
6081         * Makefile.in (reorg.o): Add params.h dependence.
6082         * params.def: Fix typographical error in comment.
6083         (MAX_DELAY_SLOT_INSN_SEARCH): New parameter.
6084         * params.h: Modify introductory comment.
6085         (MAX_DELAY_SLOT_INSN_SEARCH): New parameter.
6086         * reorg.c: Add dependence on params.h.
6087         (redundant_insn): Add parameterized throttle for search.
6088         (fill_simple_delay_slots): Add a comment explaining a variable.
6089         Move conditional out of loop, simplifying code.
6090         (fill_eager_delay_slots): Fix typographical error in comment.
6091
6092 2001-02-20  Aldy Hernandez  <aldyh@redhat.com>
6093
6094         * tm.texi (REVERSE_CONDEXEC_PREDICATES_P): New macro documentation.
6095
6096         * flow.c (ior_reg_cond): Use REVERSE_CONDEXEC_PREDICATES_P macro.
6097         (REVERSE_CONDEXEC_PREDICATES_P): Define macro.
6098
6099 2001-02-21  Jason Merrill  <jason@redhat.com>
6100
6101         * tree.h (DECL_UNINLINABLE): Move from C++ frontend.
6102         (struct tree_decl): Add uninlinable bitfield.
6103         * c-decl.c (duplicate_decls): Set it.
6104         * integrate.c (function_cannot_inline_p): Check it.
6105
6106         * dwarf2out.c (add_name_and_src_coords_attributes): Don't add
6107         DW_AT_MIPS_linkage_name to abstract methods.
6108         (dwarf2out_abstract_function): Emit class context before calling
6109         set_decl_abstract_flags.  Don't clear DECL_ABSTRACT.
6110         (gen_subprogram_die): Remove obsolete code.
6111         (gen_member_die): Don't include clones in the member list.
6112         (gen_decl_die): Emit abstract info for clone origin.
6113         * dwarfout.c (output_type): Don't include clones in the member list.
6114         * dbxout.c (dbxout_type_methods): Ignore abstract methods.
6115         * toplev.c (note_deferral_of_defined_inline_function): Don't clear
6116         DECL_ABSTRACT on a function that already has it set.
6117
6118         * dwarf2out.c (gen_formal_types_die): Also accept a FUNCTION_DECL.
6119         (get_subprogram_die): Pass it in.
6120
6121 2001-02-21  Richard Earnshaw  <rearnsha@arm.com>
6122
6123         * flow.c (mark_set_1): Make not_dead unsigned long.  For
6124         non-pseudos, use it as a bitmask of the hard regs that
6125         don't die.
6126
6127 2001-02-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6128
6129         * cppfiles.c: Update comments.
6130         (_cpp_read_file): Don't check for NULL filenames any more.
6131         * cppinit.c (cpp_start_read): Don't do canonicalization of
6132         in_fname and out_fname.  Use the passed file name exclusively.
6133         (_cpp_handle_options): Don't treat "-" as a command line option,
6134         but as a normal filename.
6135         (_cpp_post_options): Canonicalize in_fname and out_fname.
6136         * cppmain.c (printer_init): Don't check out_fname for NULL.
6137         * c-lex.c (orig_filename): Rename cpp_filename for clarity.
6138         (init_c_lex): Update, and use "" to represent stdin to CPP.
6139         (yyparse): Update.
6140
6141 2001-02-20  Will Cohen  <wcohen@redhat.com>
6142
6143         * config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_usgl): New function.
6144         * config/pa/long_double.h (FIXUNS_TRUNCTFSI2_LIBCALL): Added.
6145         (INIT_TARGET_OPTABS): Use FIXUNS_TRUNCTFSI2_LIBCALL for
6146         fixunstfsi_libfunc.
6147
6148 2001-02-20  Stan Shebs  <shebs@apple.com>
6149
6150         * config/rs6000/rs6000.c (output_cbranch): Output branches
6151         on separate lines instead of using ';' to separate.
6152
6153 2001-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6154
6155         * cppinit.c (set_lang):  Move builtin handling to...
6156         (init_builtins): ...here.
6157         (_cpp_create_reader): Move call to set_lang.
6158
6159 2001-02-20  Mark Mitchell  <mark@codesourcery.com>
6160
6161         * stmt.c (expand_return): If an attempt is made to return the
6162         error_mar_node, treat the return like a return without a value.
6163
6164 2001-02-19  Zack Weinberg  <zackw@stanford.edu>
6165
6166         * sibcall.c (skip_copy_to_return_value): Call
6167         identify_call_return_value here, and return orig_insn if it
6168         returns zero.  Hardret and softret arguments now unnecessary.
6169         (call_ends_block_p): Don't call identify_call_return_value here.
6170
6171         * ggc-common.c (ggc_mark_rtx_children): No need to mark 'S' or
6172         's' slots in RTXen.
6173         * ggc-page.c, ggc-simple.c (ggc_mark_if_gcable): Delete function.
6174         * ggc.h (ggc_mark_if_gcable): Delete prototype.
6175
6176 Mon Feb 19 20:30:16 2001  Jeffrey A Law  (law@cygnus.com)
6177
6178         * pa.c (move_operand): Accept code to load the address of a
6179         symbol out of the DLT as a valid move operand.
6180         (print_operand, case 'A'): New to handle generating a DLT
6181         reference for a LO_SUM expression.
6182         * pa.h (EXTRA_CONSTRAINT): Handle 'A' for DLT LO_SUM references.
6183         * pa.md (movsi, movdi patterns): Allow DLT LO_SUM references.
6184
6185 2001-02-19  Joseph S. Myers  <jsm28@cam.ac.uk>
6186
6187         * README, cpp.texi, gcc.texi, version.c: Update version number to
6188         3.1.
6189         * cpp.1, gcov.1, gcc.1: Regenerate.
6190
6191 2001-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6192
6193         * cppfiles.c (stack_include_file): Generate dependencies
6194         here, and manage include_count here too.
6195         (PRINT_THIS_DEP): Delete.
6196         (_cpp_execute_include): Do not generate dependencies here,
6197         apart from the case of a missing header.  Do not manage
6198         include_count.
6199         (_cpp_read_file): Leave dependency generation to
6200         stack_include_file.
6201
6202 Mon Feb 19 10:17:47 2001  Jeffrey A Law  (law@cygnus.com)
6203
6204         * config.gcc (hppa*64*-*-hpux11*): Add MASK_GAS to
6205         target_cpu_default.  Remove dead assignment to
6206         target_cpu_default.
6207
6208 Mon Feb 19 16:47:39 CET 2001  Jan Hubicka  <jh@suse.cz>
6209
6210         * regclass.c (contains_reg_of_mode): Make global.
6211         (init_reg_sets): Remove contains_reg_of_mode; take into account
6212         CLASS_MAX_NREGS when looking for the proper mode.
6213         (dump_regclass): Dump only classes considered for the pseudo.
6214         (regclass): Use contains_reg_of_mode.
6215
6216 Mon Feb 19 16:45:42 CET 2001  Jan Hubicka  <jh@suse.cz>
6217
6218         * gcc.c (do_spec_1): 'n' for printing notices.
6219         * i386.h (CC1_CPU_SPEC): Notice deprecated options as deprecated.
6220
6221 Mon Feb 19 15:51:30 CET 2001  Jan Hubicka  <jh@suse.cz>
6222
6223         * reg-stack.c (next_flags_user): Use current_block->end
6224         (swap_rtx_condition): Look for next user if flags don't die;
6225         give up on CALL_INSNs; use current_block->end.
6226
6227 Mon Feb 19 08:27:21 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6228
6229         * sibcall.c (call_ends_block_p): New function.
6230         (optimize_sibling_and_tail_recursive_call): Use it.
6231
6232 2001-02-18  Kazu Hirata  <kazu@hxi.com>
6233
6234         * config/h8300/h8300.md: Update copyright.
6235         (andsi3): Do not output an extra newline character.
6236
6237 Sun Feb 18 15:45:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6238
6239         * toplev.c (note_deferral_of_defined_inlined_function): Argument
6240         FNDECL may be unused.
6241
6242         * toplev.c (rest_of_compilation): Don't have CSE skip blocks or
6243         follow jumps after first run.
6244         If -fexpensive-optimizations rerun CSE after GCSE and iterate until
6245         it doesn't change any jumps.
6246
6247 Sun Feb 18 17:05:50 2001  Jeffrey A Law  (law@cygnus.com)
6248
6249         * Makefile.in (rtlanal.o): Depend on hard-reg-set.h.
6250         ($HOST_PREFIX_1)rtlanal.o: Remove rules for building
6251         (mostlyclean): Corresponding changes.
6252         * rtlanal.c (hard-reg-set.h): Include.
6253         (rtx_unstable_p): Do not treat the argument pointer specially
6254         if it is not a fixed register.
6255         (rtx_varies_p, rtx_addr_can_trap_p): Similarly.
6256
6257 Sun Feb 18 15:45:17 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6258
6259         * sibcall.c (optimize_sibling_and_tail_recursive_call): Compare
6260         against last real insn in basic block.
6261         Rework to avoid gotos.
6262
6263         * Makefile.in (gcse.o): Now includes ggc.h.
6264         * gcse.c: Include ggc.h.
6265         (want_to_gcse_p): Verify expression can be in SET as valid insn.
6266         (try_replace_reg): Remove warning of uninitialize variable.
6267         (process_insert_insn): Call invalid_insn_p to validate insn.
6268         * recog.c (insn_invalid_p): Now global.
6269         See if can make valid by adding CLOBBERs of SCRATCH only and do if so.
6270         * recog.h (insn_invalid_p): New declaration.
6271
6272         * jump.c (jump_optimize_1): Only define reversed_code #ifdef HAVE_trap.
6273
6274         * config/sparc/sparc.c (eligible_for_epilogue_delay): Don't put
6275         assignments from FP constants since 'Y' output code can't handle it.
6276         (eligible_for_sibcall_delay): Likewise.
6277
6278         * flow.c (print_rtl_and_abort_fcn): Renamed from print_rtl_and_abort.
6279         Call fancy_abort directly, passing args.
6280         (print_rtl_and_abort): Now a macro, like fancy_abort.
6281
6282         * final.c (output_operand_lossage): Use internal_error, not error.
6283
6284 2001-02-18  Shane Nay  <shane@agendacomputing.com>
6285
6286         * mips.c (mips_expand_prologue) Add REG_MAYBE_DEAD to
6287         structure shift insns.
6288
6289 2001-02-18  Mark Mitchell  <mark@codesourcery.com>
6290
6291         * invoke.texi (-fsquangle): Remove documentation.
6292         (-fname-mangling-version): Likewise.
6293
6294 2001-02-18  Lars Brinkhoff  <lars@nocrew.org>
6295
6296         * optabs.c (expand_abs): Remove reference to
6297         HAVE_contitional_arithmetic.
6298         * combine.c (simplify_set): Likewise.
6299
6300 2001-02-18  Richard Henderson  <rth@redhat.com>
6301
6302         * ifcvt.c (dead_or_predicable): Don't move code if eh regions
6303         would be disrupted.
6304
6305 2001-02-18  Richard Henderson  <rth@redhat.com>
6306
6307         * config/ns32k/ns32k.h (ADJSP): Upcase arguments.
6308
6309         * config/alpha/alpha.md (movsi_fix): Fix typo in pattern name.
6310
6311         * reload1.c (reload_cse_simplify_set): Fix typo.
6312
6313 Sun Feb 18 09:30:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6314
6315         * diagnostic.c (_fatal_insn): Decrement errorcount.
6316
6317         * invoke.texi (-I): Add note avoiding use for system header files.
6318
6319         * rtl.h (add_clobbers): Remove duplicate declaration.
6320         * recog.h (added_clobbers_hard_reg_p): New declaration.
6321         * genemit.c (struct clobber_pat): New field has_hard_reg.
6322         (gen_insn): Record if added clobbers clobber hard reg.
6323         (gen_split): Avoid unused warning if number of operands is 0.
6324         (output_added_clobbers_hard_reg_p): New function.
6325         (main): Call it.
6326
6327 2001-02-18  Alan Modra <alan@linuxcare.com.au>
6328
6329         * pa.c (hppa_expand_prologue): Simplify code storing return
6330         pointer.  For large (>=8k) frames with a post_store, adjust stack
6331         pointer by 8k-64 first rather than by 64.  When testing with
6332         VAL_14_BITS_P, always use the actual value rather than the value
6333         negated.  Add blockage to prevent scheduling of spills before
6334         stack frame has been created.
6335         (hppa_expand_epilogue): Simplify code loading return pointer.
6336         Allow a slightly larger range for merge_sp_adjust_with_load case.
6337         When testing with VAL_14_BITS_P, always use the actual value.
6338
6339         * pa.c (pa_adjust_insn_length): Check that block move
6340         pattern is a set before looking at operands.
6341
6342 2001-02-17  Mark Mitchell  <mark@codesourcery.com>
6343
6344         * fold-const.c (fold_binary_op_with_conditional_arg): New
6345         function, split out from ...
6346         (fold): ... here.
6347         * tree.def (COND_EXPR): Document the use of VOID_TYPE for
6348         conditional arms that throw exceptions.
6349
6350         * print-tree.c (print_node): Do not use BLOCK_CHAIN when we're not
6351         looking at a BLOCK.
6352
6353 2001-02-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6354
6355         * aclocal.m4 (gcc_AC_CHECK_DECL): Before attempting the test,
6356         define HAVE_DECL_* to 1 to mask potential backup declarations.
6357         * configure: Regenerated.
6358
6359 2001-02-17  Mark Mitchell  <mark@codesourcery.com>
6360
6361         * invoke.texi (-Woverloaded-virtual): Clarify documentation.
6362
6363 2001-02-17  Richard Henderson  <rth@redhat.com>
6364
6365         * reload1.c (reload_cse_simplify_set): Respect LOAD_EXTEND_OP
6366         when replacing a memory load with a register.
6367
6368 Sat Feb 17 14:48:30 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6369                           Jan Hubicka  <jh@suse.cz>
6370
6371         * recog.c (validate_replace_src_1): New.
6372         (validate_replace_src_data): Likewise.
6373         (validate_replace_src): Use note_uses.
6374         * rtl.h (note_uses): Declare.
6375         * rtlanal.c (note_uses): New.
6376
6377 Sat Feb 17 10:52:34 CET 2001  Jan Hubicka  <jh@suse.cz>
6378
6379         * reg-stack.c (stack_def): Make field reg unsigned.
6380         (remove_regno_note): Unsignetize parameter.
6381
6382 2001-02-16  Jes Sorensen  <jes@linuxcare.com>
6383
6384         * ia64.c (errata_emit_nops): Add VOIDmode as second argument to
6385         shladd_operand() call.
6386
6387 2001-02-16  Bruce Korb  <bkorb@gnu.org>
6388             Rodney Brown  <RodneyBrown@mynd.com>
6389
6390         * fixinc/mkfixinc.sh: Use C fixincludes for UnixWare 7.
6391         * fixinc/inclhack.def: Add fixinc.svr4 patterns with matching
6392         machine restrictions
6393         * fixinc/fixincl.x: regen
6394
6395 Fri Feb 16 12:41:30 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6396
6397         * gcse.c (hash_scan_set): If cprop, see if REG_EQUAL or REG_EQUIV.
6398         Don't CSE a nop.
6399         (hash_scan_insn): Clean up calls to hash_scan_set.
6400         (compute_kill_rd): REGNO now unsigned.
6401         (try_replace_reg): Rework to use simplify_replace_rtx.
6402         (cprop_jump, cprop_cc0_jump): Likewise.
6403         (cprop_insn): Call find_reg_equal_equiv_note.
6404         Reflect changes to cprop_jump and cprop_cc0_jump.
6405
6406         * recog.c (validate_replace_src): Replace in operands of
6407         ZERO_EXTRACT in SET_DEST.
6408
6409         * cse.c (new_label_ref): New variable.
6410         (insert): Set it instead of recorded_label_ref.
6411         (cse_basic_block): Set recorded_label_ref if new_label_ref use, has
6412         CODE_LABEL for this function, and not already in REG_LABEL note.
6413
6414 2001-02-16  Jeffrey Oldham  <oldham@codesourcery.com>
6415
6416         * resource.c (mark_referenced_resources): Fix typo in introductory
6417         comment.
6418         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Fix typo in
6419         string constant.
6420
6421 2001-02-16  Jason Merrill  <jason@redhat.com>
6422
6423         * dwarf2out.c (add_bound_info): Don't crash if SAVE_EXPR_RTL is
6424         NULL.
6425         (gen_subprogram_die): Don't abort on seeing a second definition if
6426         the previous one was abstract.  Don't replace an abstract instance
6427         in the lookup table.
6428
6429         * dwarf2out.c (dwarf2out_abstract_function): Rename from
6430         gen_abstract_function.
6431         * dwarf2out.h: Declare it.
6432         * toplev.c (note_outlining_of_inline_function): New fn.
6433         * toplev.h: Declare it.
6434         * integrate.c (output_inline_function): Call it.
6435         * c-decl.c (duplicate_decls): Call it when redefining an extern
6436         inline.  Don't inline the new defn.
6437
6438         * tree.h (BLOCK_CHAIN): Use BLOCK_CHECK.
6439
6440 2001-02-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6441
6442         * .gdbinit: Rename to gdbinit.in.
6443         * gdbinit.in: New file,
6444         * configure.in: Generate .gdbinit from gdbinit.in.
6445         * configure: Regenerated.
6446         * Makefile.in (distclean): Always remove .gdbinit.
6447
6448 2001-02-16  Jakub Jelinek  <jakub@redhat.com>
6449
6450         * objc/objc-act.c (start_class): Register implemented_classes with
6451         GC.
6452
6453 2001-02-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6454
6455         * cppfiles.c (_cpp_make_system_header): Generate a file
6456         change callback.
6457
6458 2001-02-15  Jim Meyering  <meyering@lucent.com>
6459
6460         * Makefile.in (install-common): Don't depend on installdirs here.
6461         Instead, make each of the lang.install-common targets (e.g.,
6462         c++.install-common in cp/Make-lang.in) depend on it.
6463         (install-driver): Depend on installdirs.
6464
6465 Thu Feb 15 21:30:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6466
6467         * flow.c (tidy_fallthru_edge): Never end block on line number NOTE.
6468
6469         * function.c (assign_parms): Set RTX_UNCHANGING_P in pseudo when we
6470         do in memory.
6471
6472 2001-02-15  Mark Mitchell  <mark@codesourcery.com>
6473
6474         * invoke.texi (--param): Document.
6475
6476 Thu Feb 15 15:16:38 2001  Alexandre Oliva  <aoliva@redhat.com>
6477
6478         * config/sh/sh.h (BOOL_TYPE_SIZE): Don't define.
6479
6480 Thu Feb 15 10:52:31 CET 2001  Jan Hubicka  <jh@suse.cz>
6481
6482         * i386.md (extendsfdf2_2): Fix constraints.
6483
6484 Thu Feb 15 09:46:21 CET 2001  Jan Hubicka  <jh@suse.cz>
6485
6486         * i386.md (fop_df_3 splitter): Fix operand number.
6487
6488 Wed Feb 14 12:37:37 CET 2001  Jan Hubicka  <jh@suse.cz>
6489
6490         * invoke.texi (-mreg-alloc): Nuke.
6491         * i386.c (ix86_reg_alloc_order, regs_allocated,
6492         order_regs_for_local_alloc): Nuke.
6493         (override_options): Kill reg_alloc code.
6494         * i386.h (TARGET_OPTIONS): Kill reg-alloc.
6495         (REG_ALLOC_ORDER): SSE goes before I387.
6496         (ORDER_REGS_FOR_LOCAL_ALLOC): Kill.
6497         (ix86_reg_alloc_order): Likewise.
6498         * i386-protos.h (ix86_reg_alloc_order): Kill.
6499
6500 2001-02-14  Richard Henderson  <rth@redhat.com>
6501
6502         * toplev.c (f_options): Clarify -fschedule-insns2 documentation.
6503
6504 Wed Feb 14 11:59:58 CET 2001  Jan Hubicka  <jh@suse.cz>
6505
6506         * i386.h (RETURN_IN_MEMORY): Fix formating; reject TFmodes
6507
6508 Wed Feb 14 11:12:38 CET 2001  Jan Hubicka  <jh@suse.cz>
6509
6510         * i386-protos.h (ix86_memory_move_cost): Move offline.
6511         * i386.c (ix86_register_move_cost): Compute properly cost of
6512         SSE, MMX and i387 instructions.
6513         (*_cost): Add costs of SSE/MMX moves.
6514         (ix86_memory_move_cost): Move offline from ....; Likewise.
6515         * i386.h (MEMORY_MOVE_COST): .... here;
6516         (struct processor costs): Add new fields to represent costs
6517         of SSE/MMX moves.
6518
6519 Wed Feb 14 10:08:26 CET 2001  Jan Hubicka  <jh@suse.cz>
6520
6521         * regclass.c (init_reg_sets_1): Reinstall the optimization of
6522         move_cost together with Matt Kraai's fix.
6523
6524 2001-02-14  Jeffrey Oldham  <oldham@codesourcery.com>
6525
6526         * Makefile.in (OBJS): Add params.o.
6527
6528 2001-02-14  Richard Henderson  <rth@redhat.com>
6529             DJ Delorie  <dj@redhat.com>
6530
6531         * jump.c (jump_optimize_1): When we delete a conditional jump
6532         preceeding a non-conditional jump to effectively the same place,
6533         make sure that the combined jump skips any clobber insns between
6534         the two labels.
6535
6536 2001-02-14  Jeffrey Oldham  <oldham@codesourcery.com>
6537
6538         * gcc.c (do_spec_1): Fix off-by-one error for '%M' case.
6539
6540 2001-02-14  Mark Mitchell  <mark@codesourcery.com>
6541
6542         * Makefile.in (toplev.o): Depend on params.h.
6543         (intergate.o): Likewise.
6544         (params.o): New target.
6545         * flags.h (inline_max_insns): Remove.
6546         * integrate.c: Include params.h.
6547         Use MAX_INLINE_INSNS instead of inline_max_insns.
6548         * params.c: New file.
6549         * params.h: Likewise.
6550         * params.def: Likewise.
6551         * toplev.c: Include params.h.
6552         (lang_independent_params): New variable.
6553         (decode_f_option): Use the param machinery instead of setting
6554         max_inline_insns.
6555         (independent_decode_option): Handle "--param name=value".
6556         (main): Register language-independent parameters.
6557
6558 Wed Feb 14 11:13:45 CET 2001  Jan Hubicka  <jh@suse.cz>
6559
6560         * i386.md (pushsf, pushdf_nointeger): Fix constraint.
6561
6562 2001-02-14  Richard Henderson  <rth@redhat.com>
6563
6564         * regclass.c (init_reg_sets_1): Revert last two changes.
6565
6566 2001-02-14  Jakub Jelinek  <jakub@redhat.com>
6567
6568         * stor-layout.c (is_pending_size, put_pending_size): New functions.
6569         (variable_size): Call put_pending_size.
6570         * tree.h (is_pending_size, put_pending_size): Add prototypes.
6571         * fold-const.c (extract_muldiv): If SAVE_EXPR is on the pending
6572         sizes list, put newly created SAVE_EXPR there as well.
6573
6574 2001-02-14  Jakub Jelinek  <jakub@redhat.com>
6575
6576         * config/ia64/ia64.c (last_group): Only 2 entries are needed.
6577         (errata_find_address_regs): load_group has only 2 entries.
6578         (errata_emit_nops): Likewise.  shladd is not problematic.
6579         Clear last_group if nop was emitted.
6580         (fixup_errata): load_group has only 2 entries.
6581         Optimize.
6582
6583 2001-02-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6584
6585         * c-lex.c (lex_number): Only warn traditionally for U suffix
6586         outside system macros.
6587         * cppexp.c (parse_number): Similarly.
6588         * cpplib.h (NODE_SYSHDR, cpp_sys_objmacro_p): New.
6589         * cppmacro.c (struct cpp_macro): New member node.
6590         (parse_args): Only warn about missing rest args if not
6591         a system macro.
6592         (funlike_invocation_p): Similarly for uninvoked funlike macros.
6593         (cpp_sys_objmacro_p): New.
6594         (_cpp_create_definition): Store the node with the macro defn.
6595         Remember if the macro is defined in a system header.
6596
6597 2001-02-13  DJ Delorie  <dj@redhat.com>
6598
6599         * configure.in (check_languages): determine languages to check
6600         * Makefile.in (check-c++): alias for check-g++
6601         (check-f77): alias for check-g77
6602         (CHECK_TARGETS): depend on configured languages
6603
6604 Wed Feb 14 01:13:59 CET 2001  Jan Hubicka  <jh@suse.cz>
6605
6606         * i386.md (fixsfsi2, fixdfdi2): Fix previous patch again.
6607         (sqrtsf2): Use TARGET_SSE instead of TARGET_SSE2)
6608         (sqrtsf2 patterns): Use 'x' instead of 'Y'.
6609         (sqrtextendsfdf2): Disable for SSE2.
6610
6611 Wed Feb 14 00:19:28 CET 2001  Jan Hubicka  <jh@suse.cz>
6612
6613         * i386.md (fixsfsi2, fixdfdi2): Fix previous patch again.
6614         (sqrtsf2): Use TARGET_SSE instead of TARGET_SSE2)
6615         (sqrtsf2 patterns): Use 'x' instead of 'Y'.
6616         (sqrtextendsfdf2): Disable for SSE2.
6617
6618 Wed Feb 14 00:11:20 CET 2001  Jan Hubicka  <jh@suse.cz>
6619
6620         * i386.md (movsfcc_1): Support integer cmove instruction.
6621         (movdfcc_1): Likewise; new splitter.
6622
6623 Tue Feb 13 23:19:27 CET 2001  Jan Hubicka  <jh@suse.cz>
6624
6625         * i386.c (output_fp_compare): Support SSE.
6626         (prepare_fp_compare_args): SSE comparisons always support memory.
6627         * i386.h (TARGET_CMOVE): SSE imply cmove.
6628         * i386.md (cmp?f2): Enable for SSE too.
6629         (cmpfp_i*): Support SSE.
6630         (cmpfp_i_sse): New.
6631         (cmpfp_i_sse_only): New.
6632         (s*, b* fp expanters): Enable for SSE too.
6633         (fp_jcc_1_sse, fp_jcc_1_sse_only, fp_jcc_2_sse, fp_jcc_2_sse_only):
6634         New patterns.
6635
6636 Tue Feb 13 23:05:42 CET 2001  Jan Hubicka  <jh@suse.cz>
6637
6638         * regclass.c (init_reg_sets_1): Silence warning.
6639
6640 Tue Feb 13 22:03:07 CET 2001  Jan Hubicka  <jh@suse.cz>
6641
6642         * i386.md (sqrt?f2): Change to expander.
6643         (sqrt?f2_1, sqrt?f2_sse_only, sqrt?f2_i387): New.
6644
6645 Tue Feb 13 15:42:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6646
6647         * rtlanal.c (find_reg_equal_equiv_note): New function.
6648         * simplify-rtx.c (simplify_gen_unary, simplify_gen_ternary): New fns.
6649         (simplify_gen_relational, simplify_replace_rtx): Likewise.
6650         * rtl.h: Add declarations for above functions.
6651
6652 Tue Feb 13 21:09:11 CET 2001  Jan Hubicka  <jh@suse.cz>
6653
6654         * cse.c (cse_main): Converts ifdefs on PIC_OFFSET_TABLE_REGNUM to
6655         conditionals.
6656         * defaults.h (PIC_OFFSET_TABLE_REGNUM): Default to INVALID_REGNUM.
6657         * emit-rtl.c (init_emit_once): Convert ifdefs to conditionals.
6658         * flow.c (mark_regs_live_at_end): Likewise.
6659         (calculate_global_regs_live): Likewise.
6660         * gcse.c (compute_hash_table): Likewise.
6661         (compute_kill_rd): Likewise.
6662         * resource.c (mark_target_live_regs): Likewise.
6663         * rtl.h (INVALID_REGNUM): New macro.
6664
6665 Tue Feb 13 20:59:22 CET 2001  Jan Hubicka  <jh@suse.cz>
6666
6667         * i386.md (fixsfsi2, fixdfdi2): Fix previous patch.
6668
6669 Tue Feb 13 16:32:20 CET 2001  Jan Hubicka  <jh@suse.cz>
6670
6671         * i386.md (fixsfsi2, fixdfdi2): Force operand to register
6672         for SSE.
6673
6674 Tue Feb 13 14:53:16 CET 2001  Jan Hubicka  <jh@suse.cz>
6675
6676         * i386.md (add?f3, sub?f3, mul?f3, dif?f3): Enable for TARGET_SSE(2)
6677         too.
6678         (fop_sf_comm, fop_df_comm, fop_sf_1, fop_df_1): Support SSE.
6679         (fop_sf_comm_sse, fop_df_comm_sse): New patterns.
6680         (fop_sf_1_sse, fop_df_1_sse): New patterns
6681         (fop_*): Disable float_extend and float patterns for SSE compilation.
6682         * i386.c (output_387_binary_op): Support SSE.
6683
6684 Tue Feb 13 14:16:34 CET 2001  Jan Hubicka  <jh@suse.cz>
6685
6686         * i386.md (dummy_extendsfdf2): Support SSE2
6687         (extendsfdf2): Enable if 80387 or SSE2.
6688         (extendsfdf2_1): Support SSE2. Disable if SSE2 is avialble
6689         and no MIX_I387_SSE2
6690         (extendsfdf2_1_sse_only): New pattern.
6691         (truncdfsf2): Enable if SSE2 or 80387; Always use SSE only version
6692         of SSE.
6693         (truncdfsf2_1): Support SSE.
6694         (truncdfsf2_2): Support SSE.
6695         (truncdfsf2_2_1_sse): New pattern.
6696         (fixtruncsfsi2): Always use SSE if available.
6697         (fix_truncsfsi_sse): New pattern.
6698         (fix_truncdfsi_sse): New pattern.
6699         (floatsis?f2): Support SSE.
6700         (floatsidf2_i387): New pattern.
6701         (floatsidf2_sse): Likewise.
6702
6703 Tue Feb 13 07:52:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6704
6705         * configure.in: Use "have_gnat" variable, not "gnat".
6706         * configure: Regenerated.
6707
6708         * config/sparc/sparc.c (function_value): Treat all non-record
6709         aggregate types like used to treat UNION_TYPE.
6710
6711 Tue Feb 13 13:31:33 CET 2001  Jan Hubicka  <jh@suse.cz>
6712
6713         * i386.c (print_reg): Use ANY_FP_REG instead of FP_REG
6714         * i386.h (MASK_128BIT_LONG_DOUBLE): Renumber
6715         (MASK_SSE2): New.
6716         (MASK_MIX_SSE_I387): New.
6717         (TARGET_SSE): SSE2 imply SSE.
6718         (TARGET_SSE2, TARGET_MIX_SSE_I387): New.
6719         (TARGET_SWITCHES): Add "sse2", "mix-sse-i387".
6720         (enum reg_class): Add new classes.
6721         (REG_CLASS_NAMES): Likewise.
6722         (REG_CLASS_CONTENTS): Likewise.
6723         (ANY_FP_REG_P, ANY_FP_REGNO_P, SSE_REG_P, SSE_FLOAT_MODE): New macros.
6724         (REG_CLASS_FROM_LETTER): 'x' and 'y' is SSE_REGS only when SSE is
6725         supported. Add 'Y' to be SSE_REGS when SSE2 is supported.
6726         (CLASS_MAX_NREGS): Use new macros.
6727         (REGISTER_MOVE_COST): Rewrite using SECONDARY_MEMORY_MAYBE_NEEDED.
6728         * i386.md (pushsf, movsf): Support SSE.
6729         (pushdf_nointeger, pushdf_integer, pushdf): Support SSE, update
6730         splitters to use ANY_FP_REGNO_P.
6731         (movdf_nointeger, movdf_integer): Likewise.
6732
6733 2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
6734
6735         * combine.c (UWIDE_SHIFT_LEFT_BY_BITS_PER_WORD): New macro.
6736         (try_combine): Use it.
6737
6738 Tue Feb 13 11:37:06 CET 2001  Jan Hubicka  <jh@suse.cz>
6739
6740         * i386.h (SSE_CLASS_P, MMX_CLASS_P, MAYBE_FLOAT_CLASS_P,
6741         MAYBE_SSE_CLASS_P, MAYBE_MMX_CLASS_P): New macros.
6742         (PREFERRED_RELOAD_CLASS, SECONDARY_MEMORY_NEEDED): Move offline.
6743         (REGISTER_MOVE_COST): Likewise.
6744         * i386-protos.h (ix86_secondary_memory_needed,
6745         ix86_preferred_reload_class, ix86_register_move_cost): Declare.
6746         * i386.c (ix86_secondary_memory_needed,
6747         ix86_preferred_reload_class, ix86_register_move_cost): New function.
6748
6749 Die Feb 13 11:04:25 CET 2001  Jan Hubicka  <jh@suse.cz>
6750
6751         * i386.h (VALID_FP_MODE_P, VALID_INT_MODE_P): New.
6752         (HARD_REGNO_MODE_OK): Move offline to ....
6753         * i386.c (ix86_hard_regno_mode_ok) ... here;
6754         refuse all incorrect modes.
6755         * i386-protos.h (ix86_hard_regno_mode_ok): Declare.
6756
6757 2001-02-13  Richard Henderson  <rth@redhat.com>
6758
6759         * sparc.md (cmp_cc_arith_op_set): Don't use match_dup on the
6760         entire operator; replicate that and match_dup the operands.
6761         (cmp_ccx_arith_op_set): Likewise.
6762         (cmp_cc_arith_op_not_set): Likewise.
6763         (cmp_ccx_arith_op_not_set): Likewise.
6764
6765 2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
6766
6767         * explow.c (trunc_int_for_mode): Sign-extend value to mode.
6768
6769 2001-02-12  Geoffrey Keating  <geoffk@redhat.com>
6770
6771         * config/rs6000/sysv4.h (MASK_NO_BITFIELD_WORD): New macro.
6772         (TARGET_NO_BITFIELD_WORD): New macro.
6773         (SUBTARGET_SWITCHES): Add -mbit-word, -mno-bit-word options.
6774         (BITFIELD_NBYTES_LIMITED): Define based on TARGET_NO_BITFIELD_WORD.
6775
6776 Mon Feb 12 18:13:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6777
6778         * cselib.c: New file, from simplify-rtx.c.
6779         * simplify-rtx.c: Remove cselib parts.
6780         * Makefile.in: Add cselib.o.
6781
6782 2001-02-12  Geoffrey Keating  <geoffk@redhat.com>
6783
6784         * config/rs6000/rs6000.c (rs6000_float_const): Remove warning.
6785         (setup_incoming_varargs): Remove warning.
6786
6787         * config/rs6000/rs6000.c (validate_condition_mode): When
6788         flag_fast_math, allow floating-point conditionals to be reversed.
6789         (rs6000_generate_compare): When flag_fast_math, don't generate
6790         cror operations for FP conditionals.
6791
6792         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
6793         -mcall-i960.
6794         (ASM_SPEC): Likewise.
6795         (CC1_ENDIAN_LITTLE_SPEC): Likewise.
6796         (CC1_SPEC): Likewise.
6797         (LINK_TARGET_SPEC): Likewise.
6798         (CPP_ENDIAN_SPEC): Likewise.
6799         * Makefile.in (check-consistency): New target.
6800
6801 2001-02-12  Joseph S. Myers  <jsm28@cam.ac.uk>
6802
6803         * c-decl.c (grokdeclarator): In C99 mode, give the more specific
6804         "return type defaults" warning for functions with return type
6805         defaulting to int.
6806         * c-lang.c (c_init): In C99 mode, enable warnings for implicit
6807         function declarations by default rather than only when pedantic.
6808
6809 Mon Feb 12 17:28:48 CET 2001  Jan Hubicka  <jh@suse.cz>
6810
6811         * regclass.c (init_reg_sets_1): Optimize calculation of move_cost
6812         arrays.
6813
6814 2001-02-12  Nathan Sidwell  <nathan@codesourcery.com>
6815
6816         * extend.texi (Deprecated): Deprecate new initializer lists.
6817
6818 2001-02-12  Nathan Sidwell  <nathan@codesourcery.com>
6819
6820         * mkdeps.c (deps_add_default_target): Robustify. Add
6821         basename component only.
6822         * cpp.texi (-M): Describe how default target is generated.
6823         * invoke.texi (-M): Likewise.
6824
6825 2001-02-12  Kazu Hirata  <kazu@hxi.com>
6826
6827         * toplev.c (push_float_handler): Remove.
6828         (pop_float_handler): Remove.
6829         * toplev.h: Remove prototypes for the above functions.
6830
6831 2001-02-12  Jakub Jelinek  <jakub@redhat.com>
6832
6833         * c-common.c (constant_fits_type_p): New function.
6834         (convert_and_check): Use it.
6835
6836 2001-02-11  Mark Mitchell  <mark@codesourcery.com>
6837
6838         * Makefile.in (GXX_ABI_FLAG): Don't define.
6839         * configure.in (--enable-new-gxx-abi): Remove option.
6840         * config.in: Regenerated.
6841         * configure: Likewise.
6842
6843 2001-02-12  Alexandre Oliva  <aoliva@redhat.com>
6844
6845         * lcm.c (compute_earliest): Let EXIT_BLOCK be handled as a regular
6846         basic block.
6847         (optimize_mode_switching) [NORMAL_MODE]: Set up EXIT_BLOCK as a
6848         regular basic block, and arrange for all edges into it to switch
6849         to normal mode.
6850
6851 2001-02-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6852
6853         * Makefile.in (distclean): Do not remove .gdbinit.
6854
6855 2001-02-11  Mark Mitchell  <mark@codesourcery.com>
6856
6857         * Makefile.in (gcc.o): Fix typos.
6858         (protize.o): Likewise.
6859         (unprotoize.o): Likewise.
6860
6861 2001-02-11  Richard Henderson  <rth@redhat.com>
6862
6863         * tree.c (build1): Check for null operand in last change.
6864
6865 2001-02-11  Richard Henderson  <rth@redhat.com>
6866
6867         * fold-const.c (split_tree): Don't assume a constant isn't splittable.
6868         (fold): Don't assume a constant isn't foldable.
6869         * tree.c (build): Set TREE_CONSTANT for an expression with no
6870         side-effects and constant operands.
6871         (build1): Likewise.
6872
6873 2001-02-10  Richard Henderson  <rth@redhat.com>
6874
6875         * jump.c (squeeze_notes): Revert 2000-05-12 change.
6876
6877 2001-02-10  Anthony Green  <green@redhat.com>
6878
6879         * cpp.texi (Standard Predefined): Add documentation for
6880         __OPTIMIZE_SIZE__.
6881
6882         * c-common.c (combine_strings): Improve warning message.
6883
6884 2001-02-10  Geoffrey Keating  <geoffk@redhat.com>
6885
6886         * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Use two dashes for
6887         --oformat.
6888         * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Likewise.
6889
6890 Fri Feb  9 15:05:27 2001  Christopher Faylor <cgf@cygnus.com>
6891
6892         * config/i386/t-cygwin (T_CPPFLAGS): Use correct location for
6893         CYGWIN_CROSS_DIR.
6894
6895 2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
6896
6897         * config/sh/sh.md (sibcalli, sibcalli_pcrel, sibcalli): Set
6898         fp_mode attribute.
6899
6900 2001-02-09  Nick Clifton  <nickc@redhat.com>
6901
6902         * config/arm/arm.md: Change output contraint on post inc
6903         load/store multiple patterns to be a read/write contraint.
6904
6905 2001-02-09  Neil Booth  <neil@daikokuya.demon.co.uk>
6906
6907         * gcc.c (cpp_options): Delete .d files on error.  Don't delete
6908         .o files when using the -M options.
6909
6910 2001-02-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6911             David Edelsohn  <edelsohn@gnu.org>
6912
6913         * config/rs6000/rs6000.c (output_toc): Allow 32-bit targets to
6914         handle DImode constants.  Use one TOC entry for SImode and smaller
6915         constants, aligned properly.
6916
6917 2001-02-08  Jason Merrill  <jason@redhat.com>
6918
6919         * config/arm/arm.c (arm_expand_prologue): Do tell the dwarf2 backend
6920         about the SP adjustment for saving the static chain pointer.
6921         * dwarf2out.c (dwarf2out_frame_debug_expr): Use the specified
6922         offset when setting a temporary CFA register.
6923
6924 2001-02-08  Chandrakala Chavva  <cchavva@redhat.com>
6925
6926         * config.gcc : New targets, i386-*-chorusos*, sparc-*-chorusos*,
6927         powerpc-*-chorusos* .
6928         * config/rs6000/chorus.h : New file.
6929         * config/i386/chorus.h : New file.
6930         * config/sparc/chorus.h : New file.
6931         * config/sparc/t-chorus-elf : New file.
6932
6933 2001-02-08  David Edelsohn  <edelsohn@gnu.org>
6934
6935         * config/rs6000/rs6000.h (ASM_OUTPUT_SYMBOL_REF): Move from here ...
6936         * config/rs6000/aix.h (ASM_OUTPUT_SYMBOL_REF): ... to here.
6937         * config/rs6000/aix51.h (CPLUSCPLUS_CPP_SPEC): Define it.
6938         (__WCHAR_TYPE__): Correct macro name.
6939
6940 2001-02-08  Richard Henderson  <rth@redhat.com>
6941
6942         * config/i386/i386.c (ix86_frame_pointer_required): New.
6943         (ix86_setup_frame_addresses): New.
6944         (struct machine_funciton): Add accesses_prev_frame.
6945         * config/i386/i386.h (FRAME_POINTER_REQUIRED): Call
6946         ix86_frame_pointer_required.
6947         (SUBTARGET_FRAME_POINTER_REQUIRED): New.
6948         (SETUP_FRAME_ADDRESSES): New.
6949         * config/i386/i386-protos.h: Update.
6950         * config/i386/sco5.h (SUBTARGET_FRAME_POINTER_REQUIRED): Rename
6951         from FRAME_POINTER_REQUIRED.
6952         * config/i386/svr3gas.h: Likewise.
6953         * config/i386/sysv3.h: Likewise.
6954         * config/i386/v3gas.h: Likewise.
6955
6956 2001-02-08  Richard Henderson  <rth@redhat.com>
6957
6958         * config/sparc/sparc.c (function_arg_record_value_3): Fix
6959         calculation of the number of integer registers required.
6960         (function_arg_record_value): Likewise.
6961
6962 2001-02-08  Jason Merrill  <jason@redhat.com>
6963
6964         * diagnostic.c (internal_error): Say "confused" after 1 error, not
6965         two.  Print file and line with "confused" message.
6966
6967         * dwarf2out.c (dwarf2out_line): Include filename in -dA output.
6968
6969 Thu Feb  8 11:21:28 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6970
6971         * rtlanal.c (remove_node_from_expr_list): Correctly update PREV.
6972
6973 2001-02-08  Bernd Schmidt  <bernds@redhat.com>
6974
6975         * final.c (cleanup_subreg_operands): The address of a MEM can
6976         contain SUBREGs.
6977
6978         * config/ia64/ia64.c (ia64_variable_issue): Call group_barrier_needed_p
6979         for asms, too.
6980
6981 2001-02-08  Joseph S. Myers  <jsm28@cam.ac.uk>
6982
6983         * gcc.texi (Incompatibilities): Update documentation of
6984         preprocessing numbers.
6985
6986 2001-02-07  Jakub Jelinek  <jakub@redhat.com>
6987
6988         * c-decl.c (finish_enum): Revert part of 2000-01-05 change.
6989
6990 2001-02-07  Mark Mitchell  <mark@codesourcery.com>
6991
6992         * config/rs6000/aix43.h (CPLUSCPLUS_CPP_SPEC): Define it.
6993
6994         * defaults.h (CPLUSPLUS_CPP_SPEC): New macro.
6995         * gcc.c (struct compiler): Add cpp_spec field.
6996         (input_file_compiler): New variable.
6997         (do_spec_1): Allow a particular compiler to handle `%C'
6998         specially.
6999         (main): Store the current compiler in input_file_compiler.
7000         * tm.texi (CPLUSPLUS_CPP_SPEC): Document.
7001
7002 2001-02-07  Zack Weinberg  <zack@wolery.stanford.edu>
7003
7004         * cpphash.h (struct spec_nodes): Add n_true and n_false.
7005         * cppinit.c (cpp_create_reader): Initialize them.
7006         (append_include_chain): cxx_aware arg might be unused.
7007         * cppexp.c (lex): In C++ mode, recognize 'true' and 'false'
7008         keywords and give them their phase 7 meaning.  Pedwarn about
7009         this unless '__bool_true_false_are_defined' is defined.
7010
7011 2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
7012
7013         * lcm.c (optimize_mode_switching): Emit mode_set before the
7014         JUMP_INSN of an abnormal edge.
7015
7016 2001-02-07  Bernd Schmidt  <bernds@redhat.com>
7017
7018         * builtins.c (expand_builtin_setjmp_receiver): Emit an ASM_INPUT as
7019         a scheduling barrier at the end.
7020
7021         * tm.texi (MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Document.
7022
7023 2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
7024
7025         * config/sh/sh.md (reload_outsf): Removed.
7026         (movsf_ie): Introduce constraints for FPUL loads and stores.
7027         (reload_insf): Broaden the output constraint.
7028
7029         * config/elfos.h (INT_ASM_OP): Don't define it if it's already
7030         defined.
7031         * config/sh/sh.h (INT_ASM_OP, ASM_OUTPUT_CONSTRUCTOR,
7032         ASM_OUTPUT_DESTRUCTOR): Copy definitions from config/elfos.h.
7033
7034 2001-02-06  Chandrakala Chavva  <cchavva@redhat.com>
7035
7036         * final.c: Revert my previous changes.
7037         * output.h: Make profile_label_no extern.
7038         * config/rs6000/rs6000.c (output_profile_hook): Use standard functions
7039         for generating label.
7040
7041 2001-02-06  Laurynas Biveinis  <lauras@softhome.net>
7042
7043         * config/i386/djgpp.h: Add comments about standard paths.
7044         (MD_EXEC_PREFIX): Undefine before defining.
7045         (MD_STARTFILE_PREFIX): New.
7046
7047 2001-01-30  Bruce Korb  <bkorb@gnu.org>
7048
7049         fixinc/fixincl.c(process):  Emit error message only if appropriate :)
7050         (load_file): do not rely on load_file_data() to close file pointer
7051         fixinc/fixlib.c(load_file_data): do not close passed in file pointer
7052         fixinc/inclhack.def(irix_limits_const): add test_text
7053
7054 2001-02-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7055
7056         * cppexp.c (parse_defined): Improve diagnostics for invalid
7057         syntax.
7058
7059 2001-02-06  Neil Booth  <neil@daikokuya.demon.co.uk>
7060
7061         * cppmacro.c (cpp_get_token): Avoid pasting after a builtin.
7062
7063 2001-02-06  Mark Mitchell  <mark@codesourcery.com>
7064
7065         * config/rs6000/rs6000.h (ASM_OUTPUT_SYMBOL_REF): Define.
7066         * config/rs6000/rs6000-protos.h (rs6000_output_symbol_ref): Declare.
7067         * config/rs6000/rs6000.c (VTABLE_NAME_P): New macro.
7068         (rs6000_output_symbol_ref): New function.
7069         (output_toc): Use VTABLE_NAME_P.
7070
7071 Tue Feb  6 07:54:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7072
7073         * print-tree.c (print_node, case PARM_DECL):
7074         Print DECL_ARG_TYPE and DECL_ARG_TYPE_AS_WRITTEN.
7075
7076         * stor-layout.c (reference_types_internal): New variable.
7077         (internal_reference_types): New function.
7078         (layout_type, case REFERENCE_TYPE): Make Pmode if internal.
7079         * tree.h (internal_reference_types): New declaration.
7080
7081         * cse.c (find_best_addr): Fix typo in computing cost.
7082
7083 Mon Feb  5 21:56:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7084
7085         * combine.c (nonzero_bits, case PLUS): If pointers extend unsigned
7086         and this is the sum of a pointer and a constant, we know the result
7087         did not overflow.
7088         (num_sign_bit_copies, case PLUS): Likewise.
7089         * explow.c (convert_memory_address): Remove opposite SUBREG.
7090         * function.c (instantiate_new_reg): New function (from common code).
7091         (instantiate_virtual_regs_1): Call it.
7092         For PLUS, handle if (plus (subreg (virt-reg) (const_int))
7093         if pointers sign- or zero-extend.
7094         * simplify-rtx.c (simplify_unary_operation, case ZERO_EXTEND):
7095         If pointers extend unsigned, use inside of SUBREG.
7096         (simplify_unary_operation, case SIGN_EXTEND): Likewise, if sign extend.
7097
7098 2001-02-05  Benjamin Kosnik  <bkoz@redhat.com>
7099
7100         * Makefile.in (-DGPLUSPLUS_TOOL_INCLUDE_DIR): Change to target
7101         subdir of gcc_gxx_include_dir.
7102         (gcc_gxx_target_include_dir): Remove.
7103
7104 2001-02-05  Jeffrey Oldham  <oldham@codesourcery.com>
7105
7106         * dwarf2out.c: Revise DWARF2 Abbreviation Glossary comments.
7107         (dwarf2out_frame_debug_expr): Revise introductory comments to add
7108         a high-level description.
7109
7110 2001-02-05  Chandrakala Chavva  <cchavva@redhat.com>
7111
7112         * final.c: Move the declaration of profile_label_no to ...
7113         * output.h: ... here.
7114         * function.c (expand_function_start): Call PROFILE_HOOK.
7115         * config/rs6000/aix.h: Define PROFILE_HOOK.
7116         * config/rs6000/rs6000-protos.h: output_profile_hook new.
7117         * config/rs6000/rs6000.c (output_profile_hook): Define.
7118         (output_prolog): Do nothing for ABI_AIX as it is taken care by
7119         output_profile_hook.
7120         tm.texi : Explain new macro PROFILE_HOOK.
7121
7122 2001-02-06  Hans-Peter Nilsson  <hp@axis.com>
7123
7124         * extend.texi (Extended Asm): Do not say that semicolon is always
7125         a valid line-breaking character for GNU assemblers.  Use
7126         newline-tab as the most commonly supported syntax.  Use
7127         newline-tab rather than semicolon in multi-insn examples.
7128
7129 2001-02-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7130
7131         * Makefile.in (gcc_gxx_target_include_dir): Use $(target_alias).
7132
7133 2001-02-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7134             David Edelsohn  <edelsohn@gnu.org>
7135
7136         * config/rs6000/rs6000.c (rs6000_return_addr): Use PIC
7137         code for AIX, even without flag_pic.
7138
7139 2001-02-05  Jakub Jelinek  <jakub@redhat.com>
7140
7141         * c-typeck.c (common_type): push and pop binding level around
7142         calling common_type on function parameters.
7143
7144 Mon Feb  5 14:30:37 2001  Christopher Faylor <cgf@cygnus.com>
7145
7146         * config/i386/cygwin.h (CPP_SPEC): Add missing space after -idirafter.
7147
7148 Mon Feb  5 11:23:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7149
7150         * config/mips/mips.c (override_options): Fix typo in last change.
7151         (mips_make_temp_file): Call fatal_io_error, not pfatal_with_name.
7152         (mips_asm_file_end): Likewise; also pass more args to fatal_io_error.
7153
7154 2001-02-05  Nathan Sidwell  <nathan@codesourcery.com>
7155
7156         * invoke.texi (-fdump-class-layout): Document.
7157         (-fdump-translation-unit): Use `=' as filename separator.
7158
7159 2001-02-05  Mark Mitchell  <mark@codesourcery.com>
7160
7161         * Makefile.in (s-mlib): Don't build multilibs if
7162         --disable-multilib.
7163         (DRIVER_DEFINES): Adjust accordingly.
7164         (gcc.o): Likewise.
7165         (protoize.o): Likewise.
7166         (unprotoize.o): Likewise.
7167         * configure.in: Recognize --enable-multilib.
7168
7169 2001-02-04  Mark Mitchell  <mark@codesourcery.com>
7170
7171         * Makefile.in (DRIVER_DEFINES): Fix quoting.
7172
7173         * Makefile.in (site.exp): Always set HAVE_LIBSTDCXX_V3.
7174         * configure.in: Remove --enable-libstdcxx_v3 support.
7175         * configure: Regenerated.
7176
7177 Sun Feb  4 15:52:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7178
7179         * config/avr/avr.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP):
7180         Call abort instead of fatal.
7181         (TRAMPOLINE_TEMPLATE): Call internal_error instead of fatal.
7182         * config/dsp16xx/dsp16xx.h (FUNCTION_PROFILER): Likewise.
7183         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Likewise.
7184         (TRAMPOLINE_TEMPLATE, INITIALIZE_TRAMPOLINE): Likewise.
7185         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
7186         * config/rs6000/rs6000.h (RETURN_ADDRESS_OFFSET): Likewise.
7187
7188         * diagnostic.h (set_internal_error_function): Renamed.
7189         * toplev.h (internal_error): Renamed from fatal.
7190         (pfatal_with_name): Deleted.
7191         (fatal_io_error): Now has printf-style arguments.
7192         * diagnostic.c (pfatal_with_name): Deleted.
7193         (fatal_io_error): Rework to have args in printf-style.
7194         (set_internal_error_function): Renamed from set_fatal_function.
7195         (internal_error): Renamed from fatal.
7196         (error_recursion, fancy_abort): Call internal_error instead of fatal.
7197         * dwarf2out.c (get_cfa_from_loc_descr): Likewise.
7198         * emit-rtl.c (gen_realpart, gen_imagpart): Likewise.
7199         * expr.c (check_max_integer_computation_mode, expand_expr): Likewise.
7200         * flow.c (verify_flow_info): Likewise.
7201         * config/arm/arm.c (thumb_unexpanded_epilogue): Likewise.
7202         * config/mips/mips.c (save_restore_insns): Likewise.
7203
7204         * except.c (duplicate_eh_handlers): Call abort instead of fatal.
7205         * flow.c (verify_flow_info): Likewise.
7206         * config/arm/arm.c (thumb_load_double_from_address): Likewise.
7207         * config/avr/avr.c (pttreg_to_str, unique_section): Likewise.
7208         (avr_normalize_condition): Likewise.
7209         * config/c4x/c4x.c (c4x_emit_libcall, c4x_valid_operands): Likewise.
7210         * config/dsp16xx/dsp16xx.c (dsp16xx_reg_class_from_letter): Likewise.
7211         (limit_reload_class, double_reg_to_memory): Likewise.
7212         (print_operand_address, emit_1600_code_shift): Likewise.
7213         (gen_tst_reg, gen_compare_reg): Likewise.
7214         * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Likewise.
7215         * config/dsp16xx/dsp16xx.c (dsp16xx_invalid_register_for_compare):
7216         Deleted.
7217         * config/dsp16xx/dsp16xx.md (unnamed cmphi): Call abort instead of it.
7218
7219         * c-parse.in (methoddef): Call fatal_error instead of fatal.
7220         * objc/objc-act.c (build_ivar_chain): Likewise.
7221         * dwarfout.c (dwarfout_init): Call fatal_io_error instead of
7222         pfatal_with_name.
7223         * graph.c (clean_graph_dump_file): Likewise.
7224         * profile.c (init_branch_prob): Likewise.
7225         * objc/objc-act.c (objc_init): Likewise.
7226
7227         * config/arm/arm.c (arm_override_options): Make errors non-fatal.
7228         * config/avr/avr.c (avr_override_options): Likewise.
7229         * config/c4x/c4x.c (c4x_expand_prologue): Likewise.
7230         * config/dsp16xx/dsp16xx.c (function_prologue): Likewise.
7231         * config/h8300/h8300.c (h8300_init_once): Likewise.
7232         * config/mips/mips.c (override_options): Likewise.
7233         * config/i386/i386.c (override_options): Likewise, rework.
7234         * config/m68k/m68k.c (override_options): Likewise.
7235
7236         * config/dsp16xx/dsp16xx.c (print_operand): Call output_operand_lossage
7237         instead of fatal.
7238         * config/mips/mips.c (print_operand): Likewise.
7239         * hash.c (hash_allocate): Don't check for failure returns from
7240         obstack functions that can't fail.
7241         (hash_table_init_n, hash_table_init): Likewise; also now return void.
7242         * hash.h (hash_table_init_n, hash_table_init): Now return void.
7243         * objc/objc_act.c (objc_check_decl): Remove unneeded fatal call.
7244         (get_object_reference): Likewise.
7245
7246 2001-02-04  Nick Clifton  <nickc@redhat.com>
7247
7248         * config/arm/arm.c (all_cores): Add 710T, 720T, 740T, 940T, 9e,
7249         StrongARM1110, 10TDMI, and 1020T.
7250
7251 2001-02-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7252
7253         * mips.h (MULTILIB_ISA_DEFAULT): Don't use #elif.
7254
7255 2001-02-04  Alexandre Oliva  <aoliva@redhat.com>
7256
7257         * config/sh/sh.md (movdf load split): Pass register number to
7258         FP_OR_XD_REGISTER_P.
7259
7260 2001-02-04  Mark Mitchell  <mark@codesourcery.com>
7261
7262         * cppinit.c (BC): New macro.
7263         (builtin_array): Add __GXX_WEAK__.
7264         * cpplib.h (builtin_type): Add BT_WEAK.
7265         * cppmacro.c (builtin_macro): Handle BT_WEAK.
7266         * defaults.h (SUPPORTS_ONE_ONLY): Define.
7267         * varasm.c (SUPPORTS_ONE_ONLY): Do not define.
7268
7269 2001-02-03  Jakub Jelinek  <jakub@redhat.com>
7270
7271         * cppinit.c (append_include_chain): Honor NO_IMPLICIT_EXTERN_C.
7272
7273 2001-02-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7274
7275         * cpphash.h: Rename _ALIGN POOL_ALIGN.
7276         * cpplex.c (new_chunk, _cpp_pool_reserve): Update.
7277
7278 2001-02-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7279
7280         * cpphash.h: Rename ALIGN _ALIGN.
7281         * cpplex.c (new_chunk, _cpp_pool_reserve): Update.
7282
7283 Fri Feb  2 23:15:29 2001  Christopher Faylor <cgf@cygnus.com>
7284
7285         * config/i386/cygwin.h (CPP_SPEC): Reorganize YA to better handle cross
7286         compilation environment.
7287         * config/i386/t-cygwin (T_CPPFLAGS): Define CYGWIN_CROSS_DIR to allow
7288         control over location of cygwin includes and libs.
7289
7290 2001-02-03  Michael Hayes  <m.hayes@elec.canterbury.ac.nz)
7291
7292         * c4x.h (HARD_REGNO_CALL_PART_CLOBBERED): Fix typo.
7293
7294 2001-02-02  lars brinkhoff  <lars@nocrew.org>
7295
7296         * md.texi (Standard Names): remove reference to spur.md.
7297
7298 2001-02-03  Michael Hayes  <m.hayes@elec.canterbury.ac.nz)
7299
7300         * c4x.h (IS_INT_CALL_SAVED_REG, IS_FLOAT_CALL_SAVED_REG): Define.
7301         (HARD_REGNO_CALL_PART_CLOBBERED): Use IS_FLOAT_CALL_SAVED_REG.
7302         (INITIAL_FRAME_POINTER_OFFSET, INITIAL_ELIMINATION_OFFSET): Likewise.
7303         * c4x.c (c4x_hard_regno_rename_ok): Use IS_XXX_CALL_SAVED_REG.
7304         (c4x_expand_prologue, c4x_expand_epilogue): Likewise.
7305
7306 2001-02-03  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7307
7308         * c4x.c (group1_reg_operand, group1_mem_operand, arx_reg_operand,
7309         c4x_arn_reg_operand, c4x_arn_mem_operand): Do not check register
7310         number before reload.
7311         (c4x_adjust_cost): Return zero before reload.
7312         * c4x.md (load_immed_address+1, load_immed_address+2): Do not
7313         split before reload.
7314
7315 2001-02-03  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7316
7317         * c4x.c (c4x_hard_regno_rename_ok): New.
7318         * c4x-protos.h (c4x_hard_regno_rename_ok): New.
7319         * c4x.h (HARD_REGNO_RENAME_OK): Define.
7320
7321 Fri Feb  2 20:03:50 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7322
7323         * diagnostic.h: Add missing "extern" in all declarations.
7324
7325 2001-02-02  Alex Samuel  <samuel@codesourcery.com>
7326
7327         * Makefile.in (gcc_gxx_target_include_dir): Generate dynamically
7328         as for gcc_gxx_include_dir.
7329
7330 2001-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
7331
7332         * cpp.texi, invoke.texi: Update -Wtraditional documentation.
7333
7334 2001-02-02  Alexandre Oliva  <aoliva@redhat.com>
7335
7336         * config/sh/sh.c (output_far_jump): Don't use braf on SH1.  Emit
7337         label before alignment to be used as the braf base address.
7338         * config/sh/sh.md (length): Use longer lengths for SH1 PIC far
7339         branches.
7340         (casesi_jump_2): Require at least TARGET_SH2.
7341
7342         * config/float-sh.h (LDBL_EPSILON, LDBL_MIN, LDBL_MAX): Prevent
7343         truncation to 32-bit doubles on -m3e and -m4-single-only.
7344
7345 2001-02-02  Mark Mitchell  <mark@codesourcery.com>
7346
7347         * gcc.c (init_gcc_specs): New function.  Make -shared-libgcc
7348         the default when building a shared object.
7349         (init_spec): Use it.
7350         * testsuite/lib/g++.exp: Include the directory where libgcc
7351         is located to the LD_LIBRARY_PATH list.
7352         * invoke.texi (-shared-libgcc): Document the cases in which
7353         GCC defaults to using the shared libgcc.
7354
7355 2001-02-02  Alexandre Oliva  <aoliva@redhat.com>
7356
7357         * config/fp-bit.h (MAX_USI_INT, MAX_SI_INT): Don't assume
7358         unsigned is wide enough.
7359         (BITS_PER_SI): New.
7360         * config/fp-bit.c (_fpmul_parts): Don't assume 32-bits SI.
7361         (si_to_float): Likewise.
7362         (float_to_si, float_to_usi): Use BITS_PER_SI.
7363
7364 2001-02-01  Jeffrey Oldham  <oldham@codesourcery.com>
7365
7366         * dwarf2out.c: Added explanation of abbreviations.
7367         (def_cfa_1): Added comments listing DWARF2 instructions.
7368         (cfa_temp_reg): Removed in favor of cfa_temp.
7369         (cfa_temp_value): Removed in favor of cfa_temp.
7370         (cfa_temp): New global variable.
7371         (dwarf2out_frame_debug_expr): Added extensive introductory
7372         comments explaining the function's transformations.  Revised to
7373         use cfa_temp.  Added some rtx checking.  Generalize IOR case.
7374         (dwarf2out_frame_debug): Revised to use cfa_temp.
7375         (output_aranges): Cast as "unsigned" to avoid warning.
7376         * rtl.texi (RTX_FRAME_RELATED_P): Revise entry to emphasize better
7377         explain which instructions must be marked.
7378
7379 2001-02-01  Richard Henderson  <rth@redhat.com>
7380
7381         * local-alloc.c (update_equiv_regs): Copy INSN_CODE to the
7382         new instruction.
7383
7384 2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
7385
7386         * config/sh/crt1.asm (main_k): Modified so that start calls
7387         ___setup_argv_and_call_main.
7388
7389 2001-02-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7390
7391         * cpphash.h (struct cpp_buffer): Move saved_flags from cpp_reader.
7392         * cpplex.c (_cpp_lex_token): New token picks up the saved flags,
7393         and AVOID_LPASTE is cleared on meeting an unescaped newline.
7394         * cppmacro.c (builtin_macro): Set builtin flags here.
7395         (paste_all_tokens): Preserve AVOID_LPASTE on pasted token.
7396         (replace_args): Clarify intent.
7397         (cpp_get_token): Macro expansion tokens get the saved flags.
7398         Update.
7399         * cppmain.c (scan_buffer): Remove now-redundant print.printed
7400         check.
7401
7402 2001-02-01  Jeffrey Oldham  <oldham@codesourcery.com>
7403
7404         * config/mips/iris6.h (SUPPORTS_INIT_PRIORITY): Reverse change of
7405         2001-Jan-29.
7406
7407 Thu Feb  1 07:22:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7408
7409         * builtins.c (expand_builtin_alloca): allocate_dynamic_stack_space
7410         returns Pmode pseudo, but we need ptr_mode.
7411         * explow.c (allocate_dynamic_stack_space): Use plus_constant.
7412         Remove bogus conversions; use HOST_WIDE_INT for size.
7413         Don't use TARGET if wrong mode.
7414
7415         * config/i386/i386.c (ix86_compute_frame_size): Allow
7416         stack_alignment_needed to be non-default even if size is zero.
7417
7418 2001-01-31  Alan Modra <alan@linuxcare.com.au>
7419
7420         * pa.c (hppa_init_pic_save): New function.
7421         * pa.h (hppa_init_pic_save): Declare.
7422         * pa.md (call, call_value, sibcall, sibcall_value): Use
7423         the above instead of duplicated code.
7424
7425         * pa.c (hppa_encode_label): Correct size of alloca buffer
7426         so we don't overrun it.  Correct leading `*' case.
7427         * pa.h (STRIP_NAME_ENCODING): Simplify now that we don't
7428         need to handle `*@'.
7429         (FUNCTION_NAME_P): Likewise.
7430
7431 2001-01-31  Richard Henderson  <rth@redhat.com>
7432
7433         * config.gcc (alpha-osf5): Use float-i128.h.
7434
7435         * config/float-i128.h (FLT_EVAL_METHOD, DECIMAL_DIG): Define.
7436         * config/float-i32.h: Likewise.
7437         * config/float-i64.h: Likewise.
7438         * config/float-sh.h: Likewise.
7439         * config/float-sparc.h: Likewise.
7440
7441 2001-01-31  DJ Delorie  <dj@redhat.com>
7442
7443         * expmed.c (extract_bit_field): allow non-integral modes if we
7444         want to extract a whole register from itself.
7445
7446 2001-01-31  Jakub Jelinek  <jakub@redhat.com>
7447
7448         * c-typeck.c (set_init_index): If first is equal to last, assume as
7449         if it was not a range at all.
7450
7451 2001-01-31  Alexandre Oliva  <aoliva@redhat.com>
7452
7453         * config/fp-bit.c: Include tm.h.
7454         (float_to_si): Don't assume SImode is 32-bits wide.
7455         (float_to_usi): Likewise.
7456
7457 2001-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
7458
7459         * c-parse.in (structsp): Pedwarn when "enum foo" refers to an
7460         incomplete type.
7461         (typename): Call pending_xref_error after parsing typed_typespecs.
7462         * c-decl.c (lookup_tag): Give error immediately rather than
7463         leaving it pending if the tag of the wrong type is in the same
7464         binding level.
7465         (xref_tag): Don't pedwarn for forward declarations of enum types
7466         here.
7467         * gcc.texi (Actual Bugs): Remove entry for misuse of struct, union
7468         and enum tags.
7469
7470 2001-01-31  Alexandre Oliva  <aoliva@redhat.com>
7471
7472         * config/float-sparc.h (LDBL_MAX) [sparc32]: Fix typo.
7473
7474 2001-01-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7475
7476         * cpplib.c (T_ELIF): Move to STDC89, not that it matters.
7477         (_cpp_handle_directive): Suggest not using #elif with -Wtraditional.
7478
7479 2001-01-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7480
7481         * cpphash.h (struct cpp_reader): New saved_flags.
7482         * cppmacro.c (cpp_get_token): Use saved_flags to remember
7483         to avoid a paste after a pasted token.
7484
7485 2001-01-31  Alexandre Oliva  <aoliva@redhat.com>
7486
7487         * libgcc2.h (Wtype_MAX, Wtype_MIN): Define.
7488         * libgcc2.c (__fixunssfSI, __fixunsdfSI, __fixunsxfSI): Use
7489         Wtype_MIN instead of LONG_MIN.
7490
7491 2001-01-30  Jeffrey Oldham  <oldham@codesourcery.com>
7492
7493         * fixinc/fixincl.tpl: Add 2001 to copyright.  Change name of
7494         README file.
7495         * fixinc/fixincl.x: Regenerated.
7496         * fixinc/inclhack.def (irix_limits_const): New definition to
7497         convert "const" to "__const" in limits.h.
7498
7499 2001-01-30  Jeffrey Oldham  <oldham@codesourcery.com>
7500
7501         * fixinc/genfixes (AG): Fix "autogen4" thinko.
7502
7503 2001-01-30  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
7504
7505         * regmove.c (try_auto_increment): Change REG_DEAD into REG_UNUSED
7506         when register dies in the insn.
7507
7508 2001-01-30  Neil Booth  <neil@daikokuya.demon.co.uk>
7509
7510         * diagnostic.c (fatal): Fix word wrap.
7511
7512 2001-01-30  Alexandre Oliva  <aoliva@redhat.com>
7513
7514         * combine.c (try_combine): Fix SUBREG setting for
7515         HOST_BITS_PER_WIDE_INT >= 2 * BITS_PER_WORD.
7516
7517 2001-01-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7518
7519         * jump.c (comparison_dominates_p): Don't try to handle UNKNOWN
7520         comparison codes.
7521
7522 2001-01-30  Neil Booth  <neil@daikokuya.demon.co.uk>
7523
7524         * c-decl.c (c_expand_body): Check TYPE_SIZE_UNIT (ret_type)
7525         is not NULL.
7526         * toplev.c (decode_W_option): Update warn_larger_than
7527         unconditionally for each processed switch.
7528
7529 2001-01-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7530
7531         * pa.c (pa_init_machine_status): Initialize pic_offset_table_save_rtx
7532         to NULL_RTX.
7533         (hppa_expand_prologue): Delete code to save pic offset table register
7534         in the function prologue.
7535         * pa.h (PIC_OFFSET_TABLE_SAVE_RTX): Correct type in comment.
7536         * pa.md (call, call_value, sibcall, sibcall_value): Save the pic offset
7537         table register at the beginning of the function after the prologue.
7538
7539 2001-01-29  lars brinkhoff  <lars@nocrew.org>
7540
7541         * tm.texi (PUSH_ROUNDING): Remove duplicate lines.
7542
7543 2001-01-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7544             Jeff Law <law@redhat.com>
7545
7546         * pa.md (return): Revise comment for trivial return.
7547         (return_internal): Non-trivial return pattern for non-PIC code.
7548         (return_internal_pic): Non-trivial return pattern for PIC code.
7549         It uses the PIC register to ensure it is restored after
7550         function calls.
7551         (epilogue): Generate appropriate return for PIC and non-PIC code.
7552
7553 Mon Jan 29 23:53:14 2001  Christopher Faylor <cgf@cygnus.com>
7554
7555         * config/i386/cygwin.h: Fix -mno-cygwin search path for link.
7556
7557 2001-01-29  DJ Delorie  <dj@redhat.com>
7558
7559         * combine.c (if_then_else_cond): Pass the correct mode to
7560         operand_subword() for constants.
7561
7562 Mon Jan 29 20:38:19 2001  Christopher Faylor <cgf@cygnus.com>
7563
7564         * config/i386/cygwin.h: Add w32api to include search.  Search different
7565         directories in a cross-build environment.
7566
7567 2001-11-29  Tim Josling  <tej@melbpc.org.au>
7568
7569         * tree.h (TYPE_STUB_DECL): Add documentation.
7570
7571 2001-11-29  Laurynas Biveinis  <lauras@softhome.net>
7572
7573         * sdbout.c (sdbout_one_type): Skip types with indeterminate size.
7574         (sdbout_field_types): Likwise.  Fix use of host_integerp.
7575
7576 2001-01-29  Thomas Pfaff  <tpfaff@gmx.net>
7577
7578         * mingw32.h: Override STARTFILE_SPEC and LINK_SPEC declared in
7579         cygwin.h.
7580
7581 2001-01-29  Jeffrey Oldham  <oldham@codesourcery.com>
7582
7583         * config/mips/iris6.h (SUPPORTS_INIT_PRIORITY): Revise definition
7584         to use flag_gnu_linker.
7585
7586 2001-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7587
7588         * cpplib.c (T_BAD_DIRECTIVE): Remove.
7589         (_cpp_init_stacks): Loop from 0 to N_DIRECTIVES - 1.
7590
7591 2001-01-29  Joseph S. Myers  <jsm28@cam.ac.uk>
7592
7593         * tree.c, tree.h (build_parse_node): Remove; was identical to
7594         build_nt.
7595         * c-lang.c (start_cdtor), objc/objc-act.c
7596         (build_module_descriptor): Use build_nt instead of
7597         build_parse_node.
7598
7599 2001-01-29  Jakub Jelinek  <jakub@redhat.com>
7600
7601         * config/i386/i386.md (addqi_1_lea): Fix mode (QI instead of HI).
7602         (testqi_1, andqi_2): If widening to SImode, make sure CONST_INT does
7603         not have any upper bits set.
7604
7605 2001-01-29  Phil Edwards  <pme@sources.redhat.com>
7606
7607         * COPYING.LIB:  Update to LGPL 2.1 from the FSF.
7608
7609 2001-01-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7610
7611         * stmt.c (estimate_case_costs): Use integer_minus_one_node.
7612
7613         * tree.c (build_common_tree_nodes_2): Set integer_minus_one_node.
7614
7615         * tree.h (tree_index): Add new element TI_INTEGER_MINUS_ONE.
7616         (integer_minus_one_node): Define.
7617
7618 2001-01-28  Alexandre Oliva  <aoliva@redhat.com>
7619
7620         * Makefile.in (bootstrap2-lean): Fix typo.
7621
7622 2001-01-28  Neil Booth  <neil@daikokuya.demon.co.uk>
7623
7624         * cpphash.c (_cpp_cleanup_hashtable, _cpp_lookup_with_hash)
7625         : Don't set fe_value.
7626         * cpplib.h (AVOID_LPASTE): New flag.
7627         (struct cpp_hashnode): Remove fe_value.
7628         * cpplex.c (cpp_avoid_paste): Don't paste '.' with a number.
7629         * cppmacro.c (builtin_macro): Don't set flags here.
7630         (replace_args): Set AVOID_LPASTE flag on first token of an
7631         argument, and the token following it.
7632         (cpp_get_token): Set AVOID_LPASTE flag on first token of a
7633         macro expansion, and on the token following it.  Do it for
7634         builtins too.
7635         * cppmain.c (scan_buffer): Avoid pasting only flagged tokens.
7636
7637 2001-01-27  Richard Henderson  <rth@redhat.com>
7638
7639         * config/alpha/t-ieee: Remove multilibbing.
7640         (TARGET_LIBGCC2_CFLAGS): Add -mieee.
7641
7642 2001-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7643
7644         * configure.in: Arrange to include defaults.h in [ht]config.h/tm.h.
7645
7646         * Makefile.in: Remove all dependencies on defaults.h.
7647         * builtins.c: Don't include defaults.h.
7648         * c-common.c: Likewise.
7649         * c-decl.c: Likewise.
7650         * c-pragma.c: Likewise.
7651         * c-typeck.c: Likewise.
7652         * combine.c: Likewise.
7653         * i386.c: Likewise.
7654         * frame-ia64.c: Likewise.
7655         * cppexp.c: Likewise.
7656         * crtstuff.c: Likewise.
7657         * dbxout.c: Likewise.
7658         * dwarf2out.c: Likewise.
7659         * dwarfout.c: Likewise.
7660         * emit-rtl.c: Likewise.
7661         * except.c: Likewise.
7662         * expr.c: Likewise.
7663         * final.c: Likewise.
7664         * frame-dwarf2.c: Likewise.
7665         * libgcc2.c: Likewise.
7666         * optabs.c: Likewise.
7667         * profile.c: Likewise.
7668         * sdbout.c: Likewise.
7669         * toplev.c: Likewise.
7670         * tradcif.y: Likewise.
7671         * tree.c: Likewise.
7672         * varasm.c: Likewise.
7673
7674 2001-01-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7675
7676         * builtins.c (expand_builtin_fputs): Use size_one_node when
7677         transforming into fwrite.
7678
7679 2001-01-27  Joseph S. Myers  <jsm28@cam.ac.uk>
7680
7681         * extend.texi (Attribute Syntax): New section.
7682
7683 2001-01-27  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
7684
7685         * fixproto: Correctly install synthesised unistd.h and stdlib.h when
7686         they didn't need fixing.
7687
7688 2001-01-27  Janis Johnson <janis@us.ibm.com>
7689
7690         * config.gcc (i[34567]86-sequent-{ptx4*,sysv4*}): Use usegas.h
7691         if appropriate.
7692         * config/ptx4.h: Several fixes to build on DYNIX/ptx v4.[456], and
7693         to remove macro definitions that are duplicated from elfos.h.
7694
7695 2001-01-27  Richard Henderson  <rth@redhat.com>
7696
7697         * config/i386/sco5gas.h: Move ...
7698         * config/usegas.h: ... here.
7699         * config.gcc (i[34567]86-*-sco3.2v5) [tm_file]: Update.
7700
7701 2001-01-27  Jakub Jelinek  <jakub@redhat.com>
7702
7703         * c-typeck.c (struct constructor_stack): Add range_stack member.
7704         (really_start_incremental_init): Clear it.
7705         (push_init_level): Save constructor_range_stack and clear it if
7706         pushing explicit braces.
7707         (pop_init_level): abort if constructor_range_stack is non-zero at
7708         explicit closing brace.  Restore saved constructor_range_stack if
7709         not implicit.
7710
7711 2001-01-27  Alexandre Oliva  <aoliva@redhat.com>
7712
7713         * expr.c (emit_move_insn): Add REG_EQUAL note when constant loaded
7714         into register was forced into memory.
7715
7716 2001-01-27  Alexandre Oliva  <aoliva@redhat.com>
7717
7718         * Makefile.in: Remove uses of + before $(MAKE).
7719
7720 2001-01-26  Richard Henderson  <rth@redhat.com>
7721
7722         * stmt.c (cost_table): Remove.
7723         (COST_TABLE, cost_table_initialized): New.
7724         (estimate_case_costs): Use the later instead of the former.
7725         (balance_case_nodes): Likewise.
7726
7727 2001-01-26  Richard Henderson  <rth@redhat.com>
7728
7729         * alias.c (objects_must_conflict_p): Read-only slots may not
7730         conflict despite having the same type.
7731
7732 2001-01-27  Michael Hayes  <mhayes@redhat.com>
7733
7734         * loop.c (loop_giv_reduce_benefit): Copy mode size into
7735         int variable.
7736         (check_ext_dependant_givs): Initialise u_start_val and
7737         u_end_val.
7738         (load_mems): Make last_max_reg unsigned.
7739         (try_swap_copy_prop): Use INSN_P and initialise set.
7740
7741 Fri Jan 26 23:22:58 2001  Denis Chertykov  <denisc@overta.ru>
7742
7743         * README.AVR : Removed.
7744
7745 Fri Jan 26 11:37:26 2001  Jeffrey A Law  (law@cygnus.com)
7746
7747         * pa-64.h (text_section): Remove declaration.
7748
7749         * pa.md (return_internal): Remove mode on PIC register use.
7750
7751 2001-01-25  lars brinkhoff  <lars@nocrew.org>
7752
7753         * tm.texi (DATA_ALIGNMENT, LOCAL_ALIGNMENT, ASM_OPEN_PAREN,
7754         ASM_CLOSE_PAREN): fix typos.
7755
7756 2001-01-25  Mark Mitchell  <mark@codesourcery.com>
7757
7758         * acconfig.h: Define `const' to the empty string if neither
7759         __STDC__ nor __cplusplus is defined.
7760         * config.in: Regenerated.
7761
7762 2001-01-25  David Edelsohn  <edelsohn@gnu.org>
7763
7764         * config.gcc (rs6000-ibm-aix[5-9]*): Change to aix51.h.
7765         * collect2.c (main): Delete importf.  Add ".obj" file extension.
7766         (GCC_CHECK_HDR): Handle AIX V5 new magic number.
7767         (aix_std_libs): Add additional AIX libraries to skip.
7768         * config/rs6000/aix.h (MY_ISCOFF): Add AIX V5 new magic number.
7769         * config/rs6000/aix51.h: New file.
7770
7771 2001-01-25  Michael Hayes  <mhayes@redhat.com>
7772
7773         * loop.c (loop_call_insn_emit_before, loop_call_insn_hoist): New.
7774         (loop_insn_emit_before): No longer static.
7775         (move_movables): Replace emit_insn_after with loop_insn_emit_after.
7776         (loop_givs_rescan, load_mems): Likewise.
7777         (check_dbra_loop): Replace emit_insn_before with loop_insn_emit_before.
7778         (maybe_eliminate_biv_1):
7779         (move_movables): Replace emit_call_insn_before with
7780         loop_call_insn_hoist.
7781         * loop.h (loop_insn_emit_before): Add.
7782         * unroll.c (copy_loop_body): Replace emit_insn_before with
7783         loop_insn_emit_before.
7784
7785 2001-01-25  Neil Booth  <neil@daikokuya.demon.co.uk>
7786
7787         * diagnostic.c (fatal): Request preprocessed source.
7788
7789 Thu Jan 25 02:01:16 2001  J"orn Rennecke <amylaar@redhat.com>
7790
7791         * c-decl.c (duplicate_decls): If different_binding_level is nonzero,
7792         olddecl has argument types and newdecl has none, use the argument
7793         types from olddecl.
7794
7795 2001-01-24  Ulrich Drepper  <drepper@redhat.com>
7796
7797         * dwarf2out.c (prefix_of): New function.  Determine longest common
7798         prefix of the two arguments.  The units are whole path components.
7799         (output_file_names): When adding a new directory find the one entry
7800         with the longest common prefix already in the list.  Artificially
7801         generate entry if there is none for this prefix.
7802         Fix test to check whether the zeroth directory entry is used.
7803
7804 Wed Jan 24 23:51:55 2001  J"orn Rennecke <amylaar@redhat.com>
7805
7806         * reload1.c (reload_reg_free_for_value_p): New parameter start_regno.
7807         Changed all callers.  Take it into account when deciding if a
7808         previously loaded value matches.
7809
7810 2001-01-24  Richard Henderson  <rth@redhat.com>
7811
7812         * reload.c (find_reloads_subreg_address): Fail the substitution
7813         if the resulting address is insufficiently aligned.
7814
7815 2001-01-24  DJ Delorie  <dj@redhat.com>
7816
7817         * combine.c (combine_simplify_rtx): If the modes are all VOIDmode,
7818         check the original operand's mode also.
7819         * simplify-rtx.c (simplify_ternary_operation): Ditto.
7820
7821 2001-01-24  Joseph S. Myers  <jsm28@cam.ac.uk>
7822
7823         * c-parse.in (cast_expr): Move compound literals from here ...
7824         (primary): ... to here.  Use standard terminology "compound
7825         literal" instead of "constructor expression".
7826
7827 2001-01-24  Joseph S. Myers  <jsm28@cam.ac.uk>
7828
7829         * gcc.1, cpp.1: Regenerate.
7830
7831 2001-01-24  Alexandre Oliva  <aoliva@redhat.com>
7832
7833         * calls.c (emit_library_call_value_1): Memory slot for
7834         pass-by-reference argument should have the mode of the argument,
7835         not of the pointer to it.
7836
7837 2001-01-24  Tom Tromey  <tromey@redhat.com>
7838
7839         * gcc.texi (G++ and GCC): Mention gcj manual.
7840         (Standards): Link to section of manual mentioning gcj/Java
7841         compatibility.
7842
7843 2001-01-24  Jakub Jelinek  <jakub@redhat.com>
7844
7845         * cppfiles.c (_cpp_read_file): Add to dependencies if requested.
7846         * cppinit.c (cpp_start_read): Remove deps_add_dep call.
7847         * tradcpp.c (main): Add -imacros or -include'd dependencies
7848         for -M*.
7849         * cpp.texi (-M, -MM): Document -M -include behaviour.
7850
7851 2001-01-24  Roger Collins <roger@ProProject.com>
7852
7853         * config/i386/xm-i386.h: Make __i386__ a boolean macro.
7854
7855 2001-01-24  Will Cohen  <wcohen@redhat.com>
7856
7857         * config/mips/abi64.h (RETURN_IN_MEMORY): Always take into account
7858         whether registers are 32 bits or 64 bits in size.
7859
7860 2001-01-24  Ben Elliston  <bje@redhat.com>
7861
7862         * config/m32r/m32r.h (PREDICATE_CODES): Remove m32r_not_same_reg.
7863
7864 2001-01-24  Richard Henderson  <rth@redhat.com>
7865
7866         * config/alpha/alpha.md (builtin_longjmp_internal): New.
7867         (builtin_longjmp): Use it instead of emit_indirect_jump.
7868
7869 2001-01-23  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7870
7871         * bb-reorder.c (make_reorder_chain_1): Handle case where
7872         jump edge goes to the same block as the fallthru edge.
7873
7874 2001-01-23  Jim Wilson  <wilson@redhat.com>
7875
7876         * dwarf2out.c (dwarf2out_line): Make last_file_num be unsigned.
7877         * frame.h (__ia64_personality_v1): Add prototype.
7878         * libgcc2.c (ia64_throw_helper): Change personality declaration to
7879         prototype form.  Add void * cast to first argument to personality
7880         call.
7881         * real.c (e113toe): Surround with INTEL_EXTENDED_IEEE_FORMAT ifdefs.
7882         (asctoe113): Likewise.
7883         * config/ia64/frame-ia64.c: Include eh-common.h.
7884         * config/ia64/ia64-protos.h (sdata_section, sbbs_section): Add
7885         prototypes.
7886         * config/ia64/ia64.c (emit_insn_group_barriers): Add ATTRIBUTE_UNUSED
7887         to dump parameter.
7888         (itanium_split_issue): Add prototype.
7889         (gen_nop_type): Ifdef out.
7890         (find_best_packet): Initialize best_packet.
7891         (ia64_encode_section_info): New local string.  Use for ggc_alloc_string
7892         result.
7893         * config/ia64/ia64.h (ASM_OUTPUT_LONG_DOUBLE): Use 0L not 0.
7894         * config/ia64/ia64.md (bsp_value): Add explicit stop bit at start.
7895         (flushrs): Add explicit stop bit at end.
7896         * config/ia64/lib1funcs.asm (__ia64_restore_stack_nonlocal): Change
7897         trailing \ to >.
7898
7899 2001-01-23  Chris Demetriou  <cgd@broadcom.com>
7900
7901         * libgcc-std.ver (GCC_3.0): Add __terminate_func_set to list
7902         of EH symbols.
7903         * libgcc2.c (__terminate_func): Make variable static.
7904         (__terminate_set_func): New function to set __terminate_func.
7905         * libgcc2.h (__terminate_func_ptr): New typedef.
7906         (__terminate_set_func): New function.
7907
7908 2001-01-23  Richard Henderson  <rth@redhat.com>
7909
7910         * flow.c (init_propagate_block_info): Don't consider unchanging
7911         memories for dead frame store elimination.
7912
7913 2001-01-23  Richard Henderson  <rth@redhat.com>
7914
7915         * varasm.c (UNIQUE_SECTION): Move default implementation ...
7916         * defaults.h: ... here.
7917
7918 2001-01-24  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
7919
7920         * c4x.h (TARGET_LOAD_DIRECT_MEMS): Define.
7921
7922 2001-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
7923
7924         * c-lex.c (lex_charconst): Fix typo: s/p/str.
7925
7926 2001-01-23  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7927
7928         * rs6000.h (rs6000_return_addr): Move prototype from here...
7929         * rs6000-protos.h (rs6000_return_addr): ...to here.
7930         (rs6000_init_expanders): Delete prototype.
7931
7932 2001-01-23  Nick Clifton  <nickc@redhat.com>
7933
7934         * invoke.texi: Replace , with \, inside @gccoptlist macros.
7935         (Spec Files): Document %B and %j and %. and %v3 and %M and
7936         %{S*&T} spec switches.
7937
7938 2001-01-24  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7939
7940         * c4x.c (c4x_r11_set_p): Calculate rtx code correctly.
7941
7942 2001-01-23  Chris Demetriou  <cgd@sibyte.com>
7943             Neil Booth  <neil@daikokuya.demon.co.uk>
7944
7945         * cpperror.c: Merge handlers of PEDWARN and WARNING.
7946         Have -Werror make pedantic warnings errors, like the
7947         rest of GCC.
7948
7949 2001-01-23  Phil Edwards  <pme@sources.redhat.com>
7950
7951         * c-tree.texi (IDENTIFIER_LENGTH):  Fix typo.
7952
7953 2001-01-23  Jakub Jelinek  <jakub@redhat.com>
7954
7955         * integrate.h (struct inline_remap): Add compare_src, compare_mode.
7956         * integrate.c (expand_inline_function): Initialize them.
7957         (subst_constants): If changing COMPARE so that both its arguments
7958         will be VOIDmode and the comparison mode will be lost, note
7959         compare_mode.  Use the recorded compare_mode to optimize
7960         IF_THEN_ELSE.
7961
7962 2001-01-23  Jason Merrill  <jason@redhat.com>
7963
7964         * dwarf2out.c (new_die): Use xcalloc.
7965         (output_die): Abort rather than emit a local reference to offset 0.
7966
7967 2001-01-17  Andrew Haley  <aph@redhat.com>
7968
7969         * libgcc2.c (get_reg_addr): Don't abort if we haven't got a copy
7970         of a saved register; return NULL instead.
7971         (copy_reg): Take a pointer to a source register rather than a
7972         frame_state.
7973         (next_stack_level): Remember the address in the stack frame of all
7974         saved registers.
7975         Use the saved register pointer array as the source of the CFA.
7976         (throw_helper): Rewrite.  Unwind once rather than twice and keep
7977         track of saved registers as we go.
7978
7979 2001-01-23  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
7980
7981         * c4x-protos.h (c4x_legitimize_reload_address): Remove.
7982         * c4x.c (c4x_legitimize_reload_address): Remove.
7983         * c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Rewrite to generate correct
7984         reload address for ldp(k) insn.
7985
7986 Mon Jan 22 20:53:47 2001  Jeffrey A Law  (law@cygnus.com)
7987
7988         * pa.md (return_internal): Add a USE of the PIC register to ensure
7989         it is restored after each call.
7990         (return expander): Corresponding changes.
7991
7992 2001-01-22  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7993
7994         * rs6000.h (INIT_EXPANDERS): Delete.
7995         (RETURN_ADDR_RTX): Call rs6000_return_addr().
7996         * rs6000.c (rs6000_override_options): Call *_machine_status from
7997         here...
7998         (rs6000_init_expanders): ...instead of here. Delete.
7999         (rs6000_mark_machine_status): New function.
8000         (rs6000_init_machine_status): Use xcalloc.
8001         (rs6000_return_addr): Generate RTX for the return address.
8002         (rs6000_ra_ever_killed): New, check if LR was ever destroyed.
8003         (rs6000_stack_info): Use it.
8004
8005 2001-01-22  Thomas Pfaff  <tpfaff@gmx.net>
8006
8007         * gthr-win32.h: Include errno.h to get a declaration for
8008         EINVAL and _mingw.h if the target is mingw32.
8009
8010 2001-01-22  Andres Felipe Vargas <avargas@teletulua.com.co>
8011
8012         * cpp.texi: Correct typos.
8013
8014 Mon Jan 22 13:59:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8015
8016         * explow.c (probe_stack_range): Ensure value passed to
8017         stack_check_libfunc is ptr_mode, not Pmode.
8018
8019 Mon Jan 22 16:53:06 2001  J"orn Rennecke <amylaar@redhat.com>
8020
8021         * recog.c (validate_replace_rtx_1): In ZERO_EXTEND / SIGN_EXTEND
8022         case, don't use operand_subword to calculate a SUBREG that is
8023         wider than a word.
8024
8025         * rtl.texi: Comparisons yield 0 or STORE_FLAG_VALUE.
8026
8027 2001-01-22 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8028
8029         * c4x.c (c4x_valid_rptb_p, c4x_label_ref_used_p): New functions.
8030         (c4x_rptb_insert): Call c4x_valid_rptb_p to check if repeat block is
8031         valid.  If not replace it by equivalent insns.
8032
8033 2001-01-22 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8034
8035         * c4x.c (c4x_check_legit_addr): Only check CONST.  Not if CONST
8036         contains SYMBOL_REF, LABEL_REF and CONST_INT.
8037         (c4x_U_constraint, symbolic_address_operand): Likewise.
8038         (c4x_immed_float_constant): Do not check if CONST_DOUBLE is in
8039         memory.
8040         (c4x_r11_set_p, c4x_check_laj_p): New functions.
8041         * c4x-protos.h (c4x_check_laj_p): Add prototype.
8042         * c4x.md (in_annul_slot_3): Do not allow auto-increment in last
8043         anulling slot because of silicon bug.
8044         (laj, lajv): Call c4x_check_laj_p to check for silicon bug.
8045
8046 2001-01-22  Alan Modra <alan@linuxcare.com.au>
8047
8048         * cppexp.c (parse_charconst):  Change `mask' type to agree
8049         with parse_escape.
8050
8051 2001-01-21  Richard Henderson  <rth@redhat.com>
8052
8053         * config/i386/i386.c (ix86_asm_file_end): Disable putting
8054         pic_label_name in a linkonce section.
8055
8056 2001-01-17  Philipp Thomas  <pthomas@suse.de>
8057
8058         * aclocal.m4 (AM_WITH_NLS): Add -lintl to LIBS if gettext was
8059         found in libintl.
8060         * configure: Regenerate.
8061
8062 Sun Jan 21 02:38:56 2001  J"orn Rennecke <amylaar@redhat.com>
8063
8064         * expmed.c (synth_mult, expand_mult_highpart, expand_divmod): Guard
8065         uses of shift_cost, shiftadd_cost and shiftsub_cost with bound checks.
8066
8067 Sun Jan 21 09:44:17 2001  Denis Chertykov  <denisc@overta.ru>
8068
8069         * config/avr/avr.c (ret_cond_branch): New argument (reverse) added.
8070         If REVERSE nonzero then condition code in X must be reversed.
8071         (encode_section_info): Optimise if/else.
8072         (avr_function_value): Fix formatting.
8073
8074         * config/avr/avr.md (branch): Call to ret_cond_branch changed.
8075         (difficult_branch): Likewise.
8076         (rvbranch): Likewise.
8077         (difficult_rvbranch): Likewise.
8078
8079         * config/avr/avr-protos.h (ret_cond_branch): Prototype changed.
8080
8081         * config/avr/libgcc.S: Fix comment.
8082
8083 2001-01-20  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
8084
8085         * sdbout.c (PUT_SDB_DEF): Fix after last bogus change.
8086
8087 2001-01-20  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
8088
8089         * cppinit.c (INO_T_EQ): Don't use #elif, fix formatting.
8090
8091 2001-01-20  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
8092
8093         * aclocal.m4 (gcc_AC_FUNC_STRSTR): New macro.
8094         * configure.in (gcc_AC_FUNC_STRSTR): Add invokation.
8095         * configure, config.in: Regenerate.
8096         * Makefile.in (STRSTR, HOST_STRSTR, USE_HOST_STRSTR): New variables.
8097         (LIBDEPS, HOST_LIBDEPS, LIBS, HOST_LIBS): Add strstr handling.
8098         (strstr.o, $(HOST_PREFIX_1)strstr.o): New rules.
8099         (doprint.o): New rule.
8100
8101 2001-01-20  Joseph S. Myers  <jsm28@cam.ac.uk>
8102
8103         * c-typeck.c (digest_init): Handle boolean types as scalars.
8104
8105 Sat Jan 20 12:46:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8106
8107         * stmt.c (expand_return): Don't return anything if size is zero.
8108         Delete redundant assignment to BYTES.
8109         * expr.c (move_block_from_reg): Do nothing if NREGS is zero.
8110
8111 2001-01-20  Marek Michalkiewicz  <marekm@linux.org.pl>
8112
8113         * config/avr/avr.h (INIT_TARGET_OPTABS): Remove most of it, was
8114         the same as the default library function names.
8115         * config/avr/avr.md: Document special characters after '%'.
8116         (mulqi3, mulhi3, mulsi3): Call libgcc.S functions ourselves,
8117         knowing which of the call-used registers are really clobbered.
8118         (divmodqi4, udivmodqi4, divmodhi4, udivmodhi4, divmodsi4, udivmodsi4):
8119         New.  Both quotient and remainder from one libgcc.S call.
8120         * config/avr/libgcc.S: Optimize mul/divmod for the new insns above,
8121         clobber as few registers as possible.
8122         * config/avr/t-avr (LIB1ASMFUNCS): Adjust for the above changes.
8123
8124 2001-01-20  Neil Booth  <neil@daikokuya.demon.co.uk>
8125
8126         * cppmacro.c (funlike_invocation_p): Don't move back up to the
8127         context of the top of the stack.
8128
8129 2001-01-20  Jakub Jelinek  <jakub@redhat.com>
8130
8131         * function.c (fixup_var_refs): Move CALL_PLACEHOLDER handling...
8132         (fixup_var_refs_insns): ...here.
8133
8134 2001-01-20  Zack Weinberg  <zack@wolery.stanford.edu>
8135
8136         * function.c (fixup_var_refs_insns): Break up into
8137         fixup_var_refs_insn [body of loop], fixup_var_refs_insns
8138         [loop over entire insn list], and fixup_var_refs_insns_with_hash
8139         [loop over hash table entries].
8140         (fixup_var_refs): Adjust calls to fixup_var_refs_insns and/or
8141         fixup_var_refs_insns_with_hash, to match above changes.
8142
8143 2001-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8144
8145         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Add MAKEOVERRIDES variable.
8146         (libgcc.a): Likewise.
8147         (stmp-multilib): Likewise.
8148         (STAGE2_FLAGS_TO_PASS): Likewise.
8149
8150 2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
8151
8152         * config/sh/sh.c (prepare_move_operands) [PIC]: Use operands[0] as
8153         temporary if no_new_pseudos.
8154
8155 2001-01-19  Neil Booth  <neil@daikokuya.demon.co.uk>
8156
8157         * cppinternals.texi: Update.
8158
8159 2001-01-19  Richard Earnshaw  <rearnsha@arm.com>
8160
8161         * arm.c (arm_init_builtins): Re-enable builtins.
8162
8163 Fri Jan 19 13:02:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8164
8165         * rtl.texi (SET, CLOBBER): Document PARALLEL as SET_DEST possibility.
8166         * flow.c (mark_set_1, case PARALLEL): Don't require BLKmode, allow
8167         element to be null, and always expect an EXPR_LIST.
8168         * rtlanal.c (reg_overlap_mentioned_p, note_stores): Likewise.
8169         * sched-deps.c (sched_analyze_1): Likewise.
8170         * sched-rgn.c (check_live_1, update_live_1): Likewise.
8171
8172         * regclass.c (max_set_parallel): New variable.
8173         (reg_scan): Take it into account in computation of max_parallel.
8174         (reg_scan_mark_refs, case SET): Compute it.
8175
8176         * alias.c (rtx_equal_for_memref_p, case ADDRESSOF): Don't assume
8177         args are REG.
8178         * expr.c (store_constructor): Don't look at MEM_ALIAS_SET unless MEM.
8179         * function.c (assign_parms): Use INTVAL for a CONST_INT.
8180
8181 2001-01-19  Jason Merrill  <jason@redhat.com>
8182
8183         * dwarf2out.c (gen_subprogram_die): Don't reuse the in-class decl
8184         for the abstract instance of an inline function.
8185
8186 Fri Jan 19 14:31:35 2001  Alexandre Oliva  <aoliva@redhat.com>
8187                           J"orn Rennecke <amylaar@redhat.com>
8188
8189         * reload1.c (move2add_note_store): Treat all registers directly or
8190         indirectly derived from a base register as members of the same set
8191         of values.
8192         (reload_cse_move2add): Adjust accordingly.  Take mode and offset
8193         of base register into account.
8194
8195 Fri Jan 19 09:18:42 2001  J"orn Rennecke <amylaar@redhat.com>
8196
8197         * alias.c (find_base_value): Recognize TRUNCATE.
8198         (record_set): In PLUS case, invalidate if other summand is also a
8199         base value.
8200
8201 Thu Jan 18 06:43:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8202
8203         * flow.c (mark_set_1, case PARALLEL): New case; rework to allow
8204         entry to be EXPR_LIST.
8205         * rtlanal.c (reg_overlap_mentioned_p): Allow PARALLEL in SET to
8206         be an EXPR_LIST (but not null, which other code doesn't allow).
8207         (note_stores): Properly handle PARALLEL in SET.
8208         Recursively call for top-level PARALLEL.
8209         * sched-deps.c (sched_analyze_1): Handle EXPR_LIST in PARALLEL in SET.
8210         * sched-rgn.c (check_live_1, update_live_1): Likewise.
8211
8212         * config.gcc (rs6000-ibm-aix*, rs6000-bull-bosx): Add rs6000/aix.h.
8213
8214 2001-01-18  Neil Booth  <neil@daikokuya.demon.co.uk>
8215
8216         * cpplib.c (_cpp_handle_directive): Use buffer->was_skipping,
8217         not pfile->skipping (== 0).
8218
8219 2001-01-17  Nick Clifton  <nickc@redhat.com>
8220
8221         * config/rs6000/rs6000.c: Add prototypes for {init|free}_
8222         machine_status.
8223
8224 2001-01-17  Jim Wilson  <wilson@redhat.com>
8225
8226         * invoke.texi (IA-64 options): Improve.
8227
8228 2001-01-17  Tom Tromey  <tromey@redhat.com>
8229
8230         * invoke.texi (Optimize Options): Use `{}' to around @samp
8231         argument.
8232
8233 2001-01-17  Aldy Hernandez  <aldyh@redhat.com>
8234
8235         * invoke.texi (-fno-guess-branch-probability): New option.
8236
8237 Wed Jan 17 13:26:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8238
8239         * combine.c (try_combine): Don't set i3_subst_into_i2 for
8240         case of making new double-word constant.
8241         Revert last change: instead just test i3_subst_into_i2.
8242
8243 2001-01-17  Jakub Jelinek  <jakub@redhat.com>
8244
8245         * config/i386/i386.md (cmpqi_minus_1): Use {b} for QImode operation.
8246         Use q constraints instead of r.
8247
8248 Tue Jan 16 22:23:04 2001  Alan Modra (alan@linuxcare.com.au)
8249
8250         * config/pa/pa.h (PIC_OFFSET_TABLE_REGNUM_SAVED): Remove.
8251         (machine_function): Define.
8252         (PIC_OFFSET_TABLE_SAVE_RTX) : Define.
8253         * config/pa/pa.c (pa_init_machine_status, pa_mark_machine_status,
8254         pa_free_machine_status): New functions.
8255         (override_options): Set {init,mark,free}_machine_status to above.
8256         (hppa_expand_prologue): Use PIC_OFFSET_TABLE_SAVE_RTX instead of
8257         PIC_OFFSET_TABLE_REGNUM_SAVED.
8258         * config/pa/pa.md: Use PIC_OFFSET_TABLE_SAVE_RTX instead of
8259         PIC_OFFSET_TABLE_REGNUM_SAVED throughout.
8260         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Remove
8261         references to PIC_OFFSET_TABLE_REGNUM_SAVED.
8262         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
8263
8264 2001-01-15  DJ Delorie  <dj@redhat.com>
8265
8266         * Makefile.in (gcov.1): Protect against texi2pod/pod2man failing.
8267         (cpp.1): Ditto.
8268         (gcc.1): Ditto.
8269
8270 Tue Jan 16 17:20:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8271
8272         * flow.c (propagate_on_insn): Make trying to delete a prologue
8273         or epilogue insn an ICE, not a warning.  Allow doing this if
8274         the current function returns with stack pointer depressed.
8275
8276         * combine.c (try_combine): If i3_subst_into_i2, properly check for
8277         I3 having more than one SET.
8278
8279 2001-01-16  Jim Wilson  <wilson@redhat.com>
8280
8281         * invoke.texi: Document IA-64 options.
8282
8283         * config/ia64/ia64.c (ia64_print_operand_address): Delete 'B' support.
8284         (fixup_errata): Delete TARGET_A_STEP use.
8285         * config/ia64/ia64.h (MASK_A_STEP, TARGET_A_STEP): Delete.
8286         (TARGET_SWITCHES): Delete -ma-step option.
8287         * config/ia64/ia64.md (all FP patterns): Delete %B0.
8288         (movqicc_astep, movqi_internal_astep, movhicc_astep,
8289         movhi_internal_astep, movsicc_astep, movsi_internal_astep, movdi+1,
8290         movdi_internal_astep, movsfcc_astep, movsf_internal_astep,
8291         movdfcc_astep, movdf_internal_astep, movtfcc_astep,
8292         movtf_internal_astep, cmovdi_internal_astep, cmovsi_internal_astep):
8293         Delete.
8294         (movqi_internal, movhi_internal, movsi_internal, movdi_internal,
8295         movsf_internal, movdf_internal, movtf_internal, cmovdi_internal,
8296         cmovsi_internal): Delete ! TARGET_A_STEP check.
8297
8298 2001-01-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8299
8300         * gcc.texi (Bug Lists): Do not mention newsgroups nor the
8301         possibility to report bugs via postal mail. Change a URL and
8302         merge in a nearly duplicate statement...
8303         (Bug Reporting): ...from here.
8304         (Service): Refer to the Bug Reporting section instead of
8305         duplicating an URL.
8306         (Contributing): Remove trivial explanations concerning snapshots.
8307
8308 2001-01-16  Alan Modra <alan@linuxcare.com.au>
8309
8310         * cppmain.c (general_init): Don't use ANSI prototype.
8311
8312 2001-01-16  Tom Tromey  <tromey@redhat.com>
8313
8314         * gcc.c (cpp_options): Added `*' to specs for -MF, -MQ, and -MT.
8315
8316 2001-01-16  Richard Henderson  <rth@redhat.com>
8317
8318         * config/i386/i386.h: Fix comment typo.
8319         * config/i386/i386.md (shift+compare pattern names): s/cmpno/cmp/
8320         (ashr+compare patterns): Match CCGOCmode not CCNOmode.
8321
8322 2001-01-16  Phil Edwards  <pme@sources.redhat.com>
8323
8324         * gcc.c:  Revert previous -fsyntax-only-related change; move
8325         to cp/g++spec.c.
8326
8327 2001-01-16  Jakub Jelinek  <jakub@redhat.com>
8328
8329         * config/i386/i386.c (fcmov_comparison_operator): Only initialize
8330         inmode after checking GET_CODE (op).
8331
8332 2001-01-16  Richard Henderson  <rth@redhat.com>
8333
8334         * flow.c (struct propagate_block_info): Add mem_set_list_len.
8335         (MAX_MEM_SET_LIST_LEN): New.
8336         (propagate_one_insn): Update mem_set_list_len.
8337         (invalidate_mems_from_autoinc): Likewise.
8338         (invalidate_mems_from_set): Likewise.
8339         (mark_used_regs): Likewise.
8340         (init_propagate_block_info): Likewise.  Stop collecting memories
8341         when we reach MAX_MEM_SET_LIST_LEN.
8342         (mark_set_1): Likewise.
8343
8344 2001-01-16  Richard Henderson  <rth@redhat.com>
8345
8346         * unroll.c (precondition_loop_p): Fail if no iteration
8347         variable found.
8348
8349 2001-01-16  Phil Edwards  <pme@sources.redhat.com>
8350
8351         * gcc.c:  When -fsyntax-only is given, do not complain about
8352         unused libraries.
8353
8354 2001-01-15  Richard Henderson  <rth@redhat.com>
8355
8356         * config/i386/i386.c (asm_output_function_prefix): Remove.
8357         (ix86_asm_file_end): New.
8358         (load_pic_register): Generate pic_label_name into a
8359         staticly allocated buffer.
8360         * config/i386/i386-protos.h: Update.
8361         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_PREFIX): Remove.
8362         (ASM_FILE_END): New.
8363         * config/i386/i386afe.h: New file.
8364         * config.gcc (i?86-*-elf) [tm_file]: Use it.
8365         (i?86-*-{freebsd,linux*,moss*}): Likewise.
8366         * config/elfos.h (ASM_FILE_END): Undef before redefinition.
8367         * config/i386/cygwin.h (ASM_FILE_END): Likewise.
8368         * config/i386/osfrose.h (ASM_FILE_END): Invoke ix86_asm_file_end.
8369         * config/i386/sco5.h (ASM_FILE_END): Likewise.
8370         * config/i386/winnt.c (i386_pe_asm_file_end): Likewise.
8371
8372 2001-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
8373
8374         * Makefile.in (install-man): Remove explicit dependency on
8375         $(srcdir)/gcc.1.
8376
8377         * configure.in, configure: Revert previous patch requiring perl
8378         5.6.0.
8379
8380 2001-01-12  Aldy Hernandez  <aldyh@redhat.com>
8381
8382         * toplev.c (flag_guess_branch_prob): New.
8383         (f_options): Add guess-branch-probability option.
8384         (rest_of_decl_compilation): Only estimate branch probability if
8385         flag set.
8386         (main): set flag_guess_branch_prob.
8387
8388         * flags.h (flag_guess_branch_prob): New.
8389
8390 2001-01-15  DJ Delorie  <dj@redhat.com>
8391
8392         * gcc.texi (Makefile): Add documentation for Makefile targets.
8393
8394 2001-01-15  Philip Blundell  <philb@gnu.org>
8395
8396         * config/arm/arm.c (arm_finalize_pic): New arg "prologue".
8397         (is_pic): Delete.
8398         * config/arm/arm-protos.h (arm_finalize_pic): Update prototype.
8399         (is_pic): Delete declaration.
8400         * config/arm/arm.h (FINALIZE_PIC): Update call to arm_finalize_pic.
8401         (OUTPUT_INT_ADDR_CONST): Remove special handling of PIC address.
8402         * config/arm/arm.md (builtin_setjmp_receiver): New.
8403
8404 2001-01-15  Richard Earnshaw  <rearnsha@arm.com>
8405
8406         * arm.c (use_return_insn): Don't try to determine the function type
8407         until after reload has completed.
8408         (arm_output_epilogue): Don't adjust the sp value recovered from the
8409         stack.
8410         (emit_multi_reg_push): Don't record dwarf information for the pc.
8411         * arm.md (eh_epilogue): The function type may have changed, so it
8412         needs to be recalculated.
8413         * arm/netbsd.h (DWARF2_UNWIND_INFO): Delete.  Can now use dwarf2
8414         unwind tables on arm/netbsd.
8415
8416 2001-01-15  Richard Earnshaw  <rearnsha@arm.com>
8417
8418         * arm.md (cbranchsi4): Correct calculation of branch ranges.
8419         (negated_cbranchsi4): Likewise.
8420
8421 2001-01-15  Richard Earnshaw  <rearnsha@arm.com>
8422
8423         * config/arm/semi.h (SUBTARGET_EXTRA_SPECS): Define.
8424         (SUBTARGET_EXTRA_ASM_SPEC): Define to empty string.
8425         (ASM_SPEC): Call subtarget_extra_asm_spec.  Don't
8426         pass -mapcs-* options to assembler.
8427         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Define.
8428         (SUBTARGET_EXTRA_ASM_SPEC): Define to empty string.
8429         (ASM_SPEC): Call subtarget_extra_asm_spec.
8430
8431 2001-01-15  Andreas Jaeger  <aj@suse.de>
8432
8433         * config/i386/i386.c (ix86_init_builtins): Make i size_t to remove
8434         warnings.
8435         (ix86_expand_builtin): Likewise.
8436
8437         * gencodes.c (output_predicate_decls): Make i size_t to avoid
8438         warning about comparison between signed and unsigned.
8439
8440 2001-01-14  Geoffrey Keating  <geoffk@redhat.com>
8441
8442         * expr.c (do_jump): Treat VOIDmode CONST_DOUBLEs like CONST_INTs.
8443
8444 2001-01-14  Ralf Baechle <ralf@gnu.org>
8445
8446         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Default ABI is 32; change
8447         SUBTARGET_CPP_SPEC apropriatly.
8448
8449 2001-01-12  Mark Mitchell  <mark@codesourcery.com>
8450
8451         * varasm.c (make_decl_rtl): Fix typo in last change.
8452
8453 2001-01-14  Jeffrey Oldham  <oldham@codesourcery.com>
8454
8455         * defaults.h (SUPPORTS_INIT_PRIORITY): New macro to indicate the
8456         linker supports the init_priority C++ attribute.
8457         * tm.texi (SUPPORTS_INIT_PRIORITY): Documentation for new macro.
8458         * config/mips/iris6.h (SUPPORTS_INIT_PRIORITY): Indicate Irix
8459         linker does not support init_priority C++ attribute.
8460
8461 Sun Jan 14 22:31:30 2001  J"orn Rennecke <amylaar@redhat.com>
8462
8463         * Makefile.in (libgcc1-test.o): Depends on stmp-int-hdrs.
8464
8465 2001-01-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8466
8467         * c-parse.in (finish_parse): Add comment about cpp_destroy.
8468         * cp/lex.c (finish_parse): Similarly.
8469         * cppinit.c (cpp_cleanup): Rename cpp_destroy for clarity.
8470         Return the number of errors encountered.
8471         * cpplib.h (cpp_cleanup): Rename cpp_destroy, return int.
8472         * cppmain.c (main): Don't call cpp_destroy.
8473
8474 2001-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
8475
8476         * configure.in: Require at least perl 5.6.0 to regenerate
8477         manpages.
8478         * configure: Regenerate.
8479
8480 2001-01-14  Richard Henderson  <rth@redhat.com>
8481
8482         * genrecog.c (DT_veclen_ge): New.
8483         (add_to_sequence) [MATCH_PARALLEL]: Generate one.
8484         (maybe_both_true_2): Simplify DT_veclen vs DT_veclen_ge.
8485         (nodes_identical_1): Handle DT_veclen_ge.
8486         (write_cond, debug_decision_2): Likewise.
8487
8488 2001-01-14  Richard Earnshaw  <rearnsha@arm.com>
8489
8490         * arm.md (ldmsi_postinc, ldmsi, stmsi_postinc, smsi): Delete.  Replace
8491         with ...
8492         (ldmsi_postinc[432], ldmsi[432], stmsi_postinc[432], stmsi[432]): New.
8493
8494 2001-01-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8495
8496         * cppmain.c (do_preprocessing): New function; most of the old
8497         main.
8498         (main): Call it to do most of the work.
8499         (cb): Move from global scope to set_callbacks ().
8500         (setup_callbacks): Get the callback pointer.
8501         (general_init, printer_init): Clean up code and comments.
8502
8503 2001-01-14  Richard Earnshaw  <rearnsha@arm.com>
8504
8505         * config/arm/semi.h (ASM_SPEC): Pass -k to the assembler when
8506         compiling PIC.
8507
8508 2001-01-14  Kazu Hirata  <kazu@hxi.com>
8509
8510         * config/h8300/h8300.c (get_shift_alg): Update comments.
8511
8512 Sun Jan 14 06:20:49 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8513
8514         * ggc-page.c (alloc_annon): Call perror and correctly call exit.
8515         (alloc_page, ggc_alloc): Add casts to remove warnings.
8516
8517 2001-01-14  Geoffrey Keating  <geoffk@redhat.com>
8518
8519         * combine.c (simplify_comparison): Don't change `code' when
8520         can't reverse comparison.
8521
8522 2001-01-14  Richard Henderson  <rth@redhat.com>
8523
8524         * rtlanal.c (computed_jump_p_1): Rename from jmp_uses_reg_or_mem;
8525         update all call sites.  Return true for all non-label constants.
8526
8527 Sun Jan 14 10:09:48 MET 2001  Jan hubicka  <jh@suse.cz>
8528
8529         * i386.c (ix86_expand_compare): Add bypass_test and second_test
8530         parameters.
8531         (ix86_expand_branch): Update.
8532         (ix86_expand_setcc): Update to handle multiple test conditions.
8533         (expand_int_movcc): Likewise.
8534         (expand_fp_movcc): Likewise.
8535         * i386-protos.h (ix86_expand_compare): New.
8536         * i386.md (andqi_?_slp, orqi_?_slp): New.
8537         (conditional trap expander): Update call to ix86_expand_compare.
8538
8539 2001-01-14  Richard Henderson  <rth@redhat.com>
8540
8541         * config/vax/vax.md: Use nonimmediate_operand instead of
8542         general_operand in destinations.
8543
8544         * config/vax/vax.md (indirect_jump): Use register_operand.
8545
8546         * config/vax/vax.h (RETURN_POPS_ARGS): Max at 255 arguments.
8547         * config/vax/vax.md (call_pop): Turn into an expander.
8548         (call_value_pop): Likewise.
8549         (call, call_value): New.
8550
8551 2001-01-14  Andreas Jaeger  <aj@suse.de>
8552
8553         * config/i386/i386.c (ix86_split_fp_branch): Remove unused
8554         variables.
8555         (ix86_fp_compare_mode): Add unused attribute.
8556         (ix86_expand_fp_movcc): Remove unused variable.
8557         (ix86_expand_builtin): Make fcode unsigned.
8558
8559         * expr.c (MOVE_BY_PIECES_P): Cast MOVE_RATIO to unsigned.
8560         (expand_expr): Add cast to avoid signed warning.
8561         (store_field): Likewise.
8562         (store_constructor_field): Likewise.
8563         (store_constructor): Likewise.
8564         (store_expr): Likewise.
8565         (clear_storage): Likewise.
8566         (emit_group_store): Likewise.
8567         (emit_group_load): Likewise.
8568
8569 2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
8570
8571         * c-common.c: Move format checking code to ...
8572         * c-format.c: ... here.  New file.  Reorder some functions and
8573         declarations.
8574         (decl_handle_format_attribute, decl_handle_format_arg_attribute):
8575         New functions.
8576         * c-common.h (decl_handle_format_attribute,
8577         decl_handle_format_arg_attribute): Declare.
8578         * Makefile.in (C_AND_OBJC_OBJS): Add c-format.o.
8579         (c-common.o): Adjust dependencies.
8580         (c-format.o): New list of dependencies.
8581
8582 2001-01-13  Jakub Jelinek  <jakub@redhat.com>
8583
8584         * unroll.c (loop_iterations): If we cannot prove iteration variable
8585         is set once in each iteration, punt.
8586
8587 Sun Jan 14 00:23:15 2001  Denis Chertykov  <denisc@overta.ru>
8588
8589         * config/avr/avr.md ("strlenhi"): Remove clobber of input address.
8590         (*strlenhi): Remove clobber (which was buggy) of output address.
8591
8592 2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
8593
8594         * Makefile.in (generated-manpages): Add gcc.1
8595         ($(srcdir)/gcc.1): New target.
8596         (maintainer-clean): Delete $(srcdir)/gcc.1.
8597         * gcc.texi: Add macros @gccoptlist and @gol.
8598         * invoke.texi: Include option summary in manpage.  Mark up option
8599         summary with @gccoptlist and @gol.  Use @r in one place where
8600         appropriate.
8601         * texinfo.tex: Update to version 2000-12-11.07 from ftp.gnu.org.
8602         * gcc.1: Generate from invoke.texi.
8603
8604 2001-01-13  Richard Henderson  <rth@redhat.com>
8605
8606         * ggc-page.c (USING_MALLOC_PAGE_GROUPS): New; set if not using mmap.
8607         (struct page_entry): Add group member.
8608         (struct page_group): New.
8609         (struct globals): Add page_groups member.
8610         (alloc_anon): Only define for using mmap; remove valloc call.
8611         (page_group_index): New.
8612         (set_page_group_in_use): New.
8613         (clear_page_group_in_use): New.
8614         (alloc_page): Implement USING_MALLOC_PAGE_GROUPS.
8615         (free_page, release_pages): Likewise.
8616         * configure.in (with-gc): Default to ggc-page always.
8617
8618 2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
8619
8620         * reload1.c (replace_pseudos_in_call_usage): Use
8621         reg_equiv_constant and reg_equiv_address, and don't try
8622         regno_reg_rtx first.
8623
8624 2001-01-13  Richard Henderson  <rth@redhat.com>
8625
8626         * ggc-page.c (alloc_page): Round up allocation size to one page.
8627         Set e->order on extra pages.
8628
8629 2001-01-13  Richard Henderson  <rth@redhat.com>
8630
8631         * genrecog.c (nodes_identical): Expand commentary.
8632         (write_switch): Watch out for identical nodes.
8633
8634 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8635
8636         * cppfiles.c (_cpp_fake_include): New function.
8637         * cpphash.h (_cpp_fake_include): New.
8638         * cpplib.c (do_line): Call _cpp_fake_include when entering
8639         header files in preprocessed input.
8640         * cppmain.c (cb_pragma_implementation): Remove handling.
8641         (setup_callbacks): Don't register pragmas.
8642
8643 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8644
8645         * extend.texi: Udate for CPP.
8646
8647 2001-01-13  Andreas Jaeger  <aj@suse.de>
8648
8649         * reload1.c: Add prototype for replace_pseudos_in_call_usage.
8650
8651         * regmove.c: Add prototype for replace_in_call_usage.
8652
8653 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8654
8655         * cpplib.h (cpp_pool, mi_state, mi_ind, struct cpp_macro,
8656         struct cpp_chunk, struct htab, struct toklist,
8657         struct cpp_context, CPP_STACK_MAX, struct lexer_state,
8658         struct spec_nodes, struct cpp_reader, CPP_OPTION, CPP_BUFFER,
8659         CPP_BUF_LINE, CPP_BUF_COL, CPP_BUF_COLUMN, U, ustrcmp, ustrncmp,
8660         ustrlen, uxstrdup, ustrchr, ufputs): Move to cpphash.h.
8661         (struct macro_args): Delete.
8662         * cpphash.h: See above.
8663
8664 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8665
8666         * cppmain.c (struct printer): Remove no_line_dirs.
8667         (options, cb): New.
8668         (main, setup_callbacks, scan_buffer, printer_init, cb_define)
8669         : Use options rather than CPP_OPTION.
8670         (setup_callbacks): Use cb rather than pfile->cb.
8671         (main): No need to check for a buffer.  Use cpp_errors.
8672         (printer_init): Don't set no_line_dirs.
8673         (maybe_print_line): Use options not no_line_dirs.
8674         (cb_file_change): Don't call print_line if -P.
8675
8676 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8677
8678         * c-lex.c (init_c_lex): Use cpp_get_callbacks to set
8679         callbacks.
8680         * c-parse.in (finish_parse): Use cpp_errors.
8681         (__yylex): Use return value of cpp_pop_buffer.
8682         * cp/lex.c (finish_parse): Use cpp_errors.
8683         * cp/spew.c (read_token): Use return value of cpp_pop_buffer.
8684
8685 Sat Jan 13 16:57:40 2001  Denis Chertykov  <denisc@overta.ru>
8686
8687         * README.AVR: URLs corrected.
8688
8689 Sat Jan 13 07:30:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8690
8691         * c-decl.c (start_function): Don't warn if old prototype is builtin
8692         that's not in C's namespace.
8693         * libgcc2.c (_varargs): Update definition of __builtin_saveregs.
8694         (_bb): Add prototype for ctime.
8695         * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Add missing protos.
8696
8697 Sat Jan 13 09:53:32 MET 2001  Jan Hubicka  <jh@suse.cz>
8698
8699         * i386.c (ix86_fp_comparison_arithmetics_cost,
8700         ix86_fp_comparison_fcomi_cost, ix86_fp_comparison_sahf_cost,
8701         ix86_fp_comparison_cost): New functions.
8702         (ix86_expand_fp_compare): Use the costs to choose best bethod; add
8703         two new parameters SECOND_TEST and BYPASS_TEST; allow generating
8704         two-branch sequences; make static.
8705         (ix86_use_fcomi_compare): Do decision according to the costs.
8706         (split_fp_branch): New.
8707         * i386.md (compare-and-branch patterns): Use split_fp_branch.
8708         * i386-protos.h (ix86_expand_fp_compare): Remove
8709         (ix86_split_fp_branch): Declare.
8710
8711         * i386.h (PREDICATE_CODES): Update codes from fcmov_comparison_operand
8712         and ix86_comparison_operator.
8713
8714         * i386.c (ix86_prepare_fp_compare_args): Try to rearange the comparison
8715         to make it cheaper.
8716
8717         * i386.c (put_condition_code): Output properly the unordered/ordered
8718         compares in fp case.
8719         (ix86_expand_fp_movcc): Use ix86_expand_compare infrastructure.
8720
8721         * tm.texi (REVERSE_CONDITION): Document.
8722         * i386.c (ix86_fp_compare_mode): Simplify; return always CCFPmode
8723         in -ffast-math mode.
8724         * i386.h (REVERSE_CONDITION, REVERSIBLE_CC_MODE): New macro.
8725
8726 2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
8727
8728         * config/sh/sh.c (sh_expand_epilogue): Use PR explicitly.
8729
8730         * config/sh/sh.c (sh_expand_prologue): Let the second toggle_sz be
8731         optimized away.
8732
8733         * config/sh/sh.c (mova_p): Fix test for mova_const.
8734
8735 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8736
8737         * fix-header.c (read_scan_file): Use cpp_get_callbacks and
8738         cpp_get_options rather than dereferencing pfile and using
8739         CPP_OPTION.
8740         * scan-decls.c (scan_decls): Use return value of
8741         cpp_pop_buffer rather than CPP_BUFFER.
8742
8743 2001-01-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8744
8745         * cppinit.c (cpp_handle_option): help_only is now part of the
8746         cpp_options structure.
8747         * cpplib.c (cpp_errors, cpp_get_options, cpp_get_callbacks,
8748         cpp_set_callbacks): New functions.
8749         * cpplib.h (cpp_callbacks): Break out as a named structure.
8750         (cpp_options): Move help_only here from cpp_reader.
8751         (CPP_FATAL_ERRORS): Update to use cpp_errors.
8752         (cpp_errors, cpp_get_options, cpp_get_callbacks,
8753         cpp_set_callbacks): New prototypes.
8754         * cppmain.c (main): Update for help_only.
8755
8756 2001-01-13  Joseph S. Myers  <jsm28@cam.ac.uk>
8757
8758         * Makefile.in (info, maintainer-clean, install-info, uninstall):
8759         Also build and remove and install and uninstall c-tree.info and
8760         cppinternals.info.
8761         ($(srcdir)/gcc.info): Add dependency on contrib.texi.
8762         ($(srcdir)/cppinternals.info): New target.
8763         * c-tree.texi: Change file name used when makeinfo used without -o
8764         from ir.info to c-tree.info.  Add info directory entry.
8765         * cppinternals.texi: Add info directory entry.
8766         * .cvsignore: Update.
8767
8768 2001-01-12  Jakub Jelinek  <jakub@redhat.com>
8769
8770         * c-typeck.c (store_init_value): Don't require constant initializer
8771         elements with -pedantic -std=c99.
8772         (digest_init): Change error about non-constant initializer elements
8773         into pedwarn.
8774         (constructor_range_end): Remove.
8775         (constructor_incremental, designator_depth,
8776         designator_errorneous): New variables.
8777         (struct constructor_stack): Remove range_end, add incremental.
8778         (struct constructor_range_stack, constructor_range_stack): New.
8779         (struct initializer_stack): Add constructor_range_stack.
8780         (finish_init): Set it.
8781         (start_init): Likewise.  require_constant_elements for non-static
8782         trees only if not flag_isoc99.
8783         (really_start_incremental_init): Remove constructor_range_end, add
8784         constructor_incremental.
8785         (pop_init_level): Likewise.
8786         (push_init_level): Likewise.  If implicit and the subobject had some
8787         value set already, preinitialize the level with it.
8788         Warn about missing braces only if not pushing due to designators.
8789         (set_designator, push_range_stack): New functions.
8790         (set_init_label): Use them.
8791         (set_init_index): Likewise.  Remove constructor_range_end.
8792         Error if designator index is outside of array bounds.
8793         (add_pending_init): Compare values of purpose index trees, not the
8794         trees themselves.  Allow overwriting of already initialized element.
8795         Issue a warning if it had side-effects.
8796         (set_nonincremental_init, set_nonincremental_init_from_string): New
8797         functions.
8798         (pending_init_member): Rename to...
8799         (find_init_member): ...this function.  Call set_nonincremental_init
8800         if necessary.  Compare values of purpose index trees, not the trees
8801         themselves.  Return the actual value, not just non-zero if something
8802         is found.
8803         (output_init_element): Remove checks for duplicates.
8804         If field has zero size, only check the initializer for correctness.
8805         Call set_nonincremental_init if necessary.  Push RECORD/ARRAY into AVL
8806         if constructor_incremental is zero.  Change error about initializers
8807         not computable at load time into pedwarn.
8808         (output_pending_init_elements): Compare bit positions, not
8809         FIELD_DECLs to take into account zero-sized fields.
8810         (process_init_element): Use constructor_range_stack to fill all
8811         ranges in the designator lists from current level up.
8812         * extend.texi: Update documentation for labeled elements.
8813
8814 2001-01-12  Alexandre Oliva  <aoliva@redhat.com>
8815
8816         * calls.c (emit_library_call_value_1): Add USEs and CLOBBERs
8817         to function usage for arguments passed by reference.  Optimize
8818         callee-copied arguments.
8819         * regmove.c (replace_in_call_usage): New function.
8820         (fixup_match_1): Call it.
8821         * cse.c (cse_insn): Canonicalize registers in function usage.
8822         * reload1.c (replace_pseudos_in_call_usage): New function.
8823         (reload): Call it.
8824
8825         * Makefile.in: Reverted yesterday's wrong patch.  Installed the
8826         right version.
8827
8828 2001-01-12  Jakub Jelinek  <jakub@redhat.com>
8829
8830         * config/alpha/alpha.c (alpha_expand_block_move): GET_MODE of tmp,
8831         not XEXP (tmp, 0).
8832
8833 2001-01-12  DJ Delorie  <dj@redhat.com>
8834
8835         * Makefile.in (bootstrap): rename stages to be mnemonic.  Add
8836         restageN, unstageN, bubblestrap, quickstrap, and cleanstrap
8837         targets.
8838
8839 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
8840
8841         * cpp.texi, extend.texi, gcc.texi, install.texi, invoke.texi,
8842         tm.texi: Consistently refer to ISO C instead of ANSI C.  Refer to
8843         -std options alongside references to -ansi.  Update some
8844         documentation for C99.
8845         * cpp.1: Regenerate.
8846
8847 2001-01-12  Andreas Jaeger  <aj@suse.de>
8848
8849         * haifa-sched.c (restore_line_notes): Remove argument block B
8850         since it's unused.
8851         * sched-ebb.c (schedule_ebb): Change caller.
8852         * sched-rgn.c (schedule_region): Likewise.
8853         * sched-int.h (restore_line_notes): Adjust prototype.
8854
8855         * loop.h: Remove wrong declaration of doloop_condition_get.
8856
8857 2001-01-12  Phil Edwards  <pme@sources.redhat.com>
8858
8859         * extend.texi:  Move C++-extension-related node from the C section
8860         into the C++ section.
8861
8862 2001-01-12  Joseph S. Myers  <jsm28@cam.ac.uk>
8863
8864         * extend.texi: Refer to an array of pointers to functions instead
8865         of one of functions.
8866
8867 Fri Jan 12 12:08:12 MET 2001  Andreas Jaeger  <aj@suse.de>
8868                               Jan Hubicka  <jh@suse.cz>
8869
8870         * combine.c (reversed_comparison): Fix typo in last patch.
8871         Check X for NULL.
8872         (combine_reversed_comparison_code): Make static to follow
8873         prototype declaration.
8874
8875 2001-01-12  Phil Edwards  <pme@sources.redhat.com>
8876
8877         * install.texi:  Remove misplaced duplicate entry.
8878
8879 2001-01-11  Ulrich Drepper  <drepper@redhat.com>
8880
8881         * config/float-i386.h: Define FLT_EVAL_METHOD and DECIMAL_DIG for C99.
8882
8883 Thu Jan 11 17:06:30 EST 2001  John Wehle  (john@feith.com)
8884
8885         * final.c: (leaf_function_p): Fix typo.
8886
8887 2001-01-11  Zack Weinberg  <zack@wolery.stanford.edu>
8888
8889         * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE): Completely rewritten.
8890         Now defines HAVE_MMAP_DEV_ZERO and/or HAVE_MMAP_ANON depending
8891         which you have.
8892         (AC_FUNC_MMAP_FILE): Don't AC_REQUIRE AC_FUNC_MMAP_ANYWHERE.
8893         * configure.in: Set GGC to ggc-page if any of mmap_dev_zero,
8894         mmap_anon, and valloc is available.
8895         * ggc-page.c: Restructure ifdef logic to match new autoconf
8896         spec.  Don't throw away the test page in init_ggc.
8897
8898         * configure, config.in: Regenerate.
8899
8900 2001-01-12  Michael Hayes  <mhayes@redhat.com>
8901
8902         * loop.h (total_biv_increment): Constify iv_class pointer.
8903         (struct induction): Replace `mem_mode' with `mem' rtx.
8904         * unroll.c (total_biv_increment): Constify iv_class pointer.
8905         * loop.c (loop_giv_reduce_benefit): Derive mem mode from mem rtx.
8906         (find_mem_givs, combine_givs_p): Likewise.
8907         (debug_ivs, debug_iv_class, loop_ivs_dump, loop_iv_class_dump): New.
8908
8909 2001-01-10  Thomas Pfaff <tpfaff@gmx.net>
8910
8911         * gthr-win32.h (__gthread_objc_thread_get_data): Save and restore Win32
8912         LastError.
8913         (__gthread_getspecific): Ditto.
8914
8915 Fri Jan 12 00:04:00 MET 2001  Jan Hubicka  <jh@suse.cz>
8916
8917         * i386.c (ix86_comparison_operator, fcmov_comparison_operator,
8918         put_condition_code): Convert fp comparison codes to integer
8919         before handling.
8920         (ix86_expand_fp_compare): Postnote the fp comparison code converison
8921         to final.
8922
8923         * i386.c (unsigned_comparison, no_comparison_operator): Kill.
8924         * i386-protos.h (no_comparison_operator): Kill.
8925
8926         * i386.c (ix86_expand_fp_compare): Fix ordered/unordered confussion.
8927
8928         * combine.c (REVERSIBLE_CC_MODE): Remove.
8929         (reversible_comparison_p): Remove.
8930         (combine_reversed_comparison_code): New.
8931         (reversed_comparison): New.
8932         (combine_simplify_rtx): Use
8933         combine_reversed_comparison_code/reversed_comparison instead
8934         of reversible_comparison_p.
8935         (simplify_if_then_else): Likewise.
8936         (simplify_set): Likewise.
8937         (simplify_logical): Likewise.
8938         (if_then_else_cond): Likewise.
8939         (known_cond): Likewise.
8940         (simplify_comparison): Likewise.
8941
8942 2001-01-11  Alan Lehotsky  <lehotsky@tiac.net>
8943
8944         * builtins.c (std_expand_builtin_va_start): Handle varargs when
8945         sizeof (int) is larger than sizeof(__word__).
8946
8947 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8948
8949         * cppinit.c (do_includes): Fix typo.
8950
8951 2001-01-11  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8952
8953         * config/m68hc11/m68hc11.md (cmphi_1): Make sure reloading
8954         in S_REGS does not occur because not all sources are possible
8955         when a S_REGS is a destination (sometimes needs a clobber).
8956         (movqi_const0, zero_extendhisi2, zero_extendqisi2): Likewise.
8957         (zero_extendhidi2, extendqisi2, extendqihi2, extendhisi2): Likewise.
8958         (anddi3, iordi3, xordi3, negqi2, one_cmplhi2, one_cmplqi2: Likewise.
8959         (ashldi3_const32, ashldi3_const1, ashlsi3_const16): Likewise.
8960         (ashlsi3_const1, ashlhi3_2, ashlqi3_const1, ashrhi3): Likewise.
8961         (ashrqi3_const1, lshrdi3_const32, lshrdi3_const63): Likewise.
8962         (lshrdi_const1, lshrsi3_const16): Likewise.
8963         (*addhi3, lshrsi3_const1, lshrqi3_const1): Likewise.
8964         (*movhi_68hc12, *movqi_68hc12): Likewise.
8965         (movstrictqi): Make sure reloading in D_REGS as a destination
8966         does not happen.
8967
8968 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8969
8970         * cppspec.c (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ.
8971
8972 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8973
8974         * cppinit.c (cpp_start_read): If -fpreprocessed, ignore
8975         -D, -U and -A, and don't initialize the builtins.
8976         (do_includes): Error if -include or -imacros with -fpreprocessed.
8977         * cppmain.c (cb_define, cb_undef): Unconditionally process
8978         the callback.
8979         * tradcpp.c (main): Fix typo.
8980
8981 2000-01-11  Mark Elbrecht  <snowball3@bigfoot.com>
8982
8983         * cppfiles.c (cpp_included, find_include_file, _cpp_execute_include)
8984         (read_name_map): Use IS_ABSOLUTE_PATH.
8985         * tradcpp.c (get_filename): Likewise.
8986
8987 2001-01-11  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8988
8989         * config/m68hc11/m68hc11.md (*adcq, *subcq): Fix operand numbers.
8990         (*ashlsi3_const16_zexthi, *ashlsi3_const1): Likewise.
8991         (*lshrsi3_const, *lshrsi3_const1, *lshrsi3_const16): Likewise.
8992         (*ashrsi3, *ashrsi3_const, *ashlsi3, *ashlsi3_const): Likewise.
8993         (*ashlsi3_const1, *lshrsi3, *ashlsi3_const16): Likewise.
8994         (cmphi_z_used): Don't use '@' for the output.
8995         (tstqi_z_used): Likewise.
8996         (cmpqi_z_used): Likewise.
8997         (one_cmplsi2): Likewise.
8998
8999 2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
9000
9001         * config/sh/sh.c (barrier_align): Recognize branch around far
9002         branch and redundant insn.
9003
9004 2001-01-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9005
9006         * invoke.texi: Restore documentation of the drivers' switches -MD
9007         and -MMD.
9008
9009 2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
9010
9011         * config/sh/sh.h (LABEL_ALIGN): Use UNSPECV_ALIGN instead of 1.
9012
9013         * Makefile.in (check-gcc//%, check-g++//%, check-g77//%,
9014         check-objc//%): Support parallel testing of multilibs.
9015         (TESTSUITEDIR): Set to testsuite by default, but override for
9016         parallel testing.
9017         (check-gcc, check-g++, check-g77, check-objc): Enter
9018         $(TESTSUITEDIR).
9019
9020 2001-01-11  Bernd Schmidt  <bernds@redhat.com>
9021
9022         * alias.c (throughout): Use REGNO, rather than ORIGINAL_REGNO.
9023         * sched-deps.c (deps_may_trap_p): Likewise.
9024         * basic-block.h: Remove a comment.
9025         * flow.c (PROP_POSTRELOAD): Remove.
9026         (update_life_info): Don't add it to prop_flags.
9027         (mark_set_1): Lose the code that was enabled by it.
9028
9029 2001-01-11  Michael Hayes  <mhayes@redhat.com>
9030
9031         * flow.c (flow_call_edges_add): New.
9032         * basic_block.h (flow_call_edges_add): New.
9033
9034 2001-01-11  J"orn Rennecke <amylaar@redhat.com>
9035
9036         * reload1.c (move2add_note_store): Update reg_set_luid even if
9037         base reg remains the same.
9038
9039 2001-01-10  Nick Clifton  <nickc@redhat.com>
9040
9041         * config/d30v/d30v.c (d30v_init_machine_status): Initialise
9042         machine_function structure to zero.
9043         Add prototypes for machine_status functions.
9044
9045 2001-01-10  Mark Mitchell  <mark@codesourcery.com>
9046
9047         * c-common.h (CTI_VOID_LIST): Remove.
9048         (void_list_node): Likewise.
9049         * tree.h (TI_VOID_LIST_NODE): New enumeral.
9050         (void_list_node): New macro.
9051         * config/arm/arm.c (arm_init_builtins): Use void_list_node.
9052         * config/i386/i386.c (ix86_init_builtins): Likewise.
9053         * config/ia64a/ia64.c (ia64_init_builtins): Likewise.
9054
9055 2001-01-10  Neil Booth  <neil@daikokuya.demon.co.uk>
9056
9057         * Makefile.in (tradcpp0): Depend on mkdeps.h.  Link mkdeps.o
9058         * cppinit.c (cpp_start_read): Update comment, remove unneeded
9059         if statement.
9060         * tradcpp.c: Include mkdeps.h.
9061         (deps, print_deps_phony_targets, deps_append, output_deps,
9062         init_dependency_output, output_deps): New.
9063         (deps_buffer, deps_allocated_size, deps_size, deps_column,
9064         deps_output): Delete.
9065         (print_deps_missing_files): Rename deps_missing_files.
9066         (inhibit_output): Make global.
9067         (main): Delete inhibit_output, deps_stream, deps_target.
9068         Use mkdeps functionality in the same way as cpplib.  Remove
9069         -g3 handling.  Handle -MF, -MP, -MQ, -MT.  Update handling of
9070         -M and -MM.  Remove old handling of deps via deps_out, and
9071         old reading of environment variables.
9072         (get_filename): Update to use deps_add_dep.
9073
9074 2001-01-10  Mark Mitchell  <mark@codesourcery.com>
9075
9076         * output.h (make_function_rtl): Remove prototype.
9077         (make_decl_rtl): Likewise.
9078         * varasm.c (make_function_rtl): Remove.
9079         (make_decl_rtl): Determine top-levelness from DECL_CONTEXT, rather
9080         than from a third parameter.
9081         * tree.h (make_decl_rtl): Remove last parameter.
9082         * c-decl.c (builtin_function): Remove last argument in call to
9083         make_decl_rtl; use make_function_rtl instead of make_decl_rtl.
9084         (start_function): Likewise.
9085         * except.c (call_get_eh_context): Likewise.
9086         * expr.c (emit_block_move): Likewise.
9087         (clear_storage): Likewise.
9088         * profile.c (output_func_start_profiler): Likewise.
9089         * toplev.c (rest_of_decl_compilation): Likewise.
9090         * objc/objc-act.c (create_builtin_decl): Likewise.
9091         (synth_module_prologue): Likewise.
9092         (generate_static_reference): Likewise.
9093         (build_selector_reference_decl): Likewise.
9094         (build_class_reference_decl): Likewise.
9095         (build_objc_string_decl): Likewise.
9096         (build_protocol_reference): Likewise.
9097
9098 2001-01-10  Richard Henderson  <rth@redhat.com>
9099
9100         * hwint.h: Revert yesterday's change.
9101
9102 2001-01-10  Nick Clifton  <nickc@redhat.com>
9103
9104         * function.h (save_machine_status): Delete.
9105         (restore_machine_status): Delete.
9106         Amend comment describing {init|mark|free}_machine_status.
9107
9108         * function.c (save_machine_status): Delete.
9109         (restore_machine_status): Delete.
9110         Amend comment describing {init|mark|free}_machine_status.
9111         (push_function_context_to): Remove invocation of
9112         save_machine_status.
9113         (pop_function_context_from): Remove invocation of
9114         restore_machine_status.
9115
9116         * emit-rtl.c (init_emit_once): Amend comment describing
9117         {init|mark|free}_machine_status.
9118
9119         * tm.texi (Per-Function Data): New node.  Describe the
9120         INIT_EXPANDERS macro and the {init|mark|free}_machine_status
9121         function pointers.
9122
9123 2001-01-10  Neil Booth  <neil@daikokuya.demon.co.uk>
9124
9125         * cppinit.c (OPT_g): Remove.
9126         (cpp_handle_option): Update for removed -g3.
9127         (print_help): Update.
9128         * cpplib.h (struct cpp_options): Remove debug_output.
9129         * cppmain.c (setup_callbacks, cb_define): Update.
9130         * gcc.c (cpp_options): Translate -g3 to -dD.
9131
9132 2001-01-10  Aldy Hernandez  <aldyh@redhat.com>
9133
9134         * config/i960/i960.md: Change modifier to + on the zero_extract
9135         pattern after the (rotate -2 reg) canonicalization pattern.
9136
9137 2001-01-10  Richard Henderson  <rth@redhat.com>
9138
9139         * config/alpha/alpha.c (alpha_free_machine_status): New.
9140         (override_options): Install it.
9141         (alpha_mark_machine_status): Verify machine non-null.
9142         * config/i386/i386.c (ix86_free_machine_status): New.
9143         (override_options): Install it.
9144         (ix86_init_machine_status): Use xcalloc.
9145         (ix86_mark_machine_status): Verify machine non-null.
9146         * config/ia64/ia64.c (ia64_free_machine_status): New.
9147         (ia64_override_options): Install it.
9148         (ia64_mark_machine_status): Verify machine non-null.
9149
9150 Wed Jan 10 11:34:39 2001  Jeffrey A Law  (law@cygnus.com)
9151
9152         * function.c (instantiate_virtual_regs): Instantiate virtual
9153         registers found in CALL_INSN_FUNCTION_USAGE.
9154
9155 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9156
9157         * i386.h (CPP_CPU_SPEC): Allow for -std=c* and -std=i* as
9158         equivalent to -ansi in disabling -Di386.
9159
9160 Wed Jan 10 16:38:31 MET 2001  Jan Hubicka  <jh@suse.cz>
9161
9162         * i386.c (ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes):
9163         new functions.
9164         (ix86_expand_fp_compare): Make trivial use of new infrastructure.
9165
9166 2001-01-10  Richard Earnshaw  <rearnsha@arm.com>
9167
9168         * arm.c (arm_init_builtins): Temporarily disable xscale builtins.
9169
9170 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9171
9172         * invoke.texi: Document that -fcond-mismatch isn't supported for
9173         C++.
9174
9175 2001-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
9176
9177         * gcc.texi: Define macro gcctabopt.
9178         * invoke.texi: Add manpage sections BUGS and AUTHOR.  Use
9179         @command, @env and @option in some places where appropriate.  Use
9180         @gcctabopt where appropriate.  Put URLs and email addresses inside
9181         @w.
9182
9183 2001-01-10  Nathan Sidwell  <nathan@codesourcery.com>
9184
9185         * gcc.c (cpp_options): Set MD file name from output
9186         filename, if specified.
9187         (suffix_subst): New static variable.
9188         (do_spec): Clear it.
9189         (do_spec_1, case '.'): Handle new `%.suffix' spec.
9190         Clear it.
9191         (give_switch): Handle suffix_subst.
9192
9193 2001-01-10  Phil Edwards  <pme@sources.redhat.com>
9194
9195         * invoke.texi:  Fix another typo.
9196
9197 2001-01-10  Phil Edwards  <pme@sources.redhat.com>
9198
9199         * invoke.texi:  Fix typo.
9200
9201 2001-01-10  Neil Booth  <neil@daikokuya.demon.co.uk>
9202
9203         * c-lang.c (lang_hooks): Update.
9204         (lang_decode_option): Remove.
9205         (lang_init_options): Rename c_init_options.
9206         * toplev.c (main): Use lang_hooks for lang_init_options
9207         and lang_decode_option.
9208         * toplev.h (lang_hooks): Add 2 new hooks.
9209         * tree.h: Remove lang_init_options and lang_decode_option.
9210         * cp/cp-tree.h (lang_decode_option): Rename cxx_decode_option.
9211         * cp/decl2.c: Similarly.
9212         * cp/lex.c (lang_init_options): Rename cxx_init_options.
9213         (lang_hooks): Update.
9214         * f/com.c (f_init, f_finish): Rename ffe_init, ffe_finish
9215         for consistency.
9216         (lang_init_options): Rename ffe_init_options.
9217         (lang_hooks): Update.
9218         (lang_decode_option): Remove.
9219         * java/lang.c (lang_init_options): Rename java_init_options.
9220         (lang_decode_option): Rename java_decode_option.
9221         (lang_hooks): Update.
9222         * objc/objc-act.c (lang_init_options): Rename objc_init_options.
9223         (lang_decode_option): Rename objc_decode_option.
9224         (lang_hooks): Update.
9225
9226 2001-01-09  Nick Clifton  <nickc@redhat.com>
9227
9228         * config/d30v/d30v.c (d30v_eh_epilogue_sp_ofs): Delete.
9229         (d30v_return_addr_rtx): Delete.
9230         (d30v_expand_epilogue): Use eh_epilogue_sp_ofs field in the
9231         cfun->machine structure.
9232         (struct machine_function): Move to d30v.h
9233         (d30v_save_machine_status): Delete.
9234         (d30v_restore_machine_status): Delete.
9235         (d30v_init_machine_status): New Function.
9236         (d30v_mark_machine_status): New Function.
9237         (d30v_free_machine_status): New Function.
9238         (d30v_init_expanders): Use new functions.
9239         (d30v_return_addr): Use ra_rtx field in cfun->machine.
9240         (d30v_add_gc_roots): Remove d30v_eh_epilogue_sp_ofs and
9241         d30v_return_addr_rtx.
9242
9243         * config/d30v/d30v.h (struct_machine): Move here.
9244         Add eh_epilogue_sp_ofs field.
9245
9246         *config/d30v/d30v.md (epilogue): Initialise eh_epilogue_sp_ofs
9247         field in cfun->machine structure.
9248
9249 Tue Jan  9 21:34:57 2001  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9250
9251         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): When generating pic code,
9252         PIC_OFFSET_TABLE_REGNUM_SAVED is a call_used register.
9253         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
9254
9255 Tue Jan  9 21:25:19 2001  Jeffrey A Law  (law@cygnus.com)
9256
9257         * objc/lang-options.h: Remove bogus reference to
9258         Java trademark.
9259
9260 2001-01-09  Kazu Hirata  <kazu@hxi.com>
9261
9262         * config/h8300/h8300.c (get_shift_alg): Use a struct shift_info to
9263         return the result.
9264
9265 2001-01-09  Alan Lehotsky  <lehotsky@tiac.net>
9266
9267         * reload.c (find_reloads_address): Check for eliminable registers
9268         when substituting a constant expression for a pseudo.
9269
9270 2001-01-09  Joseph S. Myers  <jsm28@cam.ac.uk>
9271
9272         * c-common.c (enum format_type): Add format_type_error.
9273         (decode_format_type): New function.
9274         (decl_attributes): Use it.
9275         (format_kind_info): Adjust comment.
9276
9277 2001-01-09  David O'Brien  <obrien@BSDi.com>
9278
9279         * config.gcc (*-*-gnu*, i[34567]86-*-elf*, i[34567]86-*-linux*libc1,
9280         i[34567]86-*-linux*, i[34567]86-*-moss*): Specify needed platform specific
9281         files in tm_file.
9282         * config/i386/gnu.h: Don't include required platform specific .h files,
9283         tm.h will do it instead.
9284         * config/i386/i386elf.h: Likewise.
9285         * config/i386/linux.h: Likewise.
9286         * config/i386/moss.h: Likewise.
9287         * config/mips/gnu.h: Likewise.
9288
9289 2001-01-09  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9290
9291         * config.gcc (powerpc-*-beos*): Include ${tm_file} and rs6000/aix.h.
9292         (rs6000-ibm-aix3.[01]*): Likewise.
9293         (rs6000-ibm-aix3.2.[456789]*, powerpc-ibm-aix3.2.[456789]*): Likewise.
9294         (rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Likewise.
9295         (rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*): Likewise.
9296         (rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*): Likewise.
9297         (powerpc-*-sysv*): Include {tm_file}. svr4.h and rs6000/sysv4.h.
9298         (powerpc-*-eabiaix*): Likewise.
9299         (powerpc-*-eabisim*): Likewise.
9300         (powerpc-*-elf*): Likewise.
9301         (powerpc-*-eabi*): Likewise.
9302         (powerpc-*-rtems*): Likewise.
9303         (powerpc-*-linux*libc1): Likewise.
9304         (powerpc-*-linux*): Likewise.
9305         (powerpc-wrs-vxworks*): Likewise.
9306         (powerpcle-wrs-vxworks*): Likewise.
9307         (powerpcle-*-sysv*): Likewise.
9308         (powerpcle-*-elf*): Likewise.
9309         (powerpcle-*-eabisim*): Likewise.
9310         (powerpcle-*-eabi*): Likewise.
9311         (powerpcle-*-solaris2*): Likewise.
9312         * config/rs6000/aix31.h: Delete includes.
9313         * config/rs6000/aix3newas.h: Likewise.
9314         * config/rs6000/aix41.h: Likewise.
9315         * config/rs6000/aix43.h: Likewise.
9316         * config/rs6000/beos.h: Likewise.
9317         * config/rs6000/rtems.h: Likewise.
9318         * config/rs6000/sysv4.h: Likewise.
9319
9320 2001-01-09  Kazu Hirata  <kazu@hxi.com>
9321
9322         * config/h8300/h8300.c (get_shift_alg): Remove an argument cpu.
9323         Change an argument mode of machine_mode to shift_mode of
9324         shift_mode.  Remove an extra error check.
9325         (emit_a_shift): Adopt to the new calling prototype of
9326         get_shift_alg.
9327         (function_prologue): Fix code for a monitor
9328         function.  Support H8/S.
9329         (function_epilogue): Do not output pop for a monitor function.
9330
9331 2001-01-09  Nick Clifton  <nickc@redhat.com>
9332
9333         * config/rs6000/rs6000.c (rs6000_sysv_varargs_p): Delete.
9334         (setup_incoming_varargs): Use sysv_varargs_p field of the
9335         cfun->machine structure.
9336         (struct machine_function): Move to rs6000.h
9337         (rs6000_save_machine_status): Delete.
9338         (rs6000_restore_machine_status): Delete.
9339         (rs6000_init_machine_status): New Function.
9340         (rs6000_free_machine_status): New Function.
9341         (rs6000_init_expanders): Use new functions.
9342
9343         * config/rs6000/rs6000.h (rs6000_sysv_varargs_p): Delete
9344         export.
9345         (struct machine_function): Move here.
9346
9347         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
9348         sysv_varargs_p field of the cfun->machine structure.
9349
9350         * config/rs6000/rs6000-protos.h (rs6000_save_machine_status):
9351         Remove prototype.
9352         (rs6000_restore_machine_status): Remove prototype.
9353
9354 2001-01-09  Richard Henderson  <rth@redhat.com>
9355
9356         * sched-int.h (struct deps): Add max_reg, reg_last_in_use; merge
9357         reg_last_uses, reg_last_sets, reg_last_clobbers into struct deps_reg.
9358         * sched-deps.c (sched_analyze_1): Update uses of struct deps.
9359         (sched_analyze_2, sched_analyze_insn): Likewise.
9360         (sched_analyze, init_deps): Likewise.
9361         (free_deps): Likewise.  Iterate with EXECUTE_IF_SET_IN_REG_SET.
9362         * sched-rgn.c (propagate_deps): Likewise.  Remove max_reg argument.
9363         (compute_block_backward_dependences): Update propagate_deps call.
9364
9365 2001-01-09  Mark Elbrecht  <snowball3@bigfoot.com>
9366
9367         * gcc.c (process_command): Set switches[n_switches].ordering to 0.
9368
9369 2001-01-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9370
9371         * cppinit.c (OPT_MD, OPT_MMD): Restore.
9372         (cpp_handle_option): Handle them.
9373         (cpp_post_options): Ensure one of -M or -MM is specified with
9374         any other -M? option.
9375         (init_dependency_output): Suppress output with -MG.
9376
9377 2001-01-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9378
9379         * cpp.texi: Update.
9380         * invoke.texi: Update.
9381
9382 2001-01-09  Bernd Schmidt  <bernds@redhat.com>
9383
9384         * sh.md (reload_outsf): Generate recognizable patterns for
9385         TARGET_SH3E.
9386
9387 2001-01-09  Neil Booth  <neil@daikokuya.demon.co.uk>
9388
9389         * c-lang.c (lang_hooks): Update.
9390         (lang_init): Rename c_init.
9391         (lang_finish): Remove.
9392         * toplev.c (compile_file): Use lang_hooks for lang_init ()
9393         and lang_finish ().
9394         * toplev.h (lang_hooks): Add init () and finish ().
9395         * tree.h (lang_init, lang_finish): Remove.
9396         * cp/tree.h (lang_init, lang_finish): Remove.
9397         * cp/decl2.c (cxx_post_options, lang_hooks): Move to cp/lex.c.
9398         * cp/lex.c (cxx_init, cxx_finish, cxx_post_options,
9399         lang_hooks): New.
9400         (lang_init, lang_finish): Remove.
9401         * f/com.c (lang_init, lang_finish): Rename f_init, f_finish.
9402         (lang_hooks): Update.
9403         * java/lang.c (lang_init): Rename java_init.
9404         (lang_finish): Remove.
9405         (lang_hooks): Update.
9406         * objc/objc-act.c (lang_init): Rename objc_init.
9407         (lang_finish): Remove.
9408         (lang_hoooks): Update.
9409
9410 20001-01-09  Graham Stott  <grahams@redhat.com>
9411
9412         * cppfiles.c (_cpp_execute_include): Move `len` initialisation
9413         after `ptr` is initialised.
9414
9415 2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
9416
9417         * config/sh/sh.h (STATIC_CHAIN_REGNUM): Change from r13 to r3.
9418         (INITIALIZE_TRAMPOLINE): Adjust accordingly.
9419         * config/sh/sh.c (sh_expand_prologue): Use r1 as temporary for
9420         stack adjusts, instead of r3.
9421
9422 2001-01-09  Michael Hayes  <mhayes@redhat.com>
9423
9424         * flow.c (flow_loop_scan): Break out of ...
9425         (flow_loops_find) ... here.
9426         * basic-block.h (flow_loop_scan): New.
9427         (LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES): Add.
9428         (LOOP_EDGES, LOOP_EXITS_DOMS, LOOP_ALL): Redefine.
9429
9430 2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
9431
9432         * cppinit.c (cpp_cleanup): NULLify macro_buffer and zero
9433         macro_buffer_len.
9434         * cppmacro.c (cpp_macro_definition): Reset macro_buffer_len when
9435         realloc()ing macro_buffer.
9436
9437         * hwint.h (HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Use long long
9438         if it's wider than long and the target's long is wider than the
9439         host's.
9440
9441 2001-01-09  Mark Mitchell  <mark@codesourcery.com>
9442
9443         Remove support for using UWIN as a host machine.
9444         * configure.in: Issue an error message.
9445         * configure: Regenerated.
9446         * config.gcc: Remove xm_* UWIN configury.
9447         * config/i386/xm-uwin.h: Remove.
9448
9449 2001-01-08  Nick Clifton  <nickc@redhat.com>
9450
9451         * config/v850/v850.c (ra_rtx): Delete.
9452         (v850_save_machine_status): Delete.
9453         (v850_restore_machine_status): Delete.
9454         (v850_init_machine_status): New function.
9455         (v850_mark_machine_status): New function.
9456         (v850_free_machine_status): New function.
9457         (v850_return_addr): Use ra_rtx field in machine structure.
9458         (v850_init_expanders): Use new functions.
9459
9460         * config/v850/v850-protos.h: Fix prototypes for v850_output_*
9461         * config/v850/v850.c: Change arguments to v850_output+* functions
9462         to take a const char *, to avoid compile time warning.
9463         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Undefine, not needed.
9464         (USER_LABEL_PREFIX): Redefine.
9465
9466 2000-01-08  Jim Wilson  <wilson@redhat.com>
9467
9468         * sched-rgn.c (BITSET_ADD, BITSET_REMOVE, bitset_member): Cast
9469         1 to unsigned HOST_WIDE_INT before left shift.
9470
9471 2001-01-08  Nick Clifton  <nickc@redhat.com>
9472
9473         * config/arm/arm.c (arm_mark_machine_status): Check to see if
9474         the machine structure has been allocated.
9475         (arm_free_machine_status): New function: Free the machine
9476         specific function structure.
9477
9478 2001-01-08  Richard Henderson  <rth@redhat.com>
9479
9480         * jump.c (simplejump_p): Revert last change.
9481
9482 2001-01-08  Neil Booth  <neil@daikokuya.demon.co.uk>
9483
9484         * cppinit.c (init): Rename init_library.
9485         (cpp_create_reader): Update.
9486         * gcc.c (cpp_options): If -o given, use it as the target of
9487         any -M options.
9488
9489 2001-01-08  Richard Earnshaw  <rearnsha@arm.com>
9490
9491         * arm.c (arm_arch5e): New variable.
9492         (all_cores): XScale is a 5TE device.
9493         (arm_override_options): Set arm_arch5e.
9494         (arm_init_builtins): __builtin_prefetch is in arch5e.
9495         * arm.h (arm_arch5e): Declare it.
9496
9497         * arm.h (PREDICATE_CODES): Add arm_hard_register_operand.
9498
9499         * arm.md (define_constants): Add defines for UNSPEC and
9500         UNSPEC_VOLATILE insns.  Update all users.
9501         (define_constants): Add constants for IP_REGNUM, SP_REGNUM, PC_REGNUM.
9502         * arm.c (multi_register_push, note_invalid_constants)
9503         (emit_multi_reg_push, emit_sfm, expand_prologue): Use constants.
9504         * arm.h (SP_REGNUM, IP_REGNUM, PC_REGNUM): Delete defines.
9505         (STACK_POINTER_REGNUM): Define in terms of SP_REGNUM.
9506
9507 Mon Jan  8 16:14:56 MET 2001  Jan Hubicka  <jh@suse.cz>
9508
9509         * jump.c (jump_optimize_1): Use reversed_comparison_code
9510         instead of can_reverse_comparison_p.
9511         (jump_back_p): Likewise.
9512         (invert_exp_1): Likewise.
9513         (thread_jumps): Likewise.
9514         * simplify-rtx.c (simplify_unary_operation): Likewise.
9515         (simplify_ternary_operation): Likewise.
9516         * cse.c (find_comparison_args): Convert to use
9517         can_reverse_comparison_p.
9518         (record_jump_equiv): Likewise.
9519
9520 2001-01-08  Richard Earnshaw  <rearnsha@arm.com>
9521
9522         * arm.h (HARD_REGNO_RENAME_OK): Delete.
9523         (EPILOGUE_USES): Define.
9524         (INITIAL_ELIMINATION_OFFSET): Current prologue code does not
9525         automatically stack the LR if it isn't live.
9526
9527 Mon Jan  8 13:46:02 MET 2001  Jan Hubicka  <jh@suse.cz>
9528
9529         * i386.c (ix86_expand_int_movcc): Take care to reverse fp conditions
9530         properly.
9531
9532 Sun Jan  7 18:37:43 2001  Mark P Mitchell  <mark@codesourcery.com>
9533
9534         * ggc-page.c (max_alignment): New structure.
9535         (MAX_ALIGNMENT): New macro.
9536         (init_ggc): Use it to round up the sizes in the
9537         extra_order_size_table.
9538
9539 2001-01-07  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9540
9541         * config/rs6000/rs6000.h (EPILOGUE_USES): New, mark link register
9542         after reload.
9543
9544 2001-01-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9545
9546         * builtins.def (BUILT_IN_FPRINTF): New entry.
9547
9548         * c-common.c (c_expand_builtin_fprintf): New function.
9549         (init_function_format_info): Handle __builtin_fprintf.
9550         (c_common_nodes_and_builtins): Declare fprintf/__builtin_fprintf.
9551         (c_expand_builtin): Handle BUILT_IN_FPRINTF.
9552
9553         * c-decl.c (duplicate_decls): Adjust comment.
9554
9555         * extend.texi (fprintf): Document new builtin.
9556
9557 2001-01-07  Richard Henderson  <rth@redhat.com>
9558
9559         * jump.c (simplejump_p): Recognize any single_set jump
9560         of the proper form.
9561
9562 2001-01-07  Richard Henderson  <rth@redhat.com>
9563
9564         * configure.in (slibdir): Accept an --with-slibdir option.
9565         Use "test" not "[" in configure.  Default to $(libdir).
9566
9567         * config/t-linux (SHLIB_INSTALL): Double quote slibdir;
9568         fix typo in rm -f.
9569         * config/t-aix43 (SHLIB_INSTALL): Likewise.
9570         * config/alpha/t-osf4 (SHLIB_INSTALL): Likewise.
9571         (SHLIB_LINK): Create links for the soname.
9572         * config/mips/t-iris6: Likewise.
9573         * config/sparc/t-slibgcc: Likewise.
9574         * config/sparc/t-slibgcc-sld: Likewise.
9575
9576 2001-01-07  Jakub Jelinek  <jakub@redhat.com>
9577
9578         * config/i386/i386.c (constant_call_address_operand): Accept
9579         (const (plus (symbol_ref) (const_int))).
9580         * config/i386/i386.h (PREDICATE_CODES): Add CONST for
9581         constant_call_address_operand.
9582
9583 2001-01-08  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
9584
9585         * libgcc2.h (W_TYPE_SIZE): Fix case where MIN_UNITS_PER_WORD == 1
9586         and LONG_LONG_TYPE_SIZE > 32.
9587
9588 2001-01-07  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9589
9590         * jump.c (reversed_comparison_code_parts): Fix typo introduced by
9591         the previous change.
9592
9593 Sun Jan  7 19:37:48 MET 2001  Jan Hubicka  <jh@suse.cz>
9594
9595         * jump.c (reversed_comparison_code_parts, reversed_comparison_code):
9596         New.
9597         (can_reverse_comparison_p): Rewrite to use reversed_comparison_code.
9598         (reverse_condition_maybe_unordered): Abort on unsigned comparisons.
9599         * rtl.h (reversed_comparison_code_parts, reversed_comparison_code):
9600         Declare.
9601
9602 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9603
9604         * fix-header.c (read_scan_file): s/pfile/scan_in/.
9605
9606 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9607
9608         * c-lang.c (c_post_options): Call cpp_post_options.
9609         * objc/objc-act.c (objc_post_options): Similarly.
9610         * cppmain.c (main): Similarly.
9611         * fix-header.c (read_scan_file): Similarly.
9612         * cppinit.c (cpp_start_read): Move option consistency checks
9613         to cpp_post_options.  Don't call init_dependency_output.
9614         If needed, add default target and main file dependency.
9615         (OPT_MD, OPT_MMD): Remove.
9616         (OPT_MF): New.
9617         (cpp_handle_option): Update for OPT_* changes.
9618         (cpp_post_options): New.
9619         (init_dependency_output): Command line -MF overrides environment
9620         variables.  Don't set default target etc.  Suppress output
9621         if dependencies are going to stdout.
9622         (print_help): Update.
9623         * cpplib.h (cpp_post_options): New.
9624         * gcc.c (cpp_options): Update for -MD, -MMD, -MF.
9625
9626 Sun Jan  7 14:44:19 MET 2001  Jan Hubicka  <jh@suse.cz>
9627
9628         * jump.c (comparison_dominates_p): Support unordered compares.
9629
9630 Sun Jan  7 14:39:07 MET 2001  Jan Hubicka  <jh@suse.cz>
9631
9632         * simplify-rtx.c (simplify_relational_operation): Always simplify
9633         ORDERED and UNORDERED when FLAG_FAST_MATH.  Handle properly UNLE
9634         and UNGE.
9635
9636 Sun Jan  7 14:35:13 MET 2001  Jan Hubicka  <jh@suse.cz>
9637
9638         * combine.c (combine_simplify_rtx): Recognize the unordered compares.
9639         (nonzero_bits): Likewise.
9640         (simplify_comparison): Likewise.
9641         (num_sign_bit_copies): Likewise; return more sane value depending
9642         on STORE_FLAG_VALUE.
9643         (known_cond): Do not assume EQ to be always true for equivalent
9644         operands.
9645
9646 Sun Jan  7 14:31:57 MET 2001  Jan Hubicka  <jh@suse.cz>
9647
9648         * cse.c (fold_rtx): Handle unordered comparisons.
9649
9650 Sun Jan  7 13:49:19 MET 2001  Jan Hubicka  <jh@suse.cz>
9651
9652         * rtlanal.c (set_of_1): New static function.
9653         (reg_set_last_1, reg_set_p_1, reg_set_reg, reg_set_flag,
9654          reg_set_last_unknown, reg_set_last_value, reg_set_last_first_regno,
9655          reg_set_last_last_regno): Remove.
9656         (set_of): New global function.
9657         (set_of_data): New structure.
9658         (reg_set_p, reg_set_last): Revamp for set_of.
9659         * rtl.h (set_of): New.
9660
9661 2001-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
9662
9663         * c-common.c (c_common_nodes_and_builtins): Add _Exit builtin.
9664         * extend.texi: Document _Exit builtin.
9665
9666 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9667
9668         * (initialize, initialize_builtins,
9669         initialize_dependency_output, initialize_standard_includes):
9670         Rename s/initialize/init. Update.
9671         (init_dependency_output): Move to after
9672         cpp_handle_options, the correct location temporally at least.
9673         (opt_comp): Move next to init (), its caller.  Fix prototype.
9674         (init): Make "initialized" local scope.
9675         (cpp_create_reader): Always call init ().
9676         (cpp_start_read): Update.
9677         (output_deps): New function, broken out of cpp_finish.
9678         (cpp_finish): Break out output_deps.
9679
9680 2001-01-07  Richard Henderson  <rth@redhat.com>
9681
9682         * collect2.c (COFF specific stuff): Revert 12-06 patch
9683         to prototype system functions.
9684
9685 2001-01-07  Michael Hayes  <mhayes@redhat.com>
9686
9687         * hard-reg-set.h: Add multiple include guard.
9688         * basic-block.h (struct loop): Add `sink' field.
9689         * loop.h: Include sbitmap.h, hard-reg-set.h, and basic-block.h.
9690         (emit_iv_add_mult): Delete.
9691         (loop_iv_add_mult_hoist, loop_iv_add_mult_sink): Define.
9692         (loop_iv_add_mult_emit_before, loop_insn_sink): Define.
9693         (unroll_loop): Remove end_insert_before argument.
9694         * loop.c (loop_givs_rescan): Remove end_insert_before argument.
9695         (maybe_eliminate_biv_1): Likewise.
9696         (emit_iv_add_mult): Delete.
9697         (gen_add_mult, loop_regs_update): New.
9698         (loop_insn_emit_after, loop_insn_emit_before): New.
9699         (loop_insn_sink, loop_insn_sink_or_swim): New.
9700         (emit_iv_add_mult): Delete.
9701         (scan_loop): Set loop->sink.
9702         (loop_givs_reduce): Use loop_insn_sink and its ilk.
9703         (loop_givs_rescan, strength_reduce, check_dbra_loop): Likewise.
9704         (maybe_eliminate_biv_1): Likewise.
9705         (maybe_eliminate_biv_1): Add basic block argument.
9706         * unroll.c (unroll_loop): Remove end_insert_before argument.
9707         (find_splittable_regs): Likewise.
9708         (find_splittable_regs): Use loop_insn_sink and its ilk.
9709         (find_splittable_givs, final_biv_value, final_giv_value): Likewise.
9710
9711 2001-01-07  Michael Hayes  <mhayes@redhat.com>
9712
9713         * loop.h (loop_insn_hoist): New prototype.
9714         * loop.c (loop_insn_hoist, loop_insn_emit_before): New.
9715         (move_movables, loop_givs_rescan): Use loop_insn_hoist.
9716         (check_dbra_loop, load_mems): Likewise.
9717         * unroll.c (unroll_loop, find_splittable_regs): Likewise.
9718         (find_splittable_givs): Likewise.
9719
9720 2001-01-07  Michael Hayes  <mhayes@redhat.com>
9721
9722         * loop.c (emit_iv_add_mult): Use single_set to examine new insn.
9723
9724 2001-01-07  Richard Henderson  <rth@redhat.com>
9725
9726         * sched-rgn.c (is_cfg_nonregular): Fix thinko's last change.
9727
9728 2001-01-07  Richard Henderson  <rth@redhat.com>
9729
9730         * Makefile.in (DRIVER_DEFINES): Define ENABLE_SHARED_LIBGCC and
9731         NO_SHARED_LIBGCC_MULTILIB as required for the target.
9732         * gcc.c (init_spec): Massage the existing libgcc_spec into a
9733         variant that handles a shared libgcc.
9734         (process_command): Always validate -{static,shared}-libgcc.
9735         (do_spec_1): New 'M' case.
9736         * invoke.text (Link Options): Document -{static,shared}-libgcc.
9737
9738 2001-01-07  Richard Henderson  <rth@redhat.com>
9739
9740         * Makefile.in (slibdir): New variable.
9741         (libgcc.mk): Pass SHLIB_INSTALL to mklibgcc.
9742         (installdirs): Create slibdir.
9743         (install-libgcc, install-multilib): Defer to libgcc.mk.
9744         * configure.in (slibdir): Substitute.
9745         * mklibgcc.in (install): New target.
9746
9747         * config/t-linux (SHLIB_LINK): Create links for the soname.
9748         (SHLIB_INSTALL): New.
9749         * config/alpha/t-osf4 (SHLIB_INSTALL): New.
9750         * config/mips/t-iris6 (SHLIB_INSTALL): New.
9751         * config/rs6000/t-aix43 (SHLIB_INSTALL): New.
9752         * config/sparc/t-slibgcc (SHLIB_INSTALL): New.
9753         * config/sparc/t-slibgcc-sld (SHLIB_INSTALL): New.
9754
9755 2001-01-07  Richard Henderson  <rth@redhat.com>
9756
9757         * config/rs6000/aix.h (LINK_LIBGCC_SPECIAL_1): New.
9758         * config/rs6000/rs6000.h (LIBGCC_SPEC): Remove.
9759         * config/rs6000/sysv4.h (LIBGCC_SPEC): Remove.
9760
9761 2001-01-07  Michael Hayes  <mhayes@redhat.com>
9762
9763         * loop.c (count_loop_regs_set): Delete.
9764         (load_mems_and_recount_loop_regs_set): Delete.
9765         (loop_regs_scan): Merge common code from count_loop_regs_set,
9766         scan_loop, and load_mems_and_recount_loop_regs_set.
9767         (scan_loop): Call load_mems directly and loop_regs_scan
9768         again if new registers created.
9769
9770 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9771
9772         * toplev.c (main): Call the front-end specific post_options
9773         hook if one is given.
9774         * toplev.h (struct_lang_hooks, lang_hooks): New.
9775         * c-lang.c (c_post_options, lang_hooks): Implement lang_hooks
9776         for the C front end.
9777         * cp/decl2.c (cxx_post_options, lang_hooks): Implement
9778         lang_hooks for the C++ front end.
9779         * objc/objc-act.c (objc_post_options, lang_hooks): Implement
9780         lang_hooks for the ObjC front end.
9781         * f/com.c (lang_hooks): Hooks for the Fortran front end.
9782         * java/lang.c (lang_hooks): Hooks for the Java front end.
9783
9784 2001-01-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9785
9786         * c-lex.c (init_c_lex): Request #define / #undef callbacks
9787         for verbose DWARF[2] debugging.
9788         (cb_define, cb_undef): The new callbacks.
9789         * toplev.h (debug_define, debug_undef): Make const correct.
9790         * toplev.c (debug_define, debug_undef): Similarly.  Do not
9791         perform the verbosity tests here anymore.
9792
9793 2001-01-07  Alexandre Oliva  <aoliva@redhat.com>
9794
9795         * reload.c (subst_reloads): Take INSN argument.  When
9796         replacing a LABEL_REF in a JUMP_INSN, add a REG_LABEL note.
9797         * reload.h (subst_reloads): Adjust prototype.
9798         * reload1.c (reload_as_needed): Pass INSN to subst_reloads.
9799         * jump.c (mark_all_labels): Canonicalize any REG_LABEL notes
9800         present in JUMP_INSNs and copy them to JUMP_LABEL.
9801         * flow.c (find_label_refs, find_basic_blocks_1): Skip
9802         JUMP_INSNs and insns with REG_LABELs that are followed by
9803         JUMP_INSNs with the same REG_LABEL.
9804         * sched-rgn.c (is_cfg_nonregular): Likewise.
9805         * rtlanal.c (computed_jump_p): Make it false if a REG_LABEL
9806         note is available.
9807         * unroll.c (unroll_loop): Look for REG_LABEL notes in
9808         JUMP_INSNs too.
9809         * rtl.texi (REG_LABEL): Document usage in JUMP_INSNs.
9810
9811 2001-01-06  Richard Henderson  <rth@redhat.com>
9812
9813         * loop.c (scan_loop): Use xcalloc for the regs array.
9814         (load_mems_and_recount_loop_regs_set): Zero the new memory
9815         received from xrealloc.
9816
9817 2001-01-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9818
9819         * mkdeps.c (deps_add_dep): Fix vector re-allocation.
9820
9821 Sat Jan  6 00:09:34 2001  J"orn Rennecke <amylaar@redhat.com>
9822
9823         * integrate.c (copy_rtx_and_substitute): When copying
9824         an ignored return value, strip REG_FUNCTION_VALUE_P.
9825
9826 2001-01-06  Michael Hayes  <mhayes@redhat.com>
9827
9828         * loop.c (debug_biv, debug_giv): New.
9829         (loop_biv_dump): Break out from ...
9830         (record_biv): ... here.
9831         (loop_giv_dump): Break out from ...
9832         (record_giv): ... here.
9833         (loop_bivs_check): Use print_simple_rtl.
9834         * unroll.c (loop_iterations): Use print_simple_rtl.
9835
9836 2000-01-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9837
9838         * pa.md (return, return_internal): Modify patterns to prevent regrename
9839         mucking with the return pointer.
9840
9841 2001-01-05  Richard Henderson  <rth@redhat.com>
9842
9843         * dwarf2out.c (mem_loc_descriptor) [case MEM]: Revert 10-31 change.
9844
9845 Fri Jan  5 16:34:18 2001  Nick Clifton  <nickc@redhat.com>
9846
9847         * config/v850/lib1funcs.asm: Replace __mulsi3 routine with faster
9848         version supplied by Matteo Frigo.
9849
9850 2001-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9851
9852         * cpp.texi: Update for -MQ.
9853         * cppinit.c (cpp_create_reader): Always create pfile->deps.
9854         (cpp_cleanup): Always free pfile->deps.
9855         (initialize_dependency_output): Don't create pfile->deps.
9856         (cpp_handle_option): Similarly.
9857         (OPT_MQ): New.
9858         * gcc.c (cpp_options): Handle -MQ.
9859         (DEFAULT_WORD_SWITCH_TAKES_ARG): Add -MQ.
9860         * mkdeps.c (base_name): Remove.
9861         (deps_init): Don't allocate vector space until it's needed.
9862         (deps_free): Only free vectors if allocated.
9863         (deps_add_target, deps_add_dep): Update for initial allocation.
9864         (deps_add_default_target): Don't strip to the base_name.
9865
9866 2001-01-05  DJ Delorie <dj@redhat.com>
9867
9868         * config/v850/v850.h (RETURN_ADDR_RTX): Define.
9869         (INIT_EXPANDERS): Define.
9870
9871         * config/v850/v850.c (struct machine_function): Define.
9872         (v850_save_machine_status): New function.
9873         (v850_restore_machine_status): New function.
9874         (v850_return_addr): New function.
9875         (v850_init_expanders): New function.
9876
9877         * config/v850/v850-protos.h: Add prototypes for v850_return_addr
9878         and v850_init_expanders.
9879
9880 2001-01-05  Zack Weinberg  <zack@wolery.stanford.edu>
9881
9882         * cpplib.h (struct cpp_reader): Add help_only field.
9883         * cppinit.c (COMMAND_LINE_OPTIONS): Add OPT_version.
9884         (cpp_handle_option): Set pfile->help_only if we see -h,
9885         --help, -target-help, or --version.  Print version string but
9886         do not set help_only if we see -v or -version.  Make text
9887         printed by -v match that printed by (-)-version.
9888
9889         * cppmain.c (main): Exit after option parsing if
9890         pfile->help_only is true.
9891
9892         * toplev.c (independent_decode_option): Call print_version,
9893         then exit, if we see --version (but not -version).
9894         (print_version): Split lengthy message into two lines.
9895
9896 2001-01-05  Nick Clifton  <nickc@redhat.com>
9897
9898         * config/v850/v850.c (v850_encode_data_area): Use alloca to create
9899         temporary string for initialisation before calling ggc_alloc_string.
9900
9901 2001-01-06  Michael Hayes  <mhayes@redhat.com>
9902
9903         * rtl.h (print_simple_rtl): New.
9904         * print-rtl.c (print_simple_rtl): New.
9905         (flag_simple): New.
9906         (print_rtx): Disable printing of flags and modes, etc.,
9907         if `flag_simple` nonzero.
9908
9909 2001-01-05  Zack Weinberg  <zack@wolery.stanford.edu>
9910
9911         * function.c (fixup_var_refs): Use push_to_full_sequence where
9912         possible.
9913
9914 2001-01-05  Michael Meissner  <meissner@redhat.com>
9915
9916         * flags.h (flag_reorder_blocks): Add declaration.
9917         (flag_rename_block): Ditto.
9918
9919 2001-01-05  DJ Delorie  <dj@redhat.com>
9920
9921         * function.c (reorder_blocks): Make sure the flags are all reset
9922         before using them to mark blocks, else a second invocation will
9923         corrupt the block chain.
9924         (reorder_blocks_0): New, resets the flags.
9925
9926 Fri Jan  5 20:34:06 2001  J"orn Rennecke <amylaar@redhat.com>
9927
9928         * cse.c (find_comparison_args): Stop if the argument is known to
9929         be constant.
9930
9931 2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
9932
9933         * config/sh/sh.md (movdf): When splitting load into pair of
9934         registers, don't clobber the register used in the address too
9935         early.
9936
9937 2001-01-05  Jeffrey Oldham  <oldham@codesourcery.com>
9938
9939         * varasm.c (mark_constant_pool): Improve initial comments.
9940         (mark_constants): Move marking of constants to mark_constant.
9941         (mark_constant): New function to recursively mark all constants
9942         referred to by a constant.
9943
9944 2001-01-05  Catherine Moore  <clm@redhat.com>
9945
9946         * dbxout.c ((dbxout_parms): Handle invisible ref where decl is a REG.
9947
9948 2001-01-05  Phil Edwards  <pme@sources.redhat.com>
9949
9950         * cp/lang-options.h:  Bring comment in line with reality.
9951         * f/lang-options.h:  Likewise.
9952         * java/lang-options.h:  Likewise.
9953         * objc/lang-options.h:  Likewise.
9954         * ch/lang-options.h:  Likewise.
9955         * f/g77.texi:  And update the manual.
9956
9957 2001-01-05  Marek Michalkiewicz  <marekm@linux.org.pl>
9958             Denis Chertykov  <denisc@overta.ru>
9959
9960         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Prototype.
9961         * config/avr/avr.c (avr_peep2_scratch_safe): New function.
9962         * config/avr/avr.md (all peepholes that request a scratch register):
9963         Call it, FAIL the peephole if not safe (in interrupt functions).
9964
9965 2001-01-05  Mark Mitchell  <mark@codesourcery.com>
9966
9967         * ggc-page.c (NUM_EXTRA_ORDERS): Hardwire to zero for now.
9968
9969 2001-01-05  Joseph S. Myers  <jsm28@cam.ac.uk>
9970
9971         * builtins.def (BUILT_IN_CONJ, BUILT_IN_CREAL, BUILT_IN_CIMAG):
9972         Define.
9973         * builtins.c (expand_builtin): Abort on BUILT_IN_CONJ,
9974         BUILT_IN_CREAL and BUILT_IN_CIMAG.
9975         * c-common.c (c_common_nodes_and_builtins): Create builtin conjf,
9976         conj, conjl, crealf, creal, creall, cimagf, cimag and cimagl.
9977         (expand_tree_builtin): Handle BUILT_IN_CONJ, BUILT_IN_CREAL and
9978         BUILT_IN_CIMAG.
9979         * extend.texi: Document these builtins.
9980
9981 2001-01-05  Daniel Berlin  <dberlin@redhat.com>
9982
9983         * c-common.c (lang_get_alias_set): Say we know nothing of
9984         VECTOR_TYPE aliasing.
9985
9986         * dwarf2out.c (is_base_type): Handle VECTOR_TYPE properly.
9987
9988 2001-01-05  Bruce Korb  <bkorb@gnu.org>
9989
9990         * fixinc/mkfixinc.sh(vax-*-bsd): convert exit and atexit calls to
9991         their x* equivalent versions for atexit-less systems
9992         * fixinc/fixincl.c(main): do not return from main() on atexit-less
9993         systems (or any other system any more).
9994
9995 2001-01-05  Richard Earnshaw  <rearnsha@arm.com>
9996
9997         * arm.md (ldmsi_postinc): Avoid use of match_dup between input and
9998         output operands.  Use arm_hard_register_operand for operand 4.
9999         (stmsi_postinc): Similarly.
10000         (ldmsi): Use arm_hard_register_operand for opernand 2.
10001         (stmsi): Similarly.
10002         * arm.c (arm_hard_register_operand): New function.
10003         * arm-protos.h (arm_hard_register_operand): Prototype it.
10004
10005         * arm.h (HARD_REGNO_RENAME_OK): Define.
10006
10007 Fri Jan  5 16:29:49 MET 2001  Jan Hubicka  <jh@suse.cz>
10008
10009         * simplify-rtx.c (cfc_args): add "unordered" field.
10010         (check_fold_consts): Set unordered field.
10011         (simplify_relational_operation): Simplify the unordered
10012         comparisons.
10013
10014         * reg-stack.c (swap_rtx_condition): Ensure that the transformation
10015         is valid.
10016
10017         * emit-rtl.c (try_split): Fix code to mark labels.
10018         * jump.c (mark_jump_label): Make global.
10019         * rtl.h (mark_jump_label): Declare.
10020
10021         * predict.c (estimate_probability): Handle unordred comparisons.
10022
10023 2001-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10024
10025         * cpp.texi: Update for -MP.  Clarify behaviour of -MT.
10026         * cppinit.c (initialize_dependency_output):  Update.
10027         (cpp_finish): Output dummy targets for -MP.
10028         (OPT_MP): New.
10029         (cpp_handle_option): Handle -MP.  Don't quote -MT options.
10030         * cpplib.h (struct cpp_options): Add deps_phony_targets.
10031         * gcc.c (cpp_options): Update to handle -MP.
10032         * mkdeps.c (deps_add_target, deps_add_default_target): Update
10033         to quote only the default target.
10034         (deps_phony_targets): Insert a preceding newline.  Rename from
10035         deps_dummy_targets for consistency.
10036         * mkdeps.h: Update
10037
10038 2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
10039
10040         * calls.c (emit_library_call_value_1): Support
10041         INIT_CUMULATIVE_LIBCALL_ARGS.
10042         * tm.texi (INIT_CUMULATIVE_LIBCALL_ARGS): Document it.
10043
10044 2001-01-04  Richard Henderson  <rth@redhat.com>
10045
10046         * c-decl.c (finish_struct): Detect flexible array members
10047         used in an inappropriate context.
10048         * c-typeck.c (really_start_incremental_init): Special case
10049         constructor_max_index for zero length arrays.
10050         (pop_init_level): Allow initialization of flexible array
10051         members.  Deprecate initialization of zero length arrays.
10052         Don't issue missing initializer warning for flexible array
10053         members or zero length arrays.
10054         (process_init_element): Don't dereference null DECL_SIZE.
10055         * varasm.c (array_size_for_constructor): Return a HOST_WIDE_INT.
10056         Don't abort for empty constructors.  Use size_binop
10057         (output_constructor): Add commentary regarding zero length
10058         array futures.  Abort if we try to initialize an array of
10059         unspecified length with a non-empty constructor in the middle
10060         of a structure.
10061
10062         * extend.texi (Zero Length): Update and clarify documentation
10063         on static initialization.
10064
10065 2001-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10066
10067         * config/c4x/c4x.c (c4x_expand_prologue): Don't compile an ISR
10068         with more than 32767 words of local storage.
10069
10070 2001-01-05  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
10071
10072         * config/c4x/c4x.c (c4x_init_builtins): Remove builtin support
10073         for 'abs', 'labs', and 'fabs'.
10074         (c4x_expand_builtin): Likewise.
10075         * config/c4x/c4x.h (enum c4x_builtins): Likewise.
10076
10077 2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
10078
10079         * config/sh/sh.md (prget, prset): New insn types.
10080         (return delay slot): Dont' allow prset.
10081         (call, sfunc delay slot): Don't allow prget.
10082         (movsi_i, movsi_ie, movsi_i_lowpart): Create separate alternatives
10083         for prset and prget.
10084
10085 2001-01-05  Michael Hayes  <mhayes@redhat.com>
10086
10087         * loop.h (struct loop_reg): New.
10088         (struct loop_regs): Change to use array of `struct loop_reg'.
10089         * loop.c: Replace assortment of varrays with single regs array.
10090         (count_one_set): Delete may_not_move array argument
10091         and use regs array instead.  All caller's changed.
10092         (count_loop_regs_set): Delete may_not_move and single_usage
10093         arguments and use regs array instead.  All caller's changed.
10094         (find_single_use_in_loop): Replace usage array argument with pointer
10095         to regs structure.  All caller's changed.
10096         (loop_optimize): Delete `moved_once' array.
10097
10098 2001-01-05  Michael Hayes  <mhayes@redhat.com>
10099
10100         * loop.c (prescan_loop): Set loop_info->has_nonconst_call.
10101         Use it instead of loop_info->has_call for scanning loop mems.
10102         (check_dbra_loop): Replace loop_info->has_call test with
10103         loop_info->has_nonconst_call.
10104
10105 2000-01-04  Matthew Hiller  <hiller@redhat.com>
10106
10107         * config/sh/sh.h (EPILOGUE_USES): Recognize fpscr as epilogue-used
10108         for TARGET_SH3E.
10109
10110 2001-01-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10111
10112         * fold-const.c (fold): When folding a CONJ_EXPR of a COMPLEX_CST,
10113         use TREE_REALPART and TREE_IMAGPART instead of TREE_OPERAND.
10114
10115 2001-01-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10116
10117         * c-common.c (SIZE_TYPE, WCHAR_TYPE): Define.
10118         (flag_short_double, flag_short_wchar): Define.
10119         (c_common_nodes_and_builtins): Create many tree nodes shared
10120         between C and C++ here instead of in cp/decl.c and ...
10121         * c-decl.c (init_decl_processing): ... here.
10122         (SIZE_TYPE, WCHAR_TYPE): Don't define.
10123         (flag_short_double, flag_short_wchar): Don't define.
10124         (record_builtin_type): New function.
10125         (build_void_list_node): New function.
10126         * c-common.h (flag_short_double, flag_short_wchar,
10127         record_builtin_type, build_void_list_node): Declare.
10128
10129 Thu Jan  4 21:09:47 2001  J"orn Rennecke <amylaar@redhat.com>
10130
10131         * integrate.c (expand_inline_function): Don't put a virtual
10132         register into the reg map.
10133
10134         * function.c (fixup_var_refs_1): If force_operand didn't put
10135         the address into the target, move it there.
10136
10137 2001-01-04  Mark Mitchell  <mark@codesourcery.com>
10138
10139         Special-case tree_decl/tree_list allocations.
10140         * ggc-page.c (OBJECT_PER_PAGE): Reimplement.
10141         (OBJECT_SIZE): New macro.
10142         (NUM_EXTRA_ORDER): Likewise.
10143         (extra_order_size_table): New variable.
10144         (NUM_ORDERS): New macro.
10145         (objects_per_page_table): New variable.
10146         (object_size_table): New variable.
10147         (G.pages): Use NUM_ORDERS to bound the array.
10148         (G.page_tails): Likewise.
10149         (DIV_ROUND_UP): Remove.
10150         (BITMAP_SIZE): Use CEIL, instead of DIV_ROUND_UP.
10151         (alloc_page): Use OBJECT_SIZE.
10152         (size_lookup): Don't make it const.
10153         (ggc_alloc): Use OBJECT_SIZE.
10154         (ggc_set_mark): Likewise.
10155         (ggc_get_size): Likewise.
10156         (init_ggc): Set up the object_size_table, objects_per_page_table,
10157         and adjust size_lookup.
10158         (ggc_recalculate_in_use_p): Use CEIL, not DIV_ROUND_UP.
10159         (ggc_pop_context): Use NUM_ORDERS.
10160         (clear_marks): Likewise.
10161         (sweep_pages): Likewise.
10162         (poison_pages): Likewise.
10163         (ggc_print_statistics): Use OBJECT_SIZE.
10164
10165 Thu Jan  4 15:54:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10166
10167         * varasm.c (output_constructor): Use HOST_WIDE_INT for sizes.
10168         Only call array_size_for_constructor if last field and array type
10169         with no upper bound.
10170
10171 2001-01-04  Philip Blundell  <philb@gnu.org>
10172
10173         * config/arm/arm.c (arm_gen_constant): Prefer to emit constants
10174         from bit 31 downwards, if this requires no more insns.
10175         (count_insns_for_constant): New helper function for above.
10176
10177 2001-01-04  Alexandre Oliva  <aoliva@redhat.com>
10178
10179         * gencodes.c (output_predicate_decls): Remove empty initializer.
10180
10181 2001-01-04  Mark Mitchell  <mark@codesourcery.com>
10182
10183         * tree.c (copy_node): Remove documentation about obstacks.
10184         (buidl1): Check that nobody tries to build 2-argument nodes this
10185         way.
10186
10187 2001-01-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10188
10189         * sparc.h (PREDICATE_CODES): Delete fp_sethi_p, fp_mov_p and
10190         fp_high_losum_p.
10191
10192         * gencodes.c (output_predicate_decls): Fill empty initializer
10193         braces.
10194
10195 2001-01-04  Jakub Jelinek  <jakub@redhat.com>
10196
10197         * tradcpp.c (deps_file, print_deps_missing_files): New variables.
10198         (main): Handle -MG, -MD, -MMD.  Bail out if -MG is given without -M
10199         or -MM.
10200         (do_include): Handle missing headers like cpp0.
10201         * cppfiles.c (_cpp_execute_include): Don't prefix absolute header
10202         paths with first include pathname.  Don't strcat to uninitialized
10203         string.
10204
10205 2001-01-04  Bernd Schmidt  <bernds@redhat.com>
10206
10207         * regrename.c (regrename_optimize): Don't rename from frame pointer
10208         if frame_pointer_needed.
10209         (do_replace): Don't set ORIGINAL_REGNO to a hard register number.
10210         * config/ia64/ia64.c (emit_all_group_insn_barriers): New function.
10211         (ia64_reorg): Use it instead of scheduling if ! optimize.
10212         (errata_emit_nops): Properly call asm_noperands.
10213         (ia64_sched_reorder): Finish cycle if we see an asm.
10214         (ia64_variable_issue): Clear scheduling state after asms.
10215
10216 2001-01-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10217
10218         * cpp.texi: Update for -MT.
10219         * cppinit.c (initialize_dependency_output): Add a default
10220         target if none has been given already.
10221         (no_tgt, OPT_MT): New.
10222         (cpp_handle_option): Handle -MT.  Update -M etc.
10223         * cpplib.h (struct cpp_options): Remove deps_target.
10224         * gcc.c (cpp_options): Handle -MT.
10225         * mkdeps.c (struct deps): Move from mkdeps.h.
10226         (deps_calc_target): Rename deps_add_default_target.  Add a
10227         default target if none has been specified already.
10228         * mkdeps.h (struct deps): Move to mkdeps.c.
10229         (deps_calc_target): Rename deps_add_default_target.
10230
10231 2000-01-03  Richard Henderson  <rth@redhat.com>
10232
10233         * c-decl.c (grokdeclarator): Give zero-length arrays size zero.
10234         Remove dead code.
10235         * c-typeck.c (push_init_level): Move checks for flexible array
10236         members and zero length arrays ...
10237         (pop_init_level): ... here.  Silently discard empty initializations.
10238         Remove dead code.
10239         * varasm.c (output_constructor): Update for sizeof change to
10240         zero-length arrays.
10241
10242         * extend.texi (Zero Length): Clarify semantics.
10243
10244 2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
10245
10246         * configure.in (tm.h): Include isns-codes.h last.
10247         * configure: Rebuilt.
10248
10249 2001-01-03  Richard Henderson  <rth@redhat.com>
10250
10251         * config/alpha/alpha.md (addvsi3, addvdi3): New.
10252         (negvsi2, negvdi2, subvsi3, subvdi3, mulvsi3, mulvdi3): New.
10253
10254 2001-01-03  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10255
10256         * tradcpp.c (main): Make sure finclude() is called with a valid
10257         indepth value while handling -include.
10258
10259 2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
10260
10261         * gencodes.c (output_predicate_decls): New function.
10262         (main): Call it.
10263         * machmode.h (GET_MODE_MASK): Arrange for it to be defined
10264         even if it is not the first time machmode.h is #included.
10265         * config/sh/sh.c (fpul_operand): Declare MODE argument.
10266         * tm.texi (PREDICATE_CODES): Document predicate declarations.
10267         * gcc.texi (Copyright): Added 2001.
10268
10269 2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
10270
10271         * c-common.c (c_common_lang_init): New function.  Warn if format
10272         warning options which only have effects when used with -Wformat
10273         are used without -Wformat.
10274         * c-common.h (c_common_lang_init): Declare.
10275         * c-lang.c (lang_init): Call c_common_lang_init.
10276         * objc/objc-act.c (lang_init): Call c_common_lang_init.
10277
10278 2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
10279
10280         * configure.in: Check for the mktemp command.
10281         * configure: Regenerate.
10282         * gccbug.in: Use a separate temporary file $TEMP0 for one use of
10283         $TEMP.  Create temporary files with mktemp, if available at
10284         configure time; otherwise use set -C.  Remove temporary files
10285         before exit.
10286
10287 2001-01-03  Joseph S. Myers  <jsm28@cam.ac.uk>
10288
10289         * configure.in: Require at least texinfo 4.0.  Check for whether
10290         Pod::Man is sufficiently recent to regenerate GCC manpages.
10291         * configure:  Regenerate.
10292         * Makefile.in (TEXI2POD): Call perl explicitly rather than relying
10293         on #!.
10294         (GENERATED_MANPAGES): Define.
10295         (generated-manpages): New target.  Depend on cpp.1 as well as
10296         gcov.1.
10297         (install-man): Depend on $(GENERATED_MANPAGES) (defined by
10298         configure to generated-manpages or empty) rather than on the
10299         manpages directly.  Remove execute permission from installed
10300         gcov.1 as well as cpp.1.
10301         * cpp.1, gcov.1: Regenerate.
10302
10303 2001-01-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10304
10305         * builtins.c (expand_builtin_strncmp): Use host_integerp and
10306         tree_low_cst.  Allow using cmpstrsi in more cases.
10307
10308 Wed Jan  3 10:48:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10309
10310         * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for variable
10311         sized types.
10312
10313 Wed Jan  3 12:22:32 2001  Alexandre Oliva  <aoliva@redhat.com>
10314
10315         * build-make (HOST_CFLAGS): Added `-DGENERATOR_FILE'.
10316         * Makefile.in (HOST_CFLAGS): Mention build-make.
10317
10318 Wed Jan  3 08:53:50 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10319
10320         * config/sparc/sparc.md (nonlocal_goto): Emit goto_handler_and_restore
10321         as JUMP_INSN.
10322
10323 2001-01-01  Bernd Schmidt  <bernds@redhat.com>
10324
10325         * builtins.c (expand_builtin_return_addr): Don't use MEM_ALIAS_SET on
10326         a REG rtx.
10327
10328         * cse.c (cse_rtx_varies_p): Accept additional FROM_ALIAS arg.  All
10329         callers changed.
10330
10331         * alias.c (throughout): Use ORIGINAL_REGNO when accessing
10332         reg_base_value and reg_known_value arrays.
10333         (init_alias_analysis): Add more cases to detect known values.
10334         * sched-deps.c (deps_may_trap_p): New function.
10335         (sched_analyze_2): Use it.
10336
10337 2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
10338
10339         * combine.c (simplify_shift_const): Even if we're sign-extracting,
10340         don't discard an ASHIFTRT if we're shifting in a wider mode.
10341
10342 2000-01-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10343
10344         * toplev.c (rest_of_compilation): Don't print basic block information
10345         when CFG isn't up to date.
10346
10347 2001-01-02  Mark Elbrecht  <snowball3@bigfoot.com>
10348
10349         * config/i386/djgpp.h (DWARF2_DEBUGGING_INFO): Define.
10350         (UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_ASM_OP): Define.
10351         (UNALIGNED_SHORT_ASM_OP): Define.
10352         (CPP_PREDEFINES): Remove defines for GO32 and DJGPP.
10353
10354 2001-01-02  Mark Mitchell  <mark@codesourcery.com>
10355
10356         * fold-const.c (fold_convert): Fix typo.
10357
10358 2001-01-02  Richard Henderson  <rth@redhat.com>
10359
10360         * c-common.h (ASM_INPUT_P): New.
10361         * c-parse.in (asm): Set it when needed.
10362         * c-semantics.c (genrtl_asm_stmt): Test it instead of the
10363         existance of an operand.
10364
10365 Tue Jan  2 20:27:07 MET 2001  Jan Hubicka  <jh@suse.cz>
10366
10367         * dwarf2out.c (stack_adjust_offset): Handle PRE_MODIFY.
10368         (dwarf2out_frame_debug_expr): Likewise.
10369         (mem_loc_descriptor): Handle PRE and POST_MODIFY.
10370
10371 Tue Jan  2 20:21:31 MET 2001  Jan Hubicka  <jh@suse.cz>
10372
10373         * i386.c (ix86_split_to_parts): Return number of part required;
10374         handle TFmodes.
10375         (print_operand, ix86_expand_branch, ix86_expand_fp_movcc): Handle
10376         TFmodes.
10377         (ix86_split_long_move): Use number of part returned
10378         by ix86_split_to_parts
10379         * i386.h (MASK_128BIT_LONG_DOUBLE, TARGET_128BIT_LONG_DOUBLE):
10380         New macros.
10381         (TARGET_SWITCHES): Add 128bit-long-double and 96bit-long-double
10382         (LONG_DOUBLE_TYPE_SIZE): Change from constant.
10383         (MAX_LONG_DOUBLE_TYPE_SIZE): New macro.
10384         (INTEL_EXTENDED_IEEE_FORMAT): Likewise.
10385         (ALIGN_MODE_128): Add TFmode.
10386         (IS_STACK_MODE): Likewise.
10387         (HARD_REGNO_NREGS): TFmode needs 3 registers.
10388         (HARD_REGNO_OK): Support TFmodes.
10389         (ASM_OUTPUT_LONG_DOUBLE): Handle TFmodes.
10390         * i386.md (scheduler definitions): Use memory operand to determine
10391         fst/fld instructions; use mode attribute to determine real mode of
10392         the instruction.
10393         (*tf): New patterns, expanders and splitters; based on XFmode patterns.
10394         * invoke.texi (128bit-long-double, 96bit-long-double): Document.
10395
10396 2001-01-02  Mark Mitchell  <mark@codesourcery.com>
10397
10398         * tree.def (TRUTH_NOT_EXPR): Improve documentation.
10399
10400 Tue Jan  2 10:47:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
10401
10402         * expr.c (store_constructor_field): Update ALIGN before calling
10403         store_constructor.
10404
10405 2001-01-02  Jeffrey Oldham  <oldham@codesourcery.com>
10406
10407         * config/mips/mips.c (function_arg): Don't pass NULL_TREE to
10408         host_integerp.
10409
10410 2001-01-02  Jeffrey Oldham  <oldham@codesourcery.com>
10411
10412         * tm.texi (FUNCTION_ARG): Document that @var{type} can be an
10413         incomplete type.
10414
10415 Tue Jan  2 10:47:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
10416
10417         * c-decl.c (start_function): Don't warn on third parameter to main.
10418
10419 2001-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10420
10421         * tsystem.h: Define HAVE_DECL_GETOPT.
10422
10423 2001-01-02  Philip Blundell  <pb@futuretv.com>
10424
10425         * config/arm/linux-gas.h (CLEAR_INSN_CACHE): Avoid illegal clobber
10426         of input operand.
10427
10428 2001-01-02  Richard Henderson  <rth@redhat.com>
10429
10430         * alpha.md (*ze_and_ne): Duplicate insn condition to split.
10431
10432 2001-01-02  Andreas Jaeger  <aj@suse.de>
10433
10434         * c-decl.c (c_decode_option): Remove support of
10435         -Wmissing-noreturn.
10436
10437         * toplev.c (documented_lang_options): Remove -Wmissing-noreturn.
10438         (W_options): Add -Wmissing-noreturn here.
10439
10440         * flow.c: Define lang_missing_noreturn_ok_p.
10441         (check_function_return_warnings): Use it.
10442
10443         * c-common.h: Declare lang_missing_noreturn_ok_p.
10444
10445         * c-lang.c (c_missing_noreturn_ok_p): New function.
10446         (lang_init): Set lang_missing_noreturn_ok_p.
10447
10448         * invoke.texi (Warning Options): Document this.
10449
10450 2000-12-27  Phil Edwards  <pme@sources.redhat.com>
10451
10452         * extend.texi (C++ Extensions):  New node for C++ attributes;
10453         describe init_priority and com_interface.
10454         * invoke.texi:  Remove -finit-priority as it now has zero effect.
10455         * install.texi:  Fix xref syntax.
10456         * md.texi:  Likewise.
10457
10458 Mon Jan  1 21:28:29 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10459
10460         * config.gcc (sparc64-wrs-vxworks*): New case.
10461         * config/sparc/vxsparc64.h, config/sparc/t-vxsparc64: New files.
10462
10463         * config/sparc/sparc.c (sparc_override_options): Do support different
10464         pointer and architecture size.
10465         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Always 4.
10466         (POINTERS_EXTEND_UNSIGNED): Define.
10467         (Pmode): Test TARGET_ARCH64, not TARGET_PTR64.
10468         (FUNCTION_MODE): Define to be Pmode.
10469         * config/sparc/sparc.md (64-bit call patterns): FUNCTION_MODE now DI.
10470
10471         * function.c (expand_function_end): Properly handle DECL_RESULT
10472         and copy when ptr_mode != Pmode.
10473         * expmed.c (make_tree): Convert X from Pmode to ptr_mode, if needed.
10474
10475 2001-01-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10476
10477         * c-common.c (c_common_nodes_and_builtins): Set prototype
10478         parameters for __builtin_fputs, __builtin_fputc and
10479         __builtin_fwrite.  Don't declare plain fputc as a builtin.
10480
10481 2001-01-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10482
10483         * loop.c (add_label_notes): Increment the label usage count when
10484         a note is added to an insn which refers to a CODE_LABEL.
10485         * gcse.c (add_label_notes): Likewise.
10486
10487 2001-01-01  Andreas Jaeger  <aj@suse.de>
10488
10489         * loop.c (scan_loop): Use xmalloc to allocate movables.
10490
10491 2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
10492
10493         * tm.texi (REGISTER_MOVE_COST): Add a mode argument.
10494         * reload.c (REGISTER_MOVE_COST): Likewise.  Adjust all callers.
10495         * reload1.c (REGISTER_MOVE_COST): Likewise.
10496         * regclass.c (REGISTER_MOVE_COST): Likewise.
10497         (move_cost, may_move_in_cost, may_move_out_cost): Add mode
10498         dimension.  Adjust all users.
10499         (init_reg_sets_1): Iterate on all modes.
10500         * config/1750a/1750a.h (REGISTER_MOVE_COST): Adjust.
10501         * config/a29k/a29k.h (REGISTER_MOVE_COST): Adjust.
10502         * config/alpha/alpha.h (REGISTER_MOVE_COST): Adjust.
10503         * config/arc/arc.h (REGISTER_MOVE_COST): Adjust.
10504         * config/arm/arm.h (REGISTER_MOVE_COST): Adjust.
10505         * config/avr/avr.h (REGISTER_MOVE_COST): Adjust.
10506         * config/c4x/c4x.h (REGISTER_MOVE_COST): Adjust.
10507         * config/d30v/d30v.h (REGISTER_MOVE_COST): Adjust.
10508         * config/dsp16xx/dsp16xx.h (REGISTER_MOVE_COST): Adjust.
10509         * config/h8300/h8300.h (REGISTER_MOVE_COST): Adjust.
10510         * config/i386/i386.h (REGISTER_MOVE_COST): Adjust.
10511         * config/ia64/ia64.h (REGISTER_MOVE_COST): Adjust.
10512         * config/m32r/m32r.h (REGISTER_MOVE_COST): Adjust.
10513         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Adjust.
10514         * config/m68k/m68k.h (REGISTER_MOVE_COST): Adjust.
10515         * config/mcore/mcore.h (REGISTER_MOVE_COST): Adjust.
10516         * config/mips/mips.h (REGISTER_MOVE_COST): Adjust.
10517         * config/mn10200/mn10200.h (REGISTER_MOVE_COST): Adjust.
10518         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Adjust.
10519         * config/ns32k/ns32k.h (REGISTER_MOVE_COST): Adjust.
10520         * config/pa/pa.h (REGISTER_MOVE_COST): Adjust.
10521         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Adjust.
10522         * config/pj/pj.h (REGISTER_MOVE_COST): Adjust.
10523         * config/romp/romp.h (REGISTER_MOVE_COST): Adjust.
10524         * config/rs6000/rs6000.h (REGISTER_MOVE_COST): Adjust.
10525         * config/sh/sh.h (REGISTER_MOVE_COST): Adjust.
10526         * config/sparc/sparc.h (REGISTER_MOVE_COST): Adjust.
10527
10528 2001-01-01  Bernd Schmidt  <bernds@redhat.com>
10529
10530         * alias.c (fixed_scalar_and_varying_struct): Adjust prototype of
10531         arg VARIES_P.  Call it with extra arg.
10532         (true_dependence): Likewise.
10533         * rtl.h (rtx_addr_can_trap_p): Declare.
10534         (rtx_varies_p, rtx_addr_varies_p, true_dependence): Update
10535         prototypes.
10536         * rtlanal.c (rtx_addr_can_trap_p): No longer static.
10537         (rtx_varies_p): Accept extra arg FOR_ALIAS; only disallow
10538         pic offset table register if it's zero.  All callers changed.
10539         (rtx_addr_varies_p): Accept extra arg FOR_ALIAS; all callers changed.
10540
10541 Mon Jan  1 07:38:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10542
10543         * explow.c (convert_memory_address, case SYMBOL_REF): Copy
10544         STRING_POOL_ADDRESS_P.
10545
10546         * config/sparc/sparc.c (input_operand): Properly test for short op.
10547
10548         * config.gcc (sparc-*-elf): Include sparc/sol2.h.
10549         (sparc-*-rtems*): Include sparc/sol2.h and sparc/elf.h.
10550         (sparclite-*-elf*, sparc86x-*-elf*): Likewise.
10551         * config/sparc/elf.h: No longer include sol2.h.
10552         * config/sparc/lifeelf.h: No longer include sparc/elf.h.
10553         * config/sparc/rtemself.h, config/sparc/sp86x-elf.h: Likewise.
10554
10555         * config/sparc/sparc.md: Test TARGET_ARCH64 instead of TARGET_PTR64.
10556
10557 2001-01-01  Michael Hayes  <mhayes@redhat.com>
10558
10559         * loop.c (check_insn_for_bivs): Use ivs->n_regs to check array bounds.
10560         (find_mem_givs, record_biv, maybe_eliminate_biv): Likewise.
10561         (record_initial): Likewise.
10562         * unroll.c (copy_loop_body, loop_iterations): Likewise.
10563         (remap_split_bivs): Likewise.
10564
10565 2001-01-01  Michael Hayes  <mhayes@redhat.com>
10566
10567         * loop.c (loop_ivs_free): New function.
10568         (strength_reduce): Break out from...
10569
10570 2001-01-01  Michael Hayes  <mhayes@redhat.com>
10571
10572         * loop.h (struct iv): New.
10573         (REG_IV_TYPE, REG_IV_CLASS, REG_INFO): Modify to use 'struct iv'.
10574         (struct loop_ivs): Replace 'reg_iv_type', 'reg_iv_info',
10575         'reg_biv_class' fields with 'regs' and 'n_regs'.
10576         (struct ivs): Rename 'loop_iv_list' field to 'list'.
10577         * loop.c (loop_bivs_find, strength_reduce): Use ivs->regs array.
10578         * unroll.c (loop_iterations): Check array bounds with ivs->n_regs.
10579
10580 2000-12-31  Alexandre Oliva  <aoliva@redhat.com>
10581
10582         * resource.c (mark_referenced_resources): Abort() before
10583         attempting to mark a pseudo register.
10584         (mark_set_resources): Likewise.
10585
10586 2001-01-01  Michael Hayes  <mhayes@redhat.com>
10587
10588         * loop.h (REG_IV_CLASS): New accessor macro.
10589         * loop.c (REG_IV_CLASS): Use it instead of reg_iv_class array.
10590         * unroll.c (REG_IV_CLASS): Likewise.
10591
10592 See ChangeLog.4 for earlier changes.