OSDN Git Service

* config/h8300/h8300.c (get_shift_alg): Reorganize the code
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-11-14  Kazu Hirata  <kazu@hxi.com>
2
3         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
4         that deals with 7-bit shifts in HImode.
5
6 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
7
8         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
9         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
10         (final_scan_insn): Update call of alter_subreg.
11         (cleanup_subreg_operands): Likewise.
12         (alter_subreg): Rewrite using simplify_subreg.
13         (output_address, output_operand): Update call of alter_subreg.
14         * output.h (alter_subreg): Update prototype.
15         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
16         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
17         * Makefile.in (final.o): Add depdendancy on expr.h
18
19 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20
21         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
22
23 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
24
25         * doc/install.texi (sparc-*-linux*): Mention requirements for
26         binutils and glibc.
27
28 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
29
30         * Makefile.in (POD2MAN): Don't include --section=1.
31         (manext): Rename to man1ext.  All users changed.
32         (man7ext): New.
33         (man7dir): New.
34         (generated-manpages): Also depend on $(docdir)/gfdl.7,
35         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
36         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
37         --section=1 in calls to $(POD2MAN).
38         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
39         (maintainer-clean, install, uninstall): Handle the new man pages.
40         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
41         (installdirs): Create man7dir.
42         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
43         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
44         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
45         the SEE ALSO man page section.
46         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
47         and fsf-funding(7) in the SEE ALSO man page section.
48         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
49         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
50         * doc/include/fdl.texi, doc/include/funding.texi,
51         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
52         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
53
54 2001-11-13  Richard Henderson  <rth@redhat.com>
55
56         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
57         as appropriate for the artificial decl.
58
59 2001-11-13  Richard Henderson  <rth@redhat.com>
60
61         * loop.c (combine_movables): Turn off combination until
62         move_movables validation bugs are fixed.
63
64 2001-11-13  DJ Delorie  <dj@redhat.com>
65
66         * config.gcc (powerpc|rs6000): Set default cpp options based
67         on --with-cpu settings.
68         * config/rs6000/softfloat.h: New.
69
70 2001-11-13  Kazu Hirata  <kazu@hxi.com>
71
72         * config/h8300/h8300.c (shift_alg_si): Use special code for
73         25-bit shifts on H8/S.
74         (get_shift_alg): Generate special code for 25-bit shifts on
75         H8/S.
76
77 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
78
79         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
80         (adjust_automodify_address_1): New.
81         * expr.h (adjust_address, adjust_address_nv): Adjust.
82         (adjust_automodify_address, adjust_automodify_address_nv): Define.
83         (adjust_address_1): Update prototype.
84         (adjust_automodify_address_1): Add prototype.
85         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
86         (store_by_pieces_2): Likewise.
87
88 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
89
90         * Makefile.in (explow.o): Now depends on ggc.h.
91         * explow.c (ggc.h): Include.
92         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
93
94         * Makefile.in (expr.o): Depends on insn-attr.h.
95         * expr.c (insn-attr.h): New include.
96         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
97         of MEM.
98         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
99         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
100         clean up related usage in ADDR_EXPR.
101         (expand_expr_unaligned): Likewise.
102
103         * emit-rtl.c (change_address): Fix typo in alias setting.
104
105 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
106
107         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
108
109 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
110
111         PR bootstrap/3451
112         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
113         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
114
115 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
116
117         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
118         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
119         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
120         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
121         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
122         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
123         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
124         sparc64-*-linux*):  Include various CPU headers via tm_file.
125         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
126         (SELECT_SECTION): Likewise.
127         (SELECT_RTX_SECTION): Likewise.
128         * config/sparc/sparc_bi.h: New file.
129         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
130         * config/sparc/linux-aout.h: Likewise.
131         * config/sparc/linux.h: Don't include sparc/sysv4.h.
132         * config/sparc/linux64.h: Likewise.
133         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
134         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
135         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
136         and dbxcoff.h
137         (ASM_OUTPUT_IDENT): Do not #undef.
138         (SELECT_SECTION): Likewise.
139         (SELECT_RTX_SECTION): Likewise.
140         * config/sparc/liteelf.h: Don't include gofast.h.
141         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
142         * config/sparc/lynx.h: Don't include sparc/sparc.h.
143         * config/sparc/pbd.h: Likewise.
144         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
145         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
146         * config/sparc/rtemself.h: Don't include rtems.h.
147         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
148         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
149         sparc_bi.h instead.
150         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
151         * config/sparc/sol2.h: Include sparc/sparc.h directly.
152         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
153         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
154         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
155         * config/sparc/sp86x-elf.h: Don't include gofast.h.
156         * config/sparc/splet.h: Don't include sparc/aout.h.
157         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
158         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
159         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
160         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
161         * config/sparc/vxsparc64.h: Don't include gofast.h.
162         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
163
164 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
165
166         * doc/standards.texi: Mention C99 TC1.
167
168 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
169
170         * mips-protos.h (mips_output_conditional_branch): Const-ify.
171         * mips.c (mips_output_conditional_branch): Likewise.
172
173 2001-11-12  Kazu Hirata  <kazu@hxi.com>
174
175         * config/h8300/h8300.c (shift_alg_si): Use special code for
176         15-bit logical shifts and 31-bit logical shifts.
177         (get_shift_alg): Generate special code for 15-bit and 31-bit
178         logical shifts.
179
180 2001-11-12  Kazu Hirata  <kazu@hxi.com>
181
182         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
183         doing 6-bit logical shifts on H8/S.
184         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
185         (get_shift_alg): Generate special code for 21-bit shifts on
186         H8/S.
187
188 2001-11-12  Kazu Hirata  <kazu@hxi.com>
189
190         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
191         label.
192
193 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
194
195         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
196         if both size and offset known.
197
198 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
199
200         * config/ia64/freebsd.h: Fix misspelling.
201
202 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
203
204         * doc/gcc.texi: Move several chapters out to ...
205         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
206         doc/include/linux-and-gnu.texi, doc/interface.texi,
207         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
208         ... here.  New files.
209         * doc/gcc.texi, doc/contrib.texi: Move section headings into
210         contrib.texi.
211         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
212
213 2001-11-12  Kazu Hirata  <kazu@hxi.com>
214
215         * config/alpha/alpha-interix.h: Fix comment formatting.
216         * config/alpha/alpha.c: Likewise.
217         * config/alpha/alpha.h: Likewise.
218         * config/alpha/alpha32.h: Likewise.
219         * config/alpha/freebsd.h: Likewise.
220         * config/alpha/unicosmk.h: Likewise.
221         * config/alpha/vms.h: Likewise.
222
223 2001-11-12  Kazu Hirata  <kazu@hxi.com>
224
225         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
226
227 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
228
229         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
230         numbers.
231
232 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
233
234         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
235         from type.
236         (replace_equiv_address): Call update_temp_slot_address.
237
238         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
239
240         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
241
242 2001-11-12  Kazu Hirata  <kazu@hxi.com>
243
244         * config/h8300/h8300.c (shift_alg_qi): New.
245         (shift_alg_hi): Likewise.
246         (shift_alg_si): Likewise.
247         (get_shift_alg): Change the type of count to unsigned int.
248         Use the tables.
249
250 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
251
252         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
253         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
254         to decide whether to defer a function.
255         (finish_function): Adjust.
256         (c_expand_deferred_function): New function.
257         * c-lang.c (deferred_fns): New variable.
258         (c_init): Initialize it, and mark it as a root.
259         (defer_fn): New function.
260         (finish_file): Expand all deferred functions.
261         * c-tree.h (defer_fn): Declare.
262         (c_expand_deferred_function): Likewise.
263         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
264         * objc-act.c (deferred_fns): New variable.
265         (objc_init): Initialize it, and mark it as a root.
266         (defer_fn): New function.
267         (finish_file): Expand all deferred functions.
268
269 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
270
271         * alpha.c (unicosmk_special_name): Prototype.
272         (unicosmk_ssib_name): Delete unused variable.
273         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
274         * alpha/vms.h (PREFIX): Undef before defining.
275         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
276         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
277         controlling usage.  Const-ify.
278         (alias_number): Delete unused variable.
279         * m32r/m32r.c (m32r_sched_init): Add missing argument.
280         (m32r_expand_block_move): Fix uninitialized warnings.
281         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
282         always true' warnings.
283         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
284         * sh/sh.c: Include "integrate.h".
285         (output_far_jump): Fix uninitialized warning.
286         * final.c (shorten_branches): Avoid automatic aggregate
287         initialization.
288         * integrate.c (subst_constants): Likewise.
289
290 2001-11-11  Kazu Hirata  <kazu@hxi.com>
291
292         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
293         (get_shift_alg): Remove redundant code.
294
295 2001-11-11  Kazu Hirata  <kazu@hxi.com>
296
297         * config/pa/milli64.S: Fix comment formatting.
298         * config/pa/pa-64.h: Likewise.
299         * config/pa/pa-linux.h: Likewise.
300         * config/pa/pa-protos.h: Likewise.
301         * config/pa/pa.c: Likewise.
302         * config/pa/pa.h: Likewise.
303         * config/pa/pa32-linux.h: Likewise.
304         * config/pa/pa32-regs.h: Likewise.
305         * config/pa/pa64-hpux.h: Likewise.
306         * config/pa/pa64-regs.h: Likewise.
307         * config/pa/som.h: Likewise.
308
309 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
310
311         * doc/gcc.texi: Move several chapters out to ...
312         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
313         doc/service.texi, doc/standards.texi, doc/trouble.texi,
314         doc/vms.texi: ... here.  New files.
315         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
316
317 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
318
319         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
320         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
321         collect2.c, combine.c, config.in, configure, configure.in,
322         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
323         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
324         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
325         spelling errors.
326
327 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
328
329         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
330         Adjust operand number in CONST_DOUBLE.
331
332         * expmed.c (extract_bit_field): No longer pass in alignment.
333         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
334         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
335         Likewise.
336         * expr.c (store_constructor, store_constructor_field): Likewise.
337         (store_field, emit_group_load, emit_group_store): Likewise.
338         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
339         (store_bit_field, extract_bit_field): Likewise.
340         * calls.c, expr.c, function.c: Change calls to above functions.
341         * ifcvt.c, stmt.c: Likewise.
342         
343         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
344         constant and one is on frame.
345         If know memref offset, adjust size from decl.
346
347 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
348
349         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
350         format specifier warning.
351         * convex.h (ASM_OUTPUT_BYTE): Likewise.
352         * elfos.h (ALIGN_ASM_OP): Undef before defining.
353         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
354         warning.
355         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
356         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
357         * i386-interix.h (gen_stdcall_suffix): Prototype.
358         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
359         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
360         ASM_OUTPUT_LONG_DOUBLE): Likewise.
361         * i386/interix.c (gen_stdcall_suffix): Const-ify.
362         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
363         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
364         specifier warnings.
365         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
366         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
367         ASM_OUTPUT_LONG_DOUBLE): Likewise.
368         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
369         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
370         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
371         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
372         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
373         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
374         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
375         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
376         Likewise.
377         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
378         Likewise.
379         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
380         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
381         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
382         Likewise.
383         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
384         Likewise.
385         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
386         Likewise.
387         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
388         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
389         * m68k/news.h (PRINT_OPERAND): Likewise.
390         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
391         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
392         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
393         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
394         definition.
395         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
396         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
397         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
398         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
399         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
400         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
401         PRINT_OPERAND): Likewise.
402         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
403         Likewise.
404         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
405         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
406         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
407         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
408         * mips.c (mips_output_external_libcall): Mark parameter with
409         ATTRIBUTE_UNUSED.
410         (mips_asm_file_start): Move variable into the scope where it's
411         used.
412         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
413         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
414         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
415         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
416         * ns32k.c (print_operand): Likewise.
417         * pa.c (print_operand, output_div_insn): Likewise.
418         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
419         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
420         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
421         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
422         specifier warnings.
423         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
424         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
425         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
426         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
427         specifier warnings.
428         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
429
430         * sdbout.c (sdbout_end_epilogue): Mark parameter with
431         ATTRIBUTE_UNUSED.
432         * varasm.c (assemble_global): Likewise.
433
434 2001-11-11  H.J. Lu <hjl@gnu.org>
435
436         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
437
438 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
439
440         * final.c (*_MAX_SKIP): Use *_max_skip variables.
441         * flags.h (align_loops_max_skip, align_jumps_max_skip,
442         align_labels_max_skip): New global variables.
443         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
444         align_labels_max_skip): New global variables.
445         (toplev_main): Set new variables.
446         * i386.c (override_options): Set max_skip values.
447
448 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
449
450         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
451         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
452         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
453         don't print an @fptr for labels either.
454         (xstormy16_output_addr_vec): Don't print @fptr here.
455         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
456
457 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
458
459         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
460         an ANSI/ISO definitino.
461         (ssa_const_prop): Likewise.
462
463 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
464
465         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
466         altivec registers.
467
468 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
469
470         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
471         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
472         * cppmain.c (general_init): Call hex_init.
473         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
474
475         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
476
477         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
478         of dgux.c:output_file_start().
479
480         * i386/dgux.c: Delete file.
481
482 2001-11-09  Richard Henderson  <rth@redhat.com>
483
484         * config/alpha/alpha.c (decl_in_text_section): New.
485         (current_file_function_operand): Use it.
486         (alpha_encode_section_info, alpha_end_function): Likewise.
487
488 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
489
490         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
491         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
492         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
493         so OS specific files and use CPP_PREDEFINES for their needs.
494         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
495         target headers to tm_file.
496         * config/ia64/aix.h (TARGET_VERSION): Likewise.
497         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
498         * config/ia64/linux.h (TARGET_VERSION): Likewise.
499         (FUNCTION_PROFILER): Remove.
500         * config/ia64/ia64.h (FUNCTION_PROFILER): Update defintion using the
501         version in config/ia64/linux.h.
502         * config/ia64/freebsd.h: New file.
503         * config/freebsd.h: Tidy up.
504         (_USING_CONFIG_FREEBSD): Define.
505         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
506         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
507         (FBSD_STARTFILE_SPEC): Likewise.
508         (FBSD_ENDFILE_SPEC): Likewise.
509         (FBSD_LIB_SPEC): Likewise.
510         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
511         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
512         set an ELF-improper one.
513
514 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
515
516         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
517         constant can be loaded in a single instruction to a register.  When
518         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
519         depdi for insertion of most significant 32-bits on 64-bit hosts.
520         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
521         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
522         * pa.md: New addmove pattern for adding constant_int to HImode
523         register and moving result to HImode register.  Remove HImode HIGH
524         and LO_SUM patterns.
525
526 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
527
528         * Makefile.in: Update.
529         * c-decl.c (print_lang_decl, print_lang_type): Remove.
530         (print_lang_identifier): Rename c_print_identifier.
531         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
532         (print_lang_statistics, lang_print_xnode): Remove.
533         * c-parse.in (set_yydebug): Rename c_set_yydebug.
534         * c-tree.h (c_set_yydebug, c_print_identifier): New.
535         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
536         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
537         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
538         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
539         (LANG_HOOKS_INITIALIZER): Update.
540         * langhooks.h (struct lang_hooks): New members.
541         (lang_print_tree_hook): New.
542         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
543         * print-tree.c: Include langhooks.h.
544         (print_node): Update.
545         * toplev.c (decode_d_option): Update.
546         * tree.c: Include langhooks.h.
547         (dump_tree_statistics): Update.
548         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
549         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
550 objc:
551         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
552         LANG_HOOKS_SET_YYDEBUG): Override.
553         (lang_print_xnode, print_lang_statistics): Remove.
554
555 2001-11-09  Richard Henderson  <rth@redhat.com>
556
557         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
558         on the symbol string.
559
560 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
561
562         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
563         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
564         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
565
566         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
567
568         * tlink.c (recompile_files): Copy strings passed to `putenv'.
569
570 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
571
572         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
573         (TYPE_READONLY): Likewise.
574
575         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
576
577         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
578         don't pass --gdwarf2 to the assembler if the compiler will also
579         provide debug info.
580
581         * config/stormy16/stormy16.c (xstormy16_expand_casesi): 
582         Don't change INDEX.
583
584 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
585
586         * alias.c (nonoverlapping_memrefs_p): New function.
587         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
588
589         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
590
591 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
592
593         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
594         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
595         generating altivec code.
596         (FIXED_REGISTERS): VRSAVE is fixed.
597         (CALL_USED_REGISTERS): VRSAVE is call used.
598
599 2001-11-09  Jason Eckhardt  <jle@rice.edu>
600
601         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
602         code the branch target as ".+16/.+12", but rather use labels.
603
604 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
605
606         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0  
607         to work around limitations of certain versions of GAS.
608
609         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
610         (muldi3): Update due to SUBREG_BYTE changes.
611         (casesi): Similarly.
612
613 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
614
615         * doc/invoke.texi: Remove comment referring to -xf77-version.
616
617 2001-11-09  Kazu Hirata  <kazu@hxi.com>
618
619         * config/convex/convex.c: Fix comment formatting.
620         * config/convex/convex.h: Likewise.
621
622 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
623
624         * Makefile.in (.po.pox): Look both in srcdir and builddir
625         for $(PACKAGE).pot.
626         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
627         to the source directory.
628
629 2001-11-09 Ben Elliston  <bje@redhat.com>
630            Michael Meissner  <meissner@redhat.com>
631            Andrew MacLeod  <amacleod@redhat.com>
632            Richard Henderson  <rth@redhat.com>
633            Nick Clifton  <nickc@redhat.com>
634            Catherine Moore  <clm@redhat.com>
635
636         * m32r.c: Add support for m32rx processor.
637         * m32r.h: Ditto.
638         * m32r.md: Ditto.
639         * t-m32r: Ditto.
640         * m32r-protos.h: Add prototypes for m32rx functions.
641         * doc/invoke.texi: Document -m32rx option.
642
643 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
644
645         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
646         or after reload.
647
648 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
649
650         * doc/install.texi2html: Use $MAKEINFO --no-split.
651
652 2001-11-09  Andreas Schwab  <schwab@suse.de>
653
654         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
655         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
656         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o, 
657         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
658         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
659
660 2001-11-09  H.J. Lu <hjl@gnu.org>
661
662         * config/mips/mips.c (mips_output_function_prologues): Cast
663         `tsize' to long for output.
664
665 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
666
667         * c-lang.c (LANG_HOOKS_NAME): New.
668         (lang_hooks): Constify.
669         (c_init_options): Update.
670         (lang_identify): Remove.
671         * c-parse.in (language_string): Remove.
672         * dbxout.c: Include langhooks.h.
673         (dbxout_symbol_location): Update.
674         * dwarf2out.c: Include langhooks.h.
675         (gen_compile_unit_die): Update.
676         * dwarfout.c: Include langhooks.h.
677         (prototyped_attribute, output_compile_unit_die): Update.
678         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
679         (LANG_HOOKS_INITIALIZER): Update.
680         * langhooks.h (struct lang_hooks): New members.  Constify.
681         * stringpool.c: Don't include toplev.h.
682         (set_identifier_size): Remove.
683         * toplev.c (toplev_main): Initialize identifier size.
684         (print_version): Update.
685         * tree.h (language_string, init_lex, lang_identify,
686         set_identifier_size): Remove.
687         * Makefile.in: Update dependencies.
688         * config/darwin.c: Include langhooks.h.
689         (func_name_maybe_scoped): Update.
690         * config/darwin.h (ASM_END_FILE): Update.
691         * config/nextstep.h (ASM_END_FILE): Update.
692         * config/nextstep21.h (ASM_END_FILE): Update.
693         * config/i386/sun386.h (ASM_END_FILE): Update.
694         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
695         (rs6000_output_function_epilogue): Update.
696 objc:
697         * objc-act.c (LANG_HOOKS_NAME): Override.
698         (struct lang_hooks): Constify.
699         (objc_init_options): Update.
700         (lang_identify): Remove.
701
702 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
703
704         * fold-const.c (lshift_double): Honor PREC.
705         (rshift_double): Likewise.
706
707 2001-11-08  Kazu Hirata  <kazu@hxi.com>
708
709         * config/1750a/1750a.c: Fix comment formatting.
710         * config/1750a/1750a.h: Likewise.
711
712 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
713
714         * configure.in (--enable-languages): Be more permissive about
715         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
716         * configure: Regenerated.
717
718 2001-11-08  Richard Henderson  <rth@redhat.com>
719
720         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
721
722 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
723
724         * config.gcc: Rename stormy16 to xstormy16.
725         * config/stormy16/stormy-abi: Likewise.
726         * config/stormy16/stormy16-protos.h: Likewise.
727         * config/stormy16/stormy16.c: Likewise.
728         * config/stormy16/stormy16.h: Likewise.
729         * config/stormy16/stormy16.md: Likewise.
730
731 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
732
733         * tree.h (TYPE_VOLATILE): Add enable-checking code.
734         (TYPE_READONLY): Likewise.
735
736 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
737
738         * reload1.c (reload): Don't delete equiv insn if can throw.
739
740         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
741         (clear_storage): Likewise, for OBJECT.
742
743 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
744
745         * pa.c (emit_move_sequence): Fix SUBREG expression to
746         use proper byte offset when extending a constant from
747         SImode to DImode.
748
749 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
750
751         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
752         which cannot throw.
753
754 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
755
756         * explow.c (convert_memory_address, case SUBREG): Only return
757         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
758
759 2001-11-08  Richard Henderson  <rth@redhat.com>
760
761         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
762         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
763         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
764
765 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
766
767         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
768
769 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
770
771         * dwarf2out.c (debug_str_hash): New.
772         (struct indirect_string_node): New.
773         (struct dw_val_struct): Change type of val_str to it.
774         (DEBUG_STR_SECTION_FLAGS): Define.
775         (add_AT_string): Push string into hashtable, increment reference
776         counter.
777         (AT_string): Return string from ht_identifier.
778         (AT_string_form): New.
779         (free_AT): For dw_val_class_str, just decrement reference counter.
780         (size_of_string): Remove.
781         (size_of_die): Use AT_string_form to decide what size the string
782         occupies in DIE.
783         (size_of_pubnames): Use strlen instead of size_of_string.
784         (value_format): Use AT_string_form for dw_val_class_str.
785         (output_die): Output DW_FORM_strp strings using
786         dw2_asm_output_offset.
787         (indirect_string_alloc, output_indirect_string): New.
788         (dwarf2out_finish): Emit .debug_str strings if there are any.
789
790 2001-11-08  Andreas Franck  <afranck@gmx.de>
791
792         * configure.in: Add AC_ARG_PROGRAM to support program name
793         transformation with --program-prefix, --program-suffix and
794         --program-transform-name.
795         * configure: Regenerated.
796         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
797         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
798         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
799         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
800         program_transform_name the way suggested by autoconf.
801         (GCC_TARGET_INSTALL_NAME): Define.
802         (install-driver): Use the transformed target alias name.
803
804 2001-11-08  Richard Henderson  <rth@redhat.com>
805
806         * config/mips/mips.c (save_restore_insns): Remove GP from the
807         restore registers mask early instead of special casing it inside
808         the loop.
809
810 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
811
812         * cp/decl.c (shadow_warning): New function.
813         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
814         and an error when a block scope decl shadows a parameter.
815
816 2001-11-08  Richard Henderson  <rth@redhat.com>
817
818         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
819         case as well.
820
821 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
822
823         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
824         to implement floating negation on processors prior to PA 2.0.
825
826 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
827
828         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
829         (USE_LINKONCE_INDIRECT): Define.
830         (dw2_output_indirect_constant_1): Try to output indirect constants
831         into linkonce sections if possible.
832         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
833         (dw2_output_indirect_constants): Likewise.
834
835 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
836
837         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
838
839 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
840
841         * c-decl.c (pushdecl): Remove file and line.
842         * c-typeck.c (pop_init_level): Remove size.
843
844 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
845
846         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
847         for rs6000.
848
849         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
850         (TARGET_ALTIVEC): New.
851         (TARGET_SWITCHES): Add altivec.
852         (FIRST_PSEUDO_REGISTER): Change to 109.
853         (CALL_USED_REGISTERS): Same.
854         (FIRST_ALTIVEC_REGNO): New.
855         (LAST_ALTIVEC_REGNO): New.
856         (ALTIVEC_REGNO_P): New.
857         (UNITS_PER_ALTIVEC_WORD): New.
858         (ALTIVEC_VECTOR_MODE): New.
859         (FIXED_REGISTERS): Add altivec registers.
860         (REG_ALLOC_ORDER): Same.
861         (HARD_REGNO_NREGS): Adjust for altivec registers.
862         (HARD_REGNO_MODE_OK): Same.
863         (MODES_TIEABLE_P): Same.
864         (REGISTER_MOVE_COST): Same.
865         (REGNO_REG_CLASS): Same.
866         (reg_class): Add ALTIVEC_REGS.
867         (REG_CLASS_NAMES): Same.
868         (REG_CLASS_CONTENTS): Same.
869         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
870         (ALTIVEC_ARG_RETURN): New.
871         (FUNCTION_VALUE): Handle VECTOR_TYPE.
872         (LIBCALL_VALUE): Handle altivec vector modes.
873         (VECTOR_MODE_SUPPORTED_P): New.
874         (ALTIVEC_ARG_MIN_REG): New.
875         (ALTIVEC_ARG_MAX_REG): New.
876         (ALTIVEC_ARG_NUM_REG): New.
877         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
878         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
879         (REGISTER_NAMES): Add altivec regs.
880         (DEBUG_REGISTER_NAMES): Same.
881         (ADDITIONAL_REGISTER_NAMES): Same.
882         (rs6000_builtins): New.
883         (MD_EXPAND_BUILTIN): New.
884         (MD_INIT_BUILTINS): New.
885         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
886         for AltiVec instructions.
887         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
888         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
889         registers.
890         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
891         (TARGET_SWITCHES): Add no-altivec.
892         (DATA_ALIGNMENT): Align vectors to 128 bits.
893         (TARGET_OPTIONS): Add abi= option.
894         Add rs6000_abi_string extern.
895         (LOCAL_ALIGNMENT): New.
896         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
897         (MASK_ALTIVEC_ABI): New.
898         (TARGET_ALTIVEC_ABI): New.
899         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
900         call-saved.
901         (STACK_BOUNDARY): Adjust for altivec.
902         (BIGGEST_ALIGNMENT): Same.
903         (rs6000_args): Add vregno.
904         (USE_ALTIVEC_FOR_ARG_P): New.
905         (FIXED_REGISTERS): Add vrsave register.
906         (CALL_USED_REGISTERS): Same.
907         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
908         (VRSAVE_REGNO): New.
909         (reg_class): Add VRSAVE_REGS.
910         (REG_CLASS_NAMES): Same.
911         (REG_CLASS_CONTENTS): Same.
912         (REGNO_REG_CLASS): Same.
913         
914         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
915         (ABI_STACK_BOUNDARY): Same.
916         (BIGGEST_ALIGNMENT): Same.
917         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
918         (ROUND_TYPE_ALIGN): Same.
919         
920         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
921         to 64.
922
923         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
924         to 64.
925
926         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
927         to 64.
928
929         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
930         (altivec_expand_builtin): New.
931         (altivec_init_builtins): New.
932         (TARGET_EXPAND_BUILTIN): New.
933         (TARGET_INIT_BUILTINS): New.
934         (rs6000_init_builtins): New.
935         (struct builtin_description): New.
936         (bdesc_2arg): New.
937         (rs6000_reg_names): Add altivec registers.
938         (alt_reg_names): Same.
939         (secondary_reload_class): Altivec regs can hold altivec regs and
940         memory.
941         (rs6000_emit_move): Force constants into memory for AltiVec moves.
942         (print_operand): Add 'y' case for printing altivec memory
943         operands.
944         (rs6000_legitimize_address): Legitimize vector addresses into
945         [REG+REG] or [REG].
946         (altivec_expand_binop_builtin): New.
947         New string rs6000_current_abi.
948         (rs6000_override_options): Call rs6000_parse_abi_options.
949         (rs6000_parse_abi_options): New.
950         (function_arg_boundary): Vector arguments must be 16
951         byte aligned.
952         (function_arg_advance): Handle vector arguments.
953         (function_arg_partial_nregs): Same.
954         (init_cumulative_args): Same.
955         (function_arg): Same.
956
957         * config/rs6000/rs6000.md (altivec_lvx): New.
958         (type): Add altivec attribute.
959         (movv4si): New.
960         (*movv4si_internal): New.
961         (movv16qi): New.
962         (*movv16qi_internal): New.
963         (movv8hi): New.
964         (*movv8hi_internal1): New.
965         (movv4sf): New.
966         (*movv4sf_internal1): New.
967         (altivec_stvx): New.
968         (vaddubm): New.
969         (vadduhm): New.
970         (vadduwm): New.
971         (vaddfp): New.
972         (vaddcuw): New.
973         (vaddubs): New.
974         (vaddsbs): New.
975         (vadduhs): New.
976         (vaddshs): New.
977         (vadduws): New.
978         (vaddsws): New.
979         (vand): New.
980         (vandc): New.
981         (vavgub): New.
982         (vavgsb): New.
983         (vavguh): New.
984         (vavgsh): New.
985         (vavguw): New.
986         (vavgsw): New.
987         (vcmpbfp): New.
988         (vcmpequb): New.
989         (vcmpequh): New.
990         (vcmpequw): New.
991         (vcmpeqfp): New.
992         (vcmpgefp): New.
993         (vcmpgtub): New.
994         (vcmpgtsb): New.
995         (vcmpgtuh): New.
996         (vcmpgtsh): New.
997         (vcmpgtuw): New.
998         (vcmpgtsw): New.
999         (vcmpgtfp): New.
1000         (vcmpgefp): New.
1001         (vcmpgtub): New.
1002         (vcmpgtsb): New.
1003         (vcmpgtuh): New.
1004         (vcmpgtsh): New.
1005         (vcmpgtuw): New.
1006         (vcmpgtsw): New.
1007         (vcmpgtfp): New.
1008         (vmaxub): New.
1009         (vmaxsb): New.
1010         (vmaxuh): New.
1011         (vmaxsh): New.
1012         (vmaxuw): New.
1013         (vmaxsw): New.
1014         (vmaxfp): New.
1015         (vmrghb): New.
1016         (vmrghh): New.
1017         (vmrghw): New.
1018         (vmrglb): New.
1019         (vmrglh): New.
1020         (vmrglw): New.
1021         (vminub): New.
1022         (vminsb): New.
1023         (vminuh): New.
1024         (vminsh): New.
1025         (vminuw): New.
1026         (vminsw): New.
1027         (vminfp): New.
1028         (vmuleub): New.
1029         (vmulesb): New.
1030         (vmuleuh): New.
1031         (vmulesh): New.
1032         (vmuloub): New.
1033         (vmulosb): New.
1034         (vmulouh): New.
1035         (vmulosh): New.
1036         (vnor): New.
1037         (vor): New.
1038         (vpkuhum): New.
1039         (vpkuwum): New.
1040         (vpkpx): New.
1041         (vpkuhss): New.
1042         (vpkshss): New.
1043         (vpkuwss): New.
1044         (vpkswss): New.
1045         (vpkuhus): New.
1046         (vpkshus): New.
1047         (vpkuwus): New.
1048         (vpkswus): New.
1049         (vrlb): New.
1050         (vrlh): New.
1051         (vrlw): New.
1052         (vslb): New.
1053         (vslh): New.
1054         (vslw): New.
1055         (vsl): New.
1056         (vslo): New.
1057         (vsrb): New.
1058         (vrsh): New.
1059         (vrsw): New.
1060         (vsrab): New.
1061         (vsrah): New.
1062         (vsraw): New.
1063         (vsr): New.
1064         (vsro): New.
1065         (vsububm): New.
1066         (vsubuhm): New.
1067         (vsubuwm): New.
1068         (vsubfp): New.
1069         (vsubcuw): New.
1070         (vsububs): New.
1071         (vsubsbs): New.
1072         (vsubuhs): New.
1073         (vsubshs): New.
1074         (vsubuws): New.
1075         (vsubsws): New.
1076         (vsum4ubs): New.
1077         (vsum4sbs): New.
1078         (vsum4shs): New.
1079         (vsum2sws): New.
1080         (vsumsws): New.
1081         (vxor): New.
1082
1083 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
1084
1085         * Makefile.in (df.o): Add fibheap.h to dependencies.
1086        
1087         * df.h: Add prototypes for transfer functions, iterative_dataflow
1088         functions.
1089         (enum df_flow_dir): New enum.
1090         (enum df_confluence_op): New enum.
1091         (struct df): Add inverse_rts_map.
1092
1093         * df.c: Add sbitmap.h to the list of includes.
1094         (df_rd_global_compute): Removed.
1095         (df_ru_global_compute): Removed.
1096         (df_lr_global_compute): Removed.
1097         (df_rd_transfer_function): New function.
1098         (df_ru_transfer_function): New function.
1099         (df_lr_transfer_function): New function.
1100         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
1101         Use iterative_dataflow_bitmap instead of df_*_global_compute.
1102         (iterative_dataflow_sbitmap): New function.
1103         (iterative_dataflow_bitmap): New function.
1104
1105 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
1106
1107         * doc/gcc.texi: Move terminology and spelling conventions to
1108         htdocs/codingconventions.html.
1109
1110 2001-11-07  Graham Stott  <grahams@redhat.com>
1111
1112         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
1113
1114 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
1115
1116         * expmed.c (expand_mult): Force operand to register before computing
1117         cost.
1118         * i386.c (x86_decompose_lea): New global vairable.
1119         * i386.h (x86_decompose_lea): Declare.
1120         (TARGET_DECOMPOSE_LEA): New macro.
1121         (RTX_COST): Handle leas properly.
1122
1123 2001-11-06  Richard Henderson  <rth@redhat.com>
1124
1125         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
1126         defined for a CONSTRUCTOR; don't check it.
1127
1128 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
1129
1130         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
1131         test for absolute pathnames.
1132
1133 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
1134
1135         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
1136         instructions up to the target pc inclusive.
1137
1138 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
1139
1140         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
1141
1142 2001-11-06  Eric Christopher  <echristo@redhat.com>
1143
1144         * config/mips/mips.md(movdf_internal2): Add constraints for float
1145         to general register move.
1146         * config/mips/elf64.h: Add default ABI.
1147
1148 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1149
1150         * alias.c:: Include langhooks.h.
1151         * emit-rtl.c: Similarly.
1152         * toplev.c: Similarly.
1153         * tree-inline.c: Similarly.
1154         * langhooks-def.h: New, the old langhooks.h.  Give the default
1155         hooks a common prefix.
1156         * langhooks.h: Contents extracted from toplev.h.
1157         * toplev.h: Move langhook stuff to langhooks.h.
1158         * langhooks.c: Give default hooks a common prefix.
1159
1160         * c-lang.c: Include langhooks-def.h.
1161         * objc/objc-act.c: Similarly.
1162         * Makefile.in: Update.
1163         * objc/Make-lang.in: Update.
1164
1165 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
1166
1167         * doc/install.texi: Document that configure options not listed in
1168         this file are unsupported.  Document --with-system-zlib.
1169
1170 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1171
1172         * rtl.h (mem_for_const_double): New declaration.
1173         * varasm.c (mem_for_const_double): New function.
1174         * config/convex/convex.md (movdf): Use it.
1175         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
1176         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
1177         * config/m68k/m68kv4.h: Likewise.
1178
1179         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
1180         of new GP reg classes.
1181
1182         * expr.c (store_field): When making temp object for unaligned
1183         component, set it to alias set 0.
1184
1185 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
1186
1187         * c-common.c (c_expand_expr_stmt): Apply default conversions to
1188         non-lvalue arrays if C99.
1189         * c-typeck.c (default_conversion): Split out code handling
1190         array-to-pointer and function-to-pointer conversions into a
1191         separate default_function_array_conversion function.
1192         (default_function_array_conversion): New function.  Keep track of
1193         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
1194         arrays unchanged outside C99 mode instead of giving an error for
1195         them.
1196         (build_component_ref): Use pedantic_non_lvalue when handling
1197         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
1198         (convert_arguments): Use default_function_array_conversion.
1199         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
1200         non-lvalues are OK.
1201         (unary_complex_lvalue): Likewise.
1202         (internal_build_compound_expr): Use
1203         default_function_array_conversion.  Apply default conversions to
1204         function in compound expression.
1205         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
1206         Use default_function_array_conversion.
1207         * doc/extend.texi: Update documentation of subscripting non-lvalue
1208         arrays.
1209         Fixes PR c/461.
1210
1211 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
1212
1213         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
1214         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
1215         corresponding to the complete set of .po and .gmo files in
1216         the source directory's po subdir, modified by LINGUAS.  Don't
1217         look at ALL_LINGUAS.
1218         * configure.in: Don't set ALL_LINGUAS.
1219         * configure: Regenerate.
1220
1221         * Makefile.in (.po.gmo): Don't move into source directory.
1222         (.po.pox): Clarify comments.
1223         (install-po): Look for .gmo files in both srcdir and objdir;
1224         don't fail if a file is totally missing.
1225         (distclean): rmdir ada subdirectory too.
1226
1227 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
1228
1229         * config/rs6000/rs6000.c (rs6000_select_section): Handle
1230         CONSTRUCTORs _correctly_.
1231
1232 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1233
1234         * c-decl.c (delete_block): Remove.
1235         * c-tree.h (delete_block): Remove.
1236
1237 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1238
1239         * cppexp.c (lex, parse_defined): Update warning about defined.
1240
1241 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
1242
1243         * config/rs6000/rs6000.c (rs6000_select_section): Handle
1244         CONSTRUCTORs too.
1245
1246 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
1247
1248         * config/arm/arm.c (arm_return_in_memory): Cope with
1249         int_size_in_bytes returning -1.
1250
1251         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
1252         DECL being NULL.
1253
1254 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
1255
1256         * Makefile.in (bb-reoder.o): Add dependency on cfglayout.h;
1257         remove unneeded dependencies;
1258         (cfglayout.o): New.
1259         * cfglayout.c, cfglayout.h: New files; break out from ...
1260         * bb-reorder.c: ... here; Remove unneeded includes;
1261
1262 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
1263
1264         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
1265
1266 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
1267
1268         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
1269         mode as well.  Do not explicitly create intermediate regs.
1270
1271 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1272
1273         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
1274         (common_section): Delete unused variable.
1275         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
1276         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
1277         * arm-protos.h (arm_poke_function_name, aof_add_import,
1278         aof_delete_import): Const-ify.
1279         * arm.c (legitimize_pic_address): Wrap variables in the macro
1280         controlling their usage.
1281         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
1282         (arm_poke_function_name, pic_chain, import, aof_add_import,
1283         aof_delete_import): Const-ify.
1284         * i386.c (ix86_osf_output_function_prologue): Const-ify.
1285         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1286         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
1287         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
1288         * i860/sysv3.h: Add missing comment closure.
1289         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
1290         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
1291         to symbolic_operand.
1292
1293         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
1294         (i960-*-*): Set tmake_file.
1295         (sparc86x-*-elf*): Fix typo in header name.
1296
1297         * sched-rgn.c (schedule_insns): Delete unused variable.
1298
1299 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1300
1301         PR c/2820
1302         * c-typeck.c (lookup_field): Rework to return a chain down to
1303         the looked-up field.
1304         (build_component_ref): Use the new lookup_field to handle
1305         nested anonymous entities correctly.
1306
1307 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1308
1309         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
1310         Change parameters to gen_rtx_CONST_DOUBLE.
1311         (GEN_INT64, sparc_emit_set_const64): Likewise.
1312         * config/sparc/sparc.md (movdf split): Likewise.
1313
1314 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
1315
1316         * unroll.c (calculate_giv_inc): Use find_last_value rather
1317         than just hoping the last instruction is the right SET.
1318         [Fixes 990604-1.c on stormy16.]
1319
1320         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
1321         library at all if -T is used.
1322
1323         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
1324         some uses of uninitialized variables in error cases.
1325
1326         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
1327         look at 'temp' if we won't be using it.
1328
1329         * config/stormy16/stormy16.h (CONST_COSTS): Define.
1330         (RTX_COSTS): Define.
1331         (ADDRESS_COST): Define.
1332         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
1333
1334         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
1335
1336         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
1337         stormy16_asm_output_mi_thunk.
1338         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
1339         function.
1340         * config/stormy16/stormy16-protos.h
1341         (stormy16_asm_output_mi_thunk): New prototype.
1342
1343 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
1344
1345         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
1346         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
1347         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
1348         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
1349         sched-int.h, toplev.c, config/alpha/alpha.c,
1350         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
1351         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
1352         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
1353         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
1354         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
1355         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
1356         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
1357
1358 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1359
1360         * Makefile.in (dbxout.o): Depend on function.h.
1361         * collect2.c (is_in_list): Hide unused function.
1362         * dbxout.c: Include function.h.
1363         (source_label_number, dbxout_source_line, dbxout_source_file,
1364         dbxout_function_end, dbxout_begin_function): Wrap/move inside
1365         macros controlling usage.
1366         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
1367         * output.h (exports_section): Prototype.
1368
1369         * convex.c (convex_output_function_prologue): Fix format specifier
1370         warning.
1371         (asm_declare_function_name): Fix signed/unsigned warning.
1372         (print_operand): Fix format specifier warning.
1373         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
1374         * dsp16xx-protos.h (uns_comparison_operator,
1375         num_1600_core_shifts): Prototype.
1376         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
1377         (frame_size, frame_pointer_offset): Delete.
1378         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
1379         Make static.  Fix format specifier warnings.
1380         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
1381         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
1382         * dsp16xx.md: Add default case in switches.
1383         * fr30.h (IN_RANGE): Delete.
1384         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
1385         * mcore-protos.h (mcore_output_cmov): Const-ify.
1386         * mcore.c (mcore_output_cmov): Likewise.
1387         * mcore.h (switch_to_section): Make static and prototype.
1388         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
1389         unsigned>=0 warnings.
1390         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
1391         * rs6000-protos.h (read_only_data_section,
1392         read_only_private_data_section): Prototype.
1393         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1394         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
1395         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
1396
1397 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1398
1399         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
1400         ATTRIBUTE_UNUSED.
1401         * final.c (final_scan_insn): Add brackets around body of if-stmt.
1402         * gcc.c (convert_filename): Add static prototype.  Const-ify.
1403         Wrap variable in macros controlling its use.
1404         * output.h (sdata_section): Add prototype.
1405
1406         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
1407         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
1408         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
1409         (ASM_FILE_START): Const-ify.
1410         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
1411         specifier warning.
1412         * c4x.md: Don't use the 'U' integer suffix.
1413         * clipper.md (clipper_movstr): Delete declaration.
1414         * d30v-protos.h (d30v_move_2words): Const-ify.
1415         (debug_stack_info): Add prototype.
1416         * d30v.c: Include "integrate.h".
1417         (d30v_function_arg_boundary, d30v_function_arg,
1418         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
1419         signed/unsigned warnings.
1420         (d30v_print_operand_memory_reference, d30v_move_2words):
1421         Const-ify.
1422         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
1423         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
1424         * fr30.md: Const-ify.
1425         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
1426         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
1427         (mvs_get_label_page): Hide unused static function.
1428         * i860.c (current_function_original_name): Const-ify.
1429         * i860/sysv3.h (current_function_original_name): Likewise.
1430         * i860/sysv4.h (current_function_original_name): Likewise.
1431         * i960.md: Add default case in switches.  Remove unused variable.
1432         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
1433         * m32r.md: Const-ify.
1434         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
1435         * m68hc11.c: Include "reload.h".
1436         (static_chain_reg, print_options, m68hc11_asm_file_start):
1437         Const-ify.
1438         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
1439         around & in comparison.
1440         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
1441         * mn10200.c (shift_mode): Remove trailing comma.
1442         * mn10300-protos.h (output_tst): Const-ify.
1443         * mn10300.c (output_tst): Likewise.
1444         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
1445         warnings.
1446         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
1447         * pa.c (output_ascii): Likewise.
1448         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
1449         * pdp11.md (expand_unop): Delete declarations.
1450         * pj-protos.h (pj_output_addsi3): Const-ify.
1451         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
1452         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
1453         unique_src_operand): Add prototypes.
1454         (pj_output_store_into_lval): Make definition static.
1455         (pj_function_incoming_arg): Don't use unary plus.
1456         (pj_output_addsi3): Const-ify.
1457         * romp.md (get_symref): Delete declarations.
1458         * v850-c.c (mark_current_function_as_interrupt): Don't return
1459         value from void function.
1460         * v850.c: Include "integrate.h".
1461         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
1462         * vax-protos.h (const_section): Add prototype.
1463
1464 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
1465
1466         * machmode.def: Add documentation for the seventh argument in
1467         vector modes.
1468
1469 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
1470
1471         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
1472         consistently.
1473         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
1474         <-melf>: Don't have markup for ELF acronym.
1475
1476 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
1477
1478         * config.gcc (mmix-*-*): New target.
1479         * doc/invoke.texi: Document MMIX options.
1480         * doc/contrib.texi: Add note about MMIX port to my entry.
1481         * config/mmix/t-mmix: New file.
1482         * config/mmix/mmix.h: New file.
1483         * config/mmix/mmix-protos.h: New file.
1484         * config/mmix/mmix.c: New file.
1485         * config/mmix/mmix.md: New file.
1486         * config/mmix/crti.asm: New file.
1487         * config/mmix/crtn.asm: New file.
1488
1489 2001-11-03  Kazu Hirata  <kazu@hxi.com>
1490
1491         * config/sparc/linux-aout.h: Fix comment formatting.
1492         * config/sparc/linux.h: Likewise.
1493         * config/sparc/linux64.h: Likewise.
1494         * config/sparc/lynx.h: Likewise.
1495         * config/sparc/pbd.h: Likewise.
1496         * config/sparc/sol2-sld-64.h: Likewise.
1497         * config/sparc/sol2.h: Likewise.
1498         * config/sparc/sparc.c: Likewise.
1499         * config/sparc/sparc.h: Likewise.
1500         * config/sparc/sparc.md: Likewise.
1501         * config/sparc/sunos4.h: Likewise.
1502         * config/sparc/vxsim.h: Likewise.
1503         * config/sparc/vxsparc.h: Likewise.
1504         * config/sparc/vxsparc64.h: Likewise.
1505
1506 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1507
1508         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
1509         reference to CONST_DOUBLE_MEM in comment.
1510         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
1511         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
1512         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
1513         * function.c (pop_function_context_from): Don't call
1514         restore_varasm_status.
1515         * function.h (restore_varasm_status): Delete declaration.
1516         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
1517         * rtl.c: Likewise.
1518         * rtl.def (CONST_DOUBLE): Update comment.
1519         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
1520         (CONST_DOUBLE_CHAIN): Likewise.
1521         (CONST_DOUBLE_MEM): Delete.
1522         (gen_rtx_CONST_DOUBLE): Update parameters.
1523         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
1524         Remove reference to CONST_DOUBLE_MEM.
1525         (const_alias_set): New variable.
1526         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
1527         (immed_real_const_1): Adjust tests for 0, 1, and 2.
1528         Don't set CONST_DOUBLE_MEM.
1529         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
1530         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
1531         Put constant in const_alias_set.
1532         (struct pool_constant): ALIGN now unsigned.
1533         OFFSET now HOST_WIDE_INT.
1534         Delete LABEL.
1535         (restore_varasm_status): Deleted.
1536         (mark_pool_constant): Mark desc->rtl.
1537         (force_const_mem): Rework to store rtl in hash table,
1538         not CONST_DOUBLE_MEM.
1539         Put constant in const_alias_set.
1540         (find_pool_constant): Check desc->rtl.
1541         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
1542         (init_varasm_once): Initialize const_alias_set.
1543
1544         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
1545         force_const_mem.
1546
1547         * reload.c (combine_reloads): Don't combine an output reload if there
1548         are other reloads around for part of the output.
1549
1550         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
1551         constant expression.
1552         (set_mem_decl): New function.
1553         * expr.h (set_mem_decl): New declaration.
1554         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
1555         (output_asm_operand_names): Add tab.
1556         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
1557
1558         * builtins.c (get_memory_rtx): Properly set MEM alias set and
1559         attributes.
1560
1561 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
1562
1563         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
1564         Use "invalid" instead of "illegal".  Use @r in comments in
1565         examples.
1566
1567 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
1568
1569         * c-decl.c (pushdecl): Move block inside if conditional to remove
1570         possibility of a segfault.  Lookup block-level extern
1571         variables in enclosing scopes correctly.
1572
1573         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
1574
1575 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
1576
1577         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
1578         SUBREG so we avoid SUBREGing memory.
1579
1580         * expmed.c (store_bit_field): Same.
1581
1582 2001-11-02  DJ Delorie  <dj@redhat.com>
1583
1584         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
1585         using FP registers for DImode mem-mem moves is acceptable.
1586
1587 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
1588
1589         * builtins.c (apply_args_size): Handle vector arguments.
1590         (apply_result_size): Same.
1591
1592         * machmode.def: Set WIDER mode field for all vector entries.
1593
1594 2001-11-02  Graham Stott  <grahams@redhat.com>
1595
1596         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
1597
1598 2001-11-01  Eric Christopher  <echristo@redhat.com>
1599
1600         * config.gcc: Revert part of earlier patch.
1601         * config/mips/linux.h: Ditto.
1602         * df.c: Include tm_p.h to avoid warnings.
1603         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
1604         #if/#endif.
1605         * config/mips/mips.c: Define mips_abi regardless.
1606         (mips_output_function_prologues): Add long casts for .frame
1607         output.
1608         (override_options): Allow use of ABI_32.
1609
1610 2001-11-01  Kazu Hirata  <kazu@hxi.com>
1611
1612         * config/m68hc11/m68hc11.c: Fix comment formatting.
1613         * config/m68hc11/m68hc11.h: Likewise.
1614         * config/m68hc11/m68hc11.md: Likewise.
1615
1616 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
1617
1618         * c-typeck.c (default_conversion): Retain the original expression
1619         codes.
1620         * gcc.dg/Wparentheses.c: New tests.
1621
1622 2001-11-01  David S. Miller  <davem@redhat.com>
1623
1624         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
1625         64-bit Sparc description more in line with reality.
1626
1627 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
1628
1629         * Makefile.in (GCOV_OBJS): Add version.o.
1630         * gcov.c: Include "version.h" and <getopt.h>.
1631         (gcov_version_string): Remove.
1632         (print_usage): Take a parameter to determine whether this is a
1633         call from --help or an error message.  Give fuller output that
1634         follows the GNU Coding Standards for --help.
1635         (print_version): New function.
1636         (options): New.
1637         (process_args): Use getopt_long.  Support long options.  Follow
1638         GNU Coding Standards for --help and --version.
1639         * doc/gcov.texi: Document long options.
1640         Addresses part of PR other/704.
1641
1642 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1643
1644         * pa.c (output_move_double): Fix typo in double load.
1645
1646 2001-11-01  Kazu Hirata  <kazu@hxi.com>
1647
1648         * config/h8300/h8300.c (h8300_encode_label): Compute a string
1649         before passing it to ggc_alloc_string.
1650
1651 2001-11-01  Kazu Hirata  <kazu@hxi.com>
1652
1653         * config/m68k/3b1.h: Fix comment formatting.
1654         * config/m68k/3b1g.h: Likewise.
1655         * config/m68k/a-ux.h: Likewise.
1656         * config/m68k/amix.h: Likewise.
1657         * config/m68k/apollo68.h: Likewise.
1658         * config/m68k/atari.h: Likewise.
1659         * config/m68k/aux-exit.c: Likewise.
1660         * config/m68k/ccur-GAS.h: Likewise.
1661         * config/m68k/crds.h: Likewise.
1662         * config/m68k/dpx2.h: Likewise.
1663         * config/m68k/dpx2g.h: Likewise.
1664         * config/m68k/hp310.h: Likewise.
1665         * config/m68k/hp320.h: Likewise.
1666         * config/m68k/isi.h: Likewise.
1667         * config/m68k/linux.h: Likewise.
1668         * config/m68k/lynx.h: Likewise.
1669         * config/m68k/m68k-psos.h: Likewise.
1670         * config/m68k/m68k.c: Likewise.
1671         * config/m68k/m68k.h: Likewise.
1672         * config/m68k/m68k.md: Likewise.
1673         * config/m68k/m68kelf.h: Likewise.
1674         * config/m68k/m68kv4.h: Likewise.
1675         * config/m68k/mot3300.h: Likewise.
1676         * config/m68k/news.h: Likewise.
1677         * config/m68k/next.h: Likewise.
1678         * config/m68k/pbb.h: Likewise.
1679         * config/m68k/plexus.h: Likewise.
1680         * config/m68k/sgs.h: Likewise.
1681         * config/m68k/sun3.h: Likewise.
1682         * config/m68k/tower.h: Likewise.
1683         * config/m68k/vxm68k.h: Likewise.
1684
1685 2001-10-31  DJ Delorie  <dj@redhat.com>
1686
1687         * config/mips/mips.h (mips_cache_flush_func): Prototype.
1688         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
1689         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
1690         * config/mips/mips.c (mips_cache_flush_func): New.
1691         * doc/invoke.texi: Document the new options.
1692
1693 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
1694
1695         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
1696         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
1697
1698         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
1699
1700         * config/cris/cris.c: Include output.h after tree.h but before
1701         target.h.
1702
1703 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
1704
1705         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
1706         (INTL_SUBDIRS): Just intl.
1707         (.SUFFIXES): Add .gmo .po .pox.
1708         (native): Also depend on build-@POSUB@.
1709         (intl.all, intl.install): Depend on config.h and things it includes.
1710         (po-generated): New target; depend on c-parse.c and tradcif.c.
1711         (install-normal): Also depend on install-@POSUB@.
1712         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
1713         (build-, install-, build-po, update-po, install-po,
1714         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
1715
1716         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
1717         * configure.in: Don't munge XGETTEXT.  Don't generate
1718         po/Makefile.in.
1719         * configure: Regenerate.
1720
1721         * exgettext: Delete.
1722         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
1723         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
1724
1725 2001-10-31  Kazu Hirata  <kazu@hxi.com>
1726
1727         * config/h8300/h8300.md (two anonymous patterns): New.
1728
1729 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
1730
1731         * tree.h (tree_index): Add support for V16QI and V8HI.
1732         (V8HI_type_node): New.
1733         (V16QI_type_node): New.
1734
1735         * tree.c (build_common_tree_nodes_2): Same.
1736
1737         * c-common.c (type_for_mode): Same.
1738
1739 2001-10-31  Kazu Hirata  <kazu@hxi.com>
1740
1741         * config/i386/att.h: Fix comment formatting.
1742         * config/i386/beos-elf.h: Likewise.
1743         * config/i386/bsd.h: Likewise.
1744         * config/i386/bsd386.h: Likewise.
1745         * config/i386/crtdll.h: Likewise.
1746         * config/i386/cygwin.asm: Likewise.
1747         * config/i386/cygwin.h: Likewise.
1748         * config/i386/djgpp.h: Likewise.
1749         * config/i386/freebsd-aout.h: Likewise.
1750         * config/i386/freebsd.h: Likewise.
1751         * config/i386/gas.h: Likewise.
1752         * config/i386/i386-interix.h: Likewise.
1753         * config/i386/i386-protos.h: Likewise.
1754         * config/i386/i386.c: Likewise.
1755         * config/i386/i386.h: Likewise.
1756         * config/i386/i386.md: Likewise.
1757         * config/i386/i386elf.h: Likewise.
1758         * config/i386/interix.c: Likewise.
1759         * config/i386/isc.h: Likewise.
1760         * config/i386/isccoff.h: Likewise.
1761         * config/i386/iscdbx.h: Likewise.
1762         * config/i386/linux.h: Likewise.
1763         * config/i386/lynx.h: Likewise.
1764         * config/i386/mingw32.h: Likewise.
1765         * config/i386/netbsd-elf.h: Likewise.
1766         * config/i386/next.h: Likewise.
1767         * config/i386/osf1elf.h: Likewise.
1768         * config/i386/osfrose.h: Likewise.
1769         * config/i386/sco5.h: Likewise.
1770         * config/i386/seq-gas.h: Likewise.
1771         * config/i386/seq-sysv3.h: Likewise.
1772         * config/i386/sequent.h: Likewise.
1773         * config/i386/sol2.h: Likewise.
1774         * config/i386/sun386.h: Likewise.
1775         * config/i386/uwin.asm: Likewise.
1776         * config/i386/uwin.h: Likewise.
1777         * config/i386/vxi386.h: Likewise.
1778         * config/i386/win32.h: Likewise.
1779         * config/i386/winnt.c: Likewise.
1780         * config/i386/xm-cygwin.h: Likewise.
1781         * config/i386/xm-mingw32.h: Likewise.
1782
1783 2001-10-31  Kazu Hirata  <kazu@hxi.com>
1784
1785         * builtins.def: Fix comment typos.
1786         * config/alpha.c: Likewise.
1787         * config/arm/arm.c: Likewise.
1788         * config/avr/avr.h: Likewise.
1789         * config/d30v/d30v.c: Likewise.
1790         * config/d30v/d30v.h: Likewise.
1791         * config/d30v/d30v.md: Likewise.
1792         * config/dsp16xx/dsp16xx.c: Likewise.
1793         * config/fr30/fr30.c: Likewise.
1794         * config/fr30/fr30.md: Likewise.
1795         * config/i386/i386.c: Likewise.
1796         * config/i860/i860.c: Likewise.
1797         * config/i960/i960.c: Likewise.
1798         * config/ia64/ia64.c: Likewise.
1799         * config/mips/mips.c: Likewise.
1800         * config/pa/pa.c: Likewise.
1801         * config/rs6000/rs6000.c: Likewise.
1802         * config/s390/s390.c: Likewise.
1803         * config/sparc/sparc.c: Likewise.
1804
1805 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1806
1807         * config/mips/elf.h: Fix comment formatting.
1808         * config/mips/elf64.h: Likewise.
1809         * config/mips/iris5.h: Likewise.
1810         * config/mips/iris5gas.h: Likewise.
1811         * config/mips/iris6.h: Likewise.
1812         * config/mips/isa3264.h: Likewise.
1813         * config/mips/linux.h: Likewise.
1814         * config/mips/mips.c: Likewise.
1815         * config/mips/mips.h: Likewise.
1816         * config/mips/mips.md: Likewise.
1817         * config/mips/mips16.S: Likewise.
1818         * config/mips/netbsd.h: Likewise.
1819         * config/mips/osfrose.h: Likewise.
1820         * config/mips/r3900.h: Likewise.
1821         * config/mips/sni-svr4.h: Likewise.
1822         * config/mips/svr4-t.h: Likewise.
1823         * config/mips/ultrix.h: Likewise.
1824
1825 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
1826
1827         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
1828         when we update head->current.
1829
1830 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
1831
1832         * tree.c (id_string_size): Remove.
1833         (dump_tree_statistics): Update.
1834         * toplev.c (compile_file): If dumping stats, dump tree stats too.
1835
1836 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
1837
1838         * sched-rgn.c (schedule_insns): Fix comment.
1839
1840 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
1841
1842         * configure.in: Correct previous change: don't assume that
1843         gas's version number _isn't_ the last thing on the line, or
1844         isn't the only number on the line, either.
1845         * configure: Regenerate.
1846
1847 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1848
1849         * cfgcleanup.c: Fix a comment typo.
1850
1851 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1852
1853         * alias.c: Fix comment formatting.
1854         * recog.c: Likewise.
1855         * config/cris/cris.c: Likewise.
1856         * config/cris/cris.h: Likewise.
1857         * config/i960/i960.c: Likewise.
1858         * config/i960/i960.h: Likewise.
1859
1860 2001-10-30  Kazu Hirata  <kazu@hxi.com>
1861
1862         * config/arm/arm.c: Fix a comment typo.
1863         * config/arm/arm.h: Likewise.
1864         * config/ia64/ia64.c: Likewise.
1865
1866 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
1867
1868         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
1869         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
1870         * rtl.h (set_unique_reg_note): Change return value.
1871         * gcse.c (try_replace_reg): Use set_unique_reg_note.
1872         * cse.c (cse_insn): Likewise.
1873         * expr.c (emit_move_insn): Likewise.
1874         * explow.c (force_reg): Likewise.
1875         * local-alloc (update_equiv_regs): Likewise.
1876         * loop.c (move_moveables, load_mems): Likewise.
1877         * reload (find_reloads): Likewise.
1878
1879 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
1880
1881         Localization fixes.
1882         * c-decl.c (parmlist_tags_warning, start_struct,
1883         check_for_loop_decls): Separate messages for struct, union and
1884         enum cases to allow for languages in which they have different
1885         genders.
1886         * c-format.c (scanf_flag_specs): Separate short and long name of
1887         the assignment suppression feature.
1888         (check_format_types): Localize "pointer" and "different types"
1889         strings.
1890         * c-lex.c (lex_number): Localize "an unsigned long int" and
1891         related strings.
1892         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
1893         warning message.
1894         * c-typeck.c (build_unary_up): Separate messages for increment and
1895         decrement cases to allow for languages in which they use different
1896         articles.  Localize the strings "increment" and "decrement" in one
1897         case.
1898
1899 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
1900
1901         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
1902         when no changes has been made.
1903
1904         * gcse.c (reg_set_bitmap): Turn into reg_set.
1905         (modify_mem_list_set, canon_modify_mem_list_set)
1906         (clear_modify_mem_tables, free_modify_mem_tables): New.
1907         (gcse_main); Use free_modify_mem_tables.
1908         (free_gcse_mem): Likewise; free the bitmaps.
1909         (alloc_gcse_main): Initialize the bitmaps.
1910         (canon_list_insert): Set canon_modify_mem_list_set.
1911         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
1912         (compute_hash_table): Use clear_modify_mem_tables.
1913         (reset_opr_set_tables): Likewise.
1914         (oprs_not_set_p): reg_set_bitmap is regset.
1915         (mark_set, mark_clobber): Likewise.
1916
1917         * df.h (DF_EQUIV_NOTES): New constant.
1918         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
1919         when asked for.
1920
1921         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
1922         (init_regions, schedule_insns): Conditionalize the checking
1923         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
1924
1925 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
1926
1927         * i386.md (movti_rex64 splitter): Fix condition.
1928
1929 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
1930
1931         * configure.in: Do not assume that gas's version number is the
1932         last thing on the first line of as --version output.
1933         * configure: Regenerate.
1934
1935         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
1936         MT_WARNING, MT_ERROR, MT_FATAL.
1937         (main): Call gcc_init_libintl.
1938         (v_message): Call gettext on msgid and "warning: "
1939         * tradcif.y: Include intl.h.
1940         (yyerror): Make parameter definition consistent with
1941         prototype.  Call gettext on msgid argument.
1942
1943 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1944
1945         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
1946         warnings.
1947
1948         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
1949
1950 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1951
1952         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
1953         before referencing it.
1954
1955 2001-10-26  DJ Delorie  <dj@redhat.com>
1956
1957         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
1958         override -G, and force -G0.
1959
1960 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1961
1962         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
1963         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
1964         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
1965         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
1966
1967         * loop.h (struct induction): Rename ext_dependant to
1968         ext_dependent.
1969         * loop.c: Change all uses.
1970         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
1971         All callers changed.
1972         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
1973
1974 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
1975
1976         * c-parse.in (expr_no_commas, primary), c-typeck.c
1977         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
1978
1979 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
1980
1981         Undo assemble_name change in earlier patch.
1982
1983 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
1984
1985         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
1986         determining the type of the receiver, do not check that TREE_CODE
1987         of receiver is CALL_EXPR before calling receiver_is_class_object().
1988         (receiver_is_class_object): For the GNU runtime: recognize
1989         the case that the receiver is self in a class method context.
1990         Check that TREE_CODE of receiver is CALL_EXPR when checking that
1991         the receiver is a call to objc_get_class.
1992
1993 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1994
1995         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
1996
1997 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1998
1999         * Makefile.in (OBJS): Put all files in alphabetical order.
2000
2001         * dwarf2out.c (add_const_value_attribute): Fix error in last
2002         change.
2003
2004 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
2005
2006         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
2007         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
2008         fix warning.
2009         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
2010         (life_analysis): call purge_all_dead_edges after deleting noops.
2011         (delete_noop_move): Do not purge CFG.
2012         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
2013
2014 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
2015
2016         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
2017         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
2018         (ASM_GLOBALIZE_LABEL): Use assemble_name.
2019         (ASM_OUTPUT_COMMON): Likewise.
2020         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
2021         (rs6000_output_function_epilogue): Likewise.
2022         (output_mi_thunk): Fix typo.
2023         (rs6000_output_symbol_ref): Use assemble_name.
2024         (output_toc): Likewise.
2025         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
2026         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
2027         assemble_name calls STRIP_NAME_ENCODING.
2028         (ASM_OUTPUT_LABEL): Use assemble_name.
2029         (ASM_GLOBALIZE_LABEL): Likewise.
2030         (ASM_DECLARE_FUNCTION_NAME): Likewise.
2031         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
2032         (ASM_OUTPUT_LOCAL): Likewise.
2033
2034 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2035
2036         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
2037         (expand_builtin_apply, expand_builtin_return): Likewise.
2038         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
2039
2040 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
2041
2042         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
2043         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
2044         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
2045         configure, configure.in, except.c, except.h, flow.c, function.c,
2046         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
2047         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
2048         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
2049         unroll.c: Fix spelling errors.
2050
2051         * doc/extend.texi, doc/invoke.texi: Fix spelling.
2052
2053         * doc/gcc.texi: Document use of "dependent" and American spelling.
2054
2055 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
2056
2057         * expr.c (emit_group_load): Support CONCATs by storing them to memory
2058         and reloading.
2059
2060 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2061
2062         * expr.c (store_constructor_field): Only call adjust_address on MEM.
2063
2064 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
2065
2066         * genrecog.c (write_switch):  Output if before switch for
2067         DT_elt_zero_wide_safe.
2068
2069 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2070
2071         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
2072         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
2073         (FUNCTION_PROFILER): Const-ify.
2074         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
2075         (eliminate_constant_term, assemble_name, output_addr_const):
2076         Remove declarations.
2077         (ptr_half_pic_address_p, half_pic_hash): Prototype.
2078         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
2079         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
2080         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
2081         (half_pic_declare, half_pic_external): Const-ify.
2082         * toplev.c: Include "halfpic.h".
2083
2084 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
2085
2086         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
2087         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
2088         config/i386/i386.c, config/i386/i386-interix.h,
2089         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
2090         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
2091         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
2092         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
2093         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
2094         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
2095         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
2096         spelling errors.
2097
2098         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
2099         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
2100         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
2101         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
2102         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
2103         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
2104         system.h, toplev.c: Fix spelling errors.
2105
2106 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2107
2108         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
2109
2110         * dwarf2out.c (reg_number): Abort if pseudo.
2111         (reg_loc_descriptor): Return 0 if pseudo.
2112         (is_based_loc): Return 0 if pseudo.
2113         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
2114         recursive calls.
2115         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
2116         (loc_descriptor): Return 0 if can't find location and handle 0
2117         return from recursive calls.
2118         (loc_descriptor_from_tree): Likewise.
2119         Fix handling of indirect.
2120         Also return 0 for PLACEHOLDER_EXPR.
2121         Clean up COMPONENT_REF cases.
2122         (add_AT_location_descriptor): Simplify, but handle 0 return from
2123         loc_descriptor.
2124         (add_const_value_attribute): Avoid shift count warning.
2125         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
2126         Set comp_unit_die as context if not in function.
2127
2128         * config/mips/mips-protos.h: Break up long lines.
2129         Remove needless #ifdef/#endif blocks.
2130         Don't declare functions declared in file made by genpreds or recog.h.
2131         * config/mips/mips.c (mips_output_function_prologue): TSIZE
2132         is now HOST_WIDE_INT; delete unneeded casts.
2133         * config/mips/mips.h: Don't use #elif.
2134
2135         * expr.c (stor_constructor_field): Always call adjust_address.
2136         Copy TARGET before changing its alias set.
2137         (store_field): Likewise, for TO_RTX.
2138         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
2139         replacement.
2140         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
2141         (find_placeholder): Return 0 if can't find object.
2142         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
2143         returns 0.
2144
2145 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
2146
2147         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
2148
2149 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
2150
2151         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
2152         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
2153         (merge_blocks): Properly udpate life after making edge nonfallthru.
2154         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
2155
2156 2001-10-26  Kazu Hirata  <kazu@hxi.com>
2157
2158         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
2159
2160 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
2161
2162         * c-typeck.c (convert_arguments): When comparing for enumeral
2163         type equality, use TYPE_MAIN_VARIANT.
2164         * gcc.dg/Wconversion.c: New tests.
2165
2166 2001-10-26  Kazu Hirata  <kazu@hxi.com>
2167
2168         * s390/s390.c: Fix comment typos.
2169         * s390/s390.h: Likewise.
2170         * s390/s390.md: Likewise.
2171
2172 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
2173
2174         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
2175         (walk_tree): Use it for tail calls where appropriate.
2176
2177 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
2178
2179         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
2180         non-local label_refs.
2181
2182 2001-10-26  Kazu Hirata  <kazu@hxi.com>
2183
2184         * config/h8300/h8300.md (4 anonymous patterns): New.
2185
2186 2001-10-26  Kazu Hirata  <kazu@hxi.com>
2187
2188         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
2189         algorithm through the shift_info structure.
2190         (emit_a_shift): Update the use of get_shift_alg.
2191
2192 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
2193
2194         * sched-rgn.c: Remove bitset typedef.
2195         Change bitset to sbitmap in prototypes / variable types.
2196         Remove bbset_size.
2197         Remove edgeset_bits.
2198         Remove edgeset_size.
2199         s/BITSET_ADD/SET_BIT/g
2200         s/BITSET_INVERT/sbitmap_ones/g
2201         s/BITSET_INTER/sbitmap_a_and_b/g
2202         s/BITSET_UNION/sbitmap_a_or_b/g
2203         s/BITSET_DIFFER/sbitmap_difference/g
2204         s/bitset_member/TEST_BIT/g
2205         (BITSET_*): Removed.
2206         (bitset_member): Removed.
2207         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
2208         EXECUTE_IF_SET_IN_SBITMAP.
2209         (split_edges): Rewrite, use sbitmap functions instead of bitset
2210         operations.
2211         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
2212
2213 2001-10-26  Andreas Schwab  <schwab@suse.de>
2214
2215         * reload1.c (emit_input_reload_insns): Fix parens in last
2216         (undocumented) change that was supposed to change only whitespace.
2217
2218 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2219
2220         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
2221
2222         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
2223         ASM_OPERANDS.
2224
2225 2001-10-26  Andreas Jaeger  <aj@suse.de>
2226
2227         * flow.c (clear_log_links): Remove unused variable.
2228         * cfgcleanup.c (cleanup_cfg): Likewise.
2229
2230 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
2231
2232         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
2233         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
2234
2235 2001-10-26  Richard Henderson  <rth@redhat.com>
2236
2237         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
2238         rename PV_REG to R27_REG.
2239         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
2240         (REG_CLASS_FROM_LETTER): Update.
2241         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
2242         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
2243         (udivsi3, modsi3, umodsi3): Likewise.
2244         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
2245
2246 2001-10-26  Richard Henderson  <rth@redhat.com>
2247
2248         * cfg.c (clear_aux_for_blocks): Split out of ...
2249         (free_aux_for_blocks): here.
2250         (clear_aux_for_edges): Split from ...
2251         (free_aux_for_edges): here.
2252         * basic-block.h: Declare them.
2253         * lcm.c (compute_antinout_edge): Use them.
2254         (compute_laterin, compute_available, compute_nearerout): Likewise.
2255         (optimize_mode_switching): Likewise.
2256
2257 2001-10-26  Richard Henderson  <rth@redhat.com>
2258
2259         * Makefile.in (unstage*): Remove as, ld, collect-ld before
2260         moving everything back to the main build directory.
2261
2262 2001-10-26  Christopher Faylor  <cgf@redhat.com>
2263
2264         * config/i386/cygwin.h: Search target specific include directory, if
2265         appropriate.
2266
2267 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2268
2269         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
2270         of macro guards. Fix #endif comment.
2271
2272         * output.h (default_exception_section, default_eh_frame_section):
2273         Move prototypes outside of macro guard.
2274
2275         * crtstuff.c: Fix #endif comment.
2276
2277 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
2278
2279         * doc/md.texi (movMM): Clarify semantics of storing into a
2280         non-paradoxical SUBREG.
2281
2282 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
2283
2284         * langhooks.c (lang_hook_default_clear_binding_stack): New.
2285         (lang_hook_default_get_alias_set): Move next to other alias
2286         hooks.
2287         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
2288         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
2289         (LANG_HOOKS_INITIALIZER): Add it.
2290         * toplev.h (struct lang_hooks): Add clear_binding_stack.
2291         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
2292         instead of a loop calling poplevel.
2293
2294 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
2295
2296         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
2297         occurrences of #elif with #if...#endif.
2298
2299 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2300
2301         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
2302
2303 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2304
2305         * alias.c (can_address_p): No longer static.
2306         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
2307         Return 0 if all parameters are default values.
2308         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
2309         (adjust_address_1): Try harder to compute a size.
2310         * expr.c (expand_assignment, store_constructor): If can't address,
2311         set MEM_KEEP_ALIAS_SET_P.
2312         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
2313         (store_field): Likewise.
2314         (store_constructor): Simplify call to store_constructor_field.
2315         * expr.h (can_address_p): New declaration.
2316         * gensupport.c (gen_rtx_CONST_INT): New function.
2317         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
2318         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
2319         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
2320
2321         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
2322
2323 2001-10-24  Christopher Faylor  <cgf@redhat.com>
2324
2325         * config/i386/cygwin.h: Use proper path for mingw crt files when
2326         -mno-cygwin.
2327
2328 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2329
2330         * dwarf2out.c (file_info_cmp): Always return consistent results.
2331
2332 2001-10-24  Roger Sayle <roger@eyesopen.com>
2333
2334         * stmt.c (expand_end_case): Index jumptables from zero for
2335         suitably small values of minval.
2336
2337 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
2338
2339         * stor-layout.c (place_union_field): If any field was aligned with
2340         attribute aligned, set record type's TYPE_USER_ALIGN.
2341         (place_field): Likewise.
2342         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
2343         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
2344
2345 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
2346
2347         * c-common.h (struct c_common_identifier): Remove rid_code field.
2348         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
2349
2350         * c-typeck.c (constructor_designated): New local flag.
2351         (struct constructor_stack): Add "designated" field to match.
2352         (start_init): Clear it.
2353         (really_start_incremental_init, push_init_level): Push and
2354         clear it.
2355         (pop_init_level): Pop it.
2356         (set_designator): Set it.
2357
2358         (pop_init_level): Suppress "missing initializer" warnings if
2359         constructor_designated is true.
2360         (process_init_element): Suppress warning about union
2361         initialization under traditional C, if constructor_designated
2362         is true.
2363
2364 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2365
2366         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
2367         change.
2368
2369 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
2370
2371         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
2372
2373 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
2374
2375         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
2376         the node was already a set to a constant.
2377
2378 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2379
2380         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
2381         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
2382
2383 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2384
2385         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
2386         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
2387         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
2388         * s390.c (s390_final_chunkify): Don't use string concatenation.
2389         (s390_function_prologue, s390_function_epilogue): Const-ify.
2390         * s390.h (FUNCTION_PROFILER): Remove unused variable.
2391
2392 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
2393
2394         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
2395         prototypes.
2396
2397 2001-10-23  Stan Shebs  <shebs@apple.com>
2398
2399         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
2400         -traditional-cpp in first-stage compilation.
2401
2402 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2403
2404         * gensupport.c (target_flags): Add.
2405
2406 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
2407
2408         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
2409         if needed.
2410         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
2411         * except.c (expand_builtin_frob_return_addr): Likewise.
2412         (expand_builtin_eh_return): Likewise.
2413         * stmt.c (expand_computed_goto): Likewise.
2414         * explow.c (memory_address): Likewise.
2415         (allocate_dynamic_stack_space): Clean up predicate testing.
2416         (probe_stack_range): Convert SIZE to Pmode.
2417         * calls.c (rtx_for_function_call): Only call convert_memory_address
2418         if needed.
2419         Pass function call operand as ptr_mode, not Pmode.
2420         * expr.c (expand_assignment): Clean up calls to convert_memory
2421         address by only doing so when needed and making offsets Pmode.
2422         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
2423         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
2424         is in Pmode, not ptr_mode.
2425
2426 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2427
2428         * darwin-protos.h (constructor_section, destructor_section,
2429         mod_init_section, mod_term_section): Prototype.
2430         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
2431         Const-ify.
2432         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
2433         Likewise.
2434         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
2435         objc_section_init declaration.
2436         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
2437         (objc_section_init, try_section_alias): Make static.
2438         (alias_section): Make static and hide unused function.
2439         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
2440
2441 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2442
2443         * alias.c (can_address_p): Compnonents are not addressable if
2444         the containing type has alias set 0.
2445         (get_alias_set): Rework to use STRIP_NOPS.
2446         Only call front-end routine on object, type, or object with
2447         NOPs stripped, not inner values.
2448         Use language hook to call front-end routine.
2449         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
2450         (expand_builtin_apply): Call set_mem_align on MEMs we make.
2451         Don't pass alignment to emit_block_move.
2452         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
2453         (expand_builtin_memset): Likewise, but for clear_storage.
2454         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
2455         and remove C++ specific parts.
2456         * c-common.h (c_common_get_alias_set): Add declaration.
2457         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
2458         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
2459         (save_fixed_argument_area): Call set_mem_align.
2460         Remove alignment in call to emit_block_move.
2461         (emit_library_call_value_1, store_one_arg): Likewise.
2462         (target_for_arg): Remove; disabled long ago.
2463         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
2464         once and similar cleanups.
2465         (offset_address): Use proper introductory comment.
2466         * expr.c (emit_block_move): Use alignment from that of MEM args, not
2467         from explicit operand; all callers changed.
2468         (clear_storage): Likewise.
2469         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
2470         (store_field): Remove kludge on alias set used for to_rtx.
2471         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
2472         (expand_expr_unaligned): Call set_mem_attributes instead of
2473         set_mem_alias_set.
2474         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
2475         * function.c (assign_stack_temp_for_type): Set MEM alignment.
2476         (expand_function_end): Track MEM attributes of trampolines.
2477         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
2478         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
2479         attributes from original.
2480         * langhooks.c (lang_hook_default_get_alias_set): New function.
2481         (hook_get_alias_set_0): New function.
2482         * langhooks.h (hook_get_alias_set_0): New declaration.
2483         (lang_hook_default_get_alias_set): Likewise.
2484         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
2485         * reload1.c (alter_reg): Use adjust_address_nv.
2486         * rtl.c (get_mode_alignment): Moved to here.
2487         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
2488         change default if unknown from 1 to BITS_PER_UNIT.
2489         * stor-layout.c (get_mode_alignment): Remove from here.
2490         * toplev.h (struct lang_hoks): Add get_alias_set field.
2491         * tree.h (lang_get_alias_set): Delete declaration.
2492         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
2493         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
2494         (ix86_va_arg): Likewise.
2495         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
2496         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
2497         * config/sparc/sparc.c (sparc_va_arg): Likewise.
2498         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
2499         (expand_block_move_mem): Remove dead code.
2500
2501 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
2502
2503         * c-common.c (warn_div_by_zero): New.
2504         * c-common.h (warn_div_by_zero): New.
2505         * c-decl.c (c_decode_option): Take it on the command line.
2506         * c-typeck.c (build_binary_op): Warn about division by zero.
2507         * doc/invoke.texi: Document the new command line option, fix
2508         documentation of -Wmultichar.
2509         * testsuite/gcc.dg/divbyzero.c: New tests.
2510         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
2511
2512 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
2513
2514         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
2515
2516         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
2517         to avoid update_life_info call.
2518         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
2519         * cfgcleanup.c (bb_flags): New enum.
2520         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
2521         (notice_new_block, update_forwarder_flag): New functions.
2522         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
2523         (try_forward_edges): Likewise; update flags.
2524         (merge_blocks): Likewise.
2525         (outgoing_edges_match): Likewise.
2526         (try_crossjump_to_edge): Likewise.
2527         (try_optimize_cfg): Likewise; initialize and clear the flags;
2528         recompute life info if needed.
2529         (cleanup_cfg): No need to clear aux pointers.
2530
2531 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
2532
2533         * config/i386/i386.c (override_options): Default to minimum
2534         stack alignment when optimizing for code size.
2535         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
2536         change.
2537
2538         * config/i386/i386.c (override_options): Set upper limit of
2539         -mpreferred-stack-boundary to 12.
2540
2541 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
2542
2543         * recog.c (peephole2_optimize): Add default case to switch.
2544
2545 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
2546
2547         * doc/gcc.texi (Sending Patches): Remove.
2548
2549 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
2550
2551         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
2552         fields when comparing.
2553
2554 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2555
2556         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
2557         * arm.c (HOST_INT, HOST_UINT): Likewise.
2558
2559 2001-10-22  Stan Shebs  <shebs@apple.com>
2560
2561         * config/darwin-protos.h (darwin_exception_section): Declare.
2562         (darwin_eh_frame_section): Declare.
2563
2564 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
2565
2566         * i386.md (movti_rex64): Fix mode.
2567
2568 2001-10-22  Stan Shebs  <shebs@apple.com>
2569
2570         * target.h (struct gcc_target): Add asm_out.exception_section,
2571         asm_out.eh_frame_section.
2572         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
2573         (TARGET_ASM_EH_FRAME_SECTION): New.
2574         (TARGET_INITIALIZER): Update.
2575         * output.h (default_exception_section): Declare.
2576         (default_eh_frame_section): Declare.
2577         * dwarf2out.c: Include target.h.
2578         (output_call_frame_info): Call target hook for eh frames.
2579         (default_eh_frame_section): New function.
2580         * except.c: Include target.h.
2581         (output_function_exception_table): Call target hook for exception
2582         section.
2583         * varasm.c (default_exception_section): Rename from
2584         exception_section, remove EXCEPTION_SECTION macro.
2585
2586         * config/darwin.h (darwin_eh_frame_section): New function.
2587         (EXCEPTION_SECTION): Remove.
2588         (TARGET_ASM_EXCEPTION_SECTION): Define.
2589         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
2590         (nextstep_exception_section): New function.
2591         (nextstep_eh_frame_section): New function.
2592         (TARGET_ASM_EXCEPTION_SECTION): Define.
2593         (TARGET_ASM_EH_FRAME_SECTION): Define.
2594
2595         * config/pa/som.h (EXCEPTION_SECTION): Remove.
2596         (TARGET_ASM_EXCEPTION_SECTION): Define.
2597         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
2598         (EXCEPTION_SECTION): Remove.
2599         (TARGET_ASM_EXCEPTION_SECTION): Define.
2600         * config/stormy16/stormy16.h: Remove comments referencing
2601         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
2602
2603         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
2604         TARGET_ASM_EH_FRAME_SECTION.
2605
2606 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
2607
2608         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
2609         terms.
2610
2611         * c-format.c: Fix spelling typo in comment.
2612
2613         * sched-int.h: Fix typo in GCC preamble.
2614
2615 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2616
2617         PR debug/4252
2618         * doc/invoke.texi: Remove references to -fdump-translation-unit.
2619
2620 2001-10-22  Richard Henderson  <rth@redhat.com>
2621
2622         * config/i386/i386.c (ix86_expand_clear): New.
2623         * config/i386/i386-protos.h: Declare it.
2624         * config/i386/i386.md (setcc peep2s): Use it.
2625         (movsi_xor): Unexport.
2626
2627 2001-10-22  Richard Henderson  <rth@redhat.com>
2628
2629         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
2630         free_EXPR_LIST_list for LOG_LINKS.
2631
2632 2001-10-21  Robert Lipe  <robertlipe@usa.net>
2633
2634         * config/i386/i386.c (sco_asm_named_section): Delete.
2635         (sco_asm_out_constructor): Delete.
2636         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
2637         (ASM_OUTPUT_DOUBLE_INT): Likewise.
2638         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
2639         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
2640         (EXCEPTION_SECTION): Delete EH scn renaming hack.
2641
2642 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2643
2644         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
2645         and/or fold extra calls into fewer ones.
2646         * collect2.c (dump_file): Likewise.
2647         * cppexp.c (parse_number): Likewise.
2648         * cpplex.c (_cpp_lex_direct): Likewise.
2649         * final.c (output_asm_insn, asm_fprintf): Likewise.
2650         * fix-header.c (inf_scan_ident, main): Likewise.
2651         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
2652         Likewise.
2653         * fold-const.c (real_hex_to_f): Likewise.
2654         * gen-protos.c (parse_fn_proto): Likewise.
2655         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
2656         * genrecog.c (change_state, write_action): Likewise.
2657         * gensupport.c (shift_output_template): Likewise.
2658         * local-alloc.c (requires_inout): Likewise.
2659         * mips-tfile.c (IS_ASM_IDENT): Likewise.
2660         * protoize.c (is_id_char, main): Likewise.
2661         * real.c (asctoeg): Likewise.
2662         * recog.c (asm_operand_ok): Likewise.
2663         * reload.c (find_reloads): Likewise.
2664         * scan.c (scan_identget_token): Likewise.
2665         * sched-vis.c (print_value): Likewise.
2666         * stringpool.c (ggc_alloc_string): Likewise.
2667         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
2668         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
2669         * tradcpp.c (rescan): Likewise.
2670         * tree.c (clean_symbol_name): Likewise.
2671         * varasm.c (decode_reg_name): Likewise.
2672
2673         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
2674         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
2675         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
2676         * m88k.c (output_ascii): Likewise.
2677         * m88k.h (OVERRIDE_OPTIONS): Likewise.
2678         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
2679         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
2680         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
2681
2682 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2683
2684         * langhooks.c (lang_hook_default_do_nothing,
2685         lang_hook_default_decode_option): New defaults.
2686         * langhooks.h: Make hooks unconditional and non-NULL.
2687         * toplev.c (compile_file, toplev_main): Update.
2688         * toplev.h: Update comments.
2689         * objc/objc-act.c (lang_hooks): Update to new paradigm.
2690
2691 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2692
2693         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
2694
2695         * system.h (IN_RANGE): New macro.
2696
2697 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
2698
2699         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
2700         INTLDEPS variable, which does not include $LIBICONV.
2701         * Makefile.in: Use INTLDEPS in LIBDEPS.
2702         * configure: Regenerate.
2703
2704 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2705
2706         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
2707         * cpplex.c (lex_percent, lex_dot): Remove.
2708         (get_effective_char, skip_block_comment, skip_line_comment,
2709         parse_identifier_slow, parse_number, parse_string, save_comment,
2710         _cpp_lex_direct): Update to do lookback freely.
2711         (IF_NEXT_IS, BACKUP): New macros.
2712         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
2713         * cppmacro.c (paste_tokens): Update.
2714
2715 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
2716
2717         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
2718
2719 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
2720
2721         * reload1.c (reload): Check CONSTANT_P before calling
2722         LEGITIMATE_PIC_OPERAND_P.
2723         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
2724         workaround of 2001-10-13.
2725
2726 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
2727
2728         * i386.c (split_di): Handle splitting of DFmode.
2729
2730 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2731
2732         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
2733         (adjust_address_1, offset_address): Likewise.
2734
2735         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
2736         (output_asm_insn): Call it for each line output.
2737         Don't record an operand more than once.
2738
2739         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
2740         * main.c: Include config.h and system.h, but not ansidecl.h.
2741         * Makefile.in (main.o): Update accordingly.
2742
2743 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
2744
2745         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
2746
2747 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
2748
2749         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
2750         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
2751         Break out from ...
2752         (find_sub_basic_blocks): ... here;
2753         (find_many_sub_basic_blocks): New.
2754         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
2755
2756         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
2757
2758         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
2759
2760         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
2761
2762         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
2763         * flow.c (update_life_info): Measure time.
2764         * c-decl.c: Include timevar.h
2765         (c_expand_body): Measure time.
2766         * toplev.c (rest_of_compilation): Measure time of mode switching
2767         separately.
2768         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
2769
2770         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
2771         (lang_independent_options): Add asynchronous-unwind-tables
2772         (toplev_main): flag_asynchronous_unwind_tables implies
2773         flag_unwind_tables.
2774         * flags.h (flag_asynchronous_unwind_tables): Declare.
2775         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
2776         flag_asynchronous_unwind_tables.
2777         (output_call_frame_info): Likewise.
2778         * invoke.texi (-fasynchronous-unwind-tables): Document.
2779         * i386.c (optimization_options): Enable
2780         flag_asynchronous_unwind_tables.
2781
2782         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
2783         * i386.md (s* expanders): Destination is QImode.
2784
2785         * toplev.c (rest_of_compilation): Do not call clear_log_links.
2786         * rtl.h (clear_log_links): Kill.
2787         * flow.c (clear_log_links): Make static; accept blocks parameter;
2788         do no clear life info.
2789         (update_life_info): Call clear_log_links.
2790
2791         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
2792
2793 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
2794
2795         * cpplex.c (handle_newline, skip_escaped_newlines,
2796         get_effective_char, skip_block_comment, skip_line_comment,
2797         parse_identifier_slow, parse_number, parse_string,
2798         _cpp_lex_direct): Update to do more stepping back.
2799         (trigraph_ok): Similarly.  Rename trigraph_p.
2800         (SAVE_STATE, RESTORE_STATE): Remove.
2801         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
2802
2803         * cpplib.c (destringize): Rename destringize_and_run, and
2804         call run_directive directly.
2805         (_cpp_do__Pragma): Simplify.
2806
2807 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2808
2809         * pe.c (arm_pe_unique_section): Const-ify.
2810         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
2811         (switch_to_section): Add static prototype.
2812
2813         * output.h (drectve_section): Prototype.
2814
2815 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2816
2817         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
2818         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
2819         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
2820         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
2821         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
2822         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
2823         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
2824         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
2825         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
2826         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
2827         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
2828         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
2829         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
2830         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
2831         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
2832         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
2833         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
2834         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
2835         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
2836         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
2837         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
2838         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
2839         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
2840         cris-*-none, cris-*-linux*: Update ${tmfile} list.
2841         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
2842         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
2843         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
2844         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
2845         v850-*-*): Delete superflous ${cpu_type} setting.
2846         * config/linux.h: Delete svr4.h include.
2847         (SET_ASM_OP): Delete.
2848         * config/netware.h (INT_ASM_OP): Undef before define.
2849         * config/ptx4.h: Delete elfos.h include.
2850         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
2851         * config/svr4.h: Delete elfos.h include. Update commentary.
2852         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
2853         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
2854         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
2855         config/v850/v850.h: Delete svr4.h include.
2856         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
2857         config/m68k/m68kv4.h, config/m88k/sysv4.h,
2858         config/sparc/sysv4.h: Update includes.
2859         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
2860         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
2861         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
2862         config/m88k/dguxbcs.h: Delete includes.
2863         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
2864         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
2865         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
2866         it.
2867         * config/m88k/dgux.h: Delete include.
2868         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
2869         defining it.
2870         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
2871         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
2872         * config/sh/elf.h: Update include.
2873         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
2874         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
2875
2876 2001-10-19  Catherine Moore  <clm@redhat.com>
2877
2878         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
2879         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
2880         base and count fields.
2881         (stormy16_expand_builtin_va_start):  last_reg_count changed to
2882         size_of_reg_args.  Use count + size in first comparison.
2883
2884 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2885
2886         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
2887         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
2888         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
2889         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
2890         Set alignment from type if INDIRECT_REF.
2891         (adjust_address_1, offset_address): Simplify alignment compuitation.
2892         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
2893         here; done by set_mem_attributes.
2894
2895 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2896
2897         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
2898         * arm-protos.h (rdata_section, zero_init_section, common_section):
2899         Prototype.
2900         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
2901         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
2902         traditional mode stringification.
2903         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
2904         in macros controling its use.
2905         * rtlanal.c: Include tm_p.h.
2906         * varasm.c (asm_output_aligned_bss): Mark parameter with
2907         ATTRIBUTE_UNUSED.
2908         (assemble_constant_align, assemble_start_function, assemble_align,
2909         assemble_variable, assemble_trampoline_template,
2910         output_constant_def_contents): Wrap potentially empty if-stmt body
2911         in brackets.
2912
2913 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2914
2915         * a29k-protos.h (literal_section): Prototype.
2916         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
2917         * a29k.md: Ensure function pointers are prototyped.
2918         * genattrtab.c (write_eligible_delay): Mark parameter with
2919         ATTRIBUTE_UNUSED.
2920
2921 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2922
2923         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
2924         * 1750a.c (print_operand): Fix format specifier warning.
2925         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
2926         * 1750a.md: Likewise.
2927         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
2928         * genemit.c (output_add_clobbers): Mark parameter with
2929         ATTRIBUTE_UNUSED.
2930         * genrecog.c (write_subroutine): Likewise.
2931         * integrate.c (expand_inline_function): Delete unused variable.
2932         * varasm.c (remove_from_pending_weak_list): Wrap with
2933         ASM_WEAKEN_LABEL.
2934
2935 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
2936
2937         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
2938         field is different to previous argument's neg field.
2939
2940         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
2941
2942 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2943
2944         * final.c (get_decl_from_op): New function.
2945         (output_asm_insn): Call it; write "*" when item with decl is address.
2946
2947 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
2948
2949         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
2950         about 64-bit support from the 3.0_branch version.
2951
2952 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
2953
2954         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
2955         USE_INCLUDED_LIBINTL when appropriate.
2956         * configure, config.in: Regenerate.
2957         * Makefile.in (datadir): Set to @datadir@.
2958         (intl.o): Also depend on $(CONFIG_H) and system.h.
2959
2960         * intl.c: Factor out common gettext initialization sequence.
2961         (gcc_init_libintl):  New function.
2962         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
2963         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
2964         off NLS.  Add multiple include guard.  No need to #ifdef-guard
2965         an #undef.  Prototype gcc_init_libintl here.
2966
2967         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
2968         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
2969         Use gcc_init_libintl.
2970
2971 2001-10-19  Catherine Moore  <clm@redhat.com>
2972
2973         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
2974
2975         * config/stormy16/stormy16.c (stormy16_split_move):  Make
2976         sure that REG_INC notes are present for auto_inc operands.
2977
2978 2001-10-19  Andreas Jaeger  <aj@suse.de>
2979
2980         * configure: Regenerated.
2981         * configure.in: Add x86_64 to switch statements.
2982
2983 2001-10-18  Richard Henderson  <rth@redhat.com>
2984
2985         * config/alpha/alpha.md (sibcall_osf_1): Load destination
2986         address into $27 explicitly.
2987         (sibcall_value_osf_1): Likewise.
2988
2989 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2990
2991         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
2992         (offset_address): New function.
2993         (free_emit_status): Free regno_decl.
2994         (init_emit): Pass proper number of elements to xcalloc.
2995         Allocate regno_decl.
2996         (mark_emit_status): Mark regno_decl values.
2997         * expr.c (highest_pow2_factor): New function.
2998         (expand_assigment): Use it and offset_address.
2999         Properly handle ptr_mode vs. Pmode in offset calculation.
3000         (store_constructor, expand_expr_unaligned): Likewise.
3001         (expand_expr, case COMPONENT_EXPR): Likewise.
3002         * expr.h (offset_address): New decl.
3003         * function.h (struct emit_status): Add regno_decl.
3004         (REGNO_DECL): New macro.
3005         * final.c (output_asm_name): Move in file and don't conditionalize
3006         on flag_print_asm_name.
3007         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
3008         Output names of operands, if known.
3009         * function.c (assign_parms): Set REGNO_DECL.
3010         * integrate.c (integrate_decl_tree): Likewise.
3011         * stmt.c (expand_decl): Likewise.
3012         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
3013
3014 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
3015
3016         * attribs.c (handle_noinline_attribute): New function.
3017         (handle_used_attribute): Likewise.
3018         (c_common_attribute_table): Added noinline and used.
3019         * doc/extend.texi (Function Attributes): Document them.
3020         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
3021         Warn when merging inline with attribute noinline.
3022         (start_decl, start_function): Warn if inline and attribute
3023         noinline appear in the same declaration.
3024
3025 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3026
3027         * config.gcc: Update c4x and i370 for C front end-specific
3028         dependencies.
3029         * config/c4x/c4x-c.c: New.
3030         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
3031         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
3032         New declarations.
3033         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
3034         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
3035         Make extern.
3036         (c4x_init_pragma): Remove.
3037         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
3038         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
3039         c4x_pr_ignored): Move to c4x-c.c.
3040         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
3041         * config/c4x/t-c4x: Update.
3042         * config/i370/i370-c.c: New.
3043         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
3044         (i370_pr_map): Move to i370-c.c.
3045         * config/i370/t-i370: New.
3046
3047         * doc/tm.texi: Update.
3048
3049 2001-10-17  Stan Shebs  <shebs@apple.com>
3050
3051         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
3052         typo fixes throughout.
3053         (machopic_output_stub): Remove some dead code.
3054
3055 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
3056
3057         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
3058         leak.
3059
3060 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3061
3062         * Makefile.in (print-rtl.o): Depend on TREE_H.
3063         * alias.c (get_alias_set): Make two passes over objects to first
3064         see if inner object is access via restricted pointer.
3065         Defer allocating alias set for restricted pointer until here.
3066         Call find_placeholder with second arg nonzero.
3067         Minor cleanups.
3068         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
3069         set for restricted pointer types.
3070         * emit-rtl.c (set_mem_attributes): Set more attributes.
3071         (set_mem_align, change_address, adjust_address_1): New functions.
3072         (change_address_1): Now static.
3073         (adjust_address, adjust_address_nv): Deleted.
3074         (replace_equiv_address): Call change_address_1.
3075         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
3076         (find_placeholder): Get starting point from PLIST arg.
3077         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
3078         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
3079         (adjust_address, adjust_address_nv): New macros.
3080         * print-rtl.c (tree.h): New include.
3081         (print_rtx, case MEM): Print all memory attributes.
3082
3083 2001-10-17  Richard Henderson  <rth@redhat.com>
3084
3085         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
3086
3087 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
3088
3089         * c-tree.texi: Eliminate duplicated word.
3090         * cpp.texi: Likewise.
3091         * install.texi: Likewise.
3092         * invoke.texi: Likewise.
3093         * tm.texi: Likewise.
3094
3095 2001-10-17  Michael Collison  <collison@isisinc.net>
3096
3097         * dsp16xx.c: Fix comment formatting to match GNU standards.
3098         (dsp16xx_output_function_prologue): Change type of 'size'
3099         parameter from 'int' to HOST_WIDE_INT.
3100         (dsp16xx_output_function_epilogue): Change type of 'size'
3101         parameter from 'int' to HOST_WIDE_INT.
3102
3103 2001-10-16  Richard Henderson  <rth@redhat.com>
3104
3105         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
3106         * configure, config.in: Rebuild.
3107
3108         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
3109         (ix86_output_addr_diff_elt): New.
3110         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
3111         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
3112         (JUMP_TABLES_IN_TEXT_SECTION): New.
3113         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
3114         * config/i386/i386-protos.h: Update.
3115
3116         * config/i386/386bsd.h, config/i386/beos-elf.h,
3117         config/i386/freebsd-aout.h, config/i386/freebsd.h,
3118         config/i386/i386-interix.h, config/i386/i386elf.h,
3119         config/i386/linux.h, config/i386/netbsd-elf.h,
3120         config/i386/netbsd.h, config/i386/openbsd.h,
3121         config/i386/ptx4-i.h, config/i386/rtemself.h,
3122         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
3123         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
3124
3125 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
3126
3127         * stmt.c (expand_asm_operands): Update commentary.
3128
3129 2001-10-16  Stan Shebs  <shebs@apple.com>
3130
3131         * config/darwin.h (GCC_NAME): Remove, no longer used.
3132         (NO_MATH_LIBRARY): Ditto.
3133         (MATH_LIBRARY): Define to emptiness.
3134         (DWARF2_DEBUGGING_INFO): Define.
3135         (PREFERRED_DEBUGGING_TYPE): Define.
3136         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
3137         (EXCEPTION_SECTION): Define.
3138         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
3139         * config/darwin.c (darwin_encode_section_info): Handle case of
3140         DECL_INITIAL being error_mark_node.
3141
3142 2001-10-16  Richard Henderson  <rth@redhat.com>
3143
3144         * alpha.c (current_file_function_operand): Don't fail for profiling.
3145         (direct_call_operand): New.
3146         * alpha-protos.h: Declare it.
3147         * alpha.h (EXTRA_CONSTRAINT): Use it.
3148         (PREDICATE_CODES): Add it.
3149         (ASM_OUTPUT_MI_THUNK): Remove.
3150         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
3151         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
3152
3153 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
3154
3155         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
3156         (JUMP_TABLES_IN_TEXT_SECTION): Define.
3157
3158 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
3159
3160         * cfg.c (free_edge): Break out from ....
3161         (remove_edge): ... here.
3162         (clear_edges): Use free_edge.
3163
3164         * att.h (ASM_QUAD): Add comment.
3165         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
3166
3167 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
3168
3169         * i386.c (split_ti): New function.
3170         (ix86_split_to_parts): Support TImodes.
3171         * i386.h (VALID_INT_MODE_P): Add TImode.
3172         * i386.md (movdi splitter): Fix.
3173         (movti): Support 64bit integer registers.
3174         (movti_rex64): New function and splitter.
3175
3176         * i386.c (*_cost): Add movsx/movzx cost.
3177         * i386.h (struct processor_costs): Add movsx/movzx fields.
3178         (RTX_COSTS): Handle zero/sign extend + avoid believing that
3179         64bit operations require split on 64bit machine.
3180         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
3181
3182         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
3183         (ix86_expand_move): Avoid pushes of memory if size does not match;
3184         move long constants to register.
3185         (x86_initialize_trampoline): Fix mode.
3186         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
3187         Use ASM_QUAD on 64bit.
3188         * i386.md (test pattern): Disallow impossible constants.
3189         (tablejump PIC expander): Fix emitting of sum.
3190         (movdicc_rex64): Rename to movdicc.
3191         * linux64.h (LINK_SPEC): Add missing '%'.
3192
3193 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
3194
3195         * tree-inline.c (inlinable_function_p): Leave it up to the
3196         front-end to turn -finline-functions into DECL_INLINE set for all
3197         functions.
3198
3199 2001-10-16  Stan Shebs  <shebs@apple.com>
3200
3201         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
3202
3203 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
3204
3205         * recog.c: Formatting and comment typo fixes.
3206
3207         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
3208         version in single tree build.
3209         * configure: Regenerate.
3210
3211 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
3212
3213         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
3214         MODE arguments to gen_rtx and compare operand with const0_rtx.
3215
3216 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3217
3218         * system.h: Poison old unused target macros.
3219         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
3220         * config/stormy16/stormy16.c: Update references to obsolete macros.
3221         * config/stormy16/stormy16.h: Similarly.
3222         * config/stormy16/stormy16.md: Similarly.
3223         * config/cris/cris.h: Similarly.
3224
3225 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
3226
3227         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
3228         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
3229         cpp_register_pragma): Update accordingly.
3230
3231 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3232
3233         * c-pragma.h (cpp_register_pragma_space): Remove.
3234         * cpplib.h (cpp_register_pragma_space): Remove.
3235         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
3236         (cpp_register_pragma_space): Remove.
3237         (cpp_register_pragma): Simplify using lookup_pragma_entry,
3238         add sanity checks.
3239         (do_pragma): Similarly.
3240         (_cpp_init_internal_pragmas): Don't register namespaces.
3241
3242         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
3243         Don't register namespaces.
3244         * cp/lex.c (init_cp_pragma): Similarly.
3245         * doc/tm.texi: Update.
3246
3247 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3248
3249         PR c/4157
3250         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
3251
3252 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
3253
3254         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
3255         add scheduling support.
3256         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
3257         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
3258         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
3259
3260
3261 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
3262
3263         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
3264         missing CONSTANT_P test in core GCC.
3265
3266 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
3267
3268         * cppmain.c (struct printer): New member source.
3269         (scan_translation_unit): Fix spacing at start of lines.
3270         (cb_line_change): Update.
3271
3272         * gcc.dg/cpp/spacing2.c: New test.
3273
3274 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
3275
3276         * config/cris/arit.c: Use __builtin_labs, not abs.
3277
3278         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
3279
3280         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
3281         misplaced sprintf and fprintf argument.
3282
3283 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
3284
3285         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
3286         * configure.in, Makefile.in: Take out obsolete check-po logic.
3287         * configure, config.in: Regenerate.
3288
3289 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
3290
3291         * objc/objc-act.c (finish_objc): Correct precondition for emitting
3292         symtab declarations.
3293
3294 2001-10-12  Stan Shebs  <shebs@apple.com>
3295
3296         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
3297         declarations of arguments and local variables.
3298
3299 2001-10-12  Christopher Faylor  <cgf@redhat.com>
3300
3301         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
3302         ENDFILE_SPEC definition.
3303
3304 2001-10-12  Kazu Hirata  <kazu@hxi.com>
3305
3306         * gthr-dce.h: Fix comment formatting.
3307         * gthr-posix.h: Likewise.
3308         * gthr-single.h: Likewise.
3309         * gthr-solaris.h: Likewise.
3310         * gthr-vxworks.h: Likewise.
3311         * gthr-win32.h: Likewise.
3312
3313 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
3314
3315         * final.c (output_asm_insn): Make sure assembly dialects are
3316         terminated, not nested.  Output `|' and `}' characters if they
3317         don't appear inside assembly dialect selection.
3318         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
3319         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
3320         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
3321         strsetsi_rex_1): Add {} braces.
3322
3323 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
3324
3325         * toplev.c (compile_file): Ignore return value from yyparse.
3326         Always pop any nested binding levels after yyparse returns.
3327
3328 2001-10-11  Richard Henderson  <rth@redhat.com>
3329
3330         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
3331
3332 2001-10-11  Richard Henderson  <rth@redhat.com>
3333
3334         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
3335         fall back to add_AT_long_long for large CONST_INT.
3336
3337 2001-10-11  Richard Henderson  <rth@redhat.com>
3338
3339         * config/i386/i386.md (setcc splitters): Add four splitters to
3340         simplify compound compares that simplify_comparison can't handle.
3341
3342 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
3343
3344         * cpplex.c (digraph_spellings, token_spellings): Make static.
3345
3346 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3347
3348         * unroll.c (loop_iterations): Fixup last patch.
3349
3350 2001-10-11  Richard Henderson  <rth@redhat.com>
3351
3352         * rtl.h (REG_VTABLE_REF): New.
3353         * rtl.c (reg_note_name): Add it.
3354         * combine.c (distribute_notes): Handle it.
3355         * final.c (final_scan_insn): Handle it.
3356         * tree.def (VTABLE_REF): New.
3357         * expr.c (expand_expr): Handle it.
3358         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
3359         * output.h: Declare them.
3360
3361 2001-10-11  Richard Henderson  <rth@redhat.com>
3362
3363         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
3364         for a DECL_INITIAL.
3365
3366 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
3367
3368         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
3369         available in 64-bit mode.
3370
3371 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
3372
3373         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
3374         cris-*-linux* cases.
3375         * config/cris/cris-protos.h: New file.
3376         * config/cris/cris.c: New file.
3377         * config/cris/cris.h: New file.
3378         * config/cris/cris.md: New file.
3379         * config/cris/linux.h: New file.
3380         * config/cris/aout.h: New file.
3381         * config/cris/arit.c: New file.
3382         * config/cris/cris_abi_symbol.c: New file.
3383         * config/cris/mulsi3.asm: New file.
3384         * config/cris/t-aout: New file.
3385         * config/cris/t-cris: New file.
3386         * config/cris/t-elfmulti: New file.
3387         * config/cris/t-linux: New file.
3388         * doc/invoke.texi: Add CRIS options.
3389         * doc/install.texi (Specific): Add blurb for CRIS.
3390
3391 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
3392
3393         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
3394         before using it.
3395         * config/float/i32.h: Likewise.
3396         * config/float-i386.h: Likewise.
3397         * config/float-i64.h: Likewise.
3398         * config/float-m68k.h: Likewise.
3399         * config/float-sh.h: Likewise.
3400         * config/float-sparc.h: Likewise.
3401
3402 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
3403
3404         * doc/contrib.texi: Add note about CRIS port to my entry.
3405
3406 2001-10-11  Kazu Hirata  <kazu@hxi.com>
3407
3408         * basic-block.h: Fix formatting.
3409         * bitmap.h: Likewise.
3410         * cpplib.h: Likewise.
3411         * c-tree.h: Likewise.
3412         * diagnostic.h: Likewise.
3413         * flags.h: Likewise.
3414         * ggc.h: Likewise.
3415         * longlong.h: Likewise.
3416         * real.h: Likewise.
3417         * reload.h: Likewise.
3418         * rtl.h: Likewise.
3419         * tree.h: Likewise.
3420
3421 2001-10-10  Richard Henderson  <rth@redhat.com>
3422
3423         * c-parse.in (asm_operand): Allow named operands.
3424         * genconfig.c (max_recog_operands): Set to 29.
3425         * local-alloc.c (requires_inout): Skip multiple digits.
3426         * recog.c (asm_operand_ok): Likewise.
3427         (preprocess_constraints): Use strtoul for matching constraints.
3428         (constrain_operands): Likewise.
3429         * regmove.c (find_matches): Likewise.
3430         * reload.c (find_reloads): Likewise.
3431         * stmt.c (parse_output_constraint): Don't reject in-out
3432         constraint on operands > 9.  Reject '[' in constraint.
3433         (expand_asm_operands): Handle named operands.  Use strtoul
3434         for matching constraints.
3435         (check_operand_nalternatives): Split out from expand_asm_operands.
3436         (check_unique_operand_names): New.
3437         (resolve_operand_names, resolve_operand_name_1): New.
3438
3439         * doc/extend.texi (Extended Asm): Document named operands.
3440         * doc/md.texi (Simple Constraints): Document matching constraints
3441         on operands > 9.
3442
3443 2001-10-10  Richard Henderson  <rth@redhat.com>
3444
3445         * combine.c (try_combine): Handle a SEQUENCE of one insn.
3446
3447         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
3448         (jcc splitters): Add two splitters to simplify compound compares
3449         that simplify_comparison can't handle.
3450
3451 2001-10-10  Richard Henderson  <rth@redhat.com>
3452
3453         * langhooks.c: Include langhooks.h.
3454         * Makefile.in (langhooks.o): Depend on it.
3455
3456 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
3457
3458         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
3459         should not be considered as a no-op.
3460         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
3461
3462 2001-10-10  Stan Shebs  <shebs@apple.com>
3463
3464         * alias.c: Remove uses of "register" specifier in declarations
3465         of arguments and local variables.
3466         * c-common.c: Ditto.
3467         * c-convert.c: Ditto.
3468         * c-decl.c: Ditto.
3469         * c-format.c: Ditto.
3470         * c-semantics.c: Ditto.
3471         * c-typeck.c: Ditto.
3472         * caller-save.c: Ditto.
3473         * calls.c: Ditto.
3474         * cfg.c: Ditto.
3475         * cfgbuild.c: Ditto.
3476         * cfgrtl.c: Ditto.
3477         * collect2.c: Ditto.
3478         * combine.c: Ditto.
3479         * convert.c: Ditto.
3480         * cppexp.c: Ditto.
3481         * cppfiles.c: Ditto.
3482         * cse.c: Ditto.
3483         * dbxout.c: Ditto.
3484         * defaults.h: Ditto.
3485         * df.c: Ditto.
3486         * dwarf2out.c: Ditto.
3487         * dwarfout.c: Ditto.
3488         * emit-rtl.c: Ditto.
3489         * explow.c: Ditto.
3490         * expmed.c: Ditto.
3491         * expr.c: Ditto.
3492         * final.c: Ditto.
3493         * fix-header.c: Ditto.
3494         * floatlib.c: Ditto.
3495         * flow.c: Ditto.
3496         * fold-const.c: Ditto.
3497         * function.c: Ditto.
3498         * gcc.c: Ditto.
3499         * gcse.c: Ditto.
3500         * gen-protos.c: Ditto.
3501         * genattrtab.c: Ditto.
3502         * gencheck.c: Ditto.
3503         * genconfig.c: Ditto.
3504         * genemit.c: Ditto.
3505         * genextract.c: Ditto.
3506         * genflags.c: Ditto.
3507         * gengenrtl.c: Ditto.
3508         * genoutput.c: Ditto.
3509         * genpeep.c: Ditto.
3510         * genrecog.c: Ditto.
3511         * gensupport.c: Ditto.
3512         * global.c: Ditto.
3513         * gmon.c: Ditto.
3514         * graph.c: Ditto.
3515         * haifa-sched.c: Ditto.
3516         * hard-reg-set.h: Ditto.
3517         * hash.c: Ditto.
3518         * integrate.c: Ditto.
3519         * jump.c: Ditto.
3520         * lists.c: Ditto.
3521         * local-alloc.c: Ditto.
3522         * loop.c: Ditto.
3523         * mips-tdump.c: Ditto.
3524         * mips-tfile.c: Ditto.
3525         * optabs.c: Ditto.
3526         * prefix.c: Ditto.
3527         * print-rtl.c: Ditto.
3528         * read-rtl.c: Ditto.
3529         * real.c: Ditto.
3530         * recog.c: Ditto.
3531         * reg-stack.c: Ditto.
3532         * regclass.c: Ditto.
3533         * regmove.c: Ditto.
3534         * reload.c: Ditto.
3535         * reload1.c: Ditto.
3536         * reorg.c: Ditto.
3537         * resource.c: Ditto.
3538         * rtl.c: Ditto.
3539         * rtlanal.c: Ditto.
3540         * scan.c: Ditto.
3541         * sched-deps.c: Ditto.
3542         * sched-rgn.c: Ditto.
3543         * sdbout.c: Ditto.
3544         * simplify-rtx.c: Ditto.
3545         * stmt.c: Ditto.
3546         * stor-layout.c: Ditto.
3547         * toplev.c: Ditto.
3548         * tradcif.y: Ditto.
3549         * tradcpp.c: Ditto.
3550         * tree.c: Ditto.
3551         * unroll.c: Ditto.
3552         * varasm.c: Ditto.
3553         * xcoffout.c: Ditto.
3554
3555 2001-10-10  Richard Henderson  <rth@redhat.com>
3556
3557         * rtl.h (can_reverse_comparison_p): Remove.
3558
3559 2001-10-10  Christopher Faylor <cgf@redhat.com>
3560
3561         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
3562         used.
3563
3564 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3565
3566         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
3567         (Thanks to Chris Faylor for suggesting macro name).
3568         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
3569         WIN32 defines.
3570         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
3571         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
3572         (MATH_LIBRARY): Undef before definition.
3573         (OUTPUT_QUOTED_STRING): Likewise.
3574         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
3575
3576 2001-10-10  Richard Henderson  <rth@redhat.com>
3577
3578         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
3579         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
3580         a tristate comparison value.
3581         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
3582
3583 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3584
3585         PR c++/4512
3586         * unroll.c (loop_iterations): Ignore insns generated by loop
3587         unrolling.
3588
3589         * config.gcc (mips*-*-gnu*): Delete support.
3590         * config/mips/gnu.h: Remove.
3591
3592 2001-10-10  Kazu Hirata  <kazu@hxi.com>
3593
3594         * calls.c: Fix formatting.
3595         * c-decl.c: Likewise.
3596         * cfgcleanup.c: Likewise.
3597         * combine.c: Likewise.
3598         * cppfiles.c: Likewise.
3599         * cpplib.c: Likewise.
3600         * cppmacro.c: Likewise.
3601         * crtstuff.c: Likewise.
3602         * cse.c: Likewise.
3603         * dwarf2out.c: Likewise.
3604         * expmed.c: Likewise.
3605         * expr.c: Likewise.
3606         * fold-const.c: Likewise.
3607         * function.c: Likewise.
3608         * gcse.c: Likewise.
3609         * genattrtab.c: Likewise.
3610         * ggc-page.c: Likewise.
3611         * integrate.c: Likewise.
3612         * libgcc2.c: Likewise.
3613         * loop.c: Likewise.
3614         * optabs.c: Likewise.
3615         * profile.c: Likewise.
3616         * protoize.c: Likewise.
3617         * real.c: Likewise.
3618         * recog.c: Likewise.
3619         * reload1.c: Likewise.
3620         * reload.c: Likewise.
3621         * reorg.c: Likewise.
3622         * resource.c: Likewise.
3623         * sched-rgn.c: Likewise.
3624         * sdbout.c: Likewise.
3625         * stmt.c: Likewise.
3626         * toplev.c: Likewise.
3627         * varasm.c: Likewise.
3628
3629 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
3630
3631         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
3632         * Makefile.in (langhooks.o): Add dependencies.
3633
3634 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
3635
3636         * rs6000.c (rs6000_emit_load_toc_table): Don't
3637         strdup the toc label.
3638         (create_TOC_reference): Likewise.
3639
3640 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3641
3642         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
3643         version default.
3644
3645 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3646
3647         * config/i386/i386.c (ix86_attribute_table): Correct
3648         min_len, max_len fields for dllimport, dllexport and shared.
3649
3650 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
3651
3652         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
3653         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
3654         Consistently use "nonzero" instead of "non-zero".
3655
3656 2001-10-09  Kazu Hirata  <kazu@hxi.com>
3657
3658         * acconfig.h: Fix comment formatting.
3659         * c-dump.h: Likewise.
3660         * c-tree.h: Likewise.
3661         * conditions.h: Likewise.
3662         * expr.h: Likewise.
3663         * function.h: Likewise.
3664         * gthr.h: Likewise.
3665         * hwint.h: Likewise.
3666         * integrate.h: Likewise.
3667         * intl.h: Likewise.
3668         * loop.h: Likewise.
3669         * optabs.h: Likewise.
3670
3671 2001-10-09  Kazu Hirata  <kazu@hxi.com>
3672
3673         * c-common.h: Fix comment formatting.
3674         * c-dump.c: Likewise.
3675         * cfg.c: Likewise.
3676         * diagnostic.h: Likewise.
3677         * except.c: Likewise.
3678         * gcc.h: Likewise.
3679         * gcov-io.h: Likewise.
3680         * genattrtab.c: Likewise.
3681         * output.h: Likewise.
3682         * predict.h: Likewise.
3683         * reload1.c: Likewise.
3684         * reload.h: Likewise.
3685         * resource.h: Likewise.
3686         * scan.h: Likewise.
3687         * system.h: Likewise.
3688         * tree.h: Likewise.
3689         * tree-inline.c: Likewise.
3690         * tsystem.h: Likewise.
3691         * varasm.c: Likewise.
3692         * xcoffout.h: Likewise.
3693
3694 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
3695
3696         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
3697
3698 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
3699
3700         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
3701         config/i386/i386elf.h, config/i386/netbsd-elf.h,
3702         config/i386/netware.h, config/mcore/gfloat.h,
3703         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
3704         config/netware.h, gccbug.in: Update FSF address.
3705
3706 2001-10-09  Kazu Hirata  <kazu@hxi.com>
3707
3708         * c-common.c: Fix comment typos.
3709         * cfgrtl.c: Likewise.
3710         * collect2.c: Likewise.
3711         * cpplex.c: Likewise.
3712         * doloop.c: Likewise.
3713         * dwarf2out.c: Likewise.
3714         * dwarfout.c: Likewise.
3715         * expr.c: Likewise.
3716         * fold-const.c: Likewise.
3717         * gcc.c: Likewise.
3718         * gcov.c: Likewise.
3719         * gcse.c: Likewise.
3720         * global.c: Likewise.
3721         * ifcvt.c: Likewise.
3722         * loop.c: Likewise.
3723         * optabs.c: Likewise.
3724         * protoize.c: Likewise.
3725         * regclass.c: Likewise.
3726         * reorg.c: Likewise.
3727         * rtl.h: Likewise.
3728         * stmt.c: Likewise.
3729         * tree.h: Likewise.
3730         * doc/cpp.texi: Likewise.
3731         * doc/c-tree.texi: Likewise.
3732         * doc/extend.texi: Likewise.
3733         * doc/invoke.texi: Likewise.
3734         * doc/objc.texi: Likewise.
3735         * doc/tm.texi: Likewise.
3736
3737 2001-10-08  Richard Henderson  <rth@redhat.com>
3738
3739         * varasm.c (set_named_section_flags): Initialize "declared".
3740
3741 2001-10-08  Robert Lipe  <robertlipe@usa.net>
3742
3743         * varasm.c (struct in_named_entry): Add declared.
3744         (named_section_first_declaration): New function.
3745         (default_elf_asm_named_section): Use it.
3746         * output.h (named_section_first_declaration): New.
3747
3748 2001-10-08  Richard Henderson  <rth@redhat.com>
3749
3750         * i386.md (movsi_xor): Export.
3751         (setcc peep2): Use it when available; add an alternative to
3752         match zero_extendhisi2_and.
3753
3754 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3755
3756         * romp-protos.h (romp_initialize_trampoline): New function.
3757         * romp.c (romp_initialize_trampoline): Likewise.
3758         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
3759         romp_initialize_trampoline.
3760
3761 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3762
3763         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
3764         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3765         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3766         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3767
3768 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3769
3770         * unroll.c (loop_iterations): Extend check for multiple back edges.
3771
3772 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
3773
3774         * langhooks.h: New file.
3775         * Makefile.in (OBJS): Added langhooks.o.
3776         (c-lang.o): Depend on langhooks.h.
3777         (c-common.o): Don't depend on tree-inline.h.
3778         (tree-inline.o): Depend on toplev.h.
3779         (langhooks.o): New rule.
3780         * c-common.c: Don't include tree-inline.h.
3781         (c_mark_lang_decl): Mark argument c as unused.
3782         (c_common_lang_init): Don't initialize hooks here.
3783         * c-lang.c: Include langhooks.h, then override some macros.
3784         (lang_hooks): Initialize with macros in langhooks.h.
3785         (c_init): Don't initialize hooks here.
3786         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
3787         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
3788         * tree-inline.c: Include toplev.h.  Don't define hook variables.
3789         * tree-inline.h: Don't define hook types nor declare hook
3790         variables.  Move macros to...
3791         * langhooks.c: ... new file, as functions.  Adjust all callers.
3792
3793 2001-10-08  Jeffrey A Law  <law@cygnus.com>
3794
3795         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
3796         purge_mem_unchanging_flag on all instructions, not just on those
3797         before NOTE_INSN_FUNCTION_BEG.
3798
3799 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3800
3801         * cppmacro.c (_cpp_create_definition): Leave comments off.
3802
3803         * doc/cpp.texi: Update.
3804
3805 2001-10-08  DJ Delorie  <dj@redhat.com>
3806
3807         * c-decl.c (grokfield): Make sure the only unnamed fields
3808         we're allowing are either structs or unions.
3809         * doc/extend.texi: Add documentation for the unnamed field
3810         extension.
3811
3812 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
3813
3814         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
3815         * configure.in: Use it.
3816         * configure: Regenerated.
3817         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
3818         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
3819
3820 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3821
3822         * cppfiles.c (open_file): Don't mark zero-length files
3823         never-reread here.  Don't output diagnostics here either.
3824         (stack_include_file): Mark them never-reread here.
3825         (_cpp_read_file): Update.
3826
3827 2001-10-08  Richard Henderson  <rth@redhat.com>
3828
3829         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
3830
3831 2001-10-08  Richard Henderson  <rth@redhat.com>
3832
3833         * expr.c (store_expr): When converting a CONST_INT for storage
3834         in a SUBREG, convert it to both SUBREG modes before stripping
3835         the SUBREG.
3836
3837 2001-10-08  Richard Henderson  <rth@redhat.com>
3838
3839         * varasm.c (restore_varasm_status): New.
3840         * function.h: Declare it.
3841         * function.c (pop_function_context_from): Call it.
3842
3843 2001-10-08  Richard Henderson  <rth@redhat.com>
3844
3845         * c-common.h (struct c_lang_decl): Add declared_inline.
3846         * c-tree.h (DECL_DECLARED_INLINE_P): New.
3847         * c-lang.c (c_disregard_inline_limits): Use it.
3848         * c-decl.c (duplicate_decls): Likewise.
3849         (pushdecl, redeclaration_error_message): Likewise.
3850         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
3851         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
3852         Set DECL_INLINE if -finline-functions.
3853         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
3854
3855 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3856
3857         * cppmacro.c (funlike_invocation_p): Move some logic to caller
3858         in enter_macro_context.  Create a padding token in its own context
3859         if necessary when the search for '(' fails.
3860         (enter_macro_context): Update.
3861
3862 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3863
3864         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
3865         genmultilib, toplev.c: Fix spelling errors of "separate" as
3866         "seperate", and corresponding spelling errors of related words.
3867
3868 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3869
3870         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
3871         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
3872         Likewise.
3873         * c-dump.c (dump_option_value_info): Likewise.
3874         * c-format.c (format_length_info, format_char_info,
3875         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
3876         * collect2.c (names): Likewise.
3877         * cppdefault.h (default_include): Likewise.
3878         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
3879         * flow.c (life_analysis): Likewise.
3880         * gcc.c (dir_separator_str, modify_target, option_map,
3881         target_option_translations, spec_list_1, extra_specs_1,
3882         init_spec): Likewise.
3883         * gcov.c (gcov_version_string): Likewise.
3884         * genattr.c (write_units): Likewise.
3885         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
3886         * gengenrtl.c (rtx_definition, defs): Likewise.
3887         * genrecog.c (pred_table): Likewise.
3888         * global.c (global_alloc): Likewise.
3889         * lcm.c (optimize_mode_switching): Likewise.
3890         * local-alloc.c (find_free_reg): Likewise.
3891         * params.h (param_info): Likewise.
3892         * predict.c (predictor_info): Likewise.
3893         * protoize.c (unexpansion_struct): Likewise.
3894         * real.c (bmask): Likewise.
3895         * recog.h (insn_operand_data, insn_data): Likewise.
3896         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
3897         * stmt.c (expand_nl_goto_receiver): Likewise.
3898         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
3899         target_switches, target_options): Likewise.
3900         * tradcif.y (token, tokentab2, yylex): Likewise.
3901         * tree.h (attribute_spec): Likewise.
3902
3903         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
3904         Likewise.
3905         * arc.c (arc_output_function_epilogue): Likewise.
3906         * arm.c (processors, all_cores, all_architectures,
3907         arm_override_options, isr_attribute_arg, isr_attribute_args,
3908         arm_isr_value): Likewise.
3909         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
3910         Likewise.
3911         * c4x.c (c4x_int_reglist): Likewise.
3912         * d30v.c (override_options): Likewise.
3913         * h8300.c (shift_insn): Likewise.
3914         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
3915         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
3916         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
3917         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
3918         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
3919         * i386.h (processor_costs, ix86_cost): Likewise.
3920         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
3921         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
3922         * m68k.c (codes_68881, codes_FPA): Likewise.
3923         * m88k.c (mode_from_align, max_from_align, all_from_align,
3924         best_from_align, m_options): Likewise.
3925         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
3926         * mcore.c (mode_from_align): Likewise.
3927         * mips/elf64.h (UNIQUE_SECTION): Likewise.
3928         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
3929         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
3930         * mips.h (mips_regno_to_class): Likewise.
3931         * ns32k.c (scales): Likewise.
3932         * pa.c (import_string, magic_milli): Likewise.
3933         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
3934         * sparc.c (leaf_reg_remap, sparc_override_options,
3935         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
3936         Likewise.
3937         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
3938
3939 2001-10-07  Dale Johannesen  <dalej@apple.com>
3940
3941         * reload1.c (reload_reg_free_p): Teach register interference
3942         checking that multiple output reloads are emitted in
3943         reverse order.
3944         reload1.c (reload_reg_reaches_end_p):  Ditto.
3945         reload1.c (reloads_conflict):  Ditto.
3946
3947 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3948
3949         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
3950         NULL_TREE inside @code.
3951
3952 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3953
3954         * doc/gcc.texi: Document consistent style of "32-bit",
3955         "Objective-C", and "@code{NULL}".
3956
3957 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
3958
3959         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
3960         (cpp_token_len, cpp_spell_token, cpp_output_token,
3961         _cpp_equiv_tokens): Handle it.
3962         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
3963         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
3964         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
3965         error messages.
3966
3967 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3968
3969         * gcc.c (default_compilers): Remove .ada.
3970
3971 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3972
3973         * doc/cppinternals.texi: Update.
3974
3975 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
3976
3977         * gcc.c (main): Set this_file_error if the appropriate
3978         compiler for a language has not been installed.
3979
3980 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
3981
3982         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
3983
3984 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
3985
3986         * gccbug.in (CATEGORIES): Add ada.
3987
3988 2001-10-05  Catherine Moore  <clm@redhat.com>
3989
3990         * config/stormy16/stormy-abi:  Document abi changes.
3991         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
3992         (ICALL_REGS): New register class.
3993         (NUM_ARGUMENT_REGISTERS): Now 6.
3994         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
3995         in registers.
3996         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
3997         * config/stormy16.md (call_internal, call_value_internal,
3998         indirect_jump): Use new 'z' constraint.
3999
4000 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4001
4002         * doc/cppinternals.texi: Update.
4003
4004 2001-10-05  Richard Henderson  <rth@redhat.com>
4005
4006         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
4007         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
4008         the gas section-name-as-label feature.
4009
4010 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4011
4012         * doc/cppinternals.texi: Update.
4013
4014 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4015
4016         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
4017         to ensure valid SImode constants.
4018
4019 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
4020
4021         * Makefile.in (c-decl.o): Depend on tree-inline.h.
4022         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
4023         * c-decl.c: Include tree-inline.h.
4024         (c_expand_body): Call optimize_inline_calls. Determine whether
4025         a function is inlinable upfront, and only clear
4026         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
4027         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
4028         (c_disregard_inline_limits): New function.
4029         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
4030         (c_post_options): Enable tree inlining if inlining is enabled.
4031         Don't inline trees when instrumenting functions.
4032         (c_init): Initialize lang_disregard_inline_limits and
4033         lang_cannot_inline_tree_fn.
4034         * tree-inline.c (initialize_inlined_parameters): Handle calls
4035         with fewer arguments than declared parameters, and fewer
4036         parameters than passed arguments.  Don't assume value is a
4037         DECL.
4038         (declare_return_variable): Convert return value back to the
4039         original type, if it was promoted.
4040         (tree_inlinable_function_p): New function.
4041         (inlinable_function_p): Don't look at DECL_INLINE if we're
4042         inlining all functions.  Make it work with a NULL id.
4043         Re-check DECL_UNINLINABLE after language-specific checks.
4044         * tree-inline.h (tree_inlinable_function_p): Declare it.
4045         * integrate.c (save_for_inline): Don't bother to prepare argvec
4046         when not inlining.
4047         * cse.c (check_for_label_ref): Don't check deleted labels.
4048
4049         * Makefile.in (tree-inline.o): Depend on newly-included headers.
4050         * tree-inline.c: Include headers needed for the functions moved in.
4051         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
4052         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
4053         (copy_body, initialize_inlined_parameters): Likewise.
4054         (declare_return_variable, inlinable_function_p): Likewise.
4055         (expand_call_inline, expand_calls_inline): Likewise.
4056         (optimize_inline_calls, clone_body): Likewise.
4057         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
4058         (copy_tree_r, remap_save_expr): Likewise.
4059
4060 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
4061
4062         * Makefile.in (OBJS): Added tree-inline.o.
4063         (c-common.o): Depend on tree-inline.h.
4064         (tree-inline.o): New target.
4065         * c-common.c: Include tree-inline.h.
4066         (c_mark_lang_decl): Don't mark saved_tree.
4067         (c_common_lang_init): Set lang_anon_aggr_type_p.
4068         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
4069         (struct c_lang_decl): Moved saved_tree to tree_decl.
4070         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
4071         * integrate.h (function_attribute_inlinable_p): Declare it.
4072         * integrate.c (function_attribute_inlinable_p): Export it.
4073         * tree-inline.c: New file.  Define variables declared in...
4074         * tree-inline.h: New file.  Declare functions to be moved to
4075         tree-inline.c.  Define macros and declare types and hooks for
4076         language-specific tree inlining.
4077         (flag_inline_trees): Moved definition from cp/decl2.c.
4078         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
4079         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
4080         (struct tree_decl): Moved saved_tree from c_lang_decl and
4081         inlined_fns from C++'s lang_decl.
4082
4083 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
4084
4085         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
4086         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
4087
4088 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4089
4090         * doc/cppinternals.texi: Update.
4091
4092 2001-10-04  Eric Christopher  <echristo@redhat.com>
4093
4094         * config/mips/mips.c (init_cumulative_args): Remember to set
4095         cum->prototype.
4096         * config.gcc: Redo linux configuration. Add target_cpu_default
4097         of soft-float to all mipsisa32 combinations and tx39.
4098         * config/mips/linux.h: Remove include of mips.h.
4099
4100 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
4101
4102         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
4103         HOST_LDFLAGS and HOST_CPPFLAGS.
4104
4105 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
4106
4107         * c-parse.in (objc_inherit_code, objc_pq_context,
4108         objc_public_flag): Make static.
4109         (objc_interface_context, objc_implementation_context,
4110         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
4111         global tree array in objc/objc-act.[ch].
4112         (methoddef): Remove unnecessary code.
4113
4114         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
4115         Hoist struct definitions to objc-act.h.
4116         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
4117         cat_count): Place declaration in objc-act.h.
4118         (objc_tree_index): Move enumeration to objc-act.h.
4119         (objc_global_trees): Place declaration and macro accessors in
4120         objc-act.h.
4121         (implementation_context): Remove duplicate; use
4122         objc_implementation_context instead:
4123         (method_context): Remove duplicate; use objc_method_context
4124         instead.
4125         (objc_ellipsis_node, objc_method_prototype_template,
4126         implemented_classes, function_type): Move global vars to
4127         objc_global_trees.
4128         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
4129         (build_message_expr): Move actual construction of ObjC message
4130         send nodes to finish_message_expr.
4131         (finish_message_expr): New routine, contains code formerly in
4132         build_message_expr.
4133         * objc/objc-act.h (finish_message_expr): New prototype.
4134         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
4135         declarations; these vars are now part of objc_global_trees.
4136         (objc_tree_index, objc_global_trees): Move definitions from
4137         objc-act.c.
4138         * objc/objc-tree.def: Update copyright info.
4139
4140 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
4141
4142         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
4143         op is NULL.
4144         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
4145         only if TARGET_ARCH64.
4146
4147 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
4148
4149         * doc/extend.texi: Fix some problems with previous checkin.
4150         * doc/invoke.texi: Likewise.
4151
4152 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
4153
4154         * cpphash.h: Update comments.
4155         (cpp_context): Update.
4156         (spec_nodes): Remove n__Pragma.
4157         * cppinit.c (cpp_create_reader): Update.
4158         (builtin_array): Add _Pragma.
4159         * cpplib.h: Update comments.
4160         (NODE_DISABLED, BT_PRAGMA): New.
4161         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
4162         * cppmacro.c (struct cpp_macro): Remove disabled.
4163         (builtin_macro): Return int, handle _Pragma, push the new token
4164         on the context stack.
4165         (funlike_invocation_p): Unconstify, update.
4166         (enter_macro_context): Handle builtins here.
4167         (replace_args, push_token_context, push_ptoken_context):
4168         Update for prototype changes.
4169         (_cpp_pop_context): Update.
4170         (cpp_get_token): Don't handle buitins, nor _Pragma here.
4171         (cpp_sys_macro_p): Update.
4172         (_cpp_free_definition): Clear disabled flag.
4173         (_cpp_create_definition): Upate.
4174         * cppmain.c: Update comments.
4175
4176 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
4177                                 Andreas Jaeger <aj@suse.de>,
4178                                 Jan Hubicka    <jh@suse.cz>
4179
4180         * doc/invoke.texi (i386 Options): Document x86-64 options.
4181         (i386 and x86-64 Options): Rename i386 options section.
4182
4183         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
4184         (TARGET_SWITCHES): Add -munwind-info.
4185         (MASK_NO_UNWIND_INFO): New.
4186         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
4187         biarch compilation.
4188         (ASM_OUTPUT_DOUBLE_INT): New.
4189
4190         * config/i386/linux64.h: New spec file for Linux x86-64 support.
4191         * config.gcc: Fix tm_file settings for x86-64.
4192         * config/i386/x86-64.h: New file with OS independent x86-64
4193         definitions.
4194         * config/i386/biarch64.h: New file used to configure compiler
4195         to biarch/64bit compilation.
4196
4197         * config/i386/i386.c: (override_options): Set flags default
4198         for 64bit compilation.
4199
4200 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
4201
4202         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
4203         (ix86_expand_int_movcc): Optimize DImode conditional moves with
4204         constants on x86_64.
4205         (ix86_attr_length_immediate_default): Support MODE_DI.
4206         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
4207         condition.
4208         (indirect_jump, tablejump): Turn into expander.
4209
4210 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4211
4212         * c-common.c (c_format_attribute_table): Make format and
4213         format_arg attributes apply to function types rather than to
4214         decls.
4215         (is_valid_printf_arglist): Construct an attribute list and pass
4216         that to check_function_format rather than a name.
4217         * c-common.h (check_function_format): Adjust prototype.
4218         * c-decl.c (duplicate_decls): Preserve attributes from type of
4219         built-in decl when allowing for harmless conflict in types.
4220         * c-format.c (record_function_format,
4221         record_international_format, function_format_list,
4222         international_format_info, international_format_list): Remove.
4223         (function_format_info): Remove next, name and assembler_name.
4224         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
4225         (decode_format_attr): New.
4226         (handle_format_attribute): Handle receiving a type rather than a
4227         decl.  Call decode_format_attr.  Store format information in a
4228         function_format_info.
4229         (handle_format_arg_attribute): Correct comment.  Handle receiving
4230         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
4231         arg_num.
4232         (check_format_info_recurse, check_format_info_main): Take argument
4233         numbers as unsigned HOST_WIDE_INT.
4234         (check_function_format): Take a list of attributes from the
4235         function type rather than a name or assembler name.  Check for
4236         format attributes in that list and the attributes on the type of
4237         the current function rather than looking through
4238         function_format_list.
4239         (check_format_info): Use unsigned HOST_WIDE_INT for argument
4240         numbers.
4241         (check_format_info_recurse): Take format_arg attributes from the
4242         type of the function calls rather than using
4243         international_format_list.  Allow for multiple format_arg
4244         attributes.
4245         * c-typeck.c (build_function_call): Pass type attributes to
4246         check_function_format rather than name or assembler name.  Don't
4247         require there to be a name or assembler name to check formats.
4248
4249 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4250
4251         * attribs.c (decl_attributes): Possibly call
4252         insert_default_attributes to insert default attributes on
4253         functions in a lazy manner.
4254         * builtin-attrs.def: New file; define the default format and
4255         format_arg attributes.
4256         * c-common.c (c_format_attribute_table): Move to earlier in the
4257         file.
4258         (c_common_nodes_and_builtins): Initialize format_attribute_table.
4259         (enum built_in_attribute, built_in_attributes,
4260         c_attrs_initialized, c_init_attributes,
4261         c_common_insert_default_attributes): New.
4262         (c_common_lang_init): Don't initialize format_attribute_table.  Do
4263         call c_init_attributes.
4264         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
4265         * c-common.h (init_function_format_info): Don't declare.
4266         (c_common_insert_default_attributes): Declare.
4267         * c-decl.c (implicitly_declare, builtin_function): Call
4268         decl_attributes.
4269         (init_decl_processing): Don't call init_function_format_info.
4270         (insert_default_attributes): New.
4271         * c-format.c (handle_format_attribute,
4272         handle_format_arg_attribute): Be quiet about inappropriate
4273         declaration when applying default attributes.
4274         (init_function_format_info): Remove.
4275         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
4276         (insert_default_attributes): Declare.
4277
4278 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4279
4280         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
4281
4282 2001-10-01  Jim Wilson  <wilson@redhat.com>
4283
4284         * sched-deps.c (add_dependence): When elide conditional dependence,
4285         check that insn doesn't modify cond2.
4286
4287 2001-10-01  Dale Johannesen  <dalej@apple.com>
4288
4289         * config/rs6000/rs6000.h (enum processor_type): Add support
4290         for 7400 (G4) and 7450.
4291         (RTX_COSTS): Ditto.
4292         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
4293         (rs6000_issue_rate): Ditto.
4294         (rs6000_adjust_cost): Fix cycle counts for compares.
4295         (debug_stack_info):  Fix an obvious typo.
4296         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
4297         * doc/invoke.texi: Document.
4298         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
4299         for Darwin.
4300         (PROCESSOR_DEFAULT): Ditto.
4301
4302 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
4303
4304         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
4305         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
4306         later recursive make invocation.
4307
4308 2001-10-01  Hans Boehm  <boehm@acm.org>
4309
4310         * optabs.c (emit_libcall_block): When using non-call exceptions,
4311         don't add REG_LIBCALL reg notes to trapping calls.
4312
4313 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
4314
4315         * flow.c (propagate_block_delete_libcall): Remove unused first arg
4316         (propagate_one_insn):  Update for above change
4317
4318 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
4319
4320         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
4321         _Unwind_GetTextRelBase): Argument is unused.
4322
4323 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4324
4325         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
4326         Loop through NOPs, placeholders, and components.
4327         Don't go through NOPs if change mode.
4328         (record_alias_subset): Do nothing if SUBSET and SET are the same.
4329         * emit-rtl.c (set_mem_alias_set): Enable check.
4330         * expr.c (find_placeholder): New function.
4331         (expand_expr, case PLACEHOLDER_EXPR): Use it.
4332         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
4333         to modify it and avoid unneeded copies.
4334         * expr.h (expand_expr): Always define.
4335         (find_placeholder): New declaration.
4336
4337 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4338
4339         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
4340         operand 2 is the stack pointer.
4341         ("addr-peephole"): Fix address computation peephole when operand 2
4342         is the stack pointer.
4343
4344 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4345
4346         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
4347         (ix86_setup_incoming_varargs): Likewise.
4348
4349 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
4350
4351         * stor-layout.c (layout_type): Don't complain about too-large
4352         array here.
4353
4354 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4355
4356         * function.c (keep_stack_depressed): Don't use delete_insn.
4357
4358         * expr.h (set_mem_alias_set): Move decl to here.
4359         * rtl.h (mem_attrs): New typedef and struct.
4360         (union rtunion_def): Add field for mem_attrs.
4361         (X0MEMATTR, MEM_ATTRS): New macros.
4362         (MEM_ALIAS_SET): Use MEM_ATTRS.
4363         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
4364         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
4365         (set_mem_alias_set): Delete decl from here.
4366
4367         * alias.c (set_mem_alias_set): Delete from here.
4368         * emit-rtl.c (mem_attrs_htab): New variable.
4369         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
4370         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
4371         (mem_attrs_mark, get_mem_attrs): Likewise.
4372         (gen_rtx_MEM): Clear MEM_ATTRS.
4373         (set_mem_attributes): Move to here.
4374         (set_mem_alias_set): Likewise, and call get_mem_attrs.
4375         (init_emit_once): const_int_htab now deletable htab.
4376         Initialize mem_attrs_htab.
4377         * explow.c (set_mem_attributes): Delete from here.
4378         * function.c (put_var_into_stack): Clear MEM_ATTRS.
4379         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
4380         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
4381         * reload1.c (reload): Rework changing REG to MEM.
4382
4383 2001-09-30  H.J. Lu <hjl@gnu.org>
4384
4385         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
4386         * config.in: Rebuild.
4387
4388 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4389
4390         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
4391         ("tsthi_1"): Avoid allocation in register y.
4392         ("*movqi_68hc12"): Reorganize and fix constraints.
4393         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
4394         ("addqi3"): Likewise.
4395         ("addhi3"): Fix constraints.
4396         ("*logicalhi3_zexthi"): Disparage soft registers.
4397
4398 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4399
4400         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
4401         to tmp reg.
4402
4403 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4404
4405         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
4406         that we use setjmp/longjmp exceptions.
4407
4408 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
4409
4410         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
4411         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
4412         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
4413         _cpp_pool_alloc, _cpp_next_chunk): Remove.
4414         (_cpp_extend_buff, BUFF_ROOM): Update.
4415         (_cpp_append_extend_buff): New.
4416         (struct cpp_reader): Remove macro_pool, add a_buff.
4417         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
4418         macro_pool.
4419         (cpp_destroy): Free a_buff instead of macro_pool.
4420         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
4421         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
4422         _cpp_pool_alloc, ): Remove.
4423         (parse_number, parse_string): Update use of _cpp_extend_buff.
4424         (_cpp_extend_buff): Update.
4425         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
4426         * cpplib.c (glue_header_name, parse_answer):
4427         Update use of _cpp_extend_buff.
4428         (cpp_register_pragma, cpp_register_pragma_space): Use
4429         _cpp_aligned_alloc.
4430         (do_assert, do_unassert): Check for EOL, update.
4431         * cppmacro.c (stringify_arg, collect_args): Update to use
4432         _cpp_extend_buff and _cpp_append_extend_buff.
4433         (save_parameter, parse_params, alloc_expansion_token,
4434         _cpp_create_definition): Rework memory management.
4435
4436 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
4437
4438         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
4439         update md_exec_prefix.
4440         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
4441         to string constant.
4442
4443 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
4444
4445         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
4446         (SELECT_CC_MODE): Use s390_select_ccmode.
4447         * config/s390/s390-protos.h (s390_select_ccmode): Add.
4448         * config/s390/s390.c (s390_select_ccmode): New.
4449         (s390_match_ccmode): Add CCLmode.
4450         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
4451         (output_branch_condition, output_inverse_branch_condition): Removed.
4452         (print_operand): Use s390_branch_condition_mnemonic.
4453         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
4454         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
4455         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
4456
4457         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
4458         when converting conditional branches to far branches.
4459         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
4460         cmpint_di): Use CCSmode instead of CCUmode.
4461
4462         * config/s390/s390.c (legitimate_la_operand_p): New.
4463         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
4464         * config/s390/s390.md (movsi): Convert load address patterns to
4465         arithmetic operations when necessary.
4466         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
4467         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
4468         (*do_la_reg_0): Don't use before reload.
4469
4470         * config/s390/s390.c (legitimize_address): Make more efficient
4471         use of two-register addressing mode.
4472
4473         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
4474         with -mno-backchain in some corner cases.
4475
4476         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
4477
4478 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
4479
4480         * reload.c (find_reloads): Mark new USE insns with QImode.
4481         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
4482         find_reloads_subreg_address): Likewise.
4483         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
4484         encountered.
4485         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
4486         CLOBBERs.
4487         (reload): Make sure there are no USEs with mode other than
4488         VOIDmode.  At the end, remove those marked with QImode.
4489
4490 2001-09-29  Per Bothner  <per@bothner.com>
4491
4492         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
4493         * Makefile.in (includedir):  Rename to local_includedir.
4494         (includedir):  Define as $(prefix)/include.
4495         * config.in (PREFIX_INCLUDE_DIR):  New variable.
4496         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
4497
4498 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
4499
4500         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
4501         storehps builtins.
4502         * doc/extend.texi (Vector Extensions): New node.
4503         * doc/invoke.texi (Machine Dependent Options): Add documentation for
4504         i386 -mmmx, -msse, -m3dnow.
4505
4506 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
4507
4508         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
4509
4510 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
4511
4512         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
4513
4514         * doc/invoke.texi (Optimize Options): Delete spurious @table.
4515
4516 2001-09-28  Richard Henderson  <rth@redhat.com>
4517
4518         * varasm.c (assemble_integer): Bound alignment check by
4519         BIGGEST_ALIGNMENT.
4520
4521         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
4522
4523 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4524
4525         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
4526
4527 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
4528
4529         Mostly from Graham Stott  <grahams@redhat.com>
4530         * c-common.c (type_for_mode): Add support for V2SFmode.
4531         * tree.c (build_common_tree_nodes_2): Likewise.
4532         * tree.h (enum tree_index, global_trees): Likewise.
4533         * config/i386/i386.c (x86_3dnow_a): New variable.
4534         (override_options): Support 3Dnow extensions.
4535         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
4536         Athlon's version of 3Dnow.
4537         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
4538         (ix86_expand_builtin): Handle them.
4539         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
4540         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
4541         TARGET_3DNOW_A): New macros.
4542         (TARGET_SWITCHES): Add 3Dnow switches.
4543         (VALID_MMX_REG_MODE_3DNOW): New macro.
4544         (VECTOR_MODE_SUPPORTED_P): Use it.
4545         (enum ix86_builtins): Add entries for 3Dnow builtins.
4546         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
4547         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
4548         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
4549         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
4550         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
4551         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
4552         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
4553         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
4554         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
4555         sfence_insn, prefetch): Make these available if TARGET_SSE or
4556         TARGET_3DNOW_A.
4557
4558 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
4559
4560         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
4561         ix86_va_start, ix86_build_va_list): Declare.
4562         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
4563         ix86_va_start, ix86_build_va_list): New global functions.
4564         * i386.md (sse_prologue_save_insn): New insn.
4565         (sse_prologue_save): New expander.
4566         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
4567         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
4568
4569 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4570
4571         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
4572         Use size_t everywhere, make definitions consistent with
4573         prototypes.
4574
4575 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
4576
4577         * gcse.c (replace_store_insn): Use delete_insn.
4578         * loop.c (move_movables): Likewise; avoid delete_insn
4579         from clobbering notes moved elsewhere.
4580         (check_dbra_loop): Use delete_insn.
4581         * ssa.c (convert_from_ssa): Likewise.
4582         * cse.c (cse_insn): Use delete_insn.
4583
4584 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4585
4586         * cpphash.h (struct cpp_buff): Make unsigned.
4587         (_cpp_get_buff): Take length of size_t.
4588         (_cpp_unaligned_alloc): New.
4589         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
4590         (struct cpp_reader): Remove ident_pool.  Add u_buff.
4591         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
4592         (cpp_destroy): Destroy u_buff, not ident_pool.
4593         * cpplex.c (parse_number, parse_string, save_comment,
4594         cpp_token_as_text): Update to use the unaligned buffer.
4595         (new_buff): Make unsigned.
4596         (_cpp_unaligned_alloc): New.
4597         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
4598         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
4599         Similarly.
4600         (collect_args): Make unsigned.
4601
4602 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
4603
4604         * cpplex.c (cpp_output_token): Use a putc loop for
4605         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
4606
4607         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
4608         * configure, config.in: Regenerate.
4609         * system.h: Replace fwrite and fprintf with their unlocked
4610         variants if available.
4611
4612 2001-09-27  Richard Henderson  <rth@redhat.com>
4613
4614         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
4615         in favour of .eh_frame.
4616
4617 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
4618
4619         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
4620         to macros.
4621         (LIBCALL_VALUE): Likewise.
4622
4623 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4624
4625         * cpphash.h: Update comment.
4626         * cpplex.c: Update comments.
4627         (_cpp_can_paste): Remove.
4628         * cpplib.h (_cpp_can_paste): Remove.
4629         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
4630         lexer rather than _cpp_can_paste.
4631
4632 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
4633
4634         * doc/cppinternals.texi: Update.
4635
4636 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4637
4638         * cpphash.h (struct cpp_pool): Remove locks and locked.
4639         (struct cpp_context): Add member buff.
4640         (struct cpp_reader): Remove member argument_pool.
4641         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
4642         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
4643         * cpplex.c (chunk_suitable): Remove pool argument.
4644         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
4645         (new_buff, _cpp_extend_buff): Update.
4646         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
4647         which buffer is returned.
4648         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
4649         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
4650         * cppmacro.c (lock_pools, unlock_pools): Remove.
4651         (push_ptoken_context): Take a _cpp_buff.
4652         (enter_macro_context): Pool locking removed.
4653         (replace_args): Use a _cpp_buff for the replacement list with
4654         arguments replaced.
4655         (push_token_context): Clear buff.
4656         (expand_arg): Use _cpp_pop_context.
4657         (_cpp_pop_context): Free a context's buffer, if any.
4658
4659 2001-09-26  DJ Delorie  <dj@redhat.com>
4660
4661         * c-typeck.c (digest_init): Check for sizeless arrays.
4662
4663 2001-09-26  Richard Henderson  <rth@redhat.com>
4664
4665         * optabs.c (init_one_libfunc): Create a dummy function type
4666         instead of using error_mark_node.
4667
4668 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4669
4670         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
4671         _cpp_extend_buff, _cpp_free_buff): New.
4672         (struct cpp_reader): New member free_buffs.
4673         * cppinit.c (cpp_destroy): Free buffers.
4674         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
4675         _cpp_extend_buff, _cpp_free_buff): New.
4676         * cpplib.h (struct cpp_options): Remove unused member.
4677         * cppmacro.c (collect_args): New.  Combines the old parse_arg
4678         and parse_args.  Use _cpp_buff for memory allocation.
4679         (funlike_invocation_p, replace_args): Update.
4680
4681 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
4682
4683         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
4684
4685 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
4686
4687         * except.c (sjlj_mark_call_sites): Change address inside sequence.
4688
4689 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
4690
4691         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
4692         glibc.
4693
4694 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
4695             Jim Wilson  <wilson@redhat.com>
4696
4697         * doc/install.texi (Specific, ia64-*-linux): Document.
4698
4699 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
4700
4701         * Makefile.in (cfgrtl.o): Add.
4702         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
4703         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
4704         free_aux_for_edge): Declare.
4705         * cfg.c
4706         (HAVE_return): Undefine.
4707         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
4708         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
4709         free_aux_for_edge): New global functions.
4710         (first_delete_block): New static variable.
4711         (init_flow): Clear first_delete_block.
4712         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
4713          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
4714          try_redirect_by_replacing_jump, last_loop_beg_note,
4715          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
4716          delete_insn, delete_insn_chain, create_basic_block_structure,
4717          create_basic_block, flow_delete_block, compute_bb_for_insn,
4718          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
4719          set_block_for_new_insns, split_block, merge_blocks_nomove,
4720          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
4721          redirect_edge_and_branch, force_nonfallthru_and_redirect,
4722          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
4723          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
4724          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
4725          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
4726          purge_all_dead_edges): Move to ....
4727         * cfgrtl.c: New file; .... Here.
4728
4729         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
4730         (reroder_basic_block): Use alloc_aux_for_blocks.
4731         * predict.c (estimate_bb_frequencies): Likewise; use
4732         alloc_aux_for_edges.
4733         * profile.c (compute_branch_probabilities): Likewise.
4734         (branch_prob): Likewise.
4735         * reg-stack.c (reg_to_stack): Likewise.
4736
4737         * emit-rtl.c (emit_insns_after): Never return NULL.
4738
4739         * basic-block.h (set_block_for_new_insns): Delete.
4740         * cfgrtl.c (set_block_for_new_insns): Delete.
4741
4742         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
4743         calls when crossjumping.
4744
4745         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
4746         * unroll.c (copy_loop_body): Use delete_insn.
4747
4748         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
4749         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
4750         keep_stack_depressed): Likewise.
4751         * gcse.c (cprop_cc0_jump): Likewise.
4752         * local-alloc.c (update_equiv_regs): Likewise.
4753         * loop.c (scan_loop, loop_delete_insns): Likewise.
4754         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
4755         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
4756         delete_output_reload, delete_address_reloads_1,
4757         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
4758         Likewise.
4759         * sibcall.c (replace_call_placeholder): Likewise.
4760         * cse.c (cse_insn): Likewise.
4761
4762 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
4763
4764         From Graham Stott  <grahams@redhat.com>
4765         (def_builtin): Only define builtins appropriate for target_flags.  All
4766         callers changed.
4767         (builtin_decsription): Add new field mask which is used to determine
4768         when to define the builtin via the macro def_builtin.
4769
4770         (bdesc_comi): Initialise new mask fields.
4771         (bdesc_2srg): Likewise.
4772         (bdesc_1arg): Likewise.
4773
4774         * config/i386/i386.c (ix86_init_builtins): Correct return type
4775         building v4hi_ftype_v4hi_int_int tree node.
4776         (ix86_expand_sse_comi): Fix typo swapping operands.
4777         Don't swap comparision condition, it is already swapped.
4778         (ix86_expand_sse_compare): Before swapping operands
4779         move operand 1 into new rtx and not the target rtx.
4780         Don't swap comparison condition, it is already swapped.
4781         Always check whether we need to create a new TARGET.
4782
4783         * config/i386/i386.md: (sse_comi) Fix typos.
4784         (sse_ucomi): Likewise.
4785         (cvtss2si): Fix operand 0 contraint.
4786         (cvttss2si): Likewise.
4787         (sse_unpckhps): Fix mode for operand 2.
4788         (sse_unpcklps): Likewise.
4789
4790 2001-09-25  Graham Stott  <grahams@redhat.com>
4791
4792         * sibcall.c (skip_copy_to_return_value): Tighten return value
4793         copy check.
4794
4795 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
4796
4797         * rs6000.c (lwa_operand): Address must be word aligned.
4798
4799 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4800
4801         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
4802         number has been set.
4803         (type_hash_mark): Mark type itself.
4804
4805 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
4806
4807         * c-lex.c (cb_def_pragma): Update.
4808         (c_lex): Update, and skip padding.
4809         * cppexp.c (lex, parse_defined): Update, remove unused variable.
4810         * cpphash.h (struct toklist): Delete.
4811         (union utoken): New.
4812         (struct cpp_context): Update.
4813         (struct cpp_reader): New members eof, avoid_paste.
4814         (_cpp_temp_token): New.
4815         * cppinit.c (cpp_create_reader): Update.
4816         * cpplex.c (_cpp_temp_token): New.
4817         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
4818         (cpp_output_token): Don't print leading whitespace.
4819         (cpp_output_line): Update.
4820         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
4821         do_include_common, do_line, do_ident, do_pragma,
4822         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
4823         parse_assertion): Update.
4824         (get_token_no_padding): New.
4825         * cpplib.h (CPP_PADDING): New.
4826         (AVOID_LPASTE): Delete.
4827         (struct cpp_token): New union member source.
4828         (cpp_get_token): Update.
4829         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
4830         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
4831         replace_args, quote_string, stringify_arg, parse_arg, next_context,
4832         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
4833         _cpp_backup_tokens, _cpp_create_definition): Update.
4834         (push_arg_context): Delete.
4835         (padding_token, push_token_context, push_ptoken_context): New.
4836         (make_string_token, make_number_token): Update, rename.
4837         (cpp_get_token): Update to handle tokens as pointers to const,
4838         and insert padding appropriately.
4839         * cppmain.c (struct printer): New member prev.
4840         (check_multiline_token): Constify.
4841         (do_preprocessing, cb_line_change): Update.
4842         (scan_translation_unit): Update to handle spacing.
4843         * scan-decls.c (get_a_token): New.
4844         (skip_to_closing_brace, scan_decls): Update.
4845         * fix-header.c (read_scan_file): Update.
4846
4847         * doc/cpp.texi: Update.
4848
4849 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4850
4851         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
4852         leak by passing malloc'ed pointer to reconcat, not concat.
4853
4854 2001-09-24  DJ Delorie  <dj@redhat.com>
4855
4856         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
4857
4858 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
4859
4860         * flow.c (delete_dead_jumptables): Delete jumptable if the only
4861         reference is from the literal pool.
4862
4863 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
4864
4865         * doc/install.texi (Final install): Request additional information
4866         in mail about successful builds.
4867
4868 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4869
4870         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
4871         initial value of return pointer register instead of value in frame-20.
4872         Revise comments.
4873
4874 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4875
4876         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
4877         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
4878         the libcall if there isn't a referenced identifier for the symbol.
4879
4880 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4881
4882         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
4883         non 64-bit machines.  Use these as a plabel for the trampoline.
4884         (TRAMPOLINE_SIZE): Adjust size for new words.
4885         (INITIALIZE_TRAMPOLINE): Initialize new words.
4886         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
4887         pointer to the plabel in the trampoline.
4888
4889 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4890
4891         * pa.c (function_arg): Pass floating arguments in both general and
4892         floating registers in indirect (dynamic) calls when generating code
4893         for the 32 bit ABI and the HP assembler.
4894
4895 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4896
4897         * doc/install.texi: Markup fixes.
4898         Use Solaris 2, SunOS 4 as appropriate.
4899         (Specific, *-*-solaris2*): Explain this.
4900         Unconditionally warn against /usr/ucb tools.
4901         Remove Sun as warning, obsolete.
4902         Move X11 header bug workaround here, update patches.
4903         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
4904         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
4905
4906 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
4907
4908         * errors.h (warning, error, fatal, internal_error): Don't mark
4909         with ATTRIBUTE_PRINTF_n.
4910         * toplev.h (internal_error, fatal_io_error, warning, error,
4911         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
4912         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
4913         Likewise.
4914
4915 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4916
4917         * function.c (pop_function_context_from): var_refs_queue
4918         and temp slots now in GC memory.
4919         (mark_function_status, free_after_compilation): Likewise;
4920         also struct function now in GC memory.
4921         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
4922         (combine_temp_slots): Likewise.
4923         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
4924         (prepare_function_start): Use GC memory for struct function.
4925         (mark_temp_slot): Deleted.
4926         (gcc_mark_struct_function): struct function now in GC memory.
4927
4928         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
4929         code for division, not modulus.
4930
4931         * rtl.def (MEM): Remove obsolete part of comment.
4932
4933 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
4934
4935         * c-format.c (init_function_format_info): Check __builtin_printf
4936         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
4937         in gnu89 mode.
4938
4939 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4940
4941         * c-common.c (format_attribute_table): Remove decl.
4942         * tree.h (format_attribute_table, lang_attribute_table): New decls.
4943         (lang_attribute_common): Likewise.
4944
4945         * function.c (fix_lexical_address): Use set_mem_alias_set.
4946         (expand_function_start): Likewise.
4947         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
4948
4949         * varasm.c (output_constant): Fix unused variable warning.
4950
4951         * attribs.c: New file, from c-common.c.
4952         (attribute_tables): Now four elements.
4953         (format_attribute_table, lang_attribute_common): New variables.
4954         (init_attributes): Reflect above changes.
4955         (handle_mode_attribute): Delete check for wider than uintmax.
4956         * c-common.c: Delete parts moved to attribs.c.
4957         (enum attrs): Deleted; unused.
4958         (c_format_attribute_table): New variable.
4959         (c_common_lang_init): Initialize format_attribute_table with it.
4960         * c-common.h (decl_attributes): Remove decl.
4961         * tree.h (decl_attribute): Move it to here.
4962         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
4963         (attribs.o): New rule.
4964
4965 2001-09-22  Andreas Jaeger  <aj@suse.de>
4966
4967         * builtins.c (c_getstr): Remove unused variable.
4968
4969 2001-09-21  Richard Henderson  <rth@redhat.com>
4970
4971         * reload1.c (reload): Use delete_insn instead of splatting
4972         NOTE_INSN_DELETED.
4973
4974 2001-09-21  Richard Henderson  <rth@redhat.com>
4975
4976         * reload.c (push_secondary_reload): Don't check for "=" in output
4977         constraint after ""->ALL_REGS check.
4978
4979 2001-09-21  Richard Henderson  <rth@redhat.com>
4980
4981         * predict.c (expected_value_to_br_prob): Use pc_set.
4982
4983         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
4984         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
4985
4986 2001-09-21  Richard Henderson  <rth@redhat.com>
4987
4988         * rtl.h (LCT_RETURNS_TWICE): New.
4989         * calls.c (emit_call_1): Set current_function_calls_setjmp for
4990         ECF_RETURNS_TWICE.
4991         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
4992         to ECF_RETURNS_TWICE.
4993         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
4994         call to setjmp.
4995
4996         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
4997
4998         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
4999         (JMP_BUF_SIZE): New.
5000
5001 2001-09-21  Richard Henderson  <rth@redhat.com>
5002
5003         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
5004         to R8_REGS.
5005
5006 2001-09-21  Richard Henderson  <rth@redhat.com>
5007
5008         * tree.def (FDESC_EXPR): New.
5009         * expr.c (expand_expr): Handle it.
5010         * varasm.c (initializer_constant_valid_p): Likewise.
5011         (output_constant): Likewise.
5012         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
5013         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
5014         (ASM_OUTPUT_FDESC): New.
5015         * doc/tm.texi: Document the new macros.
5016
5017 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
5018
5019         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
5020         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
5021         once merging is complete.
5022
5023 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5024
5025         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
5026
5027 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
5028
5029         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
5030         that would be invalid after a merge.
5031
5032 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
5033
5034         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
5035         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
5036         remove some labels.
5037         (flow_delete_insn): This one.
5038         (delete_insn_chain): Rename from ...; do not care labels.
5039         (flow_delete_insn_chain): ... this one.
5040         (flow_delete_block): Remove the insns one BB has been expunged.
5041         (merge_blocks_nomove): Likewise.
5042         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
5043         updating BB boundaries.
5044         (tidy_fallthru_edge): Likewise.
5045         (commit_one_edge_insertion): Likewise.
5046         * cfgbuild.c (find_basic_block): Likewise.
5047         (find_basic_blocks_1): Likewise.
5048         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
5049         (try_crossjump_to_edge): Likewise.
5050         (try_optimize_cfg): Likewise.
5051         * cse.c (delete_trivially_dead_insns): Likewise.
5052         * df.c (df_insn_delete): Likewise.
5053         * doloop.c (doloop_modify): Use delete_related_insns.
5054         * emit-rtl.c (try_split): Likewise.
5055         (remove_insn): Update BB boundaries.
5056         * expect.c (connect_post_landing_pads): Use delete_related_insns.
5057         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
5058         updating BB boundaries.
5059         (propagate_block_delete_insn): Likewise.
5060         (propagate_block_delete_libcall): Likewise.
5061         * function.c (delete_handlers): Use delete_related_insns.
5062         (thread_prologue_and_epilogue_insns): Likewise.
5063         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
5064         * genpeep.c (gen_peephole): Use delete_related_insns.
5065         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
5066         BB boundaries.
5067         (find_cond_trap): Likewise.
5068         * integrate.c (save_for_inline): Use delete_related_insns.
5069         (copy_insn_list): Likewise.
5070         * jump.c (pruge_linie_number_notes): Likewise.
5071         (duplicate_loop_exit_test): Likewise.
5072         (delete_computation): Likewise.
5073         (delete_related_insn): Rename from ...; use delete_insn
5074         (delete_insn): ... this one.
5075         (redirect_jump): Use delete_related_insns.
5076         * loop.c (scan_loop): Likewise.
5077         (move_movables): Likewise.
5078         (find_and_verify_loops): Likewise.
5079         (check_dbra_loop): Likewise.
5080         * recog.c (peephole2_optimize): Likewise.
5081         * reg-stack.c (delete_insn_for_stacker): Remove.
5082         (move_for_stack_reg): Use delete_insn.
5083         * regmove.c (combine_stack_adjustments_for_block): Likewise.
5084         * reload1.c (delete_address_reloads): Use delete_related_insns.
5085         (fixup_abnormal_edges): Use delete_insn.
5086         * recog.c (emit_delay_sequence): Use delete_related_insns.
5087         (delete_from-delay_slot): Likewise.
5088         (delete_scheduled_jump): likewise.
5089         (optimize_skip): Likewise.
5090         (try_merge_delay_insns): Likewise.
5091         (full_simple_delay_slots): Likewise.
5092         (fill_slots_from_thread): Likewise.
5093         (relax_delay_slots): Likewise.
5094         (make_return_insns): Likewise.
5095         (dbr_schedule): Likewise.
5096         * rtl.h (delete_insn): Rename to delete_related_insns.
5097         (delete_insn, delete_insn_chain): New prototypes.
5098         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
5099         by df_insn_delete already.
5100         * ssa-dce.c (delete_insn_bb): Use delete_insn.
5101         * ssa.c (convert_from_ssa): Use delete_related_insns.
5102         * unroll.c (unroll_loop): Likewise.
5103         (calculate_giv_inc): Likewise.
5104         (copy_loop_body): Likewise.
5105
5106         * i386-protos.h (ix86_libcall_value, ix86_function_value,
5107         ix86_function_arg_regno_p, ix86_function_arg_boundary,
5108         ix86_return_in_memory, ix86_function_value): Declare.
5109         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
5110         new static valurables.
5111         (x86_64_reg_class): New enum
5112         (x86_64_reg_class_name): New array.
5113         (classify_argument, examine_argument, construct_container,
5114          merge_classes): New static functions.
5115         (optimization_options): Enable flag_omit_frame_pointer and disable
5116         flag_pcc_struct_return on 64bit.
5117         (ix86_libcall_value, ix86_function_value,
5118         ix86_function_arg_regno_p, ix86_function_arg_boundary,
5119         ix86_return_in_memory, ix86_function_value): New global functions.
5120         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
5121         (function_arg_advance): Handle x86_64 passing conventions.
5122         (function_arg): Likewise.
5123         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
5124         (RETURN_IN_MEMORY): Move offline.
5125         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
5126         (FUNCTION_VALUE_REGNO_P): New macro.
5127         (FUNCTION_ARG_REGNO_P): Move offline.
5128         (struct ix86_args): Add maybe_vaarg.
5129         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
5130         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
5131
5132 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
5133
5134         * s390.md: Changed attributes for scheduling.
5135         * s390.c: (s390_adjust_cost, s390_adjust_priority)
5136         Changed scheduling
5137
5138 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
5139
5140         Table-driven attributes.
5141         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
5142         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
5143         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
5144         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
5145         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
5146         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
5147         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
5148         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
5149         * tree.h (struct tree_decl): Change machine_attributes to
5150         attributes.
5151         * doc/c-tree.texi: Document that all attributes are now attached
5152         to decls and types.
5153         * c-common.c (add_attribute, attrtab, attrtab_idx,
5154         default_valid_lang_attribute, valid_lang_attribute): Remove.
5155         (attribute_tables, attributes_initialized,
5156         c_common_attribute_table, default_lang_attribute_table): New
5157         variables.
5158         (handle_packed_attribute, handle_nocommon_attribute,
5159         handle_common_attribute, handle_noreturn_attribute,
5160         handle_unused_attribute, handle_const_attribute,
5161         handle_transparent_union_attribute, handle_constructor_attribute,
5162         handle_destructor_attribute, handle_mode_attribute,
5163         handle_section_attribute, handle_aligned_attribute,
5164         handle_weak_attribute, handle_alias_attribute,
5165         handle_no_instrument_function_attribute,
5166         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
5167         handle_no_limit_stack_attribute, handle_pure_attribute): New
5168         functions.
5169         (init_attributes, decl_attributes): Rewrite to implement
5170         table-driven attributes.
5171         * c-common.h (enum attribute_flags): Move to tree.h.
5172         * c-format.c (decl_handle_format_attribute,
5173         decl_handle_format_arg_attribute): Rename to
5174         handle_format_attribute and handle_format_arg_attribute.  Update
5175         for table-driven attributes.
5176         * c-common.h (decl_handle_format_attribute,
5177         decl_handle_format_arg_attribute): Remove prototypes.
5178         (handle_format_attribute, handle_format_arg_attribute): Add
5179         prototypes.
5180         * c-decl.c (grokdeclarator): Handle attributes nested inside
5181         declarators.
5182         * c-parse.in (setattrs, maybe_setattrs): Remove.
5183         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
5184         Update to handle nested attributes properly.
5185         (maybe_resetattrs, after_type_declarator,
5186         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
5187         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
5188         properly.
5189         (make_pointer_declarator): Update to handle nested attributes
5190         properly.
5191         * doc/extend.texi: Update documentation of limits of attributes
5192         syntax.  Warn about problems with attribute semantics in C++.
5193         * target.h (struct target): Remove valid_decl_attribute and
5194         valid_type_attribute.  Add attribute_table and
5195         function_attribute_inlinable_p.
5196         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
5197         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
5198         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
5199         Add.
5200         (TARGET_INITIALIZER): Update.
5201         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
5202         definition.
5203         (function_attribute_inlinable_p): New function.  Check for the
5204         presence of any machine attributes before using
5205         targetm.function_attribute_inlinable_p.
5206         (function_cannot_inline_p): Update.
5207         * Makefile.in (integrate.o): Update dependencies.
5208         * doc/tm.texi: Update documentation of target attributes and
5209         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
5210         * tree.c (default_valid_attribute_p, valid_machine_attribute):
5211         Remove.
5212         (default_target_attribute_table,
5213         default_function_attribute_inlinable_p): New.
5214         (lookup_attribute): Update comment to clarify handling of multiple
5215         attributes with the same name.
5216         (merge_attributes, attribute_list_contained): Allow multiple
5217         attributes with the same name but different arguments to appear in
5218         the same attribute list.
5219         * tree.h (default_valid_attribute_p): Remove prototype.
5220         (struct attribute_spec): New.
5221         (default_target_attribute_table): Declare.
5222         (enum attribute_flags): Move from c-common.h.  Add
5223         ATTR_FLAG_TYPE_IN_PLACE.
5224         (default_function_attribute_inlinable_p): Declare.
5225         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
5226         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
5227         (TARGET_ATTRIBUTE_TABLE): Define.
5228         (vms_attribute_table): New.
5229         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
5230         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
5231         (TARGET_ATTRIBUTE_TABLE): Define.
5232         (arc_attribute_table, arc_handle_interrupt_attribute): New.
5233         * config/arm/arm.c (arm_valid_type_attribute_p,
5234         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
5235         Remove.
5236         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
5237         define.
5238         (TARGET_ATTRIBUTE_TABLE): Define.
5239         (arm_attribute_table, arm_handle_fndecl_attribute,
5240         arm_handle_isr_attribute): New.
5241         * config/avr/avr.c (avr_valid_type_attribute,
5242         avr_valid_decl_attribute): Remove.
5243         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
5244         define.
5245         (TARGET_ATTRIBUTE_TABLE): Define.
5246         (avr_attribute_table, avr_handle_progmem_attribute,
5247         avr_handle_fndecl_attribute): New.
5248         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
5249         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
5250         (TARGET_ATTRIBUTE_TABLE): Define.
5251         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
5252         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
5253         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
5254         (TARGET_ATTRIBUTE_TABLE): Define.
5255         (h8300_attribute_table, h8300_handle_fndecl_attribute,
5256         h8300_handle_eightbit_data_attribute,
5257         h8300_handle_tiny_data_attribute): New.
5258         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
5259         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
5260         Remove prototypes.
5261         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
5262         declarations.
5263         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
5264         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
5265         define.
5266         (TARGET_ATTRIBUTE_TABLE): Define.
5267         (ix86_attribute_table, ix86_handle_cdecl_attribute,
5268         ix86_handle_regparm_attribute): New.
5269         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
5270         i386_pe_valid_type_attribute_p): Remove.
5271         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
5272         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
5273         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
5274         (TARGET_ATTRIBUTE_TABLE): Define.
5275         (ia64_attribute_table): New.
5276         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
5277         interrupt_ident2, model_ident1, model_ident2): Remove.
5278         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
5279         (TARGET_ATTRIBUTE_TABLE): Define.
5280         (init_idents): Update.
5281         (m32r_attribute_table, m32r_handle_model_attribute): New.
5282         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
5283         Remove.
5284         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
5285         (TARGET_ATTRIBUTE_TABLE): Define.
5286         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
5287         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
5288         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
5289         (TARGET_ATTRIBUTE_TABLE): Define.
5290         (mcore_attribute_table, mcore_handle_naked_attribute): New.
5291         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
5292         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
5293         (TARGET_ATTRIBUTE_TABLE): Define.
5294         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
5295         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
5296         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
5297         (TARGET_ATTRIBUTE_TABLE): Define.
5298         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
5299         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
5300         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
5301         (TARGET_ATTRIBUTE_TABLE): Define.
5302         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
5303         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
5304         New.
5305         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
5306         Remove.
5307         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
5308         (TARGET_ATTRIBUTE_TABLE): Define.
5309         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
5310         New.
5311         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
5312         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
5313         (TARGET_ATTRIBUTE_TABLE): Define.
5314         (v850_attribute_table, v850_handle_interrupt_attribute,
5315         v850_handle_data_area_attribute): New.
5316         * config/v850/v850-c.c (mark_current_function_as_interrupt):
5317         Return void.  Call decl_attributes instead of
5318         valid_machine_attribute.
5319
5320 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
5321
5322         * sh-protos.h (sh_pr_n_sets): Declare.
5323         * sh.c (calc_live_regs): If the initial value for PR has been copied,
5324         look at the copy to determine if PR needs to be saved.
5325         sh_pr_n_sets: New function.
5326         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
5327         (ALLOCATE_INITIAL_VALUE): Define.
5328
5329         * sh.c (initial_elimination_offset):
5330         Fix RETURN_ADDRESS_POINTER_REGNUM case.
5331
5332 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
5333
5334         * integrate.c (allocate_initial_values): New function.
5335         * integrate.h (allocate_initial_values): Declare.
5336         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
5337         here...
5338         * reload1.c (reload): And initialization of reg_equiv_memory_loc
5339         from here...
5340         * toplev.c (rest_of_compilation): To here.
5341         Call allocate_initial_values.
5342         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
5343
5344 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5345
5346         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
5347
5348 2001-09-20  DJ Delorie  <dj@redhat.com>
5349
5350         * c-typeck.c (really_start_incremental_init): Discriminate
5351         between zero-length arrays and flexible arrays.
5352         (push_init_level): Detect zero-length arrays and handle them
5353         like fixed-sized arrays.
5354         * expr.c (store_constructor): Handle zero-length arrays and
5355         flexible arrays correctly.
5356         * doc/extend.texi: Update zero-length array notes.
5357
5358 2001-09-20  Jim Wilson  <wilson@redhat.com>
5359
5360         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
5361         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
5362         for issue port conflicts.
5363         (cycle_end_fill_slots): TYPE_L instructions take two slots.
5364
5365 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
5366
5367         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
5368         on ia64.
5369
5370 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5371
5372         * fold-const.c (hashtab.h): Include.
5373         (int_const_binop): Remove FORSIZE arg and compute from type; all
5374         callers changed.
5375         Call size_int_type_wide for all single-word constants.
5376         (size_htab_hash, size_htab_eq): New functions.
5377         (size_int_type_wide): Rework to use hash table.
5378         * ggc-common.c (hashtab.h): Include.
5379         (struct d_htab_root): New struct.
5380         (d_htab_roots): New variable.
5381         (ggc_add_deletable_htab, ggc_htab_delete): New functions
5382         (ggc_mark_roots): Handle deletable htabs.
5383         * ggc-page.c (ggc_marked_p): New function.
5384         * ggc-simple.c (ggc_marked_p): Likewise.
5385         * ggc.h: Reformatting throughout.
5386         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
5387         * tree.c (init_obstacks): Make type_hash_table a deletable root.
5388         (type_hash_add): Allocate struct type_hash from GC memory.
5389         (mark_hash_entry, mark_type_hash): Deleted.
5390         (type_hash_marked_p, type_hash_mark): New functions.
5391         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
5392
5393 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
5394
5395         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
5396         than SImode.
5397
5398 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5399
5400         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
5401         array-too-large test for signed sizetype.
5402
5403 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
5404
5405         * i386.md (indirect_jump): Allow Pmode operand.
5406         (tablejump): LIkewise; perform expansion to 64bit mode.
5407         * i386.c (symbolic_operand): Allow 64bit PIC references.
5408         (pic_symbolic_operand): Likewise.
5409         (ix86_find_base_term): Strip the 64bit PIC references.
5410         (legitimate_pic_address_disp_p): Handle 64bit PIC.
5411         (legitimize_pic_address): Likewise.
5412         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
5413         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
5414
5415 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
5416
5417         * stringpool.c (get_identifier_with_length): New function.
5418         * tree.h (get_identifier_with_length): New prototype.
5419
5420 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
5421             David Edelsohn  <edelsohn@gnu.org>
5422
5423         Revert:
5424         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
5425         already sign-extended.
5426
5427         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
5428         * config/rs6000/rs6000.c (logical_operand): Always compare op as
5429         HOST_WIDE_INT.
5430         (rs6000_emit_set_long_const): Avoid unnecessary shift.
5431         (output_profile_hook): Declare label_name const.
5432         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
5433         to match constraints.
5434
5435 2001-09-19  Stan Shebs  <shebs@apple.com>
5436
5437         * alias.c: Fix typos in comments.
5438         * sched-rgn.c (init_ready_list): Ditto.
5439         * unwind-dw2.c (uw_frame_state_for): Ditto.
5440         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
5441         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
5442         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
5443
5444 2001-09-19  Richard Henderson  <rth@redhat.com>
5445
5446         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
5447         to the exit block.
5448         * Makefile.in (cfg.o): Depend on TM_P_H.
5449
5450 2001-09-19  Richard Henderson  <rth@redhat.com>
5451
5452         * config/alpha/alpha.c (local_symbol_p): Split out from ...
5453         (local_symbolic_operand): ... here.
5454         (small_symbolic_operand): Check mode.
5455         (global_symbolic_operand): New.
5456         (input_operand): Reject symbolics if explicit relocs.
5457         (call_operand): Tidy.
5458         (alpha_legitimize_address): Use movdi_er_high_g.
5459         (alpha_expand_mov): Likewise.
5460         * config/alpha/alpha-protos.h: Update.
5461         * config/alpha/alpha.h (PREDICATE_CODES): Update.
5462         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
5463         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
5464         (UNSPECV_LDGP2): Remove.
5465         (all call patterns): Use 's' not 'i' for symbolic constraint.
5466         (call_osf call_value_osf): Use call_operand.
5467         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
5468         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
5469         (prologue_ldgp_1_er): Remove.
5470         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
5471         (builtin_setjmp_receiver_er patterns): Use them.
5472         (exception_receiver_er): Likewise.
5473
5474 2001-09-19  Richard Henderson  <rth@redhat.com>
5475
5476         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
5477
5478         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
5479         and NON_LOCAL_GOTO notes.
5480         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
5481         copy over CALL_INSN_FUNCTION_USAGE.
5482
5483 2001-09-18  Catherine Moore  <clm@redhat.com>
5484
5485         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
5486         Define as 0.
5487
5488 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
5489
5490         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
5491         new-style tm_file specification.  Specify correct tm_p_file,
5492         md_file, and out_file for s390x.
5493
5494         * config/s390/linux.h, linux64.h:  Don't include other target
5495         macro header files.  Now handled via tm_file.
5496
5497         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
5498         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
5499         are defined before use.
5500
5501 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
5502
5503         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
5504         code generation only for Gnu assembler.
5505
5506 2001-09-18  Catherine Moore  <clm@redhat.com>
5507
5508         * config/stormy16 (LIB_SPEC): Remove -lnosys.
5509
5510 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
5511
5512         * config/mips/mips.c (mips_frame_set): New.
5513         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
5514         a parallel frame-related expression with a set for each register.
5515
5516 2001-09-18  Philip Blundell  <philb@gnu.org>
5517
5518         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
5519         header files.
5520
5521 2001-09-17  Dale Johannesen  <dalej@apple.com>
5522
5523         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
5524         * config/rs6000/aix.h (FIXED_R2): Define.
5525         * config/rs6000/darwin.h (FIXED_R2): Define.
5526         * config/rs6000/sysv4.h (FIXED_R2): Define.
5527
5528 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
5529
5530         * except.c (dw2_build_landing_pads): New local
5531         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
5532         barrier after clobbers.  Fixes c++/4012.
5533
5534 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5535
5536         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
5537
5538 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
5539
5540         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
5541         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
5542
5543 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5544
5545         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
5546         alloca/strcpy.
5547
5548 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5549
5550         * cpphash.h (_cpp_lex_direct): New.
5551         * cpplex.c (_cpp_lex_token): Update.
5552         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
5553         and increment that pointer.
5554         * cppmacro.c (alloc_expansion_token): New.
5555         (lex_expansion_token): Lex macro expansion directly into
5556         macro storage.
5557
5558 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
5559
5560         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
5561
5562 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
5563
5564         * basic-block.h (free_bb_for_insn): Declare.
5565         * bb-reorder.c (label_for_bb): Use block_label.
5566         (emit_jump_to_block_after): Remove.
5567         (insert_intra_1): Do not update block_for_insn.
5568         (insert_inter_bb_scope_notes): Likewise; update bb->end
5569         * cfg.c (free_bb_for_insn): New.
5570         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
5571         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
5572         (commit_one_edge_insertion): Likewise.
5573         (commit_one_edge_insertion): Do not update BB boundary.
5574         (commit_edge_insertions): Do not call compute_bb_for_insn.
5575         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
5576         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
5577         (merge_blocks_move_successor_nojumps): Likewise.
5578         (try_crossjump_to_edge): Do not update block_for_insn.
5579         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
5580         * df.c (df_pattern_emit_later): Do not update BB boundary.
5581         (df_jump_pattern_emit_after): Likewise.
5582         (df_insn_move_before): Use emit_insn_before.
5583         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
5584          properly.
5585         (add_insn_after, add_insn_before, emit_insns_after): Update BB
5586         boundaries and basic_block_for_insn.
5587         (reorder_insns_nobb): Rename from reorder_insns.
5588         (reorder_insns): New.
5589         (emit_block_insn_before, emit_block_insn_after): Kill.
5590         * flow.c (check_function_return_warnings): Do not call
5591         compute_bb_for_insn; Do not free basic_block_for_insn.
5592         (attempt_auto_inc): Do not update basic_block_for_insn.
5593         * function.c (emit_return_into_block): Likewise;
5594         do not update BB boundaries.
5595         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
5596         (insert_insn_end_bb): Use emit_insn_before; Likewise.
5597         (pre_insert_copy_insn): Likewise.
5598         (update_ld_motion_notes): Likewise.
5599         (insert_insn_start_bb): Likewise.
5600         (replace_store_insn): Likewise.
5601         * ifcvt.c (noce_process_if_block): Likewise.
5602         (if_convert): Do not call compute_bb_for_insn.
5603         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
5604         Use emit_insn_before and emit_insn_after.
5605         * recog.c (split_all_insns): Do not update BB boundaries;
5606         Do not call compute_bb_for_insn.
5607         (peephole2_optimize): Do not update BB boundaries.
5608         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
5609         emit_insn_before.
5610         (emit_swap_insn): Likewise.
5611         (convert_regs_1): Likewise.
5612         * reload1.c (reload): Call compute_bb_for_insn.
5613         * rtl.h (reorder_insns_nobb): Declare.
5614         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
5615         * toplev.c (rest_of_compilation): Call free_bb_for_insn
5616         at places CFG is invalidated; do not call compute_bb_for_insn.
5617
5618         * cfg.c (expunge_block): Invalidate BB structure.
5619
5620         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
5621         array.
5622
5623         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
5624
5625 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5626
5627         * cpphash.h (_cpp_lex_token): Update prototype.
5628         * cpplex.c (_cpp_lex_token): New prototype.
5629         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
5630         lex_macro_node, read_flag, do_pragma_poison): Update.
5631         * cppmacro.c (cpp_get_token, parse_params,
5632         lex_expansion_token): Update.
5633
5634 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5635
5636         * cppmain.c (scan_translation_unit): Don't worry about
5637         putting a space after hashes.
5638         * cpplib.c (directive_diagnostics): New.
5639         (_cpp_handle_directive): Update to use directive_diagnostics.
5640         (run_directive): Don't toggle prevent_expansion.
5641         (do_line): Backup in case of the line extension.
5642         * cpplib.h (cpp_lexer_pos): Remove.
5643         * cppmacro.c (_cpp_create_definition): Precede a leading #
5644         with whitespace.
5645
5646 2001-09-15  Richard Henderson  <rth@redhat.com>
5647
5648         * c-typeck.c (comptypes): Handle zero-length arrays properly.
5649
5650 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5651
5652         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
5653
5654 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5655
5656         PR preprocessor/3571
5657         * tradcpp.c (handle_directive): Skip non-vertical space.
5658
5659 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5660
5661         * cppmain.c (setup_callbacks): Set line callback only
5662         if outputting preprocessed source.
5663
5664 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5665
5666         * collect2.c (main): Const-ification.
5667         * gcc.c (translate_options, process_command): Use xstrdup in
5668         lieu of xmalloc/strcpy.
5669         (main): Use concat in lieu of xmalloc/strcpy/strcat.
5670
5671 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5672
5673         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
5674         example.
5675
5676 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5677
5678         * scan-decls.c (scan_decls): Fix typo.
5679
5680 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5681
5682         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
5683         Split mlstring_pos into mls_line and mls_col.
5684         * cppinit.c (cpp_create_reader): Initialize line to 1.
5685         (cpp_destroy): Free tokenruns.
5686         (push_include): Don't update lexer_pos.
5687         * cpplex.c (unterminated, parse_string): Update.
5688         (lex_token): Don't update lexer_pos, update.
5689         * cpplib.c (if_stack): Save line instead of line + col.
5690         (start_directive, _cpp_do__Pragma, do_else, do_elif,
5691         push_conditional, _cpp_pop_buffer): Update.
5692         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
5693         (_cpp_create_definition): Update.
5694
5695 2001-09-15  Eric Christopher  <echristo@redhat.com>
5696
5697         * config/mips/abi64.h: Add support for MEABI.
5698
5699 2001-09-15  Eric Christopher  <echristo@redhat.com>
5700
5701         * config/mips/mips.md: Add unspec #2.
5702         (reload_indi): Use.
5703         (reload_outdi): Ditto.
5704         (reload_outsi): Ditto.
5705         (HILO_delay): New.
5706
5707 2001-09-15  Eric Christopher  <echristo@redhat.com>
5708             Jason Eckhardt  <jle@redhat.com>
5709
5710         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
5711         * config/mips/isa32-linux.h: New file.
5712         * config/mips/isa3264.h: Ditto.
5713         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
5714         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
5715         (output_block_mode): Support MEABI.
5716         (function_arg): Ditto. Fix floating point arg passing.
5717         (mips_va_start): Ditto.
5718         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
5719         processors.
5720         (mips_asm_file_start): Add new section to pass abi to gdb.
5721         (function_arg_pass_by_reference): Support MEABI.
5722         (mips_parse_cpu): Support mips32 and mips64 processors.
5723         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
5724         TARGET_MIPS5KC.  Support isa32 and isa64.
5725         (processor_type): Add r4kc, r5kc, r20kc.
5726         (GENERATE_MULT3_SI): New.
5727         (GENERATE_MULT3_DI): Ditto.
5728         (GENERATE_MULT3): Remove.
5729         (ISA_HAS_64BIT_REGS): Add isa == 64.
5730         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
5731         (ISA_HAS_MADD_MSUB): New.
5732         (ISA_HAS_CLZ_CLO): Ditto.
5733         (ISA_HAS_DCLZ_DCLO): Ditto.
5734         (ABI_GAS_ASM_SPEC): New.
5735         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
5736         (ASM_SPEC): Ditto.
5737         (LINK_SPEC): Ditto.
5738         (SUBTARGET_CC1_SPEC): Ditto.
5739         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
5740         (PAD_VARARGS_DOWN): Support MEABI.
5741         (HARD_REGNO_NREGS): Move to mips.c.
5742         (ASM_OUTPUT_IDENT): Add #undef.
5743         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
5744         (mulsi3): Use GENERATE_MULT3_SI.
5745         (mulsi3_mult3): Ditto.  Support mips32, mips64.
5746         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
5747         (mul_sub_si): New pattern.
5748         (unnamed splitters): New.
5749         (muldi3): Use GENERATE_MULT3_DI.
5750         (muldi3_internal2): Ditto.
5751         (movdicc): Support mips32.
5752         * config/mips/t-isa3264: New file.
5753
5754 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
5755
5756         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
5757         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
5758         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
5759
5760         * reorg.c (fill_slots_from_thread): After call to
5761         steal_delay_list_from_target, update own_thread as new_thread may
5762         have branched.
5763
5764 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5765
5766         * cpperror.c (print_location): Take line and column, for
5767         default positioning use the previously lexed token.
5768         (_cpp_begin_message): Take line and column.
5769         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
5770         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
5771         * cpphash.h (_cpp_begin_message): Update prototype.
5772         * cppinit.c (push_include): Don't set output line.
5773         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
5774         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
5775         (do_pragma): Kludge for front ends.  Don't expand macros at all.
5776         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
5777         (struct cpp_token): Remove output_line.
5778         (struct cpp_callbacks): New member line_change.
5779         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
5780         cpp_get_token): Preserve BOL flag.
5781         (cpp_get_line): Remove.
5782         (_cpp_backup_tokens): Remove useless abort().
5783         * cppmain.c (cb_line_change): New.
5784         (scan_translation_unit): Don't worry about starting new lines here.
5785         * scan-decls.c (scan_decls): Update.
5786         * c-lex.c (c_lex, init_c_lex): Update.
5787         (cb_line_change, src_lineno): New.
5788
5789 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
5790
5791         * tree.c (append_random_chars): Generate the random
5792         characters in a reproducable fashion.
5793
5794 2001-09-14  Richard Henderson  <rth@redhat.com>
5795
5796         * config/i386/i386.c (internal_label_prefix): New.
5797         (internal_label_prefix_len): New.
5798         (override_options): Set them.
5799         (local_symbolic_operand): New.
5800         (legitimate_pic_address_disp_p): Use it.
5801         (legitimize_pic_address): Likewise.
5802
5803 2001-09-14  Marc Espie <espie@openbsd.org>
5804
5805         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
5806         correctly.
5807
5808 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
5809
5810         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
5811         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
5812
5813 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
5814
5815         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
5816         invocation of SUBREG_REGNO_OFFSET.
5817
5818         * haifa-sched.c: Fix typo in FSF copyright statement.
5819         * sched-deps.c: Fix typo in FSF copyright statement.
5820         * sched-ebb.c: Fix typo in FSF copyright statement.
5821         * sched-rgn.c: Fix typo in FSF copyright statement.
5822         * sched-vis.c: Fix typo in FSF copyright statement.
5823
5824         * config.gcc: Move inclusion of arm elf specific header files
5825         from the files themselves into the tm_file variable.  Make
5826         sure that elfos.h is included before target specific elf
5827         headers.
5828         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
5829         already defined.
5830         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
5831         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
5832         ASM_OUTPUT_CASE_LABEL): Protect definition.
5833         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
5834         not already defined.
5835         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
5836         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
5837         Remove duplicate definition.
5838         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
5839         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
5840         (RDATA_SECTION_FUNCTION): Remove redundant definition.
5841         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
5842         Remove inclusion of arm/elf.h.
5843         * config/arm/unknown-elf.h: as for conix-elf.h.
5844         (STARTFILE_SPEC): Include crti.o and crtn.o.
5845         * config/arm/linux-elf.h: as for conix-elf.h.
5846         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
5847         * config/arm/strongarm-elf.h: Remove inclusion of
5848         unknown-elf.h.
5849         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
5850         * config/arm/unknown-elf-oabi.h: Remove inclusion of
5851         unknown-elf.h and elf.h.
5852         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
5853         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
5854         ASM_WEAKEN_LABEL): Remove redundant definition.
5855         * config/arm/elf.h: Test for inclusion of elfos.h
5856         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
5857         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
5858         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
5859         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
5860         redundant definition.
5861         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
5862         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
5863         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
5864         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
5865         Add rules to build crti.o and crtn.o
5866         * crti.asm: New file.
5867         * crtn.asm: New file.
5868
5869 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
5870
5871         * c-parse.in (_yylex): Use _cpp_backup_tokens.
5872         * cpphash.h (struct tokenrun): Add prev.
5873         (struct lexer_state): Remove bol.
5874         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
5875         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
5876         : Remove.
5877         * cppinit.c (cpp_create_reader): Don't set bol.
5878         (cpp_destroy): Don't free lookaheads.
5879         * cpplex.c (lex_directive): Remove.
5880         (next_tokenrun): Update.
5881         (_cpp_lex_token): Clean up logic.
5882         (lex_token): Update to return a pointer to lexed token, since it
5883         can move to the start of the buffer.  Simpify newline handling.
5884         * cpplib.c (SEEN_EOL): Update.
5885         (skip_rest_of_line): Remove lookahead stuff.
5886         (end_directive): Line numbers are already incremented.  Revert
5887         to start of lexed token buffer if we can.
5888         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
5889         parse_answer): Use _cpp_backup_tokens.
5890         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
5891         instead.  Don't check for EOL.
5892         (do_include_common, do_line, do_pragma_system_header): Use
5893         skip_rest_of_line.
5894         * cpplib.h (BOL, _cpp_backup_tokens): New.
5895         * cppmacro.c (save_lookahead_token, take_lookahead_token,
5896         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
5897         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
5898         (builtin_macro): Don't use cpp_get_line.
5899         (cpp_get_line): Short term kludge.
5900         (parse_arg): Handle directives in arguments here.  Back up when
5901         appropriate.  Store EOF at end of argument list.
5902         (funlike_invocation_p): Use _cpp_backup_tokens.
5903         (push_arg_context): Account for EOF at end of list.
5904         (cpp_get_token): Remove lookahead stuff.  Update.
5905
5906 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5907
5908         * c-parse.in (yyerror): Const-ification and/or static-ization.
5909         * c-typeck.c (push_member_name): Likewise.
5910         * collect2.c (main): Likewise.
5911         * dbxout.c (dbxout_parms): Likewise.
5912         * diagnostic.c (format_with_decl): Likewise.
5913         * dwarf2out.c (output_ranges): Likewise.
5914         * dwarfout.c (fundamental_type_code): Likewise.
5915         * except.c (dw2_output_call_site_table): Likewise.
5916         * gcc.c (do_spec_1): Likewise.
5917         * genopinit.c (optabs): Likewise.
5918         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
5919         gen_declaration_1, handle_impent): Likewise.
5920         * protoize.c (default_include, in_system_include_dir, abspath):
5921         Likewise.
5922         * sched-vis.c (visualize_stall_cycles): Likewise.
5923         * sdbout.c (plain_type_1, sdbout_end_function,
5924         sdbout_end_epilogue): Likewise.
5925         * varasm.c (decode_reg_name): Likewise.
5926
5927         * 1750a.c (mod_regno_adjust): Likewise.
5928         * alpha.c (alpha_write_one_linkage,
5929         unicosmk_output_default_externs): Likewise.
5930         * arm.c (arm_condition_codes): Likewise.
5931         * arm.h (arm_condition_codes): Likewise.
5932         * avr.c (output_movsisf, encode_section_info): Likewise.
5933         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
5934         Likewise.
5935         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
5936         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
5937         * m88k.c (output_function_profiler): Likewise.
5938         * mips.c (mips_output_conditional_branch): Likewise.
5939         * ns32k.c (ns32k_out_reg_names): Likewise.
5940         * ns32k.h (ns32k_out_reg_names): Likewise.
5941         * pj.c (pj_output_rval): Likewise.
5942         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
5943         * sparc.c (sparc_flat_function_prologue,
5944         sparc_flat_function_epilogue): Likewise.
5945
5946 2001-09-13  Markus Werle <numerical.simulation@web.de>
5947             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5948
5949         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
5950         Aachen University of Technology".
5951
5952 2001-09-13  Andreas Schwab  <schwab@suse.de>
5953
5954         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
5955         C99.
5956
5957 2001-09-13  Richard Henderson  <rth@redhat.com>
5958
5959         * config/alpha/alpha.c (small_symbolic_operand): New.
5960         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
5961         (some_operand, input_operand): Don't handle HIGH.
5962         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
5963         (alpha_expand_mov): Likewise.
5964         (print_operand) [H]: Just print HIGH symbol.
5965         (print_operand_address): Handle small data.
5966         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
5967         (TARGET_SWITCHES): Add -msmall-data/large-data.
5968         (PIC_OFFSET_TABLE_REGNUM): New.
5969         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
5970         (PREDICATE_COES): Update.
5971         * config/alpha/alpha.md (adddi_er_high): New.
5972         (adddi_er_low): Handle small data.
5973         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
5974         prefer .sdata to .rodata.
5975         (SELECT_RTX_SECTION): Likewise.
5976
5977 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
5978
5979         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
5980         defining __size_t and leaving size_t undefined.
5981
5982 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
5983
5984         * basic-block.h (expunge_block): Declare.
5985         * cfg.c (expunge_block): Remove static declaration.
5986
5987 2001-09-12  Richard Henderson  <rth@redhat.com>
5988
5989         * integrate.c (copy_insn_list): Copy label name from
5990         NOTE_INSN_DELETED_LABEL.
5991
5992 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5993
5994         * c-common.c (c_tree_code_name): Const-ification.
5995         * c-decl.c (c_decode_option): Likewise.
5996         * c-typeck.c (warn_for_assignment): Likewise.
5997         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
5998         Likewise.
5999         * cppinit.c (output_deps): Likewise.
6000         * dependence.c (dependence_string, direction_string): Likewise.
6001         * dwarf2out.c (output_ranges): Likewise.
6002         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
6003         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
6004         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
6005         standard_startfile_prefix, standard_startfile_prefix_1,
6006         standard_startfile_prefix_2, tooldir_base_prefix,
6007         standard_bindir_prefix, find_a_file): Likewise.
6008         * genattrtab.c (make_length_attrs): Likewise.
6009         * gencheck.c (tree_codes): Likewise.
6010         * genemit.c (gen_split): Likewise.
6011         * genrecog.c (special_mode_pred_table): Likewise.
6012         * graph.c (graph_ext): Likewise.
6013         * protoize (default_include): Likewise.
6014         * reload.c (reload_when_needed_name): Likewise.
6015         * sched-vis.c (visualize_stall_cycles): Likewise.
6016         * tlink.c (recompile_files): Likewise.
6017         * toplev.c (decode_g_option): Likewise.
6018         * tradcpp.c (output_deps): Likewise.
6019         * varasm.c (decode_reg_name): Likewise.
6020
6021         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
6022         Const-ification.
6023         * arm.md: Likewise.
6024         * avr.c (avr_regnames, encode_section_info): Likewise.
6025         * c4x.c (float_reg_names): Likewise.
6026         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
6027         * elfos.h (const_section): Likewise.
6028         * i386.c (ix86_comp_type_attributes): Likewise.
6029         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
6030         * ia64/aix.h (UNIQUE_SECTION): Likewise.
6031         * ia64.c (type_names): Likewise.
6032         * m68hc11.c (reg_class_names): Likewise.
6033         * m88k.c (m_options): Likewise.
6034         * mips.c (mips_output_conditional_branch, mips_unique_section):
6035         Likewise.
6036         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6037         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
6038         ultra_code_names): Likewise.
6039         * sparc.h (OVERRIDE_OPTIONS): Likewise.
6040
6041 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
6042
6043         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
6044         Use --fatal-warnings option for gas.
6045         * configure: Rebuilt.
6046
6047 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6048
6049         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
6050
6051 2001-09-11  Jim Wilson  <wilson@redhat.com>
6052
6053         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
6054
6055 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6056
6057         * builtins.c (c_strlen): Treat an offset too large for a
6058         HOST_WIDE_INT as out of range.
6059
6060 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
6061
6062         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
6063         (EDGE_CRITICAL_P): New predicate.
6064         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
6065         handling.
6066         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
6067         (dump_edge_info): Remove "crit".
6068         * cfganal.c (mark_critical_edges): Kill.
6069         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
6070         * cfgcleanup.c (cleanup_cfg): Likewise.
6071         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
6072         (find_spanning_tree): Likewise.
6073         * reg-stack.c (convert_regs_1): Likewise.
6074         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
6075
6076         * basic-block.h (create_basic_block_structure): New.
6077         (create_basic_block): Update prototype.
6078         (force_nonfallthru): New.
6079         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
6080         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
6081         handle updating of block_for_insn, creating of empty BBs and BBs at
6082         the end of INSN chain.
6083         (create_basic_block): New function.
6084         (split_block): Use create_basic_block.
6085         (force_nonfallthru_and_redirect): Break out from ...; cleanup
6086         (redirect_edge_and_branch_force): ... here.
6087         (force_nonfallthru): New.
6088         (split_edge): Rewrite to use force_nonfallthru and create_block.
6089         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
6090         (find_basic_blocks): Free basic_block_for_insn.
6091         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
6092
6093         * cfg.c: Fix formating.
6094         * cfgcleanup.c: Fix formating.
6095         (merge_blocks, tail_recursion_label_p): Return bool.
6096         (merge_blocks_move_predecessor_nojumps,
6097          merge_blocks_move_successor_nojumps): Return void.
6098
6099 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
6100
6101         * configure.in: Check whether assembler supports section merging.
6102         * config.in: Rebuilt.
6103         * configure: Rebuilt.
6104         * varasm.c (variable_section, output_constant_pool): Pass alignment
6105         to SELECT_SECTION and SELECT_RTX_SECTION.
6106         (mergeable_string_section): New.
6107         (mergeable_constant_section): New.
6108         (default_elf_asm_named_section): Output SECTION_MERGE and
6109         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
6110         * output.h (mergeable_string_section): New.
6111         (mergeable_constant_section): New.
6112         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
6113         * toplev.c (flag_merge_constants): New.
6114         (f_options): Add -fmerge-constants and -fmerge-all-constants
6115         options.
6116         (toplev_main): Default to -fno-merge-constants if not optimizing.
6117         * flags.h (flag_merge_constants): Add extern.
6118         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
6119         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
6120         argument.
6121         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
6122         Define if assembler has working .subsection -1 support.
6123         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
6124         Put constant into special SHF_MERGE sections if the linker should
6125         attempt to merge duplicates.
6126         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
6127         macro argument.
6128         Put constant into special SHF_MERGE sections if the linker should
6129         attempt to merge duplicates.
6130         * config/alpha/elf.h: Likewise.
6131         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
6132         has working .subsection -1 support.
6133         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
6134         SELECT_SECTION.
6135         * config/svr3.h: Likewise.
6136         * config/darwin.h: Likewise.
6137         * config/arm/aof.h: Likewise.
6138         * config/arm/linux-elf.h: Likewise.
6139         * config/avr/avr.h: Likewise.
6140         * config/c4x/c4x.h: Likewise.
6141         * config/d30v/d30v.h: Likewise.
6142         * config/i386/dgux.h: Likewise.
6143         * config/i386/osfrose.h: Likewise.
6144         * config/i386/sco5.h: Likewise.
6145         * config/i386/svr3gas.h: Likewise.
6146         * config/ia64/aix.h: Likewise.
6147         * config/m32r/m32r.h: Likewise.
6148         * config/m68k/m68k.h: Likewise.
6149         * config/m88k/dgux.h: Likewise.
6150         * config/m88k/m88k.h: Likewise.
6151         * config/mcore/mcore-pe.h: Likewise.
6152         * config/mips/mips.h: Likewise.
6153         * config/pa/pa.h: Likewise.
6154         * config/pa/pa-linux.h: Likewise.
6155         * config/romp/romp.h: Likewise.
6156         * config/rs6000/sysv4.h: Likewise.
6157         * config/rs6000/xcoff.h: Likewise.
6158         * config/s390/linux.h: Likewise.
6159         * config/sparc/sparc.h: Likewise.
6160         * config/sparc/sysv4.h: Likewise.
6161         * config/stormy16/stormy16.h: Likewise.
6162         * config/v850/v850.h: Likewise.
6163         * config/vax/vms.h: Likewise.
6164         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
6165         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
6166         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
6167         default_elf_asm_named_section for SHF_MERGE sections.
6168
6169 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
6170
6171         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
6172         is OK.
6173
6174 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
6175
6176         * c-common.c (split_specs_attrs): Allow for empty attributes with
6177         empty TREE_PURPOSE.  Fixes PR c/4294.
6178
6179 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
6180
6181         * basic-block.h (cached_make_edge, make_single_succ): New.
6182         (make_edge): Remove first parameter.
6183         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
6184         * cfg.c (cached_make_edge): Rename from make_edge; return newly
6185         created edge; use obstack allocation.
6186         (make_edge, make_single_succ_edge): New.
6187         (first_removed_edge): New static variable.
6188         (init_flow): Initialize first_removed_edge and n_edges.
6189         (clear_edges): Use remove_edge.
6190         (flow_delete_block): Likewise.
6191         (remove_edge): Add removed edges to the removed edges list.
6192         (split_block, redirect_edge_and_branch_force, split_edge):
6193         Use make_edge.
6194         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
6195         (add_noreturn_fake_exit_edges): Likewise.
6196         (connect_infinite_loops_to_exit): Liekwise.
6197         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
6198         Use cached_make_edge.
6199         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
6200         * profile.c (branch_prob): Update make_edge call.
6201         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6202
6203 2001-09-11  Richard Henderson  <rth@redhat.com>
6204
6205         * config/alpha/alpha.c: Tidy formatting.
6206         (local_symbolic_operand): Verify mode.
6207         (alpha_sa_mask): Ignore unicos for eh_return.
6208         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
6209         * config/alpha/alpha.md (umk divsi patterns): Remove.
6210         (extendsfdf2): Remove unicos check.
6211         (tablejump): Merge vms and unicos code; always use direct set
6212         plus label_ref use.
6213
6214 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6215
6216         * config.gcc (alpha*-*-unicosmk*): New target.
6217
6218         * config/alpha/alpha-protos.h (symbolic_operand,
6219         unicosmk_add_call_info_word, unicosmk_add_extern,
6220         unicosmk_defer_case_vector, unicosmk_unique_section,
6221         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
6222         unicosmk_asm_file_start, unicosmk_asm_file_end,
6223         unicosmk_output_common): Declare.
6224
6225         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
6226         direct_return, function_arg, alpha_va_start, alpha_va_arg,
6227         alpha_does_function_need_gp, alpha_end_function): Support Cray
6228         Unicos/Mk.
6229         (alpha_init_machine_status, alpha_mark_machine_status,
6230         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
6231         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
6232         unicosmk_asm_named_section, unicosmk_insert_attributes,
6233         unicosmk_section_type_flags, symbolic_operand,
6234         unicosmk_output_module_name, unicosmk_output_default_externs,
6235         unicosmk_output_dex, unicosmk_output_externs,
6236         unicosmk_output_addr_vec, unicosmk_ssib_name,
6237         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
6238         unicosmk_asm_file_end, unicosmk_output_common,
6239         unicosmk_section_type_flags, unicosmk_unique_section,
6240         unicosmk_add_call_info_word, unicosmk_text_section,
6241         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
6242         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
6243         unicosmk_dex_count, unicosmk_special_name): New.
6244         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
6245         TARGET_ABI_UNICOSMK.
6246         (get_aligned_mem, alpha_expand_unaligned_load,
6247         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
6248         alpha_expand_unaligned_store_words): Support big-endian mode.
6249         (print_operand): Likewise. New format specifier 't'. Use
6250         TARGET_AS_SLASH_BEFORE_SUFFIX.
6251         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
6252         (alpha_pv_save_size): Update with above change.
6253         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
6254         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
6255         Unicos/Mk.
6256
6257         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
6258         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
6259         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
6260         (EXTRA_CONSTRAINT): New constraint 'U'.
6261         (PREDICATE_CODES): Add symbolic_operand.
6262
6263         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
6264         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
6265         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
6266         (integer division and modulus patterns): Split in default and
6267         Unicos/Mk versions.
6268         (*divmodsi_internal, *divmoddi_internal): Disable for
6269         TARGET_ABI_UNICOSMK.
6270         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
6271         little-endian and big-endian versions.
6272         (ext, ins, msk): Likewise.
6273         (extv, extzv, insv): Support big-endian mode.
6274         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
6275         (call_umk, call_value_umk, *call_umk, tablejump_umk,
6276         *tablejump_umk_internal, *call_value_umk): New.
6277         (*movdi_nofix): Add pattern for loading an address into a register on
6278         TARGET_ABI_UNICOSMK.
6279         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
6280         (umk_mismatch_args, arg_home_umk): New.
6281         (various insns): Don't use mov, fmov, nop, fnop and unop.
6282         (realign): Support TARGET_ABI_UNICOSMK.
6283
6284         * config/alpha/unicosmk.h: New file.
6285         * config/alpha/t-unicosmk: New file.
6286
6287         * fixinc/inclhack.def (unicosmk_restrict): New.
6288         * fixinc/fixincl.x: Regenerate.
6289
6290         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
6291         (wchar_t): Check for and define __WCHAR_T__.
6292
6293 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
6294
6295         * combine.c (simplify_shift_const): Treat shifts by the mode
6296         size as undefined.
6297
6298 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6299
6300         * cpphash.h (struct tokenrun): New.
6301         (struct cpp_context): New member bol.
6302         (struct cpp_reader): New members.
6303         (_cpp_init_tokenrun): New.
6304         * cppinit.c (cpp_create_reader): Set up the token runs.
6305         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
6306         (lex_token): New internalised version of _cpp_lex_token.  Don't
6307         handle directives or the multiple include opimisation here any
6308         more.  Simply lex a token.
6309         * cpplib.c (run_directive): Clear bol.
6310         (_cpp_pop_buffer): Set bol.
6311         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
6312         arguments.
6313
6314 2001-09-11  Michael Meissner  <meissner@redhat.com>
6315
6316         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
6317         give an error if the user uses -mfp32.
6318         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
6319         default options.
6320         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
6321         floating point register size.
6322         (EXTRA_SPECS): Add CPP_FPR_SPEC.
6323
6324         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
6325         HOST_WIDE_INT_PRINT_DEC to properly print the result of
6326         int_size_in_bytes.
6327         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
6328         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
6329
6330 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
6331
6332         * dbxout.c (dbxout_parms): Fix typo in comment.
6333         * unroll.c (loop_find_equiv_value): Ditto.
6334         * toplev.c (rest_of_compilation): Ditto.
6335         * loop.c (scan_loop): Ditto.
6336         * dwarf2out.c (struct dw_fde_struct): Ditto.
6337
6338 2001-09-10  Zack Weinberg  <zackw@panix.com>
6339
6340         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
6341         copying identifier when we're just going to throw it away.
6342         (parse_identifier_slow): New routine to handle abnormal cases.
6343         (_cpp_lex_token): Update call site.
6344
6345         * hashtable.c (ht_lookup): Don't assume that the string we've
6346         been given is NUL-terminated.
6347         * system.h: #define __builtin_expect(a, b) to (a) if not
6348         GCC >=3.0.
6349
6350 2001-09-10  Michael Meissner  <meissner@redhat.com>
6351
6352         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
6353         binutils, gdb.
6354
6355 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
6356
6357         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
6358
6359 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6360
6361         * builtins.c (c_getstr): Correct thinko in last change and further
6362         cleanup.
6363
6364 2001-09-10  Tim Freeman <tim@fungibole.com>
6365
6366         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
6367         into varray's and register them as roots with the garbage
6368         collector so they are not collected too soon.
6369
6370 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
6371
6372         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
6373         New.
6374         * basic-block.h (flow_obstack, label_value_list,
6375         tail_recursion_label_list): Declare
6376         (tidy_fallthru_edges): Declare.
6377         (expunge_block, last_loop_beg_note): Delete.
6378         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
6379         * cfg.c: New file
6380         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
6381         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
6382         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
6383         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
6384         expunge_block, flow_delete_block, compute_bb_for_insn,
6385         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
6386         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
6387         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
6388         try_redirect_by_replacing_jump, last_loop_beg_note,
6389         redirect_edge_and_branch, redirect_edge_and_branch_force,
6390         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
6391         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
6392         commit_edge_insertions, dump_flow_info, debug_flow_info,
6393         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
6394         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
6395         Move here from flow.c
6396         * cfganal.c: New file.
6397         (forwarder_block_p, can_fallthru, mark_critical_edges,
6398          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
6399          find_unreachable_blocks, create_edge_list, free_edge_list,
6400          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
6401          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
6402          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
6403          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
6404          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
6405          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
6406         Move here from flow.c
6407         * cfgbuild.c: New file
6408         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
6409          make_edges, find_basic_blocks_1, find_basic_blocks,
6410          find_sub_basic_blocks): Move here from flow.c
6411         * cfgcleanup.c: New file.
6412         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
6413          merge_blocks_move_predecessor_nojumps,
6414          merge_blocks_move_successor_nojumps, merge_blocks,
6415          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
6416          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
6417         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
6418         if succeeded.
6419         * cfgloop.c: New file
6420         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
6421          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
6422          flow_loop_exit_edges_find, flow_loop_nodes_find,
6423          flow_loop_pre_header_scan, flow_loop_pre_header_find,
6424          flow_loop_tree_node_add, flow_loops_tree_build,
6425          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
6426          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
6427         Move here from flow.c
6428         * flow.c: Remove everything moved elsewhere
6429         * output.h (cleanup_cfg): Return bool.
6430
6431         * bb-reorder.c (reorder_block_def): Remove 'index'.
6432         (insert_intra_1): Add argument BB, set block for new note.
6433         (make_reorder_chain): Do not depdent on BB indexes.
6434         (make_reorder_chain_1): Do not use BB indexes.
6435         (label_for_bb): Likewise; set BB for new insn.
6436         (emit_jump_to_block_after): Likewise.
6437         (fixup_reoder_chain): Sanity check that all basic blocks
6438         are chained; verify newly created insn chain; remove
6439         undocnitional jump simplifying; Do not use BB indexes;
6440         properly initialize count and frequency information;
6441         dump reordered sequence.
6442         (insert_intra_bb_scope_notes): update call of insert_intra_1.
6443         (insert_inter_bb_scope_notes): Set block for new insn.
6444         (reorder_basic_blocks): Dump flow info before reoredering.
6445
6446 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6447
6448         * alias.c (clear_reg_alias_info): Use K&R format definition.
6449         Avoid unsigned warning.
6450         * builtins.c: Use "unsigned int", not "unsigned".
6451         (target_char_cast): Use host_integerp and tree_low_cst.
6452         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
6453         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
6454         (c_getstr): Likewise.
6455         (std_expand_builtin_va_arg): Use int_size_in_bytes.
6456         (builtin_memcpy_read_str): Avoid unsigned warning.
6457         (expand_builtin_memcpy): Alignments are unsigned.
6458         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
6459         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
6460         * predict.c (expensive_function_p): LIMIT now unsigned.
6461         * resource.c (mark_target_live_regs): Make some vars unsigned.
6462         * sdbout.c: Use "unsigned int", not "unsigned".
6463         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
6464         (sdbout_source_line): Likewise.
6465         (sdbout_record_type_name): Remove "const" for NAME declaration.
6466         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
6467
6468 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
6469
6470         * calls.c (store_one_arg): Expand comment.
6471
6472 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6473
6474         * calls.c (store_one_arg): Make sure that the entire argument is
6475         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
6476
6477 2001-09-09  Richard Henderson  <rth@redhat.com>
6478
6479         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
6480
6481 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
6482
6483         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
6484
6485 2001-09-09  Richard Henderson  <rth@redhat.com>
6486
6487         * config/alpha/alpha.c (alpha_next_sequence_number): New.
6488         (alpha_this_literal_sequence_number): New.
6489         (alpha_this_gpdisp_sequence_number): New.
6490         (some_operand, input_operand): Add HIGH.
6491         (local_symbolic_operand): New.
6492         (alpha_encode_section_info): New.
6493         (alpha_legitimate_address_p): Allow LO_SUM.
6494         (alpha_legitimize_address): Generate HIGH+LO_SUM.
6495         (alpha_expand_mov): Likewise.
6496         (secondary_reload_class): Check memory_operand not general_operand
6497         for FP_REGS test.
6498         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
6499         (alpha_expand_unaligned_store): Likewise.
6500         (alpha_expand_unaligned_load_words): Likewise.
6501         (alpha_expand_unaligned_store_words): Likewise.
6502         (alpha_expand_block_clear): Likewise.
6503         (print_operand): Handle %#, %*, %H.
6504         (print_operand_address): Handle LO_SUM.
6505         (find_lo_sum): New.
6506         (alpha_does_function_need_gp): Use it.
6507         (alpha_expand_block_move): Fix signed compare warnings.
6508         (alpha_sa_mask, alpha_align_insns): Likewise.
6509         * config/alpha/alpha-protos.h: Update.
6510         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
6511         (MASK_EXPLICIT_RELOCS): New.
6512         (TARGET_SWITCHES): Add -mexplicit-relocs.
6513         (EXTRA_CONSTRAINT): Add 'T'.
6514         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
6515         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
6516         (ENCODE_SECTION_INFO): Out line.
6517         (REDO_SECTION_INFO_P): New.
6518         (STRIP_NAME_ENCODING): New.
6519         (ASM_OUTPUT_LABELREF): New.
6520         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
6521         (PREDICATE_CODES): Update.
6522         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
6523         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
6524         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
6525         builtin_setjmp_receiver_er, exception_receiver_1_er,
6526         call_value_osf_1_er): New patterns.
6527         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
6528         (movqi, movhi, movsi): Add explicit $31 base register to lda.
6529         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
6530         (FINAL_PRESCAN_INSN): New.
6531
6532 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
6533
6534         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
6535
6536 2001-09-08  Andreas Jaeger  <aj@suse.de>
6537
6538         * i386.h (TARGET_SWITCHES): Fix description.
6539
6540 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
6541
6542         * rs6000.c (num_insns_constant): Compute number of instructions
6543         more accurately.
6544
6545         * doc/install.texi: Explain AIX exception handling work-around.
6546         Update URL for AIX fixes.
6547
6548 2001-09-07  Jim Wilson  <wilson@redhat.com>
6549
6550         * alias.c (clear_reg_alias_info): New.
6551         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
6552         * rtl.h (clear_reg_alias_info): Declare.
6553
6554 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6555
6556         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
6557         available.
6558         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
6559         (m16m,edivm,emulm): Change declaration to match definition.
6560
6561 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
6562
6563         * reload.c (push_reload): Check for subreg_lowpart_p instead of
6564         SUBREG_BYTE being 0 when determining if the inner part of a subreg
6565         can be reloaded.
6566
6567 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6568
6569         * c-common.c (signed_or_unsigned_type): Handle machine mode types
6570         which have no corresponding C type.
6571         * fold_const.c (target_isinf,target_isnan,target_negative): Update
6572         the representation of 64-bit doubles to work with 64-bit ints.
6573
6574 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
6575
6576         * config/mips/mips.c (override_options): Do not override ISA when ABI
6577         specified if MIPS_CPU_STRING_DEFAULT was specified.
6578
6579 2001-09-07  Richard Henderson  <rth@redhat.com>
6580
6581         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
6582         (express_from_1): Wrap lines.
6583         * rtlanal.c (commutative_operand_precedence): Rename from
6584         operand_preference; export.
6585         * rtl.h: Declare it.
6586         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
6587         (simplify_binary_operation): Invoke simplify_plus_minus on
6588         (CONST (PLUS ...)) as well.
6589         (struct simplify_plus_minus_op_data): New.
6590         (simplify_plus_minus_op_data_cmp): New.
6591         (simplify_plus_minus): Use them.  Avoid infinite recursion with
6592         simplify_binary_operation wrt CONST.
6593
6594 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
6595
6596         * h8300-protos.h (general_operand_dst_push): Remove.
6597         * h8300.c (general_operand_dst_push): Likewise.
6598         * h8300.h (OK_FOR_T): Likewise.
6599         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
6600         * h8300.md (pushqi_h8300): New.
6601         (pushqi_h8300hs): Likewise.
6602         (pushqi): Likewise.
6603         (pushhi_h8300): Likewise.
6604         (pushhi_h8300hs): Likewise.
6605         (pushhi): Likewise.
6606
6607 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6608
6609         * genattrtab.c (attr_printf): First arg is unsigned.
6610         Clean up formatting of callers.
6611
6612 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
6613
6614         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
6615         registers.
6616
6617 2001-09-07  Andreas Jaeger  <aj@suse.de>
6618
6619         * i386.h (TARGET_SWITCHES): Fix descriptions.
6620
6621 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6622
6623         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
6624
6625 2001-09-06  Ira Ruben  <ira@apple.com>
6626
6627         Remove OP_IDENTIFIER.
6628         * tree.def (OP_IDENTIFIER): Remove.
6629         * tree.c (tree_node_kind enum): Remove op_id_kind.
6630         (tree_node_kind_names): Remove "op_identifiers".
6631         (make_node): Remove OP_IDENTIFIER test.
6632         (build_op_identifier): Removed because it isn't being used.
6633         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
6634         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
6635
6636 2001-09-06  Richard Henderson  <rth@redhat.com>
6637
6638         * simplify-rtx.c (simplify_binary_operation): Revert last change.
6639
6640 2001-09-06  Richard Henderson  <rth@redhat.com>
6641
6642         * simplify-rtx.c (simplify_binary_operation): Simplify contents
6643         of CONST.
6644
6645 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6646
6647         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
6648         number used for CR register.
6649
6650 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
6651                           Joern Rennecke (amylaar@cygnus.com)
6652
6653         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
6654         * h8300.c (initial_offset): Handle offset between RP and FP.
6655         (h8300_return_addr_rtx): New function.
6656         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
6657         return register.
6658         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
6659         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
6660         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
6661         (CAN_ELIMINATE, REGISTER_NAMES):
6662         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
6663
6664 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
6665
6666         Remove TYPE_NONCOPIED_PARTS.
6667         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
6668         (struct tree_type): Remove noncopied_parts.
6669         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
6670         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
6671         (fixed_type_p): Remove.
6672         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
6673         (expand_expr, MODIFY_EXPR): Likewise.
6674         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
6675         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
6676
6677 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
6678
6679         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
6680         compiler warnings.
6681         (mask64_operand): Likewise.
6682         (includes_rldic_lshift_p): Likewise.
6683         (includes_rldicr_lshift_p): Likewise.
6684
6685 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
6686
6687         * objc/objc-act.c (build_message_expr): If a class method cannot
6688         be found, do not issue a warning if a corresponding instance
6689         method exists in the root class.
6690
6691 2001-09-05  Richard Henderson  <rth@redhat.com>
6692
6693         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
6694
6695 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
6696
6697         * function.c (ggc_mark_struct_function): Mark f->outer.
6698         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
6699         * integrate.c (output_inline_function): ... not here.
6700
6701 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
6702
6703         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
6704
6705         * i386.c (size_cost): New static variable.
6706         (override_function): Use size_cost when -Os is specified.
6707
6708         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
6709         properly;  Use current_function_calls_eh_return.
6710         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
6711         use leave to avoid dependency chain.
6712
6713         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
6714         get BB loop_depth instead of computing it from LOOP notes.
6715
6716         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
6717
6718 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6719
6720         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6721         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
6722         UNALIGNED_DOUBLE_INT_ASM_OP): Define
6723
6724 2001-09-05  Jeffrey A Law  (law@cygnus.com)
6725             Jason Merrill (jason@redhat.com)
6726
6727         * stor-layout.c (layout_type): Complain if an array's size can
6728         not be represented in a size_t.
6729
6730         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
6731
6732 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
6733
6734         * gcc.c: (process_command) Add parentheses around assignment
6735         used as truth value.
6736
6737 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
6738
6739         * config/mips/mips.c (save_restore_insns): Don't mark any register
6740         save slots as unchanging if current_function_calls_eh_return.
6741
6742 2001-09-05  Richard Henderson  <rth@redhat.com>
6743
6744         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
6745         * config/alpha/alpha-protos.h: Declare it.
6746         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
6747         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
6748         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
6749         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
6750         (REG_OK_FOR_BASE_P): Select one of the above.
6751
6752 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
6753
6754         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
6755         (crti.o): Prefix name of object file with $(T).
6756         (crtn.o): Likewise.
6757
6758 2001-09-05  David S. Miller  <davem@redhat.com>
6759
6760         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
6761         * config/sparc/linux64.h: Likewise.
6762
6763 2001-09-05  Andreas Jaeger  <aj@suse.de>
6764
6765         * doc/invoke.texi (i386 Options): -mwide-multiply is not
6766         available anymore, remove the documentation.
6767         (i386 Options): Fix typo, cleanup index entries.
6768
6769         * prefix.c (concat): Remove, we can use the version from liberty.
6770
6771 2001-09-05  Richard Henderson  <rth@redhat.com>
6772
6773         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
6774         New functions split out of md file expanders.
6775         * config/alpha/alpha-protos.h: Declare them.
6776         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
6777
6778 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6779
6780         * cppmacro.c (funlike_invocation_p): No need to restore context.
6781
6782 2001-09-04  Richard Henderson  <rth@redhat.com>
6783
6784         * reload.c (push_reload): Export.
6785         * reload.h (push_reload): Declare it.
6786
6787         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
6788         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
6789         * config/alpha/alpha.c (alpha_legitimize_address): New.
6790         (alpha_legitimize_reload_address): Likewise.
6791         * config/alpha/alpha-protos.h: Declare them.
6792
6793 2001-09-04  Stan Shebs  <shebs@apple.com>
6794
6795         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
6796         * config/darwin.c (machopic_stub_name): Account for internally
6797         generated lib calls such as memcpy.
6798
6799 2001-09-04  Richard Henderson  <rth@redhat.com>
6800
6801         * unwind.h (_UA_END_OF_STACK): New flag.
6802         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
6803
6804 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
6805
6806         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
6807
6808 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
6809
6810         * config/mips/mips.c (save_restore_insns): Change base_offset to
6811         fp_offset in second call to mips_emit_frame_related_store.
6812
6813 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
6814
6815         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
6816         sometimes be represented as a NOTE of type
6817         NOTE_INSN_DELETED_LABEL.
6818         (Insns): Document NOTE_INSN_DELETED_LABEL.
6819
6820 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
6821
6822         * c-common.h (tree_dump_index): Add more comments.
6823         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
6824         (dump_option_value_info): New struct.
6825         (dump_options): New array.
6826         (dump_switch_p): Parse switch options symbolically.
6827         * doc/invoke.texi (-fdump-ast): Rename to ...
6828         (-fdump-tree): ... here. Document that options are symbolic, and
6829         not all are applicable.
6830
6831 2001-09-04  David S. Miller  <davem@redhat.com>
6832
6833         * config/sparc/sparc.md (define_splits): Kill constraints.
6834
6835         Cleanup redundant and unused insn attributes.
6836         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
6837         binary, and move.  Mark ialu as default.
6838         (commented out define_function_unit "alu"): Kill.
6839         (define_attr "use_clobbered"): Kill.
6840         (whole file): Kill address insn type references.  Replace
6841         all unary/binary/move references with ialu.
6842         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
6843         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
6844         TYPE_IALU.
6845
6846         Simplify length insn attribute and make more judicious use
6847         of insn attribute defaulting.
6848         * config/sparc/sparc.md (all insns with length > one): Mark as
6849         insn type multi if real instructions, else use default if
6850         it is a forced splitter.
6851         (all insns with length == one): Use default insn length.
6852         (all insns of type ialu): Use default insn type.
6853
6854         Fix erroneous insn attribute settings.
6855         (addx): Set insn type to misc.
6856         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
6857         const_umulsidi3_sp64): Set insn type to imul.
6858
6859         Track SFmode vs DFmode insns according to UltraSPARC
6860         scheduling rules.
6861         * config/sparc/sparc.md ("fptype"): New attribute, default
6862         to "single".
6863         (all DFmode single insns): Mark as fptype "double".
6864
6865 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
6866
6867         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
6868
6869 2001-09-03  Richard Henderson  <rth@redhat.com>
6870
6871         * function.h (struct function): Add arg_pointer_save_area_init.
6872         * function.c (expand_function_end): Init arg_pointer_save_area.
6873         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
6874         when called from a nested function.
6875
6876 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
6877
6878         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
6879         is enabled.
6880
6881 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
6882
6883         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
6884
6885 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
6886
6887         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
6888         (emit_push_insn): Use specified padding direction when
6889         STACK_PUSH_CODE is POST_INC.
6890
6891         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
6892
6893 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6894
6895         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
6896
6897 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
6898
6899         * cppinit.c (cpp_start_read): Free the imacros list as we
6900         traverse it.  Don't free the chains before returning.
6901         (_cpp_push_next_buffer): Only try pushing buffers if we've
6902         completed -imacros handling.
6903
6904 2001-08-31  Eric Christopher  <echristo@redhat.com>
6905
6906         * gcc.c (handle_braces): Add explaination for abort.
6907
6908 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
6909
6910         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
6911         move adjustment of bitpos instead.
6912
6913 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
6914
6915         * function.c: Remove all_functions.  Make outer_function_chain
6916         static.
6917         (init_function_start): Don't add new function structure to
6918         all_functions.
6919         (find_function_data, push_function_context_to,
6920         pop_function_context_from, put_var_into_stack,
6921         trampoline_address): Update for changed structure element names.
6922         (push_function_context_to): Disentangle.
6923         (free_after_compilation): Also free F.
6924         (expand_dummy_function_end): Don't free cfun here.
6925         (put_var_into_stack): Comment why we can't use find_function_data here.
6926         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
6927         (mark_function_chain): Split into maybe_mark_struct_function and
6928         ggc_mark_struct_function.  Export the latter.
6929         (init_function_once): Mark from cfun and outer_function_chain;
6930         not all_functions.
6931
6932         * function.h (struct function): Kill next_global.  Rename next
6933         to outer.  All users updated to match.
6934         (all_functions, outer_function_chain): Don't declare.
6935
6936         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
6937         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
6938         don't touch f->inlinable, after calling rest_of_compilation.
6939
6940         * tree.h: Forward-declare struct function.  Prototype
6941         ggc_mark_struct_function.
6942
6943 2001-08-31  Kazu Hirata  <kazu@hxi.com>
6944
6945         * config/h8300/h8300.md (*andorhi3): Fix typos.
6946
6947 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6948
6949         * calls.c (emit_library_call_value): Don't use a fixed
6950         argument after VA_CLOSE, i.e. out of scope in traditional C.
6951
6952         * emit-rtl.c (gen_rtvec): Likewise.
6953
6954 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6955
6956         * Makefile.in (c-pragma.o): Depend on output.h.
6957         (reorg.o): Depend on except.h.
6958
6959         * c-pragma.c: Include output.h.
6960
6961         * reorg.c: Include except.h.
6962
6963         * unwind-dw2.c: Call __builtin_alloca, not alloca.
6964
6965 2001-08-31  Richard Henderson  <rth@redhat.com>
6966
6967         * sched-deps.c (add_dependence): Don't elide dependency if the
6968         conditional used by insn is modified in elem.
6969
6970 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
6971
6972         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
6973
6974 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
6975
6976         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
6977         dump_switch_p.
6978
6979 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
6980
6981         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
6982         function.
6983         (stormy16_asm_out_constructor): New function.
6984         (TARGET_ASM_CONSTRUCTOR): Define.
6985         (TARGET_ASM_DESTRUCTOR): Define.
6986
6987 2001-08-31  Andreas Jaeger  <aj@suse.de>
6988
6989         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
6990         * loop.c (add_label_notes): Likewise.
6991         * reload.c (find_reloads): Likewise.
6992         * config/sh/sh.c (machine_dependent_reorg): Likewise.
6993
6994 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
6995
6996         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
6997         code here.  Take _Unwind_{W,Sw}ord*.
6998         (read_encoded_value_with_base): Use them.
6999         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
7000         words.
7001         (extract_cie_info): Simplify read_?leb128 handling.
7002         (execute_stack_op, execute_cfa_program): Likewise.
7003         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
7004
7005 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
7006
7007         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
7008         the frame pointer to pop the stack if convenient.
7009
7010         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
7011         Don't use post-increment before combine.
7012         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
7013         a call-saved register.
7014
7015 2001-08-31  Andreas Jaeger  <aj@suse.de>
7016
7017         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
7018         code was correct.
7019
7020 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
7021
7022         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
7023         not DIV/MOD, of course.
7024
7025 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
7026
7027         * rtl.def: Undo my patch commited 2001-08-27.
7028
7029         * genattrtab.c: Ditto.
7030
7031         * rtl.h: Ditto.
7032
7033         * sched-int.h: Ditto.
7034
7035         * target-def.h: Ditto.
7036
7037         * target.h: Ditto.
7038
7039         * haifa-sched.c: Ditto.
7040
7041         * sched-rgn.c: Ditto.
7042
7043         * sched-vis.c: Ditto.
7044
7045         * Makefile.in: Ditto.
7046
7047         * doc/md.texi: Ditto.
7048
7049         * doc/tm.texi: Ditto.
7050
7051         * doc/contrib.texi: Ditto.
7052
7053         * doc/gcc.texi: Ditto.
7054
7055         * genattrtab.h: Remove it.
7056
7057         * genautomata.c: Remove it.
7058
7059         * genattr.c: Undo my patch and Richard Henderson's patch commited
7060         2001-08-27.
7061
7062 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
7063
7064         * config.gcc (h8300-*-elf*): New case.
7065         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
7066         (SUBTARGET_CPP_SPEC): Define.
7067         (EXTRA_SPECS): Define.
7068         (SUBTARGET_EXTRA_SPECS): Define.
7069         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
7070         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
7071
7072 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
7073
7074         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
7075         (LIB2FUNCS_EXTRA): Define.
7076         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
7077         config/h8300/fixunssfsi.c: New file.
7078
7079 2001-08-30  Kazu Hirata  <kazu@hxi.com>
7080
7081         * config/h8300/h8300.md (zero_extendqihi2): Changes to
7082         define_expand to accommodate target-specific attributes.
7083         (anonymous zero_extendqihi2 patterns): New.
7084
7085 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
7086
7087         * h8300.md (*andorhi3): New pattern.
7088
7089 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
7090
7091         * h8300.c (dosize): Fix test for "sub".
7092
7093 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
7094
7095         * c-typeck.c (pointer_diff): Try to eliminate common term before
7096         doing conversions.
7097
7098 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
7099
7100         * config/arm/arm.c (arm_compute_initial_elimination_offset):
7101         Account for the saves of the FP registers.
7102
7103         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
7104         (TEXT_SECTION_ASM_OP): Define.
7105         (INIT_SECTION_ASM_OP): Define.
7106         (FINI_SECTION_ASM_OP): Define.
7107         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
7108         (RDATA_SECTION_FUNCITON): Provide prototype.
7109
7110 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
7111
7112         * reload1.c (move2add_note_store): Correct typo checking for
7113         argument pushes.
7114
7115 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
7116
7117         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
7118         note should not be considered outside the libcall block.
7119
7120 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7121
7122         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
7123
7124 2001-08-29  Kazu Hirata  <kazu@hxi.com>
7125
7126         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
7127
7128 2001-08-29  Kazu Hirata  <kazu@hxi.com>
7129
7130         * config/h8300/h8300-protos.h: Add a prototype for
7131         emit_logical_op.
7132         * config/h8300/h8300.c (emit_logical_op): New.
7133         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
7134         (andsi3): Likewise.
7135         (iorhi3): Likewise.
7136         (iorsi3): Likewise.
7137         (xorhi3): Likewise.
7138         (xorsi3): Likewise.
7139
7140 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7141
7142         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
7143         comparison with rtx INTVAL.
7144         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
7145         expression.
7146         * pa.h (FUNCTION_ARG_SIZE): Likewise.
7147
7148 2001-08-29  Kazu Hirata  <kazu@hxi.com>
7149
7150         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
7151         comment typos.
7152
7153 2001-08-29  Kazu Hirata  <kazu@hxi.com>
7154
7155         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
7156         (reg n) to (mem (pre_dec (reg n))
7157         (anonymous movsi pattern): Likewise.
7158
7159 2001-08-29  Kazu Hirata  <kazu@hxi.com>
7160
7161         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
7162
7163 2001-08-29  Kazu Hirata  <kazu@hxi.com>
7164
7165         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
7166         several special constants.
7167
7168 2001-08-29  Kazu Hirata  <kazu@hxi.com>
7169
7170         * config/h8300/lib1funcs.asm: Fix comment typos.
7171
7172 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7173
7174         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
7175         Fix format specifier warnings.
7176
7177         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
7178         inet_makeaddr, semctl): Prototype.
7179
7180         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
7181         (save_restore_insns): Use base_offset, not gp_offset.
7182
7183         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
7184         (ASM_OUTPUT_BYTE): Fix format specifier warning.
7185
7186 2001-08-29  Richard Henderson  <rth@redhat.com>
7187
7188         * bb-reorder.c (function_tail_eff_head): New.
7189         (record_effective_endpoints): Set it.
7190         (fixup_reorder_chain): Use it.
7191
7192 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7193
7194         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
7195
7196 2001-08-28  Dale Johannesen  <dalej@apple.com>
7197
7198         * config/darwin.c (machopic_function_base_name): Add const
7199         qualifier to a string.
7200         (darwin_encode_section_info): Ditto.
7201
7202 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7203
7204         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
7205         function definition.
7206
7207 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
7208
7209         * df.h (struct df): Add rts_order variable.
7210
7211         * df.c (df_visit_next_rts): New function.
7212         (df_visit_next): Renamed to df_visit_next_rc
7213         (df_analyse_1): Allocate/compute/free rts_order as well.
7214         (df_rd_global_compute): Use df_visit_next_rc instead of
7215         df_visit_next.
7216         (df_ru_global_compute): Use df_visit_next_rts instead of
7217         df_visit_next.
7218
7219         * flow.c (flow_reverse_top_sort_order_compute): New function.
7220
7221         * basic-block.h: Add prototype.
7222
7223 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
7224
7225         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
7226         blocks, the BB_REACHABLE is now set, rather than aux being
7227         non-NULL. Update the test to reflect this.
7228
7229 2001-08-28  Eric Christopher  <echristo@redhat.com>
7230
7231         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
7232         config/mips/crti.asm: Ditto.
7233
7234 2001-08-28  Eric Christopher <echristo@redhat.com>
7235             Richard Henderson <rth@redhat.com>
7236
7237         * c-pragma.h (add_weak): Move prototype from here...
7238         * output.h (add_weak): ... to here.
7239         * varasm.c (add_weak): Fix typo.
7240         * config/mips/crti.asm: New file.
7241         * config/mips/crtn.asm: Ditto.
7242         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
7243         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
7244         (INVOKE__main): Ditto.
7245         (INIT_SECTION_ASM_OP): New.
7246         (FINI_SECTION_ASM_OP): Ditto.
7247         (STARTFILE_SPEC): Add crti.
7248         (ENDFILE_SPEC): Add crtn.
7249         * config/mips/elf64.h: Same.
7250         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
7251         Remove.
7252         * config/mips/vxworks.h: Ditto.
7253         * config/mips/t-elf: Support crti and crtn.
7254
7255 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
7256
7257         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
7258         INSN_LIST.
7259
7260 2001-08-28  Richard Henderson  <rth@redhat.com>
7261
7262         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
7263         (one_cmplbi2 splitter): Remove redundant test.
7264
7265 2001-08-28  Dale Johannesen  <dalej@apple.com>
7266
7267         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
7268
7269 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
7270
7271         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
7272
7273 2001-08-28  Stan Shebs  <shebs@apple.com>
7274
7275         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
7276         (UNALIGNED_SHORT_ASM_OP): Define.
7277         (UNALIGNED_INT_ASM_OP): Define.
7278
7279 2001-08-28  Will Cohen  <wcohen@redhat.com>
7280
7281         * config/rs6000/rs6000.md (store_multiple): Correct RTL
7282         generation for first set.
7283
7284 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
7285
7286         * flow.c (redirect_edge_succ_nodup): Return new edge.
7287         (try_simplify_condjump): Use new edge.
7288         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
7289
7290         * cse.c (cse_basic_block): Skip note instructions.
7291
7292 2001-08-27  Richard Henderson  <rth@redhat.com>
7293
7294         * combine.c (combine_simplify_rtx): Don't reverse condition
7295         if there is no reverse for the condition.
7296         (simplify_comparison): Don't simplify subregs from INT to FP.
7297
7298         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
7299         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
7300         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
7301         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
7302         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
7303         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
7304
7305 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
7306
7307         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
7308         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
7309         (pushqi1): New.
7310         (adddi_dilshr32, adddi_dishl32): Only data register can be
7311         source for mem destination.
7312
7313         * expmed.c (store_bit_field): Ignore adjustment to bitpos
7314         and use bitnum to decide about register move.
7315
7316 2001-08-27  Richard Henderson  <rth@redhat.com>
7317
7318         * genattr.c (main): Emit state_t even when not doing scheduling.
7319
7320 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
7321             Richard Henderson  <rth@redhat.com>
7322
7323         * gcse.c (reg_first_set, reg_last_set): Replace with ...
7324         (reg_avail_info, current_bb): ... these.
7325         (oprs_unchanged_p, record_last_reg_set_info): Use them.
7326         (compute_hash_table): Likewise.
7327
7328 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
7329
7330         * flow.c (verify_flow_info): Use checksums to verify edges.
7331
7332 2001-08-27  Richard Henderson  <rth@redhat.com>
7333
7334         * genautomata.c (expand_automata): Always create a description.
7335
7336 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
7337
7338         * optabs.c (expand_binop): Correctly handle the carry in multiword
7339         add/subtract operations.
7340
7341 2001-08-27  Fred Fish  <fnf@be.com>
7342
7343         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
7344         __SIZE_TYPE__.
7345
7346 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
7347
7348         * reload.c (find_reloads_toplev): Back out this change:
7349
7350         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
7351
7352         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
7353         mem if the address is a mode_dependent_address_p.
7354
7355 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
7356
7357         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
7358         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
7359         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
7360         RTL constructions.
7361
7362         * genattr.c (main): New variable num_insn_reservations.  Increase
7363         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
7364         pipeline hazard recognizer interface.
7365
7366         * genattrtab.h: New file.
7367
7368         * genattrtab.c: Include genattrtab.h.
7369         (attr_printf, check_attr_test, make_internal_attr,
7370         make_numeric_value): Move protypes into genattrtab.h.  Define them
7371         as external.
7372         (num_dfa_decls): New global variable.
7373         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
7374         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
7375         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
7376         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
7377
7378         * genautomata.c: New file.
7379
7380         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
7381
7382         * sched-int.h: (curr_state): Add the external definition for
7383         automaton pipeline interface.
7384         (haifa_insn_data): Add comments for members blockage and units.
7385
7386         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7387         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7388         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7389         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7390         TARGET_SCHED_DFA_POST_CYCLE_INSN,
7391         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7392         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
7393         macros.
7394         (TARGET_SCHED): Use the new macros.
7395
7396         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
7397         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
7398         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
7399         dfa_bubble): New members in gcc_target.sched.
7400
7401         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
7402         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
7403         (insn_queue): Redefine it as pointer to array.
7404         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
7405         INSN_QUEUE_SIZE.
7406         (max_insn_queue_index_macro_value): New variable.
7407         (curr_state, dfa_state_size, ready_try): New varaibles for
7408         automaton interface.
7409         (ready_element, ready_remove, max_issue): New function prototypes
7410         for automaton interface.
7411         (choose_ready): New function prototype.
7412         (insn_unit, blockage_range): Add comments.
7413         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
7414         FUNCTION_UNITS_SIZE == 0.
7415         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
7416         actual_hazard, potential_hazard): Add comments.
7417         (insn_cost): Use cost -1 as undefined value.  Remove
7418         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
7419         pipeline interface.
7420         (ready_element, ready_remove): New functions for automaton
7421         interface.
7422         (schedule_insn): Add new code for automaton pipeline interface.
7423         (queue_to_ready): Add new code for automaton pipeline interface.
7424         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
7425         (debug_ready_list): Print newline when the queue is empty.
7426         (max_issue): New function for automaton pipeline interface.
7427         (choose_ready): New function.
7428         (schedule_block): Add new code for automaton pipeline interface.
7429         Print ready list before scheduling each insn.
7430         (sched_init): Add new code for automaton pipeline interface.
7431         Initiate insn cost by -1.
7432         (sched_finish): Free the current automaton state and finalize
7433         automaton pipeline interface.
7434
7435         * sched-rgn.c: Include target.h.
7436         (init_ready_list, new_ready, debug_dependencies): Add new code for
7437         automaton pipeline interface.
7438
7439         * sched-vis.c: Include target.h.
7440         (get_visual_tbl_length): Add code for automaton interface.
7441         (target_units, print_block_visualization):  Add comments.
7442
7443         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
7444         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
7445         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
7446         (getruntime.o, genautomata.o): New entries.
7447         (genattrtab.o): Add new dependency file genattrtab.h.
7448         (genattrtab): Add new dependencies.  Link it with `libm.a'.
7449         (getruntime.o, hashtab.o): New entries for canadian cross.
7450
7451         * doc/md.texi: Description of automaton based model.
7452
7453         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
7454         Add comments.
7455         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
7456         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
7457         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
7458         TARGET_SCHED_DFA_POST_CYCLE_INSN,
7459         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
7460         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
7461         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
7462         hook descriptions.
7463         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
7464         MAX_DFA_ISSUE_RATE): New macro descriptions.
7465
7466         * doc/contrib.texi: Add dfa based scheduler contribution.
7467
7468         * doc/gcc.texi: Add more information about genattrtab.
7469
7470 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
7471
7472         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
7473         an RTL basic block.
7474
7475 2001-08-27  Richard Henderson  <rth@redhat.com>
7476
7477         * function.c (expand_function_end): Don't init arg_pointer_save_area.
7478         (get_arg_pointer_save_area): New.  Create an init it here.
7479         (fix_lexical_addr): Use it.
7480         * function.h: Declare it.
7481         * builtins.c (expand_builtin_setjmp_receiver): Use it.
7482         * stmt.c (expand_nl_goto_receiver): Use it.
7483
7484 2001-08-27  Richard Henderson  <rth@redhat.com>
7485
7486         * final.c (final_scan_insn): Don't enter APP_ON mode for
7487         empty asm strings.
7488
7489         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
7490         alignment for assemble_integer for DW_EH_PE_aligned.
7491         * except.c (output_function_exception_table): Likewise.
7492
7493 2001-08-26  Andreas Jaeger  <aj@suse.de>
7494
7495         * c-tree.h: Add prototyp for c_sizeof_nowarn.
7496
7497 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
7498
7499         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
7500
7501 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
7502
7503         * config/rs6000/rs6000.c (mask_operand): Rewrite without
7504         bit-shifting loop.
7505         (mask64_operand): Likewise.
7506         (rldic_operand): Delete.
7507         (includes_lshift64_p): Delete.
7508         (includes_rldic_lshift_p): New function.
7509         (includes_rldicr_lshift_p): New function.
7510         (print_operand): Don't call rldic_operand in case 'W'.
7511         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
7512         (includes_lshift64_p): Remove.
7513         (includes_rldic_lshift_p): Declare.
7514         (includes_rldicr_lshift_p): Declare.
7515         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
7516         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
7517         Replace match_operand rldic_operand predicate with
7518         const_int_operand.  Replace includes_lshift64_p condition with
7519         includes_rldic_lshift_p.
7520         <ashldi3_internal 64 bit rldicr patterns>: New.
7521
7522 2001-08-27  Andreas Jaeger  <aj@suse.de>
7523
7524         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
7525         * errors.c: Likewise.
7526         * final.c: Likewise.
7527         * dwarf2asm.c: Likewise.
7528         * doprint.c (checkit): Likewise.
7529         * diagnostic.c: Likewise.
7530         * collect2.c: Likewise.
7531         * calls.c: Likewise.
7532         * c-semantics.c (build_stmt): Likewise.
7533         * c-format.c (status_warning): Likewise.
7534         * c-errors.c (pedwarn_c99): Likewise.
7535         * builtins.c (validate_arglist): Likewise.
7536         * config/pj/pj.c (pj_printf): Likewise.
7537         * fix-header.c: Likewise.
7538         * gcc.c: Likewise.
7539         * gcov.c (fnotice): Likewise.
7540         * gensupport.c (message_with_line): Likewise.
7541         * mips-tfile.c: Likewise.
7542         * protoize.c (notice): Likewise.
7543         * read-rtl.c (fatal_with_file_and_line): Likewise.
7544         * rtl-error.c: Likewise.
7545         * tradcpp.c: Likewise.
7546         * tree.c: Likewise.
7547         * cp/tree.c (build_min_nt): Likewise.
7548         (build_min): Likewise.
7549         * cp/lex.c: Likewise.
7550         * cp/errfn.c: Likewise.
7551         * cp/rtti.c (create_pseudo_type_info): Likewise.
7552
7553 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
7554
7555         * df.c (df_uses_record): Return after recording all uses
7556         in ASM_OPERANDS.
7557
7558 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
7559
7560         * df.c (df_insn_modify): Realloc the INSN table here, if
7561         necessary, here, too.
7562
7563 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
7564
7565         * config/mips/mips.c (mips_function_value): Handle complex return
7566         values.
7567
7568 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
7569
7570         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
7571         unshared.
7572         * reload.c (make_memloc): Copy result if it is still
7573         reg_equiv_memory_loc[regno] on return.
7574         (subst_reloads) [ENABLE_CHECKING]: Check that none of
7575         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
7576         reg_equiv_mem are modified by the substitutions.
7577
7578 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
7579
7580         * predict.c (expensive_function_p): New.
7581         * rtl.h (expensive_function_p): Declare.
7582         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
7583         (use_fast_prologue_epilogue): New static variable.
7584         (expand_prologue): Set it; emit short prologues if unset.
7585         (expand_epilogue): Likewise.
7586
7587 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
7588
7589         * config.gcc: Add stormy16-*-elf case.
7590         * config/stormy16/stormy-abi: New file.
7591         * config/stormy16/stormy16-lib2.c: New file.
7592         * config/stormy16/stormy16-protos.h: New file.
7593         * config/stormy16/stormy16.c: New file.
7594         * config/stormy16/stormy16.h: New file.
7595         * config/stormy16/stormy16.md: New file.
7596         * config/stormy16/t-stormy16: New file.
7597
7598 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
7599
7600         * i386.h (no-accumulate-outgoing-args): Use proper mask.
7601
7602 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
7603
7604         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
7605         descriptor members are pointer size, not constant 4.
7606         * config/rs6000/rs6000.md (define_splits): Remove more unused
7607         constraints.
7608
7609 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7610
7611         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
7612
7613 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
7614
7615         * cp/rtti.c (VPARAMS): Fix parameter.
7616
7617 2001-08-24  Zack Weinberg  <zackw@panix.com>
7618
7619         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
7620         to zero.
7621         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
7622         to switch.
7623         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
7624         in if controlling use of insv.
7625         (extract_bit_field): Likewise, for extv and extzv.
7626
7627 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
7628
7629         * i386.md (movcc peep2): Fix load of 0.
7630
7631 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7632
7633         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
7634         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
7635
7636 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
7637
7638         * c-pragma.h: Move weak_syms and weak_decls...
7639         * varasm.c: ...here.  Now static.
7640         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
7641         depend on HANDLE_PRAGMA_WEAK.
7642
7643         * c-common.c (c_alignof, c_alignof_expr): Move here...
7644         * c-typeck.c: ...from here.
7645         * c-tree.h, c-common.h: Adjust.
7646
7647 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
7648
7649         * config/ia64/ia64.c (rws_update): If !pred, set write_count
7650         instead of incrementing it.
7651
7652         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
7653         asm ready, don't try to move them all into the same array element.
7654
7655 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
7656
7657         * function.c (thread_prologue_and_epilogue_insns): Avoid
7658         fallthru flag on edge to exit.
7659
7660         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
7661
7662         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
7663         dead edges.
7664
7665 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
7666
7667         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
7668         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
7669         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
7670         Remove prototype.
7671
7672 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
7673
7674         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
7675         replace "GNU CC" with "GCC".
7676
7677 2001-08-23  Richard Henderson  <rth@redhat.com>
7678
7679         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
7680         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
7681         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
7682         Need GR between FR and not GR_AND_FR.
7683         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
7684         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
7685         AR regs before GR regs.
7686         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
7687         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
7688         (REGISTER_MOVE_COST): Update.
7689         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
7690
7691 2001-08-23  Richard Henderson  <rth@redhat.com>
7692
7693         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
7694         a register class.
7695
7696 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
7697
7698         * reload1.c (emit_reload_insns): Don't look for notes
7699         on a NULL store_insn.
7700
7701 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7702
7703         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
7704         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
7705         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
7706         format specifier warnings.
7707         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
7708
7709 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
7710
7711         * config/i386/i386-protos.h: Correct declaration of
7712         i386_pe_asm_named_section.
7713
7714 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7715
7716         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
7717         variable i.
7718         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
7719
7720 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7721
7722         * cpperror.c (print_location): Don't show _Pragma.
7723         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
7724         and file change callback generation here.
7725         (stack_include_file): Update use of cpp_push_buffer.
7726         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
7727         (struct cpp_buffer): Remove type, pfile members.
7728         * cppinit.c (cpp_handle_option): Use free_chain.
7729         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
7730         (skip_escaped_newlines, get_effective_char, lex_percent): Take
7731         a cpp_reader rather than a cpp_buffer.
7732         (skip_escaped_newlines, get_effective_char, skip_block_comment,
7733         skip_line_comment, parse_string, lex_percent, lex_dot,
7734         _cpp_lex_token): Update accordingly.
7735         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
7736         generation here.
7737         (cpp_push_buffer): Update prototype.
7738         (run_directive): Update use of cpp_push_buffer.
7739         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
7740         handle_assertion): Update use of run_directive.
7741         * cpplib.h (enum cpp_buffer_type): Remove.
7742         (cpp_push_buffer): Update prototype.
7743         * fix-header.c (read_scan_file): Update.
7744
7745 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7746
7747         * gcc.c (struct prefix_list): Change prefix to const char *.
7748
7749 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7750
7751         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
7752
7753 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
7754
7755         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
7756         from a new MEM.
7757
7758         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
7759         a squeezable note.
7760         * rtl.h: Adjust.
7761         * ifcvt.c (dead_or_predicable): Adjust.
7762         * loop.c (find_and_verify_loops): Adjust.
7763         * stmt.c (expand_end_case): Adjust.
7764         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
7765         head and end insn pointers in the basic block, not just local copies.
7766         (merge_blocks_move_predecessor_nojumps): Likewise.
7767
7768 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
7769
7770         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
7771         bitmap.h, builtin-types.def, builtins.c, builtins.def,
7772         c-aux-info.c, c-common.c, c-common.def, c-common.h,
7773         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
7774         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
7775         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
7776         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
7777         conditions.h, config.gcc, configure.frag, configure.in,
7778         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
7779         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
7780         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
7781         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
7782         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
7783         emit-rtl.c, errors.c, errors.h, except.c, except.h,
7784         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
7785         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
7786         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
7787         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
7788         gencheck.c, gencodes.c, genconfig.c, genemit.c,
7789         genextract.c, genflags.c, gengenrtl.c, genmultilib,
7790         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
7791         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
7792         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
7793         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
7794         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
7795         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
7796         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
7797         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
7798         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
7799         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
7800         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
7801         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
7802         params.h, predict.c, predict.def, predict.h, prefix.c,
7803         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
7804         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
7805         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
7806         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
7807         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
7808         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
7809         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
7810         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
7811         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
7812         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
7813         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
7814         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
7815         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
7816         xcoffout.h: replace "GNU CC" with "GCC".
7817
7818 2001-08-21  Richard Henderson  <rth@redhat.com>
7819
7820         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
7821         (final_scan_insn): Consider jump tables data even if we have no
7822         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
7823         ADDR_VEC_ALIGN.
7824         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
7825         (ASM_OUTPUT_CASE_END): Remove.
7826         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
7827         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
7828         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
7829
7830 2001-08-21  Richard Henderson  <rth@redhat.com>
7831
7832         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
7833         at barrier insns.  Emit stop bits before barriers.
7834
7835         * flow.c (flow_find_cross_jump): Don't consider unconditional
7836         return insns for commoning.
7837
7838         * final.c (compute_alignments): Fix typo.
7839
7840         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
7841         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
7842         (store_bit_field): Use mode_for_extraction more places.
7843         (extract_bit_field): Likewise.
7844
7845 2001-08-21  Zack Weinberg  <zackw@panix.com>
7846
7847         * caller-save.c: Don't include insn-codes.h.
7848         (reg_save_code, reg_restore_code): Make arrays of int.
7849         All uses updated to match.
7850         (insert_save, insert_restore): No need to initialize "code"
7851         variable upon declaration.
7852         * Makefile.in: update dependencies; fix typo in clean rule.
7853
7854 2001-08-21  Richard Henderson  <rth@redhat.com>
7855
7856         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
7857         (merge_if_block): Handle fallout from same.
7858
7859 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7860
7861         * builtins.c (type_to_class): Fix typo in last change.
7862
7863 2001-08-21  Richard Henderson  <rth@redhat.com>
7864
7865         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
7866         ia64_asm_output_label.
7867
7868         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
7869         copy of gp while the real gp register contains garbage.
7870
7871 2001-08-21  Zack Weinberg  <zackw@panix.com>
7872
7873         * expmed.c (mode_for_extraction): New function.
7874         (store_bit_field, extract_bit_field): Use it.
7875         * expr.h: Prototype it and provide an enum for its first argument.
7876
7877         * combine.c, function.c, recog.c: Don't include insn-codes.h.
7878         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
7879         and digging through the insn_data tables.
7880         * Makefile.in: Update dependencies.
7881
7882 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
7883
7884         * cppfiles.c (stack_include_file): line-map.c now handles include
7885         depth.
7886         (handle_missing_handler): Similarly.
7887         (_cpp_execute_include): Similarly.
7888         (_cpp_pop_file_buffer): Similarly.
7889         * cpphash.h (struct cpp_reader): Remove system_include_depth,
7890         buffer_stack_depth and include_depth.
7891         * cpplib.c (do_include_common): line-map.c now handles include depth.
7892         (cpp_push_buffer): Similarly.
7893         (_cpp_pop_buffer): Similarly.
7894         * cppmacro.c (builtin_macro): Update.
7895         * line-map.c (init_line_maps): Set depth.
7896         (add_line_map): Increment "used" earlier.  Update and use the
7897         include depth.
7898         (trace_include): Use the include depth.
7899         * line-map.h (struct line_maps): New member depth.
7900
7901 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7902
7903         * cppfiles.c (stack_include_file): Don't handle -H here.
7904         * cppinit.c (cpp_start_read): Set include tracing after
7905         cpp_post_options and after stacking the main file.
7906         * line-map.c (trace_include): New.
7907         (init_line_maps, add_line_map): Update.
7908         * line-map.h (struct line_maps): New member trace_includes.
7909
7910 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7911
7912         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
7913         * cppfiles.c (stack_include_file): Only stack a file if there
7914         is something to do.  Return a boolean indicating whether a
7915         buffer was stacked or not.
7916         (_cpp_execute_include): Similarly.
7917         (_cpp_read_file): Similarly.
7918         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
7919
7920 2001-08-21  Sam Steingold  <sds@gnu.org>
7921
7922         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
7923         (RECACHE): keep obufp_before_macroname up to date
7924
7925 2001-08-21  Zack Weinberg  <zackw@panix.com>
7926
7927         * stmt.c: Don't include insn-codes.h.
7928         (expand_end_case): Machine specific logic moved to expr.c.
7929         No need to worry about __builtin_classify_type.
7930         (check_for_full_enumeration_handling, emit_case_nodes):
7931         Kill #if 0 blocks.
7932
7933         * builtins.o (expand_builtin_classify_type): Split up so code
7934         can be shared with fold_builtin_classify_type.
7935         (type_to_class, fold_builtin_classify_type): New functions.
7936         (fold_builtins): Handle __builtin_classify_type.
7937
7938         * expr.c (do_tablejump): Now static.
7939         (case_values_threshold, try_casesi, try_tablejump): New;
7940         code mostly from stmt.c (expand_end_case).
7941         (expr.h): Update prototypes.
7942
7943         * Makefile.in (stmt.o): Update dependencies.
7944
7945 2001-08-21  Will Cohen  <wcohen@redhat.com>
7946
7947         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
7948         declaration of variable i.
7949         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
7950         declaration of variable i.
7951
7952 2001-08-21  Richard Henderson  <rth@redhat.com>
7953
7954         * crtstuff.c: Fix thinko last change.  Move list tails to start
7955         of CRT_END section.  Tidy ifdefs.
7956         (__EH_FRAME_BEGIN__): Always static for ELF.
7957         (__do_global_ctors_1): Rename from __frame_dummy.
7958         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
7959         name change; don't hide __EH_FRAME_BEGIN__.
7960
7961 2001-08-21  Richard Henderson  <rth@redhat.com>
7962
7963         * gdbinit.in: Move break on exit after break on fancy_abort.
7964
7965         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
7966         sized types.
7967
7968 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
7969
7970         * cpphash.h (_cpp_push_next_buffer): New.
7971         * cppinit.c (do_includes): Remove.
7972         (push_include, free_chain, _cpp_push_next_buffer): New.
7973         (cpp_start_read): Use them to rework command line option handling.
7974         (cpp_handle_option): Combine handling of -include and -imacros.
7975         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
7976         appropriate.  Always insert missing \n at EOF.
7977         * cpplib.c (start_directive): Get the directive position right.
7978         * cppmain.c (cb_file_change): Always print the first line, unless
7979         preprocessed.
7980
7981 2001-08-20  Andreas Jaeger  <aj@suse.de>
7982
7983         * profile.c (compute_branch_probabilities): Remove extra new-line
7984         in error message.
7985         * flow.c (verify_flow_info): Likewise.
7986
7987 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
7988
7989         * basic-block.h (basic_block): Add new field 'flags'.
7990         (BB_REACHABLE): Define.
7991         (expunge_block): Declare.
7992         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
7993         (EXIT_BLOCK_PTR): Ditto.
7994         (expunge_block): Remove static declaration.
7995         (cleanup_cfg): Clear bb->aux on every basic block.
7996         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
7997         computing reachability.
7998         (delete_unreachable_blocks): Delete block b if b->flags has
7999         BB_REACHABLE unset.
8000
8001 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
8002
8003         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
8004
8005 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8006
8007         * sparc.c (sparc_variable_issue): Fix typo in last change.
8008
8009 2001-08-20  Richard Henderson  <rth@redhat.com>
8010
8011         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
8012
8013 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8014
8015         * pa.h (RETURN_IN_MEMORY): Improve comment.
8016
8017 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
8018
8019         * doc/invoke.texi (Profiling options): Clarify the interactions
8020         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
8021
8022 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
8023
8024         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
8025         command.
8026
8027 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8028
8029         * gcc.c (make_relative_prefix): Allocate a sufficiently large
8030         buffer.
8031
8032 2001-08-20  Richard Henderson  <rth@redhat.com>
8033
8034         * final.c (end_final): Fix typo last change.
8035
8036 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
8037
8038         * cppinit.c (init_standard_includes): The returned buffer
8039         is already malloc-ed.
8040         * gcc.c (add_prefix): Similarly.
8041         * prefix.c (translate_name): Update to support clear buffer
8042         ownership rules.
8043         (update_path): Similarly.  Be sure to free any newly allocated
8044         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
8045         (tr): New function.
8046         * prefix.h (update_path): Update prototype and document.
8047         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
8048         up and update to new buffer ownership rules.
8049         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
8050
8051 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
8052
8053         * final.c (compute_alignments): New function.
8054         (init_insn_lengths): Do not care label_align.
8055         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
8056         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
8057         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
8058         (shorted_branches): Realloc label_align array; do
8059         not call init_insn_lengths; Do not care about loop alignments.
8060         * output.h (compute_alignments): Declare.
8061         * toplev.c (rest_of_compilation): Call compute_alignments.
8062         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
8063
8064         * predict.c (block_info_def): Add npredecesors, remove nvisited;
8065         change visited to tovisit.
8066         (propagate_freq): Use faster traversing algorithm.
8067         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
8068         to tovisit; reverse meaning.
8069
8070         * predict.c (struct block_info_def): Remove nvisited.
8071         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
8072         (estimate_bb_frequencies): Call mark_dfs_back_edges.
8073
8074 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
8075
8076         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
8077         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
8078         (TARGET_FUSED_MADD): New.
8079         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
8080         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
8081         the multiply-add instructions.
8082
8083 2001-08-19  Richard Henderson  <rth@redhat.com>
8084
8085         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
8086         is aligned to pointer size.
8087
8088 2001-08-19  Richard Henderson  <rth@redhat.com>
8089
8090         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
8091         display markers during final schedule.
8092
8093 2001-08-19  Richard Henderson  <rth@redhat.com>
8094
8095         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
8096
8097 2001-08-19  Richard Henderson  <rth@redhat.com>
8098
8099         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
8100         in the same string.
8101         (ASM_NAME_TO_STRING): Remove.
8102         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
8103         in the same string.  Remove support for expressions.
8104
8105 2001-08-19  Richard Henderson  <rth@redhat.com>
8106
8107         * config/i386/i386.md (tablejump): Make an expander; handle
8108         pic relative addressing here.
8109         (tablejump_1): Rename from tablejump_pic.
8110         (casesi): Remove.
8111
8112 2001-08-19  Richard Henderson  <rth@redhat.com>
8113
8114         * regclass.c (fix_register): Fix typo.
8115
8116 2001-08-18  Richard Henderson  <rth@redhat.com>
8117
8118         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
8119         (struct _Unwind_Context): Expand br_loc to hold it.
8120         (uw_frame_state_for): Handle leaf functions better.
8121         (uw_update_reg_address): Update for br_loc change.
8122
8123 2001-08-18  Richard Henderson  <rth@redhat.com>
8124
8125         * crtstuff.c: Move list heads before code that uses them.
8126         (__JCR_LIST__): Remove initial null.
8127         (frame_dummy, __frame_dummy): Do java registration here ...
8128         (__do_global_ctors_aux): ... not here.
8129
8130         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
8131         (__do_global_dtors_aux): Update to match.
8132         (__JCR_LIST__, __do_jv_register_classes): New.
8133         (.init): Call it.
8134         * config/ia64/crtend.asm (__JCR_END__): New.
8135         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
8136         instead of an indirect LTOFF22 reloc.
8137
8138 2001-08-18  Richard Henderson  <rth@redhat.com>
8139
8140         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
8141         * regclass.c (init_reg_sets_1): Fix typo.
8142         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
8143         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
8144         (ia64_compute_frame_size): Make ar.unat live when in use.
8145         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
8146         for ar.pfs; remove ar.unat handling.
8147         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
8148         call-saved.
8149         (PREDICATE_CODES): Add ar_pfs_reg_operand.
8150         * config/ia64/ia64-protos.h: Update decls.
8151         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
8152         (sibcall_pic): Likewise.
8153
8154 2001-08-18  Richard Henderson  <rth@redhat.com>
8155
8156         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
8157         pred_rel_mutex when searching for insn_group_barrier.
8158         * config/ia64/ia64.md (cycle_display): Combine the expander
8159         and insn patterns.
8160
8161         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
8162         bit before asm as needed.
8163
8164 2001-08-18  Richard Henderson  <rth@redhat.com>
8165
8166         * timevar.def (TV_MACH_DEP): New.
8167         * toplev.c (rest_of_compilation): Use it.
8168         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
8169
8170 2001-08-18  Zack Weinberg  <zackw@panix.com>
8171
8172         * unwind-dw2.c (execute_stack_op): Add default aborts to
8173         the inner switches to prevent warnings.
8174
8175 2001-08-18  Richard Henderson  <rth@redhat.com>
8176
8177         * timevar.h (struct timevar_time_def): Change element type to float.
8178         (ticks_to_msec, clocks_to_msec): Likewise.
8179         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
8180         (get_time): Likewise.
8181         (timevar_print): Adjust zero check and printing to match.
8182
8183 2001-08-18  Zack Weinberg  <zackw@panix.com>
8184
8185         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
8186         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
8187         Eliminate overfull or underfull hboxes.
8188
8189 2001-08-18  Zack Weinberg  <zackw@panix.com>
8190
8191         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
8192
8193 2001-08-18  Zack Weinberg  <zackw@panix.com>
8194
8195         * haifa-sched.c: Convert to target hooks.  Macros replaced
8196         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
8197         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
8198         MD_SCHED_FINISH, and HAVE_cycle_display.
8199         * target-def.h (TARGET_SCHED_ADJUST_COST,
8200         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
8201         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
8202         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
8203         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
8204         New hook #defines to be overridden.
8205         (TARGET_SCHED): Bring them all together.
8206         (TARGET_INITIALIZER): Update.
8207         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
8208         instead of 'struct rtx_def *' throughout.
8209         (struct sched): New set of hooks for the scheduler.
8210         * Makefile.in (haifa-sched.o): Depend on target.h.
8211         * doc/tm.texi: Document the new scheduler hooks, together in
8212         their own section, instead of scattered around.
8213         Fix a bunch of underfull/overfull hboxes.
8214
8215         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
8216         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
8217         sparc.h: Don't define any of the old scheduler macros.
8218
8219         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
8220         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
8221         sparc.c: Create hook functions from code extracted from
8222         corresponding target header, or make existing hooks static, as
8223         appropriate.  Set the appropriate entries in targetm.
8224
8225         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
8226         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
8227         rs6000-protos.h, s390-protos.h, sparc-protos.h:
8228         Remove prototypes for functions which are now static.
8229
8230         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
8231         related gunk; the Haifa scheduler is now the only choice.
8232
8233 2001-08-18  Zack Weinberg  <zackw@panix.com>
8234
8235         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
8236         * genopinit.c: Put floating point divide insns in sdiv_optab.
8237         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
8238         * config/gofast.h, config/c4x/c4x.h,
8239         config/ia64/hpux_longdouble.h, config/mips/mips.h,
8240         config/pa/long_double.h, config/rs6000/sysv4.h,
8241         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
8242         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
8243         (init_optabs): Use init_optabv for overflow-trapping optabs.
8244         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
8245         cmp_optab RTX codes so have_insn_for can find them.
8246
8247         * optabs.c (expand_simple_binop, expand_simple_unop,
8248         have_insn_for, gen_sub3_insn): New interfaces.
8249         * expr.h: Prototype new functions.
8250         (enum optab_methods): Move here from optabs.h.
8251
8252         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
8253         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
8254         Use new functions instead of working directly with optabs.
8255         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
8256         unroll.c: Don't include optabs.h.
8257         * caller-save.c, combine.c, function.c, stmt.c: Just include
8258         insn-codes.h, not optabs.h.
8259         * Makefile.in: Update dependencies.
8260
8261         * combine.c (make_compound_operation, simplify_comparison):
8262         Fix typos testing for this or that instruction.
8263
8264 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
8265
8266         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
8267         generating libgcc.a.
8268
8269 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8270
8271         * except.c (TYPE_HASH): Delete.
8272
8273         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
8274         HOST_WIDE_INT.
8275
8276         * tree.c (TYPE_HASH): Delete.
8277
8278         * tree.h (TYPE_HASH): Define.
8279
8280 2001-08-18  Graham Stott  <grahams@redhat.com>
8281
8282         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
8283         define_split.
8284         (adddi3_internal_2+2): Likewise.
8285         (eh_set_lr_di+1): Likewise.
8286
8287 2001-08-17  Richard Henderson  <rth@redhat.com>
8288
8289         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8290         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
8291         * dwarf2asm.c: ... here.
8292         * dwarfout.c: Remove them.
8293
8294         * varasm.c (assemble_integer): Add align parameter.
8295         (assemble_real, output_constant, output_constructor): Likewise.
8296         * output.h: Update decls.
8297         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
8298         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
8299         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
8300         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
8301         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
8302         Update all callers.
8303
8304         * final.c (end_final): Abort profile block generation if we
8305         havn't layed it out properly.
8306         * output.h (assemble_eh_integer): Remove stale decl.
8307         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
8308         (min_align): New.
8309         (assemble_integer): Handle unaligned data.
8310         (assemble_real): Abort on unaligned data.
8311         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
8312         anything useful.
8313         (default_dtor_section_asm_out_destructor): Use assemble_align.
8314         (default_named_section_asm_out_constructor): Likewise.
8315         (default_ctor_section_asm_out_constructor): Likewise.
8316         * config/darwin.c (machopic_asm_out_constructor): Likewise.
8317         (machopic_asm_out_destructor): Likewise.
8318         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
8319         (nextstep_asm_out_destructor): Likewise.
8320         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
8321         (vms_asm_out_destructor): Likewise.
8322
8323 2001-08-17  Richard Henderson  <rth@redhat.com>
8324
8325         * config/mips/iris6.h (TARGET_IRIX6): New.
8326         (current_section_name, current_section_flags): New.
8327         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
8328         (MAX_OFILE_ALIGNMENT): New.
8329         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
8330         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
8331         (copy_file_data): Split out from
8332         (mips_asm_file_end): ... here.
8333         (mips_asm_file_start): Remove extra .section directive.  Use
8334         tmpfile instead of mips_make_temp_file.
8335         (mips_unique_section): Use const char * as needed for warnings.
8336         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
8337         re-add align parameter.
8338         (iris6_asm_named_section): New.
8339         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
8340         (iris6_asm_output_align, iris6_section_align_1): New.
8341         (iris6_asm_file_start, iris6_asm_file_end): New.
8342         * config/mips/mips-protos.h: Update decls.
8343
8344 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
8345
8346         * doc/install.texi (Install GCC): Add links to build status pages.
8347         (Specific): Ditto.
8348         (Final install): Ditto; request updates for specific info
8349
8350 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8351
8352         * cpperror.c (print_location):  Don't take a file name; use the
8353         line map instead.
8354         (_cpp_begin_message): Similarly.
8355         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
8356         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
8357         (cpp_pedwarn_with_file_and_line): Remove.
8358         * cppfiles.c (stack_include_file): Update; set filename to stdin
8359         here when appropriate.
8360         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
8361         (_cpp_begin_message): Don't take a file name.
8362         * cppinit.c: Add comment.
8363         * cpplex.c: Fix end-of-directive indicator.
8364         * cpplib.c: Don't include intl.h.
8365         (run_directive, do_diagnostic): Update.
8366         (do_line): Update to not use nominal_fname.
8367         (cpp_push_buffer): Don't take a filename.
8368         * cpplib.h (struct ht): Remove.
8369         (cpp_push_buffer): Don't take a filename.
8370         (cpp_pedwarn_with_file_and_line): Remove.
8371         * cppmacro.c (struct cpp_macro): Remove file.
8372         (builtin_macro): Update.
8373         (_cpp_create_definition): Update.
8374         * cppmain.c: Correct comment.
8375         * fix-header.c (read_scan_file): Update.
8376
8377 2001-08-17  Kazu Hirata  <kazu@hxi.com>
8378
8379         * sbitmap.c: Fix comment formatting.
8380         * sched-deps.c: Likewise.
8381         * sibcall.c: Likewise.
8382         * simplify-rtx.c: Likewise.
8383         * ssa.c: Likewise.
8384         * ssa-ccp.c: Likewise.
8385         * stor-layout.c: Likewise.
8386         * timevar.c: Likewise.
8387         * toplev.c: Likewise.
8388         * unwind-dw2.c: Likewise.
8389         * unwind-dw2-fde.c: Likewise.
8390         * varasm.c: Likewise.
8391
8392 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8393
8394         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
8395         or larger than an integer in memory.
8396
8397 2001-08-17  Zack Weinberg  <zackw@panix.com>
8398
8399         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
8400         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
8401         * rtl.h: Don't forward-declare union tree_node here.  Don't
8402         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
8403         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
8404         and tree respectively.
8405         * tree.h: Don't forward-declare struct rtx_def here.  Don't
8406         typedef tree here.  Change all uses of struct rtx_def *,
8407         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
8408         and tree respectively.
8409
8410 2001-08-17  Richard Henderson  <rth@redhat.com>
8411
8412         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
8413         config/mips/openbsd.h: Fix typos last change.
8414
8415 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8416
8417         * doc/invoke.texi (Optimize Options): The default for
8418         -finline-limit is 600.
8419
8420 2001-08-17  Richard Henderson  <rth@redhat.com>
8421
8422         * varasm.c (text_section): Allow TEXT_SECTION to override the
8423         printing of TEXT_SECTION_ASM_OP.
8424         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
8425         (DATA_SECTION, BSS_SECTION): Remove.
8426         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
8427         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
8428         Rename from s/_NAME//.
8429         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
8430         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
8431         (TEXT_SECTION): ... here.  New.
8432         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
8433         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
8434         * config/mips/openbsd.h: Likewise.
8435         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
8436         (mips_asm_file_end): Likewise test.
8437         (mips_output_function_epilogue): Likewise.  Switch back to data
8438         section after emitting the function.
8439
8440         * doc/tm.texi (Sections): Document TEXT_SECTION.
8441
8442 2001-08-17  Richard Henderson  <rth@redhat.com>
8443
8444         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
8445         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
8446
8447 2001-08-17  Richard Henderson  <rth@redhat.com>
8448
8449         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
8450         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
8451         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
8452         Add aligned attribute.
8453
8454 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
8455
8456         * config/sh/sh.md: Add modes to unspecs in first insn to match
8457         those in the second.
8458
8459         * Makefile.in: Fix collect2 copy for Cygwin.
8460
8461 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
8462
8463         Install the proper patch.
8464         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
8465         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
8466         (expand_function_start): Likewise.
8467         * stmt.c (expand_decl): Likewise.
8468         * varasm.c (make_decl_rtx): Likewise.
8469
8470 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
8471
8472         * final.c: Undo my previous accidental checkin.
8473         * output.h: Likewise.
8474         * tm.texi: Likewise.
8475
8476 2001-08-16  Richard Henderson  <rth@redhat.com>
8477
8478         * varasm.c (named_section_flags): Remove align parameter.
8479         * varasm.c, dwarf2out.c: Update all callers.
8480         * output.h: Update prototypes.
8481
8482         * target.h (target.asm_out.named_section): Remove align parameter.
8483         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
8484         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
8485         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
8486         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
8487         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
8488
8489         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
8490         (get_named_section_flags, set_named_section_flags): New.
8491         (named_section_flags): Use them.
8492         (named_section): Do decl vs section flags check here...
8493         (default_section_type_flags): ... not here.
8494         (init_varasm_once): Create in_named_htab.
8495         (resolve_unique_section): Mark reloc unused.
8496
8497 2001-08-16  Richard Henderson  <rth@redhat.com>
8498
8499         * varasm.c (force_const_mem): Keep pool alignment in bits.
8500         (output_constant_pool): Use assemble_align.
8501
8502 2001-08-16  Zack Weinberg  <zackw@panix.com>
8503
8504         * doc/tm.texi: Remove extra @table command.
8505
8506 2001-08-16  Zack Weinberg  <zackw@panix.com>
8507
8508         * final.c (shorten_branches): Clear the end of the label_align
8509         array only if we made it larger.  Break up messy expressions
8510         for clarity.
8511
8512         * diagnostic.c (internal_error): Check for error recursion
8513         before doing ICE suppression.
8514
8515         * timevar.c: Timing variables now count in milliseconds.
8516         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
8517         (get_time): Not here.
8518         (timevar_print): Don't print any timer whose user, cpu, and
8519         wall times are all zero as displayed.
8520         * timevar.h: Update comment aboout units.  Make timevar
8521         counters unsigned.
8522
8523 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
8524
8525         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
8526         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
8527         (expand_function_start): Likewise.
8528         * stmt.c (expand_decl): Likewise.
8529         * varasm.c (make_decl_rtx): Likewise.
8530
8531 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
8532
8533         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
8534         (finalize_record_size): Don't set TYPE_USER_ALIGN.
8535
8536 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8537
8538         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
8539         variables.
8540
8541 2001-08-16  Andreas Jaeger  <aj@suse.de>
8542
8543         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
8544         prototype.
8545
8546 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
8547
8548         * rtl.h (only_sets_cc0_p): New prototype.
8549         * jump.c (sets_cc0_p): Handle INSN.
8550         (only_sets_cc0_p): New function.
8551         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
8552         (tidy_fallthru_edge): Likewise.
8553         * integrate.c (copy_insn_list): Likewise.
8554         * unroll.c (unroll_loop): Likewise.
8555         (copy_loop_body): Likewise.
8556
8557 2001-08-15  Jason Eckhardt  <jle@redhat.com>
8558
8559         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
8560
8561 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
8562
8563         * predict.c (struct block_info_def): Remove nvisited.
8564         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
8565         (estimate_bb_frequencies): Call mark_dfs_back_edges.
8566
8567         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
8568         (ix86_adjust_cost): Teach scheduler that latency to load operand can
8569         be masked.
8570
8571 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
8572
8573         * predict.def: Update hitrates.
8574
8575 2001-08-15  Richard Henderson  <rth@redhat.com>
8576
8577         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
8578
8579 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
8580
8581         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
8582         note from its associated jump.
8583
8584 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
8585
8586         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
8587         also on 64-bit s390x targets.
8588
8589 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
8590
8591         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
8592         function.
8593         (arm_expand_prologue): Handled nested functions which take a
8594         variable argument list.
8595         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
8596         macro with an invocation of
8597         arm_compute_initial_elimination_offset.
8598         * config/arm/arm-protos.h: Prototype
8599         arm_compute_initial_elimination_offset.
8600
8601 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8602
8603         * doc/install.texi (Specific, avr): Fix markup.
8604         (Specific, c4x): Ditto.
8605
8606 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8607
8608         * predict.c (dump_prediction): Change `bool' parameter to `int'.
8609
8610 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
8611
8612         * Makefile.in (OBJS): Add rtl-error.o
8613         (rtl-error.o): New rule.
8614         (diagnostic.o): Adjust dependency.
8615         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
8616         error_for_asm, _fatal_insn, _fatal_insn_not_found,
8617         warning_for_asm): Move to...
8618         rtl-error.c: ...here.  New file.
8619
8620 2001-08-14  Richard Henderson  <rth@redhat.com>
8621
8622         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
8623         if USING_SJLJ_EXCEPTIONS.
8624
8625 2001-08-14  Steve Ellcey <sje@cup.hp.com>
8626
8627         * tlink.c (scan_linker_output): Check string for unsatisfied in
8628         addition to undefined and unresolved.
8629
8630 2001-08-14  Graham Stott  <grahams@redhat.com>
8631
8632         * libgcc2.c (*): Replace EH_FRAME_SECTION with
8633         EH_FRAME_SECTION_NAME.
8634
8635 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
8636
8637         * genattrtab.c (simplify_test_exp_in_temp): New function.
8638         (simplify_test_exp): Avoid explicit use of temporary obstack.
8639         (simplify_cond, insert_right_side, evaluate_eq_attr,
8640         simplify_and_tree, simplify_or_tree, eliminate_known_true):
8641         Use simplify_test_exp_in_temp.
8642         (optimize_attrs): Iterate until expression stabilizes.
8643
8644 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
8645
8646         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
8647         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
8648
8649 2001-08-13  Richard Henderson  <rth@redhat.com>
8650
8651         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
8652         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
8653         * config/arm/conix-elf.h: Likewise.
8654
8655 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
8656
8657         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
8658         in gcc.c.
8659         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
8660
8661         * gcse.c (hash_scan_set): Expressions that are set as part of
8662         jump instructions are not available.
8663
8664 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
8665
8666         * config/s390/s390.c (print_operand, s390_function_prologue,
8667         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
8668
8669 2001-08-13  Richard Henderson  <rth@redhat.com>
8670
8671         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
8672         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
8673         * doc/tm.texi (Exception Region Output): Document it.
8674
8675 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
8676
8677         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
8678         DWARF2 instead of stabs by default.
8679
8680 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
8681
8682         * config/rs6000/rs6000.c: Include optabs.h.
8683
8684 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
8685
8686         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
8687         save/restore routines.
8688         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
8689
8690 2001-08-13  Andreas Jaeger  <aj@suse.de>
8691
8692         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
8693         the english is correct.
8694
8695 2001-08-13  Zack Weinberg  <zackw@panix.com>
8696
8697         * expr.h: Split out optab- and libfunc-related code to...
8698         * optabs.h, libfuncs.h: ... these new headers.
8699
8700         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
8701         (OPTABS_H): New.
8702         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
8703         dependencies.
8704         * mkconfig.sh: Don't include insn-codes.h from config.h.
8705
8706         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
8707         enum insn_code is available.  Move reload_in_optab and
8708         reload_out_optab array declarations to optabs.h.
8709         * regmove.c (gen_add3_insn): Move to optabs.c, export from
8710         there, prototype in expr.h.
8711         * gencodes.c: Cleanup: zap global variables, don't use
8712         printf where puts will do, don't bother defining MAX_INSN_CODE
8713         which nothing uses, let CODE_FOR_nothing get its value implicitly.
8714
8715         * genemit.c, genopinit.c: Include optabs.h in generated file.
8716         * genoutput.c: Include insn-codes.h in generated file.
8717         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
8718         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
8719         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
8720         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
8721         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
8722         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
8723         Include optabs.h.
8724         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
8725         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
8726         config/m88k/m88k.c, config/sparc/sparc.c:
8727         Include libfuncs.h.
8728         * reload.c: Include expr.h and optabs.h before reload.h.
8729         * config/alpha/alpha.c: Include tree.h before reload.h.
8730         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
8731         and reload.h in that order.
8732         * config/sparc/sparc.c: Include debug.h.
8733         * recog.c: Include insn-codes.h.
8734
8735 2001-08-13  Andreas Jaeger  <aj@suse.de>
8736
8737         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
8738         s390*linux.
8739
8740 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
8741
8742         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
8743         * gcc.c (init_spec): Fix typo in comment.
8744         * varasm.c (data_section): Fix typo in comment.
8745
8746 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
8747
8748         * predict.c (dump_prediction): New argument "USED".
8749         (combine_predictions_for_insn): Determine the used heuristics,
8750         output the case no heuristic applied.
8751         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
8752
8753 2001-08-13  Andreas Jaeger  <aj@suse.de>
8754
8755         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
8756         register %rip.
8757
8758 2001-08-13  Kazu Hirata  <kazu@hxi.com>
8759
8760         * jump.c: Fix formatting.
8761
8762 2001-08-13  Kazu Hirata  <kazu@hxi.com>
8763
8764         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
8765         length.
8766
8767 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
8768
8769         * loop.c (check_dbra_loop): Use condjump_label to compute
8770         jump_label.
8771
8772         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
8773         to better document the files they're in.
8774
8775 2001-08-12  Zack Weinberg  <zackw@panix.com>
8776
8777         * recog.h (struct insn_operand_data): Shrink 'mode' field
8778         to 16 bits.
8779
8780 2001-08-12  Kazu Hirata  <kazu@hxi.com>
8781
8782         * gcc.c: Fix comment formatting.
8783         * gccspec.c: Likewise.
8784         * gcov.c: Likewise.
8785         * gcse.c: Likewise.
8786         * genemit.c: Likewise.
8787         * gengenrtl.c: Likewise.
8788         * genrecog.c: Likewise.
8789         * gensupport.c: Likewise.
8790         * ggc-page.c: Likewise.
8791         * global.c: Likewise.
8792         * graph.c: Likewise.
8793         * ifcvt.c: Likewise.
8794         * integrate.c: Likewise.
8795         * lcm.c: Likewise.
8796         * libgcc2.c: Likewise.
8797         * loop.c: Likewise.
8798         * mbchar.c: Likewise.
8799         * optabs.c: Likewise.
8800         * predict.c: Likewise.
8801         * prefix.c: Likewise.
8802         * profile.c: Likewise.
8803         * protoize.c: Likewise.
8804         * real.c: Likewise.
8805         * recog.c: Likewise.
8806         * regclass.c: Likewise.
8807         * regmove.c: Likewise.
8808         * reg-stack.c: Likewise.
8809         * reload1.c: Likewise.
8810         * resource.c: Likewise.
8811         * rtlanal.c: Likewise.
8812         * rtl.c: Likewise.
8813
8814 2001-08-12  Kazu Hirata  <kazu@hxi.com>
8815
8816         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
8817         a tree representing a constant is passed to the macro.
8818
8819 2001-08-12  Richard Henderson  <rth@redhat.com>
8820
8821         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
8822         (rs6000_elf_asm_out_destructor): New.
8823         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
8824         (DTORS_SECTION_ASM_OP): Remove.
8825         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
8826         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
8827
8828 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
8829
8830         Revert:
8831         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8832         * gcc.c (set_collect_gcc_options): New function, split out from
8833         main.
8834         Ignore elided switches.
8835         (do_spec_1): Invoke before executing command.
8836         (set_input): Export.
8837         Move declaration ...
8838         * gcc.h (set_input): ... here.
8839         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
8840         file.
8841
8842 2001-08-12  Richard Henderson  <rth@redhat.com>
8843
8844         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
8845         thinko wrt TARGET_RELOCATABLE.
8846
8847 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
8848
8849         * fix-header.c (cb_file_change): Update prototype.
8850
8851 2001-08-11  Zack Weinberg  <zackw@panix.com>
8852
8853         * toplev.c (set_float_handler): Make static.
8854         * toplev.h: Don't prototype set_float_handler.
8855
8856         * simplify-rtx.c: Don't include setjmp.h.
8857         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
8858         New functions.
8859         (simplify_unary_operation, simplify_binary_operation): Use them,
8860         via do_float_handler.
8861
8862         * fold-const.c: Don't include setjmp.h.
8863         (exact_real_inverse_1): New function.
8864         (exact_real_inverse): Use it, via do_float_handler.
8865
8866         * varasm.c: Don't include setjmp.h.
8867         (assemble_real_1): New function.
8868         (assemble_real): Use it, via do_float_handler.
8869         Call internal_error if we get a trap here.
8870
8871         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
8872         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
8873
8874 2001-08-11  Zack Weinberg  <zackw@panix.com>
8875
8876         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
8877         STACK_BOUNDARY if not already defined.
8878
8879         * calls.c, function.c, reload1.c, explow.c: Don't default
8880         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
8881         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
8882
8883         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
8884         to run-time test.
8885
8886         * doc/tm.texi: Document that STACK_BOUNDARY is required;
8887         clarify difference between it and PREFERRED_STACK_BOUNDARY.
8888
8889 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8890
8891         * cppmacro.c (enter_macro_context): Push macro expansions even
8892         if empty.
8893
8894 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8895
8896         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
8897         (rs6000_elf_section_type_flags): Actually return a value.
8898
8899 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
8900
8901         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
8902         Clean up code: add missing comments and prototypes, fix warnings,
8903         remove obsolete code, fix spacing to conform to coding style.
8904
8905 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
8906
8907         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
8908         and TARGET_ASM_CLOSE_PAREN.
8909         (regclass_map): CC register belongs to class NO_REGS.
8910         (legitimize_pic_address): Don't generate unnecessary moves
8911         (to avoid confusing loop optimization).
8912         (check_and_change_labels): Replace jump_long by indirect_jump.
8913         (s390_final_chunkify): Don't start a new literal pool on section
8914         switch in 64-bit code.
8915         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
8916
8917         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
8918         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
8919         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
8920         modes correctly.
8921         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
8922         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
8923         (CONST_COSTS): Fixed incorrect costs.
8924
8925         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
8926         Use emit_jump instead of emit_jump_insn (gen_jump).
8927         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
8928         (to avoid confusing flow analysis).
8929         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
8930         (casesi, casesi_jump): New.
8931         (jump_long): Removed.  Functionality merged into indirect_jump.
8932         (indirect_jump): Accept address_operand, not just register_operand.
8933         (cjump_long, icjump_long): Use same logic as indirect_jump.
8934         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
8935         Fixed broken setjmp/longjmp handling.
8936         (do_builtin_setjmp_setup): Removed.
8937
8938         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
8939         broken GNU as versions that don't accept .quad with large
8940         negative values.  Use hexadecimal output instead.
8941         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
8942         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
8943         FUNCTION_EPILOGUE): Removed.  Now in targetm.
8944
8945         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
8946
8947         * config/s390/fixdfdi.h: Add missing copyright statement.
8948         Fix type conflicts on 64-bit.  Add missing SFmode routines.
8949
8950         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
8951         email address.
8952
8953 2001-08-11  Richard Henderson  <rth@redhat.com>
8954
8955         * rtl.h (REG_EH_RETHROW): Remove.
8956         * rtl.c (reg_note_name): Update.
8957         * combine.c (distribute_notes): Don't check for it.
8958
8959 2001-08-11  Richard Henderson  <rth@redhat.com>
8960
8961         * combine.c (distribute_notes): Place REG_SETJMP.
8962
8963 2001-08-11  Richard Henderson  <rth@redhat.com>
8964
8965         * doc/extend.texi (Arrays and pointers implementation): Discourage
8966         relying on sign-extension of pointers.
8967
8968 2001-08-11  H.J. Lu <hjl@gnu.org>
8969
8970         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
8971         in_dtors.
8972         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
8973         RDATA_SECTION_ASM_OP.
8974
8975 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8976
8977         * doc/install.texi (Specific, c4x): Fix cross-reference to the
8978         main manual to work both for info and HTML versions.
8979
8980 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8981             Matt Kraai <kraai@alumni.carnegiemellon.edu>
8982
8983         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
8984         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
8985         (struct cpp_pool): New member first.
8986         * cppinit.c (append_include_chain): Plug memory leaks.
8987         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
8988         Allocate pragma structures from the (aligned) macro pool to
8989         avoid leaking memory.
8990         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
8991         so we don't leak memory.
8992         * hashtable.c (ht_destroy): New.
8993         * hashtable.h (ht_destroy): New.
8994
8995 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8996             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8997
8998         * c-lex.c (map): Make const.
8999         (cb_file_change): Update for callback passing a line map.
9000         Don't assume we have a previous map.  Remove sanity check
9001         about popping too many files.
9002         * cpperror.c (print_location): Make map const.
9003         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
9004         (cpp_make_system_header): Similarly.
9005         (search_from): Similarly.
9006         (_cpp_execute_include): Don't remember where we came from.
9007         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
9008         (struct cpp_reader): Make map const.
9009         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
9010         * cpplib.c (do_line): Update; line maps now hold sysp.
9011         (cpp_push_buffer): Similarly.
9012         (_cpp_do_file_change): Similarly; callback with map instead.
9013         (cpp_get_line_maps): Constify return value.
9014         (_cpp_pop_buffer): Update.
9015         * cpplib.h (struct cpp_file_change): Remove.
9016         (struct cpp_callbacks): Update.
9017         (cpp_get_line_maps): Constify return value.
9018         * cppmacro.c (_cpp_create_definition): Update.
9019         * cppmain.c (struct printer): Constify map.
9020         (maybe_print_line): Similarly.
9021         (print_line): Similarly.  Deduce flags 1 and 2 here.
9022         (cb_file_change): Update.
9023         * line-map.c (free_line_maps): Warn regardless.
9024         (add_line_map): Return pointer to const.  When passed NULL to_file
9025         with LC_LEAVE, use the obvious values for the return point so the
9026         caller doesn't have to figure them out.
9027         (lookup_line): Return pointer to const.
9028         (print_containing_files): Take pointer to const.
9029         * line-map.h (struct line_map): New members reason, sysp.
9030         (add_line_map): Return pointer to const.
9031         (lookup_line): Similarly.
9032         (print_containing_files): Take pointer to const.
9033
9034 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
9035             Richard Henderson  <rth@redhat.com>
9036
9037         * regmove.c (regmove_optimize): Avoid setting a register twice in
9038         a parallel set.
9039
9040 2001-08-10  Richard Henderson  <rth@redhat.com>
9041
9042         * doc/extend.texi (Arrays and pointers implementation): Document
9043         behavior of pointer/integer conversion.
9044
9045 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
9046
9047         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
9048
9049 2001-08-10  Richard Henderson  <rth@redhat.com>
9050
9051         * doc/extend.texi (C Implementation): New chapter.
9052         * doc/gcc.texi (Top): Link it in.
9053
9054 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
9055
9056         * doc/install.texi (Specific): Fix CVS merge botch.
9057
9058 2001-08-10  Richard Henderson  <rth@redhat.com>
9059
9060         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
9061         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
9062
9063 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
9064
9065         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
9066         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
9067         this macro is now required.
9068
9069         * cselib.c (cselib_process_insn), flow.c (propagate_block),
9070         loop.c (find_and_verify_loops), reload.c (reload): Check
9071         for rtx code of CALL_INSN, not CALL, when deciding if we
9072         need to check for REG_SETJMP note.
9073
9074         * gcse.c (compute_hash_table, compute_store_table): Update
9075         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
9076         logic.
9077
9078         * config/avr/avr.c: Fix typo.
9079         * config/convex/convex.c (expand_movstr): Use adjust_address.
9080         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
9081         variable.
9082         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
9083         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
9084         Fix typo.
9085         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
9086         Do define STACK_BOUNDARY.
9087         * config/i370/i370.c: Include expr.h.
9088         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
9089         config/pa/som.h, config/v850/v850.h: Take in_ctors and
9090         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
9091         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
9092         * config/m88k/m88k.c: Include c-tree.h after expr.h.
9093         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
9094         * config/romp/romp.c: Include expr.h after tree.h.
9095         Include toplev.h.
9096         (output_fpop): Use xmalloc, not oballoc.
9097         * config/we32k/we32k.c: Include expr.h.
9098
9099 2001-08-10  Kazu Hirata  <kazu@hxi.com>
9100
9101         * config/h8300/h8300.h: Fix formatting.
9102
9103 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
9104
9105         * c-common.h (RETURN_NULLIFIED_P): Lose.
9106         * c-semantics.c (genrtl_return_stmt): Don't check it.
9107
9108 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
9109
9110         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
9111         (mips_annotate_frame_insn): New function.
9112         (mips_emit_frame_related_store): New function.
9113         (save_restore_insns): Don't mark instructions that set up the base
9114         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
9115         the store instructions instead.
9116         (mips_expand_prologue): If the stack size is moved into a temporary
9117         register, do not mark that move as frame-related.  Add a
9118         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
9119
9120 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
9121
9122         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
9123         stack slot as unchanging if current_function_calls_eh_return.
9124
9125 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
9126
9127         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
9128         access the second half of the TFmode scratch operand.
9129
9130 2001-08-10  Anthony Green  <green@redhat.com>
9131
9132         * java/class.c (emit_register_classes): Conditionalize code on
9133         JCR_SECTION_NAME.
9134
9135 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9136
9137         * doc/install.texi (Specific, avr): Fix cross-reference to the
9138         main manual to work both for info and HTML versions.
9139
9140 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9141
9142         * stmt.c (expand_null_return_1): Remove code to generate simple returns
9143         and "use_goto" argument.
9144         (expand_null_return, expand_value_return): Update all callers.
9145         * function.c (expand_function_end): Remove code to generate simple
9146         return.
9147         * config/vax/vax.md (epilogue): New expander for function return.
9148         * doc/md.texi (epilogue): Remove "if defined".
9149
9150 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
9151
9152         * Makefile.in: Partially revert my previous change:
9153         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
9154         of the hashtab.o and safe-ctype.o rules.
9155
9156 2001-08-09  Richard Henderson  <rth@redhat.com>
9157
9158         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
9159         (USE_COLLECT2): Remove duplicate definition.
9160         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
9161         (use_collect2): Remove dead code.
9162         * configure.in (use_collect2): Remove will_use_collect2 and
9163         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
9164         * configure: Rebuild.
9165
9166         * target.h (targetm.asm_out.constructor): New.
9167         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
9168         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
9169         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
9170         * varasm.c (in_ctors, in_dtors): New.
9171         (assemble_constructor, assemble_destructor): Remove.
9172         (default_stabs_asm_out_destructor): New.
9173         (default_named_section_asm_out_destructor): New.
9174         (dtors_section, default_dtor_section_asm_out_destructor): New.
9175         (default_stabs_asm_out_constructor): New.
9176         (default_named_section_asm_out_constructor): New.
9177         (ctors_section, default_ctor_section_asm_out_constructor): New.
9178         * output.h: Update declarations.
9179         * c-decl.c (c_expand_body): Use target hooks instead of
9180         assemble_constructor and assemble_destructor.
9181         * profile.c (output_func_start_profiler): Likewise.
9182         * objc/objc-act.c (finish_objc): Likewise.
9183         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
9184         for the constructor.
9185         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
9186
9187         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
9188         (DTORS_SECTION_ASM_OP): Likewise.
9189         (__CTOR_LIST__): Use attribute section when possible.
9190         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
9191
9192         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
9193         ASM_OUTPUT_CONSTRUCTOR.
9194
9195         * config/darwin.c (machopic_asm_out_constructor): New.
9196         (machopic_asm_out_destructor): New.
9197         * config/darwin-protos.h: Update declarations.
9198         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
9199         (ASM_OUTPUT_DESTRUCTOR): Remove.
9200         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
9201         * config/nextstep.c (nextstep_asm_out_constructor): New.
9202         (nextstep_asm_out_destructor): New.
9203         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
9204         (ASM_OUTPUT_DESTRUCTOR): Remove.
9205         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
9206         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
9207         ASM_OUTPUT_*STRUCTOR.
9208         * config/i386/aix386ng.h: Likewise.
9209
9210         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
9211         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
9212         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
9213         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
9214         * config/lynx.h: Likewise.
9215         * config/netware.h: Likewise.
9216         * config/psos.h: Likewise.
9217         * config/alpha/alpha-interix.h: Likewise.
9218         * config/alpha/elf.h: Likewise.
9219         * config/arc/arc.h: Likewise.
9220         * config/arm/aof.h: Likewise.
9221         * config/arm/coff.h: Likewise.
9222         * config/arm/elf.h: Likewise.
9223         * config/c4x/c4x.h: Likewise.
9224         * config/h8300/h8300.h: Likewise.
9225         * config/i386/cygwin.h: Likewise.
9226         * config/i386/djgpp.h: Likewise.
9227         * config/i386/i386-coff.h: Likewise.
9228         * config/i386/i386-interix.h: Likewise.
9229         * config/i386/sco5.h: Likewise.
9230         * config/i386/vsta.h: Likewise.
9231         * config/i386/win32.h: Likewise.
9232         * config/i960/i960-coff.h: Likewise.
9233         * config/ia64/sysv4.h: Likewise.
9234         * config/m68hc11/m68hc11.h: Likewise.
9235         * config/m68k/coff.h: Likewise.
9236         * config/m68k/mot3300.h: Likewise.
9237         * config/m88k/m88k.h: Likewise.
9238         * config/mcore/mcore-pe.h: Likewise.
9239         * config/mcore/mcore.h: Likewise.
9240         * config/mips/elf.h: Likewise.
9241         * config/mips/elf64.h: Likewise.
9242         * config/mips/iris6.h: Likewise.
9243         * config/pa/pa64-hpux.h: Likewise.
9244         * config/rs6000/sysv4.h: Likewise.
9245         * config/sh/sh.h: Likewise.
9246         * config/sparc/litecoff.h: Likewise.
9247
9248         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
9249         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
9250         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
9251         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
9252         (ASM_OUTPUT_DESTRUCTOR): Remove.
9253         * config/a29k/a29k.c: Move include of tree.h.
9254         * config/a29k/udi.h: Delete file.
9255         * config/alpha/alpha.c (vms_asm_out_constructor): New.
9256         (vms_asm_out_destructor): New.
9257         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
9258         (EXTRA_SECTION_FUNCTIONS): Likewise.
9259         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
9260         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
9261         * config/c4x/c4x.c: Move include of tree.h.
9262         * config/clipper/clipper.c (clix_asm_out_constructor): New.
9263         (clix_asm_out_destructor): New.
9264         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
9265         (ASM_OUTPUT_DESTRUCTOR): Remove.
9266         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
9267         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
9268         (TARGET_ASM_CONSTRUCTOR): New.
9269         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
9270         (sco_asm_out_constructor): New.
9271         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
9272         * config/i386/svr3gas.h: Remove stack grows up code.
9273         Remove code duplicated from i386/sysv3.h.
9274         (TARGET_ASM_CONSTRUCTOR): New.
9275         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
9276         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
9277         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
9278         (TARGET_ASM_CONSTRUCTOR): New.
9279         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
9280         (m68hc11_asm_out_destructor): New.
9281         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
9282         (TARGET_ASM_DESTRUCTOR): New.
9283         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
9284         * config/m68k/dpx2.h: Properly undef all the bits inherited from
9285         config/svr3.h pertaining to section manipulation.
9286         * config/m68k/dpx2g.h: Remove #if 0 code.
9287         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
9288         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
9289         (ASM_OUTPUT_CONSTRUCTOR): Remove.
9290         (TARGET_ASM_CONSTRUCTOR): New.
9291         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
9292         (m88k_svr3_asm_out_constructor): New.
9293         (m88k_svr3_asm_out_destructor): New.
9294         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
9295         (ASM_OUTPUT_DESTRUCTOR): Remove.
9296         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
9297         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
9298         * config/rs6000/aix.h: Likewise.
9299         * config/mips/rtems64.h: Don't undef removed constructor related bits.
9300         * config/mips/vxworks.h: Likewise.
9301         * config/rs6000/lynx.h: Likewise.
9302         * config/sh/elf.h: Likewise.
9303         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
9304         (DTORS_SECTION_ASM_OP): New.
9305         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
9306         (ASM_OUTPUT_DESTRUCTOR): Remove.
9307         * config/sparc/sol2-sld-64.h: Likewise.
9308         * config/vax/vax.c (vms_asm_out_constructor): New.
9309         (vms_asm_out_destructor): New.
9310         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
9311         (ASM_OUTPUT_DESTRUCTOR): Remove.
9312         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
9313
9314         * doc/tm.texi (@node Initialization): Update.
9315
9316 2001-08-09  Richard Henderson  <rth@redhat.com>
9317
9318         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
9319         (__do_global_dtors_aux): Use gp-relative static data to avoid
9320         one dynamic relocation.
9321         (__do_frame_setup): Register Java classes.
9322         * config/alpha/crtend.asm (__JCR_END__): New.
9323
9324 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
9325
9326         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
9327         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
9328         (GEN, STAGESTUFF): Add new files.
9329         (insn-constants.h, s-constants, tm-preds.h, s-preds,
9330         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
9331         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
9332         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
9333         as well as insn-codes.h and insn-flags.h in config.h; and no
9334         extra headers in tconfig.h and hconfig.h.
9335
9336         * gencodes.c: Eliminate code to generate predicate declarations
9337         or #defines for md-file constants.
9338         * genconstants.c, genpreds.c: New files.
9339
9340         * i386.md: Re-order guard expressions such that TARGET_64BIT
9341         comes first, when this permits better optimization.  Add
9342         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
9343         why this is desirable.
9344
9345 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
9346
9347         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
9348         (find_fde_for_dso): Remove.
9349         (_Unwind_IteratePhdrCallback): New.
9350         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
9351         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
9352
9353 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9354
9355         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
9356         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
9357
9358 2001-08-09  Graham Stott  <grahams@redhat.com>
9359
9360         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
9361         (vis_no_unit): Use it.
9362         (visualize_no_unit): Add the insn only if room exists.
9363
9364 2001-08-09  Graham Stott  <grahams@redhat.com>
9365
9366         * predict.c (estimate_probability): Replace magic numbers with
9367         appropriate enumeration.
9368
9369 2001-08-09  Graham Stott  <grahams@redhat.com>
9370
9371         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
9372         parameter.
9373         (EXTRACT_FLAGS): Likewise.
9374
9375 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
9376
9377         * config/mips/mips.c    (mips_legitimate_address_p): Check for
9378         CONST_INT in last patch.
9379
9380 2001-08-08  Anthony Green  <green@redhat.com>
9381
9382         * java/class.c (emit_register_classes): Use assemble_jcr if
9383         possible.  Keep the original mechanism as a fallback.
9384         * defaults.h (JCR_SECTION_NAME): Define if we have named section
9385         and weak symbol support.
9386         * crtstuff.c (__JCR_LIST__): Define.
9387         (__JCR_END__): Define.
9388         (_Jv_RegiserClasses): Define weak symbol if possible.
9389         (__do_global_ctors_aux): Register classes for ELF targets with
9390         weak symbol support.
9391
9392 2001-08-08  Kazu Hirata  <kazu@hxi.com>
9393
9394         * dbxout.c: Fix comment formatting.
9395         * dependence.c: Likewise.
9396         * df.c: Likewise.
9397         * diagnostic.c: Likewise.
9398         * dominance.c: Likewise.
9399         * doprint.c: Likewise.
9400         * dwarf2out.c: Likewise.
9401         * dwarfout.c: Likewise.
9402         * emit-rtl.c: Likewise.
9403         * except.c: Likewise.
9404         * explow.c: Likewise.
9405         * expmed.c: Likewise.
9406         * expr.c: Likewise.
9407         * flow.c: Likewise.
9408         * fold-const.c: Likewise.
9409         * function.c: Likewise.
9410
9411 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9412
9413         * global.c (retry_global_alloc): Avoid shadowing allocno.
9414
9415 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
9416
9417         * except.c (remove_fixup_regions): Fix typo.
9418
9419 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
9420
9421         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
9422         unsigned HOST_WIDE_INT to avoid warning.
9423         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
9424         * flow.c (set_block_for_new_insns): Likewise.
9425
9426 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
9427
9428         * sibcall.c (return_value_pseudo): New static variable.
9429         (skip_copy_to_return_value): Handle return_value_pseudo.
9430         (call_ends_block_p): Ensure that return_value_pseudo is set.
9431         (optimize_sibling_and_tail_recursive_call): Discover the
9432         load of pseudo return value in alternate exit block.
9433
9434 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
9435
9436         * calls.c (ECF_ALWAYS_RETURN): New constant.
9437         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
9438         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
9439         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
9440         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
9441         * rtl.c (reg_note_name): New name.
9442         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
9443
9444 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
9445
9446         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
9447
9448 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
9449
9450         * alias.c (get_alias_set): Return a previously calculated
9451         alias set for a VAR_DECL.
9452         * function.c (gen_mem_addressof): Calculate the alias set before
9453         touching the RTL.
9454
9455 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
9456
9457         * predict.def: Set hitrates according our experimental run.
9458
9459 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
9460
9461         * i386.h (HARD_REGNO_RENAME_OK): New macro.
9462
9463 2001-08-08  H.J. Lu <hjl@gnu.org>
9464
9465         * config/mips/mips.c (mips_unique_section): New. Copied from
9466         config/mips/elf.h.
9467
9468         * config/mips/mips-protos.h (mips_unique_section): New
9469         prototype.
9470
9471         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
9472
9473         * config/mips/little.h: New. Generic little endian mips
9474         targets. Only mips*-*-linux* is converted to use it so far.
9475
9476         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
9477         (WCHAR_TYPE): Defined
9478         (WCHAR_TYPE_SIZE): Likewise.
9479         (INIT_SUBTARGET_OPTABS): Likewise.
9480         (BSS_SECTION_ASM_OP): Likewise.
9481         (SBSS_SECTION_ASM_OP): Likewise.
9482         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
9483         (ASM_DECLARE_OBJECT_NAME): Likewise.
9484         (UNIQUE_SECTION): Likewise.
9485         (EXTRA_SECTIONS): Likewise.
9486         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
9487         (ASM_OUTPUT_DESTRUCTOR): Likewise.
9488         (ASM_OUTPUT_DEF): Likewise.
9489         (HANDLE_SYSV_PRAGMA): Removed.
9490         (NO_IMPLICIT_EXTERN_C): Likewise.
9491         (TARGET_MEM_FUNCTIONS): Likewise.
9492         (STARTFILE_SPEC): Likewise.
9493         (ENDFILE_SPEC): Likewise.
9494         (LIB_SPEC): Likewise.
9495         (INVOKE__main): Likewise.
9496         (CTOR_LIST_BEGIN): Likewise.
9497         (CTOR_LIST_END): Likewise.
9498         (DTOR_LIST_BEGIN): Likewise.
9499         (DTOR_LIST_END): Likewise.
9500         (SET_ASM_OP): Likewise.
9501         (ASM_OUTPUT_SOURCE_LINE): Likewise.
9502         (ASM_OUTPUT_DEF): Likewise.
9503         (ASM_OUTPUT_IDENT): Likewise.
9504
9505         * config/mips/mips.h (ASM_SPEC): Undefine before define.
9506         (CPLUSPLUS_CPP_SPEC): Likewise.
9507         (ASM_APP_ON) Redefine only if not defined.
9508         (ASM_APP_OFF): Likewise.
9509         (ASM_OUTPUT_SOURCE_LINE): Likewise.
9510         (ASM_OUTPUT_IDENT): Likewise.
9511
9512         * config.gcc: Update tm_file for Linux/mips.
9513
9514 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
9515
9516         * cselib.c (cselib_record_sets): If insn is predicated, turn
9517         sources into IF_THEN_ELSEs.
9518
9519         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
9520         Turn into define_insn_and_split.
9521
9522         * sched-deps.c: Include "cselib.h".
9523         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
9524         Use cselib to turn memory addresses into VALUEs.
9525         (sched_analyze): Call cselib_init/cselib_finish if necessary.
9526         * sched-int.h (struct sched_info): New member USE_CSELIB.
9527         * sched-ebb.c (ebb_sched_info): Initialize it.
9528         * sched-rgn.c (rgn_sched_info): Likewise.
9529         * Makefile.in (sched-deps.o): Update dependencies.
9530
9531         * cselib.h (cselib_subst_to_values): Declare.
9532         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
9533         that have no value and autoincs to be handled by generating a new
9534         dummy value.
9535
9536 2001-08-08  Graham Stott  <grahams@redhat.com>
9537
9538         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
9539         within fixed length SEQUENCE.
9540
9541 2001-08-08  Graham Stott  <grahams@redhat.com>
9542
9543         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
9544         (diagnostic_prefixing_rule): Likewise.
9545         (diagnostic_line_cutoff): Likewise.
9546         (diagnostic_kind_count): Likewise.
9547
9548 2001-08-08  Graham Stott  <grahams@redhat.com>
9549
9550         * alias.c (find_base_decl): Delete redundent assignment.
9551
9552 2001-08-08  Graham Stott  <grahams@redhat.com>
9553
9554         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
9555         (abs): Uppercase and paranthesize macro parameter.
9556         (MEM_DEPENDENCY): Add whitespace.
9557
9558 2001-08-08  Graham Stott  <grahams@redhat.com>
9559
9560         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
9561         failure check for CONST_INT
9562
9563 2001-08-08  Graham Stott  <grahams@redhat.com>
9564
9565         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
9566         (libcall_dead_p): Likewise.
9567
9568         (mark_used_regs): Constify fmt.
9569         (find_use_as_address): Likewise.
9570
9571 2001-08-08  Graham Stott  <grahams@redhat.com>
9572
9573         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
9574          parameter.
9575
9576 2001-08-08  Graham Stott  <grahams@redhat.com>
9577
9578         * combine.c (combine_simplify_rtx): Update comment and
9579         remove erroneous test.
9580
9581 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9582
9583         * cppinit.c (cpp_finish): Pop the final buffer without comment.
9584         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
9585         take care to avoid multiple no-newline at EOF warnings in that
9586         case.
9587
9588 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
9589
9590         * calls.c (expand_call): Do not emit INSN_SETJMP note.
9591         (emit_library_call_value_1): Likewise.
9592         (emit_call_1): Emit REG_SETJMP note.
9593         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
9594         of INSN_SETJMP
9595         * cselib.c (cselib_process_insn): Likewise.
9596         * flow.c (propagate_block): Likewise.
9597         * loop.c (find_and_verify_loops): Likewise.
9598         * reload.c (find_equiv_regs): Likewise.
9599         * reload1.c (reload): Likewise.
9600         * resource.c (mark_referenced_resources,
9601         mark_set_resources): Likewise.
9602         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
9603         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
9604         * haifa-sched.c (unlink_other_notes): Likewise.
9605         (reemit_notes): Likewise.
9606         * sched-ebb.c (sched_ebb): Likewise.
9607         * sched-rgc.c (sched_region): Likewise.
9608         * rtl.c (note_insn_name): Likewise.
9609         (reg_note_name): Add REG_SETJMP
9610         * rtl.h (reg_note): Add REG_SETJMP.
9611         (insn_note): Remove NOTE_INSN_SETJMP.
9612
9613         * profile.c (branch_prob): Add fake edges for setjmp.
9614
9615 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
9616
9617         * config.gcc: Quote target_cpu_default2 correctly for
9618         powerpc*-*-* targets.
9619
9620 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
9621
9622         * cpplib.h, line-map.h: Update comments.
9623         * cppmain.c (printer_init): Move inline.
9624         (maybe_print_line, print_line): Take a map pointer.
9625         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
9626         (cb_file_change): Don't use prior value of print.map.
9627
9628 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
9629
9630         * doc/install.texi: Document fine-grained multilib configuration.
9631
9632 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
9633
9634         * rtlanal.c (find_first_parameter_load): Call note_stores
9635         only on the instructions.
9636
9637 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
9638
9639         * alias.c (nonlocal_mentioned_p):
9640         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
9641         * calls.c (emit_call_1): Likewise.
9642         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
9643         * cselib.c (cselib_process_insn): Likewise.
9644         * df.c (df_insns_modify): Likewise.
9645         * flow.c (need_fake_edge_p): Likewise.
9646         (propagate_one_insn): Likewise.
9647         * haifa-sched.c (reemit_notes): Likewise.
9648         * integrate.c (copy_insn_list): Likewise.
9649         * jump.c (delete_prior_computation): Likewise.
9650         * local-alloc.c (validate_equiv_mem): Likewise.
9651         * loop.c (scan_loop): Likewise.
9652         * predict.c (estimate_probability): Likewise.
9653         * reload.c (reload): Likewise.
9654         * sched-deps (sched_analyze): Likewise.
9655         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
9656         * gcse.c (compute_hash_table): Likewise.
9657         (mark_call): Likewise.
9658         (store_killed_in_insn): Likewise.
9659
9660 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
9661
9662         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
9663
9664 2001-08-06  Richard Henderson  <rth@redhat.com>
9665
9666         * varasm.c (assemble_gc_entry): Remove.
9667         * output.h: Likewise.
9668
9669 2001-08-06  Richard Henderson  <rth@redhat.com>
9670
9671         * varasm.c (assemble_constructor): Take a symbol_ref and a
9672         priority instead of a bare string.  Move priority handling
9673         here from cp/decl2.c.
9674         * output.h: Update decls.
9675
9676         * c-decl.c (c_expand_body): Update calls to assemble_constructor
9677         and assemble_destructor.
9678         * profile.c (output_func_start_profiler): Likewise.
9679         * objc/objc-act.c (finish_objc): Likewise.
9680         (build_module_descriptor): Return the symbol not the symbol name.
9681
9682 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
9683
9684         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
9685         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
9686         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
9687         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
9688         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
9689         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
9690
9691 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9692
9693         * cpperror.c (print_containing_files): Moved to line-map.c.
9694         (print_location): line-map.c handles re-listing or otherwise.
9695         * cpphash.h (struct lexer_state): Remove next_bol.
9696         (struct cpp_buffer): Remove include_stack_listed.
9697         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
9698         Remove faked buffer handling.
9699         (_cpp_do_file_change): Tweak.
9700         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
9701         * cppmain.c (struct printer): Remove filename.
9702         (print_line, cb_file_change): Update accordingly.
9703         * line-map.c: Include intl.h.
9704         (init_line_maps): Initialize last_listed.
9705         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
9706         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
9707         (print_containing_files): New.
9708         * line-map.h (struct line_maps): New member last_listed.
9709         (print_containing_files, INCLUDED_FROM): New.
9710         * Makefile.in: Update.
9711         * po/POTFILES.in: Add line-map.c.
9712
9713 2001-08-06  Richard Henderson  <rth@redhat.com>
9714
9715         * except.c (convert_from_eh_region_ranges_1): Never mark
9716         USE or CLOBBER insns as throwing.
9717
9718         * expr.c (store_constructor): Don't clobber memory targets.
9719
9720 2001-08-06  Andreas Jaeger  <aj@suse.de>
9721
9722         * profile.c (branch_prob): Remove unused variable insn.
9723
9724         * Makefile.in (local-alloc.o): Add dependency on except.h.
9725
9726         * local-alloc.c: Include except.h for can_throw_internal prototype.
9727
9728 2001-08-06  Richard Henderson  <rth@redhat.com>
9729
9730         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
9731         * function.c (expand_main_function): Implement it.
9732         * doc/tm.texi: Document it.
9733
9734 2001-08-06  Stan Shebs  <shebs@apple.com>
9735
9736         * doc/install.texi: Document powerpc-*-darwin* details.
9737
9738 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
9739
9740         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
9741         (ASM_CPU_SPEC): Move back to rs6000.h
9742         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
9743
9744         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
9745
9746         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
9747         readded.
9748
9749         * config/rs6000/linux64.h: Ditto.
9750
9751         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
9752         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
9753         nothing.
9754
9755         Remove accidently readded definitions of FUNCTION_PROLOGUE,
9756         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
9757
9758         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
9759         to rs6000.h
9760
9761 2001-08-05  Richard Henderson  <rth@redhat.com>
9762
9763         * local-alloc.c (update_equiv_regs): Do not move insns that
9764         can throw.
9765
9766 2001-08-05  Jan Hubicka  <jh@suse.cz>
9767
9768         * Makefile.in (reload1.o): Add dedendancy on except.h
9769         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
9770         prototypes.
9771         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
9772         indicating wehther edges has been cleaned up.
9773         * reload1.c: Inlucde except.h
9774         (fixup_abnormal_edges): Accept deleted insns.
9775         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
9776         after combine.
9777
9778 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
9779
9780         * cpplib.c (do_line): Correct line number after pop_buffer.
9781
9782 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9783
9784         PR preprocessor/3824
9785         * line-map.c: Update comments.
9786         * line-map.h: Update comments.
9787         * tradcif.y: Don't consider large numbers unsigned.
9788
9789 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9790
9791         PR preprocessor/3081
9792         * c-lex.c (map): New.
9793         (cb_file_change): Update map and use it.
9794         (cb_def_pragma, cb_define, cb_undef): Use map and line.
9795         (c_lex): Update to use map.
9796         * cpperror.c (print_location): Move to using logical line numbers.
9797         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
9798         (cpp_make_system_header): Similarly.
9799         (_cpp_execute_include): Stop line numbering hacks.  Store the
9800         line we will return to.
9801         * cpphash.h (CPP_BUF_LINE): Remove.
9802         (struct cpp_buffer): Remove lineno and pseudo_newlines.
9803         Add map and return_to_line.
9804         (_cpp_do_file_change): Update.
9805         * cppinit.c (cpp_start_read): Update line kludge.
9806         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
9807         (trigraph_ok): Use logical line numbers for diagnostics.
9808         (skip_block_comment): Likewise.
9809         (skip_whitespace): Likewise.
9810         (skip_line_comment): Use pfile->line instead.
9811         (_cpp_lex_token): Update to use logical line numbering exclusively.
9812         Handle BOL locally.  Accept new lines in directives, but keep
9813         pfile->line decremented.  Diagnostics use logical lines.  Update
9814         directive handling.
9815         * cpplib.c (SEEN_EOL): New.
9816         (skip_rest_of_line, check_eol): Use it.
9817         (end_directive): Increase line number when accepting the newline
9818         at the end of a directive.
9819         (run_directive): Simplify.
9820         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
9821         (_cpp_do_file_change): Update to take buffer line number as an
9822         argument, and store the current map in the cpp_reader.  Remove
9823         line number kludges.
9824         (_cpp_do__Pragma): Restore output position after a _Pragma.
9825         (cpp_push_buffer): Don't set output line or lineno.
9826         (_cpp_pop_buffer): Transfer more info from a faked buffer.
9827         Remove line kludge.  Set output_line.
9828         * cppmacro.c (builtin_macro): Update handling of __LINE__.
9829         (parse_arg): Use logical lines.
9830         (save_lookahead_token): Save EOFs too now.
9831         * cppmain.c (struct printer): Fix comments.
9832         (printer_init): Simplify, let caller do errors.
9833         (scan_translation_unit, check_multiline_token, dump_macro): Update.
9834         (maybe_print_line): Simplify.
9835         (print_line): Don't print a linemarker if -P.
9836         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
9837         (cb_file_change): Simplify.
9838         * line-map.h (LAST_SOURCE_LINE): Fix.
9839         (CURRENT_LINE_MAP): New.
9840
9841 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
9842
9843         * doloop.c (doloop_modify_runtime): Properly compute number of
9844         iterations if loop was unrolled.
9845
9846         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
9847         if their CSELIB_VAL_PTRs are.
9848
9849         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
9850         (setup_spill_pointers): Initialize it.
9851         (spill_restore_mem): Set it.
9852         (do_spill, do_restore): Use it to add REG_INC note.
9853         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
9854
9855         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
9856         asms if other insns are available.
9857
9858         * config/ia64/ia64.c (condop_operator): New predicate.
9859         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
9860         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
9861         patterns.
9862
9863         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
9864         temporary register than directly using a MEM.
9865
9866 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9867
9868         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
9869         parameter in last change.
9870
9871 2001-08-04  Zack Weinberg  <zackw@panix.com>
9872
9873         * sparc.md: Don't use #if inside C test expression.
9874
9875 2001-08-04  Richard Henderson  <rth@redhat.com>
9876
9877         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
9878
9879 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9880
9881         * cpphash.h (struct cpp_reader): New member directive_line.
9882         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
9883         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
9884         do_pragma): Pass line to callbacks.
9885         (start_directive): Record line of directive.
9886         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
9887         cb_include): Similarly.
9888         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
9889         Similarly.
9890
9891 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9892
9893         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
9894         comment.
9895
9896 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
9897
9898         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
9899
9900         * reload1.c (fixup_abnormal_edges): New static function.
9901         (reload): Use it.
9902
9903         * flow.c (need_fake_edge_p): New function.
9904         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
9905         avoid call insn to be very last insn in the insn stream.
9906
9907         * profile.c (branch_prob): Call flow_call_edges_add instead of
9908         doing that by hand; cleanup cfg to re-merge basic blocks once
9909         we are done.
9910
9911 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
9912
9913         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
9914         are also on line-map.h.
9915         * cppfiles.c (stack_include_file): Update.
9916         * cpphash.h (struct cpp_buffer): New member return_at_eof.
9917         (_cpp_pop_buffer): New.
9918         * cppinit.c (cpp_destroy, cpp_finish): Update.
9919         (do_includes): Mark each buffer to return at EOF.
9920         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
9921         return as requested.
9922         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
9923         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
9924         * cpplib.h (cpp_pop_buffer): Remove.
9925         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
9926         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
9927         buffers.
9928         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
9929         to pop buffers.
9930         (do_preprocessing): Update.
9931         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
9932         * c-parse.in (_yylex): Similarly.
9933         * scan-decls.c (scan_decls): Similarly.
9934         * line-map.h: Update comments.
9935
9936         * objc/Make-lang.in (objc-act.o): Update dependencies.
9937
9938 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9939
9940         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
9941         and soft register for operand 0.
9942         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
9943
9944 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9945
9946         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
9947         register for operand 0.
9948         ("bitcmpqi_z_used"): Allow memory for operand 0.
9949         (split "bitcmpqi"): New split to handle address reg as operand 1.
9950
9951 2001-08-04  Andreas Jaeger  <aj@suse.de>
9952
9953         * gcse.c: Revert Daniel's last patch.
9954
9955 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
9956
9957         * sparc-protos.h: Add prototypes for fp_zero_operand and
9958         reg_or_0_operand.
9959         * sh-protos.h: Add prototype for fpul_operand.
9960
9961 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
9962
9963         * doc/extend.texi (Other Builtins): Fix typo in last change.
9964
9965 2001-08-03  Richard Henderson  <rth@redhat.com>
9966
9967         * target.h (gcc_target): Add asm_out.named_section,
9968         section_type_flags, have_named_sections.
9969         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
9970         (TARGET_HAVE_NAMED_SECTIONS): New.
9971         (TARGET_SECTION_TYPE_FLAGS): New.
9972
9973         * Makefile.in (toplev.o): Depend on TARGET_H.
9974         (varasm.o, dbxout.o): Likewise.
9975         * c-common.c (decl_attributes): Check targetm.have_named_sections
9976         instead of ifdef ASM_OUTPUT_SECTION_NAME.
9977         * dbxout.c (dbxout_function_decl): Likewise.
9978         (dbxout_function_end): Likewise.
9979         * toplev.c (compile_file): Likewise.
9980         * varasm.c (exception_section): Likewise.
9981         * cp/decl2.c (finish_objects): Likewise.
9982
9983         * defaults.h (EH_FRAME_SECTION): Remove.
9984         (EH_FRAME_SECTION_ASM_OP): Remove.
9985         (EH_FRAME_SECTION_NAME): New.
9986         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
9987         (UNIQUE_SECTION_P): Remove.
9988         * dwarf2out.c (SECTION_FORMAT): Remove.
9989         (ASM_OUTPUT_SECTION): Remove.
9990         (output_call_frame_info): Use named_section_flags.
9991         (output_comp_unit, dwarf2out_start_source_file): Likewise.
9992         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
9993         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
9994         * varasm.c (in_eh_frame, eh_frame_section): Remove.
9995         (named_section_flags): New.
9996         (named_section): Use it and targetm.section_type_flags.
9997         (resolve_unique_section): New.
9998         (assemble_start_function): Use it.
9999         (asm_emit_uninitialised, assemble_variable): Likewise.
10000         (default_section_type_flags): New.
10001         (default_no_named_section, default_elf_asm_named_section): New.
10002         (default_coff_asm_named_section, default_pe_asm_named_section): New.
10003         * output.h: Update varasm.c decls.
10004         (SECTION_*): New flags.
10005
10006         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
10007         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
10008
10009         * config/elfos.h (UNIQUE_SECTION_P): Remove.
10010         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
10011         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
10012         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
10013         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
10014         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
10015         * config/mips/elf.h, config/mips/elf64.h: Likewise.
10016         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
10017         * config/pa/pa64-hpux.h,
10018
10019         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
10020         (TARGET_ASM_NAMED_SECTION): New.
10021         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
10022         * config/alpha/vms.h, config/arm/coff.h: Likewise.
10023         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
10024         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
10025         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
10026         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
10027         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
10028         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
10029         * config/i386/sco5.h, config/i386/win32.h: Likewise.
10030         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
10031         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
10032         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
10033         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
10034         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
10035         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
10036         * config/sparc/sysv4.h: Likewise.
10037
10038         * config/nextstep.h: Error until named sections implemented.
10039
10040         * config/a29k/a29k.c (a29k_asm_named_section): New.
10041         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
10042         (vms_section_type_flags, vms_asm_named_section): New.
10043         * config/arm/arm.c (arm_elf_asm_named_section): New.
10044         * config/avr/avr.c (asm_output_section_name): Remove.
10045         * config/avr/avr-protos.h: Update.
10046         * config/c4x/c4x.c (c4x_asm_named_section): New.
10047         * config/h8300/h8300.c (h8300_asm_named_section): New.
10048         * config/i386/i386.c (sco_asm_named_section): New.
10049         * config/i386/winnt.c (SECTION_PE_SHARED): New.
10050         (i386_pe_section_type_flags): New.
10051         (i386_pe_asm_named_section): New.
10052         * config/i386/i386-protos.h: Update.
10053         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
10054         * config/mcore/mcore.c (mcore_asm_named_section): New.
10055         * config/mips/mips.c (iris6_asm_named_section): New.
10056         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
10057         instead of UNIQUE_SECTION_P.
10058         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
10059         (xcoff_asm_named_section): New.
10060         * config/sh/sh.c (sh_asm_named_section): New.
10061         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
10062
10063         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
10064         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
10065         (EH_FRAME_SECTION_NAME): New.
10066         (EXCEPTION_SECTION): New.
10067         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
10068         (DEBUG_*_SECTION): Remove.
10069         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
10070         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
10071         (EH_FRAME_SECTION_ASM_OP): Remove.
10072
10073         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
10074         (ASM_OUTPUT_SECTION_NAME): Remove.
10075         (TARGET_ASM_NAMED_SECTION): New.
10076         (TARGET_HAVE_NAMED_SECTIONS): New.
10077         (TARGET_SECTION_TYPE_FLAGS): New.
10078         (EH_FRAME_SECTION_ASM_OP): Remove.
10079         (EH_FRAME_SECTION_NAME): New.
10080
10081 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
10082
10083         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
10084         for complex expressions when cfun == 0.
10085         * doc/extend.texi: Document that __builtin_constant_p can be
10086         used in data initializers as well as functions.
10087
10088 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
10089
10090         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
10091         variable I locally, instead of expecting a declaration in the
10092         calling context.
10093
10094 2001-08-03  Richard Henderson  <rth@redhat.com>
10095
10096         * except.c (collect_one_action_chain): Add an explicit cleanup
10097         action if regions surrounding a catch were encoded entirely
10098         within the call-site entry.
10099
10100 2001-08-03  Richard Henderson  <rth@redhat.com>
10101
10102         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
10103         don't take REGNO of a non-register.
10104
10105 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10106
10107         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
10108         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
10109         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
10110         (__gthread_mutex_init_function): New function for mutex initialization.
10111
10112 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
10113
10114         * Makefile.in: Revert screwed up commit.
10115
10116 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10117
10118         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
10119         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
10120         merged by linker script to get a final _exit().
10121         (__do_global_dtors): New for destructor handling in specific exit
10122         section.
10123         (__do_global_ctors): New for constructors in specific install section.
10124         (__map_data_section): Map data sections before running constructors.
10125         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
10126         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
10127         (DTORS_SECTION_ASM_OP): Likewise.
10128         (CTORS_SECTION_FUNCTION): Define to force a reference to
10129         __do_global_ctors.
10130         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
10131
10132 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
10133
10134         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
10135
10136         * Makefile.in: Add df.h to gcse.c dependencies.
10137
10138 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10139
10140         * varasm.c (output_constant_def_contents): Use for the length of a
10141         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
10142         depending on which is larger.
10143
10144 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
10145
10146         * gcse.c: Include df.h for use as a dataflow analyzer.
10147         Remove regvec.
10148         Declaration of reg_set_info: gone.
10149         New df_analyzer variable used by store motion.
10150         (reg_set_info): Deleted.
10151         (mark_mem_regs): New function, analyze regs used by a mem.
10152         (store_ops_ok): Use dataflow analyzer results to determine if
10153         necessary regs are changed in the block.
10154         (find_moveable_store): Remove check for symbol ref, we can handle
10155         much more complex expressions now.
10156         (compute_store_table): Remove most of the code, it's unnecessary
10157         now that the dataflow analyzer records the info for us.
10158         (store_killed_after): Add parameter to say whether to do the
10159         store_ops_okay test, used to speed up testing when we already know
10160         the answer, and just want to know if the store itself was killed.
10161         (build_store_vector): Largely rewritten to calculate the various
10162         vectors properly, and somewhat optimized.
10163         (store_motion): Init the df_analyzer, get REG_DEF chains.
10164         Also handle trapping expressions (since mems almost always trap)
10165         (simple_mem): Redefine what a simple mem is.
10166
10167 2001-08-03  DJ Delorie  <dj@redhat.com>
10168
10169         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
10170         set from a constant part of the condition.
10171
10172 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
10173
10174         * mkdeps.c (deps_add_default_target): Make local variable
10175         ``start'' a const char pointer.
10176         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
10177
10178 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10179
10180         * doc/install.texi (Configuration): Fix markup.
10181         (Specific, i?86-*-udk): Likewise.
10182         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
10183         --with-gnu-ld.
10184         Document --enable-threads and --enable-libgcj status.
10185         (Specific, mips-sgi-irix*): Canonicalize triples.
10186         (Specific, mips-sgi-irix5): Warn about problems with this config.
10187         Mention required GNU as patch.
10188         Native assembler problems are fixed.
10189         (Specific, mips-sgi-irix6): Update O32 ABI support status.
10190         Document --enable-threads and --enable-libgcj status.
10191
10192 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
10193
10194         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
10195         of mkinstalldirs.
10196
10197 2001-08-03  Richard Henderson  <rth@redhat.com>
10198
10199         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
10200         constant data.
10201
10202 2001-08-03  Richard Henderson  <rth@redhat.com>
10203
10204         * rtlanal.c (find_first_parameter_load): Stop if we
10205         reach a CODE_LABEL at BOUNDARY.
10206
10207 2001-08-03  Richard Henderson  <rth@redhat.com>
10208
10209         * config/alpha/alpha.md (force_movdi): New insn.
10210         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
10211         Tweek FRP marking of VMS prologue insns.
10212         * config/alpha/vms.h (EPILOGUE_USES): New.
10213
10214 2001-08-02  Richard Henderson  <rth@redhat.com>
10215
10216         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
10217
10218 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
10219
10220         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
10221         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
10222         config/convex/convex.h, config/d30v/d30v.c,
10223         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10224         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
10225         config/mips/mips.h, config/mn10200/mn10200.h,
10226         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
10227         config/v850/v850.h, config/vax/openbsd.h,
10228         config/vax/openbsd1.h, config/vax/ultrix.h,
10229         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
10230         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
10231         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
10232         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
10233         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
10234         in comments and documentation.
10235
10236 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10237
10238         * line-map.c: New.
10239         * line-map.h: New.
10240         * Makefile.in (line-map.o): New.
10241         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
10242         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
10243         * cpperror.c (print_containing_files): Similarly.
10244         (print_location): Update.  Don't output a space before _Pragma.
10245         * cppfiles.c (stack_include_file): Set to line 1 immediately.
10246         (stack_include_filee, cpp_make_system_header): Update.
10247         (_cpp_execute_include): Get logical line number right for calling
10248         as-yet-unterminated #include.
10249         * cpphash.h (struct cpp_reader): Add line_maps.
10250         (_cpp_do_file_change): Update.
10251         * cppinit.c (cpp_create_reader): Initialize line maps.
10252         (cpp_destroy): Destroy line maps.
10253         (cpp_start_read): Get logical line number right.
10254         * cpplex.c (parse_string): Only warn once for multi-line strings.
10255         Use boolean variable for null warning.
10256         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
10257         already.
10258         (do_include_common): End the directive early.
10259         (do_line): Don't warn about out-of-range lines in preprocessed
10260         source.  Update.  Remove unused variables.
10261         (_cpp_do_file_change): Update for new line mapping.
10262         (pragma_cb): New typedef.
10263         (cpp_register_pragma): Stop looking ahead before calling the
10264         handler.  Clean up.
10265         (do_pragma_system_header): End directive early.
10266         (cpp_get_line_maps): New.
10267         (cpp_pop_buffer): Fudge logical line.  Update.
10268         * cpplib.h: Include line-map.h
10269         (enum cpp_fc_reason): Remove.
10270         (struct cpp_file_change): Update.
10271         (cpp_get_line_maps): New.
10272         * cppmain.c (struct_printer): New member map.
10273         (cb_file_change): Update for new mappings.
10274         * fix-header.c (cb_file_change): Similarly.
10275
10276 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
10277
10278         * Makefile.in (libgcc.mk): Define mkinstalldirs.
10279         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
10280
10281 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
10282
10283         * config/vax/vax.c: include expr.h.
10284
10285 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
10286
10287         * Makefile.in ($(srcdir)/configure): Only rebuild in
10288         maintainer mode.
10289         ($(srcdir)/config.in): Only define in maintainer mode.
10290         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
10291
10292 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
10293
10294         * doc/install.texi (Install GCC: Binaries): Update Bull info.
10295
10296 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10297
10298         * gcc.c (set_collect_gcc_options): New function, split out from
10299         main.
10300         Ignore elided switches.
10301         (do_spec_1): Invoke before executing command.
10302         (set_input): Export.
10303         Move declaration ...
10304         * gcc.h (set_input): ... here.
10305         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
10306         file.
10307
10308 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
10309
10310         Kill -fhonor-std.
10311         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
10312         interaction.
10313         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
10314
10315 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
10316
10317         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
10318         for the unnamed instructions it expands to.
10319
10320 2001-08-02  Richard Henderson  <rth@redhat.com>
10321
10322         * regclass.c (call_really_used_regs): Conditionally define.
10323         (init_reg_sets_1): Don't use it if not defined.
10324         (fix_register): Similarly, don't set it.
10325
10326 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10327
10328         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
10329         Correct comment that had been missed in the previous change.
10330
10331 2001-08-01  Stan Shebs  <shebs@apple.com>
10332
10333         * config/darwin.c (machopic_stub_name): Try matching by name.
10334         (update_stubs): New function.
10335         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
10336         unconditionally.
10337
10338 2001-08-01  Richard Henderson  <rth@redhat.com>
10339
10340         * except.c (output_function_exception_table): Use assemble_align.
10341         * varasm.c (assemble_eh_label): Remove.
10342         (assemble_eh_align, assemble_eh_integer): Remove.
10343
10344 2001-08-01  Robert Lipe  <robertl@caldera.com>
10345
10346         * dwarfout.c: Remove reference to README.DWARF.
10347
10348 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
10349
10350         * regclass.c (call_really_used_regs): New array for registers which
10351         are actually used by a call.
10352         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
10353         new array.
10354         (fix_register): Set call_really_used too.
10355         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
10356         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
10357
10358 2001-08-01  Richard Henderson  <rth@redhat.com>
10359
10360         * read-rtl.c (read_name): Consider \r whitespace.
10361
10362 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
10363
10364         * config.gcc: Recognize powerpc-*-netbsd*.
10365
10366         * doc/install.texi (Host/target specific installation notes for
10367         GCC): Mention powerpc-*-netbsd*.
10368
10369         * config/rs6000/netbsd.h: New file.
10370         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
10371         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
10372         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
10373         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
10374         (TARGET_VERSION): Redefine.
10375
10376         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
10377         mcall-netbsd as a match for mcall-sysv.
10378         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
10379         (ncrti.S, ncrtn.S): New targets.
10380         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
10381
10382         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
10383         "netbsd' as a V4 ABI.
10384         (ASM_SPEC): Check for -mcall-netbsd.
10385         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
10386         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
10387         (LIB_SPEC, ENDFILE_SPEC): Ditto.
10388         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
10389         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
10390         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
10391         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
10392
10393         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
10394         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
10395
10396 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
10397
10398         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
10399         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
10400         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
10401         including "unwind-pe.h".
10402
10403 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
10404
10405         * rs6000.md (define_splits): Kill unused constraints.
10406
10407 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
10408                               Jan Hubicka  <jh@suse.cz>
10409
10410         * function.c (thread_prologue_and_epilogue_insns): Kill code
10411         dealing with non-existent CFG.
10412
10413 2001-08-01  Kazu Hirata  <kazu@hxi.com>
10414
10415         * alias.c: Fix comment formatting.
10416         * bitmap.c: Likewise.
10417         * builtins.c: Likewise.
10418         * calls.c: Likewise.
10419         * c-common.c: Likewise.
10420         * c-decl.c: Likewise.
10421         * c-dump.c: Likewise.
10422         * c-lex.c: Likewise.
10423         * collect2.c: Likewise.
10424         * combine.c: Likewise.
10425         * conflict.c: Likewise.
10426         * cppfiles.c: Likewise.
10427         * cppinit.c: Likewise.
10428         * cpplex.c: Likewise.
10429         * cpplib.c: Likewise.
10430         * cppmacro.c: Likewise.
10431         * cppspec.c: Likewise.
10432         * c-pragma.c: Likewise.
10433         * crtstuff.c: Likewise.
10434         * cse.c: Likewise.
10435         * cselib.c: Likewise.
10436         * c-semantics.c: Likewise.
10437         * c-typeck.c: Likewise.
10438
10439 2001-08-01  H.J. Lu <hjl@gnu.org>
10440
10441         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
10442
10443 2001-08-01  H.J. Lu <hjl@gnu.org>
10444
10445         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
10446
10447 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
10448
10449         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
10450         contextualizing Objective-C class name lookup by the lexer.
10451         (typespec_reserved_nonattr): Disable ObjC class name lookup after
10452         seeing a TYPESPEC.
10453         (protocoldef): Add support for forward @protocol declarations.
10454         (yylexname): Suppress ObjC class name lookup in certain contexts;
10455         re-enable after lookup is complete.
10456         (_yylex): Re-enable ObjC class name lookup when certain
10457         punctuation marks are seen.
10458
10459         * objc/objc-act.c (check_protocol_recursively): New function used
10460         for finding circular dependencies in protocols.
10461         (objc_declare_protocols): New function for handling forward
10462         @protocol declarations.
10463         (receiver_is_class_object): Detect the case when 'self' is used
10464         inside of a class method.
10465         (build_message_expr): Issue a warning if class method is desired
10466         but instance method is found instead.
10467         (conforms_to_protocol): Streamline.
10468         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
10469         protocol Foo, even if 'Bar foo' does not.
10470         (check_protocols): Streamline.
10471         (start_protocol): Add checks for circular and duplicate protocol
10472         definitions.
10473         (encode_aggregate_within): For typedefs of structs, encode the
10474         underlying struct.
10475         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
10476         (objc_declare_protocols): New prototype.
10477
10478 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10479
10480         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
10481         * cpplex.c (handle_newline): Update prototype.  Maintain logical
10482         line number.
10483         (skip_escaped_newlines, skip_block_comment, parse_string):
10484         Update accordingly.
10485         (_cpp_lex_token): Update, and store token position within the token.
10486         * cpplib.h (struct cpp_token): Add line and column entries.
10487         * cppmacro.c (replace_args): Position stringified tokens correctly.
10488
10489 2001-08-01  Andreas Jaeger  <aj@suse.de>
10490
10491         * basic-block.h: Add prototype for last_loop_beg_note.
10492
10493 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
10494
10495         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
10496         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
10497         comment.
10498         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
10499         while handling WITH_CLEANUP_EXPR node. Use second operand calling
10500         expand_decl_cleanup.
10501         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
10502         the first RTX.
10503         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
10504         operand while calling simple_cst_equal.
10505         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
10506         operand is the cleanup expression, the third is the RTL_EXPR.
10507         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
10508
10509 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
10510
10511         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
10512
10513 2001-07-31  matthew green  <mrg@eterna.com.au>
10514
10515         * config.gcc (i386-*-netbsdelf): New description.
10516         * config/i386/netbsd-elf.h: New file.
10517
10518 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
10519
10520         * loop.c (check_dbra_loop): Use single_set to compute
10521         jump_label.
10522
10523 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
10524
10525         PowerPC reorg and support for powerpc64-*-linux*.
10526
10527         Also fixes emitting of constants on 32 bit and 64 bit
10528         platforms.
10529
10530         * config.gcc: powerpc64-*-linux* is a new target.
10531         Things that needed aix.h now also include xcoff.h
10532
10533         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
10534         xcoff.h.
10535         Move AIX specific stuff into aix.h.
10536         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
10537         with more than just XCOFF now.
10538         (SET_ASM_OP): Remove, now defined where needed.
10539         (FUNCTION_PROLOGUE): New macro definition.
10540         (FUNCTION_EPILOGUE): New macro definition.
10541         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
10542
10543         * config/rs6000/xcoff.h: New file.
10544
10545         * config/rs6000/linux64.h: New file.
10546
10547         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
10548
10549 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
10550
10551         * rs6000.c (print_operand_address): Handle ELF syntax.
10552         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
10553         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
10554         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
10555
10556 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
10557
10558         * rs6000.c (rs6000_override_options): Only disable
10559         flag_function_sections for XCOFF.
10560         (exact_log2_cint_operand): New predicate.
10561         (reg_or_{add,sub}_cint64_operand): New predicates.
10562         (add_operand): Compare CONST_INT with fewer function calls.
10563         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
10564         (print_operand, case 'p'): Ensure positive operand.
10565         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
10566         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
10567         (PREDICATE_CODES): Add new predicates.
10568         * rs6000.md (addsi3): Split 32-bit constants more correctly.
10569         (divsi3, modsi3): Ensure positive power-of-2.
10570         (adddi3): Use new predicate.  Split 32-bit constants more
10571         correctly.  Re-arrange splitter to handle any constant.
10572         (subdi3): Use new predicate.
10573         (divdi3, moddi3): Ensure positive power-of-2.
10574         (movdi): Use rs6000_emit_set_const.
10575         (load_toc_v4_pic_di): Delete.
10576
10577 2001-07-31  Graham Stott <grahams@redhat.com>
10578
10579         * function.c (pad_below): Revert 2001-07-26 patch.
10580
10581 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
10582
10583         * reg-stack (convert_regs_1): Fix best edge condition.
10584
10585 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
10586
10587         * jump.c (duplicate_loop_exit_test): Better test for jumps
10588         entering the loop; create loop pre_header.
10589
10590 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
10591
10592         * doc/install.texi: Add s390 and s390x as new targets.
10593         * doc/invoke.texi: Add documentation of S/390 and zSeries
10594         target options.
10595         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
10596
10597 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
10598
10599         * config/m68k/m68k.md: Replace all general_operand with
10600         nonimmediate_operand for all destinations.
10601         * config/m68k/m68k.c (not_sp_operand): Likewise.
10602
10603 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
10604
10605         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
10606
10607 2001-07-30  Richard Henderson  <rth@redhat.com>
10608
10609         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
10610         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
10611
10612 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
10613
10614         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
10615         Add missing doc strings
10616         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
10617         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
10618
10619 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
10620
10621         * i386.c (ix86_output_main_function_alignment_hack): New function.
10622         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
10623
10624         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
10625         edges by EDGE_DFS_BACK flag.
10626         (dump_edge_info): Add dfs_back flag.
10627         * basic-block.h (EDGE_DFS_BACK): New constant.
10628         (mark_dfs_back_edges): Declare.
10629         * alias.c (loop_p): Remove.
10630         (mark_constant_function): Use mark_dfs_back_edges.
10631
10632         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
10633         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
10634         (compensate_edge): Break out from ...
10635         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
10636         (convert_regs_2): Set block_done once block is really done;
10637         Do updating of the predecessors counts.
10638
10639         * toplev.c (rest_of_compilation): Recompute block_for_insn
10640         before post-reload cfg_cleanup.
10641         * function.c (thread_prologue_epilogue_insns):
10642         Call set_block_for_new_insns when emitting prologue directly.
10643
10644 2001-07-30  Andreas Jaeger  <aj@suse.de>
10645
10646         * jump.c: Add prototype for mark_modified_reg.
10647
10648         * cse.c (set_live_p): Add unused attribute.
10649
10650         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
10651         overflow.
10652         (scan_for_source_files): Use long for count to avoid overflow.
10653         (output_data): Likewise.
10654         (output_data): Don't use string concatatenation to silence gcc
10655         -traditional.
10656
10657         * predict.c: Fix typos and grammar.
10658
10659         * gcse.c (insert_insn_end_bb): Remove unused variables.
10660
10661 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
10662
10663         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
10664         (attempt_auto_inc): LIkewise.
10665         (mark_used_reg): Likewise.
10666         (try_pre_increment_1): Likewise.
10667         * regclass.c (regclass): Likewise.
10668         * global.c (allocno_compare): Update comment; change scaling factor.
10669         * local-alloc.c (QTY_CMP_PRI): Likewise.
10670         * regs.h (REG_FREQ_FROM_BB): New.
10671         (REG_FREQ_MAX): Likewise.
10672
10673 2001-07-30  H.J. Lu <hjl@gnu.org>
10674
10675         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
10676         -D_GNU_SOURCE.
10677
10678 2001-07-30  H.J. Lu  (hjl@gnu.org)
10679
10680         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
10681         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
10682         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
10683
10684 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
10685
10686         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
10687         as -mthumb-interwork when -mcpu=arm7 is specified.
10688
10689 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
10690
10691         * predict.def (noreturn, loop branch, loop exit): Mark as first
10692         match heuristics.
10693
10694 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
10695
10696         * combine.c (try_combine): Avoid barrier after noop jumps.
10697
10698 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10699
10700         * cpphash.h (struct cpp_reader): Remove import_warning.
10701         * cpplib.c (skip_rest_of_line): Don't bother turning off
10702         macro expansion.
10703         (parse_include): Move include handling to...
10704         (do_include_common): ... here.  Move import warning from...
10705         (do_import): ... here.
10706         (do_pragma_poison): Don't do a callback for poison identifiers.
10707         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
10708         * cppmain.c (setup_callbacks): Similarly.
10709
10710 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
10711
10712         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
10713         handle multiple sets.
10714         * except.c (sjlj_mark_call_sites): .... here.
10715         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
10716
10717 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
10718
10719         Suggested by Richard Henderson and Richard Kenner:
10720         * combine.c (recog_for_combine): Use the fake recog
10721         only if instruction does not match.
10722         * rtl.h (NOOP_MOVE_INSN_CODE): New.
10723         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
10724
10725         * combine.c (try_combine): Discover noop jump as direct jump.
10726
10727 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
10728
10729         * df.c (df_rd_global_compute): Add successors to worklist, not
10730         current item.
10731         (df_ru_global_compute): Ditto.
10732
10733 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
10734
10735         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
10736         increment REG_N_SETS.
10737
10738 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
10739
10740         * sbitmap.h: New prototype for sbitmap_a_xor_b.
10741
10742         * sbitmap.c (sbitmap_a_xor_b): New function.
10743         ifdef the basic block stuff on IN_GCC.
10744
10745 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10746
10747         * cppexp.c (parse_defined): Always record the macro name.
10748         (lex): Don't worry about identifiers, or special-case
10749         CPP_NOT here.
10750         (_cpp_parse_expr): Figure out at the end of the routine
10751         whether we saw a valid !defined() expression.
10752         * cppfiles.c (stack_include_file): Update for mi_valid.
10753         (_cpp_pop_file_buffer): Similarly.
10754         * cpplex.c (_cpp_lex_token): Similarly.
10755         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
10756         mi_if_not_defined, mi_lexed): Remove.
10757         (mi_valid): New.
10758         * cpplib.c (do_if): Simplify.
10759         (do_endif, push_conditional, _cpp_handle_directive): Update
10760         for renaming of mi_state to mi_valid.
10761 doc:
10762         * cpp.texi: Add index entries for digraphs, and add comment
10763         that C++ refers to them as alternative tokens.
10764
10765 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
10766
10767         * basic-block.h (CLEANUP_PRE_LOOP): New.
10768         * except.c (finish_eh_generation): Update call of cleanup_cfg.
10769         * sibcall.c (optimize_sibling_calls): Likewise.
10770         * toplev.c (rest_of_compilation): Likewise.
10771         * flow.c (try_forward_edges): Take argument MODE;
10772         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
10773         (try_optimize_cfg): Update call of try_forward_edges.
10774
10775 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
10776                                 Jan Hubicka  <jh@suse.cz>
10777
10778         * (validate_replace_rtx_1): Fix simplification of MINUS.
10779
10780 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
10781
10782         PR preprocessor/3669
10783         * cppinit.c (init_dependency_output): Turn off dump requests
10784         if sending dependencies to stdout.
10785
10786 2001-07-28  Richard Henderson  <rth@redhat.com>
10787
10788         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
10789         not optimizing.
10790
10791 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
10792
10793         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
10794
10795 2001-07-28  Kazu Hirata  <kazu@hxi.com>
10796
10797         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
10798         is VAR_DECL first to prevent an ICE.
10799
10800 2001-07-28  Richard Henderson  <rth@redhat.com>
10801
10802         * varasm.c (immed_real_const_1): Don't elide special cases for
10803         nested functions.
10804         (clear_const_double_mem): Clear const_tiny_rtx too.
10805
10806 2001-07-28  Richard Henderson  <rth@redhat.com>
10807
10808         * dwarf2out.c (dw_val_class_offset): New.
10809         (struct dw_ranges_struct, dw_ranges_ref): New.
10810         (ranges_table, ranges_table_allocated): New.
10811         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
10812         (add_AT_offset, add_ranges, output_ranges): New.
10813         (print_die, output_die): Handle dw_val_class_offset.
10814         (attr_checksum, size_of_die, value_format): Likewise.
10815         (gen_lexical_block_die): Handle non-contiguous blocks.
10816         (gen_block_die): Likewise.
10817         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
10818         if needed.  Dump the ranges table.
10819         * final.c (final_start_function): Remove unnecessary notes and
10820         rebuild the block tree before numbering the blocks.
10821         * function.c (reorder_blocks_0): Walk the existing block tree
10822         to unmark all blocks.
10823         (reorder_blocks_1): Create block fragments when duplicate block
10824         notes are seen.
10825         (reorder_fix_fragments): New.
10826         (reorder_blocks): Call it.
10827         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
10828
10829 2001-07-28  Richard Henderson  <rth@redhat.com>
10830
10831         * emit-rtl.c (adjust_address): Make a copy of the memory address.
10832
10833 2001-07-28  Richard Henderson  <rth@redhat.com>
10834
10835         * flow.c (add_to_mem_set_list): New function.
10836         (init_propagate_block_info): Use it.
10837         (mark_set_1): Likewise.
10838         (insn_dead_p): Canonicalize memory address for dead store
10839         comparison.  Allow wider mode stores to kill narrower mode stores.
10840         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
10841         (invalidate_mems_from_set): Don't handle MEMs.
10842
10843 2001-07-28  Kazu Hirata  <kazu@hxi.com>
10844
10845         * config/h8300/h8300.h: Fix formatting.
10846
10847 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10848
10849         * basic-block.h (EDGE_FREQUENCY): New macro.
10850         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
10851         for new BB/edges.
10852         * flow.c (find_sub_basic_blocks): Likewise.
10853         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
10854         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
10855
10856         * predict.c (DEF_PREDICTOR): New argument FLAGS.
10857         (HITRATE): New macro.
10858         (PRED_FLAG_FIRST_MATCH): New constant.
10859         (predictor_info): New field flgags.
10860         (combine_predictions_for_insn): Use DS theory to combine
10861         probabilities; set the edge probabilities when finished.
10862         (estimate_probability): Avoid duplicated matches
10863         of LOOP_BRANCH heuristics for nested loops; update comment.
10864         * predict.def: Add flags for each prediction, set probabilities
10865         according to B&L paper.
10866         * predict.h (DEF_PREDICTOR): New argument FLAGS.
10867
10868         * profile.c (compute_branch_probabilities):  Cleanup way the edge
10869         probabilities are computed and REG_BR_PROB notes are dropped; if
10870         values does not match, emit error.
10871         (init_branch_prob): Do error instead of warning when profile driven
10872         feedback is missing or corrupt.
10873
10874 2001-07-27  DJ Delorie  <dj@redhat.com>
10875
10876         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
10877         against a constant, try to adjust the compare to have the desired
10878         constant in it so that min/max optimizations happen more often.
10879
10880 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
10881
10882         * flow.c (last_loop_beg_note): New function.
10883         (redirect_edge_and_branch): Use it.
10884         (split_edge): Likewise.
10885
10886         * alias.c (loop_p): Avoid uninitialized memory access.
10887
10888         * flow.c (try_forward_edges): Avoid accessing freed memory.
10889
10890         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
10891         variable access.
10892
10893 2001-07-26  Andrew Haley  <aph@redhat.com>
10894         Joern Rennecke <amylaar@redhat.com>
10895
10896         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
10897         (SUBTARGET_CPP_ENDIAN_SPEC): New.
10898         (SUBTARGET_CPP_SPEC): New.
10899         (CPP_SPEC): Remove.
10900         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
10901         (SUBTARGET_CPP_PTR_SPEC): New.
10902         (CPP_DEFAULT_CPU_SPEC): New.
10903         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
10904         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
10905         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
10906         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
10907         (SUBTARGET_CPP_SPEC): Define as an empty string.
10908
10909 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10910
10911         * doc/install.texi (Configuration): Properly link the host
10912         specific instructions also when generating HTML.
10913
10914 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
10915
10916         * flow.c (redirect_edge_and_branch_force): Test
10917         target->global_live_at_start.
10918
10919 2001-07-26  Richard Henderson  <rth@redhat.com>
10920
10921         * simplify-rtx.c (avoid_constant_pool_reference): Export.
10922         * rtl.h (avoid_constant_pool_reference): Declare it.
10923         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
10924         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
10925
10926 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10927
10928         * rtl.h (cleanup_barriers): Declare.
10929         * jump.c (cleanup_barriers): New function.
10930         * toplev.c (rest_of_compilation): Call cleanup_barriers
10931         before loop optimizer and after bb_reorder.
10932
10933         * flow.c (back_edge_of_syntactic_loop_p): New.
10934         (split_edge): Use it.
10935
10936 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10937
10938         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
10939
10940 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
10941
10942         * cse.c (cse_process_notes): Replace any registers if the address
10943         remains valid.
10944
10945 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
10946
10947         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
10948         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
10949         (propagate_block): Update prototype.
10950         * flow.c (update_life_info): Simplify the CFG and
10951         recalculate the global regs which are alive when
10952         removing dead code during a global update.
10953         (propagate_block): Return non-zero if an INSN is
10954         deleted.
10955
10956 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10957
10958         * Makefile.in (LIBICONV): Define.
10959
10960 2001-07-26  Catherine Moore  <clm@redhat.com>
10961
10962         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
10963         of conditional to avoid tree checking errors.
10964
10965 2001-07-26  Kazu Hirata  <kazu@hxi.com>
10966
10967         * regmove.c (regmove_optimize): Don't replace a reg with
10968         another reg of a different mode.
10969
10970 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
10971
10972         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
10973         limit length of dependency flush list.
10974         * params.h (MAX_PENDING_LIST_LENGTH): Define.
10975         * sched-int.h  (struct deps): Add pending_flush_length field.
10976         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
10977         has 1 element in it.
10978         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
10979         (sched_analyze): After a jump, if the pending memory flush list is too
10980         large, flush the pending lists.
10981         (init_deps): Initialize pending_flush_length to 0.
10982         * doc/invoke.texi (max_pending_list_length): Document parameter.
10983
10984 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10985
10986         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
10987         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
10988         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
10989
10990 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10991
10992         * cpphash.h (struct_lexer_state): Delete was_skipping.
10993         Move skipping here from struct cpp_reader.
10994         * cpplex.c (parse_identifier): Update.
10995         (_cpp_lex_token): Don't skip tokens in a directive.
10996         * cpplib.c (struct if_stack): Update.
10997         (start_directive, end_directive): Don't change skipping state.
10998         (_cpp_handle_directive): Update.
10999         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
11000         (do_else, do_endif): Update; only check for excess tokens if not
11001         in a skipped conditional block.
11002         (push_conditional): Update for new struct if_stack.
11003
11004 2001-07-26  Graham Stott  <grahams@redhat.com>
11005
11006         * function.c (locate_and_pad_parm): Also pad initial offset
11007         so that the total argument size also includes the padding.
11008
11009 2001-07-26  Graham Stott <grahams@redhat.com>
11010
11011         * gensupport.c (alter_output_for_insn): Correct enable checking failure
11012         change XSTR to XTMPL.
11013
11014         (process_one_cond_exec): Likewise
11015
11016 2001-07-25  Richard Henderson  <rth@redhat.com>
11017
11018         * varasm.c (assemble_variable): Create DECL_RTL before setting
11019         TREE_ASM_WRITTEN.
11020
11021 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
11022
11023         * predict.c (estimate_probability): Avoid duplicated predictions.
11024
11025         * loop.c (find_and_verify_loops): Grok multiple barriers.
11026
11027 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11028
11029         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
11030
11031         * dbxout.c: Consistently use putc instead of fputc.
11032         (print_wide_int): New function; call instead of direct fprintf.
11033         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
11034         (dbxout_type_fields, dbxout_type_method_1): Likewise.
11035         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
11036         (print_int_cst_octal): Likewise.
11037         (print_octal): Show we wrote characters.
11038         (dbxout_type): Set have_used_extensions in more places.
11039
11040 2001-07-25  Catherine Moore  <clm@redhat.com>
11041
11042         * config/v850/v850.c (v850_va_arg):  Use addr
11043         instead of valist to build incr.
11044
11045 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
11046
11047         * flow.c (delete_dead_jumptables): New function.
11048         (life_analyzis): Call it.
11049         * bb-reorder.c (skip_insns_after_block): Handle contradictory
11050         sequences.
11051
11052 2001-07-25  Richard Henderson  <rth@redhat.com>
11053
11054         * except.c (reachable_handlers): Handle a region being removed
11055         out from under a RESX.
11056
11057 2001-07-25  Richard Henderson  <rth@redhat.com>
11058
11059         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
11060         swap GE/GT if it is an fp comparison.
11061
11062 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
11063
11064         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
11065         operands.
11066
11067 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
11068
11069         * ssa.c (rename_insn_1): Do not wrap an assignment to a
11070         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
11071         glitch.
11072
11073         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
11074         throw an exception.
11075         (visit_expression): When attempting to simplify an expression,
11076         retrieve any modes for arguments before they are simplified
11077         to constants.
11078
11079 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
11080             Janis Johnson  <janis@us.ibm.com>
11081
11082         * stmt.c (expand_goto): A nonlocal goto can be a call too.
11083         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
11084         pointer parameters to match documented usage of nonlocal_goto.
11085         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
11086         parameters to their correct order.
11087         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
11088         parameters to their correct order.
11089
11090 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
11091
11092         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
11093
11094 2001-07-25  Jan Hubicka  <jh@suse.cz>
11095             Richard Henderson  <rth@redhat.com>
11096
11097         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
11098         the sequence.
11099         (make_edges): New argument update_p; populate the edge cache if set.
11100         (find_basic_blocks): Update make_edges invocation.
11101
11102 2001-07-24  Joel Sherrill <joel@OARcorp.com>
11103
11104         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
11105
11106 2001-07-24  Joel Sherrill <joel@OARcorp.com>
11107
11108         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
11109         -Acpu and -Amachine.h.
11110         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
11111         Corrected header to say ELF not a.out.
11112         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
11113         when given -msoft-float.
11114
11115 2001-07-24  Joel Sherrill <joel@OARcorp.com>
11116
11117         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
11118         extra multilib parts like arm-elf.
11119         (i960-*-coff*, i960-*-rtems): Should not use collect2.
11120         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
11121         crtfini.o as extra multilib parts.
11122
11123 2001-07-24  Joel Sherrill <joel@OARcorp.com>
11124
11125         * configure.in: Add rtems as a supported thread model.
11126         * gthr-rtems.h: Add missing entry point __gthread_active_p.
11127         * configure: Rebuilt.
11128
11129 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
11130
11131         * stor-layout.c (get_mode_alignment): make it work when
11132         BITS_PER_UNIT is not a power of two.
11133         * builtins.c (get_pointer_alignment): Likewise.
11134
11135 2001-07-24  Richard Henderson  <rth@redhat.com>
11136
11137         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
11138         the retrieved constant into the expected mode.
11139
11140 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
11141
11142         * flow.c (try_simplify_condjump): Avoid duplicated edges.
11143         (verify_flow_info): Check for duplicated edges; clarify
11144         error reporting.
11145
11146         * flow.c (block_label): Update basic_block_for_insn.
11147         (commit_edge_insertions): Call compute_bb_for_insn.
11148
11149         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
11150         returns too.
11151
11152         * flow.c (redirect_edge_and_branch,
11153         try_optimize_cfg): Use redirect_edge_succ_nodup
11154         (redirect_edge_succ_nodup): New.
11155         * basic_block.h (redirect_edge_succ_nodup): Declare.
11156
11157         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
11158         after gcse.
11159
11160 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
11161
11162         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
11163         (try_crossjump_to_edge): Update commetns.
11164         (try_crossjump_bb): Likewise.
11165
11166 2001-07-24  Richard Henderson  <rth@redhat.com>
11167
11168         * combine.c (distribute_notes): Move set of need_refresh
11169         for noop_move_p down to catch all cases.
11170
11171 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
11172
11173         * recog.c (split_all_insns_noflow): New.
11174         * rtl.h (split_all_insns_noflow): Declare.
11175         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
11176         * m68hc11.c (m68hc11_reorg): Likewise.
11177         * sh.c (machine_dependent_reorg): Likewise.
11178         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
11179         call.
11180
11181 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
11182
11183         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
11184         (ashlsi3_n splitter): Likewise.
11185         (lshrsi3_n splitter): Likewise.
11186
11187         (GOTaddr2picreg): Make const SImode.
11188         (sym_label2reg): Likewise.
11189         (symGOT2reg): Likewise.
11190         (symGOTOFF2reg) Likewise.
11191
11192         (casesi_worker_0): Make unspec SImode.
11193
11194 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
11195
11196         * config/sh/sh.c (barrier_align): Check that an operand really is
11197         an insn before extracting its INSN_CODE.
11198
11199 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
11200
11201         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
11202         dangling else.
11203
11204         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
11205         for SImode to prevent overflow.
11206
11207 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11208
11209         * config/mips/irix6-libc-compat.c: New file.
11210         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
11211         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
11212         passing workaround.
11213
11214 2001-07-24  lars brinkhoff  <lars@nocrew.org>
11215
11216         * rtl.texi (REG_POINTER): Document.
11217         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
11218         QFmode, HFmode, TQFmode, QCmode, and HCmode.
11219
11220 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
11221
11222         * flow.c (delete_noop_moves): Do not confuse libcall regions.
11223
11224 2001-07-23  Richard Henderson  <rth@redhat.com>
11225
11226         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
11227
11228 2001-07-23  Kazu Hirata  <kazu@hxi.com>
11229
11230         * config/h8300/h8300-protos.h: Add a prototype for
11231         general_operand_dst_push.
11232         * config/h8300/h8300.c (general_operand_dst_push): New.
11233         * config/h8300/h8300.h (OK_FOR_T): New.
11234         (EXTRA_CONSTRAINT): Use it.
11235         * config/h8300/h8300.md (movqi_push): Remove and integrate into
11236         the existing movqi pattern.
11237         (movhi_push): Likewise.
11238
11239         * reload.c: Fix comment typos.
11240
11241 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
11242
11243         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
11244
11245 2001-07-23  H.J. Lu  (hjl@gnu.org)
11246
11247         * doc/extend.texi: Update __builtin_return_address and
11248         __builtin_frame_address.
11249
11250 2001-07-23  Richard Henderson  <rth@redhat.com>
11251
11252         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
11253         before CSE.
11254         * config/i386/i386.md: New setcc+movzbl peephole2.
11255
11256 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11257
11258         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
11259         * objc/objc-act.c: Include debug.h.
11260         (synth_module_prologue): Save and restore debug hooks too.
11261
11262 2001-07-23  lars brinkhoff  <lars@nocrew.org>
11263
11264         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
11265         and C4X_FLOAT_FORMAT.
11266         (BOOL_TYPE_SIZE): Document.
11267
11268 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
11269
11270         * unroll.c (loop_iterations): Fix miscalculation of initial
11271         giv offset.
11272
11273 2001-07-13  Andrew Haley  <aph@redhat.com>
11274
11275         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
11276         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
11277         * config/sh/sh.c (sh_can_redirect_branch): New function.
11278         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
11279         * reorg.c (steal_delay_list_from_target): Use
11280         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
11281
11282 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
11283
11284         * flow.c (try_simplify_condjump): Unlink insn chain on
11285         fallthru edge; use can_fallthru.
11286
11287 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
11288
11289         * basic-block.h (find_sub_basic_block): Declare.
11290         * flow.c (make_edges): New arguments MIN and MAX;
11291         (find_sub_basic_blocks): Revamp to use make_edges
11292         and purge_dead_edges.
11293         (find_basic_blocks): Update call of find_sub_basic_block.
11294
11295         * recog.c (split_all_insns): Always expect CFG to be consistent;
11296         call find_sub_basic_blocks in case something has changed.
11297         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
11298         has been built.
11299
11300         * basic-block.h (delete_noop_moves): Declare.
11301         * combine.c (combine_instructions): Call it.
11302         (recog_for_combine): Tolerate noop moves
11303         (distribute_notes): Force refresh when register dies at noop move.
11304         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
11305         too.
11306         (life_analysis): Update delete_noop_moves call.
11307         (set_noop_p): Move too ...
11308         * rtlanal.c (noop_move_p): ... here.
11309         * rtl.h (noop_move_p): Declare.
11310
11311         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
11312         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
11313         after combine.
11314         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
11315         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
11316
11317 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
11318
11319         * reload.c (push_reload): Fix typo in comment.
11320         (find_reloads_address): Ditto.
11321         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
11322
11323 2001-07-22  Richard Henderson  <rth@redhat.com>
11324
11325         * flow.c: Grammar check and clarify a lot of comments.
11326         (try_simplify_condjump): Rename variables to be clearer.
11327         (try_forward_edges): Skip complex and fallthru edges.
11328         Rearrange tests to avoid duplicate checks.
11329         (flow_find_cross_jump): Likewise.
11330         (outgoing_edges_match): Allow match if neither branch has
11331         probability data.  Loosen probability match to 5%.
11332         (try_crossjump_to_edge): Hoist repeated indirection into
11333         local variables.
11334         (try_crossjump_bb): Don't check complex edges.  Eliminate
11335         redundant crossjump tests.
11336         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
11337         checks before more expensive checks.
11338
11339 2001-07-22  Richard Henderson  <rth@redhat.com>
11340
11341         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
11342         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
11343         arguments.
11344
11345 2001-07-22  Richard Henderson  <rth@redhat.com>
11346
11347         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
11348         (const_sint32_operand): Likewise.
11349         * m68k.md (anon mulsi pattern): Use const_int_operand not
11350         const_sint32_operand.
11351         (umulsi3_highpart): Zero extend a constant input.
11352         (smulsi3_highpart): Don't bother checking SImode constant.
11353         (const_umulsi3_highpart): Give op3 DImode.
11354         (const_smulsi3_highpart): Likewise.
11355
11356 2001-07-22  Richard Henderson  <rth@redhat.com>
11357
11358         * flow.c (split_block): Make sure bb_note is included in the
11359         new block when splitting before a label.
11360
11361 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
11362
11363         * basic-block.h (redirect_edge_and_branch_force,
11364         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
11365         * flow.c (redirect_edge_and_branch_force,
11366         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
11367         (redirect_edge_and_branch_force): Fix copying of lifeness information.
11368         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
11369         * ifcvt.c (dead_or_predictable): Take BB as an new destination
11370         instead of label; update CFG after transformation.
11371         (find_if_case_1): Update call, use redirect_edge_and_branch_force
11372         for finishing the transformation; handle even case where ELSE
11373         does not follow THEN.
11374         (find_if_case_2): Update call of dead_or_predictable; simplify
11375         CFG update.
11376
11377         * emit-rtl.c (split_branch_probability): New global variable.
11378         (try_split): Take care to set split_branch_probability and
11379         create REG_BR_PROB note for new jump insns.
11380         * md.texi (define_split): Document new feature.
11381
11382         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
11383
11384 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
11385
11386         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
11387         (asm_out_file): Remove redundant declaration.
11388         (assemble_asm): Remove old #if 0 block.
11389         (assemble_variable): Remove end of function; debug output is
11390         now handled with global_decl.  Remove old #if 0 block.  Update.
11391         Remove saved_in_section and associated no-op code.
11392         * Makefile.in (varasm.o): Correct dependencies.
11393
11394 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
11395
11396         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
11397         the definition in defaults.h.
11398
11399 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
11400
11401         * jump.c: Update comments.
11402         (delete_barrier_successors, delete_unreferenced_labels,
11403         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
11404         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
11405         jump_optimize, jump_optimize_minimal): Kill.
11406         (rebuild_jump_labels): Move code from jump_optimize_1.
11407         (purge_line_number_notes): Likewise.
11408         (copy_loop_headers): Likewise.
11409         * reg-stack.c: Update comment.
11410         * stmt.c: Likewise.
11411         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
11412         JUMP_AFTER_REGSCAN): Kill.
11413         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
11414         purge_line_number_notes and copy_loop_headers.
11415
11416 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
11417            Richard Henderson  <rth@redhat.com>
11418
11419         * dbxout.c (dbxout_global_decl): New.
11420         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
11421         * sdbout.c (sdbout_finish): New.
11422         (sdbout_debug_hooks): Use it, add comments.
11423         (sdbout_global_decl): Defer initialised public vars to
11424         sdbout_finish.
11425         * varasm.c (assemble_variable): Don't output debug information
11426         for file-scope variables.
11427
11428 2001-07-22  Richard Henderson  <rth@redhat.com>
11429
11430         * config/alpha/alpha.c (get_trap_mode_suffix): New.
11431         (get_round_mode_suffix): New.
11432         (print_operand): Use them for [/].  Remove support for [&'`()+].
11433         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
11434         * config/alpha/alpha.md (attr round_suffix): New.
11435         (attr trap_suffix): New.
11436         (all insns): Set them appropriately.  Use %/ instead of the
11437         myriad punctuators.
11438
11439 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11440
11441         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
11442
11443 2001-07-22  Richard Henderson  <rth@redhat.com>
11444
11445         * regrename.c (regrename_optimize): Compute nregs for each
11446         potential target register.
11447
11448 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
11449            Richard Henderson  <rth@redhat.com>
11450
11451         * dbxout.c (dbxout_global_decl): New.
11452         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
11453         * sdbout.c (sdbout_finish): New.
11454         (sdbout_debug_hooks): Use it, add comments.
11455         (sdbout_global_decl): Defer initialised public vars to
11456         sdbout_finish.
11457         * varasm.c (assemble_variable): Don't output debug information
11458         for file-scope variables.
11459
11460 2001-07-21  H.J. Lu  (hjl@gnu.org)
11461
11462         * config/mips/mips.c (mips_cpu): Moved into ...
11463         (override_options): Here.
11464
11465         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
11466         mips_tune.
11467         (mips_cpu): Removed.
11468
11469 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11470
11471         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
11472         ("iorqi3"): Likewise.
11473         ("xorqi3"): Likewise.
11474         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
11475         ("*subhi3_sp): Likewise.
11476         ("*subhi3"): Likewise.
11477         ("extendhisi2"): Accept D, X and Y as source operand to avoid
11478         reload problems.
11479
11480 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
11481
11482         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
11483         * config/freebsd.h: Likewise.
11484         * config/linux.h: Likewise.
11485         * config/openbsd.h: Likewise.
11486         * config/alpha/linux-elf.h: Likewise.
11487         * config/arm/linux-elf.h: Likewise.
11488         * config/d30v/d30v.h: Likewise.
11489         * config/fr30/fr30.h: Likewise.
11490         * config/ia64/aix.h: Likewise.
11491         * config/ia64/ia64.h: Likewise.
11492         * config/mips/linux.h: Likewise.
11493         * config/pj/pj.h: Likewise.
11494         * config/rs6000/linux.h: Likewise.
11495         * config/sparc/linux.h: Likewise.
11496         * config/sparc/linux64.h: Likewise.
11497
11498 2001-07-20  Bruce Korb  <bkorb@gnu.org>
11499
11500         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
11501         because getc() and char* may disagree on signedness.
11502
11503 2001-07-20  Richard Henderson  <rth@redhat.com>
11504
11505         * doc/rtl.texi (REG_DEAD): Update for current semantics.
11506
11507         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
11508         insns to delete in the presence of cc0 in a jump insn.
11509
11510 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
11511                                 Jan Hubicka  <jh@suse.cz>
11512
11513         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
11514         of doing the change by hand.
11515
11516 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
11517
11518         * rtlanal.c (set_noop_p): Return true for noop jumps.
11519
11520         * expr.c (emit_single_push_insn): Add call to push expander.
11521         * expr.h (optab_index): Add OTI_push
11522         (push_optab): New constant.
11523         * genopinit.c (optabs): Add push_optab.
11524         * optabs.c (init_optab): Init push optab.
11525         * md.texi (push??1): Document
11526
11527 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11528
11529         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
11530         expand to emit the pattern; put a REG_INC note for push/pop
11531         instructions.
11532         ("movdf", "movdf_internal"): Likewise.
11533         ("movsi", "movsi_internal"): Likewise.
11534         ("movsf", "movsf_internal"): Likewise.
11535         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
11536
11537 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11538
11539         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
11540         gen_highpart.
11541
11542 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
11543
11544         * params.def: Change default max inline insns to 100.
11545
11546 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
11547
11548         * combine.c (combine_simplify_rtx): Generate a new shift operation
11549         when simplifying the first operand of a (neg (ashift)) expression.
11550
11551 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
11552
11553         * regclass.c (N_REG_INTS): Use only 32 bits per element.
11554
11555 2001-07-20  Kelley Cook  <kelley.cook@home.com>
11556
11557         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
11558         information.   Move rest into ...
11559         (*-*-solaris): ... here.  Eliminate redundant information and
11560         reword necessary packages section.  Delete 4.x assembler bug info.
11561         (sparc-sun-*): Merge into ...
11562         (sparc-sun-sunos*): here.
11563
11564 2001-07-20  Catherine Moore  <clm@redhat.com>
11565
11566         * config/v850/v850.md (casesi): Generate LABEL_REF
11567         with Pmode.
11568
11569 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
11570
11571         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
11572         * i386.c (ix86_zero_extend_to_Pmode): Make global.
11573         * i386.md (strclrsi expander): Use it.
11574
11575 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11576
11577         * integrate.c (copy_insn_list): handle
11578         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
11579         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
11580         identically as to CODE_LABEL.
11581
11582         * fold-const (fold): Convert A/B/C to A/(B*C) and
11583         A/(B/C) to (A/B)*C
11584
11585         * except.c (connect_post_landing_pads): Delete the RESX insns.
11586
11587 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
11588
11589         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
11590
11591         * config/mips/mips.md (nmadd/nmsub): Use macro.
11592
11593 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
11594
11595         * cppinit.c (remove_dup_dir): Make static.
11596         (remove_dup_dirs): Make static. Only warn about preempting a
11597         system directory with a non-system directory.
11598
11599 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
11600
11601         * ifcvt.c (noce_try_store_flag_constants): Correct order
11602         of parameters to trunc_int_for_mode.
11603
11604 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
11605
11606         * reorg.c (fill_simple_delay_slots): If an instruction might throw
11607         an exception that will be caught within this function, do not fill
11608         its delay slot with any subsequent instruction.
11609
11610 2001-07-19  Steve Ellcey <sje@cup.hp.com>
11611
11612         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
11613         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
11614         pointer extension instruction.
11615         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
11616         * simplify-rtx.c (simplify_unary_operation) Likewise.
11617         * explow.c (convert_memory_address) Check value of
11618         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
11619         less than zero.
11620         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
11621         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
11622         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
11623         Add Multilib Support.
11624         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
11625         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
11626         Add Multilib Support.
11627         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
11628         support.
11629         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
11630         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
11631         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
11632
11633 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
11634
11635         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
11636         old and new operands in `<', `3' and `b'.
11637
11638 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11639
11640         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
11641         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
11642         (toplev.o): Don't depend on xcoffout.h.
11643         * c-decl.c: Include debug.h
11644         (duplicate_decls): Use debug hook.
11645         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
11646         (dbx_debug_hooks, xcoff_debug_hooks): Update.
11647         (dbxout_types): Remove.
11648         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
11649         * debug.c (do_nothing_debug_hooks): Update.
11650         (debug_true_tree, debug_nothing_rtx): New.
11651         * debug.h (struct rtx_def): New.
11652         (struct gcc_debug_hooks): New hooks ignore_block,
11653         outlining_inline_function and label.
11654         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
11655         dwarf2out_frame_finish): New.
11656         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
11657         Make static, update prototype.
11658         (dwarf2_debug_hooks): Update.
11659         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
11660         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
11661         * dwarfout.c (dwarf_debug_hooks): Update.
11662         * emit-rtl.c: Include debug.h.
11663         (remove_unnecessary_notes): Use debug hook.
11664         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
11665         (final_scan_insn): Use debug hook.
11666         * integrate.c (output_inline_function): Use debug hook.
11667         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
11668         (sdb_debug_hooks): Update.
11669         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
11670         * toplev.c: Don't include xcoffout.h.
11671         (note_outlining_of_inline_function, debug_ignore_block): Remove.
11672         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
11673         Remove.
11674         * tree.h (dwarf2out_do_frame): Remove.
11675
11676 2001-07-19  Catherine Moore  <clm@cygnus.com>
11677
11678         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
11679
11680 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
11681
11682         * reload1.c (eliminate_regs_in_insn): When updating a set
11683         to the frame pointer to the hardware frame pointer, perform
11684         the update always not just when REPLACE is set.
11685
11686         * reload1.c (choose_reload_regs): Don't inherit a reload
11687         that crosses multiple registers if registers past the first
11688         don't fit in the desired class.
11689
11690         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
11691         when negating constants.
11692
11693 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
11694
11695         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
11696         * doc/tree.texi: Ditto.
11697
11698 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
11699             Jakub Jelinek  <jakub@redhat.com>
11700
11701         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
11702         (extract_cie_info): Handle "eh" augmentation properly,
11703         remember eh_ptr.
11704         (struct frame_state, __frame_state_for): New.
11705
11706 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11707
11708         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
11709         HANDLE_SYSV_PRAGMA): Define.
11710         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
11711         previous args.
11712         (copy_object): Caller changed.
11713
11714 2001-07-19  Andreas Schwab  <schwab@suse.de>
11715
11716         * configure.in (assembler dwarf2 debug_line support): Define nop
11717         insn for m68k.
11718         * configure: Regenerated.
11719
11720 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11721
11722         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
11723         dwarfout.h.
11724         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
11725         to conditionally compiled block.
11726         (dbx_debug_hooks, xcoff_debug_hooks): Update.
11727         * dbxout.h (dbxout_function): Remove.
11728         * debug.c (do_nothing_debug_hooks): Update.
11729         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
11730         global_decl, deferred_inline_function.
11731         * dwarf2out.c (dwarf2_debug_hooks): Update.
11732         (dwarf2out_global_decl): New.
11733         * dwarfout.c: Don't include dwarfout.h.
11734         (dwarfout_global_decl, dwarfout_function_decl,
11735         dwarfout_deferred_inline_function): New.
11736         (dwarf_debug_hooks): Update.
11737         * dwarfout.h: Remove.
11738         * final.c: Don't include dwarfout.h.
11739         * sdbout.c (sdbout_global_decl): New.
11740         (sdbout_debug_hooks): Update.
11741         * toplev.c: Don't include dwarfout.h.
11742         (check_global_declarations, rest_of_compilation): Use new debug hooks.
11743         (note_deferral_of_defined_inline_function): Remove.
11744         * toplev.h (note_deferral_of_defined_inline_function): Remove.
11745         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
11746         * ch/lex.c: Don't include dwarfout.h.
11747         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
11748         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
11749         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
11750         * cp/optimize.c: Include debug.h.
11751         (maybe_clone_body): Use debug hook.
11752         * cp/semantics.c: Include debug.h.
11753         (expand_body): Use debug hook.
11754         * po/POTFILES.in: Remove dwarfout.h.
11755
11756 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11757
11758         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
11759         * c-parse.in (yyerror, _yylex): Similarly.
11760         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
11761         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
11762         Update comments.
11763         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
11764         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
11765
11766 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
11767
11768         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
11769         in-class declaration at -g1.  Fixes c++/2814.
11770
11771 2001-07-18  Richard Henderson  <rth@redhat.com>
11772
11773         * doc/md.texi (reload_in/out): Document restrictions in predicates
11774         and constraints for these patterns.  Document empty string matching
11775         ALL_REGS.
11776
11777 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11778
11779         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
11780
11781 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
11782
11783         * cse.c: Undo my previous patch.
11784
11785 2001-07-18  Tom Tromey  <tromey@redhat.com>
11786
11787         For PR java/2812:
11788         * configure: Rebuilt.
11789         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
11790         instead.
11791         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
11792
11793 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
11794                                 Jan Hubicka  <jh@suse.cz>
11795
11796         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
11797         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
11798         * jump.c (mark_jump_label): Do not forward branches.
11799
11800 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
11801
11802         * cse.c (delete_trivially_dead_insns): Delete the libcall block
11803         when return value is unused.
11804
11805 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11806
11807         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
11808
11809 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
11810
11811         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
11812         on error.  We can't blindly return the result of
11813         pthread_mutex_trylock because it returns a positive number on
11814         error, while we must return -1 on error.
11815         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
11816         fixes.
11817         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
11818
11819 2001-07-18  Andreas Jaeger  <aj@suse.de>
11820
11821         * integrate.c (output_inline_function): Correct type of debug_hooks.
11822
11823 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
11824
11825         * combine.c (combine_simplify_rtx): DIV can be treated
11826         associatively for floats if unsafe math optimisations are enabled.
11827
11828 2001-07-17  Richard Henderson  <rth@redhat.com>
11829
11830         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
11831
11832 2001-07-17  Richard Henderson  <rth@redhat.com>
11833
11834         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
11835         don't force the function address into a register.
11836         (expand_call, emit_library_call_value_1): Update callers.
11837         * builtins.c (expand_builtin_apply): Likewise.
11838         * expr.h (prepare_call_address): Update decl.
11839
11840 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
11841
11842         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
11843         config directory.
11844         * config/i386/chorus.h: Move up.
11845         * config/sparc/chorus.h: Likewise.
11846         * config/rs6000/chorus.h: Likewise.
11847         * config/chorus.h: Moved here.
11848
11849 2001-07-17  Andreas Schwab  <schwab@suse.de>
11850
11851         * configure.in  (assembler eh_frame optimization): Handle big
11852         endian.
11853         * configure: Regenerated.
11854
11855 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
11856
11857         * expr.c (epxand_expr): Convert divisions into multiplications by
11858         reciprocals if -ffast-math.
11859
11860 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11861
11862         * dbxout.c (dbxout_really_begin_function): Rename to
11863         dbxout_begin_function.
11864         (dbx_debug_hooks, xcoff_debug_hooks): Update.
11865         (dbxout_begin_function): Remove.
11866         (dbxout_function): Update.
11867         (dbxout_source_line): Update prototype.
11868         * dbxout.h (dbxout_begin_function): Remove.
11869         * debug.c (do_nothing_debug_hooks): Update.
11870         (debug_nothing_tree): Update.
11871         (debug_nothing_charstar_rtx): Remove.
11872         * debug.h (union tree_node): Declare.
11873         (struct rtx_def): Remove.
11874         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
11875         begin_function.  Change source_line prototype.
11876         (debug_nothing_tree): New.
11877         (debug_nothing_charstar_rtx): Delete.
11878         (dwarf2out_begin_prologue): Moved from ...
11879         * tree.h: ... here.
11880         * dwarf2out.c (dwarf2_debug_hooks): Update.
11881         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
11882         debug info, call dwarf2out_source_line.
11883         (dwarf2out_souce_line): Update prototype.
11884         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
11885         Change prototype, make static.
11886         (dwarfout_source_line): Update prototype.
11887         (dwarf_debug_hooks): Update.
11888         * dwarfout.h (dwarfout_begin_function): Remove.
11889         * final.c (final_start_function, final_scan_insn): Use appropriate
11890         debug hooks, update to use notice_source_line.
11891         (output_source_line): Rename notice_source_line.  Don't call the
11892         source_line debug hook.
11893         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
11894         make static, update prototype.
11895         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
11896         prototype.
11897         (sdbout_end_prologue): New.
11898         (sdbout_source_line): Update prototype.
11899         (sdbout_debug_hooks): Update.
11900         (sdbout_symbol): Remove unused var.
11901         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
11902         Delete.
11903         * varasm.c: Include debug.h.
11904         (assemble_start_function): Use begin_function debug_hook.
11905         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
11906         update with prototype.
11907         (xcoffout_source_line): Update prototype.
11908         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
11909         update prototype.
11910         (xcoffout_source_line): Update prototype.
11911
11912 2001-07-17  Richard Henderson  <rth@redhat.com>
11913
11914         * c-typeck.c (build_binary_op): Do not shorten unsigned
11915         right shift after sign extension.
11916
11917 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
11918
11919         * combine.c (combine_simplify_rtx): Attempt to simplify
11920         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
11921
11922         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
11923         (simplify_binary_operation, simplify_unary_operation,
11924          simplify_relational_operation): Use it.
11925
11926         * combine.c (combine_simplify_rtx): Don't do associative law
11927         on divisions; allow associative law on floats.
11928
11929 2001-07-17  H.J. Lu <hjl@gnu.org>
11930             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11931
11932         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
11933         ASM_OUTPUT_WEAK_ALIAS are defined.
11934         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
11935         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
11936         Moved ...
11937         * config/mips/iris5.h: ... here.
11938         (HANDLE_SYSV_PRAGMA): Defined as 1.
11939         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
11940         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
11941         symbol.
11942
11943 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
11944
11945         * c-parse.in (all_prefix_attributes): New variable.
11946         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
11947         (maybe_resetattrs): New production.
11948         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
11949         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
11950         notype_initdcl, nested_function, notype_nested_function,
11951         component_decl, components, components_notype,
11952         component_declarator, component_notype_declarator,
11953         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
11954         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
11955         after a comma being applied to more than one declarator.
11956         * doc/extend.texi (Attribute Syntax): Update.  Remove
11957         documentation of bugs that are no longer present.
11958
11959 2001-07-13  Eric Christopher  <echristo@redhat.com>
11960
11961         * config/mips/mips.h: Change TUNE_MIPS* options to use
11962         mips_tune.
11963         (EXTRA_SPECS): Add cc1_cpu_spec.
11964         * config/mips/mips.md (muldf3): Fix typo.
11965
11966 2001-07-16  Richard Henderson  <rth@redhat.com>
11967
11968         * config/m68k/m68k.c: Include expr.h and reload.h.
11969         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
11970         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
11971
11972 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
11973             Richard Henderson  <rth@redhat.com>
11974
11975         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
11976         (insn_live_p): Fix fall off end of function.
11977         (dead_libcall_p): Remove COUNTS argument; update callers.
11978         (delete_trivially_dead_insns): Remove unused variables.
11979
11980 2001-07-17  Andreas Jaeger  <aj@suse.de>
11981
11982         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
11983         x86-64 pic support.
11984
11985         * lcm.c (optimize_mode_switching): Avoid warning for unused
11986         variable if !NORMAL_MODE.
11987
11988         * flow.c (try_crossjump_to_edge): Remove unused variable.
11989
11990 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11991
11992         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
11993         atexit declaration in stdlib.h.
11994
11995 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
11996
11997         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
11998
11999 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
12000
12001         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
12002         * except.c (finish_eh_generation): Update call of cleanup_cfg;
12003         do rebuild_jump_labels instead of jump_optimize
12004         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
12005         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
12006         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
12007
12008         * flow.c: Include timevar.h
12009         (find_basic_block): Push/pop timevar;
12010         (cleanup_cfg): Likewise.
12011         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
12012         * Makefile: Add dependencies on timevar.h
12013
12014         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
12015         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
12016
12017         * rtl.h (delete_trivially_dead_insns): Add new parameter.
12018         * toplev.c (rest_of_compilation): Update calls.
12019         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
12020         (delete_trivially_dead_insns): ... here; accept new argument
12021         preserve_basic_blocks; preserve basic blocks if set.
12022
12023         * reg-stack.c (stack_regs_mentioned): Return 0 if
12024         stack_regs_mentioned_data is not initialized.
12025         (reg_to_stack): Make stack_regs_mentioned survive after the
12026         reg-stack is completted; do not call cleanup_cfg.
12027         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
12028         make cleanup_cfg after bb-reorder to output to debug file.
12029
12030 2001-07-16  Richard Henderson  <rth@redhat.com>
12031
12032         * regclass.c (init_reg_sets): Use only 32 bits per initializer
12033         from int_reg_class_contents.
12034
12035 2001-07-16  Richard Henderson  <rth@redhat.com>
12036
12037         * hard-reg-set.h (regs_invalidated_by_call): Declare.
12038         * regclass.c (regs_invalidated_by_call): Move from cse.c.
12039         (init_reg_sets_1): Move initialization from cse_main.
12040         * cse.c (regs_invalidated_by_call): Move to regclass.c.
12041         (cse_main): Move its initialization also.
12042         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
12043         * flow.c (propagate_one_insn): Likewise.
12044         * gcse.c (compute_hash_table): Likewise.
12045         (compute_kill_rd, compute_store_table): Likewise.
12046         * sched-deps.c (sched_analyze_1): Likewise.
12047
12048 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
12049
12050         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
12051         gen_rtx_SET.
12052
12053 2001-07-16  Steve Ellcey <sje@cup.hp.com>
12054
12055         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
12056         in if statement so we don't access undefined memory.
12057
12058 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
12059
12060         * gcse.c: Update comment at top.
12061         Update comment on mem handling.
12062         mem_last_set, mem_first_set, mem_set_in_block: gone.
12063         Declaration of reg_set_info: gone.
12064         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
12065         pointless with load_killed_in_block_p (they are *more*
12066         conservative then it, not less, and less accurate).
12067         (oprs_not_set_p): Ditto.
12068         (alloc_gcse_mem): Don't allocate mem_set_in_block
12069         (free_gcse_mem): Don't free it, either.
12070         (record_last_mem_set_info): Update comment in front, remove
12071         mem_*set_* stuff. Note the reason we don't handle stores directly
12072         here.
12073         (compute_hash_table): Update comments to reflect reality. Remove
12074         mem_*set_* references.
12075         (reset_opr_set_tables): Remove mem_*set_* references.
12076         (mark_call): Ditto.
12077         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
12078         (mark_clobber): Ditto (on both parts, we double set here too).
12079         (expr_killed_p): Remove mem_set_in_block test.
12080         (compute_transp): Remove mem_set_in_block test.
12081
12082         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
12083         of edge, and removal of phi alternative to dump file.
12084         (ssa_ccp_substitute_constants): Add note about register now being
12085         constant, and which uses were replaced in what insns to dump file.
12086
12087 2001-07-16  Andreas Jaeger  <aj@suse.de>
12088
12089         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
12090         variables of type HOST_WIDEST_INT.
12091
12092         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
12093         (__bb_exit_func): Correct type of count_max to avoid overflow.
12094         (num_digits): Handle long long argument.
12095
12096         * combine.c (gen_lowpart_for_combine): Remove unused variable.
12097
12098 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12099
12100         * output.h (sdb_begin_function_line): Restore as an extern
12101         variable.
12102         * sdbout.c (sdb_begin_function_line): Make extern.
12103
12104 2001-07-15  Richard Henderson  <rth@redhat.com>
12105
12106         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
12107         * genrecog.c (maybe_both_true_mode): New.
12108         (maybe_both_true_2): Use it.
12109         (write_switch): Don't put Pmode in a switch.
12110         * rtl.c (mode arrays): Don't explicitly size them.
12111
12112 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
12113
12114         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
12115         handling; move unconditional splitting before mode switching.
12116
12117         * i386.md (type): Add fistp type.
12118         (i387, length_attr, scheduling definitions): Handle this type.
12119         (fix_trunc?f?i2): Revamp to use mode switching.
12120         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
12121         * i386.h (fp_cw_mode): New enum
12122         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
12123         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
12124
12125 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12126
12127         * Makefile.in (integrate.o): Add debug.h.
12128         * integrate.c (debug.h): Add.
12129         (output_inline_function): Save, reset, and restore debug_hooks.
12130
12131 2001-07-15  Richard Henderson  <rth@redhat.com>
12132
12133         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
12134         instead of COMPARE for the EQUIV expression.
12135
12136 2001-07-15  Richard Henderson  <rth@redhat.com>
12137
12138         * flow.c (redirect_edge_and_branch_force): Initialize
12139         global_live_at_start and global_live_at_end.
12140         (allocate_bb_life_data): Export.
12141         * basic-block.h (allocate_bb_life_data): Declare.
12142         * toplev.c (rest_of_compilation): Call it.
12143
12144 2001-07-15  Richard Henderson  <rth@redhat.com>
12145
12146         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
12147         (alpha_tablejump_best_label): New.
12148         * config/alpha/alpha-protos.h: Declare them.
12149         * config/alpha/alpha.md: Use braced strings for code blocks.
12150         (tablejump_osf): Break out add with r29.
12151         (tablejump_osf_internal): Remove.
12152         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
12153         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
12154
12155 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
12156
12157         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
12158         of the movable.
12159
12160         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
12161
12162         * i386-protos.h (ix86_split_fp_branch): Update prototype.
12163         (ix86_fp_jump_nontrivial_p): New.
12164         * i386.md (fp_jcc_?): Update call of split_fp_branch;
12165         use ix86_fp_jump_nontrivial_p.
12166         * i386.c (ix86_fp_jump_nontrivial_p): New.
12167         (ix86_split_fp_branch): Accept code instead of rtx.
12168         (ix86_expand_compare): Expand comparison early in case
12169         doing so is resonably cheap.
12170
12171 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
12172
12173         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
12174         not 'machine'.
12175         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
12176         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
12177
12178 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
12179
12180         * dbxout.c (dbxout_source_line): Make static, update prototype.
12181         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
12182         (dbxout_init, dbxout_finish, dbxout_source_line,
12183         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
12184         * dbxout.h (dbxout_source_line): Delete.
12185         * debug.c (debug_nothing_file, debug_nothing_file_int,
12186         debug_nothing_file_charstar_rtx): New.
12187         (do_nothing_debug_hooks): Update.
12188         (debug_nothing_void, debug_nothing_charstar_rtx,
12189         dwarf2out_end_epilogue): New.
12190         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
12191         * debug.h (struct rtx_def): Declare.
12192         (gcc_debug_hooks): New hooks source_line, end_epilogue
12193         and end_function.
12194         (debug_nothing_void, debug_nothing_charstar_rtx,
12195         dwarf2out_end_epilogue): New.
12196         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
12197         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
12198         (dwarf2_debug_hooks): Update.
12199         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
12200         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
12201         * dwarf2out.h (dwarf2out_source_line): Remove.
12202         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
12203         Make static, update prototype.
12204         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
12205         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
12206         (dwarf_debug_hooks): Update.
12207         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
12208         dwarfout_end_function): Remove.
12209         * final.c (profile_function): Use debug hooks for ending functions
12210         and epilogues.
12211         (output_source_line, final_end_function): Update prototype,
12212         use debug hooks.
12213         (final_start_function, final_scan_insn): Update.
12214         * output.h (sdb_begin_function_line): Remove.
12215         (final_end_function): Update prototype.
12216         * sdbout.c (sdb_begin_function_line): Make static.
12217         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
12218         (sdbout_source_line): New.
12219         (sdbout_end_epilogue, sdbout_end_function): Make static, update
12220         prototypes.
12221         (sdb_debug_hooks): Update.
12222         (sdbout_init, sdbout_source_line,
12223         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
12224         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
12225         * toplev.c (compile_file, rest_of_compilation): Update.
12226         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
12227         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
12228         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
12229         Update for prototype changes.
12230         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
12231         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
12232
12233 2001-07-15  Richard Henderson  <rth@redhat.com>
12234
12235         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
12236         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
12237         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
12238         * config/alpha/alpha.c: Likewise.
12239         * config/alpha/alpha.md: Likewise.
12240         * config/alpha/alpha32.h: Likewise.
12241         * config/alpha/vms.h: Likewise.
12242         (OPEN_VMS): Remove.
12243
12244 2001-07-14  Richard Henderson  <rth@redhat.com>
12245
12246         * config/alpha/alpha.md: Use define_constants for unspec values.
12247         Substitute throughout.
12248
12249 2001-07-14  Tim Josling  <tej@melbpc.org.au>
12250
12251         * tree.def (EXPON_EXPR) remove. Never supported anyway.
12252
12253 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12254
12255         * pa.md: Remove unused constraints from define_split's.
12256
12257 2001-04-14  Richard Henderson  <rth@redhat.com>
12258
12259         * ifcvt.c (find_cond_trap): Test for exit block.
12260
12261 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
12262
12263         Re-install recently reverted patch.
12264         * emit-rtl.c (try_split): Update mark_jump_label call.
12265         * flow.c (find_sub_basic_blocks): Likewise.
12266         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
12267         jump_back_p): Kill.
12268         (mark_all_labels): Kill second parameter.
12269         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
12270         (rebuild_jump_labels, jump_optimize_minimal): Update call
12271         of jump_optimize_1.
12272         (jump_optimize_1): Kill crossjumping code.
12273         (mark_jump_label): Kill cross_jump parameter.
12274         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
12275         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
12276         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
12277          splitting.
12278         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
12279         DFI_bpro.
12280         (dump_file_info): Likewise.
12281         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
12282         reorganize passes to do reg-stack first, bb-reorder second.
12283         * invoke.texi (-d letters doc): Remove the jump2 pass.
12284
12285 2001-07-14  Richard Henderson  <rth@redhat.com>
12286
12287         * ifcvt.c (find_cond_trap): New.
12288         (find_if_header): Call it.
12289         (merge_if_block): Relax existing jump sanity check.
12290         * jump.c (jump_optimize_1): Remove conditional trap handling.
12291
12292 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
12293
12294         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
12295         millicode.
12296         (insn_refs_are_delayed): Correct comment.
12297         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
12298         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
12299         instead of r31.  Make associated insn !TARGET_64BIT, and
12300         provide an additional 64-bit insn that clobbers r2.
12301         (divsi3): Likewise.
12302         (udivsi3): Likewise.
12303         (modsi3): Likewise.
12304         (umodsi3): Likewise.
12305
12306 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
12307
12308         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
12309
12310         * flow.c (redirect_edge_and_branch_force, split_edge,
12311         try_crossjump_to_edge): Use set_block_for_new_insns.
12312         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
12313
12314 2001-07-13  H.J. Lu  (hjl@gnu.org)
12315
12316         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
12317         the correct patch.
12318
12319 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
12320
12321         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
12322
12323 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
12324
12325         * c-common.c (decl_attributes): Take a pointer to the node to
12326         which attributes are to be attached, and a flags argument.
12327         * c-common.h (enum attribute_flags): New.
12328         (decl_attributes): Update prototype.
12329         * c-decl.c (start_decl, push_parm_decl, finish_struct,
12330         finish_enum, start_function): Update calls to decl_attributes.
12331         * c-parse.in (component_declarator, component_notype_declarator,
12332         label): Update calls to decl_attributes.
12333
12334 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
12335
12336         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
12337         * config/avr/avr.c (legitimate_address_p): Return value changed
12338         from letter to register classes. For better debugging.
12339
12340 2001-07-13  Kazu Hirata  <kazu@hxi.com>
12341
12342         * jump.c (reversed_comparison_code_parts): Fix comment typos.
12343
12344 2001-07-13  H.J. Lu  (hjl@gnu.org)
12345
12346         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
12347
12348 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
12349
12350         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
12351         correctly for shared configurations.
12352         * config/t-libgcc-pic:  New.
12353         * config/{i386,m68k,sparc}/t-openbsd:  New.
12354         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
12355         Support -shared.  Support debugging libraries with -g.
12356         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
12357         frame information does not emit pointer diffs.
12358         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
12359         emit pointer diffs.
12360
12361 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
12362
12363         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
12364
12365 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
12366
12367         * combine.c (try_combine): Ensure const_int pow2 is positive.
12368
12369 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
12370
12371         * config.gcc: Add configuration for s/390.
12372         * config/s390/s390.c: New. Subroutines for code generation.
12373         * config/s390/s390.h: New. Definitions for s/390.
12374         * config/s390/s390-protos.h: New. Prototypes.
12375         * config/s390/linux.h: New. Definitions for linux for s/390.
12376         * config/s390/linux64.h: New. Definitions for linux for zSeries.
12377         * config/s390/t-linux: New. Makefile fragment.
12378         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
12379         * config/s390/fixdfdi.h: New. Fix L_fix*di.
12380
12381 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
12382
12383         * emit-rtl.c (try_split): Update mark_jump_label call.
12384         * flow.c (find_sub_basic_blocks): Likewise.
12385         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
12386         jump_back_p): Kill.
12387         (mark_all_labels): Kill second parameter.
12388         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
12389         (rebuild_jump_labels, jump_optimize_minimal): Update call
12390         of jump_optimize_1.
12391         (jump_optimize_1): Kill crossjumping code.
12392         (mark_jump_label): Kill cross_jump parameter.
12393         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
12394         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
12395         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
12396          splitting.
12397         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
12398         DFI_bpro.
12399         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
12400         reorganize passes to do reg-stack first, bb-reorder second.
12401         * invoke.texi (-d letters doc): Remove the jump2 pass.
12402
12403 2001-07-12  Steve Ellcey <sje@cup.hp.com>
12404
12405         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
12406
12407 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
12408
12409         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
12410         basic blocks.
12411         (verify_flow_info): Make diagnostics prettier.
12412
12413 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
12414
12415         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
12416
12417         * flow.c (outgoing_edges_match): Return early if condition reversal
12418         failed.
12419
12420 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
12421
12422         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
12423         (mips_move_2words): When splitting a move into two instructions,
12424         prefix the second address operand with '%D'.
12425
12426 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
12427
12428         * Makefile.in (final.o): Depend on debug.h.
12429         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
12430         (dbx_debug_hooks): Add new hooks.
12431         (xcoff_debug_hooks): New.
12432         * debug.c (debug_nothing_file_int_int): New.
12433         (do_nothing_debug_hooks): Update.
12434         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
12435         (debug_nothing_file_int_int): New.
12436         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
12437         static, update prototype.
12438         (dwarf2_debug_hooks): Update.
12439         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
12440         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
12441         static, update prototype.
12442         (dwarf_debug_hooks): Update.
12443         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
12444         * final.c: Include debug.h.
12445         (final_scan_insn): Use debug hooks when beginning and ending blocks.
12446         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
12447         static, update prototype.
12448         (sdb_debug_hooks): Update.
12449         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
12450         * toplev.c: Distinguish between xcoff and dbx.
12451
12452         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
12453         Call all debug hooks, not just dwarf ones.
12454
12455 2001-07-11  Timothy Wall  <twall@redhat.com>
12456
12457         * config.gcc: Add configuration for AIX5/IA64.
12458         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
12459         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
12460         support prefix/suffix code.
12461         * config/ia64/t-aix: New.  Makefile fragment.
12462         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
12463
12464 2001-07-11  Kazu Hirata  <kazu@hxi.com>
12465
12466         * recog.c (validate_change): Fix a comment typo.
12467
12468 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12469
12470         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
12471         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
12472         hooks directly.
12473         * dbxout.c (dbx_debug_hooks): Add new hooks.
12474         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
12475         make static.
12476         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
12477         make static.
12478         * dbxout.h (dbxout_start_new_source_file,
12479         dbxout_resume_previous_source_file): Delete.
12480         * debug.c (do_nothing_debug_hooks): Add new hooks.
12481         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
12482         (debug_nothing_int_charstar, debug_nothing_int): New.
12483         * debug.h (gcc_debug_hooks): New hooks define, undef,
12484         start_source_file and end_source_file.
12485         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
12486         (debug_nothing_int_charstar, debug_nothing_int): New.
12487         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
12488         the conditionally compiled section.
12489         (dwarf2out_start_source_file, dwarf2out_end_source_file,
12490         dwarf2out_define, dwarf2out_undef): Make static.
12491         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
12492         dwarf2out_define, dwarf2out_undef): Remove.
12493         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
12494         (dwarfout_start_source_file, dwarfout_end_source_file,
12495         dwarfout_define, dwarfout_undef): Make static.
12496         (dwarfout_start_source_file_check,
12497         dwarfout_end_source_file_check): New.
12498         (dwarfout_define, dwarfout_finish): Update.
12499         * dwarfout.h (dwarfout_start_new_source_file,
12500         dwarfout_resume_previous_source_file, dwarfout_define,
12501         dwarfout_undef): Remove.
12502         * sdbout.c (sdb_debug_hooks): Add new hooks.
12503         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
12504         make static.
12505         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
12506         make static, take an arg.
12507         * sdbout.h (sdbout_start_new_source_file,
12508         sdbout_resume_previous_source_file): Delete.
12509         * toplev.c (debug_start_source_file, debug_end_source_file,
12510         debug_define, debug_undef): Delete.
12511         * toplev.h (debug_start_source_file, debug_end_source_file,
12512         debug_define, debug_undef): Delete.
12513
12514         * java/jcf-parse.c: Include debug.h.
12515         (parse_class_file): Update to use debug hooks directly.
12516         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
12517
12518 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12519
12520         * alias.c (set_mem_alias_set): New function.
12521         * rtl.h (set_mem_alias_set): Declare it.
12522         * builtins.c (expand_builtin_return_addr): Call it instead of
12523         using MEM_ALIAS_SET accessor.
12524         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
12525         (get_memory_rtx, expand_builtin_va_arg): Likewise.
12526         (expand_builtin_va_copy):Likewise.
12527         * caller-save.c (setup_save_areas): Likewise.
12528         * calls.c (compute_argument_addresses): Likewise.
12529         * explow.c (set_mem_attributes): Likewise.
12530         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
12531         (expand_assignment, store_constructor_field, store_field): Likewise.
12532         (expand_expr_unaligned): Likewise.
12533         * function.c (assign_stack_temp_for_type): Likewise.
12534         (put_reg_into_stack, gen_mem_addressof): Likewise.
12535         * ifcvt.c (noce_try_cmove_arith): Likewise.
12536         * reload1.c (reload, alter_reg): Likewise.
12537         * config/alpha/alpha.c (get_aligned_mem): Likewise.
12538         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
12539         (alpha_expand_unaligned_store): Likewise
12540         (alpha_expand_unaligned_load_words): Likewise.
12541         (alpha_expand_unaligned_store_words): Likewise.
12542         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
12543         (alpha_expand_epilogue): Likewise.
12544         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
12545         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
12546         * config/i386/i386.c (legitimize_pic_address): Likewise.
12547         * config/i960/i960.c (setup_incoming_varargs): Likewise.
12548         * config/ia64/ia64.c (spill_restore_mem): Likewise.
12549         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12550         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
12551         * config/mips/mips.c (mips_va_arg): Likewise.
12552         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
12553         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
12554         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
12555         (setup_incoming_varargs, rs6000_va_arg): Likewise.
12556         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
12557         (rs6000_emit_epilogue): Likewise.
12558         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
12559         * config/sparc/sparc.c (sparc_va_arg): Likewise.
12560         * config/v850/v850.c (v850_va_arg): Likewise.
12561
12562 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
12563
12564         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
12565         when fallthru edge is present.
12566         (mege_blocks): Handle case where creation of jump insn
12567         is required.
12568
12569         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
12570         CLEANUP_POST_REGSTACK): New constants.
12571         * except.c (finish_eh_generation): Update call of cleanup_cfg,
12572         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
12573         * output.h (cleanup_cfg): Update prototype.
12574         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
12575         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
12576         cleanup_cfg call; kill missleading comment.
12577         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
12578         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
12579         parameter; control optimizations performed using it.
12580         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
12581         try_crossjump_bb): New functions.
12582
12583 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12584
12585         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
12586         extern.
12587         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
12588         pa_output_function_prologue.
12589         * pa-protos.h (pa_output_function_prologue): New prototype.
12590
12591 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12592
12593         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
12594         and low to get correct sign extension in low+high test.
12595
12596 2001-07-11  Janis Johnson <janis@us.ibm.com>
12597
12598         * gcov.c (arcdata): Use gcov_type to fix branch percentage
12599         for large hit count.
12600
12601         * profile.c (branch_prob): Fix .bbg info for computed gotos
12602         and C++ EH code.
12603
12604 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
12605
12606         * stmt.c (parse_output_constraint): New function, split out
12607         from ...
12608         (expand_asm_operands): ... here.  Use parse_output_constraint.
12609         * tree.h (parse_output_constraint): Declare it.
12610
12611 2001-07-11  Richard Henderson  <rth@redhat.com>
12612
12613         * bitmap.c: Comment some functions; fiddle whitespace.
12614         (bitmap_free): Don't export.
12615         (bitmap_element_allocate): Use memset.
12616         * bitmap.h (bitmap_free): Don't declare.
12617
12618 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
12619
12620         * gcse.c, lcm.c, sched-deps.c:
12621         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
12622
12623         * flow.c (flow_loops_find): Free dom if we found no loops, since
12624         we aren't going to save it.
12625
12626         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
12627         done.
12628
12629 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
12630
12631         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
12632
12633 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12634
12635         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
12636         #ifndef DWARF2_DEBUGGING_INFO.
12637
12638 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
12639
12640         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
12641
12642 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
12643
12644         * config/mips/mips.c (gen_int_relational): Tell the caller not to
12645         reverse a branch if a NE comparison is implemented with GTU.
12646
12647 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
12648             H.J. Lu  <hjl@gnu.org>
12649
12650         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
12651         constant addresses.
12652         (call_internal2): Likewise.
12653         (call_value_internal1): Likewise.
12654         (call_value_internal2): Likewise.
12655         (call_value_multiple_internal1): Likewise.
12656         (call_value_multiple_internal2): Likewise.
12657
12658 2001-07-10  Kazu Hirata  <kazu@hxi.com>
12659
12660         * calls.c (emit_library_call_value_1): Fix a comment typo.
12661         * dwarf2out.c (mem_loc_descriptor): Likewise.
12662         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
12663
12664 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
12665
12666         * simplify-rtx.c (simplify_subreg): Fix typo in comment
12667
12668 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12669
12670         * recog.c (offsettable_address_p): Handle LO_SUM case.
12671         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
12672         instead of plus_constant.
12673
12674 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12675
12676         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
12677         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
12678
12679 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12680
12681         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
12682         adjust_address_nv instead of plus_constant.
12683
12684 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
12685
12686         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
12687         dwarf2out.o): Depend on debug.h, wrap long lines.
12688         * dbxout.c: Include debug.h.
12689         (dbx_debug_hooks): New.
12690         (dbxout_init): Make static, take just 2 args.
12691         (dbxout_finish): Make static.
12692         * dbxout.h (dbxout_init, dbxout_finish): Delete.
12693         * debug.c: New file.
12694         * debug.h: New file.
12695         * dwarf2out.c: Include debug.h.
12696         (dwarf2_debug_hooks): New.
12697         (dwarf2out_init): Make static.
12698         (dwarf2out_finish): Make static, take 2 args.
12699         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
12700         * dwarfout.c: Include debug.h.
12701         (dwarf_debug_hooks): New.
12702         (dwarfout_init): Make static.
12703         (dwarfout_finish): Make static, take 2 args.
12704         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
12705         * sdbout.c: Include debug.h.
12706         (sdb_debug_hooks): New.
12707         (sdbout_init): Make static, take 2 args.
12708         * sdbout.h (sdbout_init): Delete.
12709         * toplev.c: Include debug.h.
12710         (debug_hooks): New.
12711         (compile_file): Set deubg_hooks based on command line options.
12712         Use the hooks unconditionally rather than conditional compilation.
12713
12714 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
12715
12716         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
12717         first_insn_after_basic_block_note instead.
12718
12719         * df.c (df_bb_refs_unlink): #if 0 out for now.
12720
12721 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
12722
12723         * ssa.h: Add prototype for ssa_const_prop
12724         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
12725         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
12726         (ssa_fast_dce): Remove unused variable
12727
12728 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
12729
12730         * diagnostic.c (finish_diagnostic): Rename to
12731         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
12732         calls thourghout.
12733
12734 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
12735
12736         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
12737         .loc support.
12738
12739         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
12740         (dump_file): Only pad the demangled name with spaces if the
12741         mangled name was padded with spaces.
12742
12743 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
12744
12745         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
12746         edge detection.
12747
12748 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12749
12750         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
12751         extraction if no direct load if either EXPAND_CONST_ADDRESS or
12752         EXPAND_INITIALIZER.
12753
12754         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
12755         whether can put offset inside LO_SUM to check mode alignment, not size.
12756
12757 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
12758
12759         * doc/tm.texi (Misc): Fix thinko.
12760
12761 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
12762
12763         * regmove.c (replace_in_call_usage): Fix warnings.
12764         * sched-deps.c (add_dependence): Fix warnings.
12765         * simplify-rtx.c (simplify_subreg): Likewise.
12766         Return NULL_RTX instead of NULL.
12767
12768         * reg-stack.c (emit_swap_insn): Eliminate warnings.
12769         (subst_asm_stack_regs): Likewise.
12770
12771         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
12772         warnings.
12773
12774         * dwarf2out.c (output_call_frame_info): Declare i as int.
12775         (build_abbrev_table): Declare n_alloc as int.
12776         (dwarf2out_finish): Initialize die.
12777         * except.c: Declare sjlj_funcdef_number as unsigned.
12778         (connect_post_landing_pads): Declare j as unsigned.
12779         (convert_to_eh_region_ranges): Initialize call_site.
12780         (output_function_exception_table): Initialize tt_format_size.
12781         * expr.c (move_by_pieces_1): Initialize to1.
12782         (store_constructor): Initialize minelt and maxelt.
12783         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
12784         * function.c (instantiate_decls): Avoid signed/unsigned warning.
12785
12786         * c-decl.c (combine_parm_decls): Unused, remove.
12787         * c-tree.h: Remove prototype for combine_parm_decls.
12788
12789         * reload.c (push_reload): Fix warning.
12790         (regno_clobbered_p): Likewise.
12791         * reload1.c (replace_pseudos_in_call_usage): Likewise.
12792         (reload_combine): Likewise.
12793
12794         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
12795         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
12796         warnings.
12797         * bitmap.c (bitmap_operation): Change user.
12798         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
12799
12800 2001-07-10  Eric Christopher  <echristo@redhat.com>
12801
12802         * config/mips/mips.c (override_options): Fix typo.
12803
12804 2001-07-09  Stan Shebs  <shebs@apple.com>
12805
12806         * target.h (struct gcc_target): New fields init_builtins and
12807         expand_builtin.
12808         * target-def.h (TARGET_INIT_BUILTINS): New macro.
12809         (TARGET_EXPAND_BUILTIN): New macro.
12810         (TARGET_INITIALIZER): Add them.
12811         * builtins.c: Include target.h.
12812         (expand_builtin): Use targetm.expand_builtin.
12813         (default_init_builtins): New function.
12814         (default_expand_builtin): New function.
12815         * expr.h (default_init_builtins): Declare.
12816         (default_expand_builtin): Declare.
12817         * c-common.c (c_common_nodes_and_builtins): Use
12818         targetm.init_builtins.
12819         * defaults.h (MD_INIT_BUILTINS): Remove.
12820         * Makefile.in (builtins.o): Depend on target.h.
12821
12822         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
12823         (TARGET_EXPAND_BUILTIN): Define.
12824         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
12825         (MD_EXPAND_BUILTIN): Remove.
12826
12827         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
12828         (TARGET_EXPAND_BUILTIN): Define.
12829         (c4x_init_builtins): Make endlink arg a local.
12830         (c4x_print_operand): Fix typos in adjust_address usages.
12831         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
12832         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
12833         (MD_EXPAND_BUILTIN): Remove.
12834
12835         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
12836         (TARGET_EXPAND_BUILTIN): Define.
12837         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
12838         (ix86_init_builtins): Call new function only if TARGET_MMX.
12839         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
12840         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
12841         (MD_EXPAND_BUILTIN): Remove.
12842
12843         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
12844         (TARGET_EXPAND_BUILTIN): Define.
12845         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
12846         (MD_EXPAND_BUILTIN): Remove.
12847
12848         * doc/tm.texi: Document these changes.
12849
12850 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
12851
12852         * basic-block.h (tree_node): Forward declare if needed.
12853         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
12854         (BLOCK_HEAD_TREE): Define.
12855         (BLOCK_END_TREE): Define.
12856         (struct loops): Rename field 'tree' to 'tree_root'.
12857         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
12858         'end_tree'.
12859         (flow_loops_tree_build): Rename reference to field 'tree' to
12860         'tree_root'.
12861         (flow_loops_level_compute): Ditto.
12862         * predict.c (estimate_bb_frequencies): Ditto.
12863         * tree.h (struct tree_common): Add field 'aux'.
12864
12865 2001-07-09  Stan Shebs  <shebs@apple.com>
12866
12867         * config/darwin.c (darwin_encode_section_info): Don't mark any
12868         DECL_EXTERNAL node as defined.
12869
12870 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12871
12872         * pa.c (pa_init_machine_status, pa_mark_machine_status,
12873         pa_free_machine_status, hppa_init_pic_save): Delete.
12874         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
12875         (hppa_profile_hook): Use hppa_pic_save_rtx.
12876         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
12877         hppa_init_pic_save): Delete.
12878         (hppa_pic_save_rtx): Declare.
12879         * pa.md (call, call_value, sibcall, sibcall_value,
12880         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
12881
12882 2001-07-09  Kazu Hirata  <kazu@hxi.com>
12883
12884         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
12885         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
12886
12887 2001-07-09  Andreas Jaeger  <aj@suse.de>
12888
12889         * output.h: Add declaration of final_forward_branch_p.
12890
12891         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
12892
12893         * varray.c: Include errors.h for internal_error and trim_filename
12894         declarations.
12895
12896         * Makefile.in (varray.o): Add errors.h.
12897
12898 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
12899
12900         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
12901         * optabs.c (have_add2_insn): Check whether the add insn chosen
12902         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
12903         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
12904
12905 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
12906
12907         * Makefile.in (OBJS): Add ssa-ccp.o
12908         (ssa-ccp.o): Add dependencies.
12909         * toplev.c (DFI_ssa_ccp): New dump file enum.
12910         (dump_file): Add entry for dumping after SSA CCP.
12911         (flag_ssa_ccp): New flag variable.
12912         (f_options): Add -fssa-ccp.
12913         (rest_of_compilation): Run SSA CCP if requested.
12914         * timevar.def (TV_SSA_CCP): New timevar.
12915         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
12916         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
12917         Fix minor typo in SSA DCE documentation.
12918         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
12919         Add documentation for new dump option.  Renumber dump files
12920         appropriately.
12921
12922 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
12923
12924         * emit-rtl.c (gen_highpart_mode): New.
12925         * rtl.h (gen_highpart_mode): Declare.
12926         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
12927         operand can be VOIDmode constant.
12928
12929 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
12930
12931         * flow.c (redirect_edge_and_branch_force): New.
12932         (can_fallthru): Ensure that basic blocks are succeeding.
12933         (try_optimize_cfg): Do not delete basic block if it is the last one.
12934
12935         * flow.c (try_redirect_by_replacing_jump): Do not remove
12936         jumps with side effects, unlink chain on fallthru edge;
12937         set block for new jump instruction; avoid basic block to
12938         over by line number note.
12939
12940         * flow.c (try_simplify_condjump): Verify that the condjump
12941         is not always falling through.
12942
12943         Re-install patch:
12944         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
12945
12946         * flow.c (forwarder_block_p): Fix for fallthru blocks.
12947         (try_redirect_by_replacing_jump): Update properly the count
12948         and frequency information.
12949
12950 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12951
12952         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
12953         address that is a LO_SUM specially.
12954         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
12955
12956         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
12957
12958         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
12959         (operand_subword): Use them.
12960         (change_address_1): Renamed from change_address; new arg VALIDATE.
12961         * expr.h: Reflect above changes; change_address now macro.
12962         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
12963         making MEM.
12964         * cselib.c (add_mem_for_addr): Likewise.
12965         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
12966         * regmove.c (try_apply_stack_adjustment): Likewise.
12967         * reload.c (push_reload, make_memloc): Likewise.
12968         * reload1.c (eliminate_regs): Likewise.
12969         * simplify-rtx.c (simplify_replace_rtx): Likewise.
12970         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
12971         adjust_addess.
12972         * combine.c (make_extraction, simplify_shift_const): Likewise.
12973         (gen_lowpart_for_combine): Likewise.
12974         * cse.c (gen_lowpart_if_possible): Likewise.
12975         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
12976         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
12977         * optabs.c (gen_move_insn): Likewise.
12978         * reload1.c (alter_reg): Likewise.
12979         * simplify-rtx.c (simplify_subreg): Likewise.
12980         * stmt.c (expand_anon_union_decl): Likewise.
12981         * recog.c (validate_replace_rtx_1): Likewise.
12982         (expr.h): Include.
12983         * Makefile.in (recog.o): Add $(EXPR_H).
12984         * explow.c (stabilize): Call replace_equiv_address.
12985         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
12986         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
12987
12988 2001-07-03  Andrew Haley  <aph@redhat.com>
12989
12990         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
12991         the mode of the memory location.
12992
12993 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
12994
12995         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
12996
12997 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12998
12999         * final.c (output_addr_const): Use target opening and
13000         closing parentheses.
13001         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
13002         defaults, add to TARGET_ASM_OUT.
13003         * target.h (struct gcc_target): Add open_paren and close_paren.
13004         * doc/md.texi: Update.
13005         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
13006         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
13007         TARGET_ASM_CLOSE_PAREN.
13008         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
13009         Override.
13010         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
13011         Override.
13012         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
13013         * config/a29k/a29k.h: Similarly.
13014         * config/alpha/alpha.h: Similarly.
13015         * config/arc/arc.h: Similarly.
13016         * config/arm/aof.h: Similarly.
13017         * config/arm/aout.h: Similarly.
13018         * config/avr/avr.h: Similarly.
13019         * config/c4x/c4x.h: Similarly.
13020         * config/clipper/clipper.h: Similarly.
13021         * config/convex/convex.h: Similarly.
13022         * config/d30v/d30v.h: Similarly.
13023         * config/dsp16xx/dsp16xx.h: Similarly.
13024         * config/elxsi/elxsi.h: Similarly.
13025         * config/fr30/fr30.h: Similarly.
13026         * config/h8300/h8300.h: Similarly.
13027         * config/i370/i370.h: Similarly.
13028         * config/i386/i386.h: Similarly.
13029         * config/i860/i860.h: Similarly.
13030         * config/i960/i960.h: Similarly.
13031         * config/ia64/ia64.h: Similarly.
13032         * config/m32r/m32r.h: Similarly.
13033         * config/m68hc11/m68hc11.h: Similarly.
13034         * config/m68k/m68k.h: Similarly.
13035         * config/m88k/m88k.h: Similarly.
13036         * config/mcore/mcore.h: Similarly.
13037         * config/mips/mips.h: Similarly.
13038         * config/mn10200/mn10200.h: Similarly.
13039         * config/mn10300/mn10300.h: Similarly.
13040         * config/ns32k/ns32k.h: Similarly.
13041         * config/pa/pa.h: Similarly.
13042         * config/pdp11/pdp11.h: Similarly.
13043         * config/pj/pj.h: Similarly.
13044         * config/romp/romp.h: Similarly.
13045         * config/rs6000/rs6000.h: Similarly.
13046         * config/sh/sh.h: Similarly.
13047         * config/sparc/sparc.h: Similarly.
13048         * config/v850/v850.h: Similarly.
13049         * config/vax/vax.h: Similarly.
13050         * config/we32k/we32k.h: Similarly.
13051
13052 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
13053
13054         * doc/c-tree.texi: Document representation of attributes.
13055
13056 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13057
13058         * doc/tm.texi: Update some places for the rename of target to
13059         targetm.  Fix typo.
13060
13061 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13062
13063         * target.h (struct gcc_target): Add insert_attributes.
13064         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
13065         (TARGET_INITIALIZER): Update.
13066         * tree.c, tree.h (default_insert_attributes): New function.
13067         Update comments on other default functions to refer to targetm,
13068         not target.
13069         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
13070         TARGET_INSERT_ATTRIBUTES.
13071         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
13072         * c-common.c (decl_attributes): Use targetm.insert_attributes.
13073         Don't use PRAGMA_INSERT_ATTRIBUTES.
13074         * Makefile.in (c-common.o): Depend on $(TARGET_H).
13075         * c-decl.c (start_decl, start_function): Don't call
13076         SET_DEFAULT_DECL_ATTRIBUTES.
13077         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
13078         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
13079         declare.
13080         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
13081         (c4x_check_attribute): Avoid modifying attribute list itself.
13082         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
13083         Make static.
13084         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
13085         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
13086         declare.
13087         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
13088         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
13089         Make static.
13090         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
13091         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
13092         declare.
13093         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
13094         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
13095         Adjust parameters.  Make static.
13096
13097 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13098
13099         * c-common.c (decl_attributes): Only take a single attributes
13100         parameter.
13101         * c-common.h (decl_attributes): Update prototype.
13102         * c-decl.c (start_decl, start_function): Only take a single
13103         attributes parameter.  Update calls to decl_attributes.
13104         (finish_struct, finish_enum): Update calls to decl_attributes.
13105         (push_parm_decl): Expect unified list of attributes.  Update call
13106         to decl_attributes.
13107         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
13108         notype_nested_function, component_declarator,
13109         component_notype_declarator, label): Update calls to
13110         decl_attributes.
13111         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
13112         lists that are passed to push_parm_decl.
13113         * c-tree.h (start_function, start_decl): Update prototypes.
13114         * config/sh/sh-protos.h, config/sh/sh.c
13115         (sh_pragma_insert_attributes): Only take a single attributes
13116         parameter.
13117         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
13118         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
13119         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
13120         build_module_descriptor, generate_static_references,
13121         generate_strings, build_selector_translation_table,
13122         generate_descriptor_table, generate_protocols,
13123         generate_ivars_list, generate_dispatch_table,
13124         generate_protocol_list, generate_category,
13125         generate_shared_structures, really_start_method, add_objc_decls,
13126         generate_classref_translation_entry): Update calls to start_decl
13127         and start_function.
13128         (build_tmp_function_decl, start_method_def): Unify attribute lists
13129         that are passed to push_parm_decl.
13130
13131 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
13132
13133         * final.c (no_asm_to_stream): New.
13134         (final_scan_insn): Use target structures for prologue ends
13135         and epilogue starts.
13136         * output.h (no_asm_to_stream): New.
13137         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
13138         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
13139         (TARGET_ASM_OUT): Update.
13140         * target.h (struct gcc_target): New members function_end_prologue
13141         and function_begin_epilogue.
13142         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
13143         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
13144         * config/alpha/alpha.c (output_end_prologue): Rename to
13145         alpha_output_function_end_prologue.  Use in target struct
13146         and make static.
13147         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
13148         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
13149         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
13150         ia64_output_function_end_prologue.  Use in target struct
13151         and make static.
13152         (ia64_function_prologue, ia64_funciton_epilogue): Rename
13153         mistyped prototypes.
13154         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
13155         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
13156         Delete.
13157         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
13158         an use in target struct, make static.
13159         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
13160         Delete.
13161
13162 2001-07-08  Richard Henderson  <rth@redhat.com>
13163
13164         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
13165
13166 2001-07-08  Richard Henderson  <rth@redhat.com>
13167
13168         * config/i386/i386.md: Remove constraints strings from define_split
13169         and define_peephole2 patterns.
13170         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
13171         (eh_return): Use them.
13172
13173 2001-07-08  Richard Henderson  <rth@redhat.com>
13174
13175         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
13176         Document MD_FALLBACK_FRAME_STATE_FOR.
13177
13178 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13179
13180         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
13181         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
13182         elimination.
13183         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
13184
13185 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
13186
13187         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
13188         of the label inside NAME as opposed to just the end of NAME.
13189
13190 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
13191
13192         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
13193         * config/alpha/alpha.c (alpha_init_machine_status,
13194         alpha_mark_machine_status, alpha_free_machine_status): Delete.
13195         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
13196         (vms_valid_decl_attribute_p): Make static, conditionally compile.
13197         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
13198
13199 2001-07-06  Stan Shebs  <shebs@apple.com>
13200
13201         * target.h (targetm): Rename global from "target", so as not to
13202         conflict with local variables.
13203         * c-decl.c: Ditto.
13204         * c-typeck.c: Ditto.
13205         * final.c: Ditto.
13206         * tree.c: Ditto.
13207         * cp/decl.c: Ditto.
13208         * cp/decl2.c: Ditto.
13209         * cp/typeck.c: Ditto.
13210         * 1750a/1750a.c: Ditto.
13211         * a29k/a29k.c: Ditto.
13212         * arc/arc.c: Ditto.
13213         * arm/arm.c: Ditto.
13214         * avr/avr.c: Ditto.
13215         * clipper/clipper.c: Ditto.
13216         * convex/convex.c: Ditto.
13217         * d30v/d30v.c: Ditto.
13218         * dsp16xx/dsp16xx.c: Ditto.
13219         * elxsi/elxsi.c: Ditto.
13220         * fr30/fr30.c: Ditto.
13221         * h8300/h8300.c: Ditto.
13222         * i370/i370.c: Ditto.
13223         * i386/i386.c: Ditto.
13224         * i860/i860.c: Ditto.
13225         * i960/i960.c: Ditto.
13226         * ia64/ia64.c: Ditto.
13227         * m32r/m32r.c: Ditto.
13228         * m68hc11/m68hc11.c: Ditto.
13229         * m68k/m68k.c: Ditto.
13230         * m88k/m88k.c: Ditto.
13231         * mips/mips.c: Ditto.
13232         * ns32k/ns32k.c: Ditto.
13233         * pa/pa.c: Ditto.
13234         * pdp11/pdp11.c: Ditto.
13235         * romp/romp.c: Ditto.
13236         * rs6000/rs6000.c: Ditto.
13237         * sh/sh.c: Ditto.
13238         * sparc/sparc.c: Ditto.
13239         * vax/vax.c: Ditto.
13240         * we32k/we32k.c: Ditto.
13241         * doc/tm.texi: Update the manual to match.
13242
13243 2001-07-06  Richard Henderson  <rth@redhat.com>
13244
13245         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
13246         DWARF2_UNWIND_INFO not just whether it is defined.
13247
13248 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
13249
13250         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
13251         call to simplify_binary_operation returns a new pattern.
13252
13253 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
13254
13255         * glimits.h (__SHRT_MAX__): New.
13256         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
13257         (SHRT_MAX): Define in terms of __SHRT_MAX__.
13258
13259 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
13260
13261         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
13262         avoid warnings.
13263
13264 2001-07-06  Richard Henderson  <rth@redhat.com>
13265
13266         * bitmap.c (bitmap_release_memory): Move adjacent to the
13267         allocation functions.
13268         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
13269         the implementation.  Binary search for the set bit.
13270         (bitmap_union_of_diff): Allocate the temporary on the stack
13271         instead of using xmalloc.
13272
13273 2001-07-06  Richard Henderson  <rth@redhat.com>
13274
13275         * genrecog.c (validate_pattern): Warn for constraints in
13276         define_{expand,split,peephole2}.  Remove strict_low_part
13277         before looking up match_dup.
13278
13279 2001-07-06  DJ Delorie  <dj@redhat.com>
13280
13281         * doc/gcc.texi (Makefile): Rename to be a more general purpose
13282         chapter about various build hints and history.  Add section
13283         talking about the various types of native and cross builds.
13284
13285 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
13286
13287         * Makefile.in (final.o): Depend on target.h.
13288         * final.c: Include target.h.
13289         (default_function_pro_epilogue): New.
13290         (final_start_function): Use target structure for function prologues.
13291         (final_end_function): Use target structure for function epilogues.
13292         * fold-const.c (real_hex_to_f): Constify s and p.
13293         * output.h (default_function_pro_epilogue): New.
13294         * real.h (real_hex_to_f): Update prototype.
13295         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
13296         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
13297         (TARGET_INITIALIZER): Update.
13298         * target.h (gcc_target): Add struct asm_out.
13299         * doc/tm.texi: Update.
13300
13301 config:
13302         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
13303         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
13304         in cpu/cpu.c, or rename old functions consistently.  Take
13305         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
13306         redundant macros and prototypes.  Make new functions static.
13307
13308         * 1750a/1750a.c: Similarly.
13309         * 1750a/1750a.h: Similarly.
13310         * a29k/a29k-protos.h: Similarly.
13311         * a29k/a29k.c: Similarly.
13312         * a29k/a29k.h: Similarly.
13313         * arc/arc-protos.h: Similarly.
13314         * arc/arc.c: Similarly.
13315         * arc/arc.h: Similarly.
13316         * arm/arm-protos.h: Similarly.
13317         * arm/arm.c: Similarly.
13318         * arm/arm.h: Similarly.
13319         * avr/avr-protos.h: Similarly.
13320         * avr/avr.c: Similarly.
13321         * avr/avr.h: Similarly.
13322         * clipper/clipper-protos.h: Similarly.
13323         * clipper/clipper.c: Similarly.
13324         * clipper/clipper.h: Similarly.
13325         * convex/convex.c: Similarly.
13326         * convex/convex.h: Similarly.
13327         * d30v/d30v-protos.h: Similarly.
13328         * d30v/d30v.c: Similarly.
13329         * d30v/d30v.h: Similarly.
13330         * d30v/d30v.md: Similarly.
13331         * dsp16xx/dsp16xx-protos.h: Similarly.
13332         * dsp16xx/dsp16xx.c: Similarly.
13333         * dsp16xx/dsp16xx.h: Similarly.
13334         * elxsi/elxsi.c: Similarly.
13335         * elxsi/elxsi.h: Similarly.
13336         * fr30/fr30.c: Similarly.
13337         * fr30/fr30.md: Similarly.
13338         * h8300/h8300-protos.h: Similarly.
13339         * h8300/h8300.c: Similarly.
13340         * h8300/h8300.h: Similarly.
13341         * i370/i370-protos.h: Similarly.
13342         * i370/i370.c: Similarly.
13343         * i370/i370.h: Similarly.
13344         * i386/i386.c: Similarly.
13345         * i386/osf1elf.h: Similarly.
13346         * i386/osfrose.h: Similarly.
13347         * i860/i860-protos.h: Similarly.
13348         * i860/i860.c: Similarly.
13349         * i860/i860.h: Similarly.
13350         * i960/i960-protos.h: Similarly.
13351         * i960/i960.c: Similarly.
13352         * i960/i960.h: Similarly.
13353         * ia64/ia64-protos.h: Similarly.
13354         * ia64/ia64.c: Similarly.
13355         * ia64/ia64.h: Similarly.
13356         * m32r/m32r-protos.h: Similarly.
13357         * m32r/m32r.c: Similarly.
13358         * m32r/m32r.h: Similarly.
13359         * m68hc11/m68hc11-protos.h: Similarly.
13360         * m68hc11/m68hc11.c: Similarly.
13361         * m68hc11/m68hc11.h: Similarly.
13362         * m68k/crds.h: Similarly.
13363         * m68k/dpx2.h: Similarly.
13364         * m68k/m68k-protos.h: Similarly.
13365         * m68k/m68k.c: Similarly.
13366         * m68k/m68k.h: Similarly.
13367         * m68k/news.h: Similarly.
13368         * m88k/m88k-protos.h: Similarly.
13369         * m88k/m88k.c: Similarly.
13370         * m88k/m88k.h: Similarly.
13371         * mips/mips-protos.h: Similarly.
13372         * mips/mips.c: Similarly.
13373         * mips/mips.h: Similarly.
13374         * ns32k/merlin.h: Similarly.
13375         * ns32k/ns32k.c: Similarly.
13376         * ns32k/ns32k.h: Similarly.
13377         * ns32k/tek6000.h: Similarly.
13378         * pa/pa-protos.h: Similarly.
13379         * pa/pa.c: Similarly.
13380         * pa/pa.h: Similarly.
13381         * pdp11/2bsd.h: Similarly.
13382         * pdp11/pdp11-protos.h: Similarly.
13383         * pdp11/pdp11.c: Similarly.
13384         * pdp11/pdp11.h: Similarly.
13385         * romp/romp-protos.h: Similarly.
13386         * romp/romp.c: Similarly.
13387         * romp/romp.h: Similarly.
13388         * rs6000/rs6000-protos.h: Similarly.
13389         * rs6000/rs6000.c: Similarly.
13390         * rs6000/rs6000.h: Similarly.
13391         * rs6000/sysv4.h: Similarly.
13392         * sh/sh-protos.h: Similarly.
13393         * sh/sh.c: Similarly.
13394         * sh/sh.h: Similarly.
13395         * sparc/sparc-protos.h: Similarly.
13396         * sparc/sparc.c: Similarly.
13397         * sparc/sparc.h: Similarly.
13398         * vax/vax.c: Similarly.
13399         * vax/vax.h: Similarly.
13400         * vax/vms.h: Similarly.
13401         * we32k/we32k.c: Similarly.
13402         * we32k/we32k.h: Similarly.
13403
13404 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
13405
13406         * basic-block.h (first_insn_after_basic_block_note): Declare.
13407         * flow.c (first_insn_after_basic_block_note): Define.  Moved
13408         from...
13409         * ssa.c (first_insn_after_basic_block_note): Remove.
13410         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
13411         necessary.
13412         (ssa_eliminate_dead_code): Properly update the CFG and PHI
13413         nodes when we find a dead conditional branch.  Insert BARRIERs
13414         after any blocks with no successors, but which do not have
13415         any BARRIERs.
13416
13417 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
13418
13419         * varray.c (varray_check_failed): Use internal_error.
13420
13421 2001-07-05  Andrew Haley  <aph@redhat.com>
13422
13423         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
13424         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
13425         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
13426
13427 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
13428
13429         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
13430         reference if the target constant is also a SYMBOL_REF.
13431
13432 2001-07-05  Eric Christopher  <echristo@redhat.com>
13433
13434         * config/mips/mips.h (MASK_MIPS3900): Remove.
13435         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
13436         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
13437         (TARGET_MIPS3900): Change to use mips_arch.
13438         (TARGET_MIPS4000): New.
13439         (TARGET_MIPS4100): New.
13440         (TARGET_MIPS4300): New.
13441         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
13442         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
13443         for -mipsX.
13444         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
13445         (ISA_HAS_BRANCHLIKELY): To here.
13446         (CC1_CPU_SPEC):  New.
13447         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
13448         (mips_arch_string): Declare.
13449         (mips_arch): Declare.
13450         (TARGET_OPTIONS): Add -march and -mtune.
13451
13452         * config/mips/mips.c (mips_arch_string): New.
13453         (mips_arch): New.
13454         (override_options): Handle -march for codegen and -mtune
13455         for scheduling. Use mips_arch. Move tx39 target default here.
13456         (mips_parse_cpu): Move error message to override_options.
13457
13458         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
13459
13460         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
13461
13462         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
13463         (MIPS Options): Ditto.  Change mcpu entry to historical text.
13464
13465 2001-07-05  H.J. Lu  (hjl@gnu.org)
13466
13467         * config/mips/mips.c (mips_parse_cpu): New function to parse
13468         -march=*/-mcpu=*.
13469
13470 2001-07-05  Jim Wilson  <wilson@redhat.com>
13471
13472         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
13473         * config/ia64/t-ia64: Likewise.
13474         (LIB1ASMFUNCS): Update comment.
13475
13476 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
13477
13478         * doc/install.texi (Install GCC: Binaries): Fix typo.
13479
13480 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13481
13482         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
13483         reference using the stack pointer, adjust it since we push Y
13484         temporarily.
13485         ("*ashrsi3"): Likewise.
13486         ("*lshrsi3"): Likewise.
13487
13488 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13489
13490         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
13491         when -fomit-frame-pointer is used.
13492
13493 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
13494
13495         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
13496         (try_redirect_by_replacing_jump): Reverse updating properly the
13497         count and frequency information.  Reverse removing cc0 setter.
13498         (forwarder_block_p): Reverse fixing for fallthru blocks.
13499
13500 2001-07-05  DJ Delorie  <dj@redhat.com>
13501
13502         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
13503         (translate_options): If the above is defined, use it to map
13504         given options to new options.
13505         * doc/tm.texi: Document it.
13506
13507 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
13508             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13509
13510         * doc/invoke.texi (Optimize Options): Document that -fgcse may
13511         cause programs using computed gotos to run more slowly.
13512
13513 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13514
13515         * doc/install.texi (Specific): Markup, spelling and typo fixes.
13516         Fixed sorting.
13517         Consistently require binutils 2.11.2, not prereleases.
13518         (Specific, decstation-*): Canonicalize as mips-dec-*.
13519         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
13520         always necessary.
13521         (Specific, m68k-altos): Removed reference to README.altos, deleted.
13522         (Specific, mips-*): Reword MIPS C compiler requirements.
13523         (Specific, powerpc*-*-*): New, mention --with-cpu once.
13524         (Specific, sunv5): Removed, obsolete.
13525
13526 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
13527
13528         * dwarf2out.c (output_loc_list): Use an all ones mask for
13529         .text asm output and don't rely on long long
13530         literals. Reformat some long lines.
13531
13532 2001-07-05  Andreas Jaeger  <aj@suse.de>
13533
13534         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
13535         section.
13536
13537 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
13538
13539         * dwarf2out.c (dwarf2out_define): Update comment.
13540         (dwarf2out_undef): Ditto.
13541         (dwarf2out_start_source_file): Ditto.
13542         (dwarf2out_end_source_file): Ditto.
13543         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
13544         since we never call the start/end debug hook for the primary file.
13545
13546 2001-07-04  Kazu Hirata  <kazu@hxi.com>
13547
13548         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
13549         from shll.
13550
13551 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
13552
13553         * cppinit.c (remove_dup_dirs): Inform if a system include
13554         directory is being reordered.
13555         * doc/invoke.texi (Directory Options): GCC warns if you hide a
13556         system include.
13557         * doc/cpp.texi (Search Paths): Likewise.
13558         * doc/gcc.texi (Interoperation): Remove information about
13559         -I/usr/include.
13560
13561 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
13562
13563         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
13564         (VARRAY_TOP_CHAR_PTR): Likewise.
13565
13566 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13567
13568         * gcc.c (process_command): Don't assign elements of a const char*.
13569
13570 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13571
13572         * emit-rtl.c (change_address): Don't abort if invalid address while
13573         reload is in progress.
13574
13575 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
13576
13577         * c-lex.c (cb_file_change): Pass line number to
13578         debug_start_source_file.
13579         (cb_undefine): Pass correct line number to debug_undef.
13580
13581         * toplev.c (debug_start_source_file): Add line number to
13582         parameters. Pass it along to dwarf2out_start_source_file.
13583         (decode_g_option): Stop resetting debug level back to normal when
13584         we change debug formats, unless the current level is
13585         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
13586         3).
13587
13588         * toplev.h (debug_start_source_file): Add line number to
13589         parameters.
13590
13591         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
13592         parameters.
13593
13594         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
13595         parameters.
13596         Output debug_macinfo data for starting file if requested.
13597         (dwarf2out_end_source_file): Output debug_macinfo data for ending
13598         file if requested.
13599         (dwarf2out_define): Output debug_macinfo data for defining a macro
13600         if requested.
13601         (dwarf2out_undef): Output debug_macinfo data for undefining a
13602         macro if requested.
13603         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
13604         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
13605         (macinfo_section_label): New. DWARF2 macro info section label.
13606         (dwarf2out_init): If we want macro info, output the start label
13607         for the section.
13608         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
13609         attribute to the compilation unit die pointing to the macro info.
13610
13611 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
13612
13613         * dwarf2out.c (new_loc_list): Move to inside #ifdef
13614         DWARF2_DEBUGGING_INFO.
13615         (add_loc_descr_to_loc_list): Ditto.
13616         (output_loc_list): Ditto.
13617         Also, fix thinko in curr not being initialized.
13618         (gen_internal_sym): Ditto.
13619
13620 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13621
13622         * emit-rtl.c (replace_equiv_address): New function.
13623         * expr.h (replace_equiv_address): New declaration.
13624         * explow.c (validize_mem): Call it instead of change_address and
13625         also call if -fforce-addr and address is constant.
13626         * expr.c: Replace more calls to change_address with adjust_address
13627         and/or replace_equiv_address or to validize_mem.
13628         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
13629         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
13630         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
13631         * config/i370/i370.md, config/i860/i860.md: Likewise.
13632         * config/i960/i960.md, config/mips/mips.c: Likewise.
13633         * config/mips/mips.md, config/pa/pa.md: Likewise.
13634         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
13635         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
13636
13637 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13638
13639         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
13640
13641         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
13642         function.
13643
13644 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
13645
13646         * doc/include: New directory.
13647         * doc/fdl.texi: Move to doc/include/fdl.texi.
13648         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
13649         * doc/include/funding.texi, doc/include/gpl.texi: New files.
13650         * doc/gcc.texi: Use funding.texi and gpl.texi.
13651         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
13652         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
13653         Update dependencies and use -I $(docdir)/include.
13654
13655 2001-07-04  Anthony Green  <green@redhat.com>
13656
13657         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
13658
13659 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13660
13661         * doc/install.texi (sparc64-*-*): Remove garbage.
13662
13663 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
13664
13665         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
13666         Fix typo in last change to use adjust_address.
13667
13668 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13669
13670         * doc/install.texi (Specific): Update information for *-*-solaris*.
13671
13672 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13673
13674         * explow.c (plus_constant_wide): Reinitialize Y for restart.
13675
13676 2001-07-03  Stan Shebs  <shebs@apple.com>
13677
13678         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
13679         case for flag_no_mach_text_sections.
13680         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
13681         * config/darwin.c (flag_no_mach_text_sections): Remove.
13682         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
13683
13684 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13685
13686         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
13687         and avoid checking for constant as first operand.
13688         * recog.c (find_constant_term_loc): No longer static.
13689         (adj_offettable_operand): Delete.
13690         * rtl.h (adj_offsettable_operand): Delete declaration.
13691         (find_constant_term): Add declaration.
13692         * caller-save.c: Replace calls to adj_offsettable_operand with calls
13693         to adjust_address.
13694         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
13695         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
13696         * config/i386/i386.c, config/i386/i386.md: Likewise.
13697         * config/i860/i860.c, config/i960/i960.c: Likewise.
13698         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
13699         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
13700         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
13701         * config/mips/mips.c, config/mips/mips.md: Likewise.
13702         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
13703         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
13704         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
13705         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
13706         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
13707         * config/ns32k/ns32k.md: Likewise.
13708
13709 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
13710
13711         * rtl.c (copy_rtx): Handle 'T' format letter.
13712         * gensupport.c (collect_insn_data): Likewise.
13713         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
13714
13715 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
13716
13717         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
13718         -B option.  Use 'dir' not 'foo' as example directory name.
13719
13720 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13721
13722         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13723         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
13724
13725 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
13726
13727         * doc/cppinternals.texi: Improve formatting and logical markup.
13728
13729 2001-07-03  Andreas Jaeger  <aj@suse.de>
13730
13731         * Makefile.in (insn-recog.o): Add dependency on reload.h.
13732
13733         * genrecog.c (write_header): Include reload.h for prototypes in
13734         insn-recog.c.
13735
13736 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
13737
13738 config:
13739         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
13740         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
13741         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
13742         i386_pe_valid_type_attribute_p): Add.
13743         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
13744         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
13745
13746 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13747
13748         * explow.c (plus_constant_wide, case LO_SUM): New case.
13749         (plus_constant_for_output_wide): Delete.
13750         * rtl.h (plus_constant_for_output): Delete.
13751         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
13752         instead of plus_constant_for_output.
13753         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
13754         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
13755         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
13756         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
13757         * config/sparc/sparc.md: Likewise.
13758         Convert some change_address calls to adjust_address.
13759
13760 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
13761
13762         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
13763         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
13764         documentation of -std and -Wwrite-strings.
13765
13766 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
13767
13768         * cse.c (canon_hash): Don't register registers in very small
13769         register classes, as extending their lifetime might cause
13770         reload to fail.
13771
13772 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13773
13774         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
13775
13776         * flow.c (forwarder_block_p): Fix for fallthru blocks.
13777         (try_redirect_by_replacing_jump): Update properly the count
13778         and frequency information.
13779
13780 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
13781
13782         * toplev.c (dump_file_index): Move SSA dumps just after first
13783         jump dump.
13784         (dump_file): Corresponding changes.
13785         (rest_of_compilation): Move SSA path to just after the first
13786         jump pass.
13787         * doc/gcc.texi (Passes): Update due to movement of SSA path.
13788         * doc/invoke.texi: Update dump file #s as they were completely
13789         out of date with reality.
13790
13791 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
13792
13793         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
13794
13795         * expr.c (emit_move_insn_1): Deal with non-default
13796         STACK_PUSH_CODE.
13797
13798         * expr.c (emit_single_push_insn): Fix warning.
13799
13800 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
13801
13802         * expr.c (emit_move_insn_1): Avoid modifying
13803         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
13804
13805 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13806
13807         * emit-rtl.c (adjust_address): New function.
13808         * expr.h (adjust_address): Add declaration.
13809         * builtins.c: Replace some calls to change_address with calls to it
13810         or to validize_mem.
13811         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
13812         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
13813         * config/arm/arm.c, config/convex/convex.c: Likewise.
13814         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
13815         * config/i386/i386.c, config/i386/i386.md: Likewise.
13816         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
13817         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
13818         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
13819         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
13820         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
13821
13822 2001-07-02  Jim Wilson  <wilson@redhat.com>
13823
13824         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
13825
13826 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
13827
13828         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
13829         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
13830
13831 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
13832
13833         * cppinit.c (lang_defaults): New table.
13834         (set_lang): Just read from lang_defaults into the live options
13835         structure.
13836
13837 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
13838
13839         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
13840         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
13841         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
13842
13843 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13844
13845         * doc/install.texi: Various spelling and markup fixes.
13846         (Installing GCC): Component specific installation instructions are
13847         gone.
13848         Fix reference.
13849         Warn about removing old install dir in the presence of shared libs.
13850         (Configuration): Invoke with options target to match configure
13851         --help.
13852         Consistently refer to gas, gld pathnames.
13853         Invert --enable-multilib documentation.
13854         Remove references to old compiler versions.
13855
13856 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13857
13858         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
13859
13860 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13861
13862         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
13863         section.
13864         (Specific, mips*-sgi-irix5): Note IDO download.
13865         Reworded MIPS C hints.
13866         Use GNU as instead of GAS.
13867         Markup fixes.
13868         Removed SGI Freeware reference, IRIX 6 only.
13869         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
13870         Note N64 library requirement/workaround.
13871         Update O32 hints.
13872         Complete list of structure passing bug victims.
13873
13874 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13875
13876         * doc/install.texi: Remove CVS Id.
13877
13878 2001-07-02  Andreas Jaeger  <aj@suse.de>
13879
13880         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
13881         (find_inherently_necessary): Remove unused variable.
13882
13883 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
13884
13885         * c-common.h (TDI_inlined): New ast dump phase.
13886         (dump_flag_name): New function.
13887         * c-dump.c (dump_files): Add inlined phase.
13888         (dump_flag_name): Define.
13889         * doc/invoke.texi (-fdump-ast-inlined): Document.
13890
13891 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13892
13893         * stor-layout.c (layout_decl): Revert change to handling of alignment
13894         in packed types.
13895
13896 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13897
13898         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
13899         for FIELD_DECL.
13900
13901 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
13902
13903         * doc/tm.texi (FUNCTION_ARG): Document that the last call
13904         is special.
13905
13906 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
13907
13908         * tlink.c (recompile_files): Remove COMPILER_PATH and
13909         LIBRARY_PATH from the environment.
13910
13911 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
13912
13913         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
13914         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
13915         enumerators.
13916         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
13917
13918         * c-parse.in (OBJC_STRING): Kill.
13919         (objc_string): Decompose to [objc_string] '@' STRING.
13920         (reswords): Take the leading '@' off all the Objective C keywords.
13921         (objc_rid_sans_at): Kill.
13922         (init_reswords): Don't initialize it.
13923         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
13924         (_yylex): Kill reconsider label.  Look ahead one token after
13925         an '@'; if we get an identifier, check whether it's an
13926         Objective C @-keyword.  If so, return the keyword.  Otherwise,
13927         put back the token and return the '@' as a terminal.
13928
13929         * cpplib.c (lex_macro_node): Remove unnecessary check for
13930         leading '@' on identifier.  Clarify control flow and commentary.
13931
13932 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13933
13934         * cse.c (new_label_ref): Variable deleted.
13935         (insert): Remove set of new_label_ref.
13936         (check_for_label_ref): New function.
13937         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
13938
13939 See ChangeLog.5 for earlier changes.