OSDN Git Service

11eaaa81dd7053f7be14ae7977b311761e12b24e
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
2
3         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
4         if fndecl is still DECL_INLINE and has DECL_RESULT.
5
6 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7
8         * clipper.c (clipper_movstr): Avoid uninitialized warning.
9         * i960.c (is_mask, legitimize_address): Likewise.
10         * m88k.c (m88k_expand_prologue): Likewise.
11         * m88k.md: Likewise.
12         * mcore.c (emit_new_cond_insn): Likewise.
13         * stormy16.c (xstormy16_emit_cbranch): Likewise.
14
15 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
16
17         * config.gcc: Delete powerpcle-*-solaris2* stanza.
18         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
19         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
20         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
21         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
22         config/rs6000/t-ppcos: Expunge all references to Solaris.
23
24         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
25
26         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
27         output templates.
28         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
29         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
30
31 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32
33         * sh.md: Avoid uninitialized warnings.
34         * vax.c (vax_rtx_cost): Likewise.
35
36 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
37
38         * rs6000.c (direct_return): Check if we are saving altivec
39         registers.
40         (first_altivec_reg_to_save): New.
41         Updated stack frame layout comments.
42         (rs6000_stack_info): Calculate altivec register save size.
43         Save link register if we saved some altivec registers.
44         (rs6000_stack_info): Align save size to 16 if altivec abi or
45         abi_darwin.
46         (rs6000_stack_info): Calculate altivec register offsets.
47         (rs6000_stack_info): Add altivec info to save_size.
48         (debug_stack_info): Add altivec debug info.
49         (rs6000_emit_prologue): Save altivec registers and vrsave.
50         (compute_vrsave_mask): New.
51         (altivec_expand_builtin): Remove unused variables.
52         (rs6000_parse_abi_options): Add static qualifier.
53         (rs6000_expand_builtin): Remove unused parameters.
54         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
55         (altivec_init_builtins): Same.
56         (is_altivec_return_reg): New.
57         (vrsave_operation): New.
58         (ALTIVEC_REG_BIT): New.
59         (generate_set_vrsave): New.
60
61         * rs6000.md (get_vrsave): New.
62         (set_vrsave): New.
63         (*set_vrsave_internal): New.
64
65         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
66         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
67         altivec_padding_size, vrsave_mask.
68         (TOTAL_ALTIVEC_REGS): New.
69         (EPILOGUE_USES): Add VRSAVE_REGNO.
70
71 2001-11-20  Jeff Law <law@redhat.com>
72
73         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
74         exit label as necessary.
75
76 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
77
78         * reload1.c (elimination_effects): Use function_invariant_p
79         instead of CONSTANT_P when considering register equivalences.
80
81 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
82
83         * config.gcc: Add FreeBSD/PowerPC target.
84         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
85         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
86         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
87         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
88         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
89         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
90         freebsd-spec.h to tm_file.
91         (rs6000-*-lynxos*): Add lynx.h to tm_file.
92         * config/freebsd.h: Tidy up.
93         (USING_CONFIG_FREEBSD): Define.
94         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
95         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
96         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
97         (TARGET_HAS_F_SETLKW): Define.
98         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
99         * config/freebsd-spec.h: New file.
100         * config/rs6000/freebsd.h: New file.
101         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
102         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
103         USING_SVR4_H to know when to turn on ELF support.
104         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
105         define only if not already defined.
106         Add FreeBSD support.
107         * config/rs6000/aix.h (TARGET_VERSION): Define.
108         * config/rs6000/beos.h: Likewise.
109         * config/rs6000/darwin.h: Likewise.
110         * config/rs6000/mach.h: Likewise.
111         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
112         Don't include lynx.h directly.
113
114 2001-11-20  Graham Stott  <grahams@redhat.com>
115
116         * unwind-dw2-fde.c (__deregister_frame_info_bases):
117         Fix lossage in last change return OB.
118
119 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
120
121         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
122         Remove unneeded exit related macros.
123
124 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
125
126         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
127
128         * rs6000.c (rs6000_emit_move): Add TFmode case.
129         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
130         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
131         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
132         * rs6000.h: ... to here.
133         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
134         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
135         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
136
137 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
138
139         * emit-rtl.c (get_mem_attrs): Fix typo.
140
141 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
142
143         * c-lang.c (finish_file): Backout 2001-11-16
144         changes, instead set DECL_DEFER_OUTPUT for static inline functions
145         before calling c_expand_deferred_function.
146
147 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
148
149         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
150         Don't register empty .eh_frame sections.
151         (__deregister_frame_info_bases, __deregister_frame): Don't
152         unregister them either.
153
154 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
155
156         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
157         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
158         * configure: Regenerate.
159         * config.in: Add dummy definitions of new flags.
160         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
161         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
162         * gcc.c (ASM_DEBUG_SPEC): New macro.
163         (asm_debug): New static variable.
164         (default_compilers): Add asm_debug when assembling from
165         user input.
166         (static_specs): Add asm_debug.
167
168 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
169
170         * config.gcc (*-*-freebsd*): Remove configuration block.
171
172 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
173
174         bootstrap/4422
175         * configure.in: Setup ability to run ./stage[1234]/xgcc in
176         fixinc *as if* it were a proper lang subdirectory.
177         * configure: Rebuilt.
178
179 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
180
181         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
182
183 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
184
185         * 1750a.md: Don't use hex format for a const_int.
186
187 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
188
189         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
190
191 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
192
193         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
194         defined (prevents link errors when gettext isn't in the system
195         library).
196
197 2001-11-19  DJ Delorie  <dj@redhat.com>
198
199         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
200         (validate_const_int): New.
201         (read_rtx): Validate constant integers.
202         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
203
204 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
205
206         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
207
208 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
209
210         * toplev.c (DUMPFILE_FORMAT): Define default.
211         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
212         (close_dump_file, compile_file): Likewise.
213         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
214         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
215
216 2001-11-19  Jeff Law <law@redhat.com>
217
218         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
219         a nop-jump.
220
221 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
222
223         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
224         Don't fall off the base token run.
225
226 2001-11-19  Jason Wilkins <fenix@io.com>
227
228         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
229
230 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
231
232         * tree.def (VIEW_CONVERT_EXPR): New tree code.
233         * tree.h (handled_component_p): New declaration.
234         * alias.c (handled_component_p): Move function from here ...
235         * expr.c (handled_component_p): ... to here and non longer static.
236         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
237         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
238         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
239         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
240         (expand_expr, case VIEW_CONVERT_EXPR): New case.
241         (expand_expr, cse ADDR_EXPR): No need to copy if already
242         BIGGEST_ALIGNMENT.
243         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
244         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
245         (output_constant): Handle VIEW_CONVERT_EXPR.
246         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
247         Add new case for VIEW_CONVERT_EXPR.
248
249 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
250
251         * a29k/unix.h (ASM_FILE_START): Const-ify.
252         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
253         * i386/isc.h (ASM_FILE_START): Const-ify.
254         * i386/sun386.h (ASM_FILE_START): Likewise.
255         * m32r.md: Likewise.
256         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
257         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
258         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
259         * mn10200.md: Initialize variable.
260
261 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
262
263         * gcse.c (try_replace_reg): Copy RTX before creating note.
264
265         * df.h (df_ref_flags): New uenum.
266         (DF_REF_FLAGS): New macro.
267         (struct ref): Add field "flags".
268         * df.c (HANDLE_SUBREG): Remove.
269         (df_ref_create): Likewise; set flags field of ref.
270         (df_def_record_1): Strip down read_write subreg; remove
271         commented out code; set READ_WRITE flag.
272         (read_modify_subreg_p): New static function.
273         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
274         new argument "flags".
275         (df_insn_refs_record): Update call of df_uses_record.
276         (df_insn_modify): Avoid #if 0 around comment.
277         (df_dump): Dump the read/write flag.
278
279         * predict.c (propagate_freq): Make cyclic_probability and frequency
280         volatile
281
282         * i386.c (ix86_cc_mode): Accept USE.
283
284         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
285         jump is turned into simplejump.
286
287 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
288
289         * doc/fragments.texi, doc/trouble.texi: Remove links to old
290         installation chapter.
291         * doc/gcc.texi: Don't claim that this manual documents
292         installation.  Mark Installation menu entry as being out of date.
293
294 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
295
296         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
297         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
298         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
299
300 2001-11-19  Jason Merrill  <jason@redhat.com>
301
302         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
303         cur_token, not after.
304
305         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
306         Lose ASM_OUTPUT_CONSTRUCTOR.
307         * system.h: Poison it and INT_ASM_OP.
308         * c-lang.c (finish_file): Don't check for it.
309         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
310
311 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
312
313         * mmix.c (mmix_cc1_ignored_option): Const-ify.
314         (mmix_init_machine_status): Make static to match declaration.
315         (mmix_unique_section): Const-ify.
316         (mmix_output_quoted_string): Avoid automatic aggregate
317         initialization.
318         (mmix_output_register_setting): Likewise.
319         (mmix_output_shiftvalue_op_from_str): Likewise.
320
321         * mmix.h (mmix_cc1_ignored_option): Const-ify.
322         (ASM_OUTPUT_BYTE): Fix format specifier warning.
323         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
324
325 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
326
327         PR c/4448
328         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
329         name __objc_thread_exit_status so that it matches the
330         variable defined in objc/thr.h.
331
332 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
333
334         PR bootstrap/4020
335         * mklibgcc.in: Add missing semi-colons.
336         * Makefile.in: Same.
337
338 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
339
340         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
341         after re-laying out decl in incomplete case.
342         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
343
344 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
345
346         * doc/install-old.texi: Move some sections out to ...
347         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
348         ... here.  New files.  Make into chapters rather than sections.
349         * doc/gcc.texi: Include the new files and add menu entries for
350         them.
351         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
352
353 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
354
355         * tree.h (TYPE_ALIGN_OK): New flag.
356         * emit-rtl.c (set_mem_attributes): Handle it.
357         * expr.c (emit_single_push_insn): Only set to alias set 0 if
358         doing sibcall optimization.
359         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
360         when make temporary.
361         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
362         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
363
364         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
365
366 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
367
368         * c-decl.c (c_decode_option): Give deprecation warning for
369         -traditional.
370         * doc/invoke.texi (-traditional): Note that this option is
371         deprecated.
372
373 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
374
375         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
376         arg to HOST_WIDE_INT, not long.
377
378         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
379         (HAS_INIT_SECTION): Define.
380         (REAL_ARITHMETIC): Don't undefine.
381
382 2001-11-18  Egor Duda  <deo@logos-m.ru>
383
384         * config/i386/cygwin.h: Strip leading '*' from name, if any.
385
386 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
387
388         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
389         * c-common.c: Include diagnostic.h.
390         (c_common_finish): New.
391         * c-common.h (c_common_finish): New.
392         * c-lang.c (LANG_HOOKS_FINISH): Override.
393         * c-parse.in: Don't include diagnostic.h.
394         (finish_parse): Remove.
395         * langhooks.h: Update comments.
396         * toplev.c (lang_dependent_init): New prototype.
397         (finalize): New.
398         (compile_file): Split cleanup code out to finalize.
399         (lang_dependent_init): Stop if lang_hooks.init fails.
400         (toplev_main): Update.
401         * tree.h (finish_parse): Remove.
402 objc:
403         * objc-act.c (LANG_HOOKS_FINISH): Override.
404
405 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
406
407         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
408         * config/alpha/vms_tramp.asm: New file.
409         * config/alpha/vms-tramp.asm: Removed.
410
411 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
412
413         * c-common.c (struct disabled_builtin, disabled_builtins,
414         disable_builtin_function, builtin_function_disabled_p): New.
415         (builtin_function_2): Check for disabled built-in functions.
416         * c-common.h (disable_builtin_function): Declare.
417         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
418         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
419         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
420
421 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
422
423         PR target/4606
424         * config.gcc: Remove reference to va-clipper.h.
425
426 2001-11-17  Stan Shebs  <shebs@apple.com>
427
428         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
429         AltiVec-related bitfields.
430
431 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
432
433         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
434         (mark_eh_region, case ERT_UKNONW): New case.
435
436 2001-11-17  Christopher Faylor  <cgf@redhat.com>
437             Corinna Vinschen  <vinschen@redhat.com>
438
439         * config/i386/cygwin.h: Search target specific include directory for
440         w32api stuff, if appropriate.
441
442 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
443
444         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
445
446 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
447
448         * config/rs6000/rs6000.md: Change all ldvx to lvx.
449
450 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
451
452         * gensupport.c (process_rtx): Don't assume filename is the first
453         argument of any rtl.
454
455 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
456
457         * vax-protos.h (reg_was_0_p): New prototype.
458         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
459         * vax.c (follows_p, reg_was_0_p): New functions.
460
461 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
462
463         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
464         (casesi1): Likewise.  Define new pattern which arises by simplification
465         when operand 1 is a constant int.  Correct pattern which arises by
466         simplification when operand 1 is zero.
467
468 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
469
470         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
471         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
472         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
473         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
474         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
475         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
476         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
477         * config/arm/aof.h: Don't include arm.h.
478         * config/arm/aout.h: Likewise.
479         * config/arm/coff.h: Don't include semi.h and aout.h.
480         * config/arm/elf.h: Don't include aout.h.
481         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
482         (TARGET_VERSION): Undef before defining.
483         (ARM_OS_NAME): Likewise
484         (TARGET_DEFAULT): Likewise
485         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
486         * config/arm/pe.h: Don't include arm/coff.h.
487         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
488         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
489         * config/arm/riscix1-1.h: Likewise.
490         * config/arm/rix-gas.h: Don't include riscix.h.
491         (DBX_CONTIN_LENGTH): Undef before defining.
492         * config/arm/semi.h: Don't include aout.h.
493         * config/arm/semiaof.h: Don't include aof.h.
494         * config/arm/strongarm-coff.h: Don't include coff.h.
495         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
496         * config/arm/vxarm.h: Don't include arm/coff.h.
497         * config/arm/xscale-coff.h: Don't include coff.h.
498
499 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
500
501         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
502         emit_cmp_insn.
503
504 2001-11-16  Andreas Jaeger  <aj@suse.de>
505
506         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
507         to ....
508         (fixup_fallthru_exit_predecessor): ... this.
509         Change callers and prototype.
510
511 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
512
513         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
514         hand; don't use gen_setcc_2.
515         (ix86_expand_builtin): Fix pshufw.
516         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
517         case UNORDERED to emit the right assembler instruction.
518         (mmx_pshufw): Lose operand 2.
519         (cvtsi2ss): Fix representation.
520         From Graham Stott:
521         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
522
523 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
524
525         * doc/include/linux-and-gnu.texi: Remove.
526         * doc/gnu.texi: New.
527         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
528         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
529
530 2001-11-16  Kazu Hirata  <kazu@hxi.com>
531
532         * config/a29k/a29k.c: Fix comment formatting.
533         * config/a29k/a29k.h: Likewise.
534         * config/arc/arc.c: Likewise.
535         * config/arc/arc.h: Likewise.
536         * config/vax/vax.c: Likewise.
537         * config/vax/vax.h: Likewise.
538         * config/we32k/we32k.c: Likewise.
539         * config/we32k/we32k.h: Likewise.
540
541 2001-11-16  Jeff Law  <law@redhat.com>
542
543         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
544         creating a new jump insn.
545
546 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
547
548         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
549         copy misaligned data.
550         * varasm.c (assemble_variable): Set alignment into MEM when changed.
551
552 2001-11-16  Graham Stott  <grahams@redhat.com>
553
554         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
555         OPALIGN type.
556
557 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
558
559         * except.c: Support for catching a list of types with a single handler
560         (struct eh_region): Change type and filter to lists for catch regions.
561         (mark_eh_region): Mark the filter list for GC also.
562         (expand_start_catch): Always build a list if argument not NULL and
563         register each type of the list through add_type_for_runtime.
564         (duplicate_eh_region_1): Change type into type_list for catch regions.
565         (assign_filter_values): Assign a filter to each type associated with a
566         catch region. Assign filter for NULL types in a unique entry in the
567         filter list.
568         (build_post_landing_pads): Emit compare and jump for each filter of
569         the list associated with a catch region.
570         (reachable_next_level): When the type thrown is known, stop the search
571         as soon as one type within a catch list matches. Also, a handler is
572         potentially reachable only if at least one of the types it catches
573         has not been previously caught.
574         (collect_one_action_chain): Retrieve the filter for a NULL type list
575         from the first filter list entry. For non NULL type lists, add an
576         action record for every filter assigned.
577         * except.h: Reflect changes in comment before expand_start_catch.
578
579 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
580
581         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
582         BLKmode.
583
584 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
585
586         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
587
588 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
589
590         * c-lang.c (finish_file): Don't emit static inline functions if
591         they weren't referenced.
592
593 2001-11-15  Stan Shebs  <shebs@apple.com>
594
595         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
596
597 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
598
599         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
600         call.
601         * config/i386/i386.md: Likewise.
602
603 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
604
605         * timevar.c (rtl.h): Include so get fancy abort.
606
607 2001-11-15  Dale Johannesen  <dalej@apple.com>
608
609         * config/darwin.h (SELECT_RTX_SECTION):  Force address
610         initializers into 'const' section
611         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
612         if_then_else to match result, not operands
613
614 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
615
616         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
617         * emit-rtl.c (change_address): Fix typo in default alignment.
618         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
619         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
620         * rtl.h (REGNO_PTR_FRAME_P): New macro.
621
622         * expr.c (store_field): Pass tree instead of max size; callers changed.
623         Change handling of alignment.
624         Only copy to_rtx if is TARGET.
625         (expand_expr_unaligned): Delete; callers now use expand_expr.
626         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
627         (expand_assignment): Change handling of alignment.
628         Only copy to_rtx if was original.
629         (get_inner_reference): No longer return alginment; callers changed.
630         (expand_expr, case COMPONENT_REF): Change handling of alignment.
631         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
632         (compare_from_rtx): Delete ALIGN parm; all callers changed.
633         (do_compare_rtx_and_jump): Likewise.
634         * expr.h: Reflect above changes.
635         * tree.h: Likewise.
636         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
637         to get_inner_reference.
638         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
639         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
640         * optabs.c: Likewise.
641         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
642         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
643         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
644         compare_rtx_and_jump, and emit_cmp_jump_insns.
645         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
646         * function.c (assign_stack_temp_for_type): No longer static.
647         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
648         (prepare_cmp_insn): Delete declaration.
649         * rtl.h (assign_stack_temp_for_type): Add declaration.
650         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
651         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
652         * config/i386/i386.c,config/mips/mips.c: Likewise.
653         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
654         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
655
656 2001-11-15  Stan Shebs  <shebs@apple.com>
657
658         * config/rs6000/rs6000.h: Fix a comment typo.
659         (RTX_COSTS): Sort processor versions better.
660
661 2001-11-15  Kazu Hirata  <kazu@hxi.com>
662
663         * config/h8300/h8300.md: Fix insn length of bit insns.
664
665 2001-11-15  Jason Merrill  <jason@redhat.com>
666
667         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
668         DIEs if there were errors in the source.
669
670         * config/alpha/alpha-interix.h, config/alpha/elf.h,
671         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
672         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
673         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
674         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
675         config/elfos.h, config/lynx.h, config/netware.h,
676         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
677         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
678         uses to use ASM_LONG.
679
680 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
681
682         * gensupport.c  process_include : Change call to alloca to
683         xmalloc.
684
685 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
686
687         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
688         templates.
689
690 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
691
692         * final.c (alter_subreg): If simplify_subreg can't do anything,
693         handle REG ourselves and abort for others.
694
695 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
696
697         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
698         routines.
699
700 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
701
702         * fix-header.c (read_scan_file): Update.
703
704 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
705
706         * toplev.c (toplev_main): Don't start timing until after
707         command-line options are parsed.
708
709 2001-11-15  Andreas Schwab  <schwab@suse.de>
710
711         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
712         makefile frag, not host makefile frag.
713         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
714         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
715         used.
716         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
717         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
718         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
719         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
720         * config/i386/t-dgux (STMP_FIXPROTO): Define.
721         * config/x-interix: Don't define STMP_FIXPROTO and
722         FIXPROTO_DEFINES.
723         * config/t-interix: New file, define STMP_FIXPROTO.
724         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
725         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
726         * config/t-svr4 (FIXPROTO_DEFINES): Define.
727         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
728         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
729         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
730         * config/m68k/t-hp3200: Renamed from x-hp3200.
731         * config/i370/t-oe: Renamed from x-oe.
732         * config/mips/t-iris: Renamed from x-iris.
733         * config/pa/t-bsd: Renamed from x-pa.
734         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
735         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
736         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
737         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
738         config/rs6000/x-cygwin: Remove files.
739
740         * configure.in: Check for target objdump and use that in eh_frame
741         optimization test.
742         * configure: Regenerated.
743
744 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
745
746         * jump.c (squeeze_notes): Return true if no real insns were found.
747         * rtl.h (squeeze_notes): Adjust prototype.
748         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
749         squeeze_notes finds no real instructions, abort.
750         (merge_blocks_move_successor_nojumps): Likewise.
751         * loop.c (find_and_verify_loops): Likewise.
752         * stmt.c (expand_end_case): Likewise.
753         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
754         find any real instructions.
755
756         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
757
758         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
759         conditional jump, request updating life into for the block
760         containing it.  Fix a typo which prevented life info update.
761         Clear blocks bitmap before using it.
762
763 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
764
765         * c-common.c: Include c-lex.h.
766         (c_common_lang_init): Change prototype.  Call init_c_lex and
767         init_pragma from here.
768         * c-common.h (c_common_lang_init): Change prototype.
769         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
770         * c-lang.c (c_init): Change prototype.  Update.
771         (c_init_options): Update.
772         * c-lex.c (cpp_filename): Remove.
773         (init_c_lex): Update.  Read the main file, and get the original
774         file name.
775         (yyparse): Finish the command line options.
776         * c-parse.in (c_parse_init): Call init_reswords here.
777         (init_parse): Remove.
778         * c-tree.h (c_init_decl_processing): New.
779         * cpphash.c (_cpp_init_hashtable): After initializing the hash
780         table, populate it.
781         * cppinit.c (read_original_filename, cpp_finish_options): New.
782         (cpp_create_reader): New prototype. Defer hash table initialization.
783         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
784         hash table.  Get the original filename.
785         * cpplib.h (cpp_create_reader): Update.
786         (cpp_start_read): Remove.
787         (cpp_read_main_file, cpp_finish_options): New.
788         * cppmain.c (main, do_preprocessing): Update.
789         * langhooks.h (struct langhooks): Update init prototype.
790         * toplev.c (general_init, parse_options_and_default_flags,
791         process_options, lang_indpendent_init, lang_dependent_init,
792         init_asm_output): New; perform the bulk of initialization.
793         (compile_file): Move most of initialization to above functions.
794         (debug_hooks): Initialize statically.
795         (set_Wunused): Relocate.
796         (toplev_main): Move most of initialization to other init functions.
797         Have a clear logic flow.
798         * tree.h (init_parse, init_decl_processing): Remove.
799 objc:
800         * objc-act.c (objc_init): Update prototype, combine with old
801         init_parse.
802         (objc_init_options): Update.
803
804
805 2001-11-15  Andreas Jaeger  <aj@suse.de>
806
807         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
808         portability.
809         * basic-block.h: Adjust prototype.
810
811 2001-11-15  Kazu Hirata  <kazu@hxi.com>
812
813         * config/rs6000/aix31.h: Fix comment formatting.
814         * config/rs6000/beos.h: Likewise.
815         * config/rs6000/darwin.h: Likewise.
816         * config/rs6000/eabi.asm: Likewise.
817         * config/rs6000/linux.h: Likewise.
818         * config/rs6000/linux64.h: Likewise.
819         * config/rs6000/lynx.h: Likewise.
820         * config/rs6000/netbsd.h: Likewise.
821         * config/rs6000/rs6000.c: Likewise.
822         * config/rs6000/rs6000.h: Likewise.
823         * config/rs6000/rs6000.md: Likewise.
824         * config/rs6000/sol2.h: Likewise.
825         * config/rs6000/tramp.asm: Likewise.
826         * config/rs6000/xcoff.h: Likewise.
827         * config/rs6000/xm-beos.h: Likewise.
828
829 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
830
831         * rtl.def (INCLUDE) : Define.
832         * gensupport.c  (init_include_reader, process_include,
833         save_string) :  New functions to implement an include facility
834         in .md files.
835         * gensupport.h : Add prototype for init_md_reader_args.
836         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
837         genextract.c genflags.c genopinit.c genoutput.c
838         genpeep.c genrecog.c: Change call to init_md_reader to
839         init_md_reader_args.
840         * md.texi: Document (include "path") and -I directives for RTL
841         generation tools.
842
843 2001-11-14  DJ Delorie  <dj@redhat.com>
844
845         * integrate.c (get_hard_reg_initial_reg): New.
846         * integrate.h (get_hard_reg_initial_reg): Prototype.
847         * local-alloc.c (block_alloc): Don't tie pseudos that
848         represent call-saved hard regs' initial values.
849
850 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
851
852         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
853         recursion.
854
855 2001-11-14  Roger Sayle <roger@eyesopen.com>
856
857         * fold-const.c (fold): Optimize strlen comparisons against zero.
858
859 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
860
861         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
862         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
863         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
864         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
865         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
866         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
867         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
868         Include various CPU headers via tm_file.  a.out based platforms now
869         properly include sparc/aout.h.  sol2.h usage now implies including
870         elfos.h, svr4.h, and sparc/sysv4.h.
871         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
872         Also define to '1'.
873         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
874         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
875         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
876         Remove.  They are a.out specific and belong in sparc/aout.h.
877         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
878         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
879         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
880         sparc/sparc.h.
881         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
882         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
883         Moved here from sparc/sparc.h.
884         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
885         defining.
886         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
887         * config/sparc/lynx.h:  Don't include lynx.h.
888         (SELECT_SECTION): Do not undef.
889         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
890         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
891         and sparc/sysv4.h.
892         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
893         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
894         sparc/aout.h now.
895         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
896         Don't undef, there is no need.
897         * config/sparc/splet.h (CPP_PREDEFINES): Define.
898         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
899         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
900         Don't include sparc/sparc.h.
901         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
902         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
903         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
904         elfos.h and svr4.h.
905         (TARGET_VERSION): Define.
906         * config/sparc/vxsim.h (TARGET_VERSION): Define.
907
908 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
909
910         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
911         (cfg_layout_finalize): Use it.
912         * bb-reorder.c (HAVE_epilogue): Remove.
913         (make_reorder_chain): Do not care special placement of
914         last basic block.
915
916         * predict.c (expected_value_to_br_prob): Delete the note
917         once transformed.
918
919         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
920         measure integration time separately.
921
922 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
923
924         * function.c (struct temp_slot): ALIGN now unsigned.
925
926 2001-11-14  Kazu Hirata  <kazu@hxi.com>
927
928         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
929         * config/dsp16xx/dsp16xx.h: Likewise.
930         * config/dsp16xx/dsp16xx.md: Likewise.
931
932 2001-11-14  Kazu Hirata  <kazu@hxi.com>
933
934         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
935         that deals with 7-bit shifts in HImode.
936
937 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
938
939         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
940         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
941         (final_scan_insn): Update call of alter_subreg.
942         (cleanup_subreg_operands): Likewise.
943         (alter_subreg): Rewrite using simplify_subreg.
944         (output_address, output_operand): Update call of alter_subreg.
945         * output.h (alter_subreg): Update prototype.
946         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
947         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
948         * Makefile.in (final.o): Add depdendancy on expr.h
949
950 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
951
952         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
953
954 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
955
956         * doc/install.texi (sparc-*-linux*): Mention requirements for
957         binutils and glibc.
958
959 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
960
961         * Makefile.in (POD2MAN): Don't include --section=1.
962         (manext): Rename to man1ext.  All users changed.
963         (man7ext): New.
964         (man7dir): New.
965         (generated-manpages): Also depend on $(docdir)/gfdl.7,
966         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
967         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
968         --section=1 in calls to $(POD2MAN).
969         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
970         (maintainer-clean, install, uninstall): Handle the new man pages.
971         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
972         (installdirs): Create man7dir.
973         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
974         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
975         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
976         the SEE ALSO man page section.
977         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
978         and fsf-funding(7) in the SEE ALSO man page section.
979         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
980         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
981         * doc/include/fdl.texi, doc/include/funding.texi,
982         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
983         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
984
985 2001-11-13  Richard Henderson  <rth@redhat.com>
986
987         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
988         as appropriate for the artificial decl.
989
990 2001-11-13  Richard Henderson  <rth@redhat.com>
991
992         * loop.c (combine_movables): Turn off combination until
993         move_movables validation bugs are fixed.
994
995 2001-11-13  DJ Delorie  <dj@redhat.com>
996
997         * config.gcc (powerpc|rs6000): Set default cpp options based
998         on --with-cpu settings.
999         * config/rs6000/softfloat.h: New.
1000
1001 2001-11-13  Kazu Hirata  <kazu@hxi.com>
1002
1003         * config/h8300/h8300.c (shift_alg_si): Use special code for
1004         25-bit shifts on H8/S.
1005         (get_shift_alg): Generate special code for 25-bit shifts on
1006         H8/S.
1007
1008 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
1009
1010         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
1011         (adjust_automodify_address_1): New.
1012         * expr.h (adjust_address, adjust_address_nv): Adjust.
1013         (adjust_automodify_address, adjust_automodify_address_nv): Define.
1014         (adjust_address_1): Update prototype.
1015         (adjust_automodify_address_1): Add prototype.
1016         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
1017         (store_by_pieces_2): Likewise.
1018
1019 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1020
1021         * Makefile.in (explow.o): Now depends on ggc.h.
1022         * explow.c (ggc.h): Include.
1023         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
1024
1025         * Makefile.in (expr.o): Depends on insn-attr.h.
1026         * expr.c (insn-attr.h): New include.
1027         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
1028         of MEM.
1029         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
1030         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
1031         clean up related usage in ADDR_EXPR.
1032         (expand_expr_unaligned): Likewise.
1033
1034         * emit-rtl.c (change_address): Fix typo in alias setting.
1035
1036 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1037
1038         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
1039
1040 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1041
1042         PR bootstrap/3451
1043         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
1044         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
1045
1046 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
1047
1048         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
1049         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
1050         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
1051         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
1052         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
1053         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
1054         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
1055         sparc64-*-linux*):  Include various CPU headers via tm_file.
1056         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
1057         (SELECT_SECTION): Likewise.
1058         (SELECT_RTX_SECTION): Likewise.
1059         * config/sparc/sparc_bi.h: New file.
1060         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
1061         * config/sparc/linux-aout.h: Likewise.
1062         * config/sparc/linux.h: Don't include sparc/sysv4.h.
1063         * config/sparc/linux64.h: Likewise.
1064         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
1065         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
1066         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
1067         and dbxcoff.h
1068         (ASM_OUTPUT_IDENT): Do not #undef.
1069         (SELECT_SECTION): Likewise.
1070         (SELECT_RTX_SECTION): Likewise.
1071         * config/sparc/liteelf.h: Don't include gofast.h.
1072         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
1073         * config/sparc/lynx.h: Don't include sparc/sparc.h.
1074         * config/sparc/pbd.h: Likewise.
1075         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
1076         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
1077         * config/sparc/rtemself.h: Don't include rtems.h.
1078         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
1079         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
1080         sparc_bi.h instead.
1081         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
1082         * config/sparc/sol2.h: Include sparc/sparc.h directly.
1083         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
1084         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
1085         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
1086         * config/sparc/sp86x-elf.h: Don't include gofast.h.
1087         * config/sparc/splet.h: Don't include sparc/aout.h.
1088         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
1089         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
1090         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
1091         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
1092         * config/sparc/vxsparc64.h: Don't include gofast.h.
1093         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
1094
1095 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
1096
1097         * doc/standards.texi: Mention C99 TC1.
1098
1099 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1100
1101         * mips-protos.h (mips_output_conditional_branch): Const-ify.
1102         * mips.c (mips_output_conditional_branch): Likewise.
1103
1104 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1105
1106         * config/h8300/h8300.c (shift_alg_si): Use special code for
1107         15-bit logical shifts and 31-bit logical shifts.
1108         (get_shift_alg): Generate special code for 15-bit and 31-bit
1109         logical shifts.
1110
1111 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1112
1113         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
1114         doing 6-bit logical shifts on H8/S.
1115         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
1116         (get_shift_alg): Generate special code for 21-bit shifts on
1117         H8/S.
1118
1119 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1120
1121         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
1122         label.
1123
1124 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1125
1126         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
1127         if both size and offset known.
1128
1129 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
1130
1131         * config/ia64/freebsd.h: Fix misspelling.
1132
1133 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
1134
1135         * doc/gcc.texi: Move several chapters out to ...
1136         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
1137         doc/include/linux-and-gnu.texi, doc/interface.texi,
1138         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
1139         ... here.  New files.
1140         * doc/gcc.texi, doc/contrib.texi: Move section headings into
1141         contrib.texi.
1142         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1143
1144 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1145
1146         * config/alpha/alpha-interix.h: Fix comment formatting.
1147         * config/alpha/alpha.c: Likewise.
1148         * config/alpha/alpha.h: Likewise.
1149         * config/alpha/alpha32.h: Likewise.
1150         * config/alpha/freebsd.h: Likewise.
1151         * config/alpha/unicosmk.h: Likewise.
1152         * config/alpha/vms.h: Likewise.
1153
1154 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1155
1156         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1157
1158 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
1159
1160         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
1161         numbers.
1162
1163 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1164
1165         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
1166         from type.
1167         (replace_equiv_address): Call update_temp_slot_address.
1168
1169         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
1170
1171         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
1172
1173 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1174
1175         * config/h8300/h8300.c (shift_alg_qi): New.
1176         (shift_alg_hi): Likewise.
1177         (shift_alg_si): Likewise.
1178         (get_shift_alg): Change the type of count to unsigned int.
1179         Use the tables.
1180
1181 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
1182
1183         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
1184         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
1185         to decide whether to defer a function.
1186         (finish_function): Adjust.
1187         (c_expand_deferred_function): New function.
1188         * c-lang.c (deferred_fns): New variable.
1189         (c_init): Initialize it, and mark it as a root.
1190         (defer_fn): New function.
1191         (finish_file): Expand all deferred functions.
1192         * c-tree.h (defer_fn): Declare.
1193         (c_expand_deferred_function): Likewise.
1194         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
1195         * objc-act.c (deferred_fns): New variable.
1196         (objc_init): Initialize it, and mark it as a root.
1197         (defer_fn): New function.
1198         (finish_file): Expand all deferred functions.
1199
1200 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1201
1202         * alpha.c (unicosmk_special_name): Prototype.
1203         (unicosmk_ssib_name): Delete unused variable.
1204         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
1205         * alpha/vms.h (PREFIX): Undef before defining.
1206         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
1207         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
1208         controlling usage.  Const-ify.
1209         (alias_number): Delete unused variable.
1210         * m32r/m32r.c (m32r_sched_init): Add missing argument.
1211         (m32r_expand_block_move): Fix uninitialized warnings.
1212         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
1213         always true' warnings.
1214         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
1215         * sh/sh.c: Include "integrate.h".
1216         (output_far_jump): Fix uninitialized warning.
1217         * final.c (shorten_branches): Avoid automatic aggregate
1218         initialization.
1219         * integrate.c (subst_constants): Likewise.
1220
1221 2001-11-11  Kazu Hirata  <kazu@hxi.com>
1222
1223         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
1224         (get_shift_alg): Remove redundant code.
1225
1226 2001-11-11  Kazu Hirata  <kazu@hxi.com>
1227
1228         * config/pa/milli64.S: Fix comment formatting.
1229         * config/pa/pa-64.h: Likewise.
1230         * config/pa/pa-linux.h: Likewise.
1231         * config/pa/pa-protos.h: Likewise.
1232         * config/pa/pa.c: Likewise.
1233         * config/pa/pa.h: Likewise.
1234         * config/pa/pa32-linux.h: Likewise.
1235         * config/pa/pa32-regs.h: Likewise.
1236         * config/pa/pa64-hpux.h: Likewise.
1237         * config/pa/pa64-regs.h: Likewise.
1238         * config/pa/som.h: Likewise.
1239
1240 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
1241
1242         * doc/gcc.texi: Move several chapters out to ...
1243         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
1244         doc/service.texi, doc/standards.texi, doc/trouble.texi,
1245         doc/vms.texi: ... here.  New files.
1246         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1247
1248 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
1249
1250         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
1251         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
1252         collect2.c, combine.c, config.in, configure, configure.in,
1253         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
1254         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
1255         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
1256         spelling errors.
1257
1258 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1259
1260         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
1261         Adjust operand number in CONST_DOUBLE.
1262
1263         * expmed.c (extract_bit_field): No longer pass in alignment.
1264         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
1265         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
1266         Likewise.
1267         * expr.c (store_constructor, store_constructor_field): Likewise.
1268         (store_field, emit_group_load, emit_group_store): Likewise.
1269         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
1270         (store_bit_field, extract_bit_field): Likewise.
1271         * calls.c, expr.c, function.c: Change calls to above functions.
1272         * ifcvt.c, stmt.c: Likewise.
1273
1274         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
1275         constant and one is on frame.
1276         If know memref offset, adjust size from decl.
1277
1278 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1279
1280         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
1281         format specifier warning.
1282         * convex.h (ASM_OUTPUT_BYTE): Likewise.
1283         * elfos.h (ALIGN_ASM_OP): Undef before defining.
1284         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
1285         warning.
1286         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1287         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1288         * i386-interix.h (gen_stdcall_suffix): Prototype.
1289         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1290         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1291         ASM_OUTPUT_LONG_DOUBLE): Likewise.
1292         * i386/interix.c (gen_stdcall_suffix): Const-ify.
1293         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1294         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
1295         specifier warnings.
1296         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1297         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1298         ASM_OUTPUT_LONG_DOUBLE): Likewise.
1299         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1300         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1301         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1302         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1303         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
1304         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
1305         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1306         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1307         Likewise.
1308         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1309         Likewise.
1310         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
1311         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1312         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
1313         Likewise.
1314         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
1315         Likewise.
1316         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1317         Likewise.
1318         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
1319         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1320         * m68k/news.h (PRINT_OPERAND): Likewise.
1321         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
1322         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1323         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1324         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
1325         definition.
1326         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1327         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
1328         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
1329         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1330         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
1331         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
1332         PRINT_OPERAND): Likewise.
1333         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1334         Likewise.
1335         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1336         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1337         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
1338         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1339         * mips.c (mips_output_external_libcall): Mark parameter with
1340         ATTRIBUTE_UNUSED.
1341         (mips_asm_file_start): Move variable into the scope where it's
1342         used.
1343         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
1344         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1345         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
1346         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1347         * ns32k.c (print_operand): Likewise.
1348         * pa.c (print_operand, output_div_insn): Likewise.
1349         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
1350         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
1351         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
1352         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1353         specifier warnings.
1354         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1355         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1356         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
1357         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1358         specifier warnings.
1359         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1360
1361         * sdbout.c (sdbout_end_epilogue): Mark parameter with
1362         ATTRIBUTE_UNUSED.
1363         * varasm.c (assemble_global): Likewise.
1364
1365 2001-11-11  H.J. Lu <hjl@gnu.org>
1366
1367         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
1368
1369 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
1370
1371         * final.c (*_MAX_SKIP): Use *_max_skip variables.
1372         * flags.h (align_loops_max_skip, align_jumps_max_skip,
1373         align_labels_max_skip): New global variables.
1374         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
1375         align_labels_max_skip): New global variables.
1376         (toplev_main): Set new variables.
1377         * i386.c (override_options): Set max_skip values.
1378
1379 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
1380
1381         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
1382         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
1383         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
1384         don't print an @fptr for labels either.
1385         (xstormy16_output_addr_vec): Don't print @fptr here.
1386         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
1387
1388 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
1389
1390         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
1391         an ANSI/ISO definitino.
1392         (ssa_const_prop): Likewise.
1393
1394 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
1395
1396         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
1397         altivec registers.
1398
1399 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1400
1401         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
1402         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
1403         * cppmain.c (general_init): Call hex_init.
1404         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
1405
1406         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
1407
1408         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
1409         of dgux.c:output_file_start().
1410
1411         * i386/dgux.c: Delete file.
1412
1413 2001-11-09  Richard Henderson  <rth@redhat.com>
1414
1415         * config/alpha/alpha.c (decl_in_text_section): New.
1416         (current_file_function_operand): Use it.
1417         (alpha_encode_section_info, alpha_end_function): Likewise.
1418
1419 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
1420
1421         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
1422         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
1423         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
1424         so OS specific files and use CPP_PREDEFINES for their needs.
1425         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
1426         target headers to tm_file.
1427         * config/ia64/aix.h (TARGET_VERSION): Likewise.
1428         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
1429         * config/ia64/linux.h (TARGET_VERSION): Likewise.
1430         (FUNCTION_PROFILER): Remove.
1431         * config/ia64/ia64.h (FUNCTION_PROFILER): Update defintion using the
1432         version in config/ia64/linux.h.
1433         * config/ia64/freebsd.h: New file.
1434         * config/freebsd.h: Tidy up.
1435         (_USING_CONFIG_FREEBSD): Define.
1436         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
1437         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
1438         (FBSD_STARTFILE_SPEC): Likewise.
1439         (FBSD_ENDFILE_SPEC): Likewise.
1440         (FBSD_LIB_SPEC): Likewise.
1441         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
1442         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
1443         set an ELF-improper one.
1444
1445 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1446
1447         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
1448         constant can be loaded in a single instruction to a register.  When
1449         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
1450         depdi for insertion of most significant 32-bits on 64-bit hosts.
1451         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
1452         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
1453         * pa.md: New addmove pattern for adding constant_int to HImode
1454         register and moving result to HImode register.  Remove HImode HIGH
1455         and LO_SUM patterns.
1456
1457 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1458
1459         * Makefile.in: Update.
1460         * c-decl.c (print_lang_decl, print_lang_type): Remove.
1461         (print_lang_identifier): Rename c_print_identifier.
1462         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
1463         (print_lang_statistics, lang_print_xnode): Remove.
1464         * c-parse.in (set_yydebug): Rename c_set_yydebug.
1465         * c-tree.h (c_set_yydebug, c_print_identifier): New.
1466         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
1467         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
1468         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
1469         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
1470         (LANG_HOOKS_INITIALIZER): Update.
1471         * langhooks.h (struct lang_hooks): New members.
1472         (lang_print_tree_hook): New.
1473         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
1474         * print-tree.c: Include langhooks.h.
1475         (print_node): Update.
1476         * toplev.c (decode_d_option): Update.
1477         * tree.c: Include langhooks.h.
1478         (dump_tree_statistics): Update.
1479         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
1480         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
1481 objc:
1482         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
1483         LANG_HOOKS_SET_YYDEBUG): Override.
1484         (lang_print_xnode, print_lang_statistics): Remove.
1485
1486 2001-11-09  Richard Henderson  <rth@redhat.com>
1487
1488         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
1489         on the symbol string.
1490
1491 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1492
1493         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
1494         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
1495         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
1496
1497         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
1498
1499         * tlink.c (recompile_files): Copy strings passed to `putenv'.
1500
1501 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
1502
1503         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
1504         (TYPE_READONLY): Likewise.
1505
1506         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
1507
1508         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
1509         don't pass --gdwarf2 to the assembler if the compiler will also
1510         provide debug info.
1511
1512         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
1513         Don't change INDEX.
1514
1515 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1516
1517         * alias.c (nonoverlapping_memrefs_p): New function.
1518         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
1519
1520         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
1521
1522 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
1523
1524         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
1525         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
1526         generating altivec code.
1527         (FIXED_REGISTERS): VRSAVE is fixed.
1528         (CALL_USED_REGISTERS): VRSAVE is call used.
1529
1530 2001-11-09  Jason Eckhardt  <jle@rice.edu>
1531
1532         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
1533         code the branch target as ".+16/.+12", but rather use labels.
1534
1535 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
1536
1537         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
1538         to work around limitations of certain versions of GAS.
1539
1540         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
1541         (muldi3): Update due to SUBREG_BYTE changes.
1542         (casesi): Similarly.
1543
1544 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
1545
1546         * doc/invoke.texi: Remove comment referring to -xf77-version.
1547
1548 2001-11-09  Kazu Hirata  <kazu@hxi.com>
1549
1550         * config/convex/convex.c: Fix comment formatting.
1551         * config/convex/convex.h: Likewise.
1552
1553 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
1554
1555         * Makefile.in (.po.pox): Look both in srcdir and builddir
1556         for $(PACKAGE).pot.
1557         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
1558         to the source directory.
1559
1560 2001-11-09 Ben Elliston  <bje@redhat.com>
1561            Michael Meissner  <meissner@redhat.com>
1562            Andrew MacLeod  <amacleod@redhat.com>
1563            Richard Henderson  <rth@redhat.com>
1564            Nick Clifton  <nickc@redhat.com>
1565            Catherine Moore  <clm@redhat.com>
1566
1567         * m32r.c: Add support for m32rx processor.
1568         * m32r.h: Ditto.
1569         * m32r.md: Ditto.
1570         * t-m32r: Ditto.
1571         * m32r-protos.h: Add prototypes for m32rx functions.
1572         * doc/invoke.texi: Document -m32rx option.
1573
1574 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
1575
1576         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
1577         or after reload.
1578
1579 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1580
1581         * doc/install.texi2html: Use $MAKEINFO --no-split.
1582
1583 2001-11-09  Andreas Schwab  <schwab@suse.de>
1584
1585         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
1586         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
1587         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
1588         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
1589         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
1590
1591 2001-11-09  H.J. Lu <hjl@gnu.org>
1592
1593         * config/mips/mips.c (mips_output_function_prologues): Cast
1594         `tsize' to long for output.
1595
1596 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1597
1598         * c-lang.c (LANG_HOOKS_NAME): New.
1599         (lang_hooks): Constify.
1600         (c_init_options): Update.
1601         (lang_identify): Remove.
1602         * c-parse.in (language_string): Remove.
1603         * dbxout.c: Include langhooks.h.
1604         (dbxout_symbol_location): Update.
1605         * dwarf2out.c: Include langhooks.h.
1606         (gen_compile_unit_die): Update.
1607         * dwarfout.c: Include langhooks.h.
1608         (prototyped_attribute, output_compile_unit_die): Update.
1609         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
1610         (LANG_HOOKS_INITIALIZER): Update.
1611         * langhooks.h (struct lang_hooks): New members.  Constify.
1612         * stringpool.c: Don't include toplev.h.
1613         (set_identifier_size): Remove.
1614         * toplev.c (toplev_main): Initialize identifier size.
1615         (print_version): Update.
1616         * tree.h (language_string, init_lex, lang_identify,
1617         set_identifier_size): Remove.
1618         * Makefile.in: Update dependencies.
1619         * config/darwin.c: Include langhooks.h.
1620         (func_name_maybe_scoped): Update.
1621         * config/darwin.h (ASM_END_FILE): Update.
1622         * config/nextstep.h (ASM_END_FILE): Update.
1623         * config/nextstep21.h (ASM_END_FILE): Update.
1624         * config/i386/sun386.h (ASM_END_FILE): Update.
1625         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
1626         (rs6000_output_function_epilogue): Update.
1627 objc:
1628         * objc-act.c (LANG_HOOKS_NAME): Override.
1629         (struct lang_hooks): Constify.
1630         (objc_init_options): Update.
1631         (lang_identify): Remove.
1632
1633 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
1634
1635         * fold-const.c (lshift_double): Honor PREC.
1636         (rshift_double): Likewise.
1637
1638 2001-11-08  Kazu Hirata  <kazu@hxi.com>
1639
1640         * config/1750a/1750a.c: Fix comment formatting.
1641         * config/1750a/1750a.h: Likewise.
1642
1643 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
1644
1645         * configure.in (--enable-languages): Be more permissive about
1646         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
1647         * configure: Regenerated.
1648
1649 2001-11-08  Richard Henderson  <rth@redhat.com>
1650
1651         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
1652
1653 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
1654
1655         * config.gcc: Rename stormy16 to xstormy16.
1656         * config/stormy16/stormy-abi: Likewise.
1657         * config/stormy16/stormy16-protos.h: Likewise.
1658         * config/stormy16/stormy16.c: Likewise.
1659         * config/stormy16/stormy16.h: Likewise.
1660         * config/stormy16/stormy16.md: Likewise.
1661
1662 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
1663
1664         * tree.h (TYPE_VOLATILE): Add enable-checking code.
1665         (TYPE_READONLY): Likewise.
1666
1667 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1668
1669         * reload1.c (reload): Don't delete equiv insn if can throw.
1670
1671         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
1672         (clear_storage): Likewise, for OBJECT.
1673
1674 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
1675
1676         * pa.c (emit_move_sequence): Fix SUBREG expression to
1677         use proper byte offset when extending a constant from
1678         SImode to DImode.
1679
1680 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
1681
1682         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
1683         which cannot throw.
1684
1685 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1686
1687         * explow.c (convert_memory_address, case SUBREG): Only return
1688         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
1689
1690 2001-11-08  Richard Henderson  <rth@redhat.com>
1691
1692         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
1693         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
1694         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
1695
1696 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
1697
1698         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
1699
1700 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
1701
1702         * dwarf2out.c (debug_str_hash): New.
1703         (struct indirect_string_node): New.
1704         (struct dw_val_struct): Change type of val_str to it.
1705         (DEBUG_STR_SECTION_FLAGS): Define.
1706         (add_AT_string): Push string into hashtable, increment reference
1707         counter.
1708         (AT_string): Return string from ht_identifier.
1709         (AT_string_form): New.
1710         (free_AT): For dw_val_class_str, just decrement reference counter.
1711         (size_of_string): Remove.
1712         (size_of_die): Use AT_string_form to decide what size the string
1713         occupies in DIE.
1714         (size_of_pubnames): Use strlen instead of size_of_string.
1715         (value_format): Use AT_string_form for dw_val_class_str.
1716         (output_die): Output DW_FORM_strp strings using
1717         dw2_asm_output_offset.
1718         (indirect_string_alloc, output_indirect_string): New.
1719         (dwarf2out_finish): Emit .debug_str strings if there are any.
1720
1721 2001-11-08  Andreas Franck  <afranck@gmx.de>
1722
1723         * configure.in: Add AC_ARG_PROGRAM to support program name
1724         transformation with --program-prefix, --program-suffix and
1725         --program-transform-name.
1726         * configure: Regenerated.
1727         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
1728         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
1729         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
1730         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
1731         program_transform_name the way suggested by autoconf.
1732         (GCC_TARGET_INSTALL_NAME): Define.
1733         (install-driver): Use the transformed target alias name.
1734
1735 2001-11-08  Richard Henderson  <rth@redhat.com>
1736
1737         * config/mips/mips.c (save_restore_insns): Remove GP from the
1738         restore registers mask early instead of special casing it inside
1739         the loop.
1740
1741 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1742
1743         * cp/decl.c (shadow_warning): New function.
1744         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
1745         and an error when a block scope decl shadows a parameter.
1746
1747 2001-11-08  Richard Henderson  <rth@redhat.com>
1748
1749         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
1750         case as well.
1751
1752 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1753
1754         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
1755         to implement floating negation on processors prior to PA 2.0.
1756
1757 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
1758
1759         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
1760         (USE_LINKONCE_INDIRECT): Define.
1761         (dw2_output_indirect_constant_1): Try to output indirect constants
1762         into linkonce sections if possible.
1763         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
1764         (dw2_output_indirect_constants): Likewise.
1765
1766 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
1767
1768         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
1769
1770 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1771
1772         * c-decl.c (pushdecl): Remove file and line.
1773         * c-typeck.c (pop_init_level): Remove size.
1774
1775 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
1776
1777         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
1778         for rs6000.
1779
1780         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
1781         (TARGET_ALTIVEC): New.
1782         (TARGET_SWITCHES): Add altivec.
1783         (FIRST_PSEUDO_REGISTER): Change to 109.
1784         (CALL_USED_REGISTERS): Same.
1785         (FIRST_ALTIVEC_REGNO): New.
1786         (LAST_ALTIVEC_REGNO): New.
1787         (ALTIVEC_REGNO_P): New.
1788         (UNITS_PER_ALTIVEC_WORD): New.
1789         (ALTIVEC_VECTOR_MODE): New.
1790         (FIXED_REGISTERS): Add altivec registers.
1791         (REG_ALLOC_ORDER): Same.
1792         (HARD_REGNO_NREGS): Adjust for altivec registers.
1793         (HARD_REGNO_MODE_OK): Same.
1794         (MODES_TIEABLE_P): Same.
1795         (REGISTER_MOVE_COST): Same.
1796         (REGNO_REG_CLASS): Same.
1797         (reg_class): Add ALTIVEC_REGS.
1798         (REG_CLASS_NAMES): Same.
1799         (REG_CLASS_CONTENTS): Same.
1800         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
1801         (ALTIVEC_ARG_RETURN): New.
1802         (FUNCTION_VALUE): Handle VECTOR_TYPE.
1803         (LIBCALL_VALUE): Handle altivec vector modes.
1804         (VECTOR_MODE_SUPPORTED_P): New.
1805         (ALTIVEC_ARG_MIN_REG): New.
1806         (ALTIVEC_ARG_MAX_REG): New.
1807         (ALTIVEC_ARG_NUM_REG): New.
1808         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
1809         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
1810         (REGISTER_NAMES): Add altivec regs.
1811         (DEBUG_REGISTER_NAMES): Same.
1812         (ADDITIONAL_REGISTER_NAMES): Same.
1813         (rs6000_builtins): New.
1814         (MD_EXPAND_BUILTIN): New.
1815         (MD_INIT_BUILTINS): New.
1816         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
1817         for AltiVec instructions.
1818         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
1819         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
1820         registers.
1821         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
1822         (TARGET_SWITCHES): Add no-altivec.
1823         (DATA_ALIGNMENT): Align vectors to 128 bits.
1824         (TARGET_OPTIONS): Add abi= option.
1825         Add rs6000_abi_string extern.
1826         (LOCAL_ALIGNMENT): New.
1827         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
1828         (MASK_ALTIVEC_ABI): New.
1829         (TARGET_ALTIVEC_ABI): New.
1830         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
1831         call-saved.
1832         (STACK_BOUNDARY): Adjust for altivec.
1833         (BIGGEST_ALIGNMENT): Same.
1834         (rs6000_args): Add vregno.
1835         (USE_ALTIVEC_FOR_ARG_P): New.
1836         (FIXED_REGISTERS): Add vrsave register.
1837         (CALL_USED_REGISTERS): Same.
1838         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
1839         (VRSAVE_REGNO): New.
1840         (reg_class): Add VRSAVE_REGS.
1841         (REG_CLASS_NAMES): Same.
1842         (REG_CLASS_CONTENTS): Same.
1843         (REGNO_REG_CLASS): Same.
1844
1845         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
1846         (ABI_STACK_BOUNDARY): Same.
1847         (BIGGEST_ALIGNMENT): Same.
1848         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
1849         (ROUND_TYPE_ALIGN): Same.
1850
1851         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
1852         to 64.
1853
1854         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
1855         to 64.
1856
1857         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
1858         to 64.
1859
1860         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
1861         (altivec_expand_builtin): New.
1862         (altivec_init_builtins): New.
1863         (TARGET_EXPAND_BUILTIN): New.
1864         (TARGET_INIT_BUILTINS): New.
1865         (rs6000_init_builtins): New.
1866         (struct builtin_description): New.
1867         (bdesc_2arg): New.
1868         (rs6000_reg_names): Add altivec registers.
1869         (alt_reg_names): Same.
1870         (secondary_reload_class): Altivec regs can hold altivec regs and
1871         memory.
1872         (rs6000_emit_move): Force constants into memory for AltiVec moves.
1873         (print_operand): Add 'y' case for printing altivec memory
1874         operands.
1875         (rs6000_legitimize_address): Legitimize vector addresses into
1876         [REG+REG] or [REG].
1877         (altivec_expand_binop_builtin): New.
1878         New string rs6000_current_abi.
1879         (rs6000_override_options): Call rs6000_parse_abi_options.
1880         (rs6000_parse_abi_options): New.
1881         (function_arg_boundary): Vector arguments must be 16
1882         byte aligned.
1883         (function_arg_advance): Handle vector arguments.
1884         (function_arg_partial_nregs): Same.
1885         (init_cumulative_args): Same.
1886         (function_arg): Same.
1887
1888         * config/rs6000/rs6000.md (altivec_lvx): New.
1889         (type): Add altivec attribute.
1890         (movv4si): New.
1891         (*movv4si_internal): New.
1892         (movv16qi): New.
1893         (*movv16qi_internal): New.
1894         (movv8hi): New.
1895         (*movv8hi_internal1): New.
1896         (movv4sf): New.
1897         (*movv4sf_internal1): New.
1898         (altivec_stvx): New.
1899         (vaddubm): New.
1900         (vadduhm): New.
1901         (vadduwm): New.
1902         (vaddfp): New.
1903         (vaddcuw): New.
1904         (vaddubs): New.
1905         (vaddsbs): New.
1906         (vadduhs): New.
1907         (vaddshs): New.
1908         (vadduws): New.
1909         (vaddsws): New.
1910         (vand): New.
1911         (vandc): New.
1912         (vavgub): New.
1913         (vavgsb): New.
1914         (vavguh): New.
1915         (vavgsh): New.
1916         (vavguw): New.
1917         (vavgsw): New.
1918         (vcmpbfp): New.
1919         (vcmpequb): New.
1920         (vcmpequh): New.
1921         (vcmpequw): New.
1922         (vcmpeqfp): New.
1923         (vcmpgefp): New.
1924         (vcmpgtub): New.
1925         (vcmpgtsb): New.
1926         (vcmpgtuh): New.
1927         (vcmpgtsh): New.
1928         (vcmpgtuw): New.
1929         (vcmpgtsw): New.
1930         (vcmpgtfp): New.
1931         (vcmpgefp): New.
1932         (vcmpgtub): New.
1933         (vcmpgtsb): New.
1934         (vcmpgtuh): New.
1935         (vcmpgtsh): New.
1936         (vcmpgtuw): New.
1937         (vcmpgtsw): New.
1938         (vcmpgtfp): New.
1939         (vmaxub): New.
1940         (vmaxsb): New.
1941         (vmaxuh): New.
1942         (vmaxsh): New.
1943         (vmaxuw): New.
1944         (vmaxsw): New.
1945         (vmaxfp): New.
1946         (vmrghb): New.
1947         (vmrghh): New.
1948         (vmrghw): New.
1949         (vmrglb): New.
1950         (vmrglh): New.
1951         (vmrglw): New.
1952         (vminub): New.
1953         (vminsb): New.
1954         (vminuh): New.
1955         (vminsh): New.
1956         (vminuw): New.
1957         (vminsw): New.
1958         (vminfp): New.
1959         (vmuleub): New.
1960         (vmulesb): New.
1961         (vmuleuh): New.
1962         (vmulesh): New.
1963         (vmuloub): New.
1964         (vmulosb): New.
1965         (vmulouh): New.
1966         (vmulosh): New.
1967         (vnor): New.
1968         (vor): New.
1969         (vpkuhum): New.
1970         (vpkuwum): New.
1971         (vpkpx): New.
1972         (vpkuhss): New.
1973         (vpkshss): New.
1974         (vpkuwss): New.
1975         (vpkswss): New.
1976         (vpkuhus): New.
1977         (vpkshus): New.
1978         (vpkuwus): New.
1979         (vpkswus): New.
1980         (vrlb): New.
1981         (vrlh): New.
1982         (vrlw): New.
1983         (vslb): New.
1984         (vslh): New.
1985         (vslw): New.
1986         (vsl): New.
1987         (vslo): New.
1988         (vsrb): New.
1989         (vrsh): New.
1990         (vrsw): New.
1991         (vsrab): New.
1992         (vsrah): New.
1993         (vsraw): New.
1994         (vsr): New.
1995         (vsro): New.
1996         (vsububm): New.
1997         (vsubuhm): New.
1998         (vsubuwm): New.
1999         (vsubfp): New.
2000         (vsubcuw): New.
2001         (vsububs): New.
2002         (vsubsbs): New.
2003         (vsubuhs): New.
2004         (vsubshs): New.
2005         (vsubuws): New.
2006         (vsubsws): New.
2007         (vsum4ubs): New.
2008         (vsum4sbs): New.
2009         (vsum4shs): New.
2010         (vsum2sws): New.
2011         (vsumsws): New.
2012         (vxor): New.
2013
2014 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
2015
2016         * Makefile.in (df.o): Add fibheap.h to dependencies.
2017
2018         * df.h: Add prototypes for transfer functions, iterative_dataflow
2019         functions.
2020         (enum df_flow_dir): New enum.
2021         (enum df_confluence_op): New enum.
2022         (struct df): Add inverse_rts_map.
2023
2024         * df.c: Add sbitmap.h to the list of includes.
2025         (df_rd_global_compute): Removed.
2026         (df_ru_global_compute): Removed.
2027         (df_lr_global_compute): Removed.
2028         (df_rd_transfer_function): New function.
2029         (df_ru_transfer_function): New function.
2030         (df_lr_transfer_function): New function.
2031         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
2032         Use iterative_dataflow_bitmap instead of df_*_global_compute.
2033         (iterative_dataflow_sbitmap): New function.
2034         (iterative_dataflow_bitmap): New function.
2035
2036 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2037
2038         * doc/gcc.texi: Move terminology and spelling conventions to
2039         htdocs/codingconventions.html.
2040
2041 2001-11-07  Graham Stott  <grahams@redhat.com>
2042
2043         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
2044
2045 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
2046
2047         * expmed.c (expand_mult): Force operand to register before computing
2048         cost.
2049         * i386.c (x86_decompose_lea): New global vairable.
2050         * i386.h (x86_decompose_lea): Declare.
2051         (TARGET_DECOMPOSE_LEA): New macro.
2052         (RTX_COST): Handle leas properly.
2053
2054 2001-11-06  Richard Henderson  <rth@redhat.com>
2055
2056         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
2057         defined for a CONSTRUCTOR; don't check it.
2058
2059 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
2060
2061         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
2062         test for absolute pathnames.
2063
2064 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
2065
2066         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
2067         instructions up to the target pc inclusive.
2068
2069 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
2070
2071         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
2072
2073 2001-11-06  Eric Christopher  <echristo@redhat.com>
2074
2075         * config/mips/mips.md(movdf_internal2): Add constraints for float
2076         to general register move.
2077         * config/mips/elf64.h: Add default ABI.
2078
2079 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2080
2081         * alias.c:: Include langhooks.h.
2082         * emit-rtl.c: Similarly.
2083         * toplev.c: Similarly.
2084         * tree-inline.c: Similarly.
2085         * langhooks-def.h: New, the old langhooks.h.  Give the default
2086         hooks a common prefix.
2087         * langhooks.h: Contents extracted from toplev.h.
2088         * toplev.h: Move langhook stuff to langhooks.h.
2089         * langhooks.c: Give default hooks a common prefix.
2090
2091         * c-lang.c: Include langhooks-def.h.
2092         * objc/objc-act.c: Similarly.
2093         * Makefile.in: Update.
2094         * objc/Make-lang.in: Update.
2095
2096 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
2097
2098         * doc/install.texi: Document that configure options not listed in
2099         this file are unsupported.  Document --with-system-zlib.
2100
2101 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2102
2103         * rtl.h (mem_for_const_double): New declaration.
2104         * varasm.c (mem_for_const_double): New function.
2105         * config/convex/convex.md (movdf): Use it.
2106         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
2107         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
2108         * config/m68k/m68kv4.h: Likewise.
2109
2110         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
2111         of new GP reg classes.
2112
2113         * expr.c (store_field): When making temp object for unaligned
2114         component, set it to alias set 0.
2115
2116 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
2117
2118         * c-common.c (c_expand_expr_stmt): Apply default conversions to
2119         non-lvalue arrays if C99.
2120         * c-typeck.c (default_conversion): Split out code handling
2121         array-to-pointer and function-to-pointer conversions into a
2122         separate default_function_array_conversion function.
2123         (default_function_array_conversion): New function.  Keep track of
2124         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
2125         arrays unchanged outside C99 mode instead of giving an error for
2126         them.
2127         (build_component_ref): Use pedantic_non_lvalue when handling
2128         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
2129         (convert_arguments): Use default_function_array_conversion.
2130         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
2131         non-lvalues are OK.
2132         (unary_complex_lvalue): Likewise.
2133         (internal_build_compound_expr): Use
2134         default_function_array_conversion.  Apply default conversions to
2135         function in compound expression.
2136         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
2137         Use default_function_array_conversion.
2138         * doc/extend.texi: Update documentation of subscripting non-lvalue
2139         arrays.
2140         Fixes PR c/461.
2141
2142 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
2143
2144         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
2145         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
2146         corresponding to the complete set of .po and .gmo files in
2147         the source directory's po subdir, modified by LINGUAS.  Don't
2148         look at ALL_LINGUAS.
2149         * configure.in: Don't set ALL_LINGUAS.
2150         * configure: Regenerate.
2151
2152         * Makefile.in (.po.gmo): Don't move into source directory.
2153         (.po.pox): Clarify comments.
2154         (install-po): Look for .gmo files in both srcdir and objdir;
2155         don't fail if a file is totally missing.
2156         (distclean): rmdir ada subdirectory too.
2157
2158 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
2159
2160         * config/rs6000/rs6000.c (rs6000_select_section): Handle
2161         CONSTRUCTORs _correctly_.
2162
2163 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2164
2165         * c-decl.c (delete_block): Remove.
2166         * c-tree.h (delete_block): Remove.
2167
2168 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2169
2170         * cppexp.c (lex, parse_defined): Update warning about defined.
2171
2172 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
2173
2174         * config/rs6000/rs6000.c (rs6000_select_section): Handle
2175         CONSTRUCTORs too.
2176
2177 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
2178
2179         * config/arm/arm.c (arm_return_in_memory): Cope with
2180         int_size_in_bytes returning -1.
2181
2182         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
2183         DECL being NULL.
2184
2185 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
2186
2187         * Makefile.in (bb-reoder.o): Add dependency on cfglayout.h;
2188         remove unneeded dependencies;
2189         (cfglayout.o): New.
2190         * cfglayout.c, cfglayout.h: New files; break out from ...
2191         * bb-reorder.c: ... here; Remove unneeded includes;
2192
2193 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
2194
2195         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
2196
2197 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
2198
2199         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
2200         mode as well.  Do not explicitly create intermediate regs.
2201
2202 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2203
2204         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
2205         (common_section): Delete unused variable.
2206         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
2207         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
2208         * arm-protos.h (arm_poke_function_name, aof_add_import,
2209         aof_delete_import): Const-ify.
2210         * arm.c (legitimize_pic_address): Wrap variables in the macro
2211         controlling their usage.
2212         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
2213         (arm_poke_function_name, pic_chain, import, aof_add_import,
2214         aof_delete_import): Const-ify.
2215         * i386.c (ix86_osf_output_function_prologue): Const-ify.
2216         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2217         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
2218         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
2219         * i860/sysv3.h: Add missing comment closure.
2220         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
2221         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
2222         to symbolic_operand.
2223
2224         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
2225         (i960-*-*): Set tmake_file.
2226         (sparc86x-*-elf*): Fix typo in header name.
2227
2228         * sched-rgn.c (schedule_insns): Delete unused variable.
2229
2230 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2231
2232         PR c/2820
2233         * c-typeck.c (lookup_field): Rework to return a chain down to
2234         the looked-up field.
2235         (build_component_ref): Use the new lookup_field to handle
2236         nested anonymous entities correctly.
2237
2238 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2239
2240         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
2241         Change parameters to gen_rtx_CONST_DOUBLE.
2242         (GEN_INT64, sparc_emit_set_const64): Likewise.
2243         * config/sparc/sparc.md (movdf split): Likewise.
2244
2245 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
2246
2247         * unroll.c (calculate_giv_inc): Use find_last_value rather
2248         than just hoping the last instruction is the right SET.
2249         [Fixes 990604-1.c on stormy16.]
2250
2251         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
2252         library at all if -T is used.
2253
2254         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
2255         some uses of uninitialized variables in error cases.
2256
2257         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
2258         look at 'temp' if we won't be using it.
2259
2260         * config/stormy16/stormy16.h (CONST_COSTS): Define.
2261         (RTX_COSTS): Define.
2262         (ADDRESS_COST): Define.
2263         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
2264
2265         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
2266
2267         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
2268         stormy16_asm_output_mi_thunk.
2269         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
2270         function.
2271         * config/stormy16/stormy16-protos.h
2272         (stormy16_asm_output_mi_thunk): New prototype.
2273
2274 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2275
2276         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
2277         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
2278         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
2279         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
2280         sched-int.h, toplev.c, config/alpha/alpha.c,
2281         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
2282         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
2283         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
2284         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
2285         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
2286         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
2287         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
2288
2289 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2290
2291         * Makefile.in (dbxout.o): Depend on function.h.
2292         * collect2.c (is_in_list): Hide unused function.
2293         * dbxout.c: Include function.h.
2294         (source_label_number, dbxout_source_line, dbxout_source_file,
2295         dbxout_function_end, dbxout_begin_function): Wrap/move inside
2296         macros controlling usage.
2297         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
2298         * output.h (exports_section): Prototype.
2299
2300         * convex.c (convex_output_function_prologue): Fix format specifier
2301         warning.
2302         (asm_declare_function_name): Fix signed/unsigned warning.
2303         (print_operand): Fix format specifier warning.
2304         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
2305         * dsp16xx-protos.h (uns_comparison_operator,
2306         num_1600_core_shifts): Prototype.
2307         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
2308         (frame_size, frame_pointer_offset): Delete.
2309         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
2310         Make static.  Fix format specifier warnings.
2311         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
2312         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
2313         * dsp16xx.md: Add default case in switches.
2314         * fr30.h (IN_RANGE): Delete.
2315         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
2316         * mcore-protos.h (mcore_output_cmov): Const-ify.
2317         * mcore.c (mcore_output_cmov): Likewise.
2318         * mcore.h (switch_to_section): Make static and prototype.
2319         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
2320         unsigned>=0 warnings.
2321         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
2322         * rs6000-protos.h (read_only_data_section,
2323         read_only_private_data_section): Prototype.
2324         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2325         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
2326         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
2327
2328 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2329
2330         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
2331         ATTRIBUTE_UNUSED.
2332         * final.c (final_scan_insn): Add brackets around body of if-stmt.
2333         * gcc.c (convert_filename): Add static prototype.  Const-ify.
2334         Wrap variable in macros controlling its use.
2335         * output.h (sdata_section): Add prototype.
2336
2337         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2338         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
2339         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
2340         (ASM_FILE_START): Const-ify.
2341         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
2342         specifier warning.
2343         * c4x.md: Don't use the 'U' integer suffix.
2344         * clipper.md (clipper_movstr): Delete declaration.
2345         * d30v-protos.h (d30v_move_2words): Const-ify.
2346         (debug_stack_info): Add prototype.
2347         * d30v.c: Include "integrate.h".
2348         (d30v_function_arg_boundary, d30v_function_arg,
2349         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
2350         signed/unsigned warnings.
2351         (d30v_print_operand_memory_reference, d30v_move_2words):
2352         Const-ify.
2353         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
2354         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
2355         * fr30.md: Const-ify.
2356         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2357         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
2358         (mvs_get_label_page): Hide unused static function.
2359         * i860.c (current_function_original_name): Const-ify.
2360         * i860/sysv3.h (current_function_original_name): Likewise.
2361         * i860/sysv4.h (current_function_original_name): Likewise.
2362         * i960.md: Add default case in switches.  Remove unused variable.
2363         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
2364         * m32r.md: Const-ify.
2365         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
2366         * m68hc11.c: Include "reload.h".
2367         (static_chain_reg, print_options, m68hc11_asm_file_start):
2368         Const-ify.
2369         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
2370         around & in comparison.
2371         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
2372         * mn10200.c (shift_mode): Remove trailing comma.
2373         * mn10300-protos.h (output_tst): Const-ify.
2374         * mn10300.c (output_tst): Likewise.
2375         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
2376         warnings.
2377         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
2378         * pa.c (output_ascii): Likewise.
2379         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2380         * pdp11.md (expand_unop): Delete declarations.
2381         * pj-protos.h (pj_output_addsi3): Const-ify.
2382         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
2383         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
2384         unique_src_operand): Add prototypes.
2385         (pj_output_store_into_lval): Make definition static.
2386         (pj_function_incoming_arg): Don't use unary plus.
2387         (pj_output_addsi3): Const-ify.
2388         * romp.md (get_symref): Delete declarations.
2389         * v850-c.c (mark_current_function_as_interrupt): Don't return
2390         value from void function.
2391         * v850.c: Include "integrate.h".
2392         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
2393         * vax-protos.h (const_section): Add prototype.
2394
2395 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
2396
2397         * machmode.def: Add documentation for the seventh argument in
2398         vector modes.
2399
2400 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
2401
2402         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
2403         consistently.
2404         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
2405         <-melf>: Don't have markup for ELF acronym.
2406
2407 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
2408
2409         * config.gcc (mmix-*-*): New target.
2410         * doc/invoke.texi: Document MMIX options.
2411         * doc/contrib.texi: Add note about MMIX port to my entry.
2412         * config/mmix/t-mmix: New file.
2413         * config/mmix/mmix.h: New file.
2414         * config/mmix/mmix-protos.h: New file.
2415         * config/mmix/mmix.c: New file.
2416         * config/mmix/mmix.md: New file.
2417         * config/mmix/crti.asm: New file.
2418         * config/mmix/crtn.asm: New file.
2419
2420 2001-11-03  Kazu Hirata  <kazu@hxi.com>
2421
2422         * config/sparc/linux-aout.h: Fix comment formatting.
2423         * config/sparc/linux.h: Likewise.
2424         * config/sparc/linux64.h: Likewise.
2425         * config/sparc/lynx.h: Likewise.
2426         * config/sparc/pbd.h: Likewise.
2427         * config/sparc/sol2-sld-64.h: Likewise.
2428         * config/sparc/sol2.h: Likewise.
2429         * config/sparc/sparc.c: Likewise.
2430         * config/sparc/sparc.h: Likewise.
2431         * config/sparc/sparc.md: Likewise.
2432         * config/sparc/sunos4.h: Likewise.
2433         * config/sparc/vxsim.h: Likewise.
2434         * config/sparc/vxsparc.h: Likewise.
2435         * config/sparc/vxsparc64.h: Likewise.
2436
2437 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2438
2439         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
2440         reference to CONST_DOUBLE_MEM in comment.
2441         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
2442         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
2443         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
2444         * function.c (pop_function_context_from): Don't call
2445         restore_varasm_status.
2446         * function.h (restore_varasm_status): Delete declaration.
2447         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
2448         * rtl.c: Likewise.
2449         * rtl.def (CONST_DOUBLE): Update comment.
2450         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
2451         (CONST_DOUBLE_CHAIN): Likewise.
2452         (CONST_DOUBLE_MEM): Delete.
2453         (gen_rtx_CONST_DOUBLE): Update parameters.
2454         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
2455         Remove reference to CONST_DOUBLE_MEM.
2456         (const_alias_set): New variable.
2457         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
2458         (immed_real_const_1): Adjust tests for 0, 1, and 2.
2459         Don't set CONST_DOUBLE_MEM.
2460         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
2461         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
2462         Put constant in const_alias_set.
2463         (struct pool_constant): ALIGN now unsigned.
2464         OFFSET now HOST_WIDE_INT.
2465         Delete LABEL.
2466         (restore_varasm_status): Deleted.
2467         (mark_pool_constant): Mark desc->rtl.
2468         (force_const_mem): Rework to store rtl in hash table,
2469         not CONST_DOUBLE_MEM.
2470         Put constant in const_alias_set.
2471         (find_pool_constant): Check desc->rtl.
2472         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
2473         (init_varasm_once): Initialize const_alias_set.
2474
2475         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
2476         force_const_mem.
2477
2478         * reload.c (combine_reloads): Don't combine an output reload if there
2479         are other reloads around for part of the output.
2480
2481         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
2482         constant expression.
2483         (set_mem_decl): New function.
2484         * expr.h (set_mem_decl): New declaration.
2485         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
2486         (output_asm_operand_names): Add tab.
2487         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
2488
2489         * builtins.c (get_memory_rtx): Properly set MEM alias set and
2490         attributes.
2491
2492 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
2493
2494         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
2495         Use "invalid" instead of "illegal".  Use @r in comments in
2496         examples.
2497
2498 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2499
2500         * c-decl.c (pushdecl): Move block inside if conditional to remove
2501         possibility of a segfault.  Lookup block-level extern
2502         variables in enclosing scopes correctly.
2503
2504         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
2505
2506 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
2507
2508         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
2509         SUBREG so we avoid SUBREGing memory.
2510
2511         * expmed.c (store_bit_field): Same.
2512
2513 2001-11-02  DJ Delorie  <dj@redhat.com>
2514
2515         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
2516         using FP registers for DImode mem-mem moves is acceptable.
2517
2518 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
2519
2520         * builtins.c (apply_args_size): Handle vector arguments.
2521         (apply_result_size): Same.
2522
2523         * machmode.def: Set WIDER mode field for all vector entries.
2524
2525 2001-11-02  Graham Stott  <grahams@redhat.com>
2526
2527         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
2528
2529 2001-11-01  Eric Christopher  <echristo@redhat.com>
2530
2531         * config.gcc: Revert part of earlier patch.
2532         * config/mips/linux.h: Ditto.
2533         * df.c: Include tm_p.h to avoid warnings.
2534         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
2535         #if/#endif.
2536         * config/mips/mips.c: Define mips_abi regardless.
2537         (mips_output_function_prologues): Add long casts for .frame
2538         output.
2539         (override_options): Allow use of ABI_32.
2540
2541 2001-11-01  Kazu Hirata  <kazu@hxi.com>
2542
2543         * config/m68hc11/m68hc11.c: Fix comment formatting.
2544         * config/m68hc11/m68hc11.h: Likewise.
2545         * config/m68hc11/m68hc11.md: Likewise.
2546
2547 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
2548
2549         * c-typeck.c (default_conversion): Retain the original expression
2550         codes.
2551         * gcc.dg/Wparentheses.c: New tests.
2552
2553 2001-11-01  David S. Miller  <davem@redhat.com>
2554
2555         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
2556         64-bit Sparc description more in line with reality.
2557
2558 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
2559
2560         * Makefile.in (GCOV_OBJS): Add version.o.
2561         * gcov.c: Include "version.h" and <getopt.h>.
2562         (gcov_version_string): Remove.
2563         (print_usage): Take a parameter to determine whether this is a
2564         call from --help or an error message.  Give fuller output that
2565         follows the GNU Coding Standards for --help.
2566         (print_version): New function.
2567         (options): New.
2568         (process_args): Use getopt_long.  Support long options.  Follow
2569         GNU Coding Standards for --help and --version.
2570         * doc/gcov.texi: Document long options.
2571         Addresses part of PR other/704.
2572
2573 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2574
2575         * pa.c (output_move_double): Fix typo in double load.
2576
2577 2001-11-01  Kazu Hirata  <kazu@hxi.com>
2578
2579         * config/h8300/h8300.c (h8300_encode_label): Compute a string
2580         before passing it to ggc_alloc_string.
2581
2582 2001-11-01  Kazu Hirata  <kazu@hxi.com>
2583
2584         * config/m68k/3b1.h: Fix comment formatting.
2585         * config/m68k/3b1g.h: Likewise.
2586         * config/m68k/a-ux.h: Likewise.
2587         * config/m68k/amix.h: Likewise.
2588         * config/m68k/apollo68.h: Likewise.
2589         * config/m68k/atari.h: Likewise.
2590         * config/m68k/aux-exit.c: Likewise.
2591         * config/m68k/ccur-GAS.h: Likewise.
2592         * config/m68k/crds.h: Likewise.
2593         * config/m68k/dpx2.h: Likewise.
2594         * config/m68k/dpx2g.h: Likewise.
2595         * config/m68k/hp310.h: Likewise.
2596         * config/m68k/hp320.h: Likewise.
2597         * config/m68k/isi.h: Likewise.
2598         * config/m68k/linux.h: Likewise.
2599         * config/m68k/lynx.h: Likewise.
2600         * config/m68k/m68k-psos.h: Likewise.
2601         * config/m68k/m68k.c: Likewise.
2602         * config/m68k/m68k.h: Likewise.
2603         * config/m68k/m68k.md: Likewise.
2604         * config/m68k/m68kelf.h: Likewise.
2605         * config/m68k/m68kv4.h: Likewise.
2606         * config/m68k/mot3300.h: Likewise.
2607         * config/m68k/news.h: Likewise.
2608         * config/m68k/next.h: Likewise.
2609         * config/m68k/pbb.h: Likewise.
2610         * config/m68k/plexus.h: Likewise.
2611         * config/m68k/sgs.h: Likewise.
2612         * config/m68k/sun3.h: Likewise.
2613         * config/m68k/tower.h: Likewise.
2614         * config/m68k/vxm68k.h: Likewise.
2615
2616 2001-10-31  DJ Delorie  <dj@redhat.com>
2617
2618         * config/mips/mips.h (mips_cache_flush_func): Prototype.
2619         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
2620         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
2621         * config/mips/mips.c (mips_cache_flush_func): New.
2622         * doc/invoke.texi: Document the new options.
2623
2624 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
2625
2626         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
2627         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
2628
2629         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
2630
2631         * config/cris/cris.c: Include output.h after tree.h but before
2632         target.h.
2633
2634 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
2635
2636         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
2637         (INTL_SUBDIRS): Just intl.
2638         (.SUFFIXES): Add .gmo .po .pox.
2639         (native): Also depend on build-@POSUB@.
2640         (intl.all, intl.install): Depend on config.h and things it includes.
2641         (po-generated): New target; depend on c-parse.c and tradcif.c.
2642         (install-normal): Also depend on install-@POSUB@.
2643         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
2644         (build-, install-, build-po, update-po, install-po,
2645         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
2646
2647         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
2648         * configure.in: Don't munge XGETTEXT.  Don't generate
2649         po/Makefile.in.
2650         * configure: Regenerate.
2651
2652         * exgettext: Delete.
2653         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
2654         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
2655
2656 2001-10-31  Kazu Hirata  <kazu@hxi.com>
2657
2658         * config/h8300/h8300.md (two anonymous patterns): New.
2659
2660 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
2661
2662         * tree.h (tree_index): Add support for V16QI and V8HI.
2663         (V8HI_type_node): New.
2664         (V16QI_type_node): New.
2665
2666         * tree.c (build_common_tree_nodes_2): Same.
2667
2668         * c-common.c (type_for_mode): Same.
2669
2670 2001-10-31  Kazu Hirata  <kazu@hxi.com>
2671
2672         * config/i386/att.h: Fix comment formatting.
2673         * config/i386/beos-elf.h: Likewise.
2674         * config/i386/bsd.h: Likewise.
2675         * config/i386/bsd386.h: Likewise.
2676         * config/i386/crtdll.h: Likewise.
2677         * config/i386/cygwin.asm: Likewise.
2678         * config/i386/cygwin.h: Likewise.
2679         * config/i386/djgpp.h: Likewise.
2680         * config/i386/freebsd-aout.h: Likewise.
2681         * config/i386/freebsd.h: Likewise.
2682         * config/i386/gas.h: Likewise.
2683         * config/i386/i386-interix.h: Likewise.
2684         * config/i386/i386-protos.h: Likewise.
2685         * config/i386/i386.c: Likewise.
2686         * config/i386/i386.h: Likewise.
2687         * config/i386/i386.md: Likewise.
2688         * config/i386/i386elf.h: Likewise.
2689         * config/i386/interix.c: Likewise.
2690         * config/i386/isc.h: Likewise.
2691         * config/i386/isccoff.h: Likewise.
2692         * config/i386/iscdbx.h: Likewise.
2693         * config/i386/linux.h: Likewise.
2694         * config/i386/lynx.h: Likewise.
2695         * config/i386/mingw32.h: Likewise.
2696         * config/i386/netbsd-elf.h: Likewise.
2697         * config/i386/next.h: Likewise.
2698         * config/i386/osf1elf.h: Likewise.
2699         * config/i386/osfrose.h: Likewise.
2700         * config/i386/sco5.h: Likewise.
2701         * config/i386/seq-gas.h: Likewise.
2702         * config/i386/seq-sysv3.h: Likewise.
2703         * config/i386/sequent.h: Likewise.
2704         * config/i386/sol2.h: Likewise.
2705         * config/i386/sun386.h: Likewise.
2706         * config/i386/uwin.asm: Likewise.
2707         * config/i386/uwin.h: Likewise.
2708         * config/i386/vxi386.h: Likewise.
2709         * config/i386/win32.h: Likewise.
2710         * config/i386/winnt.c: Likewise.
2711         * config/i386/xm-cygwin.h: Likewise.
2712         * config/i386/xm-mingw32.h: Likewise.
2713
2714 2001-10-31  Kazu Hirata  <kazu@hxi.com>
2715
2716         * builtins.def: Fix comment typos.
2717         * config/alpha.c: Likewise.
2718         * config/arm/arm.c: Likewise.
2719         * config/avr/avr.h: Likewise.
2720         * config/d30v/d30v.c: Likewise.
2721         * config/d30v/d30v.h: Likewise.
2722         * config/d30v/d30v.md: Likewise.
2723         * config/dsp16xx/dsp16xx.c: Likewise.
2724         * config/fr30/fr30.c: Likewise.
2725         * config/fr30/fr30.md: Likewise.
2726         * config/i386/i386.c: Likewise.
2727         * config/i860/i860.c: Likewise.
2728         * config/i960/i960.c: Likewise.
2729         * config/ia64/ia64.c: Likewise.
2730         * config/mips/mips.c: Likewise.
2731         * config/pa/pa.c: Likewise.
2732         * config/rs6000/rs6000.c: Likewise.
2733         * config/s390/s390.c: Likewise.
2734         * config/sparc/sparc.c: Likewise.
2735
2736 2001-10-30  Kazu Hirata  <kazu@hxi.com>
2737
2738         * config/mips/elf.h: Fix comment formatting.
2739         * config/mips/elf64.h: Likewise.
2740         * config/mips/iris5.h: Likewise.
2741         * config/mips/iris5gas.h: Likewise.
2742         * config/mips/iris6.h: Likewise.
2743         * config/mips/isa3264.h: Likewise.
2744         * config/mips/linux.h: Likewise.
2745         * config/mips/mips.c: Likewise.
2746         * config/mips/mips.h: Likewise.
2747         * config/mips/mips.md: Likewise.
2748         * config/mips/mips16.S: Likewise.
2749         * config/mips/netbsd.h: Likewise.
2750         * config/mips/osfrose.h: Likewise.
2751         * config/mips/r3900.h: Likewise.
2752         * config/mips/sni-svr4.h: Likewise.
2753         * config/mips/svr4-t.h: Likewise.
2754         * config/mips/ultrix.h: Likewise.
2755
2756 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
2757
2758         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
2759         when we update head->current.
2760
2761 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
2762
2763         * tree.c (id_string_size): Remove.
2764         (dump_tree_statistics): Update.
2765         * toplev.c (compile_file): If dumping stats, dump tree stats too.
2766
2767 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
2768
2769         * sched-rgn.c (schedule_insns): Fix comment.
2770
2771 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
2772
2773         * configure.in: Correct previous change: don't assume that
2774         gas's version number _isn't_ the last thing on the line, or
2775         isn't the only number on the line, either.
2776         * configure: Regenerate.
2777
2778 2001-10-30  Kazu Hirata  <kazu@hxi.com>
2779
2780         * cfgcleanup.c: Fix a comment typo.
2781
2782 2001-10-30  Kazu Hirata  <kazu@hxi.com>
2783
2784         * alias.c: Fix comment formatting.
2785         * recog.c: Likewise.
2786         * config/cris/cris.c: Likewise.
2787         * config/cris/cris.h: Likewise.
2788         * config/i960/i960.c: Likewise.
2789         * config/i960/i960.h: Likewise.
2790
2791 2001-10-30  Kazu Hirata  <kazu@hxi.com>
2792
2793         * config/arm/arm.c: Fix a comment typo.
2794         * config/arm/arm.h: Likewise.
2795         * config/ia64/ia64.c: Likewise.
2796
2797 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
2798
2799         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
2800         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
2801         * rtl.h (set_unique_reg_note): Change return value.
2802         * gcse.c (try_replace_reg): Use set_unique_reg_note.
2803         * cse.c (cse_insn): Likewise.
2804         * expr.c (emit_move_insn): Likewise.
2805         * explow.c (force_reg): Likewise.
2806         * local-alloc (update_equiv_regs): Likewise.
2807         * loop.c (move_moveables, load_mems): Likewise.
2808         * reload (find_reloads): Likewise.
2809
2810 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
2811
2812         Localization fixes.
2813         * c-decl.c (parmlist_tags_warning, start_struct,
2814         check_for_loop_decls): Separate messages for struct, union and
2815         enum cases to allow for languages in which they have different
2816         genders.
2817         * c-format.c (scanf_flag_specs): Separate short and long name of
2818         the assignment suppression feature.
2819         (check_format_types): Localize "pointer" and "different types"
2820         strings.
2821         * c-lex.c (lex_number): Localize "an unsigned long int" and
2822         related strings.
2823         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
2824         warning message.
2825         * c-typeck.c (build_unary_up): Separate messages for increment and
2826         decrement cases to allow for languages in which they use different
2827         articles.  Localize the strings "increment" and "decrement" in one
2828         case.
2829
2830 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
2831
2832         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
2833         when no changes has been made.
2834
2835         * gcse.c (reg_set_bitmap): Turn into reg_set.
2836         (modify_mem_list_set, canon_modify_mem_list_set)
2837         (clear_modify_mem_tables, free_modify_mem_tables): New.
2838         (gcse_main); Use free_modify_mem_tables.
2839         (free_gcse_mem): Likewise; free the bitmaps.
2840         (alloc_gcse_main): Initialize the bitmaps.
2841         (canon_list_insert): Set canon_modify_mem_list_set.
2842         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
2843         (compute_hash_table): Use clear_modify_mem_tables.
2844         (reset_opr_set_tables): Likewise.
2845         (oprs_not_set_p): reg_set_bitmap is regset.
2846         (mark_set, mark_clobber): Likewise.
2847
2848         * df.h (DF_EQUIV_NOTES): New constant.
2849         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
2850         when asked for.
2851
2852         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
2853         (init_regions, schedule_insns): Conditionalize the checking
2854         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
2855
2856 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
2857
2858         * i386.md (movti_rex64 splitter): Fix condition.
2859
2860 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
2861
2862         * configure.in: Do not assume that gas's version number is the
2863         last thing on the first line of as --version output.
2864         * configure: Regenerate.
2865
2866         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
2867         MT_WARNING, MT_ERROR, MT_FATAL.
2868         (main): Call gcc_init_libintl.
2869         (v_message): Call gettext on msgid and "warning: "
2870         * tradcif.y: Include intl.h.
2871         (yyerror): Make parameter definition consistent with
2872         prototype.  Call gettext on msgid argument.
2873
2874 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2875
2876         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
2877         warnings.
2878
2879         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
2880
2881 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2882
2883         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
2884         before referencing it.
2885
2886 2001-10-26  DJ Delorie  <dj@redhat.com>
2887
2888         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
2889         override -G, and force -G0.
2890
2891 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
2892
2893         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
2894         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
2895         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
2896         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
2897
2898         * loop.h (struct induction): Rename ext_dependant to
2899         ext_dependent.
2900         * loop.c: Change all uses.
2901         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
2902         All callers changed.
2903         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
2904
2905 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
2906
2907         * c-parse.in (expr_no_commas, primary), c-typeck.c
2908         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
2909
2910 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
2911
2912         Undo assemble_name change in earlier patch.
2913
2914 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
2915
2916         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
2917         determining the type of the receiver, do not check that TREE_CODE
2918         of receiver is CALL_EXPR before calling receiver_is_class_object().
2919         (receiver_is_class_object): For the GNU runtime: recognize
2920         the case that the receiver is self in a class method context.
2921         Check that TREE_CODE of receiver is CALL_EXPR when checking that
2922         the receiver is a call to objc_get_class.
2923
2924 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2925
2926         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
2927
2928 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2929
2930         * Makefile.in (OBJS): Put all files in alphabetical order.
2931
2932         * dwarf2out.c (add_const_value_attribute): Fix error in last
2933         change.
2934
2935 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
2936
2937         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
2938         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
2939         fix warning.
2940         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
2941         (life_analysis): call purge_all_dead_edges after deleting noops.
2942         (delete_noop_move): Do not purge CFG.
2943         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
2944
2945 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
2946
2947         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
2948         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
2949         (ASM_GLOBALIZE_LABEL): Use assemble_name.
2950         (ASM_OUTPUT_COMMON): Likewise.
2951         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
2952         (rs6000_output_function_epilogue): Likewise.
2953         (output_mi_thunk): Fix typo.
2954         (rs6000_output_symbol_ref): Use assemble_name.
2955         (output_toc): Likewise.
2956         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
2957         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
2958         assemble_name calls STRIP_NAME_ENCODING.
2959         (ASM_OUTPUT_LABEL): Use assemble_name.
2960         (ASM_GLOBALIZE_LABEL): Likewise.
2961         (ASM_DECLARE_FUNCTION_NAME): Likewise.
2962         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
2963         (ASM_OUTPUT_LOCAL): Likewise.
2964
2965 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2966
2967         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
2968         (expand_builtin_apply, expand_builtin_return): Likewise.
2969         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
2970
2971 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
2972
2973         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
2974         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
2975         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
2976         configure, configure.in, except.c, except.h, flow.c, function.c,
2977         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
2978         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
2979         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
2980         unroll.c: Fix spelling errors.
2981
2982         * doc/extend.texi, doc/invoke.texi: Fix spelling.
2983
2984         * doc/gcc.texi: Document use of "dependent" and American spelling.
2985
2986 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
2987
2988         * expr.c (emit_group_load): Support CONCATs by storing them to memory
2989         and reloading.
2990
2991 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2992
2993         * expr.c (store_constructor_field): Only call adjust_address on MEM.
2994
2995 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
2996
2997         * genrecog.c (write_switch):  Output if before switch for
2998         DT_elt_zero_wide_safe.
2999
3000 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3001
3002         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
3003         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
3004         (FUNCTION_PROFILER): Const-ify.
3005         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
3006         (eliminate_constant_term, assemble_name, output_addr_const):
3007         Remove declarations.
3008         (ptr_half_pic_address_p, half_pic_hash): Prototype.
3009         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
3010         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
3011         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
3012         (half_pic_declare, half_pic_external): Const-ify.
3013         * toplev.c: Include "halfpic.h".
3014
3015 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
3016
3017         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
3018         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
3019         config/i386/i386.c, config/i386/i386-interix.h,
3020         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
3021         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
3022         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
3023         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
3024         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
3025         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
3026         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
3027         spelling errors.
3028
3029         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3030         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
3031         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
3032         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
3033         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
3034         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
3035         system.h, toplev.c: Fix spelling errors.
3036
3037 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3038
3039         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
3040
3041         * dwarf2out.c (reg_number): Abort if pseudo.
3042         (reg_loc_descriptor): Return 0 if pseudo.
3043         (is_based_loc): Return 0 if pseudo.
3044         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
3045         recursive calls.
3046         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
3047         (loc_descriptor): Return 0 if can't find location and handle 0
3048         return from recursive calls.
3049         (loc_descriptor_from_tree): Likewise.
3050         Fix handling of indirect.
3051         Also return 0 for PLACEHOLDER_EXPR.
3052         Clean up COMPONENT_REF cases.
3053         (add_AT_location_descriptor): Simplify, but handle 0 return from
3054         loc_descriptor.
3055         (add_const_value_attribute): Avoid shift count warning.
3056         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
3057         Set comp_unit_die as context if not in function.
3058
3059         * config/mips/mips-protos.h: Break up long lines.
3060         Remove needless #ifdef/#endif blocks.
3061         Don't declare functions declared in file made by genpreds or recog.h.
3062         * config/mips/mips.c (mips_output_function_prologue): TSIZE
3063         is now HOST_WIDE_INT; delete unneeded casts.
3064         * config/mips/mips.h: Don't use #elif.
3065
3066         * expr.c (stor_constructor_field): Always call adjust_address.
3067         Copy TARGET before changing its alias set.
3068         (store_field): Likewise, for TO_RTX.
3069         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
3070         replacement.
3071         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
3072         (find_placeholder): Return 0 if can't find object.
3073         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
3074         returns 0.
3075
3076 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
3077
3078         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
3079
3080 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
3081
3082         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
3083         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
3084         (merge_blocks): Properly udpate life after making edge nonfallthru.
3085         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
3086
3087 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3088
3089         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
3090
3091 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3092
3093         * c-typeck.c (convert_arguments): When comparing for enumeral
3094         type equality, use TYPE_MAIN_VARIANT.
3095         * gcc.dg/Wconversion.c: New tests.
3096
3097 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3098
3099         * s390/s390.c: Fix comment typos.
3100         * s390/s390.h: Likewise.
3101         * s390/s390.md: Likewise.
3102
3103 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3104
3105         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
3106         (walk_tree): Use it for tail calls where appropriate.
3107
3108 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3109
3110         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
3111         non-local label_refs.
3112
3113 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3114
3115         * config/h8300/h8300.md (4 anonymous patterns): New.
3116
3117 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3118
3119         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
3120         algorithm through the shift_info structure.
3121         (emit_a_shift): Update the use of get_shift_alg.
3122
3123 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
3124
3125         * sched-rgn.c: Remove bitset typedef.
3126         Change bitset to sbitmap in prototypes / variable types.
3127         Remove bbset_size.
3128         Remove edgeset_bits.
3129         Remove edgeset_size.
3130         s/BITSET_ADD/SET_BIT/g
3131         s/BITSET_INVERT/sbitmap_ones/g
3132         s/BITSET_INTER/sbitmap_a_and_b/g
3133         s/BITSET_UNION/sbitmap_a_or_b/g
3134         s/BITSET_DIFFER/sbitmap_difference/g
3135         s/bitset_member/TEST_BIT/g
3136         (BITSET_*): Removed.
3137         (bitset_member): Removed.
3138         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
3139         EXECUTE_IF_SET_IN_SBITMAP.
3140         (split_edges): Rewrite, use sbitmap functions instead of bitset
3141         operations.
3142         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
3143
3144 2001-10-26  Andreas Schwab  <schwab@suse.de>
3145
3146         * reload1.c (emit_input_reload_insns): Fix parens in last
3147         (undocumented) change that was supposed to change only whitespace.
3148
3149 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3150
3151         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
3152
3153         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
3154         ASM_OPERANDS.
3155
3156 2001-10-26  Andreas Jaeger  <aj@suse.de>
3157
3158         * flow.c (clear_log_links): Remove unused variable.
3159         * cfgcleanup.c (cleanup_cfg): Likewise.
3160
3161 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3162
3163         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
3164         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
3165
3166 2001-10-26  Richard Henderson  <rth@redhat.com>
3167
3168         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
3169         rename PV_REG to R27_REG.
3170         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
3171         (REG_CLASS_FROM_LETTER): Update.
3172         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
3173         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
3174         (udivsi3, modsi3, umodsi3): Likewise.
3175         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
3176
3177 2001-10-26  Richard Henderson  <rth@redhat.com>
3178
3179         * cfg.c (clear_aux_for_blocks): Split out of ...
3180         (free_aux_for_blocks): here.
3181         (clear_aux_for_edges): Split from ...
3182         (free_aux_for_edges): here.
3183         * basic-block.h: Declare them.
3184         * lcm.c (compute_antinout_edge): Use them.
3185         (compute_laterin, compute_available, compute_nearerout): Likewise.
3186         (optimize_mode_switching): Likewise.
3187
3188 2001-10-26  Richard Henderson  <rth@redhat.com>
3189
3190         * Makefile.in (unstage*): Remove as, ld, collect-ld before
3191         moving everything back to the main build directory.
3192
3193 2001-10-26  Christopher Faylor  <cgf@redhat.com>
3194
3195         * config/i386/cygwin.h: Search target specific include directory, if
3196         appropriate.
3197
3198 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3199
3200         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
3201         of macro guards. Fix #endif comment.
3202
3203         * output.h (default_exception_section, default_eh_frame_section):
3204         Move prototypes outside of macro guard.
3205
3206         * crtstuff.c: Fix #endif comment.
3207
3208 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
3209
3210         * doc/md.texi (movMM): Clarify semantics of storing into a
3211         non-paradoxical SUBREG.
3212
3213 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
3214
3215         * langhooks.c (lang_hook_default_clear_binding_stack): New.
3216         (lang_hook_default_get_alias_set): Move next to other alias
3217         hooks.
3218         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
3219         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
3220         (LANG_HOOKS_INITIALIZER): Add it.
3221         * toplev.h (struct lang_hooks): Add clear_binding_stack.
3222         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
3223         instead of a loop calling poplevel.
3224
3225 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
3226
3227         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
3228         occurrences of #elif with #if...#endif.
3229
3230 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3231
3232         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
3233
3234 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3235
3236         * alias.c (can_address_p): No longer static.
3237         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
3238         Return 0 if all parameters are default values.
3239         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
3240         (adjust_address_1): Try harder to compute a size.
3241         * expr.c (expand_assignment, store_constructor): If can't address,
3242         set MEM_KEEP_ALIAS_SET_P.
3243         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
3244         (store_field): Likewise.
3245         (store_constructor): Simplify call to store_constructor_field.
3246         * expr.h (can_address_p): New declaration.
3247         * gensupport.c (gen_rtx_CONST_INT): New function.
3248         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
3249         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
3250         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
3251
3252         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
3253
3254 2001-10-24  Christopher Faylor  <cgf@redhat.com>
3255
3256         * config/i386/cygwin.h: Use proper path for mingw crt files when
3257         -mno-cygwin.
3258
3259 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3260
3261         * dwarf2out.c (file_info_cmp): Always return consistent results.
3262
3263 2001-10-24  Roger Sayle <roger@eyesopen.com>
3264
3265         * stmt.c (expand_end_case): Index jumptables from zero for
3266         suitably small values of minval.
3267
3268 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
3269
3270         * stor-layout.c (place_union_field): If any field was aligned with
3271         attribute aligned, set record type's TYPE_USER_ALIGN.
3272         (place_field): Likewise.
3273         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
3274         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
3275
3276 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
3277
3278         * c-common.h (struct c_common_identifier): Remove rid_code field.
3279         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
3280
3281         * c-typeck.c (constructor_designated): New local flag.
3282         (struct constructor_stack): Add "designated" field to match.
3283         (start_init): Clear it.
3284         (really_start_incremental_init, push_init_level): Push and
3285         clear it.
3286         (pop_init_level): Pop it.
3287         (set_designator): Set it.
3288
3289         (pop_init_level): Suppress "missing initializer" warnings if
3290         constructor_designated is true.
3291         (process_init_element): Suppress warning about union
3292         initialization under traditional C, if constructor_designated
3293         is true.
3294
3295 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3296
3297         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
3298         change.
3299
3300 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
3301
3302         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
3303
3304 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
3305
3306         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
3307         the node was already a set to a constant.
3308
3309 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3310
3311         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
3312         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
3313
3314 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3315
3316         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
3317         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
3318         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
3319         * s390.c (s390_final_chunkify): Don't use string concatenation.
3320         (s390_function_prologue, s390_function_epilogue): Const-ify.
3321         * s390.h (FUNCTION_PROFILER): Remove unused variable.
3322
3323 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
3324
3325         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
3326         prototypes.
3327
3328 2001-10-23  Stan Shebs  <shebs@apple.com>
3329
3330         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
3331         -traditional-cpp in first-stage compilation.
3332
3333 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3334
3335         * gensupport.c (target_flags): Add.
3336
3337 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
3338
3339         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
3340         if needed.
3341         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
3342         * except.c (expand_builtin_frob_return_addr): Likewise.
3343         (expand_builtin_eh_return): Likewise.
3344         * stmt.c (expand_computed_goto): Likewise.
3345         * explow.c (memory_address): Likewise.
3346         (allocate_dynamic_stack_space): Clean up predicate testing.
3347         (probe_stack_range): Convert SIZE to Pmode.
3348         * calls.c (rtx_for_function_call): Only call convert_memory_address
3349         if needed.
3350         Pass function call operand as ptr_mode, not Pmode.
3351         * expr.c (expand_assignment): Clean up calls to convert_memory
3352         address by only doing so when needed and making offsets Pmode.
3353         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
3354         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
3355         is in Pmode, not ptr_mode.
3356
3357 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3358
3359         * darwin-protos.h (constructor_section, destructor_section,
3360         mod_init_section, mod_term_section): Prototype.
3361         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
3362         Const-ify.
3363         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
3364         Likewise.
3365         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
3366         objc_section_init declaration.
3367         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
3368         (objc_section_init, try_section_alias): Make static.
3369         (alias_section): Make static and hide unused function.
3370         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
3371
3372 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3373
3374         * alias.c (can_address_p): Compnonents are not addressable if
3375         the containing type has alias set 0.
3376         (get_alias_set): Rework to use STRIP_NOPS.
3377         Only call front-end routine on object, type, or object with
3378         NOPs stripped, not inner values.
3379         Use language hook to call front-end routine.
3380         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
3381         (expand_builtin_apply): Call set_mem_align on MEMs we make.
3382         Don't pass alignment to emit_block_move.
3383         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
3384         (expand_builtin_memset): Likewise, but for clear_storage.
3385         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
3386         and remove C++ specific parts.
3387         * c-common.h (c_common_get_alias_set): Add declaration.
3388         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
3389         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
3390         (save_fixed_argument_area): Call set_mem_align.
3391         Remove alignment in call to emit_block_move.
3392         (emit_library_call_value_1, store_one_arg): Likewise.
3393         (target_for_arg): Remove; disabled long ago.
3394         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
3395         once and similar cleanups.
3396         (offset_address): Use proper introductory comment.
3397         * expr.c (emit_block_move): Use alignment from that of MEM args, not
3398         from explicit operand; all callers changed.
3399         (clear_storage): Likewise.
3400         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
3401         (store_field): Remove kludge on alias set used for to_rtx.
3402         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
3403         (expand_expr_unaligned): Call set_mem_attributes instead of
3404         set_mem_alias_set.
3405         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
3406         * function.c (assign_stack_temp_for_type): Set MEM alignment.
3407         (expand_function_end): Track MEM attributes of trampolines.
3408         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
3409         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
3410         attributes from original.
3411         * langhooks.c (lang_hook_default_get_alias_set): New function.
3412         (hook_get_alias_set_0): New function.
3413         * langhooks.h (hook_get_alias_set_0): New declaration.
3414         (lang_hook_default_get_alias_set): Likewise.
3415         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
3416         * reload1.c (alter_reg): Use adjust_address_nv.
3417         * rtl.c (get_mode_alignment): Moved to here.
3418         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
3419         change default if unknown from 1 to BITS_PER_UNIT.
3420         * stor-layout.c (get_mode_alignment): Remove from here.
3421         * toplev.h (struct lang_hoks): Add get_alias_set field.
3422         * tree.h (lang_get_alias_set): Delete declaration.
3423         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
3424         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
3425         (ix86_va_arg): Likewise.
3426         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
3427         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3428         * config/sparc/sparc.c (sparc_va_arg): Likewise.
3429         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
3430         (expand_block_move_mem): Remove dead code.
3431
3432 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3433
3434         * c-common.c (warn_div_by_zero): New.
3435         * c-common.h (warn_div_by_zero): New.
3436         * c-decl.c (c_decode_option): Take it on the command line.
3437         * c-typeck.c (build_binary_op): Warn about division by zero.
3438         * doc/invoke.texi: Document the new command line option, fix
3439         documentation of -Wmultichar.
3440         * testsuite/gcc.dg/divbyzero.c: New tests.
3441         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
3442
3443 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
3444
3445         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
3446
3447         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
3448         to avoid update_life_info call.
3449         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
3450         * cfgcleanup.c (bb_flags): New enum.
3451         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
3452         (notice_new_block, update_forwarder_flag): New functions.
3453         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
3454         (try_forward_edges): Likewise; update flags.
3455         (merge_blocks): Likewise.
3456         (outgoing_edges_match): Likewise.
3457         (try_crossjump_to_edge): Likewise.
3458         (try_optimize_cfg): Likewise; initialize and clear the flags;
3459         recompute life info if needed.
3460         (cleanup_cfg): No need to clear aux pointers.
3461
3462 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
3463
3464         * config/i386/i386.c (override_options): Default to minimum
3465         stack alignment when optimizing for code size.
3466         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
3467         change.
3468
3469         * config/i386/i386.c (override_options): Set upper limit of
3470         -mpreferred-stack-boundary to 12.
3471
3472 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
3473
3474         * recog.c (peephole2_optimize): Add default case to switch.
3475
3476 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
3477
3478         * doc/gcc.texi (Sending Patches): Remove.
3479
3480 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
3481
3482         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
3483         fields when comparing.
3484
3485 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3486
3487         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
3488         * arm.c (HOST_INT, HOST_UINT): Likewise.
3489
3490 2001-10-22  Stan Shebs  <shebs@apple.com>
3491
3492         * config/darwin-protos.h (darwin_exception_section): Declare.
3493         (darwin_eh_frame_section): Declare.
3494
3495 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
3496
3497         * i386.md (movti_rex64): Fix mode.
3498
3499 2001-10-22  Stan Shebs  <shebs@apple.com>
3500
3501         * target.h (struct gcc_target): Add asm_out.exception_section,
3502         asm_out.eh_frame_section.
3503         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
3504         (TARGET_ASM_EH_FRAME_SECTION): New.
3505         (TARGET_INITIALIZER): Update.
3506         * output.h (default_exception_section): Declare.
3507         (default_eh_frame_section): Declare.
3508         * dwarf2out.c: Include target.h.
3509         (output_call_frame_info): Call target hook for eh frames.
3510         (default_eh_frame_section): New function.
3511         * except.c: Include target.h.
3512         (output_function_exception_table): Call target hook for exception
3513         section.
3514         * varasm.c (default_exception_section): Rename from
3515         exception_section, remove EXCEPTION_SECTION macro.
3516
3517         * config/darwin.h (darwin_eh_frame_section): New function.
3518         (EXCEPTION_SECTION): Remove.
3519         (TARGET_ASM_EXCEPTION_SECTION): Define.
3520         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
3521         (nextstep_exception_section): New function.
3522         (nextstep_eh_frame_section): New function.
3523         (TARGET_ASM_EXCEPTION_SECTION): Define.
3524         (TARGET_ASM_EH_FRAME_SECTION): Define.
3525
3526         * config/pa/som.h (EXCEPTION_SECTION): Remove.
3527         (TARGET_ASM_EXCEPTION_SECTION): Define.
3528         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
3529         (EXCEPTION_SECTION): Remove.
3530         (TARGET_ASM_EXCEPTION_SECTION): Define.
3531         * config/stormy16/stormy16.h: Remove comments referencing
3532         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
3533
3534         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
3535         TARGET_ASM_EH_FRAME_SECTION.
3536
3537 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
3538
3539         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
3540         terms.
3541
3542         * c-format.c: Fix spelling typo in comment.
3543
3544         * sched-int.h: Fix typo in GCC preamble.
3545
3546 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3547
3548         PR debug/4252
3549         * doc/invoke.texi: Remove references to -fdump-translation-unit.
3550
3551 2001-10-22  Richard Henderson  <rth@redhat.com>
3552
3553         * config/i386/i386.c (ix86_expand_clear): New.
3554         * config/i386/i386-protos.h: Declare it.
3555         * config/i386/i386.md (setcc peep2s): Use it.
3556         (movsi_xor): Unexport.
3557
3558 2001-10-22  Richard Henderson  <rth@redhat.com>
3559
3560         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
3561         free_EXPR_LIST_list for LOG_LINKS.
3562
3563 2001-10-21  Robert Lipe  <robertlipe@usa.net>
3564
3565         * config/i386/i386.c (sco_asm_named_section): Delete.
3566         (sco_asm_out_constructor): Delete.
3567         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
3568         (ASM_OUTPUT_DOUBLE_INT): Likewise.
3569         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
3570         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
3571         (EXCEPTION_SECTION): Delete EH scn renaming hack.
3572
3573 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3574
3575         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
3576         and/or fold extra calls into fewer ones.
3577         * collect2.c (dump_file): Likewise.
3578         * cppexp.c (parse_number): Likewise.
3579         * cpplex.c (_cpp_lex_direct): Likewise.
3580         * final.c (output_asm_insn, asm_fprintf): Likewise.
3581         * fix-header.c (inf_scan_ident, main): Likewise.
3582         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
3583         Likewise.
3584         * fold-const.c (real_hex_to_f): Likewise.
3585         * gen-protos.c (parse_fn_proto): Likewise.
3586         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
3587         * genrecog.c (change_state, write_action): Likewise.
3588         * gensupport.c (shift_output_template): Likewise.
3589         * local-alloc.c (requires_inout): Likewise.
3590         * mips-tfile.c (IS_ASM_IDENT): Likewise.
3591         * protoize.c (is_id_char, main): Likewise.
3592         * real.c (asctoeg): Likewise.
3593         * recog.c (asm_operand_ok): Likewise.
3594         * reload.c (find_reloads): Likewise.
3595         * scan.c (scan_identget_token): Likewise.
3596         * sched-vis.c (print_value): Likewise.
3597         * stringpool.c (ggc_alloc_string): Likewise.
3598         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
3599         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
3600         * tradcpp.c (rescan): Likewise.
3601         * tree.c (clean_symbol_name): Likewise.
3602         * varasm.c (decode_reg_name): Likewise.
3603
3604         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
3605         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
3606         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
3607         * m88k.c (output_ascii): Likewise.
3608         * m88k.h (OVERRIDE_OPTIONS): Likewise.
3609         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
3610         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
3611         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
3612
3613 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3614
3615         * langhooks.c (lang_hook_default_do_nothing,
3616         lang_hook_default_decode_option): New defaults.
3617         * langhooks.h: Make hooks unconditional and non-NULL.
3618         * toplev.c (compile_file, toplev_main): Update.
3619         * toplev.h: Update comments.
3620         * objc/objc-act.c (lang_hooks): Update to new paradigm.
3621
3622 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3623
3624         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
3625
3626         * system.h (IN_RANGE): New macro.
3627
3628 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
3629
3630         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
3631         INTLDEPS variable, which does not include $LIBICONV.
3632         * Makefile.in: Use INTLDEPS in LIBDEPS.
3633         * configure: Regenerate.
3634
3635 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3636
3637         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
3638         * cpplex.c (lex_percent, lex_dot): Remove.
3639         (get_effective_char, skip_block_comment, skip_line_comment,
3640         parse_identifier_slow, parse_number, parse_string, save_comment,
3641         _cpp_lex_direct): Update to do lookback freely.
3642         (IF_NEXT_IS, BACKUP): New macros.
3643         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
3644         * cppmacro.c (paste_tokens): Update.
3645
3646 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
3647
3648         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
3649
3650 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
3651
3652         * reload1.c (reload): Check CONSTANT_P before calling
3653         LEGITIMATE_PIC_OPERAND_P.
3654         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
3655         workaround of 2001-10-13.
3656
3657 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
3658
3659         * i386.c (split_di): Handle splitting of DFmode.
3660
3661 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3662
3663         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
3664         (adjust_address_1, offset_address): Likewise.
3665
3666         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
3667         (output_asm_insn): Call it for each line output.
3668         Don't record an operand more than once.
3669
3670         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
3671         * main.c: Include config.h and system.h, but not ansidecl.h.
3672         * Makefile.in (main.o): Update accordingly.
3673
3674 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
3675
3676         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
3677
3678 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
3679
3680         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
3681         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
3682         Break out from ...
3683         (find_sub_basic_blocks): ... here;
3684         (find_many_sub_basic_blocks): New.
3685         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
3686
3687         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
3688
3689         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
3690
3691         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
3692
3693         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
3694         * flow.c (update_life_info): Measure time.
3695         * c-decl.c: Include timevar.h
3696         (c_expand_body): Measure time.
3697         * toplev.c (rest_of_compilation): Measure time of mode switching
3698         separately.
3699         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
3700
3701         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
3702         (lang_independent_options): Add asynchronous-unwind-tables
3703         (toplev_main): flag_asynchronous_unwind_tables implies
3704         flag_unwind_tables.
3705         * flags.h (flag_asynchronous_unwind_tables): Declare.
3706         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
3707         flag_asynchronous_unwind_tables.
3708         (output_call_frame_info): Likewise.
3709         * invoke.texi (-fasynchronous-unwind-tables): Document.
3710         * i386.c (optimization_options): Enable
3711         flag_asynchronous_unwind_tables.
3712
3713         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
3714         * i386.md (s* expanders): Destination is QImode.
3715
3716         * toplev.c (rest_of_compilation): Do not call clear_log_links.
3717         * rtl.h (clear_log_links): Kill.
3718         * flow.c (clear_log_links): Make static; accept blocks parameter;
3719         do no clear life info.
3720         (update_life_info): Call clear_log_links.
3721
3722         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
3723
3724 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3725
3726         * cpplex.c (handle_newline, skip_escaped_newlines,
3727         get_effective_char, skip_block_comment, skip_line_comment,
3728         parse_identifier_slow, parse_number, parse_string,
3729         _cpp_lex_direct): Update to do more stepping back.
3730         (trigraph_ok): Similarly.  Rename trigraph_p.
3731         (SAVE_STATE, RESTORE_STATE): Remove.
3732         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
3733
3734         * cpplib.c (destringize): Rename destringize_and_run, and
3735         call run_directive directly.
3736         (_cpp_do__Pragma): Simplify.
3737
3738 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3739
3740         * pe.c (arm_pe_unique_section): Const-ify.
3741         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
3742         (switch_to_section): Add static prototype.
3743
3744         * output.h (drectve_section): Prototype.
3745
3746 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3747
3748         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
3749         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
3750         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
3751         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
3752         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3753         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
3754         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
3755         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
3756         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
3757         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
3758         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
3759         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
3760         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
3761         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
3762         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
3763         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
3764         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
3765         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
3766         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
3767         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
3768         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
3769         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
3770         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
3771         cris-*-none, cris-*-linux*: Update ${tmfile} list.
3772         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
3773         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
3774         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
3775         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
3776         v850-*-*): Delete superflous ${cpu_type} setting.
3777         * config/linux.h: Delete svr4.h include.
3778         (SET_ASM_OP): Delete.
3779         * config/netware.h (INT_ASM_OP): Undef before define.
3780         * config/ptx4.h: Delete elfos.h include.
3781         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
3782         * config/svr4.h: Delete elfos.h include. Update commentary.
3783         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
3784         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
3785         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
3786         config/v850/v850.h: Delete svr4.h include.
3787         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
3788         config/m68k/m68kv4.h, config/m88k/sysv4.h,
3789         config/sparc/sysv4.h: Update includes.
3790         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
3791         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
3792         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
3793         config/m88k/dguxbcs.h: Delete includes.
3794         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
3795         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
3796         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
3797         it.
3798         * config/m88k/dgux.h: Delete include.
3799         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
3800         defining it.
3801         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
3802         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
3803         * config/sh/elf.h: Update include.
3804         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
3805         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
3806
3807 2001-10-19  Catherine Moore  <clm@redhat.com>
3808
3809         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
3810         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
3811         base and count fields.
3812         (stormy16_expand_builtin_va_start):  last_reg_count changed to
3813         size_of_reg_args.  Use count + size in first comparison.
3814
3815 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3816
3817         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
3818         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
3819         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
3820         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
3821         Set alignment from type if INDIRECT_REF.
3822         (adjust_address_1, offset_address): Simplify alignment compuitation.
3823         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
3824         here; done by set_mem_attributes.
3825
3826 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3827
3828         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
3829         * arm-protos.h (rdata_section, zero_init_section, common_section):
3830         Prototype.
3831         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
3832         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
3833         traditional mode stringification.
3834         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
3835         in macros controling its use.
3836         * rtlanal.c: Include tm_p.h.
3837         * varasm.c (asm_output_aligned_bss): Mark parameter with
3838         ATTRIBUTE_UNUSED.
3839         (assemble_constant_align, assemble_start_function, assemble_align,
3840         assemble_variable, assemble_trampoline_template,
3841         output_constant_def_contents): Wrap potentially empty if-stmt body
3842         in brackets.
3843
3844 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3845
3846         * a29k-protos.h (literal_section): Prototype.
3847         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
3848         * a29k.md: Ensure function pointers are prototyped.
3849         * genattrtab.c (write_eligible_delay): Mark parameter with
3850         ATTRIBUTE_UNUSED.
3851
3852 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3853
3854         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
3855         * 1750a.c (print_operand): Fix format specifier warning.
3856         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
3857         * 1750a.md: Likewise.
3858         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
3859         * genemit.c (output_add_clobbers): Mark parameter with
3860         ATTRIBUTE_UNUSED.
3861         * genrecog.c (write_subroutine): Likewise.
3862         * integrate.c (expand_inline_function): Delete unused variable.
3863         * varasm.c (remove_from_pending_weak_list): Wrap with
3864         ASM_WEAKEN_LABEL.
3865
3866 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
3867
3868         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
3869         field is different to previous argument's neg field.
3870
3871         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
3872
3873 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3874
3875         * final.c (get_decl_from_op): New function.
3876         (output_asm_insn): Call it; write "*" when item with decl is address.
3877
3878 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
3879
3880         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
3881         about 64-bit support from the 3.0_branch version.
3882
3883 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
3884
3885         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
3886         USE_INCLUDED_LIBINTL when appropriate.
3887         * configure, config.in: Regenerate.
3888         * Makefile.in (datadir): Set to @datadir@.
3889         (intl.o): Also depend on $(CONFIG_H) and system.h.
3890
3891         * intl.c: Factor out common gettext initialization sequence.
3892         (gcc_init_libintl):  New function.
3893         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
3894         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
3895         off NLS.  Add multiple include guard.  No need to #ifdef-guard
3896         an #undef.  Prototype gcc_init_libintl here.
3897
3898         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
3899         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
3900         Use gcc_init_libintl.
3901
3902 2001-10-19  Catherine Moore  <clm@redhat.com>
3903
3904         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
3905
3906         * config/stormy16/stormy16.c (stormy16_split_move):  Make
3907         sure that REG_INC notes are present for auto_inc operands.
3908
3909 2001-10-19  Andreas Jaeger  <aj@suse.de>
3910
3911         * configure: Regenerated.
3912         * configure.in: Add x86_64 to switch statements.
3913
3914 2001-10-18  Richard Henderson  <rth@redhat.com>
3915
3916         * config/alpha/alpha.md (sibcall_osf_1): Load destination
3917         address into $27 explicitly.
3918         (sibcall_value_osf_1): Likewise.
3919
3920 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3921
3922         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
3923         (offset_address): New function.
3924         (free_emit_status): Free regno_decl.
3925         (init_emit): Pass proper number of elements to xcalloc.
3926         Allocate regno_decl.
3927         (mark_emit_status): Mark regno_decl values.
3928         * expr.c (highest_pow2_factor): New function.
3929         (expand_assigment): Use it and offset_address.
3930         Properly handle ptr_mode vs. Pmode in offset calculation.
3931         (store_constructor, expand_expr_unaligned): Likewise.
3932         (expand_expr, case COMPONENT_EXPR): Likewise.
3933         * expr.h (offset_address): New decl.
3934         * function.h (struct emit_status): Add regno_decl.
3935         (REGNO_DECL): New macro.
3936         * final.c (output_asm_name): Move in file and don't conditionalize
3937         on flag_print_asm_name.
3938         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
3939         Output names of operands, if known.
3940         * function.c (assign_parms): Set REGNO_DECL.
3941         * integrate.c (integrate_decl_tree): Likewise.
3942         * stmt.c (expand_decl): Likewise.
3943         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
3944
3945 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
3946
3947         * attribs.c (handle_noinline_attribute): New function.
3948         (handle_used_attribute): Likewise.
3949         (c_common_attribute_table): Added noinline and used.
3950         * doc/extend.texi (Function Attributes): Document them.
3951         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
3952         Warn when merging inline with attribute noinline.
3953         (start_decl, start_function): Warn if inline and attribute
3954         noinline appear in the same declaration.
3955
3956 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3957
3958         * config.gcc: Update c4x and i370 for C front end-specific
3959         dependencies.
3960         * config/c4x/c4x-c.c: New.
3961         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
3962         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
3963         New declarations.
3964         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
3965         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
3966         Make extern.
3967         (c4x_init_pragma): Remove.
3968         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
3969         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
3970         c4x_pr_ignored): Move to c4x-c.c.
3971         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
3972         * config/c4x/t-c4x: Update.
3973         * config/i370/i370-c.c: New.
3974         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
3975         (i370_pr_map): Move to i370-c.c.
3976         * config/i370/t-i370: New.
3977
3978         * doc/tm.texi: Update.
3979
3980 2001-10-17  Stan Shebs  <shebs@apple.com>
3981
3982         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
3983         typo fixes throughout.
3984         (machopic_output_stub): Remove some dead code.
3985
3986 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
3987
3988         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
3989         leak.
3990
3991 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3992
3993         * Makefile.in (print-rtl.o): Depend on TREE_H.
3994         * alias.c (get_alias_set): Make two passes over objects to first
3995         see if inner object is access via restricted pointer.
3996         Defer allocating alias set for restricted pointer until here.
3997         Call find_placeholder with second arg nonzero.
3998         Minor cleanups.
3999         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
4000         set for restricted pointer types.
4001         * emit-rtl.c (set_mem_attributes): Set more attributes.
4002         (set_mem_align, change_address, adjust_address_1): New functions.
4003         (change_address_1): Now static.
4004         (adjust_address, adjust_address_nv): Deleted.
4005         (replace_equiv_address): Call change_address_1.
4006         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
4007         (find_placeholder): Get starting point from PLIST arg.
4008         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
4009         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
4010         (adjust_address, adjust_address_nv): New macros.
4011         * print-rtl.c (tree.h): New include.
4012         (print_rtx, case MEM): Print all memory attributes.
4013
4014 2001-10-17  Richard Henderson  <rth@redhat.com>
4015
4016         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
4017
4018 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4019
4020         * c-tree.texi: Eliminate duplicated word.
4021         * cpp.texi: Likewise.
4022         * install.texi: Likewise.
4023         * invoke.texi: Likewise.
4024         * tm.texi: Likewise.
4025
4026 2001-10-17  Michael Collison  <collison@isisinc.net>
4027
4028         * dsp16xx.c: Fix comment formatting to match GNU standards.
4029         (dsp16xx_output_function_prologue): Change type of 'size'
4030         parameter from 'int' to HOST_WIDE_INT.
4031         (dsp16xx_output_function_epilogue): Change type of 'size'
4032         parameter from 'int' to HOST_WIDE_INT.
4033
4034 2001-10-16  Richard Henderson  <rth@redhat.com>
4035
4036         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
4037         * configure, config.in: Rebuild.
4038
4039         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
4040         (ix86_output_addr_diff_elt): New.
4041         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
4042         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4043         (JUMP_TABLES_IN_TEXT_SECTION): New.
4044         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
4045         * config/i386/i386-protos.h: Update.
4046
4047         * config/i386/386bsd.h, config/i386/beos-elf.h,
4048         config/i386/freebsd-aout.h, config/i386/freebsd.h,
4049         config/i386/i386-interix.h, config/i386/i386elf.h,
4050         config/i386/linux.h, config/i386/netbsd-elf.h,
4051         config/i386/netbsd.h, config/i386/openbsd.h,
4052         config/i386/ptx4-i.h, config/i386/rtemself.h,
4053         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
4054         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
4055
4056 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
4057
4058         * stmt.c (expand_asm_operands): Update commentary.
4059
4060 2001-10-16  Stan Shebs  <shebs@apple.com>
4061
4062         * config/darwin.h (GCC_NAME): Remove, no longer used.
4063         (NO_MATH_LIBRARY): Ditto.
4064         (MATH_LIBRARY): Define to emptiness.
4065         (DWARF2_DEBUGGING_INFO): Define.
4066         (PREFERRED_DEBUGGING_TYPE): Define.
4067         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
4068         (EXCEPTION_SECTION): Define.
4069         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4070         * config/darwin.c (darwin_encode_section_info): Handle case of
4071         DECL_INITIAL being error_mark_node.
4072
4073 2001-10-16  Richard Henderson  <rth@redhat.com>
4074
4075         * alpha.c (current_file_function_operand): Don't fail for profiling.
4076         (direct_call_operand): New.
4077         * alpha-protos.h: Declare it.
4078         * alpha.h (EXTRA_CONSTRAINT): Use it.
4079         (PREDICATE_CODES): Add it.
4080         (ASM_OUTPUT_MI_THUNK): Remove.
4081         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
4082         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
4083
4084 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
4085
4086         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
4087         (JUMP_TABLES_IN_TEXT_SECTION): Define.
4088
4089 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
4090
4091         * cfg.c (free_edge): Break out from ....
4092         (remove_edge): ... here.
4093         (clear_edges): Use free_edge.
4094
4095         * att.h (ASM_QUAD): Add comment.
4096         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
4097
4098 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
4099
4100         * i386.c (split_ti): New function.
4101         (ix86_split_to_parts): Support TImodes.
4102         * i386.h (VALID_INT_MODE_P): Add TImode.
4103         * i386.md (movdi splitter): Fix.
4104         (movti): Support 64bit integer registers.
4105         (movti_rex64): New function and splitter.
4106
4107         * i386.c (*_cost): Add movsx/movzx cost.
4108         * i386.h (struct processor_costs): Add movsx/movzx fields.
4109         (RTX_COSTS): Handle zero/sign extend + avoid believing that
4110         64bit operations require split on 64bit machine.
4111         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
4112
4113         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
4114         (ix86_expand_move): Avoid pushes of memory if size does not match;
4115         move long constants to register.
4116         (x86_initialize_trampoline): Fix mode.
4117         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
4118         Use ASM_QUAD on 64bit.
4119         * i386.md (test pattern): Disallow impossible constants.
4120         (tablejump PIC expander): Fix emitting of sum.
4121         (movdicc_rex64): Rename to movdicc.
4122         * linux64.h (LINK_SPEC): Add missing '%'.
4123
4124 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
4125
4126         * tree-inline.c (inlinable_function_p): Leave it up to the
4127         front-end to turn -finline-functions into DECL_INLINE set for all
4128         functions.
4129
4130 2001-10-16  Stan Shebs  <shebs@apple.com>
4131
4132         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
4133
4134 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
4135
4136         * recog.c: Formatting and comment typo fixes.
4137
4138         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
4139         version in single tree build.
4140         * configure: Regenerate.
4141
4142 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
4143
4144         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
4145         MODE arguments to gen_rtx and compare operand with const0_rtx.
4146
4147 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4148
4149         * system.h: Poison old unused target macros.
4150         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
4151         * config/stormy16/stormy16.c: Update references to obsolete macros.
4152         * config/stormy16/stormy16.h: Similarly.
4153         * config/stormy16/stormy16.md: Similarly.
4154         * config/cris/cris.h: Similarly.
4155
4156 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4157
4158         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
4159         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
4160         cpp_register_pragma): Update accordingly.
4161
4162 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
4163
4164         * c-pragma.h (cpp_register_pragma_space): Remove.
4165         * cpplib.h (cpp_register_pragma_space): Remove.
4166         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
4167         (cpp_register_pragma_space): Remove.
4168         (cpp_register_pragma): Simplify using lookup_pragma_entry,
4169         add sanity checks.
4170         (do_pragma): Similarly.
4171         (_cpp_init_internal_pragmas): Don't register namespaces.
4172
4173         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
4174         Don't register namespaces.
4175         * cp/lex.c (init_cp_pragma): Similarly.
4176         * doc/tm.texi: Update.
4177
4178 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4179
4180         PR c/4157
4181         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
4182
4183 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
4184
4185         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
4186         add scheduling support.
4187         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
4188         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
4189         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
4190
4191
4192 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
4193
4194         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
4195         missing CONSTANT_P test in core GCC.
4196
4197 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
4198
4199         * cppmain.c (struct printer): New member source.
4200         (scan_translation_unit): Fix spacing at start of lines.
4201         (cb_line_change): Update.
4202
4203         * gcc.dg/cpp/spacing2.c: New test.
4204
4205 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
4206
4207         * config/cris/arit.c: Use __builtin_labs, not abs.
4208
4209         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
4210
4211         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
4212         misplaced sprintf and fprintf argument.
4213
4214 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
4215
4216         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
4217         * configure.in, Makefile.in: Take out obsolete check-po logic.
4218         * configure, config.in: Regenerate.
4219
4220 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
4221
4222         * objc/objc-act.c (finish_objc): Correct precondition for emitting
4223         symtab declarations.
4224
4225 2001-10-12  Stan Shebs  <shebs@apple.com>
4226
4227         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
4228         declarations of arguments and local variables.
4229
4230 2001-10-12  Christopher Faylor  <cgf@redhat.com>
4231
4232         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
4233         ENDFILE_SPEC definition.
4234
4235 2001-10-12  Kazu Hirata  <kazu@hxi.com>
4236
4237         * gthr-dce.h: Fix comment formatting.
4238         * gthr-posix.h: Likewise.
4239         * gthr-single.h: Likewise.
4240         * gthr-solaris.h: Likewise.
4241         * gthr-vxworks.h: Likewise.
4242         * gthr-win32.h: Likewise.
4243
4244 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
4245
4246         * final.c (output_asm_insn): Make sure assembly dialects are
4247         terminated, not nested.  Output `|' and `}' characters if they
4248         don't appear inside assembly dialect selection.
4249         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
4250         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
4251         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
4252         strsetsi_rex_1): Add {} braces.
4253
4254 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
4255
4256         * toplev.c (compile_file): Ignore return value from yyparse.
4257         Always pop any nested binding levels after yyparse returns.
4258
4259 2001-10-11  Richard Henderson  <rth@redhat.com>
4260
4261         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
4262
4263 2001-10-11  Richard Henderson  <rth@redhat.com>
4264
4265         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
4266         fall back to add_AT_long_long for large CONST_INT.
4267
4268 2001-10-11  Richard Henderson  <rth@redhat.com>
4269
4270         * config/i386/i386.md (setcc splitters): Add four splitters to
4271         simplify compound compares that simplify_comparison can't handle.
4272
4273 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
4274
4275         * cpplex.c (digraph_spellings, token_spellings): Make static.
4276
4277 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4278
4279         * unroll.c (loop_iterations): Fixup last patch.
4280
4281 2001-10-11  Richard Henderson  <rth@redhat.com>
4282
4283         * rtl.h (REG_VTABLE_REF): New.
4284         * rtl.c (reg_note_name): Add it.
4285         * combine.c (distribute_notes): Handle it.
4286         * final.c (final_scan_insn): Handle it.
4287         * tree.def (VTABLE_REF): New.
4288         * expr.c (expand_expr): Handle it.
4289         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
4290         * output.h: Declare them.
4291
4292 2001-10-11  Richard Henderson  <rth@redhat.com>
4293
4294         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
4295         for a DECL_INITIAL.
4296
4297 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
4298
4299         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
4300         available in 64-bit mode.
4301
4302 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
4303
4304         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
4305         cris-*-linux* cases.
4306         * config/cris/cris-protos.h: New file.
4307         * config/cris/cris.c: New file.
4308         * config/cris/cris.h: New file.
4309         * config/cris/cris.md: New file.
4310         * config/cris/linux.h: New file.
4311         * config/cris/aout.h: New file.
4312         * config/cris/arit.c: New file.
4313         * config/cris/cris_abi_symbol.c: New file.
4314         * config/cris/mulsi3.asm: New file.
4315         * config/cris/t-aout: New file.
4316         * config/cris/t-cris: New file.
4317         * config/cris/t-elfmulti: New file.
4318         * config/cris/t-linux: New file.
4319         * doc/invoke.texi: Add CRIS options.
4320         * doc/install.texi (Specific): Add blurb for CRIS.
4321
4322 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
4323
4324         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
4325         before using it.
4326         * config/float/i32.h: Likewise.
4327         * config/float-i386.h: Likewise.
4328         * config/float-i64.h: Likewise.
4329         * config/float-m68k.h: Likewise.
4330         * config/float-sh.h: Likewise.
4331         * config/float-sparc.h: Likewise.
4332
4333 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
4334
4335         * doc/contrib.texi: Add note about CRIS port to my entry.
4336
4337 2001-10-11  Kazu Hirata  <kazu@hxi.com>
4338
4339         * basic-block.h: Fix formatting.
4340         * bitmap.h: Likewise.
4341         * cpplib.h: Likewise.
4342         * c-tree.h: Likewise.
4343         * diagnostic.h: Likewise.
4344         * flags.h: Likewise.
4345         * ggc.h: Likewise.
4346         * longlong.h: Likewise.
4347         * real.h: Likewise.
4348         * reload.h: Likewise.
4349         * rtl.h: Likewise.
4350         * tree.h: Likewise.
4351
4352 2001-10-10  Richard Henderson  <rth@redhat.com>
4353
4354         * c-parse.in (asm_operand): Allow named operands.
4355         * genconfig.c (max_recog_operands): Set to 29.
4356         * local-alloc.c (requires_inout): Skip multiple digits.
4357         * recog.c (asm_operand_ok): Likewise.
4358         (preprocess_constraints): Use strtoul for matching constraints.
4359         (constrain_operands): Likewise.
4360         * regmove.c (find_matches): Likewise.
4361         * reload.c (find_reloads): Likewise.
4362         * stmt.c (parse_output_constraint): Don't reject in-out
4363         constraint on operands > 9.  Reject '[' in constraint.
4364         (expand_asm_operands): Handle named operands.  Use strtoul
4365         for matching constraints.
4366         (check_operand_nalternatives): Split out from expand_asm_operands.
4367         (check_unique_operand_names): New.
4368         (resolve_operand_names, resolve_operand_name_1): New.
4369
4370         * doc/extend.texi (Extended Asm): Document named operands.
4371         * doc/md.texi (Simple Constraints): Document matching constraints
4372         on operands > 9.
4373
4374 2001-10-10  Richard Henderson  <rth@redhat.com>
4375
4376         * combine.c (try_combine): Handle a SEQUENCE of one insn.
4377
4378         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
4379         (jcc splitters): Add two splitters to simplify compound compares
4380         that simplify_comparison can't handle.
4381
4382 2001-10-10  Richard Henderson  <rth@redhat.com>
4383
4384         * langhooks.c: Include langhooks.h.
4385         * Makefile.in (langhooks.o): Depend on it.
4386
4387 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
4388
4389         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
4390         should not be considered as a no-op.
4391         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
4392
4393 2001-10-10  Stan Shebs  <shebs@apple.com>
4394
4395         * alias.c: Remove uses of "register" specifier in declarations
4396         of arguments and local variables.
4397         * c-common.c: Ditto.
4398         * c-convert.c: Ditto.
4399         * c-decl.c: Ditto.
4400         * c-format.c: Ditto.
4401         * c-semantics.c: Ditto.
4402         * c-typeck.c: Ditto.
4403         * caller-save.c: Ditto.
4404         * calls.c: Ditto.
4405         * cfg.c: Ditto.
4406         * cfgbuild.c: Ditto.
4407         * cfgrtl.c: Ditto.
4408         * collect2.c: Ditto.
4409         * combine.c: Ditto.
4410         * convert.c: Ditto.
4411         * cppexp.c: Ditto.
4412         * cppfiles.c: Ditto.
4413         * cse.c: Ditto.
4414         * dbxout.c: Ditto.
4415         * defaults.h: Ditto.
4416         * df.c: Ditto.
4417         * dwarf2out.c: Ditto.
4418         * dwarfout.c: Ditto.
4419         * emit-rtl.c: Ditto.
4420         * explow.c: Ditto.
4421         * expmed.c: Ditto.
4422         * expr.c: Ditto.
4423         * final.c: Ditto.
4424         * fix-header.c: Ditto.
4425         * floatlib.c: Ditto.
4426         * flow.c: Ditto.
4427         * fold-const.c: Ditto.
4428         * function.c: Ditto.
4429         * gcc.c: Ditto.
4430         * gcse.c: Ditto.
4431         * gen-protos.c: Ditto.
4432         * genattrtab.c: Ditto.
4433         * gencheck.c: Ditto.
4434         * genconfig.c: Ditto.
4435         * genemit.c: Ditto.
4436         * genextract.c: Ditto.
4437         * genflags.c: Ditto.
4438         * gengenrtl.c: Ditto.
4439         * genoutput.c: Ditto.
4440         * genpeep.c: Ditto.
4441         * genrecog.c: Ditto.
4442         * gensupport.c: Ditto.
4443         * global.c: Ditto.
4444         * gmon.c: Ditto.
4445         * graph.c: Ditto.
4446         * haifa-sched.c: Ditto.
4447         * hard-reg-set.h: Ditto.
4448         * hash.c: Ditto.
4449         * integrate.c: Ditto.
4450         * jump.c: Ditto.
4451         * lists.c: Ditto.
4452         * local-alloc.c: Ditto.
4453         * loop.c: Ditto.
4454         * mips-tdump.c: Ditto.
4455         * mips-tfile.c: Ditto.
4456         * optabs.c: Ditto.
4457         * prefix.c: Ditto.
4458         * print-rtl.c: Ditto.
4459         * read-rtl.c: Ditto.
4460         * real.c: Ditto.
4461         * recog.c: Ditto.
4462         * reg-stack.c: Ditto.
4463         * regclass.c: Ditto.
4464         * regmove.c: Ditto.
4465         * reload.c: Ditto.
4466         * reload1.c: Ditto.
4467         * reorg.c: Ditto.
4468         * resource.c: Ditto.
4469         * rtl.c: Ditto.
4470         * rtlanal.c: Ditto.
4471         * scan.c: Ditto.
4472         * sched-deps.c: Ditto.
4473         * sched-rgn.c: Ditto.
4474         * sdbout.c: Ditto.
4475         * simplify-rtx.c: Ditto.
4476         * stmt.c: Ditto.
4477         * stor-layout.c: Ditto.
4478         * toplev.c: Ditto.
4479         * tradcif.y: Ditto.
4480         * tradcpp.c: Ditto.
4481         * tree.c: Ditto.
4482         * unroll.c: Ditto.
4483         * varasm.c: Ditto.
4484         * xcoffout.c: Ditto.
4485
4486 2001-10-10  Richard Henderson  <rth@redhat.com>
4487
4488         * rtl.h (can_reverse_comparison_p): Remove.
4489
4490 2001-10-10  Christopher Faylor <cgf@redhat.com>
4491
4492         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
4493         used.
4494
4495 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4496
4497         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
4498         (Thanks to Chris Faylor for suggesting macro name).
4499         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
4500         WIN32 defines.
4501         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
4502         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
4503         (MATH_LIBRARY): Undef before definition.
4504         (OUTPUT_QUOTED_STRING): Likewise.
4505         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
4506
4507 2001-10-10  Richard Henderson  <rth@redhat.com>
4508
4509         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
4510         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
4511         a tristate comparison value.
4512         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
4513
4514 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4515
4516         PR c++/4512
4517         * unroll.c (loop_iterations): Ignore insns generated by loop
4518         unrolling.
4519
4520         * config.gcc (mips*-*-gnu*): Delete support.
4521         * config/mips/gnu.h: Remove.
4522
4523 2001-10-10  Kazu Hirata  <kazu@hxi.com>
4524
4525         * calls.c: Fix formatting.
4526         * c-decl.c: Likewise.
4527         * cfgcleanup.c: Likewise.
4528         * combine.c: Likewise.
4529         * cppfiles.c: Likewise.
4530         * cpplib.c: Likewise.
4531         * cppmacro.c: Likewise.
4532         * crtstuff.c: Likewise.
4533         * cse.c: Likewise.
4534         * dwarf2out.c: Likewise.
4535         * expmed.c: Likewise.
4536         * expr.c: Likewise.
4537         * fold-const.c: Likewise.
4538         * function.c: Likewise.
4539         * gcse.c: Likewise.
4540         * genattrtab.c: Likewise.
4541         * ggc-page.c: Likewise.
4542         * integrate.c: Likewise.
4543         * libgcc2.c: Likewise.
4544         * loop.c: Likewise.
4545         * optabs.c: Likewise.
4546         * profile.c: Likewise.
4547         * protoize.c: Likewise.
4548         * real.c: Likewise.
4549         * recog.c: Likewise.
4550         * reload1.c: Likewise.
4551         * reload.c: Likewise.
4552         * reorg.c: Likewise.
4553         * resource.c: Likewise.
4554         * sched-rgn.c: Likewise.
4555         * sdbout.c: Likewise.
4556         * stmt.c: Likewise.
4557         * toplev.c: Likewise.
4558         * varasm.c: Likewise.
4559
4560 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
4561
4562         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
4563         * Makefile.in (langhooks.o): Add dependencies.
4564
4565 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
4566
4567         * rs6000.c (rs6000_emit_load_toc_table): Don't
4568         strdup the toc label.
4569         (create_TOC_reference): Likewise.
4570
4571 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4572
4573         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
4574         version default.
4575
4576 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4577
4578         * config/i386/i386.c (ix86_attribute_table): Correct
4579         min_len, max_len fields for dllimport, dllexport and shared.
4580
4581 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
4582
4583         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
4584         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
4585         Consistently use "nonzero" instead of "non-zero".
4586
4587 2001-10-09  Kazu Hirata  <kazu@hxi.com>
4588
4589         * acconfig.h: Fix comment formatting.
4590         * c-dump.h: Likewise.
4591         * c-tree.h: Likewise.
4592         * conditions.h: Likewise.
4593         * expr.h: Likewise.
4594         * function.h: Likewise.
4595         * gthr.h: Likewise.
4596         * hwint.h: Likewise.
4597         * integrate.h: Likewise.
4598         * intl.h: Likewise.
4599         * loop.h: Likewise.
4600         * optabs.h: Likewise.
4601
4602 2001-10-09  Kazu Hirata  <kazu@hxi.com>
4603
4604         * c-common.h: Fix comment formatting.
4605         * c-dump.c: Likewise.
4606         * cfg.c: Likewise.
4607         * diagnostic.h: Likewise.
4608         * except.c: Likewise.
4609         * gcc.h: Likewise.
4610         * gcov-io.h: Likewise.
4611         * genattrtab.c: Likewise.
4612         * output.h: Likewise.
4613         * predict.h: Likewise.
4614         * reload1.c: Likewise.
4615         * reload.h: Likewise.
4616         * resource.h: Likewise.
4617         * scan.h: Likewise.
4618         * system.h: Likewise.
4619         * tree.h: Likewise.
4620         * tree-inline.c: Likewise.
4621         * tsystem.h: Likewise.
4622         * varasm.c: Likewise.
4623         * xcoffout.h: Likewise.
4624
4625 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
4626
4627         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
4628
4629 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
4630
4631         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
4632         config/i386/i386elf.h, config/i386/netbsd-elf.h,
4633         config/i386/netware.h, config/mcore/gfloat.h,
4634         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
4635         config/netware.h, gccbug.in: Update FSF address.
4636
4637 2001-10-09  Kazu Hirata  <kazu@hxi.com>
4638
4639         * c-common.c: Fix comment typos.
4640         * cfgrtl.c: Likewise.
4641         * collect2.c: Likewise.
4642         * cpplex.c: Likewise.
4643         * doloop.c: Likewise.
4644         * dwarf2out.c: Likewise.
4645         * dwarfout.c: Likewise.
4646         * expr.c: Likewise.
4647         * fold-const.c: Likewise.
4648         * gcc.c: Likewise.
4649         * gcov.c: Likewise.
4650         * gcse.c: Likewise.
4651         * global.c: Likewise.
4652         * ifcvt.c: Likewise.
4653         * loop.c: Likewise.
4654         * optabs.c: Likewise.
4655         * protoize.c: Likewise.
4656         * regclass.c: Likewise.
4657         * reorg.c: Likewise.
4658         * rtl.h: Likewise.
4659         * stmt.c: Likewise.
4660         * tree.h: Likewise.
4661         * doc/cpp.texi: Likewise.
4662         * doc/c-tree.texi: Likewise.
4663         * doc/extend.texi: Likewise.
4664         * doc/invoke.texi: Likewise.
4665         * doc/objc.texi: Likewise.
4666         * doc/tm.texi: Likewise.
4667
4668 2001-10-08  Richard Henderson  <rth@redhat.com>
4669
4670         * varasm.c (set_named_section_flags): Initialize "declared".
4671
4672 2001-10-08  Robert Lipe  <robertlipe@usa.net>
4673
4674         * varasm.c (struct in_named_entry): Add declared.
4675         (named_section_first_declaration): New function.
4676         (default_elf_asm_named_section): Use it.
4677         * output.h (named_section_first_declaration): New.
4678
4679 2001-10-08  Richard Henderson  <rth@redhat.com>
4680
4681         * i386.md (movsi_xor): Export.
4682         (setcc peep2): Use it when available; add an alternative to
4683         match zero_extendhisi2_and.
4684
4685 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4686
4687         * romp-protos.h (romp_initialize_trampoline): New function.
4688         * romp.c (romp_initialize_trampoline): Likewise.
4689         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
4690         romp_initialize_trampoline.
4691
4692 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4693
4694         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
4695         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4696         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4697         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4698
4699 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4700
4701         * unroll.c (loop_iterations): Extend check for multiple back edges.
4702
4703 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
4704
4705         * langhooks.h: New file.
4706         * Makefile.in (OBJS): Added langhooks.o.
4707         (c-lang.o): Depend on langhooks.h.
4708         (c-common.o): Don't depend on tree-inline.h.
4709         (tree-inline.o): Depend on toplev.h.
4710         (langhooks.o): New rule.
4711         * c-common.c: Don't include tree-inline.h.
4712         (c_mark_lang_decl): Mark argument c as unused.
4713         (c_common_lang_init): Don't initialize hooks here.
4714         * c-lang.c: Include langhooks.h, then override some macros.
4715         (lang_hooks): Initialize with macros in langhooks.h.
4716         (c_init): Don't initialize hooks here.
4717         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
4718         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
4719         * tree-inline.c: Include toplev.h.  Don't define hook variables.
4720         * tree-inline.h: Don't define hook types nor declare hook
4721         variables.  Move macros to...
4722         * langhooks.c: ... new file, as functions.  Adjust all callers.
4723
4724 2001-10-08  Jeffrey A Law  <law@cygnus.com>
4725
4726         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
4727         purge_mem_unchanging_flag on all instructions, not just on those
4728         before NOTE_INSN_FUNCTION_BEG.
4729
4730 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4731
4732         * cppmacro.c (_cpp_create_definition): Leave comments off.
4733
4734         * doc/cpp.texi: Update.
4735
4736 2001-10-08  DJ Delorie  <dj@redhat.com>
4737
4738         * c-decl.c (grokfield): Make sure the only unnamed fields
4739         we're allowing are either structs or unions.
4740         * doc/extend.texi: Add documentation for the unnamed field
4741         extension.
4742
4743 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
4744
4745         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
4746         * configure.in: Use it.
4747         * configure: Regenerated.
4748         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
4749         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
4750
4751 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4752
4753         * cppfiles.c (open_file): Don't mark zero-length files
4754         never-reread here.  Don't output diagnostics here either.
4755         (stack_include_file): Mark them never-reread here.
4756         (_cpp_read_file): Update.
4757
4758 2001-10-08  Richard Henderson  <rth@redhat.com>
4759
4760         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
4761
4762 2001-10-08  Richard Henderson  <rth@redhat.com>
4763
4764         * expr.c (store_expr): When converting a CONST_INT for storage
4765         in a SUBREG, convert it to both SUBREG modes before stripping
4766         the SUBREG.
4767
4768 2001-10-08  Richard Henderson  <rth@redhat.com>
4769
4770         * varasm.c (restore_varasm_status): New.
4771         * function.h: Declare it.
4772         * function.c (pop_function_context_from): Call it.
4773
4774 2001-10-08  Richard Henderson  <rth@redhat.com>
4775
4776         * c-common.h (struct c_lang_decl): Add declared_inline.
4777         * c-tree.h (DECL_DECLARED_INLINE_P): New.
4778         * c-lang.c (c_disregard_inline_limits): Use it.
4779         * c-decl.c (duplicate_decls): Likewise.
4780         (pushdecl, redeclaration_error_message): Likewise.
4781         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
4782         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
4783         Set DECL_INLINE if -finline-functions.
4784         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
4785
4786 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4787
4788         * cppmacro.c (funlike_invocation_p): Move some logic to caller
4789         in enter_macro_context.  Create a padding token in its own context
4790         if necessary when the search for '(' fails.
4791         (enter_macro_context): Update.
4792
4793 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
4794
4795         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
4796         genmultilib, toplev.c: Fix spelling errors of "separate" as
4797         "seperate", and corresponding spelling errors of related words.
4798
4799 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4800
4801         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
4802         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
4803         Likewise.
4804         * c-dump.c (dump_option_value_info): Likewise.
4805         * c-format.c (format_length_info, format_char_info,
4806         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
4807         * collect2.c (names): Likewise.
4808         * cppdefault.h (default_include): Likewise.
4809         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
4810         * flow.c (life_analysis): Likewise.
4811         * gcc.c (dir_separator_str, modify_target, option_map,
4812         target_option_translations, spec_list_1, extra_specs_1,
4813         init_spec): Likewise.
4814         * gcov.c (gcov_version_string): Likewise.
4815         * genattr.c (write_units): Likewise.
4816         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
4817         * gengenrtl.c (rtx_definition, defs): Likewise.
4818         * genrecog.c (pred_table): Likewise.
4819         * global.c (global_alloc): Likewise.
4820         * lcm.c (optimize_mode_switching): Likewise.
4821         * local-alloc.c (find_free_reg): Likewise.
4822         * params.h (param_info): Likewise.
4823         * predict.c (predictor_info): Likewise.
4824         * protoize.c (unexpansion_struct): Likewise.
4825         * real.c (bmask): Likewise.
4826         * recog.h (insn_operand_data, insn_data): Likewise.
4827         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
4828         * stmt.c (expand_nl_goto_receiver): Likewise.
4829         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
4830         target_switches, target_options): Likewise.
4831         * tradcif.y (token, tokentab2, yylex): Likewise.
4832         * tree.h (attribute_spec): Likewise.
4833
4834         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
4835         Likewise.
4836         * arc.c (arc_output_function_epilogue): Likewise.
4837         * arm.c (processors, all_cores, all_architectures,
4838         arm_override_options, isr_attribute_arg, isr_attribute_args,
4839         arm_isr_value): Likewise.
4840         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
4841         Likewise.
4842         * c4x.c (c4x_int_reglist): Likewise.
4843         * d30v.c (override_options): Likewise.
4844         * h8300.c (shift_insn): Likewise.
4845         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
4846         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
4847         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
4848         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
4849         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
4850         * i386.h (processor_costs, ix86_cost): Likewise.
4851         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
4852         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
4853         * m68k.c (codes_68881, codes_FPA): Likewise.
4854         * m88k.c (mode_from_align, max_from_align, all_from_align,
4855         best_from_align, m_options): Likewise.
4856         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
4857         * mcore.c (mode_from_align): Likewise.
4858         * mips/elf64.h (UNIQUE_SECTION): Likewise.
4859         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
4860         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
4861         * mips.h (mips_regno_to_class): Likewise.
4862         * ns32k.c (scales): Likewise.
4863         * pa.c (import_string, magic_milli): Likewise.
4864         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
4865         * sparc.c (leaf_reg_remap, sparc_override_options,
4866         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
4867         Likewise.
4868         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
4869
4870 2001-10-07  Dale Johannesen  <dalej@apple.com>
4871
4872         * reload1.c (reload_reg_free_p): Teach register interference
4873         checking that multiple output reloads are emitted in
4874         reverse order.
4875         reload1.c (reload_reg_reaches_end_p):  Ditto.
4876         reload1.c (reloads_conflict):  Ditto.
4877
4878 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
4879
4880         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
4881         NULL_TREE inside @code.
4882
4883 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
4884
4885         * doc/gcc.texi: Document consistent style of "32-bit",
4886         "Objective-C", and "@code{NULL}".
4887
4888 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
4889
4890         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
4891         (cpp_token_len, cpp_spell_token, cpp_output_token,
4892         _cpp_equiv_tokens): Handle it.
4893         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
4894         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
4895         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
4896         error messages.
4897
4898 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4899
4900         * gcc.c (default_compilers): Remove .ada.
4901
4902 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4903
4904         * doc/cppinternals.texi: Update.
4905
4906 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
4907
4908         * gcc.c (main): Set this_file_error if the appropriate
4909         compiler for a language has not been installed.
4910
4911 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
4912
4913         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
4914
4915 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4916
4917         * gccbug.in (CATEGORIES): Add ada.
4918
4919 2001-10-05  Catherine Moore  <clm@redhat.com>
4920
4921         * config/stormy16/stormy-abi:  Document abi changes.
4922         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
4923         (ICALL_REGS): New register class.
4924         (NUM_ARGUMENT_REGISTERS): Now 6.
4925         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
4926         in registers.
4927         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
4928         * config/stormy16.md (call_internal, call_value_internal,
4929         indirect_jump): Use new 'z' constraint.
4930
4931 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4932
4933         * doc/cppinternals.texi: Update.
4934
4935 2001-10-05  Richard Henderson  <rth@redhat.com>
4936
4937         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
4938         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
4939         the gas section-name-as-label feature.
4940
4941 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4942
4943         * doc/cppinternals.texi: Update.
4944
4945 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4946
4947         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
4948         to ensure valid SImode constants.
4949
4950 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
4951
4952         * Makefile.in (c-decl.o): Depend on tree-inline.h.
4953         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
4954         * c-decl.c: Include tree-inline.h.
4955         (c_expand_body): Call optimize_inline_calls. Determine whether
4956         a function is inlinable upfront, and only clear
4957         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
4958         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
4959         (c_disregard_inline_limits): New function.
4960         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
4961         (c_post_options): Enable tree inlining if inlining is enabled.
4962         Don't inline trees when instrumenting functions.
4963         (c_init): Initialize lang_disregard_inline_limits and
4964         lang_cannot_inline_tree_fn.
4965         * tree-inline.c (initialize_inlined_parameters): Handle calls
4966         with fewer arguments than declared parameters, and fewer
4967         parameters than passed arguments.  Don't assume value is a
4968         DECL.
4969         (declare_return_variable): Convert return value back to the
4970         original type, if it was promoted.
4971         (tree_inlinable_function_p): New function.
4972         (inlinable_function_p): Don't look at DECL_INLINE if we're
4973         inlining all functions.  Make it work with a NULL id.
4974         Re-check DECL_UNINLINABLE after language-specific checks.
4975         * tree-inline.h (tree_inlinable_function_p): Declare it.
4976         * integrate.c (save_for_inline): Don't bother to prepare argvec
4977         when not inlining.
4978         * cse.c (check_for_label_ref): Don't check deleted labels.
4979
4980         * Makefile.in (tree-inline.o): Depend on newly-included headers.
4981         * tree-inline.c: Include headers needed for the functions moved in.
4982         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
4983         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
4984         (copy_body, initialize_inlined_parameters): Likewise.
4985         (declare_return_variable, inlinable_function_p): Likewise.
4986         (expand_call_inline, expand_calls_inline): Likewise.
4987         (optimize_inline_calls, clone_body): Likewise.
4988         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
4989         (copy_tree_r, remap_save_expr): Likewise.
4990
4991 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
4992
4993         * Makefile.in (OBJS): Added tree-inline.o.
4994         (c-common.o): Depend on tree-inline.h.
4995         (tree-inline.o): New target.
4996         * c-common.c: Include tree-inline.h.
4997         (c_mark_lang_decl): Don't mark saved_tree.
4998         (c_common_lang_init): Set lang_anon_aggr_type_p.
4999         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
5000         (struct c_lang_decl): Moved saved_tree to tree_decl.
5001         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
5002         * integrate.h (function_attribute_inlinable_p): Declare it.
5003         * integrate.c (function_attribute_inlinable_p): Export it.
5004         * tree-inline.c: New file.  Define variables declared in...
5005         * tree-inline.h: New file.  Declare functions to be moved to
5006         tree-inline.c.  Define macros and declare types and hooks for
5007         language-specific tree inlining.
5008         (flag_inline_trees): Moved definition from cp/decl2.c.
5009         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
5010         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
5011         (struct tree_decl): Moved saved_tree from c_lang_decl and
5012         inlined_fns from C++'s lang_decl.
5013
5014 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
5015
5016         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
5017         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
5018
5019 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
5020
5021         * doc/cppinternals.texi: Update.
5022
5023 2001-10-04  Eric Christopher  <echristo@redhat.com>
5024
5025         * config/mips/mips.c (init_cumulative_args): Remember to set
5026         cum->prototype.
5027         * config.gcc: Redo linux configuration. Add target_cpu_default
5028         of soft-float to all mipsisa32 combinations and tx39.
5029         * config/mips/linux.h: Remove include of mips.h.
5030
5031 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
5032
5033         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
5034         HOST_LDFLAGS and HOST_CPPFLAGS.
5035
5036 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
5037
5038         * c-parse.in (objc_inherit_code, objc_pq_context,
5039         objc_public_flag): Make static.
5040         (objc_interface_context, objc_implementation_context,
5041         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
5042         global tree array in objc/objc-act.[ch].
5043         (methoddef): Remove unnecessary code.
5044
5045         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
5046         Hoist struct definitions to objc-act.h.
5047         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
5048         cat_count): Place declaration in objc-act.h.
5049         (objc_tree_index): Move enumeration to objc-act.h.
5050         (objc_global_trees): Place declaration and macro accessors in
5051         objc-act.h.
5052         (implementation_context): Remove duplicate; use
5053         objc_implementation_context instead:
5054         (method_context): Remove duplicate; use objc_method_context
5055         instead.
5056         (objc_ellipsis_node, objc_method_prototype_template,
5057         implemented_classes, function_type): Move global vars to
5058         objc_global_trees.
5059         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
5060         (build_message_expr): Move actual construction of ObjC message
5061         send nodes to finish_message_expr.
5062         (finish_message_expr): New routine, contains code formerly in
5063         build_message_expr.
5064         * objc/objc-act.h (finish_message_expr): New prototype.
5065         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
5066         declarations; these vars are now part of objc_global_trees.
5067         (objc_tree_index, objc_global_trees): Move definitions from
5068         objc-act.c.
5069         * objc/objc-tree.def: Update copyright info.
5070
5071 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
5072
5073         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
5074         op is NULL.
5075         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
5076         only if TARGET_ARCH64.
5077
5078 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
5079
5080         * doc/extend.texi: Fix some problems with previous checkin.
5081         * doc/invoke.texi: Likewise.
5082
5083 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5084
5085         * cpphash.h: Update comments.
5086         (cpp_context): Update.
5087         (spec_nodes): Remove n__Pragma.
5088         * cppinit.c (cpp_create_reader): Update.
5089         (builtin_array): Add _Pragma.
5090         * cpplib.h: Update comments.
5091         (NODE_DISABLED, BT_PRAGMA): New.
5092         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
5093         * cppmacro.c (struct cpp_macro): Remove disabled.
5094         (builtin_macro): Return int, handle _Pragma, push the new token
5095         on the context stack.
5096         (funlike_invocation_p): Unconstify, update.
5097         (enter_macro_context): Handle builtins here.
5098         (replace_args, push_token_context, push_ptoken_context):
5099         Update for prototype changes.
5100         (_cpp_pop_context): Update.
5101         (cpp_get_token): Don't handle buitins, nor _Pragma here.
5102         (cpp_sys_macro_p): Update.
5103         (_cpp_free_definition): Clear disabled flag.
5104         (_cpp_create_definition): Upate.
5105         * cppmain.c: Update comments.
5106
5107 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
5108                                 Andreas Jaeger <aj@suse.de>,
5109                                 Jan Hubicka    <jh@suse.cz>
5110
5111         * doc/invoke.texi (i386 Options): Document x86-64 options.
5112         (i386 and x86-64 Options): Rename i386 options section.
5113
5114         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
5115         (TARGET_SWITCHES): Add -munwind-info.
5116         (MASK_NO_UNWIND_INFO): New.
5117         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
5118         biarch compilation.
5119         (ASM_OUTPUT_DOUBLE_INT): New.
5120
5121         * config/i386/linux64.h: New spec file for Linux x86-64 support.
5122         * config.gcc: Fix tm_file settings for x86-64.
5123         * config/i386/x86-64.h: New file with OS independent x86-64
5124         definitions.
5125         * config/i386/biarch64.h: New file used to configure compiler
5126         to biarch/64bit compilation.
5127
5128         * config/i386/i386.c: (override_options): Set flags default
5129         for 64bit compilation.
5130
5131 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
5132
5133         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
5134         (ix86_expand_int_movcc): Optimize DImode conditional moves with
5135         constants on x86_64.
5136         (ix86_attr_length_immediate_default): Support MODE_DI.
5137         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
5138         condition.
5139         (indirect_jump, tablejump): Turn into expander.
5140
5141 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5142
5143         * c-common.c (c_format_attribute_table): Make format and
5144         format_arg attributes apply to function types rather than to
5145         decls.
5146         (is_valid_printf_arglist): Construct an attribute list and pass
5147         that to check_function_format rather than a name.
5148         * c-common.h (check_function_format): Adjust prototype.
5149         * c-decl.c (duplicate_decls): Preserve attributes from type of
5150         built-in decl when allowing for harmless conflict in types.
5151         * c-format.c (record_function_format,
5152         record_international_format, function_format_list,
5153         international_format_info, international_format_list): Remove.
5154         (function_format_info): Remove next, name and assembler_name.
5155         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
5156         (decode_format_attr): New.
5157         (handle_format_attribute): Handle receiving a type rather than a
5158         decl.  Call decode_format_attr.  Store format information in a
5159         function_format_info.
5160         (handle_format_arg_attribute): Correct comment.  Handle receiving
5161         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
5162         arg_num.
5163         (check_format_info_recurse, check_format_info_main): Take argument
5164         numbers as unsigned HOST_WIDE_INT.
5165         (check_function_format): Take a list of attributes from the
5166         function type rather than a name or assembler name.  Check for
5167         format attributes in that list and the attributes on the type of
5168         the current function rather than looking through
5169         function_format_list.
5170         (check_format_info): Use unsigned HOST_WIDE_INT for argument
5171         numbers.
5172         (check_format_info_recurse): Take format_arg attributes from the
5173         type of the function calls rather than using
5174         international_format_list.  Allow for multiple format_arg
5175         attributes.
5176         * c-typeck.c (build_function_call): Pass type attributes to
5177         check_function_format rather than name or assembler name.  Don't
5178         require there to be a name or assembler name to check formats.
5179
5180 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5181
5182         * attribs.c (decl_attributes): Possibly call
5183         insert_default_attributes to insert default attributes on
5184         functions in a lazy manner.
5185         * builtin-attrs.def: New file; define the default format and
5186         format_arg attributes.
5187         * c-common.c (c_format_attribute_table): Move to earlier in the
5188         file.
5189         (c_common_nodes_and_builtins): Initialize format_attribute_table.
5190         (enum built_in_attribute, built_in_attributes,
5191         c_attrs_initialized, c_init_attributes,
5192         c_common_insert_default_attributes): New.
5193         (c_common_lang_init): Don't initialize format_attribute_table.  Do
5194         call c_init_attributes.
5195         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
5196         * c-common.h (init_function_format_info): Don't declare.
5197         (c_common_insert_default_attributes): Declare.
5198         * c-decl.c (implicitly_declare, builtin_function): Call
5199         decl_attributes.
5200         (init_decl_processing): Don't call init_function_format_info.
5201         (insert_default_attributes): New.
5202         * c-format.c (handle_format_attribute,
5203         handle_format_arg_attribute): Be quiet about inappropriate
5204         declaration when applying default attributes.
5205         (init_function_format_info): Remove.
5206         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
5207         (insert_default_attributes): Declare.
5208
5209 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5210
5211         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
5212
5213 2001-10-01  Jim Wilson  <wilson@redhat.com>
5214
5215         * sched-deps.c (add_dependence): When elide conditional dependence,
5216         check that insn doesn't modify cond2.
5217
5218 2001-10-01  Dale Johannesen  <dalej@apple.com>
5219
5220         * config/rs6000/rs6000.h (enum processor_type): Add support
5221         for 7400 (G4) and 7450.
5222         (RTX_COSTS): Ditto.
5223         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
5224         (rs6000_issue_rate): Ditto.
5225         (rs6000_adjust_cost): Fix cycle counts for compares.
5226         (debug_stack_info):  Fix an obvious typo.
5227         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
5228         * doc/invoke.texi: Document.
5229         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
5230         for Darwin.
5231         (PROCESSOR_DEFAULT): Ditto.
5232
5233 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
5234
5235         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
5236         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
5237         later recursive make invocation.
5238
5239 2001-10-01  Hans Boehm  <boehm@acm.org>
5240
5241         * optabs.c (emit_libcall_block): When using non-call exceptions,
5242         don't add REG_LIBCALL reg notes to trapping calls.
5243
5244 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
5245
5246         * flow.c (propagate_block_delete_libcall): Remove unused first arg
5247         (propagate_one_insn):  Update for above change
5248
5249 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
5250
5251         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
5252         _Unwind_GetTextRelBase): Argument is unused.
5253
5254 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5255
5256         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
5257         Loop through NOPs, placeholders, and components.
5258         Don't go through NOPs if change mode.
5259         (record_alias_subset): Do nothing if SUBSET and SET are the same.
5260         * emit-rtl.c (set_mem_alias_set): Enable check.
5261         * expr.c (find_placeholder): New function.
5262         (expand_expr, case PLACEHOLDER_EXPR): Use it.
5263         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
5264         to modify it and avoid unneeded copies.
5265         * expr.h (expand_expr): Always define.
5266         (find_placeholder): New declaration.
5267
5268 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5269
5270         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
5271         operand 2 is the stack pointer.
5272         ("addr-peephole"): Fix address computation peephole when operand 2
5273         is the stack pointer.
5274
5275 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5276
5277         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
5278         (ix86_setup_incoming_varargs): Likewise.
5279
5280 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
5281
5282         * stor-layout.c (layout_type): Don't complain about too-large
5283         array here.
5284
5285 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5286
5287         * function.c (keep_stack_depressed): Don't use delete_insn.
5288
5289         * expr.h (set_mem_alias_set): Move decl to here.
5290         * rtl.h (mem_attrs): New typedef and struct.
5291         (union rtunion_def): Add field for mem_attrs.
5292         (X0MEMATTR, MEM_ATTRS): New macros.
5293         (MEM_ALIAS_SET): Use MEM_ATTRS.
5294         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
5295         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
5296         (set_mem_alias_set): Delete decl from here.
5297
5298         * alias.c (set_mem_alias_set): Delete from here.
5299         * emit-rtl.c (mem_attrs_htab): New variable.
5300         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
5301         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
5302         (mem_attrs_mark, get_mem_attrs): Likewise.
5303         (gen_rtx_MEM): Clear MEM_ATTRS.
5304         (set_mem_attributes): Move to here.
5305         (set_mem_alias_set): Likewise, and call get_mem_attrs.
5306         (init_emit_once): const_int_htab now deletable htab.
5307         Initialize mem_attrs_htab.
5308         * explow.c (set_mem_attributes): Delete from here.
5309         * function.c (put_var_into_stack): Clear MEM_ATTRS.
5310         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
5311         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
5312         * reload1.c (reload): Rework changing REG to MEM.
5313
5314 2001-09-30  H.J. Lu <hjl@gnu.org>
5315
5316         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
5317         * config.in: Rebuild.
5318
5319 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5320
5321         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
5322         ("tsthi_1"): Avoid allocation in register y.
5323         ("*movqi_68hc12"): Reorganize and fix constraints.
5324         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
5325         ("addqi3"): Likewise.
5326         ("addhi3"): Fix constraints.
5327         ("*logicalhi3_zexthi"): Disparage soft registers.
5328
5329 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5330
5331         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
5332         to tmp reg.
5333
5334 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5335
5336         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
5337         that we use setjmp/longjmp exceptions.
5338
5339 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
5340
5341         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
5342         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
5343         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5344         _cpp_pool_alloc, _cpp_next_chunk): Remove.
5345         (_cpp_extend_buff, BUFF_ROOM): Update.
5346         (_cpp_append_extend_buff): New.
5347         (struct cpp_reader): Remove macro_pool, add a_buff.
5348         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
5349         macro_pool.
5350         (cpp_destroy): Free a_buff instead of macro_pool.
5351         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
5352         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5353         _cpp_pool_alloc, ): Remove.
5354         (parse_number, parse_string): Update use of _cpp_extend_buff.
5355         (_cpp_extend_buff): Update.
5356         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
5357         * cpplib.c (glue_header_name, parse_answer):
5358         Update use of _cpp_extend_buff.
5359         (cpp_register_pragma, cpp_register_pragma_space): Use
5360         _cpp_aligned_alloc.
5361         (do_assert, do_unassert): Check for EOL, update.
5362         * cppmacro.c (stringify_arg, collect_args): Update to use
5363         _cpp_extend_buff and _cpp_append_extend_buff.
5364         (save_parameter, parse_params, alloc_expansion_token,
5365         _cpp_create_definition): Rework memory management.
5366
5367 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
5368
5369         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
5370         update md_exec_prefix.
5371         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
5372         to string constant.
5373
5374 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
5375
5376         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
5377         (SELECT_CC_MODE): Use s390_select_ccmode.
5378         * config/s390/s390-protos.h (s390_select_ccmode): Add.
5379         * config/s390/s390.c (s390_select_ccmode): New.
5380         (s390_match_ccmode): Add CCLmode.
5381         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
5382         (output_branch_condition, output_inverse_branch_condition): Removed.
5383         (print_operand): Use s390_branch_condition_mnemonic.
5384         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
5385         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
5386         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
5387
5388         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
5389         when converting conditional branches to far branches.
5390         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
5391         cmpint_di): Use CCSmode instead of CCUmode.
5392
5393         * config/s390/s390.c (legitimate_la_operand_p): New.
5394         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
5395         * config/s390/s390.md (movsi): Convert load address patterns to
5396         arithmetic operations when necessary.
5397         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
5398         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
5399         (*do_la_reg_0): Don't use before reload.
5400
5401         * config/s390/s390.c (legitimize_address): Make more efficient
5402         use of two-register addressing mode.
5403
5404         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
5405         with -mno-backchain in some corner cases.
5406
5407         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
5408
5409 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
5410
5411         * reload.c (find_reloads): Mark new USE insns with QImode.
5412         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
5413         find_reloads_subreg_address): Likewise.
5414         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
5415         encountered.
5416         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
5417         CLOBBERs.
5418         (reload): Make sure there are no USEs with mode other than
5419         VOIDmode.  At the end, remove those marked with QImode.
5420
5421 2001-09-29  Per Bothner  <per@bothner.com>
5422
5423         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
5424         * Makefile.in (includedir):  Rename to local_includedir.
5425         (includedir):  Define as $(prefix)/include.
5426         * config.in (PREFIX_INCLUDE_DIR):  New variable.
5427         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
5428
5429 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
5430
5431         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
5432         storehps builtins.
5433         * doc/extend.texi (Vector Extensions): New node.
5434         * doc/invoke.texi (Machine Dependent Options): Add documentation for
5435         i386 -mmmx, -msse, -m3dnow.
5436
5437 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
5438
5439         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
5440
5441 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
5442
5443         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
5444
5445         * doc/invoke.texi (Optimize Options): Delete spurious @table.
5446
5447 2001-09-28  Richard Henderson  <rth@redhat.com>
5448
5449         * varasm.c (assemble_integer): Bound alignment check by
5450         BIGGEST_ALIGNMENT.
5451
5452         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
5453
5454 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5455
5456         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
5457
5458 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
5459
5460         Mostly from Graham Stott  <grahams@redhat.com>
5461         * c-common.c (type_for_mode): Add support for V2SFmode.
5462         * tree.c (build_common_tree_nodes_2): Likewise.
5463         * tree.h (enum tree_index, global_trees): Likewise.
5464         * config/i386/i386.c (x86_3dnow_a): New variable.
5465         (override_options): Support 3Dnow extensions.
5466         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
5467         Athlon's version of 3Dnow.
5468         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
5469         (ix86_expand_builtin): Handle them.
5470         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
5471         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
5472         TARGET_3DNOW_A): New macros.
5473         (TARGET_SWITCHES): Add 3Dnow switches.
5474         (VALID_MMX_REG_MODE_3DNOW): New macro.
5475         (VECTOR_MODE_SUPPORTED_P): Use it.
5476         (enum ix86_builtins): Add entries for 3Dnow builtins.
5477         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
5478         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
5479         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
5480         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
5481         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
5482         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
5483         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
5484         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
5485         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
5486         sfence_insn, prefetch): Make these available if TARGET_SSE or
5487         TARGET_3DNOW_A.
5488
5489 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
5490
5491         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
5492         ix86_va_start, ix86_build_va_list): Declare.
5493         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
5494         ix86_va_start, ix86_build_va_list): New global functions.
5495         * i386.md (sse_prologue_save_insn): New insn.
5496         (sse_prologue_save): New expander.
5497         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
5498         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
5499
5500 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5501
5502         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
5503         Use size_t everywhere, make definitions consistent with
5504         prototypes.
5505
5506 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
5507
5508         * gcse.c (replace_store_insn): Use delete_insn.
5509         * loop.c (move_movables): Likewise; avoid delete_insn
5510         from clobbering notes moved elsewhere.
5511         (check_dbra_loop): Use delete_insn.
5512         * ssa.c (convert_from_ssa): Likewise.
5513         * cse.c (cse_insn): Use delete_insn.
5514
5515 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5516
5517         * cpphash.h (struct cpp_buff): Make unsigned.
5518         (_cpp_get_buff): Take length of size_t.
5519         (_cpp_unaligned_alloc): New.
5520         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
5521         (struct cpp_reader): Remove ident_pool.  Add u_buff.
5522         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
5523         (cpp_destroy): Destroy u_buff, not ident_pool.
5524         * cpplex.c (parse_number, parse_string, save_comment,
5525         cpp_token_as_text): Update to use the unaligned buffer.
5526         (new_buff): Make unsigned.
5527         (_cpp_unaligned_alloc): New.
5528         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
5529         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
5530         Similarly.
5531         (collect_args): Make unsigned.
5532
5533 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
5534
5535         * cpplex.c (cpp_output_token): Use a putc loop for
5536         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
5537
5538         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
5539         * configure, config.in: Regenerate.
5540         * system.h: Replace fwrite and fprintf with their unlocked
5541         variants if available.
5542
5543 2001-09-27  Richard Henderson  <rth@redhat.com>
5544
5545         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
5546         in favour of .eh_frame.
5547
5548 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
5549
5550         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
5551         to macros.
5552         (LIBCALL_VALUE): Likewise.
5553
5554 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5555
5556         * cpphash.h: Update comment.
5557         * cpplex.c: Update comments.
5558         (_cpp_can_paste): Remove.
5559         * cpplib.h (_cpp_can_paste): Remove.
5560         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
5561         lexer rather than _cpp_can_paste.
5562
5563 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5564
5565         * doc/cppinternals.texi: Update.
5566
5567 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5568
5569         * cpphash.h (struct cpp_pool): Remove locks and locked.
5570         (struct cpp_context): Add member buff.
5571         (struct cpp_reader): Remove member argument_pool.
5572         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
5573         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
5574         * cpplex.c (chunk_suitable): Remove pool argument.
5575         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
5576         (new_buff, _cpp_extend_buff): Update.
5577         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
5578         which buffer is returned.
5579         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
5580         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
5581         * cppmacro.c (lock_pools, unlock_pools): Remove.
5582         (push_ptoken_context): Take a _cpp_buff.
5583         (enter_macro_context): Pool locking removed.
5584         (replace_args): Use a _cpp_buff for the replacement list with
5585         arguments replaced.
5586         (push_token_context): Clear buff.
5587         (expand_arg): Use _cpp_pop_context.
5588         (_cpp_pop_context): Free a context's buffer, if any.
5589
5590 2001-09-26  DJ Delorie  <dj@redhat.com>
5591
5592         * c-typeck.c (digest_init): Check for sizeless arrays.
5593
5594 2001-09-26  Richard Henderson  <rth@redhat.com>
5595
5596         * optabs.c (init_one_libfunc): Create a dummy function type
5597         instead of using error_mark_node.
5598
5599 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5600
5601         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
5602         _cpp_extend_buff, _cpp_free_buff): New.
5603         (struct cpp_reader): New member free_buffs.
5604         * cppinit.c (cpp_destroy): Free buffers.
5605         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
5606         _cpp_extend_buff, _cpp_free_buff): New.
5607         * cpplib.h (struct cpp_options): Remove unused member.
5608         * cppmacro.c (collect_args): New.  Combines the old parse_arg
5609         and parse_args.  Use _cpp_buff for memory allocation.
5610         (funlike_invocation_p, replace_args): Update.
5611
5612 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
5613
5614         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
5615
5616 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
5617
5618         * except.c (sjlj_mark_call_sites): Change address inside sequence.
5619
5620 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
5621
5622         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
5623         glibc.
5624
5625 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
5626             Jim Wilson  <wilson@redhat.com>
5627
5628         * doc/install.texi (Specific, ia64-*-linux): Document.
5629
5630 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
5631
5632         * Makefile.in (cfgrtl.o): Add.
5633         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
5634         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
5635         free_aux_for_edge): Declare.
5636         * cfg.c
5637         (HAVE_return): Undefine.
5638         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
5639         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
5640         free_aux_for_edge): New global functions.
5641         (first_delete_block): New static variable.
5642         (init_flow): Clear first_delete_block.
5643         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
5644          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
5645          try_redirect_by_replacing_jump, last_loop_beg_note,
5646          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
5647          delete_insn, delete_insn_chain, create_basic_block_structure,
5648          create_basic_block, flow_delete_block, compute_bb_for_insn,
5649          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
5650          set_block_for_new_insns, split_block, merge_blocks_nomove,
5651          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
5652          redirect_edge_and_branch, force_nonfallthru_and_redirect,
5653          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
5654          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
5655          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
5656          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5657          purge_all_dead_edges): Move to ....
5658         * cfgrtl.c: New file; .... Here.
5659
5660         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
5661         (reroder_basic_block): Use alloc_aux_for_blocks.
5662         * predict.c (estimate_bb_frequencies): Likewise; use
5663         alloc_aux_for_edges.
5664         * profile.c (compute_branch_probabilities): Likewise.
5665         (branch_prob): Likewise.
5666         * reg-stack.c (reg_to_stack): Likewise.
5667
5668         * emit-rtl.c (emit_insns_after): Never return NULL.
5669
5670         * basic-block.h (set_block_for_new_insns): Delete.
5671         * cfgrtl.c (set_block_for_new_insns): Delete.
5672
5673         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
5674         calls when crossjumping.
5675
5676         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
5677         * unroll.c (copy_loop_body): Use delete_insn.
5678
5679         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
5680         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
5681         keep_stack_depressed): Likewise.
5682         * gcse.c (cprop_cc0_jump): Likewise.
5683         * local-alloc.c (update_equiv_regs): Likewise.
5684         * loop.c (scan_loop, loop_delete_insns): Likewise.
5685         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
5686         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
5687         delete_output_reload, delete_address_reloads_1,
5688         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
5689         Likewise.
5690         * sibcall.c (replace_call_placeholder): Likewise.
5691         * cse.c (cse_insn): Likewise.
5692
5693 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
5694
5695         From Graham Stott  <grahams@redhat.com>
5696         (def_builtin): Only define builtins appropriate for target_flags.  All
5697         callers changed.
5698         (builtin_decsription): Add new field mask which is used to determine
5699         when to define the builtin via the macro def_builtin.
5700
5701         (bdesc_comi): Initialise new mask fields.
5702         (bdesc_2srg): Likewise.
5703         (bdesc_1arg): Likewise.
5704
5705         * config/i386/i386.c (ix86_init_builtins): Correct return type
5706         building v4hi_ftype_v4hi_int_int tree node.
5707         (ix86_expand_sse_comi): Fix typo swapping operands.
5708         Don't swap comparision condition, it is already swapped.
5709         (ix86_expand_sse_compare): Before swapping operands
5710         move operand 1 into new rtx and not the target rtx.
5711         Don't swap comparison condition, it is already swapped.
5712         Always check whether we need to create a new TARGET.
5713
5714         * config/i386/i386.md: (sse_comi) Fix typos.
5715         (sse_ucomi): Likewise.
5716         (cvtss2si): Fix operand 0 contraint.
5717         (cvttss2si): Likewise.
5718         (sse_unpckhps): Fix mode for operand 2.
5719         (sse_unpcklps): Likewise.
5720
5721 2001-09-25  Graham Stott  <grahams@redhat.com>
5722
5723         * sibcall.c (skip_copy_to_return_value): Tighten return value
5724         copy check.
5725
5726 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
5727
5728         * rs6000.c (lwa_operand): Address must be word aligned.
5729
5730 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5731
5732         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
5733         number has been set.
5734         (type_hash_mark): Mark type itself.
5735
5736 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5737
5738         * c-lex.c (cb_def_pragma): Update.
5739         (c_lex): Update, and skip padding.
5740         * cppexp.c (lex, parse_defined): Update, remove unused variable.
5741         * cpphash.h (struct toklist): Delete.
5742         (union utoken): New.
5743         (struct cpp_context): Update.
5744         (struct cpp_reader): New members eof, avoid_paste.
5745         (_cpp_temp_token): New.
5746         * cppinit.c (cpp_create_reader): Update.
5747         * cpplex.c (_cpp_temp_token): New.
5748         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
5749         (cpp_output_token): Don't print leading whitespace.
5750         (cpp_output_line): Update.
5751         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
5752         do_include_common, do_line, do_ident, do_pragma,
5753         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
5754         parse_assertion): Update.
5755         (get_token_no_padding): New.
5756         * cpplib.h (CPP_PADDING): New.
5757         (AVOID_LPASTE): Delete.
5758         (struct cpp_token): New union member source.
5759         (cpp_get_token): Update.
5760         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
5761         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
5762         replace_args, quote_string, stringify_arg, parse_arg, next_context,
5763         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
5764         _cpp_backup_tokens, _cpp_create_definition): Update.
5765         (push_arg_context): Delete.
5766         (padding_token, push_token_context, push_ptoken_context): New.
5767         (make_string_token, make_number_token): Update, rename.
5768         (cpp_get_token): Update to handle tokens as pointers to const,
5769         and insert padding appropriately.
5770         * cppmain.c (struct printer): New member prev.
5771         (check_multiline_token): Constify.
5772         (do_preprocessing, cb_line_change): Update.
5773         (scan_translation_unit): Update to handle spacing.
5774         * scan-decls.c (get_a_token): New.
5775         (skip_to_closing_brace, scan_decls): Update.
5776         * fix-header.c (read_scan_file): Update.
5777
5778         * doc/cpp.texi: Update.
5779
5780 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5781
5782         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
5783         leak by passing malloc'ed pointer to reconcat, not concat.
5784
5785 2001-09-24  DJ Delorie  <dj@redhat.com>
5786
5787         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
5788
5789 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
5790
5791         * flow.c (delete_dead_jumptables): Delete jumptable if the only
5792         reference is from the literal pool.
5793
5794 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
5795
5796         * doc/install.texi (Final install): Request additional information
5797         in mail about successful builds.
5798
5799 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5800
5801         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
5802         initial value of return pointer register instead of value in frame-20.
5803         Revise comments.
5804
5805 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5806
5807         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
5808         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
5809         the libcall if there isn't a referenced identifier for the symbol.
5810
5811 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5812
5813         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
5814         non 64-bit machines.  Use these as a plabel for the trampoline.
5815         (TRAMPOLINE_SIZE): Adjust size for new words.
5816         (INITIALIZE_TRAMPOLINE): Initialize new words.
5817         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
5818         pointer to the plabel in the trampoline.
5819
5820 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5821
5822         * pa.c (function_arg): Pass floating arguments in both general and
5823         floating registers in indirect (dynamic) calls when generating code
5824         for the 32 bit ABI and the HP assembler.
5825
5826 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5827
5828         * doc/install.texi: Markup fixes.
5829         Use Solaris 2, SunOS 4 as appropriate.
5830         (Specific, *-*-solaris2*): Explain this.
5831         Unconditionally warn against /usr/ucb tools.
5832         Remove Sun as warning, obsolete.
5833         Move X11 header bug workaround here, update patches.
5834         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
5835         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
5836
5837 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
5838
5839         * errors.h (warning, error, fatal, internal_error): Don't mark
5840         with ATTRIBUTE_PRINTF_n.
5841         * toplev.h (internal_error, fatal_io_error, warning, error,
5842         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
5843         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
5844         Likewise.
5845
5846 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5847
5848         * function.c (pop_function_context_from): var_refs_queue
5849         and temp slots now in GC memory.
5850         (mark_function_status, free_after_compilation): Likewise;
5851         also struct function now in GC memory.
5852         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
5853         (combine_temp_slots): Likewise.
5854         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
5855         (prepare_function_start): Use GC memory for struct function.
5856         (mark_temp_slot): Deleted.
5857         (gcc_mark_struct_function): struct function now in GC memory.
5858
5859         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
5860         code for division, not modulus.
5861
5862         * rtl.def (MEM): Remove obsolete part of comment.
5863
5864 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
5865
5866         * c-format.c (init_function_format_info): Check __builtin_printf
5867         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
5868         in gnu89 mode.
5869
5870 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5871
5872         * c-common.c (format_attribute_table): Remove decl.
5873         * tree.h (format_attribute_table, lang_attribute_table): New decls.
5874         (lang_attribute_common): Likewise.
5875
5876         * function.c (fix_lexical_address): Use set_mem_alias_set.
5877         (expand_function_start): Likewise.
5878         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
5879
5880         * varasm.c (output_constant): Fix unused variable warning.
5881
5882         * attribs.c: New file, from c-common.c.
5883         (attribute_tables): Now four elements.
5884         (format_attribute_table, lang_attribute_common): New variables.
5885         (init_attributes): Reflect above changes.
5886         (handle_mode_attribute): Delete check for wider than uintmax.
5887         * c-common.c: Delete parts moved to attribs.c.
5888         (enum attrs): Deleted; unused.
5889         (c_format_attribute_table): New variable.
5890         (c_common_lang_init): Initialize format_attribute_table with it.
5891         * c-common.h (decl_attributes): Remove decl.
5892         * tree.h (decl_attribute): Move it to here.
5893         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
5894         (attribs.o): New rule.
5895
5896 2001-09-22  Andreas Jaeger  <aj@suse.de>
5897
5898         * builtins.c (c_getstr): Remove unused variable.
5899
5900 2001-09-21  Richard Henderson  <rth@redhat.com>
5901
5902         * reload1.c (reload): Use delete_insn instead of splatting
5903         NOTE_INSN_DELETED.
5904
5905 2001-09-21  Richard Henderson  <rth@redhat.com>
5906
5907         * reload.c (push_secondary_reload): Don't check for "=" in output
5908         constraint after ""->ALL_REGS check.
5909
5910 2001-09-21  Richard Henderson  <rth@redhat.com>
5911
5912         * predict.c (expected_value_to_br_prob): Use pc_set.
5913
5914         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
5915         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
5916
5917 2001-09-21  Richard Henderson  <rth@redhat.com>
5918
5919         * rtl.h (LCT_RETURNS_TWICE): New.
5920         * calls.c (emit_call_1): Set current_function_calls_setjmp for
5921         ECF_RETURNS_TWICE.
5922         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
5923         to ECF_RETURNS_TWICE.
5924         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
5925         call to setjmp.
5926
5927         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
5928
5929         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
5930         (JMP_BUF_SIZE): New.
5931
5932 2001-09-21  Richard Henderson  <rth@redhat.com>
5933
5934         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
5935         to R8_REGS.
5936
5937 2001-09-21  Richard Henderson  <rth@redhat.com>
5938
5939         * tree.def (FDESC_EXPR): New.
5940         * expr.c (expand_expr): Handle it.
5941         * varasm.c (initializer_constant_valid_p): Likewise.
5942         (output_constant): Likewise.
5943         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
5944         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
5945         (ASM_OUTPUT_FDESC): New.
5946         * doc/tm.texi: Document the new macros.
5947
5948 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
5949
5950         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
5951         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
5952         once merging is complete.
5953
5954 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5955
5956         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
5957
5958 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
5959
5960         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
5961         that would be invalid after a merge.
5962
5963 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
5964
5965         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
5966         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
5967         remove some labels.
5968         (flow_delete_insn): This one.
5969         (delete_insn_chain): Rename from ...; do not care labels.
5970         (flow_delete_insn_chain): ... this one.
5971         (flow_delete_block): Remove the insns one BB has been expunged.
5972         (merge_blocks_nomove): Likewise.
5973         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
5974         updating BB boundaries.
5975         (tidy_fallthru_edge): Likewise.
5976         (commit_one_edge_insertion): Likewise.
5977         * cfgbuild.c (find_basic_block): Likewise.
5978         (find_basic_blocks_1): Likewise.
5979         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
5980         (try_crossjump_to_edge): Likewise.
5981         (try_optimize_cfg): Likewise.
5982         * cse.c (delete_trivially_dead_insns): Likewise.
5983         * df.c (df_insn_delete): Likewise.
5984         * doloop.c (doloop_modify): Use delete_related_insns.
5985         * emit-rtl.c (try_split): Likewise.
5986         (remove_insn): Update BB boundaries.
5987         * expect.c (connect_post_landing_pads): Use delete_related_insns.
5988         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
5989         updating BB boundaries.
5990         (propagate_block_delete_insn): Likewise.
5991         (propagate_block_delete_libcall): Likewise.
5992         * function.c (delete_handlers): Use delete_related_insns.
5993         (thread_prologue_and_epilogue_insns): Likewise.
5994         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
5995         * genpeep.c (gen_peephole): Use delete_related_insns.
5996         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
5997         BB boundaries.
5998         (find_cond_trap): Likewise.
5999         * integrate.c (save_for_inline): Use delete_related_insns.
6000         (copy_insn_list): Likewise.
6001         * jump.c (pruge_linie_number_notes): Likewise.
6002         (duplicate_loop_exit_test): Likewise.
6003         (delete_computation): Likewise.
6004         (delete_related_insn): Rename from ...; use delete_insn
6005         (delete_insn): ... this one.
6006         (redirect_jump): Use delete_related_insns.
6007         * loop.c (scan_loop): Likewise.
6008         (move_movables): Likewise.
6009         (find_and_verify_loops): Likewise.
6010         (check_dbra_loop): Likewise.
6011         * recog.c (peephole2_optimize): Likewise.
6012         * reg-stack.c (delete_insn_for_stacker): Remove.
6013         (move_for_stack_reg): Use delete_insn.
6014         * regmove.c (combine_stack_adjustments_for_block): Likewise.
6015         * reload1.c (delete_address_reloads): Use delete_related_insns.
6016         (fixup_abnormal_edges): Use delete_insn.
6017         * recog.c (emit_delay_sequence): Use delete_related_insns.
6018         (delete_from-delay_slot): Likewise.
6019         (delete_scheduled_jump): likewise.
6020         (optimize_skip): Likewise.
6021         (try_merge_delay_insns): Likewise.
6022         (full_simple_delay_slots): Likewise.
6023         (fill_slots_from_thread): Likewise.
6024         (relax_delay_slots): Likewise.
6025         (make_return_insns): Likewise.
6026         (dbr_schedule): Likewise.
6027         * rtl.h (delete_insn): Rename to delete_related_insns.
6028         (delete_insn, delete_insn_chain): New prototypes.
6029         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
6030         by df_insn_delete already.
6031         * ssa-dce.c (delete_insn_bb): Use delete_insn.
6032         * ssa.c (convert_from_ssa): Use delete_related_insns.
6033         * unroll.c (unroll_loop): Likewise.
6034         (calculate_giv_inc): Likewise.
6035         (copy_loop_body): Likewise.
6036
6037         * i386-protos.h (ix86_libcall_value, ix86_function_value,
6038         ix86_function_arg_regno_p, ix86_function_arg_boundary,
6039         ix86_return_in_memory, ix86_function_value): Declare.
6040         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
6041         new static valurables.
6042         (x86_64_reg_class): New enum
6043         (x86_64_reg_class_name): New array.
6044         (classify_argument, examine_argument, construct_container,
6045          merge_classes): New static functions.
6046         (optimization_options): Enable flag_omit_frame_pointer and disable
6047         flag_pcc_struct_return on 64bit.
6048         (ix86_libcall_value, ix86_function_value,
6049         ix86_function_arg_regno_p, ix86_function_arg_boundary,
6050         ix86_return_in_memory, ix86_function_value): New global functions.
6051         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
6052         (function_arg_advance): Handle x86_64 passing conventions.
6053         (function_arg): Likewise.
6054         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
6055         (RETURN_IN_MEMORY): Move offline.
6056         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
6057         (FUNCTION_VALUE_REGNO_P): New macro.
6058         (FUNCTION_ARG_REGNO_P): Move offline.
6059         (struct ix86_args): Add maybe_vaarg.
6060         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
6061         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
6062
6063 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
6064
6065         * s390.md: Changed attributes for scheduling.
6066         * s390.c: (s390_adjust_cost, s390_adjust_priority)
6067         Changed scheduling
6068
6069 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6070
6071         Table-driven attributes.
6072         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
6073         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
6074         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
6075         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
6076         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
6077         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
6078         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
6079         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
6080         * tree.h (struct tree_decl): Change machine_attributes to
6081         attributes.
6082         * doc/c-tree.texi: Document that all attributes are now attached
6083         to decls and types.
6084         * c-common.c (add_attribute, attrtab, attrtab_idx,
6085         default_valid_lang_attribute, valid_lang_attribute): Remove.
6086         (attribute_tables, attributes_initialized,
6087         c_common_attribute_table, default_lang_attribute_table): New
6088         variables.
6089         (handle_packed_attribute, handle_nocommon_attribute,
6090         handle_common_attribute, handle_noreturn_attribute,
6091         handle_unused_attribute, handle_const_attribute,
6092         handle_transparent_union_attribute, handle_constructor_attribute,
6093         handle_destructor_attribute, handle_mode_attribute,
6094         handle_section_attribute, handle_aligned_attribute,
6095         handle_weak_attribute, handle_alias_attribute,
6096         handle_no_instrument_function_attribute,
6097         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
6098         handle_no_limit_stack_attribute, handle_pure_attribute): New
6099         functions.
6100         (init_attributes, decl_attributes): Rewrite to implement
6101         table-driven attributes.
6102         * c-common.h (enum attribute_flags): Move to tree.h.
6103         * c-format.c (decl_handle_format_attribute,
6104         decl_handle_format_arg_attribute): Rename to
6105         handle_format_attribute and handle_format_arg_attribute.  Update
6106         for table-driven attributes.
6107         * c-common.h (decl_handle_format_attribute,
6108         decl_handle_format_arg_attribute): Remove prototypes.
6109         (handle_format_attribute, handle_format_arg_attribute): Add
6110         prototypes.
6111         * c-decl.c (grokdeclarator): Handle attributes nested inside
6112         declarators.
6113         * c-parse.in (setattrs, maybe_setattrs): Remove.
6114         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
6115         Update to handle nested attributes properly.
6116         (maybe_resetattrs, after_type_declarator,
6117         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
6118         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
6119         properly.
6120         (make_pointer_declarator): Update to handle nested attributes
6121         properly.
6122         * doc/extend.texi: Update documentation of limits of attributes
6123         syntax.  Warn about problems with attribute semantics in C++.
6124         * target.h (struct target): Remove valid_decl_attribute and
6125         valid_type_attribute.  Add attribute_table and
6126         function_attribute_inlinable_p.
6127         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
6128         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
6129         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
6130         Add.
6131         (TARGET_INITIALIZER): Update.
6132         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
6133         definition.
6134         (function_attribute_inlinable_p): New function.  Check for the
6135         presence of any machine attributes before using
6136         targetm.function_attribute_inlinable_p.
6137         (function_cannot_inline_p): Update.
6138         * Makefile.in (integrate.o): Update dependencies.
6139         * doc/tm.texi: Update documentation of target attributes and
6140         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
6141         * tree.c (default_valid_attribute_p, valid_machine_attribute):
6142         Remove.
6143         (default_target_attribute_table,
6144         default_function_attribute_inlinable_p): New.
6145         (lookup_attribute): Update comment to clarify handling of multiple
6146         attributes with the same name.
6147         (merge_attributes, attribute_list_contained): Allow multiple
6148         attributes with the same name but different arguments to appear in
6149         the same attribute list.
6150         * tree.h (default_valid_attribute_p): Remove prototype.
6151         (struct attribute_spec): New.
6152         (default_target_attribute_table): Declare.
6153         (enum attribute_flags): Move from c-common.h.  Add
6154         ATTR_FLAG_TYPE_IN_PLACE.
6155         (default_function_attribute_inlinable_p): Declare.
6156         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
6157         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6158         (TARGET_ATTRIBUTE_TABLE): Define.
6159         (vms_attribute_table): New.
6160         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
6161         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6162         (TARGET_ATTRIBUTE_TABLE): Define.
6163         (arc_attribute_table, arc_handle_interrupt_attribute): New.
6164         * config/arm/arm.c (arm_valid_type_attribute_p,
6165         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
6166         Remove.
6167         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6168         define.
6169         (TARGET_ATTRIBUTE_TABLE): Define.
6170         (arm_attribute_table, arm_handle_fndecl_attribute,
6171         arm_handle_isr_attribute): New.
6172         * config/avr/avr.c (avr_valid_type_attribute,
6173         avr_valid_decl_attribute): Remove.
6174         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
6175         define.
6176         (TARGET_ATTRIBUTE_TABLE): Define.
6177         (avr_attribute_table, avr_handle_progmem_attribute,
6178         avr_handle_fndecl_attribute): New.
6179         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
6180         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6181         (TARGET_ATTRIBUTE_TABLE): Define.
6182         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
6183         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
6184         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6185         (TARGET_ATTRIBUTE_TABLE): Define.
6186         (h8300_attribute_table, h8300_handle_fndecl_attribute,
6187         h8300_handle_eightbit_data_attribute,
6188         h8300_handle_tiny_data_attribute): New.
6189         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
6190         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
6191         Remove prototypes.
6192         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
6193         declarations.
6194         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
6195         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6196         define.
6197         (TARGET_ATTRIBUTE_TABLE): Define.
6198         (ix86_attribute_table, ix86_handle_cdecl_attribute,
6199         ix86_handle_regparm_attribute): New.
6200         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
6201         i386_pe_valid_type_attribute_p): Remove.
6202         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
6203         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
6204         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6205         (TARGET_ATTRIBUTE_TABLE): Define.
6206         (ia64_attribute_table): New.
6207         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
6208         interrupt_ident2, model_ident1, model_ident2): Remove.
6209         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6210         (TARGET_ATTRIBUTE_TABLE): Define.
6211         (init_idents): Update.
6212         (m32r_attribute_table, m32r_handle_model_attribute): New.
6213         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
6214         Remove.
6215         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6216         (TARGET_ATTRIBUTE_TABLE): Define.
6217         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
6218         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
6219         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6220         (TARGET_ATTRIBUTE_TABLE): Define.
6221         (mcore_attribute_table, mcore_handle_naked_attribute): New.
6222         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
6223         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6224         (TARGET_ATTRIBUTE_TABLE): Define.
6225         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
6226         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
6227         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6228         (TARGET_ATTRIBUTE_TABLE): Define.
6229         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
6230         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
6231         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6232         (TARGET_ATTRIBUTE_TABLE): Define.
6233         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
6234         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
6235         New.
6236         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
6237         Remove.
6238         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
6239         (TARGET_ATTRIBUTE_TABLE): Define.
6240         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
6241         New.
6242         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
6243         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6244         (TARGET_ATTRIBUTE_TABLE): Define.
6245         (v850_attribute_table, v850_handle_interrupt_attribute,
6246         v850_handle_data_area_attribute): New.
6247         * config/v850/v850-c.c (mark_current_function_as_interrupt):
6248         Return void.  Call decl_attributes instead of
6249         valid_machine_attribute.
6250
6251 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
6252
6253         * sh-protos.h (sh_pr_n_sets): Declare.
6254         * sh.c (calc_live_regs): If the initial value for PR has been copied,
6255         look at the copy to determine if PR needs to be saved.
6256         sh_pr_n_sets: New function.
6257         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
6258         (ALLOCATE_INITIAL_VALUE): Define.
6259
6260         * sh.c (initial_elimination_offset):
6261         Fix RETURN_ADDRESS_POINTER_REGNUM case.
6262
6263 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
6264
6265         * integrate.c (allocate_initial_values): New function.
6266         * integrate.h (allocate_initial_values): Declare.
6267         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
6268         here...
6269         * reload1.c (reload): And initialization of reg_equiv_memory_loc
6270         from here...
6271         * toplev.c (rest_of_compilation): To here.
6272         Call allocate_initial_values.
6273         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
6274
6275 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6276
6277         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
6278
6279 2001-09-20  DJ Delorie  <dj@redhat.com>
6280
6281         * c-typeck.c (really_start_incremental_init): Discriminate
6282         between zero-length arrays and flexible arrays.
6283         (push_init_level): Detect zero-length arrays and handle them
6284         like fixed-sized arrays.
6285         * expr.c (store_constructor): Handle zero-length arrays and
6286         flexible arrays correctly.
6287         * doc/extend.texi: Update zero-length array notes.
6288
6289 2001-09-20  Jim Wilson  <wilson@redhat.com>
6290
6291         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
6292         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
6293         for issue port conflicts.
6294         (cycle_end_fill_slots): TYPE_L instructions take two slots.
6295
6296 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
6297
6298         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
6299         on ia64.
6300
6301 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6302
6303         * fold-const.c (hashtab.h): Include.
6304         (int_const_binop): Remove FORSIZE arg and compute from type; all
6305         callers changed.
6306         Call size_int_type_wide for all single-word constants.
6307         (size_htab_hash, size_htab_eq): New functions.
6308         (size_int_type_wide): Rework to use hash table.
6309         * ggc-common.c (hashtab.h): Include.
6310         (struct d_htab_root): New struct.
6311         (d_htab_roots): New variable.
6312         (ggc_add_deletable_htab, ggc_htab_delete): New functions
6313         (ggc_mark_roots): Handle deletable htabs.
6314         * ggc-page.c (ggc_marked_p): New function.
6315         * ggc-simple.c (ggc_marked_p): Likewise.
6316         * ggc.h: Reformatting throughout.
6317         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
6318         * tree.c (init_obstacks): Make type_hash_table a deletable root.
6319         (type_hash_add): Allocate struct type_hash from GC memory.
6320         (mark_hash_entry, mark_type_hash): Deleted.
6321         (type_hash_marked_p, type_hash_mark): New functions.
6322         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
6323
6324 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
6325
6326         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
6327         than SImode.
6328
6329 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6330
6331         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
6332         array-too-large test for signed sizetype.
6333
6334 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
6335
6336         * i386.md (indirect_jump): Allow Pmode operand.
6337         (tablejump): LIkewise; perform expansion to 64bit mode.
6338         * i386.c (symbolic_operand): Allow 64bit PIC references.
6339         (pic_symbolic_operand): Likewise.
6340         (ix86_find_base_term): Strip the 64bit PIC references.
6341         (legitimate_pic_address_disp_p): Handle 64bit PIC.
6342         (legitimize_pic_address): Likewise.
6343         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
6344         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
6345
6346 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
6347
6348         * stringpool.c (get_identifier_with_length): New function.
6349         * tree.h (get_identifier_with_length): New prototype.
6350
6351 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
6352             David Edelsohn  <edelsohn@gnu.org>
6353
6354         Revert:
6355         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
6356         already sign-extended.
6357
6358         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
6359         * config/rs6000/rs6000.c (logical_operand): Always compare op as
6360         HOST_WIDE_INT.
6361         (rs6000_emit_set_long_const): Avoid unnecessary shift.
6362         (output_profile_hook): Declare label_name const.
6363         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
6364         to match constraints.
6365
6366 2001-09-19  Stan Shebs  <shebs@apple.com>
6367
6368         * alias.c: Fix typos in comments.
6369         * sched-rgn.c (init_ready_list): Ditto.
6370         * unwind-dw2.c (uw_frame_state_for): Ditto.
6371         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
6372         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
6373         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
6374
6375 2001-09-19  Richard Henderson  <rth@redhat.com>
6376
6377         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
6378         to the exit block.
6379         * Makefile.in (cfg.o): Depend on TM_P_H.
6380
6381 2001-09-19  Richard Henderson  <rth@redhat.com>
6382
6383         * config/alpha/alpha.c (local_symbol_p): Split out from ...
6384         (local_symbolic_operand): ... here.
6385         (small_symbolic_operand): Check mode.
6386         (global_symbolic_operand): New.
6387         (input_operand): Reject symbolics if explicit relocs.
6388         (call_operand): Tidy.
6389         (alpha_legitimize_address): Use movdi_er_high_g.
6390         (alpha_expand_mov): Likewise.
6391         * config/alpha/alpha-protos.h: Update.
6392         * config/alpha/alpha.h (PREDICATE_CODES): Update.
6393         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
6394         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
6395         (UNSPECV_LDGP2): Remove.
6396         (all call patterns): Use 's' not 'i' for symbolic constraint.
6397         (call_osf call_value_osf): Use call_operand.
6398         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
6399         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
6400         (prologue_ldgp_1_er): Remove.
6401         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
6402         (builtin_setjmp_receiver_er patterns): Use them.
6403         (exception_receiver_er): Likewise.
6404
6405 2001-09-19  Richard Henderson  <rth@redhat.com>
6406
6407         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
6408
6409         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
6410         and NON_LOCAL_GOTO notes.
6411         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
6412         copy over CALL_INSN_FUNCTION_USAGE.
6413
6414 2001-09-18  Catherine Moore  <clm@redhat.com>
6415
6416         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
6417         Define as 0.
6418
6419 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
6420
6421         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
6422         new-style tm_file specification.  Specify correct tm_p_file,
6423         md_file, and out_file for s390x.
6424
6425         * config/s390/linux.h, linux64.h:  Don't include other target
6426         macro header files.  Now handled via tm_file.
6427
6428         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
6429         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
6430         are defined before use.
6431
6432 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
6433
6434         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
6435         code generation only for Gnu assembler.
6436
6437 2001-09-18  Catherine Moore  <clm@redhat.com>
6438
6439         * config/stormy16 (LIB_SPEC): Remove -lnosys.
6440
6441 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
6442
6443         * config/mips/mips.c (mips_frame_set): New.
6444         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
6445         a parallel frame-related expression with a set for each register.
6446
6447 2001-09-18  Philip Blundell  <philb@gnu.org>
6448
6449         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
6450         header files.
6451
6452 2001-09-17  Dale Johannesen  <dalej@apple.com>
6453
6454         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
6455         * config/rs6000/aix.h (FIXED_R2): Define.
6456         * config/rs6000/darwin.h (FIXED_R2): Define.
6457         * config/rs6000/sysv4.h (FIXED_R2): Define.
6458
6459 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
6460
6461         * except.c (dw2_build_landing_pads): New local
6462         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
6463         barrier after clobbers.  Fixes c++/4012.
6464
6465 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6466
6467         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
6468
6469 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
6470
6471         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
6472         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
6473
6474 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6475
6476         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
6477         alloca/strcpy.
6478
6479 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6480
6481         * cpphash.h (_cpp_lex_direct): New.
6482         * cpplex.c (_cpp_lex_token): Update.
6483         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
6484         and increment that pointer.
6485         * cppmacro.c (alloc_expansion_token): New.
6486         (lex_expansion_token): Lex macro expansion directly into
6487         macro storage.
6488
6489 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
6490
6491         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
6492
6493 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
6494
6495         * basic-block.h (free_bb_for_insn): Declare.
6496         * bb-reorder.c (label_for_bb): Use block_label.
6497         (emit_jump_to_block_after): Remove.
6498         (insert_intra_1): Do not update block_for_insn.
6499         (insert_inter_bb_scope_notes): Likewise; update bb->end
6500         * cfg.c (free_bb_for_insn): New.
6501         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
6502         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
6503         (commit_one_edge_insertion): Likewise.
6504         (commit_one_edge_insertion): Do not update BB boundary.
6505         (commit_edge_insertions): Do not call compute_bb_for_insn.
6506         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
6507         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
6508         (merge_blocks_move_successor_nojumps): Likewise.
6509         (try_crossjump_to_edge): Do not update block_for_insn.
6510         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
6511         * df.c (df_pattern_emit_later): Do not update BB boundary.
6512         (df_jump_pattern_emit_after): Likewise.
6513         (df_insn_move_before): Use emit_insn_before.
6514         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
6515          properly.
6516         (add_insn_after, add_insn_before, emit_insns_after): Update BB
6517         boundaries and basic_block_for_insn.
6518         (reorder_insns_nobb): Rename from reorder_insns.
6519         (reorder_insns): New.
6520         (emit_block_insn_before, emit_block_insn_after): Kill.
6521         * flow.c (check_function_return_warnings): Do not call
6522         compute_bb_for_insn; Do not free basic_block_for_insn.
6523         (attempt_auto_inc): Do not update basic_block_for_insn.
6524         * function.c (emit_return_into_block): Likewise;
6525         do not update BB boundaries.
6526         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
6527         (insert_insn_end_bb): Use emit_insn_before; Likewise.
6528         (pre_insert_copy_insn): Likewise.
6529         (update_ld_motion_notes): Likewise.
6530         (insert_insn_start_bb): Likewise.
6531         (replace_store_insn): Likewise.
6532         * ifcvt.c (noce_process_if_block): Likewise.
6533         (if_convert): Do not call compute_bb_for_insn.
6534         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
6535         Use emit_insn_before and emit_insn_after.
6536         * recog.c (split_all_insns): Do not update BB boundaries;
6537         Do not call compute_bb_for_insn.
6538         (peephole2_optimize): Do not update BB boundaries.
6539         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
6540         emit_insn_before.
6541         (emit_swap_insn): Likewise.
6542         (convert_regs_1): Likewise.
6543         * reload1.c (reload): Call compute_bb_for_insn.
6544         * rtl.h (reorder_insns_nobb): Declare.
6545         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
6546         * toplev.c (rest_of_compilation): Call free_bb_for_insn
6547         at places CFG is invalidated; do not call compute_bb_for_insn.
6548
6549         * cfg.c (expunge_block): Invalidate BB structure.
6550
6551         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
6552         array.
6553
6554         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
6555
6556 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6557
6558         * cpphash.h (_cpp_lex_token): Update prototype.
6559         * cpplex.c (_cpp_lex_token): New prototype.
6560         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
6561         lex_macro_node, read_flag, do_pragma_poison): Update.
6562         * cppmacro.c (cpp_get_token, parse_params,
6563         lex_expansion_token): Update.
6564
6565 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6566
6567         * cppmain.c (scan_translation_unit): Don't worry about
6568         putting a space after hashes.
6569         * cpplib.c (directive_diagnostics): New.
6570         (_cpp_handle_directive): Update to use directive_diagnostics.
6571         (run_directive): Don't toggle prevent_expansion.
6572         (do_line): Backup in case of the line extension.
6573         * cpplib.h (cpp_lexer_pos): Remove.
6574         * cppmacro.c (_cpp_create_definition): Precede a leading #
6575         with whitespace.
6576
6577 2001-09-15  Richard Henderson  <rth@redhat.com>
6578
6579         * c-typeck.c (comptypes): Handle zero-length arrays properly.
6580
6581 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6582
6583         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
6584
6585 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6586
6587         PR preprocessor/3571
6588         * tradcpp.c (handle_directive): Skip non-vertical space.
6589
6590 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6591
6592         * cppmain.c (setup_callbacks): Set line callback only
6593         if outputting preprocessed source.
6594
6595 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6596
6597         * collect2.c (main): Const-ification.
6598         * gcc.c (translate_options, process_command): Use xstrdup in
6599         lieu of xmalloc/strcpy.
6600         (main): Use concat in lieu of xmalloc/strcpy/strcat.
6601
6602 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6603
6604         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
6605         example.
6606
6607 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6608
6609         * scan-decls.c (scan_decls): Fix typo.
6610
6611 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6612
6613         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
6614         Split mlstring_pos into mls_line and mls_col.
6615         * cppinit.c (cpp_create_reader): Initialize line to 1.
6616         (cpp_destroy): Free tokenruns.
6617         (push_include): Don't update lexer_pos.
6618         * cpplex.c (unterminated, parse_string): Update.
6619         (lex_token): Don't update lexer_pos, update.
6620         * cpplib.c (if_stack): Save line instead of line + col.
6621         (start_directive, _cpp_do__Pragma, do_else, do_elif,
6622         push_conditional, _cpp_pop_buffer): Update.
6623         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
6624         (_cpp_create_definition): Update.
6625
6626 2001-09-15  Eric Christopher  <echristo@redhat.com>
6627
6628         * config/mips/abi64.h: Add support for MEABI.
6629
6630 2001-09-15  Eric Christopher  <echristo@redhat.com>
6631
6632         * config/mips/mips.md: Add unspec #2.
6633         (reload_indi): Use.
6634         (reload_outdi): Ditto.
6635         (reload_outsi): Ditto.
6636         (HILO_delay): New.
6637
6638 2001-09-15  Eric Christopher  <echristo@redhat.com>
6639             Jason Eckhardt  <jle@redhat.com>
6640
6641         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
6642         * config/mips/isa32-linux.h: New file.
6643         * config/mips/isa3264.h: Ditto.
6644         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
6645         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
6646         (output_block_mode): Support MEABI.
6647         (function_arg): Ditto. Fix floating point arg passing.
6648         (mips_va_start): Ditto.
6649         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
6650         processors.
6651         (mips_asm_file_start): Add new section to pass abi to gdb.
6652         (function_arg_pass_by_reference): Support MEABI.
6653         (mips_parse_cpu): Support mips32 and mips64 processors.
6654         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
6655         TARGET_MIPS5KC.  Support isa32 and isa64.
6656         (processor_type): Add r4kc, r5kc, r20kc.
6657         (GENERATE_MULT3_SI): New.
6658         (GENERATE_MULT3_DI): Ditto.
6659         (GENERATE_MULT3): Remove.
6660         (ISA_HAS_64BIT_REGS): Add isa == 64.
6661         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
6662         (ISA_HAS_MADD_MSUB): New.
6663         (ISA_HAS_CLZ_CLO): Ditto.
6664         (ISA_HAS_DCLZ_DCLO): Ditto.
6665         (ABI_GAS_ASM_SPEC): New.
6666         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
6667         (ASM_SPEC): Ditto.
6668         (LINK_SPEC): Ditto.
6669         (SUBTARGET_CC1_SPEC): Ditto.
6670         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
6671         (PAD_VARARGS_DOWN): Support MEABI.
6672         (HARD_REGNO_NREGS): Move to mips.c.
6673         (ASM_OUTPUT_IDENT): Add #undef.
6674         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
6675         (mulsi3): Use GENERATE_MULT3_SI.
6676         (mulsi3_mult3): Ditto.  Support mips32, mips64.
6677         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
6678         (mul_sub_si): New pattern.
6679         (unnamed splitters): New.
6680         (muldi3): Use GENERATE_MULT3_DI.
6681         (muldi3_internal2): Ditto.
6682         (movdicc): Support mips32.
6683         * config/mips/t-isa3264: New file.
6684
6685 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
6686
6687         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
6688         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
6689         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
6690
6691         * reorg.c (fill_slots_from_thread): After call to
6692         steal_delay_list_from_target, update own_thread as new_thread may
6693         have branched.
6694
6695 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6696
6697         * cpperror.c (print_location): Take line and column, for
6698         default positioning use the previously lexed token.
6699         (_cpp_begin_message): Take line and column.
6700         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
6701         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
6702         * cpphash.h (_cpp_begin_message): Update prototype.
6703         * cppinit.c (push_include): Don't set output line.
6704         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
6705         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
6706         (do_pragma): Kludge for front ends.  Don't expand macros at all.
6707         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
6708         (struct cpp_token): Remove output_line.
6709         (struct cpp_callbacks): New member line_change.
6710         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
6711         cpp_get_token): Preserve BOL flag.
6712         (cpp_get_line): Remove.
6713         (_cpp_backup_tokens): Remove useless abort().
6714         * cppmain.c (cb_line_change): New.
6715         (scan_translation_unit): Don't worry about starting new lines here.
6716         * scan-decls.c (scan_decls): Update.
6717         * c-lex.c (c_lex, init_c_lex): Update.
6718         (cb_line_change, src_lineno): New.
6719
6720 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
6721
6722         * tree.c (append_random_chars): Generate the random
6723         characters in a reproducable fashion.
6724
6725 2001-09-14  Richard Henderson  <rth@redhat.com>
6726
6727         * config/i386/i386.c (internal_label_prefix): New.
6728         (internal_label_prefix_len): New.
6729         (override_options): Set them.
6730         (local_symbolic_operand): New.
6731         (legitimate_pic_address_disp_p): Use it.
6732         (legitimize_pic_address): Likewise.
6733
6734 2001-09-14  Marc Espie <espie@openbsd.org>
6735
6736         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
6737         correctly.
6738
6739 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6740
6741         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
6742         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
6743
6744 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
6745
6746         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
6747         invocation of SUBREG_REGNO_OFFSET.
6748
6749         * haifa-sched.c: Fix typo in FSF copyright statement.
6750         * sched-deps.c: Fix typo in FSF copyright statement.
6751         * sched-ebb.c: Fix typo in FSF copyright statement.
6752         * sched-rgn.c: Fix typo in FSF copyright statement.
6753         * sched-vis.c: Fix typo in FSF copyright statement.
6754
6755         * config.gcc: Move inclusion of arm elf specific header files
6756         from the files themselves into the tm_file variable.  Make
6757         sure that elfos.h is included before target specific elf
6758         headers.
6759         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
6760         already defined.
6761         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
6762         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
6763         ASM_OUTPUT_CASE_LABEL): Protect definition.
6764         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
6765         not already defined.
6766         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
6767         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
6768         Remove duplicate definition.
6769         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
6770         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
6771         (RDATA_SECTION_FUNCTION): Remove redundant definition.
6772         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
6773         Remove inclusion of arm/elf.h.
6774         * config/arm/unknown-elf.h: as for conix-elf.h.
6775         (STARTFILE_SPEC): Include crti.o and crtn.o.
6776         * config/arm/linux-elf.h: as for conix-elf.h.
6777         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
6778         * config/arm/strongarm-elf.h: Remove inclusion of
6779         unknown-elf.h.
6780         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
6781         * config/arm/unknown-elf-oabi.h: Remove inclusion of
6782         unknown-elf.h and elf.h.
6783         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
6784         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
6785         ASM_WEAKEN_LABEL): Remove redundant definition.
6786         * config/arm/elf.h: Test for inclusion of elfos.h
6787         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
6788         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
6789         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
6790         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
6791         redundant definition.
6792         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
6793         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
6794         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
6795         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
6796         Add rules to build crti.o and crtn.o
6797         * crti.asm: New file.
6798         * crtn.asm: New file.
6799
6800 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6801
6802         * c-parse.in (_yylex): Use _cpp_backup_tokens.
6803         * cpphash.h (struct tokenrun): Add prev.
6804         (struct lexer_state): Remove bol.
6805         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
6806         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
6807         : Remove.
6808         * cppinit.c (cpp_create_reader): Don't set bol.
6809         (cpp_destroy): Don't free lookaheads.
6810         * cpplex.c (lex_directive): Remove.
6811         (next_tokenrun): Update.
6812         (_cpp_lex_token): Clean up logic.
6813         (lex_token): Update to return a pointer to lexed token, since it
6814         can move to the start of the buffer.  Simpify newline handling.
6815         * cpplib.c (SEEN_EOL): Update.
6816         (skip_rest_of_line): Remove lookahead stuff.
6817         (end_directive): Line numbers are already incremented.  Revert
6818         to start of lexed token buffer if we can.
6819         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
6820         parse_answer): Use _cpp_backup_tokens.
6821         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
6822         instead.  Don't check for EOL.
6823         (do_include_common, do_line, do_pragma_system_header): Use
6824         skip_rest_of_line.
6825         * cpplib.h (BOL, _cpp_backup_tokens): New.
6826         * cppmacro.c (save_lookahead_token, take_lookahead_token,
6827         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
6828         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
6829         (builtin_macro): Don't use cpp_get_line.
6830         (cpp_get_line): Short term kludge.
6831         (parse_arg): Handle directives in arguments here.  Back up when
6832         appropriate.  Store EOF at end of argument list.
6833         (funlike_invocation_p): Use _cpp_backup_tokens.
6834         (push_arg_context): Account for EOF at end of list.
6835         (cpp_get_token): Remove lookahead stuff.  Update.
6836
6837 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6838
6839         * c-parse.in (yyerror): Const-ification and/or static-ization.
6840         * c-typeck.c (push_member_name): Likewise.
6841         * collect2.c (main): Likewise.
6842         * dbxout.c (dbxout_parms): Likewise.
6843         * diagnostic.c (format_with_decl): Likewise.
6844         * dwarf2out.c (output_ranges): Likewise.
6845         * dwarfout.c (fundamental_type_code): Likewise.
6846         * except.c (dw2_output_call_site_table): Likewise.
6847         * gcc.c (do_spec_1): Likewise.
6848         * genopinit.c (optabs): Likewise.
6849         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
6850         gen_declaration_1, handle_impent): Likewise.
6851         * protoize.c (default_include, in_system_include_dir, abspath):
6852         Likewise.
6853         * sched-vis.c (visualize_stall_cycles): Likewise.
6854         * sdbout.c (plain_type_1, sdbout_end_function,
6855         sdbout_end_epilogue): Likewise.
6856         * varasm.c (decode_reg_name): Likewise.
6857
6858         * 1750a.c (mod_regno_adjust): Likewise.
6859         * alpha.c (alpha_write_one_linkage,
6860         unicosmk_output_default_externs): Likewise.
6861         * arm.c (arm_condition_codes): Likewise.
6862         * arm.h (arm_condition_codes): Likewise.
6863         * avr.c (output_movsisf, encode_section_info): Likewise.
6864         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
6865         Likewise.
6866         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
6867         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
6868         * m88k.c (output_function_profiler): Likewise.
6869         * mips.c (mips_output_conditional_branch): Likewise.
6870         * ns32k.c (ns32k_out_reg_names): Likewise.
6871         * ns32k.h (ns32k_out_reg_names): Likewise.
6872         * pj.c (pj_output_rval): Likewise.
6873         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
6874         * sparc.c (sparc_flat_function_prologue,
6875         sparc_flat_function_epilogue): Likewise.
6876
6877 2001-09-13  Markus Werle <numerical.simulation@web.de>
6878             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6879
6880         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
6881         Aachen University of Technology".
6882
6883 2001-09-13  Andreas Schwab  <schwab@suse.de>
6884
6885         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
6886         C99.
6887
6888 2001-09-13  Richard Henderson  <rth@redhat.com>
6889
6890         * config/alpha/alpha.c (small_symbolic_operand): New.
6891         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
6892         (some_operand, input_operand): Don't handle HIGH.
6893         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
6894         (alpha_expand_mov): Likewise.
6895         (print_operand) [H]: Just print HIGH symbol.
6896         (print_operand_address): Handle small data.
6897         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
6898         (TARGET_SWITCHES): Add -msmall-data/large-data.
6899         (PIC_OFFSET_TABLE_REGNUM): New.
6900         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
6901         (PREDICATE_COES): Update.
6902         * config/alpha/alpha.md (adddi_er_high): New.
6903         (adddi_er_low): Handle small data.
6904         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
6905         prefer .sdata to .rodata.
6906         (SELECT_RTX_SECTION): Likewise.
6907
6908 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
6909
6910         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
6911         defining __size_t and leaving size_t undefined.
6912
6913 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
6914
6915         * basic-block.h (expunge_block): Declare.
6916         * cfg.c (expunge_block): Remove static declaration.
6917
6918 2001-09-12  Richard Henderson  <rth@redhat.com>
6919
6920         * integrate.c (copy_insn_list): Copy label name from
6921         NOTE_INSN_DELETED_LABEL.
6922
6923 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6924
6925         * c-common.c (c_tree_code_name): Const-ification.
6926         * c-decl.c (c_decode_option): Likewise.
6927         * c-typeck.c (warn_for_assignment): Likewise.
6928         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
6929         Likewise.
6930         * cppinit.c (output_deps): Likewise.
6931         * dependence.c (dependence_string, direction_string): Likewise.
6932         * dwarf2out.c (output_ranges): Likewise.
6933         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
6934         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
6935         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
6936         standard_startfile_prefix, standard_startfile_prefix_1,
6937         standard_startfile_prefix_2, tooldir_base_prefix,
6938         standard_bindir_prefix, find_a_file): Likewise.
6939         * genattrtab.c (make_length_attrs): Likewise.
6940         * gencheck.c (tree_codes): Likewise.
6941         * genemit.c (gen_split): Likewise.
6942         * genrecog.c (special_mode_pred_table): Likewise.
6943         * graph.c (graph_ext): Likewise.
6944         * protoize (default_include): Likewise.
6945         * reload.c (reload_when_needed_name): Likewise.
6946         * sched-vis.c (visualize_stall_cycles): Likewise.
6947         * tlink.c (recompile_files): Likewise.
6948         * toplev.c (decode_g_option): Likewise.
6949         * tradcpp.c (output_deps): Likewise.
6950         * varasm.c (decode_reg_name): Likewise.
6951
6952         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
6953         Const-ification.
6954         * arm.md: Likewise.
6955         * avr.c (avr_regnames, encode_section_info): Likewise.
6956         * c4x.c (float_reg_names): Likewise.
6957         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
6958         * elfos.h (const_section): Likewise.
6959         * i386.c (ix86_comp_type_attributes): Likewise.
6960         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
6961         * ia64/aix.h (UNIQUE_SECTION): Likewise.
6962         * ia64.c (type_names): Likewise.
6963         * m68hc11.c (reg_class_names): Likewise.
6964         * m88k.c (m_options): Likewise.
6965         * mips.c (mips_output_conditional_branch, mips_unique_section):
6966         Likewise.
6967         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6968         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
6969         ultra_code_names): Likewise.
6970         * sparc.h (OVERRIDE_OPTIONS): Likewise.
6971
6972 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
6973
6974         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
6975         Use --fatal-warnings option for gas.
6976         * configure: Rebuilt.
6977
6978 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6979
6980         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
6981
6982 2001-09-11  Jim Wilson  <wilson@redhat.com>
6983
6984         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
6985
6986 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
6987
6988         * builtins.c (c_strlen): Treat an offset too large for a
6989         HOST_WIDE_INT as out of range.
6990
6991 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
6992
6993         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
6994         (EDGE_CRITICAL_P): New predicate.
6995         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
6996         handling.
6997         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
6998         (dump_edge_info): Remove "crit".
6999         * cfganal.c (mark_critical_edges): Kill.
7000         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
7001         * cfgcleanup.c (cleanup_cfg): Likewise.
7002         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
7003         (find_spanning_tree): Likewise.
7004         * reg-stack.c (convert_regs_1): Likewise.
7005         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
7006
7007         * basic-block.h (create_basic_block_structure): New.
7008         (create_basic_block): Update prototype.
7009         (force_nonfallthru): New.
7010         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
7011         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
7012         handle updating of block_for_insn, creating of empty BBs and BBs at
7013         the end of INSN chain.
7014         (create_basic_block): New function.
7015         (split_block): Use create_basic_block.
7016         (force_nonfallthru_and_redirect): Break out from ...; cleanup
7017         (redirect_edge_and_branch_force): ... here.
7018         (force_nonfallthru): New.
7019         (split_edge): Rewrite to use force_nonfallthru and create_block.
7020         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
7021         (find_basic_blocks): Free basic_block_for_insn.
7022         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
7023
7024         * cfg.c: Fix formating.
7025         * cfgcleanup.c: Fix formating.
7026         (merge_blocks, tail_recursion_label_p): Return bool.
7027         (merge_blocks_move_predecessor_nojumps,
7028          merge_blocks_move_successor_nojumps): Return void.
7029
7030 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
7031
7032         * configure.in: Check whether assembler supports section merging.
7033         * config.in: Rebuilt.
7034         * configure: Rebuilt.
7035         * varasm.c (variable_section, output_constant_pool): Pass alignment
7036         to SELECT_SECTION and SELECT_RTX_SECTION.
7037         (mergeable_string_section): New.
7038         (mergeable_constant_section): New.
7039         (default_elf_asm_named_section): Output SECTION_MERGE and
7040         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7041         * output.h (mergeable_string_section): New.
7042         (mergeable_constant_section): New.
7043         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
7044         * toplev.c (flag_merge_constants): New.
7045         (f_options): Add -fmerge-constants and -fmerge-all-constants
7046         options.
7047         (toplev_main): Default to -fno-merge-constants if not optimizing.
7048         * flags.h (flag_merge_constants): Add extern.
7049         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
7050         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
7051         argument.
7052         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
7053         Define if assembler has working .subsection -1 support.
7054         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
7055         Put constant into special SHF_MERGE sections if the linker should
7056         attempt to merge duplicates.
7057         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
7058         macro argument.
7059         Put constant into special SHF_MERGE sections if the linker should
7060         attempt to merge duplicates.
7061         * config/alpha/elf.h: Likewise.
7062         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
7063         has working .subsection -1 support.
7064         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
7065         SELECT_SECTION.
7066         * config/svr3.h: Likewise.
7067         * config/darwin.h: Likewise.
7068         * config/arm/aof.h: Likewise.
7069         * config/arm/linux-elf.h: Likewise.
7070         * config/avr/avr.h: Likewise.
7071         * config/c4x/c4x.h: Likewise.
7072         * config/d30v/d30v.h: Likewise.
7073         * config/i386/dgux.h: Likewise.
7074         * config/i386/osfrose.h: Likewise.
7075         * config/i386/sco5.h: Likewise.
7076         * config/i386/svr3gas.h: Likewise.
7077         * config/ia64/aix.h: Likewise.
7078         * config/m32r/m32r.h: Likewise.
7079         * config/m68k/m68k.h: Likewise.
7080         * config/m88k/dgux.h: Likewise.
7081         * config/m88k/m88k.h: Likewise.
7082         * config/mcore/mcore-pe.h: Likewise.
7083         * config/mips/mips.h: Likewise.
7084         * config/pa/pa.h: Likewise.
7085         * config/pa/pa-linux.h: Likewise.
7086         * config/romp/romp.h: Likewise.
7087         * config/rs6000/sysv4.h: Likewise.
7088         * config/rs6000/xcoff.h: Likewise.
7089         * config/s390/linux.h: Likewise.
7090         * config/sparc/sparc.h: Likewise.
7091         * config/sparc/sysv4.h: Likewise.
7092         * config/stormy16/stormy16.h: Likewise.
7093         * config/v850/v850.h: Likewise.
7094         * config/vax/vms.h: Likewise.
7095         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
7096         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7097         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
7098         default_elf_asm_named_section for SHF_MERGE sections.
7099
7100 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
7101
7102         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
7103         is OK.
7104
7105 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
7106
7107         * c-common.c (split_specs_attrs): Allow for empty attributes with
7108         empty TREE_PURPOSE.  Fixes PR c/4294.
7109
7110 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
7111
7112         * basic-block.h (cached_make_edge, make_single_succ): New.
7113         (make_edge): Remove first parameter.
7114         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
7115         * cfg.c (cached_make_edge): Rename from make_edge; return newly
7116         created edge; use obstack allocation.
7117         (make_edge, make_single_succ_edge): New.
7118         (first_removed_edge): New static variable.
7119         (init_flow): Initialize first_removed_edge and n_edges.
7120         (clear_edges): Use remove_edge.
7121         (flow_delete_block): Likewise.
7122         (remove_edge): Add removed edges to the removed edges list.
7123         (split_block, redirect_edge_and_branch_force, split_edge):
7124         Use make_edge.
7125         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
7126         (add_noreturn_fake_exit_edges): Likewise.
7127         (connect_infinite_loops_to_exit): Liekwise.
7128         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
7129         Use cached_make_edge.
7130         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
7131         * profile.c (branch_prob): Update make_edge call.
7132         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7133
7134 2001-09-11  Richard Henderson  <rth@redhat.com>
7135
7136         * config/alpha/alpha.c: Tidy formatting.
7137         (local_symbolic_operand): Verify mode.
7138         (alpha_sa_mask): Ignore unicos for eh_return.
7139         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
7140         * config/alpha/alpha.md (umk divsi patterns): Remove.
7141         (extendsfdf2): Remove unicos check.
7142         (tablejump): Merge vms and unicos code; always use direct set
7143         plus label_ref use.
7144
7145 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7146
7147         * config.gcc (alpha*-*-unicosmk*): New target.
7148
7149         * config/alpha/alpha-protos.h (symbolic_operand,
7150         unicosmk_add_call_info_word, unicosmk_add_extern,
7151         unicosmk_defer_case_vector, unicosmk_unique_section,
7152         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
7153         unicosmk_asm_file_start, unicosmk_asm_file_end,
7154         unicosmk_output_common): Declare.
7155
7156         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
7157         direct_return, function_arg, alpha_va_start, alpha_va_arg,
7158         alpha_does_function_need_gp, alpha_end_function): Support Cray
7159         Unicos/Mk.
7160         (alpha_init_machine_status, alpha_mark_machine_status,
7161         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
7162         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
7163         unicosmk_asm_named_section, unicosmk_insert_attributes,
7164         unicosmk_section_type_flags, symbolic_operand,
7165         unicosmk_output_module_name, unicosmk_output_default_externs,
7166         unicosmk_output_dex, unicosmk_output_externs,
7167         unicosmk_output_addr_vec, unicosmk_ssib_name,
7168         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
7169         unicosmk_asm_file_end, unicosmk_output_common,
7170         unicosmk_section_type_flags, unicosmk_unique_section,
7171         unicosmk_add_call_info_word, unicosmk_text_section,
7172         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
7173         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
7174         unicosmk_dex_count, unicosmk_special_name): New.
7175         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
7176         TARGET_ABI_UNICOSMK.
7177         (get_aligned_mem, alpha_expand_unaligned_load,
7178         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
7179         alpha_expand_unaligned_store_words): Support big-endian mode.
7180         (print_operand): Likewise. New format specifier 't'. Use
7181         TARGET_AS_SLASH_BEFORE_SUFFIX.
7182         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
7183         (alpha_pv_save_size): Update with above change.
7184         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
7185         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
7186         Unicos/Mk.
7187
7188         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
7189         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
7190         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
7191         (EXTRA_CONSTRAINT): New constraint 'U'.
7192         (PREDICATE_CODES): Add symbolic_operand.
7193
7194         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
7195         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
7196         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
7197         (integer division and modulus patterns): Split in default and
7198         Unicos/Mk versions.
7199         (*divmodsi_internal, *divmoddi_internal): Disable for
7200         TARGET_ABI_UNICOSMK.
7201         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
7202         little-endian and big-endian versions.
7203         (ext, ins, msk): Likewise.
7204         (extv, extzv, insv): Support big-endian mode.
7205         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
7206         (call_umk, call_value_umk, *call_umk, tablejump_umk,
7207         *tablejump_umk_internal, *call_value_umk): New.
7208         (*movdi_nofix): Add pattern for loading an address into a register on
7209         TARGET_ABI_UNICOSMK.
7210         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
7211         (umk_mismatch_args, arg_home_umk): New.
7212         (various insns): Don't use mov, fmov, nop, fnop and unop.
7213         (realign): Support TARGET_ABI_UNICOSMK.
7214
7215         * config/alpha/unicosmk.h: New file.
7216         * config/alpha/t-unicosmk: New file.
7217
7218         * fixinc/inclhack.def (unicosmk_restrict): New.
7219         * fixinc/fixincl.x: Regenerate.
7220
7221         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
7222         (wchar_t): Check for and define __WCHAR_T__.
7223
7224 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
7225
7226         * combine.c (simplify_shift_const): Treat shifts by the mode
7227         size as undefined.
7228
7229 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7230
7231         * cpphash.h (struct tokenrun): New.
7232         (struct cpp_context): New member bol.
7233         (struct cpp_reader): New members.
7234         (_cpp_init_tokenrun): New.
7235         * cppinit.c (cpp_create_reader): Set up the token runs.
7236         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
7237         (lex_token): New internalised version of _cpp_lex_token.  Don't
7238         handle directives or the multiple include opimisation here any
7239         more.  Simply lex a token.
7240         * cpplib.c (run_directive): Clear bol.
7241         (_cpp_pop_buffer): Set bol.
7242         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
7243         arguments.
7244
7245 2001-09-11  Michael Meissner  <meissner@redhat.com>
7246
7247         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
7248         give an error if the user uses -mfp32.
7249         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
7250         default options.
7251         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
7252         floating point register size.
7253         (EXTRA_SPECS): Add CPP_FPR_SPEC.
7254
7255         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
7256         HOST_WIDE_INT_PRINT_DEC to properly print the result of
7257         int_size_in_bytes.
7258         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7259         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7260
7261 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
7262
7263         * dbxout.c (dbxout_parms): Fix typo in comment.
7264         * unroll.c (loop_find_equiv_value): Ditto.
7265         * toplev.c (rest_of_compilation): Ditto.
7266         * loop.c (scan_loop): Ditto.
7267         * dwarf2out.c (struct dw_fde_struct): Ditto.
7268
7269 2001-09-10  Zack Weinberg  <zackw@panix.com>
7270
7271         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
7272         copying identifier when we're just going to throw it away.
7273         (parse_identifier_slow): New routine to handle abnormal cases.
7274         (_cpp_lex_token): Update call site.
7275
7276         * hashtable.c (ht_lookup): Don't assume that the string we've
7277         been given is NUL-terminated.
7278         * system.h: #define __builtin_expect(a, b) to (a) if not
7279         GCC >=3.0.
7280
7281 2001-09-10  Michael Meissner  <meissner@redhat.com>
7282
7283         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
7284         binutils, gdb.
7285
7286 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
7287
7288         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
7289
7290 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7291
7292         * builtins.c (c_getstr): Correct thinko in last change and further
7293         cleanup.
7294
7295 2001-09-10  Tim Freeman <tim@fungibole.com>
7296
7297         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
7298         into varray's and register them as roots with the garbage
7299         collector so they are not collected too soon.
7300
7301 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
7302
7303         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
7304         New.
7305         * basic-block.h (flow_obstack, label_value_list,
7306         tail_recursion_label_list): Declare
7307         (tidy_fallthru_edges): Declare.
7308         (expunge_block, last_loop_beg_note): Delete.
7309         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
7310         * cfg.c: New file
7311         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
7312         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
7313         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
7314         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
7315         expunge_block, flow_delete_block, compute_bb_for_insn,
7316         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
7317         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
7318         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
7319         try_redirect_by_replacing_jump, last_loop_beg_note,
7320         redirect_edge_and_branch, redirect_edge_and_branch_force,
7321         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
7322         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
7323         commit_edge_insertions, dump_flow_info, debug_flow_info,
7324         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
7325         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
7326         Move here from flow.c
7327         * cfganal.c: New file.
7328         (forwarder_block_p, can_fallthru, mark_critical_edges,
7329          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
7330          find_unreachable_blocks, create_edge_list, free_edge_list,
7331          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
7332          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
7333          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
7334          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
7335          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
7336          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
7337         Move here from flow.c
7338         * cfgbuild.c: New file
7339         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
7340          make_edges, find_basic_blocks_1, find_basic_blocks,
7341          find_sub_basic_blocks): Move here from flow.c
7342         * cfgcleanup.c: New file.
7343         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
7344          merge_blocks_move_predecessor_nojumps,
7345          merge_blocks_move_successor_nojumps, merge_blocks,
7346          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
7347          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
7348         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
7349         if succeeded.
7350         * cfgloop.c: New file
7351         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
7352          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
7353          flow_loop_exit_edges_find, flow_loop_nodes_find,
7354          flow_loop_pre_header_scan, flow_loop_pre_header_find,
7355          flow_loop_tree_node_add, flow_loops_tree_build,
7356          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
7357          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
7358         Move here from flow.c
7359         * flow.c: Remove everything moved elsewhere
7360         * output.h (cleanup_cfg): Return bool.
7361
7362         * bb-reorder.c (reorder_block_def): Remove 'index'.
7363         (insert_intra_1): Add argument BB, set block for new note.
7364         (make_reorder_chain): Do not depdent on BB indexes.
7365         (make_reorder_chain_1): Do not use BB indexes.
7366         (label_for_bb): Likewise; set BB for new insn.
7367         (emit_jump_to_block_after): Likewise.
7368         (fixup_reoder_chain): Sanity check that all basic blocks
7369         are chained; verify newly created insn chain; remove
7370         undocnitional jump simplifying; Do not use BB indexes;
7371         properly initialize count and frequency information;
7372         dump reordered sequence.
7373         (insert_intra_bb_scope_notes): update call of insert_intra_1.
7374         (insert_inter_bb_scope_notes): Set block for new insn.
7375         (reorder_basic_blocks): Dump flow info before reoredering.
7376
7377 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7378
7379         * alias.c (clear_reg_alias_info): Use K&R format definition.
7380         Avoid unsigned warning.
7381         * builtins.c: Use "unsigned int", not "unsigned".
7382         (target_char_cast): Use host_integerp and tree_low_cst.
7383         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
7384         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
7385         (c_getstr): Likewise.
7386         (std_expand_builtin_va_arg): Use int_size_in_bytes.
7387         (builtin_memcpy_read_str): Avoid unsigned warning.
7388         (expand_builtin_memcpy): Alignments are unsigned.
7389         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
7390         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
7391         * predict.c (expensive_function_p): LIMIT now unsigned.
7392         * resource.c (mark_target_live_regs): Make some vars unsigned.
7393         * sdbout.c: Use "unsigned int", not "unsigned".
7394         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
7395         (sdbout_source_line): Likewise.
7396         (sdbout_record_type_name): Remove "const" for NAME declaration.
7397         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
7398
7399 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
7400
7401         * calls.c (store_one_arg): Expand comment.
7402
7403 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7404
7405         * calls.c (store_one_arg): Make sure that the entire argument is
7406         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
7407
7408 2001-09-09  Richard Henderson  <rth@redhat.com>
7409
7410         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
7411
7412 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
7413
7414         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
7415
7416 2001-09-09  Richard Henderson  <rth@redhat.com>
7417
7418         * config/alpha/alpha.c (alpha_next_sequence_number): New.
7419         (alpha_this_literal_sequence_number): New.
7420         (alpha_this_gpdisp_sequence_number): New.
7421         (some_operand, input_operand): Add HIGH.
7422         (local_symbolic_operand): New.
7423         (alpha_encode_section_info): New.
7424         (alpha_legitimate_address_p): Allow LO_SUM.
7425         (alpha_legitimize_address): Generate HIGH+LO_SUM.
7426         (alpha_expand_mov): Likewise.
7427         (secondary_reload_class): Check memory_operand not general_operand
7428         for FP_REGS test.
7429         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
7430         (alpha_expand_unaligned_store): Likewise.
7431         (alpha_expand_unaligned_load_words): Likewise.
7432         (alpha_expand_unaligned_store_words): Likewise.
7433         (alpha_expand_block_clear): Likewise.
7434         (print_operand): Handle %#, %*, %H.
7435         (print_operand_address): Handle LO_SUM.
7436         (find_lo_sum): New.
7437         (alpha_does_function_need_gp): Use it.
7438         (alpha_expand_block_move): Fix signed compare warnings.
7439         (alpha_sa_mask, alpha_align_insns): Likewise.
7440         * config/alpha/alpha-protos.h: Update.
7441         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
7442         (MASK_EXPLICIT_RELOCS): New.
7443         (TARGET_SWITCHES): Add -mexplicit-relocs.
7444         (EXTRA_CONSTRAINT): Add 'T'.
7445         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
7446         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
7447         (ENCODE_SECTION_INFO): Out line.
7448         (REDO_SECTION_INFO_P): New.
7449         (STRIP_NAME_ENCODING): New.
7450         (ASM_OUTPUT_LABELREF): New.
7451         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
7452         (PREDICATE_CODES): Update.
7453         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
7454         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
7455         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
7456         builtin_setjmp_receiver_er, exception_receiver_1_er,
7457         call_value_osf_1_er): New patterns.
7458         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
7459         (movqi, movhi, movsi): Add explicit $31 base register to lda.
7460         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
7461         (FINAL_PRESCAN_INSN): New.
7462
7463 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
7464
7465         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
7466
7467 2001-09-08  Andreas Jaeger  <aj@suse.de>
7468
7469         * i386.h (TARGET_SWITCHES): Fix description.
7470
7471 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
7472
7473         * rs6000.c (num_insns_constant): Compute number of instructions
7474         more accurately.
7475
7476         * doc/install.texi: Explain AIX exception handling work-around.
7477         Update URL for AIX fixes.
7478
7479 2001-09-07  Jim Wilson  <wilson@redhat.com>
7480
7481         * alias.c (clear_reg_alias_info): New.
7482         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
7483         * rtl.h (clear_reg_alias_info): Declare.
7484
7485 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7486
7487         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
7488         available.
7489         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
7490         (m16m,edivm,emulm): Change declaration to match definition.
7491
7492 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
7493
7494         * reload.c (push_reload): Check for subreg_lowpart_p instead of
7495         SUBREG_BYTE being 0 when determining if the inner part of a subreg
7496         can be reloaded.
7497
7498 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7499
7500         * c-common.c (signed_or_unsigned_type): Handle machine mode types
7501         which have no corresponding C type.
7502         * fold_const.c (target_isinf,target_isnan,target_negative): Update
7503         the representation of 64-bit doubles to work with 64-bit ints.
7504
7505 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
7506
7507         * config/mips/mips.c (override_options): Do not override ISA when ABI
7508         specified if MIPS_CPU_STRING_DEFAULT was specified.
7509
7510 2001-09-07  Richard Henderson  <rth@redhat.com>
7511
7512         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
7513         (express_from_1): Wrap lines.
7514         * rtlanal.c (commutative_operand_precedence): Rename from
7515         operand_preference; export.
7516         * rtl.h: Declare it.
7517         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
7518         (simplify_binary_operation): Invoke simplify_plus_minus on
7519         (CONST (PLUS ...)) as well.
7520         (struct simplify_plus_minus_op_data): New.
7521         (simplify_plus_minus_op_data_cmp): New.
7522         (simplify_plus_minus): Use them.  Avoid infinite recursion with
7523         simplify_binary_operation wrt CONST.
7524
7525 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
7526
7527         * h8300-protos.h (general_operand_dst_push): Remove.
7528         * h8300.c (general_operand_dst_push): Likewise.
7529         * h8300.h (OK_FOR_T): Likewise.
7530         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
7531         * h8300.md (pushqi_h8300): New.
7532         (pushqi_h8300hs): Likewise.
7533         (pushqi): Likewise.
7534         (pushhi_h8300): Likewise.
7535         (pushhi_h8300hs): Likewise.
7536         (pushhi): Likewise.
7537
7538 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7539
7540         * genattrtab.c (attr_printf): First arg is unsigned.
7541         Clean up formatting of callers.
7542
7543 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
7544
7545         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
7546         registers.
7547
7548 2001-09-07  Andreas Jaeger  <aj@suse.de>
7549
7550         * i386.h (TARGET_SWITCHES): Fix descriptions.
7551
7552 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7553
7554         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
7555
7556 2001-09-06  Ira Ruben  <ira@apple.com>
7557
7558         Remove OP_IDENTIFIER.
7559         * tree.def (OP_IDENTIFIER): Remove.
7560         * tree.c (tree_node_kind enum): Remove op_id_kind.
7561         (tree_node_kind_names): Remove "op_identifiers".
7562         (make_node): Remove OP_IDENTIFIER test.
7563         (build_op_identifier): Removed because it isn't being used.
7564         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
7565         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
7566
7567 2001-09-06  Richard Henderson  <rth@redhat.com>
7568
7569         * simplify-rtx.c (simplify_binary_operation): Revert last change.
7570
7571 2001-09-06  Richard Henderson  <rth@redhat.com>
7572
7573         * simplify-rtx.c (simplify_binary_operation): Simplify contents
7574         of CONST.
7575
7576 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7577
7578         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
7579         number used for CR register.
7580
7581 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
7582                           Joern Rennecke (amylaar@cygnus.com)
7583
7584         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
7585         * h8300.c (initial_offset): Handle offset between RP and FP.
7586         (h8300_return_addr_rtx): New function.
7587         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
7588         return register.
7589         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
7590         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7591         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
7592         (CAN_ELIMINATE, REGISTER_NAMES):
7593         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
7594
7595 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
7596
7597         Remove TYPE_NONCOPIED_PARTS.
7598         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
7599         (struct tree_type): Remove noncopied_parts.
7600         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
7601         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
7602         (fixed_type_p): Remove.
7603         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
7604         (expand_expr, MODIFY_EXPR): Likewise.
7605         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
7606         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
7607
7608 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
7609
7610         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
7611         compiler warnings.
7612         (mask64_operand): Likewise.
7613         (includes_rldic_lshift_p): Likewise.
7614         (includes_rldicr_lshift_p): Likewise.
7615
7616 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
7617
7618         * objc/objc-act.c (build_message_expr): If a class method cannot
7619         be found, do not issue a warning if a corresponding instance
7620         method exists in the root class.
7621
7622 2001-09-05  Richard Henderson  <rth@redhat.com>
7623
7624         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
7625
7626 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
7627
7628         * function.c (ggc_mark_struct_function): Mark f->outer.
7629         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
7630         * integrate.c (output_inline_function): ... not here.
7631
7632 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
7633
7634         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
7635
7636         * i386.c (size_cost): New static variable.
7637         (override_function): Use size_cost when -Os is specified.
7638
7639         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
7640         properly;  Use current_function_calls_eh_return.
7641         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
7642         use leave to avoid dependency chain.
7643
7644         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
7645         get BB loop_depth instead of computing it from LOOP notes.
7646
7647         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
7648
7649 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7650
7651         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7652         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
7653         UNALIGNED_DOUBLE_INT_ASM_OP): Define
7654
7655 2001-09-05  Jeffrey A Law  (law@cygnus.com)
7656             Jason Merrill (jason@redhat.com)
7657
7658         * stor-layout.c (layout_type): Complain if an array's size can
7659         not be represented in a size_t.
7660
7661         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
7662
7663 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
7664
7665         * gcc.c: (process_command) Add parentheses around assignment
7666         used as truth value.
7667
7668 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
7669
7670         * config/mips/mips.c (save_restore_insns): Don't mark any register
7671         save slots as unchanging if current_function_calls_eh_return.
7672
7673 2001-09-05  Richard Henderson  <rth@redhat.com>
7674
7675         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
7676         * config/alpha/alpha-protos.h: Declare it.
7677         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
7678         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
7679         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
7680         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
7681         (REG_OK_FOR_BASE_P): Select one of the above.
7682
7683 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
7684
7685         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
7686         (crti.o): Prefix name of object file with $(T).
7687         (crtn.o): Likewise.
7688
7689 2001-09-05  David S. Miller  <davem@redhat.com>
7690
7691         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7692         * config/sparc/linux64.h: Likewise.
7693
7694 2001-09-05  Andreas Jaeger  <aj@suse.de>
7695
7696         * doc/invoke.texi (i386 Options): -mwide-multiply is not
7697         available anymore, remove the documentation.
7698         (i386 Options): Fix typo, cleanup index entries.
7699
7700         * prefix.c (concat): Remove, we can use the version from liberty.
7701
7702 2001-09-05  Richard Henderson  <rth@redhat.com>
7703
7704         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
7705         New functions split out of md file expanders.
7706         * config/alpha/alpha-protos.h: Declare them.
7707         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
7708
7709 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7710
7711         * cppmacro.c (funlike_invocation_p): No need to restore context.
7712
7713 2001-09-04  Richard Henderson  <rth@redhat.com>
7714
7715         * reload.c (push_reload): Export.
7716         * reload.h (push_reload): Declare it.
7717
7718         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
7719         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
7720         * config/alpha/alpha.c (alpha_legitimize_address): New.
7721         (alpha_legitimize_reload_address): Likewise.
7722         * config/alpha/alpha-protos.h: Declare them.
7723
7724 2001-09-04  Stan Shebs  <shebs@apple.com>
7725
7726         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
7727         * config/darwin.c (machopic_stub_name): Account for internally
7728         generated lib calls such as memcpy.
7729
7730 2001-09-04  Richard Henderson  <rth@redhat.com>
7731
7732         * unwind.h (_UA_END_OF_STACK): New flag.
7733         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
7734
7735 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
7736
7737         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
7738
7739 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
7740
7741         * config/mips/mips.c (save_restore_insns): Change base_offset to
7742         fp_offset in second call to mips_emit_frame_related_store.
7743
7744 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
7745
7746         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
7747         sometimes be represented as a NOTE of type
7748         NOTE_INSN_DELETED_LABEL.
7749         (Insns): Document NOTE_INSN_DELETED_LABEL.
7750
7751 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
7752
7753         * c-common.h (tree_dump_index): Add more comments.
7754         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
7755         (dump_option_value_info): New struct.
7756         (dump_options): New array.
7757         (dump_switch_p): Parse switch options symbolically.
7758         * doc/invoke.texi (-fdump-ast): Rename to ...
7759         (-fdump-tree): ... here. Document that options are symbolic, and
7760         not all are applicable.
7761
7762 2001-09-04  David S. Miller  <davem@redhat.com>
7763
7764         * config/sparc/sparc.md (define_splits): Kill constraints.
7765
7766         Cleanup redundant and unused insn attributes.
7767         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
7768         binary, and move.  Mark ialu as default.
7769         (commented out define_function_unit "alu"): Kill.
7770         (define_attr "use_clobbered"): Kill.
7771         (whole file): Kill address insn type references.  Replace
7772         all unary/binary/move references with ialu.
7773         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
7774         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
7775         TYPE_IALU.
7776
7777         Simplify length insn attribute and make more judicious use
7778         of insn attribute defaulting.
7779         * config/sparc/sparc.md (all insns with length > one): Mark as
7780         insn type multi if real instructions, else use default if
7781         it is a forced splitter.
7782         (all insns with length == one): Use default insn length.
7783         (all insns of type ialu): Use default insn type.
7784
7785         Fix erroneous insn attribute settings.
7786         (addx): Set insn type to misc.
7787         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
7788         const_umulsidi3_sp64): Set insn type to imul.
7789
7790         Track SFmode vs DFmode insns according to UltraSPARC
7791         scheduling rules.
7792         * config/sparc/sparc.md ("fptype"): New attribute, default
7793         to "single".
7794         (all DFmode single insns): Mark as fptype "double".
7795
7796 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
7797
7798         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
7799
7800 2001-09-03  Richard Henderson  <rth@redhat.com>
7801
7802         * function.h (struct function): Add arg_pointer_save_area_init.
7803         * function.c (expand_function_end): Init arg_pointer_save_area.
7804         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
7805         when called from a nested function.
7806
7807 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
7808
7809         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
7810         is enabled.
7811
7812 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
7813
7814         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
7815
7816 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
7817
7818         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
7819         (emit_push_insn): Use specified padding direction when
7820         STACK_PUSH_CODE is POST_INC.
7821
7822         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
7823
7824 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7825
7826         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
7827
7828 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7829
7830         * cppinit.c (cpp_start_read): Free the imacros list as we
7831         traverse it.  Don't free the chains before returning.
7832         (_cpp_push_next_buffer): Only try pushing buffers if we've
7833         completed -imacros handling.
7834
7835 2001-08-31  Eric Christopher  <echristo@redhat.com>
7836
7837         * gcc.c (handle_braces): Add explaination for abort.
7838
7839 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
7840
7841         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
7842         move adjustment of bitpos instead.
7843
7844 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
7845
7846         * function.c: Remove all_functions.  Make outer_function_chain
7847         static.
7848         (init_function_start): Don't add new function structure to
7849         all_functions.
7850         (find_function_data, push_function_context_to,
7851         pop_function_context_from, put_var_into_stack,
7852         trampoline_address): Update for changed structure element names.
7853         (push_function_context_to): Disentangle.
7854         (free_after_compilation): Also free F.
7855         (expand_dummy_function_end): Don't free cfun here.
7856         (put_var_into_stack): Comment why we can't use find_function_data here.
7857         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
7858         (mark_function_chain): Split into maybe_mark_struct_function and
7859         ggc_mark_struct_function.  Export the latter.
7860         (init_function_once): Mark from cfun and outer_function_chain;
7861         not all_functions.
7862
7863         * function.h (struct function): Kill next_global.  Rename next
7864         to outer.  All users updated to match.
7865         (all_functions, outer_function_chain): Don't declare.
7866
7867         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
7868         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
7869         don't touch f->inlinable, after calling rest_of_compilation.
7870
7871         * tree.h: Forward-declare struct function.  Prototype
7872         ggc_mark_struct_function.
7873
7874 2001-08-31  Kazu Hirata  <kazu@hxi.com>
7875
7876         * config/h8300/h8300.md (*andorhi3): Fix typos.
7877
7878 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7879
7880         * calls.c (emit_library_call_value): Don't use a fixed
7881         argument after VA_CLOSE, i.e. out of scope in traditional C.
7882
7883         * emit-rtl.c (gen_rtvec): Likewise.
7884
7885 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7886
7887         * Makefile.in (c-pragma.o): Depend on output.h.
7888         (reorg.o): Depend on except.h.
7889
7890         * c-pragma.c: Include output.h.
7891
7892         * reorg.c: Include except.h.
7893
7894         * unwind-dw2.c: Call __builtin_alloca, not alloca.
7895
7896 2001-08-31  Richard Henderson  <rth@redhat.com>
7897
7898         * sched-deps.c (add_dependence): Don't elide dependency if the
7899         conditional used by insn is modified in elem.
7900
7901 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
7902
7903         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
7904
7905 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
7906
7907         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
7908         dump_switch_p.
7909
7910 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
7911
7912         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
7913         function.
7914         (stormy16_asm_out_constructor): New function.
7915         (TARGET_ASM_CONSTRUCTOR): Define.
7916         (TARGET_ASM_DESTRUCTOR): Define.
7917
7918 2001-08-31  Andreas Jaeger  <aj@suse.de>
7919
7920         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
7921         * loop.c (add_label_notes): Likewise.
7922         * reload.c (find_reloads): Likewise.
7923         * config/sh/sh.c (machine_dependent_reorg): Likewise.
7924
7925 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
7926
7927         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
7928         code here.  Take _Unwind_{W,Sw}ord*.
7929         (read_encoded_value_with_base): Use them.
7930         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
7931         words.
7932         (extract_cie_info): Simplify read_?leb128 handling.
7933         (execute_stack_op, execute_cfa_program): Likewise.
7934         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
7935
7936 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
7937
7938         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
7939         the frame pointer to pop the stack if convenient.
7940
7941         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
7942         Don't use post-increment before combine.
7943         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
7944         a call-saved register.
7945
7946 2001-08-31  Andreas Jaeger  <aj@suse.de>
7947
7948         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
7949         code was correct.
7950
7951 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
7952
7953         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
7954         not DIV/MOD, of course.
7955
7956 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
7957
7958         * rtl.def: Undo my patch commited 2001-08-27.
7959
7960         * genattrtab.c: Ditto.
7961
7962         * rtl.h: Ditto.
7963
7964         * sched-int.h: Ditto.
7965
7966         * target-def.h: Ditto.
7967
7968         * target.h: Ditto.
7969
7970         * haifa-sched.c: Ditto.
7971
7972         * sched-rgn.c: Ditto.
7973
7974         * sched-vis.c: Ditto.
7975
7976         * Makefile.in: Ditto.
7977
7978         * doc/md.texi: Ditto.
7979
7980         * doc/tm.texi: Ditto.
7981
7982         * doc/contrib.texi: Ditto.
7983
7984         * doc/gcc.texi: Ditto.
7985
7986         * genattrtab.h: Remove it.
7987
7988         * genautomata.c: Remove it.
7989
7990         * genattr.c: Undo my patch and Richard Henderson's patch commited
7991         2001-08-27.
7992
7993 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
7994
7995         * config.gcc (h8300-*-elf*): New case.
7996         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
7997         (SUBTARGET_CPP_SPEC): Define.
7998         (EXTRA_SPECS): Define.
7999         (SUBTARGET_EXTRA_SPECS): Define.
8000         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
8001         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
8002
8003 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
8004
8005         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
8006         (LIB2FUNCS_EXTRA): Define.
8007         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
8008         config/h8300/fixunssfsi.c: New file.
8009
8010 2001-08-30  Kazu Hirata  <kazu@hxi.com>
8011
8012         * config/h8300/h8300.md (zero_extendqihi2): Changes to
8013         define_expand to accommodate target-specific attributes.
8014         (anonymous zero_extendqihi2 patterns): New.
8015
8016 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
8017
8018         * h8300.md (*andorhi3): New pattern.
8019
8020 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
8021
8022         * h8300.c (dosize): Fix test for "sub".
8023
8024 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
8025
8026         * c-typeck.c (pointer_diff): Try to eliminate common term before
8027         doing conversions.
8028
8029 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
8030
8031         * config/arm/arm.c (arm_compute_initial_elimination_offset):
8032         Account for the saves of the FP registers.
8033
8034         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
8035         (TEXT_SECTION_ASM_OP): Define.
8036         (INIT_SECTION_ASM_OP): Define.
8037         (FINI_SECTION_ASM_OP): Define.
8038         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
8039         (RDATA_SECTION_FUNCITON): Provide prototype.
8040
8041 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
8042
8043         * reload1.c (move2add_note_store): Correct typo checking for
8044         argument pushes.
8045
8046 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
8047
8048         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
8049         note should not be considered outside the libcall block.
8050
8051 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8052
8053         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
8054
8055 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8056
8057         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
8058
8059 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8060
8061         * config/h8300/h8300-protos.h: Add a prototype for
8062         emit_logical_op.
8063         * config/h8300/h8300.c (emit_logical_op): New.
8064         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
8065         (andsi3): Likewise.
8066         (iorhi3): Likewise.
8067         (iorsi3): Likewise.
8068         (xorhi3): Likewise.
8069         (xorsi3): Likewise.
8070
8071 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8072
8073         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
8074         comparison with rtx INTVAL.
8075         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
8076         expression.
8077         * pa.h (FUNCTION_ARG_SIZE): Likewise.
8078
8079 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8080
8081         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
8082         comment typos.
8083
8084 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8085
8086         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
8087         (reg n) to (mem (pre_dec (reg n))
8088         (anonymous movsi pattern): Likewise.
8089
8090 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8091
8092         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
8093
8094 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8095
8096         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
8097         several special constants.
8098
8099 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8100
8101         * config/h8300/lib1funcs.asm: Fix comment typos.
8102
8103 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8104
8105         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
8106         Fix format specifier warnings.
8107
8108         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
8109         inet_makeaddr, semctl): Prototype.
8110
8111         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
8112         (save_restore_insns): Use base_offset, not gp_offset.
8113
8114         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
8115         (ASM_OUTPUT_BYTE): Fix format specifier warning.
8116
8117 2001-08-29  Richard Henderson  <rth@redhat.com>
8118
8119         * bb-reorder.c (function_tail_eff_head): New.
8120         (record_effective_endpoints): Set it.
8121         (fixup_reorder_chain): Use it.
8122
8123 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8124
8125         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
8126
8127 2001-08-28  Dale Johannesen  <dalej@apple.com>
8128
8129         * config/darwin.c (machopic_function_base_name): Add const
8130         qualifier to a string.
8131         (darwin_encode_section_info): Ditto.
8132
8133 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8134
8135         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
8136         function definition.
8137
8138 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
8139
8140         * df.h (struct df): Add rts_order variable.
8141
8142         * df.c (df_visit_next_rts): New function.
8143         (df_visit_next): Renamed to df_visit_next_rc
8144         (df_analyse_1): Allocate/compute/free rts_order as well.
8145         (df_rd_global_compute): Use df_visit_next_rc instead of
8146         df_visit_next.
8147         (df_ru_global_compute): Use df_visit_next_rts instead of
8148         df_visit_next.
8149
8150         * flow.c (flow_reverse_top_sort_order_compute): New function.
8151
8152         * basic-block.h: Add prototype.
8153
8154 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
8155
8156         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
8157         blocks, the BB_REACHABLE is now set, rather than aux being
8158         non-NULL. Update the test to reflect this.
8159
8160 2001-08-28  Eric Christopher  <echristo@redhat.com>
8161
8162         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
8163         config/mips/crti.asm: Ditto.
8164
8165 2001-08-28  Eric Christopher <echristo@redhat.com>
8166             Richard Henderson <rth@redhat.com>
8167
8168         * c-pragma.h (add_weak): Move prototype from here...
8169         * output.h (add_weak): ... to here.
8170         * varasm.c (add_weak): Fix typo.
8171         * config/mips/crti.asm: New file.
8172         * config/mips/crtn.asm: Ditto.
8173         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
8174         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
8175         (INVOKE__main): Ditto.
8176         (INIT_SECTION_ASM_OP): New.
8177         (FINI_SECTION_ASM_OP): Ditto.
8178         (STARTFILE_SPEC): Add crti.
8179         (ENDFILE_SPEC): Add crtn.
8180         * config/mips/elf64.h: Same.
8181         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
8182         Remove.
8183         * config/mips/vxworks.h: Ditto.
8184         * config/mips/t-elf: Support crti and crtn.
8185
8186 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8187
8188         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
8189         INSN_LIST.
8190
8191 2001-08-28  Richard Henderson  <rth@redhat.com>
8192
8193         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
8194         (one_cmplbi2 splitter): Remove redundant test.
8195
8196 2001-08-28  Dale Johannesen  <dalej@apple.com>
8197
8198         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
8199
8200 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
8201
8202         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
8203
8204 2001-08-28  Stan Shebs  <shebs@apple.com>
8205
8206         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
8207         (UNALIGNED_SHORT_ASM_OP): Define.
8208         (UNALIGNED_INT_ASM_OP): Define.
8209
8210 2001-08-28  Will Cohen  <wcohen@redhat.com>
8211
8212         * config/rs6000/rs6000.md (store_multiple): Correct RTL
8213         generation for first set.
8214
8215 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
8216
8217         * flow.c (redirect_edge_succ_nodup): Return new edge.
8218         (try_simplify_condjump): Use new edge.
8219         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
8220
8221         * cse.c (cse_basic_block): Skip note instructions.
8222
8223 2001-08-27  Richard Henderson  <rth@redhat.com>
8224
8225         * combine.c (combine_simplify_rtx): Don't reverse condition
8226         if there is no reverse for the condition.
8227         (simplify_comparison): Don't simplify subregs from INT to FP.
8228
8229         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
8230         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
8231         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
8232         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
8233         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
8234         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
8235
8236 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
8237
8238         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
8239         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
8240         (pushqi1): New.
8241         (adddi_dilshr32, adddi_dishl32): Only data register can be
8242         source for mem destination.
8243
8244         * expmed.c (store_bit_field): Ignore adjustment to bitpos
8245         and use bitnum to decide about register move.
8246
8247 2001-08-27  Richard Henderson  <rth@redhat.com>
8248
8249         * genattr.c (main): Emit state_t even when not doing scheduling.
8250
8251 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
8252             Richard Henderson  <rth@redhat.com>
8253
8254         * gcse.c (reg_first_set, reg_last_set): Replace with ...
8255         (reg_avail_info, current_bb): ... these.
8256         (oprs_unchanged_p, record_last_reg_set_info): Use them.
8257         (compute_hash_table): Likewise.
8258
8259 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
8260
8261         * flow.c (verify_flow_info): Use checksums to verify edges.
8262
8263 2001-08-27  Richard Henderson  <rth@redhat.com>
8264
8265         * genautomata.c (expand_automata): Always create a description.
8266
8267 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
8268
8269         * optabs.c (expand_binop): Correctly handle the carry in multiword
8270         add/subtract operations.
8271
8272 2001-08-27  Fred Fish  <fnf@be.com>
8273
8274         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
8275         __SIZE_TYPE__.
8276
8277 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
8278
8279         * reload.c (find_reloads_toplev): Back out this change:
8280
8281         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
8282
8283         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
8284         mem if the address is a mode_dependent_address_p.
8285
8286 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
8287
8288         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
8289         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8290         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8291         RTL constructions.
8292
8293         * genattr.c (main): New variable num_insn_reservations.  Increase
8294         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
8295         pipeline hazard recognizer interface.
8296
8297         * genattrtab.h: New file.
8298
8299         * genattrtab.c: Include genattrtab.h.
8300         (attr_printf, check_attr_test, make_internal_attr,
8301         make_numeric_value): Move protypes into genattrtab.h.  Define them
8302         as external.
8303         (num_dfa_decls): New global variable.
8304         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8305         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8306         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8307         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
8308
8309         * genautomata.c: New file.
8310
8311         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8312
8313         * sched-int.h: (curr_state): Add the external definition for
8314         automaton pipeline interface.
8315         (haifa_insn_data): Add comments for members blockage and units.
8316
8317         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8318         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8319         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8320         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8321         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8322         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8323         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8324         macros.
8325         (TARGET_SCHED): Use the new macros.
8326
8327         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8328         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8329         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8330         dfa_bubble): New members in gcc_target.sched.
8331
8332         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
8333         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8334         (insn_queue): Redefine it as pointer to array.
8335         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8336         INSN_QUEUE_SIZE.
8337         (max_insn_queue_index_macro_value): New variable.
8338         (curr_state, dfa_state_size, ready_try): New varaibles for
8339         automaton interface.
8340         (ready_element, ready_remove, max_issue): New function prototypes
8341         for automaton interface.
8342         (choose_ready): New function prototype.
8343         (insn_unit, blockage_range): Add comments.
8344         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8345         FUNCTION_UNITS_SIZE == 0.
8346         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8347         actual_hazard, potential_hazard): Add comments.
8348         (insn_cost): Use cost -1 as undefined value.  Remove
8349         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
8350         pipeline interface.
8351         (ready_element, ready_remove): New functions for automaton
8352         interface.
8353         (schedule_insn): Add new code for automaton pipeline interface.
8354         (queue_to_ready): Add new code for automaton pipeline interface.
8355         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8356         (debug_ready_list): Print newline when the queue is empty.
8357         (max_issue): New function for automaton pipeline interface.
8358         (choose_ready): New function.
8359         (schedule_block): Add new code for automaton pipeline interface.
8360         Print ready list before scheduling each insn.
8361         (sched_init): Add new code for automaton pipeline interface.
8362         Initiate insn cost by -1.
8363         (sched_finish): Free the current automaton state and finalize
8364         automaton pipeline interface.
8365
8366         * sched-rgn.c: Include target.h.
8367         (init_ready_list, new_ready, debug_dependencies): Add new code for
8368         automaton pipeline interface.
8369
8370         * sched-vis.c: Include target.h.
8371         (get_visual_tbl_length): Add code for automaton interface.
8372         (target_units, print_block_visualization):  Add comments.
8373
8374         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
8375         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8376         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8377         (getruntime.o, genautomata.o): New entries.
8378         (genattrtab.o): Add new dependency file genattrtab.h.
8379         (genattrtab): Add new dependencies.  Link it with `libm.a'.
8380         (getruntime.o, hashtab.o): New entries for canadian cross.
8381
8382         * doc/md.texi: Description of automaton based model.
8383
8384         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
8385         Add comments.
8386         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8387         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8388         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8389         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8390         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8391         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8392         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
8393         hook descriptions.
8394         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
8395         MAX_DFA_ISSUE_RATE): New macro descriptions.
8396
8397         * doc/contrib.texi: Add dfa based scheduler contribution.
8398
8399         * doc/gcc.texi: Add more information about genattrtab.
8400
8401 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
8402
8403         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
8404         an RTL basic block.
8405
8406 2001-08-27  Richard Henderson  <rth@redhat.com>
8407
8408         * function.c (expand_function_end): Don't init arg_pointer_save_area.
8409         (get_arg_pointer_save_area): New.  Create an init it here.
8410         (fix_lexical_addr): Use it.
8411         * function.h: Declare it.
8412         * builtins.c (expand_builtin_setjmp_receiver): Use it.
8413         * stmt.c (expand_nl_goto_receiver): Use it.
8414
8415 2001-08-27  Richard Henderson  <rth@redhat.com>
8416
8417         * final.c (final_scan_insn): Don't enter APP_ON mode for
8418         empty asm strings.
8419
8420         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
8421         alignment for assemble_integer for DW_EH_PE_aligned.
8422         * except.c (output_function_exception_table): Likewise.
8423
8424 2001-08-26  Andreas Jaeger  <aj@suse.de>
8425
8426         * c-tree.h: Add prototyp for c_sizeof_nowarn.
8427
8428 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
8429
8430         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
8431
8432 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
8433
8434         * config/rs6000/rs6000.c (mask_operand): Rewrite without
8435         bit-shifting loop.
8436         (mask64_operand): Likewise.
8437         (rldic_operand): Delete.
8438         (includes_lshift64_p): Delete.
8439         (includes_rldic_lshift_p): New function.
8440         (includes_rldicr_lshift_p): New function.
8441         (print_operand): Don't call rldic_operand in case 'W'.
8442         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
8443         (includes_lshift64_p): Remove.
8444         (includes_rldic_lshift_p): Declare.
8445         (includes_rldicr_lshift_p): Declare.
8446         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
8447         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
8448         Replace match_operand rldic_operand predicate with
8449         const_int_operand.  Replace includes_lshift64_p condition with
8450         includes_rldic_lshift_p.
8451         <ashldi3_internal 64 bit rldicr patterns>: New.
8452
8453 2001-08-27  Andreas Jaeger  <aj@suse.de>
8454
8455         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
8456         * errors.c: Likewise.
8457         * final.c: Likewise.
8458         * dwarf2asm.c: Likewise.
8459         * doprint.c (checkit): Likewise.
8460         * diagnostic.c: Likewise.
8461         * collect2.c: Likewise.
8462         * calls.c: Likewise.
8463         * c-semantics.c (build_stmt): Likewise.
8464         * c-format.c (status_warning): Likewise.
8465         * c-errors.c (pedwarn_c99): Likewise.
8466         * builtins.c (validate_arglist): Likewise.
8467         * config/pj/pj.c (pj_printf): Likewise.
8468         * fix-header.c: Likewise.
8469         * gcc.c: Likewise.
8470         * gcov.c (fnotice): Likewise.
8471         * gensupport.c (message_with_line): Likewise.
8472         * mips-tfile.c: Likewise.
8473         * protoize.c (notice): Likewise.
8474         * read-rtl.c (fatal_with_file_and_line): Likewise.
8475         * rtl-error.c: Likewise.
8476         * tradcpp.c: Likewise.
8477         * tree.c: Likewise.
8478         * cp/tree.c (build_min_nt): Likewise.
8479         (build_min): Likewise.
8480         * cp/lex.c: Likewise.
8481         * cp/errfn.c: Likewise.
8482         * cp/rtti.c (create_pseudo_type_info): Likewise.
8483
8484 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
8485
8486         * df.c (df_uses_record): Return after recording all uses
8487         in ASM_OPERANDS.
8488
8489 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
8490
8491         * df.c (df_insn_modify): Realloc the INSN table here, if
8492         necessary, here, too.
8493
8494 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
8495
8496         * config/mips/mips.c (mips_function_value): Handle complex return
8497         values.
8498
8499 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
8500
8501         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
8502         unshared.
8503         * reload.c (make_memloc): Copy result if it is still
8504         reg_equiv_memory_loc[regno] on return.
8505         (subst_reloads) [ENABLE_CHECKING]: Check that none of
8506         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
8507         reg_equiv_mem are modified by the substitutions.
8508
8509 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
8510
8511         * predict.c (expensive_function_p): New.
8512         * rtl.h (expensive_function_p): Declare.
8513         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
8514         (use_fast_prologue_epilogue): New static variable.
8515         (expand_prologue): Set it; emit short prologues if unset.
8516         (expand_epilogue): Likewise.
8517
8518 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
8519
8520         * config.gcc: Add stormy16-*-elf case.
8521         * config/stormy16/stormy-abi: New file.
8522         * config/stormy16/stormy16-lib2.c: New file.
8523         * config/stormy16/stormy16-protos.h: New file.
8524         * config/stormy16/stormy16.c: New file.
8525         * config/stormy16/stormy16.h: New file.
8526         * config/stormy16/stormy16.md: New file.
8527         * config/stormy16/t-stormy16: New file.
8528
8529 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
8530
8531         * i386.h (no-accumulate-outgoing-args): Use proper mask.
8532
8533 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
8534
8535         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
8536         descriptor members are pointer size, not constant 4.
8537         * config/rs6000/rs6000.md (define_splits): Remove more unused
8538         constraints.
8539
8540 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8541
8542         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
8543
8544 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
8545
8546         * cp/rtti.c (VPARAMS): Fix parameter.
8547
8548 2001-08-24  Zack Weinberg  <zackw@panix.com>
8549
8550         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
8551         to zero.
8552         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
8553         to switch.
8554         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
8555         in if controlling use of insv.
8556         (extract_bit_field): Likewise, for extv and extzv.
8557
8558 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
8559
8560         * i386.md (movcc peep2): Fix load of 0.
8561
8562 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8563
8564         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
8565         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
8566
8567 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
8568
8569         * c-pragma.h: Move weak_syms and weak_decls...
8570         * varasm.c: ...here.  Now static.
8571         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
8572         depend on HANDLE_PRAGMA_WEAK.
8573
8574         * c-common.c (c_alignof, c_alignof_expr): Move here...
8575         * c-typeck.c: ...from here.
8576         * c-tree.h, c-common.h: Adjust.
8577
8578 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
8579
8580         * config/ia64/ia64.c (rws_update): If !pred, set write_count
8581         instead of incrementing it.
8582
8583         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
8584         asm ready, don't try to move them all into the same array element.
8585
8586 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
8587
8588         * function.c (thread_prologue_and_epilogue_insns): Avoid
8589         fallthru flag on edge to exit.
8590
8591         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
8592
8593         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
8594         dead edges.
8595
8596 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
8597
8598         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
8599         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
8600         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
8601         Remove prototype.
8602
8603 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
8604
8605         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
8606         replace "GNU CC" with "GCC".
8607
8608 2001-08-23  Richard Henderson  <rth@redhat.com>
8609
8610         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
8611         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
8612         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
8613         Need GR between FR and not GR_AND_FR.
8614         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
8615         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
8616         AR regs before GR regs.
8617         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
8618         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
8619         (REGISTER_MOVE_COST): Update.
8620         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
8621
8622 2001-08-23  Richard Henderson  <rth@redhat.com>
8623
8624         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
8625         a register class.
8626
8627 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
8628
8629         * reload1.c (emit_reload_insns): Don't look for notes
8630         on a NULL store_insn.
8631
8632 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8633
8634         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
8635         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
8636         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
8637         format specifier warnings.
8638         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
8639
8640 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
8641
8642         * config/i386/i386-protos.h: Correct declaration of
8643         i386_pe_asm_named_section.
8644
8645 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8646
8647         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
8648         variable i.
8649         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
8650
8651 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8652
8653         * cpperror.c (print_location): Don't show _Pragma.
8654         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
8655         and file change callback generation here.
8656         (stack_include_file): Update use of cpp_push_buffer.
8657         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
8658         (struct cpp_buffer): Remove type, pfile members.
8659         * cppinit.c (cpp_handle_option): Use free_chain.
8660         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
8661         (skip_escaped_newlines, get_effective_char, lex_percent): Take
8662         a cpp_reader rather than a cpp_buffer.
8663         (skip_escaped_newlines, get_effective_char, skip_block_comment,
8664         skip_line_comment, parse_string, lex_percent, lex_dot,
8665         _cpp_lex_token): Update accordingly.
8666         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
8667         generation here.
8668         (cpp_push_buffer): Update prototype.
8669         (run_directive): Update use of cpp_push_buffer.
8670         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
8671         handle_assertion): Update use of run_directive.
8672         * cpplib.h (enum cpp_buffer_type): Remove.
8673         (cpp_push_buffer): Update prototype.
8674         * fix-header.c (read_scan_file): Update.
8675
8676 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8677
8678         * gcc.c (struct prefix_list): Change prefix to const char *.
8679
8680 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8681
8682         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
8683
8684 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
8685
8686         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
8687         from a new MEM.
8688
8689         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
8690         a squeezable note.
8691         * rtl.h: Adjust.
8692         * ifcvt.c (dead_or_predicable): Adjust.
8693         * loop.c (find_and_verify_loops): Adjust.
8694         * stmt.c (expand_end_case): Adjust.
8695         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
8696         head and end insn pointers in the basic block, not just local copies.
8697         (merge_blocks_move_predecessor_nojumps): Likewise.
8698
8699 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
8700
8701         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
8702         bitmap.h, builtin-types.def, builtins.c, builtins.def,
8703         c-aux-info.c, c-common.c, c-common.def, c-common.h,
8704         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
8705         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
8706         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
8707         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
8708         conditions.h, config.gcc, configure.frag, configure.in,
8709         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
8710         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
8711         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
8712         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
8713         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
8714         emit-rtl.c, errors.c, errors.h, except.c, except.h,
8715         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
8716         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
8717         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
8718         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
8719         gencheck.c, gencodes.c, genconfig.c, genemit.c,
8720         genextract.c, genflags.c, gengenrtl.c, genmultilib,
8721         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
8722         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
8723         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
8724         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
8725         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
8726         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
8727         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
8728         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
8729         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
8730         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
8731         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
8732         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
8733         params.h, predict.c, predict.def, predict.h, prefix.c,
8734         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
8735         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
8736         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
8737         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
8738         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
8739         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
8740         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
8741         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
8742         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
8743         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
8744         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
8745         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
8746         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
8747         xcoffout.h: replace "GNU CC" with "GCC".
8748
8749 2001-08-21  Richard Henderson  <rth@redhat.com>
8750
8751         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
8752         (final_scan_insn): Consider jump tables data even if we have no
8753         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
8754         ADDR_VEC_ALIGN.
8755         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
8756         (ASM_OUTPUT_CASE_END): Remove.
8757         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
8758         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
8759         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
8760
8761 2001-08-21  Richard Henderson  <rth@redhat.com>
8762
8763         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
8764         at barrier insns.  Emit stop bits before barriers.
8765
8766         * flow.c (flow_find_cross_jump): Don't consider unconditional
8767         return insns for commoning.
8768
8769         * final.c (compute_alignments): Fix typo.
8770
8771         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
8772         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
8773         (store_bit_field): Use mode_for_extraction more places.
8774         (extract_bit_field): Likewise.
8775
8776 2001-08-21  Zack Weinberg  <zackw@panix.com>
8777
8778         * caller-save.c: Don't include insn-codes.h.
8779         (reg_save_code, reg_restore_code): Make arrays of int.
8780         All uses updated to match.
8781         (insert_save, insert_restore): No need to initialize "code"
8782         variable upon declaration.
8783         * Makefile.in: update dependencies; fix typo in clean rule.
8784
8785 2001-08-21  Richard Henderson  <rth@redhat.com>
8786
8787         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
8788         (merge_if_block): Handle fallout from same.
8789
8790 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8791
8792         * builtins.c (type_to_class): Fix typo in last change.
8793
8794 2001-08-21  Richard Henderson  <rth@redhat.com>
8795
8796         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
8797         ia64_asm_output_label.
8798
8799         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
8800         copy of gp while the real gp register contains garbage.
8801
8802 2001-08-21  Zack Weinberg  <zackw@panix.com>
8803
8804         * expmed.c (mode_for_extraction): New function.
8805         (store_bit_field, extract_bit_field): Use it.
8806         * expr.h: Prototype it and provide an enum for its first argument.
8807
8808         * combine.c, function.c, recog.c: Don't include insn-codes.h.
8809         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
8810         and digging through the insn_data tables.
8811         * Makefile.in: Update dependencies.
8812
8813 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8814
8815         * cppfiles.c (stack_include_file): line-map.c now handles include
8816         depth.
8817         (handle_missing_handler): Similarly.
8818         (_cpp_execute_include): Similarly.
8819         (_cpp_pop_file_buffer): Similarly.
8820         * cpphash.h (struct cpp_reader): Remove system_include_depth,
8821         buffer_stack_depth and include_depth.
8822         * cpplib.c (do_include_common): line-map.c now handles include depth.
8823         (cpp_push_buffer): Similarly.
8824         (_cpp_pop_buffer): Similarly.
8825         * cppmacro.c (builtin_macro): Update.
8826         * line-map.c (init_line_maps): Set depth.
8827         (add_line_map): Increment "used" earlier.  Update and use the
8828         include depth.
8829         (trace_include): Use the include depth.
8830         * line-map.h (struct line_maps): New member depth.
8831
8832 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8833
8834         * cppfiles.c (stack_include_file): Don't handle -H here.
8835         * cppinit.c (cpp_start_read): Set include tracing after
8836         cpp_post_options and after stacking the main file.
8837         * line-map.c (trace_include): New.
8838         (init_line_maps, add_line_map): Update.
8839         * line-map.h (struct line_maps): New member trace_includes.
8840
8841 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8842
8843         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
8844         * cppfiles.c (stack_include_file): Only stack a file if there
8845         is something to do.  Return a boolean indicating whether a
8846         buffer was stacked or not.
8847         (_cpp_execute_include): Similarly.
8848         (_cpp_read_file): Similarly.
8849         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
8850
8851 2001-08-21  Sam Steingold  <sds@gnu.org>
8852
8853         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
8854         (RECACHE): keep obufp_before_macroname up to date
8855
8856 2001-08-21  Zack Weinberg  <zackw@panix.com>
8857
8858         * stmt.c: Don't include insn-codes.h.
8859         (expand_end_case): Machine specific logic moved to expr.c.
8860         No need to worry about __builtin_classify_type.
8861         (check_for_full_enumeration_handling, emit_case_nodes):
8862         Kill #if 0 blocks.
8863
8864         * builtins.o (expand_builtin_classify_type): Split up so code
8865         can be shared with fold_builtin_classify_type.
8866         (type_to_class, fold_builtin_classify_type): New functions.
8867         (fold_builtins): Handle __builtin_classify_type.
8868
8869         * expr.c (do_tablejump): Now static.
8870         (case_values_threshold, try_casesi, try_tablejump): New;
8871         code mostly from stmt.c (expand_end_case).
8872         (expr.h): Update prototypes.
8873
8874         * Makefile.in (stmt.o): Update dependencies.
8875
8876 2001-08-21  Will Cohen  <wcohen@redhat.com>
8877
8878         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
8879         declaration of variable i.
8880         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
8881         declaration of variable i.
8882
8883 2001-08-21  Richard Henderson  <rth@redhat.com>
8884
8885         * crtstuff.c: Fix thinko last change.  Move list tails to start
8886         of CRT_END section.  Tidy ifdefs.
8887         (__EH_FRAME_BEGIN__): Always static for ELF.
8888         (__do_global_ctors_1): Rename from __frame_dummy.
8889         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
8890         name change; don't hide __EH_FRAME_BEGIN__.
8891
8892 2001-08-21  Richard Henderson  <rth@redhat.com>
8893
8894         * gdbinit.in: Move break on exit after break on fancy_abort.
8895
8896         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
8897         sized types.
8898
8899 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8900
8901         * cpphash.h (_cpp_push_next_buffer): New.
8902         * cppinit.c (do_includes): Remove.
8903         (push_include, free_chain, _cpp_push_next_buffer): New.
8904         (cpp_start_read): Use them to rework command line option handling.
8905         (cpp_handle_option): Combine handling of -include and -imacros.
8906         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
8907         appropriate.  Always insert missing \n at EOF.
8908         * cpplib.c (start_directive): Get the directive position right.
8909         * cppmain.c (cb_file_change): Always print the first line, unless
8910         preprocessed.
8911
8912 2001-08-20  Andreas Jaeger  <aj@suse.de>
8913
8914         * profile.c (compute_branch_probabilities): Remove extra new-line
8915         in error message.
8916         * flow.c (verify_flow_info): Likewise.
8917
8918 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
8919
8920         * basic-block.h (basic_block): Add new field 'flags'.
8921         (BB_REACHABLE): Define.
8922         (expunge_block): Declare.
8923         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
8924         (EXIT_BLOCK_PTR): Ditto.
8925         (expunge_block): Remove static declaration.
8926         (cleanup_cfg): Clear bb->aux on every basic block.
8927         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
8928         computing reachability.
8929         (delete_unreachable_blocks): Delete block b if b->flags has
8930         BB_REACHABLE unset.
8931
8932 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
8933
8934         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
8935
8936 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8937
8938         * sparc.c (sparc_variable_issue): Fix typo in last change.
8939
8940 2001-08-20  Richard Henderson  <rth@redhat.com>
8941
8942         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
8943
8944 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8945
8946         * pa.h (RETURN_IN_MEMORY): Improve comment.
8947
8948 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
8949
8950         * doc/invoke.texi (Profiling options): Clarify the interactions
8951         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
8952
8953 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
8954
8955         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
8956         command.
8957
8958 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8959
8960         * gcc.c (make_relative_prefix): Allocate a sufficiently large
8961         buffer.
8962
8963 2001-08-20  Richard Henderson  <rth@redhat.com>
8964
8965         * final.c (end_final): Fix typo last change.
8966
8967 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
8968
8969         * cppinit.c (init_standard_includes): The returned buffer
8970         is already malloc-ed.
8971         * gcc.c (add_prefix): Similarly.
8972         * prefix.c (translate_name): Update to support clear buffer
8973         ownership rules.
8974         (update_path): Similarly.  Be sure to free any newly allocated
8975         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
8976         (tr): New function.
8977         * prefix.h (update_path): Update prototype and document.
8978         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
8979         up and update to new buffer ownership rules.
8980         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
8981
8982 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
8983
8984         * final.c (compute_alignments): New function.
8985         (init_insn_lengths): Do not care label_align.
8986         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
8987         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
8988         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
8989         (shorted_branches): Realloc label_align array; do
8990         not call init_insn_lengths; Do not care about loop alignments.
8991         * output.h (compute_alignments): Declare.
8992         * toplev.c (rest_of_compilation): Call compute_alignments.
8993         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
8994
8995         * predict.c (block_info_def): Add npredecesors, remove nvisited;
8996         change visited to tovisit.
8997         (propagate_freq): Use faster traversing algorithm.
8998         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
8999         to tovisit; reverse meaning.
9000
9001         * predict.c (struct block_info_def): Remove nvisited.
9002         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
9003         (estimate_bb_frequencies): Call mark_dfs_back_edges.
9004
9005 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
9006
9007         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
9008         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
9009         (TARGET_FUSED_MADD): New.
9010         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
9011         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
9012         the multiply-add instructions.
9013
9014 2001-08-19  Richard Henderson  <rth@redhat.com>
9015
9016         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
9017         is aligned to pointer size.
9018
9019 2001-08-19  Richard Henderson  <rth@redhat.com>
9020
9021         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
9022         display markers during final schedule.
9023
9024 2001-08-19  Richard Henderson  <rth@redhat.com>
9025
9026         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
9027
9028 2001-08-19  Richard Henderson  <rth@redhat.com>
9029
9030         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
9031         in the same string.
9032         (ASM_NAME_TO_STRING): Remove.
9033         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
9034         in the same string.  Remove support for expressions.
9035
9036 2001-08-19  Richard Henderson  <rth@redhat.com>
9037
9038         * config/i386/i386.md (tablejump): Make an expander; handle
9039         pic relative addressing here.
9040         (tablejump_1): Rename from tablejump_pic.
9041         (casesi): Remove.
9042
9043 2001-08-19  Richard Henderson  <rth@redhat.com>
9044
9045         * regclass.c (fix_register): Fix typo.
9046
9047 2001-08-18  Richard Henderson  <rth@redhat.com>
9048
9049         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
9050         (struct _Unwind_Context): Expand br_loc to hold it.
9051         (uw_frame_state_for): Handle leaf functions better.
9052         (uw_update_reg_address): Update for br_loc change.
9053
9054 2001-08-18  Richard Henderson  <rth@redhat.com>
9055
9056         * crtstuff.c: Move list heads before code that uses them.
9057         (__JCR_LIST__): Remove initial null.
9058         (frame_dummy, __frame_dummy): Do java registration here ...
9059         (__do_global_ctors_aux): ... not here.
9060
9061         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
9062         (__do_global_dtors_aux): Update to match.
9063         (__JCR_LIST__, __do_jv_register_classes): New.
9064         (.init): Call it.
9065         * config/ia64/crtend.asm (__JCR_END__): New.
9066         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
9067         instead of an indirect LTOFF22 reloc.
9068
9069 2001-08-18  Richard Henderson  <rth@redhat.com>
9070
9071         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
9072         * regclass.c (init_reg_sets_1): Fix typo.
9073         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
9074         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
9075         (ia64_compute_frame_size): Make ar.unat live when in use.
9076         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
9077         for ar.pfs; remove ar.unat handling.
9078         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
9079         call-saved.
9080         (PREDICATE_CODES): Add ar_pfs_reg_operand.
9081         * config/ia64/ia64-protos.h: Update decls.
9082         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
9083         (sibcall_pic): Likewise.
9084
9085 2001-08-18  Richard Henderson  <rth@redhat.com>
9086
9087         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
9088         pred_rel_mutex when searching for insn_group_barrier.
9089         * config/ia64/ia64.md (cycle_display): Combine the expander
9090         and insn patterns.
9091
9092         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
9093         bit before asm as needed.
9094
9095 2001-08-18  Richard Henderson  <rth@redhat.com>
9096
9097         * timevar.def (TV_MACH_DEP): New.
9098         * toplev.c (rest_of_compilation): Use it.
9099         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
9100
9101 2001-08-18  Zack Weinberg  <zackw@panix.com>
9102
9103         * unwind-dw2.c (execute_stack_op): Add default aborts to
9104         the inner switches to prevent warnings.
9105
9106 2001-08-18  Richard Henderson  <rth@redhat.com>
9107
9108         * timevar.h (struct timevar_time_def): Change element type to float.
9109         (ticks_to_msec, clocks_to_msec): Likewise.
9110         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
9111         (get_time): Likewise.
9112         (timevar_print): Adjust zero check and printing to match.
9113
9114 2001-08-18  Zack Weinberg  <zackw@panix.com>
9115
9116         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
9117         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
9118         Eliminate overfull or underfull hboxes.
9119
9120 2001-08-18  Zack Weinberg  <zackw@panix.com>
9121
9122         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9123
9124 2001-08-18  Zack Weinberg  <zackw@panix.com>
9125
9126         * haifa-sched.c: Convert to target hooks.  Macros replaced
9127         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
9128         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
9129         MD_SCHED_FINISH, and HAVE_cycle_display.
9130         * target-def.h (TARGET_SCHED_ADJUST_COST,
9131         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
9132         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
9133         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
9134         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
9135         New hook #defines to be overridden.
9136         (TARGET_SCHED): Bring them all together.
9137         (TARGET_INITIALIZER): Update.
9138         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
9139         instead of 'struct rtx_def *' throughout.
9140         (struct sched): New set of hooks for the scheduler.
9141         * Makefile.in (haifa-sched.o): Depend on target.h.
9142         * doc/tm.texi: Document the new scheduler hooks, together in
9143         their own section, instead of scattered around.
9144         Fix a bunch of underfull/overfull hboxes.
9145
9146         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
9147         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
9148         sparc.h: Don't define any of the old scheduler macros.
9149
9150         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
9151         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
9152         sparc.c: Create hook functions from code extracted from
9153         corresponding target header, or make existing hooks static, as
9154         appropriate.  Set the appropriate entries in targetm.
9155
9156         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
9157         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
9158         rs6000-protos.h, s390-protos.h, sparc-protos.h:
9159         Remove prototypes for functions which are now static.
9160
9161         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
9162         related gunk; the Haifa scheduler is now the only choice.
9163
9164 2001-08-18  Zack Weinberg  <zackw@panix.com>
9165
9166         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
9167         * genopinit.c: Put floating point divide insns in sdiv_optab.
9168         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
9169         * config/gofast.h, config/c4x/c4x.h,
9170         config/ia64/hpux_longdouble.h, config/mips/mips.h,
9171         config/pa/long_double.h, config/rs6000/sysv4.h,
9172         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
9173         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
9174         (init_optabs): Use init_optabv for overflow-trapping optabs.
9175         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
9176         cmp_optab RTX codes so have_insn_for can find them.
9177
9178         * optabs.c (expand_simple_binop, expand_simple_unop,
9179         have_insn_for, gen_sub3_insn): New interfaces.
9180         * expr.h: Prototype new functions.
9181         (enum optab_methods): Move here from optabs.h.
9182
9183         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
9184         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
9185         Use new functions instead of working directly with optabs.
9186         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
9187         unroll.c: Don't include optabs.h.
9188         * caller-save.c, combine.c, function.c, stmt.c: Just include
9189         insn-codes.h, not optabs.h.
9190         * Makefile.in: Update dependencies.
9191
9192         * combine.c (make_compound_operation, simplify_comparison):
9193         Fix typos testing for this or that instruction.
9194
9195 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9196
9197         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
9198         generating libgcc.a.
9199
9200 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9201
9202         * except.c (TYPE_HASH): Delete.
9203
9204         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
9205         HOST_WIDE_INT.
9206
9207         * tree.c (TYPE_HASH): Delete.
9208
9209         * tree.h (TYPE_HASH): Define.
9210
9211 2001-08-18  Graham Stott  <grahams@redhat.com>
9212
9213         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
9214         define_split.
9215         (adddi3_internal_2+2): Likewise.
9216         (eh_set_lr_di+1): Likewise.
9217
9218 2001-08-17  Richard Henderson  <rth@redhat.com>
9219
9220         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9221         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
9222         * dwarf2asm.c: ... here.
9223         * dwarfout.c: Remove them.
9224
9225         * varasm.c (assemble_integer): Add align parameter.
9226         (assemble_real, output_constant, output_constructor): Likewise.
9227         * output.h: Update decls.
9228         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
9229         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
9230         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
9231         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
9232         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
9233         Update all callers.
9234
9235         * final.c (end_final): Abort profile block generation if we
9236         havn't layed it out properly.
9237         * output.h (assemble_eh_integer): Remove stale decl.
9238         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
9239         (min_align): New.
9240         (assemble_integer): Handle unaligned data.
9241         (assemble_real): Abort on unaligned data.
9242         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
9243         anything useful.
9244         (default_dtor_section_asm_out_destructor): Use assemble_align.
9245         (default_named_section_asm_out_constructor): Likewise.
9246         (default_ctor_section_asm_out_constructor): Likewise.
9247         * config/darwin.c (machopic_asm_out_constructor): Likewise.
9248         (machopic_asm_out_destructor): Likewise.
9249         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
9250         (nextstep_asm_out_destructor): Likewise.
9251         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
9252         (vms_asm_out_destructor): Likewise.
9253
9254 2001-08-17  Richard Henderson  <rth@redhat.com>
9255
9256         * config/mips/iris6.h (TARGET_IRIX6): New.
9257         (current_section_name, current_section_flags): New.
9258         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
9259         (MAX_OFILE_ALIGNMENT): New.
9260         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
9261         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
9262         (copy_file_data): Split out from
9263         (mips_asm_file_end): ... here.
9264         (mips_asm_file_start): Remove extra .section directive.  Use
9265         tmpfile instead of mips_make_temp_file.
9266         (mips_unique_section): Use const char * as needed for warnings.
9267         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
9268         re-add align parameter.
9269         (iris6_asm_named_section): New.
9270         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
9271         (iris6_asm_output_align, iris6_section_align_1): New.
9272         (iris6_asm_file_start, iris6_asm_file_end): New.
9273         * config/mips/mips-protos.h: Update decls.
9274
9275 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
9276
9277         * doc/install.texi (Install GCC): Add links to build status pages.
9278         (Specific): Ditto.
9279         (Final install): Ditto; request updates for specific info
9280
9281 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9282
9283         * cpperror.c (print_location):  Don't take a file name; use the
9284         line map instead.
9285         (_cpp_begin_message): Similarly.
9286         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
9287         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
9288         (cpp_pedwarn_with_file_and_line): Remove.
9289         * cppfiles.c (stack_include_file): Update; set filename to stdin
9290         here when appropriate.
9291         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
9292         (_cpp_begin_message): Don't take a file name.
9293         * cppinit.c: Add comment.
9294         * cpplex.c: Fix end-of-directive indicator.
9295         * cpplib.c: Don't include intl.h.
9296         (run_directive, do_diagnostic): Update.
9297         (do_line): Update to not use nominal_fname.
9298         (cpp_push_buffer): Don't take a filename.
9299         * cpplib.h (struct ht): Remove.
9300         (cpp_push_buffer): Don't take a filename.
9301         (cpp_pedwarn_with_file_and_line): Remove.
9302         * cppmacro.c (struct cpp_macro): Remove file.
9303         (builtin_macro): Update.
9304         (_cpp_create_definition): Update.
9305         * cppmain.c: Correct comment.
9306         * fix-header.c (read_scan_file): Update.
9307
9308 2001-08-17  Kazu Hirata  <kazu@hxi.com>
9309
9310         * sbitmap.c: Fix comment formatting.
9311         * sched-deps.c: Likewise.
9312         * sibcall.c: Likewise.
9313         * simplify-rtx.c: Likewise.
9314         * ssa.c: Likewise.
9315         * ssa-ccp.c: Likewise.
9316         * stor-layout.c: Likewise.
9317         * timevar.c: Likewise.
9318         * toplev.c: Likewise.
9319         * unwind-dw2.c: Likewise.
9320         * unwind-dw2-fde.c: Likewise.
9321         * varasm.c: Likewise.
9322
9323 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9324
9325         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
9326         or larger than an integer in memory.
9327
9328 2001-08-17  Zack Weinberg  <zackw@panix.com>
9329
9330         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
9331         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
9332         * rtl.h: Don't forward-declare union tree_node here.  Don't
9333         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
9334         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9335         and tree respectively.
9336         * tree.h: Don't forward-declare struct rtx_def here.  Don't
9337         typedef tree here.  Change all uses of struct rtx_def *,
9338         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9339         and tree respectively.
9340
9341 2001-08-17  Richard Henderson  <rth@redhat.com>
9342
9343         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
9344         config/mips/openbsd.h: Fix typos last change.
9345
9346 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9347
9348         * doc/invoke.texi (Optimize Options): The default for
9349         -finline-limit is 600.
9350
9351 2001-08-17  Richard Henderson  <rth@redhat.com>
9352
9353         * varasm.c (text_section): Allow TEXT_SECTION to override the
9354         printing of TEXT_SECTION_ASM_OP.
9355         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
9356         (DATA_SECTION, BSS_SECTION): Remove.
9357         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
9358         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
9359         Rename from s/_NAME//.
9360         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
9361         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
9362         (TEXT_SECTION): ... here.  New.
9363         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
9364         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
9365         * config/mips/openbsd.h: Likewise.
9366         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
9367         (mips_asm_file_end): Likewise test.
9368         (mips_output_function_epilogue): Likewise.  Switch back to data
9369         section after emitting the function.
9370
9371         * doc/tm.texi (Sections): Document TEXT_SECTION.
9372
9373 2001-08-17  Richard Henderson  <rth@redhat.com>
9374
9375         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
9376         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
9377
9378 2001-08-17  Richard Henderson  <rth@redhat.com>
9379
9380         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
9381         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
9382         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
9383         Add aligned attribute.
9384
9385 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
9386
9387         * config/sh/sh.md: Add modes to unspecs in first insn to match
9388         those in the second.
9389
9390         * Makefile.in: Fix collect2 copy for Cygwin.
9391
9392 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
9393
9394         Install the proper patch.
9395         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
9396         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
9397         (expand_function_start): Likewise.
9398         * stmt.c (expand_decl): Likewise.
9399         * varasm.c (make_decl_rtx): Likewise.
9400
9401 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9402
9403         * final.c: Undo my previous accidental checkin.
9404         * output.h: Likewise.
9405         * tm.texi: Likewise.
9406
9407 2001-08-16  Richard Henderson  <rth@redhat.com>
9408
9409         * varasm.c (named_section_flags): Remove align parameter.
9410         * varasm.c, dwarf2out.c: Update all callers.
9411         * output.h: Update prototypes.
9412
9413         * target.h (target.asm_out.named_section): Remove align parameter.
9414         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
9415         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
9416         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
9417         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
9418         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
9419
9420         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
9421         (get_named_section_flags, set_named_section_flags): New.
9422         (named_section_flags): Use them.
9423         (named_section): Do decl vs section flags check here...
9424         (default_section_type_flags): ... not here.
9425         (init_varasm_once): Create in_named_htab.
9426         (resolve_unique_section): Mark reloc unused.
9427
9428 2001-08-16  Richard Henderson  <rth@redhat.com>
9429
9430         * varasm.c (force_const_mem): Keep pool alignment in bits.
9431         (output_constant_pool): Use assemble_align.
9432
9433 2001-08-16  Zack Weinberg  <zackw@panix.com>
9434
9435         * doc/tm.texi: Remove extra @table command.
9436
9437 2001-08-16  Zack Weinberg  <zackw@panix.com>
9438
9439         * final.c (shorten_branches): Clear the end of the label_align
9440         array only if we made it larger.  Break up messy expressions
9441         for clarity.
9442
9443         * diagnostic.c (internal_error): Check for error recursion
9444         before doing ICE suppression.
9445
9446         * timevar.c: Timing variables now count in milliseconds.
9447         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
9448         (get_time): Not here.
9449         (timevar_print): Don't print any timer whose user, cpu, and
9450         wall times are all zero as displayed.
9451         * timevar.h: Update comment aboout units.  Make timevar
9452         counters unsigned.
9453
9454 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
9455
9456         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
9457         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
9458         (expand_function_start): Likewise.
9459         * stmt.c (expand_decl): Likewise.
9460         * varasm.c (make_decl_rtx): Likewise.
9461
9462 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
9463
9464         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
9465         (finalize_record_size): Don't set TYPE_USER_ALIGN.
9466
9467 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9468
9469         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
9470         variables.
9471
9472 2001-08-16  Andreas Jaeger  <aj@suse.de>
9473
9474         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
9475         prototype.
9476
9477 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
9478
9479         * rtl.h (only_sets_cc0_p): New prototype.
9480         * jump.c (sets_cc0_p): Handle INSN.
9481         (only_sets_cc0_p): New function.
9482         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
9483         (tidy_fallthru_edge): Likewise.
9484         * integrate.c (copy_insn_list): Likewise.
9485         * unroll.c (unroll_loop): Likewise.
9486         (copy_loop_body): Likewise.
9487
9488 2001-08-15  Jason Eckhardt  <jle@redhat.com>
9489
9490         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
9491
9492 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
9493
9494         * predict.c (struct block_info_def): Remove nvisited.
9495         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
9496         (estimate_bb_frequencies): Call mark_dfs_back_edges.
9497
9498         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
9499         (ix86_adjust_cost): Teach scheduler that latency to load operand can
9500         be masked.
9501
9502 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
9503
9504         * predict.def: Update hitrates.
9505
9506 2001-08-15  Richard Henderson  <rth@redhat.com>
9507
9508         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
9509
9510 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
9511
9512         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
9513         note from its associated jump.
9514
9515 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
9516
9517         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
9518         also on 64-bit s390x targets.
9519
9520 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
9521
9522         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
9523         function.
9524         (arm_expand_prologue): Handled nested functions which take a
9525         variable argument list.
9526         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
9527         macro with an invocation of
9528         arm_compute_initial_elimination_offset.
9529         * config/arm/arm-protos.h: Prototype
9530         arm_compute_initial_elimination_offset.
9531
9532 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9533
9534         * doc/install.texi (Specific, avr): Fix markup.
9535         (Specific, c4x): Ditto.
9536
9537 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9538
9539         * predict.c (dump_prediction): Change `bool' parameter to `int'.
9540
9541 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
9542
9543         * Makefile.in (OBJS): Add rtl-error.o
9544         (rtl-error.o): New rule.
9545         (diagnostic.o): Adjust dependency.
9546         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
9547         error_for_asm, _fatal_insn, _fatal_insn_not_found,
9548         warning_for_asm): Move to...
9549         rtl-error.c: ...here.  New file.
9550
9551 2001-08-14  Richard Henderson  <rth@redhat.com>
9552
9553         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
9554         if USING_SJLJ_EXCEPTIONS.
9555
9556 2001-08-14  Steve Ellcey <sje@cup.hp.com>
9557
9558         * tlink.c (scan_linker_output): Check string for unsatisfied in
9559         addition to undefined and unresolved.
9560
9561 2001-08-14  Graham Stott  <grahams@redhat.com>
9562
9563         * libgcc2.c (*): Replace EH_FRAME_SECTION with
9564         EH_FRAME_SECTION_NAME.
9565
9566 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
9567
9568         * genattrtab.c (simplify_test_exp_in_temp): New function.
9569         (simplify_test_exp): Avoid explicit use of temporary obstack.
9570         (simplify_cond, insert_right_side, evaluate_eq_attr,
9571         simplify_and_tree, simplify_or_tree, eliminate_known_true):
9572         Use simplify_test_exp_in_temp.
9573         (optimize_attrs): Iterate until expression stabilizes.
9574
9575 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
9576
9577         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
9578         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
9579
9580 2001-08-13  Richard Henderson  <rth@redhat.com>
9581
9582         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
9583         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
9584         * config/arm/conix-elf.h: Likewise.
9585
9586 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
9587
9588         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
9589         in gcc.c.
9590         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9591
9592         * gcse.c (hash_scan_set): Expressions that are set as part of
9593         jump instructions are not available.
9594
9595 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
9596
9597         * config/s390/s390.c (print_operand, s390_function_prologue,
9598         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
9599
9600 2001-08-13  Richard Henderson  <rth@redhat.com>
9601
9602         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
9603         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
9604         * doc/tm.texi (Exception Region Output): Document it.
9605
9606 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
9607
9608         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
9609         DWARF2 instead of stabs by default.
9610
9611 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
9612
9613         * config/rs6000/rs6000.c: Include optabs.h.
9614
9615 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
9616
9617         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
9618         save/restore routines.
9619         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
9620
9621 2001-08-13  Andreas Jaeger  <aj@suse.de>
9622
9623         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
9624         the english is correct.
9625
9626 2001-08-13  Zack Weinberg  <zackw@panix.com>
9627
9628         * expr.h: Split out optab- and libfunc-related code to...
9629         * optabs.h, libfuncs.h: ... these new headers.
9630
9631         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
9632         (OPTABS_H): New.
9633         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
9634         dependencies.
9635         * mkconfig.sh: Don't include insn-codes.h from config.h.
9636
9637         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
9638         enum insn_code is available.  Move reload_in_optab and
9639         reload_out_optab array declarations to optabs.h.
9640         * regmove.c (gen_add3_insn): Move to optabs.c, export from
9641         there, prototype in expr.h.
9642         * gencodes.c: Cleanup: zap global variables, don't use
9643         printf where puts will do, don't bother defining MAX_INSN_CODE
9644         which nothing uses, let CODE_FOR_nothing get its value implicitly.
9645
9646         * genemit.c, genopinit.c: Include optabs.h in generated file.
9647         * genoutput.c: Include insn-codes.h in generated file.
9648         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
9649         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
9650         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
9651         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
9652         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
9653         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
9654         Include optabs.h.
9655         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
9656         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
9657         config/m88k/m88k.c, config/sparc/sparc.c:
9658         Include libfuncs.h.
9659         * reload.c: Include expr.h and optabs.h before reload.h.
9660         * config/alpha/alpha.c: Include tree.h before reload.h.
9661         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
9662         and reload.h in that order.
9663         * config/sparc/sparc.c: Include debug.h.
9664         * recog.c: Include insn-codes.h.
9665
9666 2001-08-13  Andreas Jaeger  <aj@suse.de>
9667
9668         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
9669         s390*linux.
9670
9671 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
9672
9673         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
9674         * gcc.c (init_spec): Fix typo in comment.
9675         * varasm.c (data_section): Fix typo in comment.
9676
9677 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
9678
9679         * predict.c (dump_prediction): New argument "USED".
9680         (combine_predictions_for_insn): Determine the used heuristics,
9681         output the case no heuristic applied.
9682         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
9683
9684 2001-08-13  Andreas Jaeger  <aj@suse.de>
9685
9686         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
9687         register %rip.
9688
9689 2001-08-13  Kazu Hirata  <kazu@hxi.com>
9690
9691         * jump.c: Fix formatting.
9692
9693 2001-08-13  Kazu Hirata  <kazu@hxi.com>
9694
9695         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
9696         length.
9697
9698 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
9699
9700         * loop.c (check_dbra_loop): Use condjump_label to compute
9701         jump_label.
9702
9703         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
9704         to better document the files they're in.
9705
9706 2001-08-12  Zack Weinberg  <zackw@panix.com>
9707
9708         * recog.h (struct insn_operand_data): Shrink 'mode' field
9709         to 16 bits.
9710
9711 2001-08-12  Kazu Hirata  <kazu@hxi.com>
9712
9713         * gcc.c: Fix comment formatting.
9714         * gccspec.c: Likewise.
9715         * gcov.c: Likewise.
9716         * gcse.c: Likewise.
9717         * genemit.c: Likewise.
9718         * gengenrtl.c: Likewise.
9719         * genrecog.c: Likewise.
9720         * gensupport.c: Likewise.
9721         * ggc-page.c: Likewise.
9722         * global.c: Likewise.
9723         * graph.c: Likewise.
9724         * ifcvt.c: Likewise.
9725         * integrate.c: Likewise.
9726         * lcm.c: Likewise.
9727         * libgcc2.c: Likewise.
9728         * loop.c: Likewise.
9729         * mbchar.c: Likewise.
9730         * optabs.c: Likewise.
9731         * predict.c: Likewise.
9732         * prefix.c: Likewise.
9733         * profile.c: Likewise.
9734         * protoize.c: Likewise.
9735         * real.c: Likewise.
9736         * recog.c: Likewise.
9737         * regclass.c: Likewise.
9738         * regmove.c: Likewise.
9739         * reg-stack.c: Likewise.
9740         * reload1.c: Likewise.
9741         * resource.c: Likewise.
9742         * rtlanal.c: Likewise.
9743         * rtl.c: Likewise.
9744
9745 2001-08-12  Kazu Hirata  <kazu@hxi.com>
9746
9747         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
9748         a tree representing a constant is passed to the macro.
9749
9750 2001-08-12  Richard Henderson  <rth@redhat.com>
9751
9752         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
9753         (rs6000_elf_asm_out_destructor): New.
9754         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
9755         (DTORS_SECTION_ASM_OP): Remove.
9756         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
9757         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
9758
9759 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
9760
9761         Revert:
9762         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9763         * gcc.c (set_collect_gcc_options): New function, split out from
9764         main.
9765         Ignore elided switches.
9766         (do_spec_1): Invoke before executing command.
9767         (set_input): Export.
9768         Move declaration ...
9769         * gcc.h (set_input): ... here.
9770         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
9771         file.
9772
9773 2001-08-12  Richard Henderson  <rth@redhat.com>
9774
9775         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
9776         thinko wrt TARGET_RELOCATABLE.
9777
9778 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
9779
9780         * fix-header.c (cb_file_change): Update prototype.
9781
9782 2001-08-11  Zack Weinberg  <zackw@panix.com>
9783
9784         * toplev.c (set_float_handler): Make static.
9785         * toplev.h: Don't prototype set_float_handler.
9786
9787         * simplify-rtx.c: Don't include setjmp.h.
9788         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
9789         New functions.
9790         (simplify_unary_operation, simplify_binary_operation): Use them,
9791         via do_float_handler.
9792
9793         * fold-const.c: Don't include setjmp.h.
9794         (exact_real_inverse_1): New function.
9795         (exact_real_inverse): Use it, via do_float_handler.
9796
9797         * varasm.c: Don't include setjmp.h.
9798         (assemble_real_1): New function.
9799         (assemble_real): Use it, via do_float_handler.
9800         Call internal_error if we get a trap here.
9801
9802         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
9803         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
9804
9805 2001-08-11  Zack Weinberg  <zackw@panix.com>
9806
9807         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
9808         STACK_BOUNDARY if not already defined.
9809
9810         * calls.c, function.c, reload1.c, explow.c: Don't default
9811         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
9812         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
9813
9814         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
9815         to run-time test.
9816
9817         * doc/tm.texi: Document that STACK_BOUNDARY is required;
9818         clarify difference between it and PREFERRED_STACK_BOUNDARY.
9819
9820 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9821
9822         * cppmacro.c (enter_macro_context): Push macro expansions even
9823         if empty.
9824
9825 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9826
9827         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
9828         (rs6000_elf_section_type_flags): Actually return a value.
9829
9830 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
9831
9832         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
9833         Clean up code: add missing comments and prototypes, fix warnings,
9834         remove obsolete code, fix spacing to conform to coding style.
9835
9836 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
9837
9838         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
9839         and TARGET_ASM_CLOSE_PAREN.
9840         (regclass_map): CC register belongs to class NO_REGS.
9841         (legitimize_pic_address): Don't generate unnecessary moves
9842         (to avoid confusing loop optimization).
9843         (check_and_change_labels): Replace jump_long by indirect_jump.
9844         (s390_final_chunkify): Don't start a new literal pool on section
9845         switch in 64-bit code.
9846         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
9847
9848         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
9849         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
9850         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
9851         modes correctly.
9852         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
9853         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
9854         (CONST_COSTS): Fixed incorrect costs.
9855
9856         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
9857         Use emit_jump instead of emit_jump_insn (gen_jump).
9858         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
9859         (to avoid confusing flow analysis).
9860         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
9861         (casesi, casesi_jump): New.
9862         (jump_long): Removed.  Functionality merged into indirect_jump.
9863         (indirect_jump): Accept address_operand, not just register_operand.
9864         (cjump_long, icjump_long): Use same logic as indirect_jump.
9865         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
9866         Fixed broken setjmp/longjmp handling.
9867         (do_builtin_setjmp_setup): Removed.
9868
9869         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
9870         broken GNU as versions that don't accept .quad with large
9871         negative values.  Use hexadecimal output instead.
9872         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
9873         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
9874         FUNCTION_EPILOGUE): Removed.  Now in targetm.
9875
9876         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
9877
9878         * config/s390/fixdfdi.h: Add missing copyright statement.
9879         Fix type conflicts on 64-bit.  Add missing SFmode routines.
9880
9881         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
9882         email address.
9883
9884 2001-08-11  Richard Henderson  <rth@redhat.com>
9885
9886         * rtl.h (REG_EH_RETHROW): Remove.
9887         * rtl.c (reg_note_name): Update.
9888         * combine.c (distribute_notes): Don't check for it.
9889
9890 2001-08-11  Richard Henderson  <rth@redhat.com>
9891
9892         * combine.c (distribute_notes): Place REG_SETJMP.
9893
9894 2001-08-11  Richard Henderson  <rth@redhat.com>
9895
9896         * doc/extend.texi (Arrays and pointers implementation): Discourage
9897         relying on sign-extension of pointers.
9898
9899 2001-08-11  H.J. Lu <hjl@gnu.org>
9900
9901         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
9902         in_dtors.
9903         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
9904         RDATA_SECTION_ASM_OP.
9905
9906 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9907
9908         * doc/install.texi (Specific, c4x): Fix cross-reference to the
9909         main manual to work both for info and HTML versions.
9910
9911 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9912             Matt Kraai <kraai@alumni.carnegiemellon.edu>
9913
9914         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
9915         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
9916         (struct cpp_pool): New member first.
9917         * cppinit.c (append_include_chain): Plug memory leaks.
9918         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
9919         Allocate pragma structures from the (aligned) macro pool to
9920         avoid leaking memory.
9921         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
9922         so we don't leak memory.
9923         * hashtable.c (ht_destroy): New.
9924         * hashtable.h (ht_destroy): New.
9925
9926 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9927             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9928
9929         * c-lex.c (map): Make const.
9930         (cb_file_change): Update for callback passing a line map.
9931         Don't assume we have a previous map.  Remove sanity check
9932         about popping too many files.
9933         * cpperror.c (print_location): Make map const.
9934         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
9935         (cpp_make_system_header): Similarly.
9936         (search_from): Similarly.
9937         (_cpp_execute_include): Don't remember where we came from.
9938         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
9939         (struct cpp_reader): Make map const.
9940         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
9941         * cpplib.c (do_line): Update; line maps now hold sysp.
9942         (cpp_push_buffer): Similarly.
9943         (_cpp_do_file_change): Similarly; callback with map instead.
9944         (cpp_get_line_maps): Constify return value.
9945         (_cpp_pop_buffer): Update.
9946         * cpplib.h (struct cpp_file_change): Remove.
9947         (struct cpp_callbacks): Update.
9948         (cpp_get_line_maps): Constify return value.
9949         * cppmacro.c (_cpp_create_definition): Update.
9950         * cppmain.c (struct printer): Constify map.
9951         (maybe_print_line): Similarly.
9952         (print_line): Similarly.  Deduce flags 1 and 2 here.
9953         (cb_file_change): Update.
9954         * line-map.c (free_line_maps): Warn regardless.
9955         (add_line_map): Return pointer to const.  When passed NULL to_file
9956         with LC_LEAVE, use the obvious values for the return point so the
9957         caller doesn't have to figure them out.
9958         (lookup_line): Return pointer to const.
9959         (print_containing_files): Take pointer to const.
9960         * line-map.h (struct line_map): New members reason, sysp.
9961         (add_line_map): Return pointer to const.
9962         (lookup_line): Similarly.
9963         (print_containing_files): Take pointer to const.
9964
9965 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
9966             Richard Henderson  <rth@redhat.com>
9967
9968         * regmove.c (regmove_optimize): Avoid setting a register twice in
9969         a parallel set.
9970
9971 2001-08-10  Richard Henderson  <rth@redhat.com>
9972
9973         * doc/extend.texi (Arrays and pointers implementation): Document
9974         behavior of pointer/integer conversion.
9975
9976 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
9977
9978         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
9979
9980 2001-08-10  Richard Henderson  <rth@redhat.com>
9981
9982         * doc/extend.texi (C Implementation): New chapter.
9983         * doc/gcc.texi (Top): Link it in.
9984
9985 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
9986
9987         * doc/install.texi (Specific): Fix CVS merge botch.
9988
9989 2001-08-10  Richard Henderson  <rth@redhat.com>
9990
9991         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
9992         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
9993
9994 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
9995
9996         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
9997         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
9998         this macro is now required.
9999
10000         * cselib.c (cselib_process_insn), flow.c (propagate_block),
10001         loop.c (find_and_verify_loops), reload.c (reload): Check
10002         for rtx code of CALL_INSN, not CALL, when deciding if we
10003         need to check for REG_SETJMP note.
10004
10005         * gcse.c (compute_hash_table, compute_store_table): Update
10006         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
10007         logic.
10008
10009         * config/avr/avr.c: Fix typo.
10010         * config/convex/convex.c (expand_movstr): Use adjust_address.
10011         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
10012         variable.
10013         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
10014         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
10015         Fix typo.
10016         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
10017         Do define STACK_BOUNDARY.
10018         * config/i370/i370.c: Include expr.h.
10019         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
10020         config/pa/som.h, config/v850/v850.h: Take in_ctors and
10021         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
10022         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
10023         * config/m88k/m88k.c: Include c-tree.h after expr.h.
10024         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
10025         * config/romp/romp.c: Include expr.h after tree.h.
10026         Include toplev.h.
10027         (output_fpop): Use xmalloc, not oballoc.
10028         * config/we32k/we32k.c: Include expr.h.
10029
10030 2001-08-10  Kazu Hirata  <kazu@hxi.com>
10031
10032         * config/h8300/h8300.h: Fix formatting.
10033
10034 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
10035
10036         * c-common.h (RETURN_NULLIFIED_P): Lose.
10037         * c-semantics.c (genrtl_return_stmt): Don't check it.
10038
10039 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10040
10041         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
10042         (mips_annotate_frame_insn): New function.
10043         (mips_emit_frame_related_store): New function.
10044         (save_restore_insns): Don't mark instructions that set up the base
10045         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
10046         the store instructions instead.
10047         (mips_expand_prologue): If the stack size is moved into a temporary
10048         register, do not mark that move as frame-related.  Add a
10049         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
10050
10051 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10052
10053         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
10054         stack slot as unchanging if current_function_calls_eh_return.
10055
10056 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10057
10058         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
10059         access the second half of the TFmode scratch operand.
10060
10061 2001-08-10  Anthony Green  <green@redhat.com>
10062
10063         * java/class.c (emit_register_classes): Conditionalize code on
10064         JCR_SECTION_NAME.
10065
10066 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10067
10068         * doc/install.texi (Specific, avr): Fix cross-reference to the
10069         main manual to work both for info and HTML versions.
10070
10071 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10072
10073         * stmt.c (expand_null_return_1): Remove code to generate simple returns
10074         and "use_goto" argument.
10075         (expand_null_return, expand_value_return): Update all callers.
10076         * function.c (expand_function_end): Remove code to generate simple
10077         return.
10078         * config/vax/vax.md (epilogue): New expander for function return.
10079         * doc/md.texi (epilogue): Remove "if defined".
10080
10081 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
10082
10083         * Makefile.in: Partially revert my previous change:
10084         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
10085         of the hashtab.o and safe-ctype.o rules.
10086
10087 2001-08-09  Richard Henderson  <rth@redhat.com>
10088
10089         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
10090         (USE_COLLECT2): Remove duplicate definition.
10091         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
10092         (use_collect2): Remove dead code.
10093         * configure.in (use_collect2): Remove will_use_collect2 and
10094         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
10095         * configure: Rebuild.
10096
10097         * target.h (targetm.asm_out.constructor): New.
10098         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
10099         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
10100         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
10101         * varasm.c (in_ctors, in_dtors): New.
10102         (assemble_constructor, assemble_destructor): Remove.
10103         (default_stabs_asm_out_destructor): New.
10104         (default_named_section_asm_out_destructor): New.
10105         (dtors_section, default_dtor_section_asm_out_destructor): New.
10106         (default_stabs_asm_out_constructor): New.
10107         (default_named_section_asm_out_constructor): New.
10108         (ctors_section, default_ctor_section_asm_out_constructor): New.
10109         * output.h: Update declarations.
10110         * c-decl.c (c_expand_body): Use target hooks instead of
10111         assemble_constructor and assemble_destructor.
10112         * profile.c (output_func_start_profiler): Likewise.
10113         * objc/objc-act.c (finish_objc): Likewise.
10114         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
10115         for the constructor.
10116         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
10117
10118         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
10119         (DTORS_SECTION_ASM_OP): Likewise.
10120         (__CTOR_LIST__): Use attribute section when possible.
10121         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
10122
10123         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
10124         ASM_OUTPUT_CONSTRUCTOR.
10125
10126         * config/darwin.c (machopic_asm_out_constructor): New.
10127         (machopic_asm_out_destructor): New.
10128         * config/darwin-protos.h: Update declarations.
10129         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10130         (ASM_OUTPUT_DESTRUCTOR): Remove.
10131         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10132         * config/nextstep.c (nextstep_asm_out_constructor): New.
10133         (nextstep_asm_out_destructor): New.
10134         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10135         (ASM_OUTPUT_DESTRUCTOR): Remove.
10136         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10137         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
10138         ASM_OUTPUT_*STRUCTOR.
10139         * config/i386/aix386ng.h: Likewise.
10140
10141         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
10142         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
10143         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10144         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10145         * config/lynx.h: Likewise.
10146         * config/netware.h: Likewise.
10147         * config/psos.h: Likewise.
10148         * config/alpha/alpha-interix.h: Likewise.
10149         * config/alpha/elf.h: Likewise.
10150         * config/arc/arc.h: Likewise.
10151         * config/arm/aof.h: Likewise.
10152         * config/arm/coff.h: Likewise.
10153         * config/arm/elf.h: Likewise.
10154         * config/c4x/c4x.h: Likewise.
10155         * config/h8300/h8300.h: Likewise.
10156         * config/i386/cygwin.h: Likewise.
10157         * config/i386/djgpp.h: Likewise.
10158         * config/i386/i386-coff.h: Likewise.
10159         * config/i386/i386-interix.h: Likewise.
10160         * config/i386/sco5.h: Likewise.
10161         * config/i386/vsta.h: Likewise.
10162         * config/i386/win32.h: Likewise.
10163         * config/i960/i960-coff.h: Likewise.
10164         * config/ia64/sysv4.h: Likewise.
10165         * config/m68hc11/m68hc11.h: Likewise.
10166         * config/m68k/coff.h: Likewise.
10167         * config/m68k/mot3300.h: Likewise.
10168         * config/m88k/m88k.h: Likewise.
10169         * config/mcore/mcore-pe.h: Likewise.
10170         * config/mcore/mcore.h: Likewise.
10171         * config/mips/elf.h: Likewise.
10172         * config/mips/elf64.h: Likewise.
10173         * config/mips/iris6.h: Likewise.
10174         * config/pa/pa64-hpux.h: Likewise.
10175         * config/rs6000/sysv4.h: Likewise.
10176         * config/sh/sh.h: Likewise.
10177         * config/sparc/litecoff.h: Likewise.
10178
10179         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
10180         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10181         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10182         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10183         (ASM_OUTPUT_DESTRUCTOR): Remove.
10184         * config/a29k/a29k.c: Move include of tree.h.
10185         * config/a29k/udi.h: Delete file.
10186         * config/alpha/alpha.c (vms_asm_out_constructor): New.
10187         (vms_asm_out_destructor): New.
10188         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
10189         (EXTRA_SECTION_FUNCTIONS): Likewise.
10190         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10191         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10192         * config/c4x/c4x.c: Move include of tree.h.
10193         * config/clipper/clipper.c (clix_asm_out_constructor): New.
10194         (clix_asm_out_destructor): New.
10195         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10196         (ASM_OUTPUT_DESTRUCTOR): Remove.
10197         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10198         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10199         (TARGET_ASM_CONSTRUCTOR): New.
10200         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
10201         (sco_asm_out_constructor): New.
10202         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
10203         * config/i386/svr3gas.h: Remove stack grows up code.
10204         Remove code duplicated from i386/sysv3.h.
10205         (TARGET_ASM_CONSTRUCTOR): New.
10206         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10207         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
10208         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10209         (TARGET_ASM_CONSTRUCTOR): New.
10210         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
10211         (m68hc11_asm_out_destructor): New.
10212         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
10213         (TARGET_ASM_DESTRUCTOR): New.
10214         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
10215         * config/m68k/dpx2.h: Properly undef all the bits inherited from
10216         config/svr3.h pertaining to section manipulation.
10217         * config/m68k/dpx2g.h: Remove #if 0 code.
10218         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
10219         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
10220         (ASM_OUTPUT_CONSTRUCTOR): Remove.
10221         (TARGET_ASM_CONSTRUCTOR): New.
10222         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
10223         (m88k_svr3_asm_out_constructor): New.
10224         (m88k_svr3_asm_out_destructor): New.
10225         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10226         (ASM_OUTPUT_DESTRUCTOR): Remove.
10227         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10228         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
10229         * config/rs6000/aix.h: Likewise.
10230         * config/mips/rtems64.h: Don't undef removed constructor related bits.
10231         * config/mips/vxworks.h: Likewise.
10232         * config/rs6000/lynx.h: Likewise.
10233         * config/sh/elf.h: Likewise.
10234         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
10235         (DTORS_SECTION_ASM_OP): New.
10236         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10237         (ASM_OUTPUT_DESTRUCTOR): Remove.
10238         * config/sparc/sol2-sld-64.h: Likewise.
10239         * config/vax/vax.c (vms_asm_out_constructor): New.
10240         (vms_asm_out_destructor): New.
10241         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10242         (ASM_OUTPUT_DESTRUCTOR): Remove.
10243         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10244
10245         * doc/tm.texi (@node Initialization): Update.
10246
10247 2001-08-09  Richard Henderson  <rth@redhat.com>
10248
10249         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
10250         (__do_global_dtors_aux): Use gp-relative static data to avoid
10251         one dynamic relocation.
10252         (__do_frame_setup): Register Java classes.
10253         * config/alpha/crtend.asm (__JCR_END__): New.
10254
10255 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
10256
10257         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
10258         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
10259         (GEN, STAGESTUFF): Add new files.
10260         (insn-constants.h, s-constants, tm-preds.h, s-preds,
10261         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
10262         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
10263         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
10264         as well as insn-codes.h and insn-flags.h in config.h; and no
10265         extra headers in tconfig.h and hconfig.h.
10266
10267         * gencodes.c: Eliminate code to generate predicate declarations
10268         or #defines for md-file constants.
10269         * genconstants.c, genpreds.c: New files.
10270
10271         * i386.md: Re-order guard expressions such that TARGET_64BIT
10272         comes first, when this permits better optimization.  Add
10273         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
10274         why this is desirable.
10275
10276 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
10277
10278         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
10279         (find_fde_for_dso): Remove.
10280         (_Unwind_IteratePhdrCallback): New.
10281         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
10282         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
10283
10284 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10285
10286         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
10287         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
10288
10289 2001-08-09  Graham Stott  <grahams@redhat.com>
10290
10291         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
10292         (vis_no_unit): Use it.
10293         (visualize_no_unit): Add the insn only if room exists.
10294
10295 2001-08-09  Graham Stott  <grahams@redhat.com>
10296
10297         * predict.c (estimate_probability): Replace magic numbers with
10298         appropriate enumeration.
10299
10300 2001-08-09  Graham Stott  <grahams@redhat.com>
10301
10302         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
10303         parameter.
10304         (EXTRACT_FLAGS): Likewise.
10305
10306 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
10307
10308         * config/mips/mips.c    (mips_legitimate_address_p): Check for
10309         CONST_INT in last patch.
10310
10311 2001-08-08  Anthony Green  <green@redhat.com>
10312
10313         * java/class.c (emit_register_classes): Use assemble_jcr if
10314         possible.  Keep the original mechanism as a fallback.
10315         * defaults.h (JCR_SECTION_NAME): Define if we have named section
10316         and weak symbol support.
10317         * crtstuff.c (__JCR_LIST__): Define.
10318         (__JCR_END__): Define.
10319         (_Jv_RegiserClasses): Define weak symbol if possible.
10320         (__do_global_ctors_aux): Register classes for ELF targets with
10321         weak symbol support.
10322
10323 2001-08-08  Kazu Hirata  <kazu@hxi.com>
10324
10325         * dbxout.c: Fix comment formatting.
10326         * dependence.c: Likewise.
10327         * df.c: Likewise.
10328         * diagnostic.c: Likewise.
10329         * dominance.c: Likewise.
10330         * doprint.c: Likewise.
10331         * dwarf2out.c: Likewise.
10332         * dwarfout.c: Likewise.
10333         * emit-rtl.c: Likewise.
10334         * except.c: Likewise.
10335         * explow.c: Likewise.
10336         * expmed.c: Likewise.
10337         * expr.c: Likewise.
10338         * flow.c: Likewise.
10339         * fold-const.c: Likewise.
10340         * function.c: Likewise.
10341
10342 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10343
10344         * global.c (retry_global_alloc): Avoid shadowing allocno.
10345
10346 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
10347
10348         * except.c (remove_fixup_regions): Fix typo.
10349
10350 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
10351
10352         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
10353         unsigned HOST_WIDE_INT to avoid warning.
10354         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
10355         * flow.c (set_block_for_new_insns): Likewise.
10356
10357 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
10358
10359         * sibcall.c (return_value_pseudo): New static variable.
10360         (skip_copy_to_return_value): Handle return_value_pseudo.
10361         (call_ends_block_p): Ensure that return_value_pseudo is set.
10362         (optimize_sibling_and_tail_recursive_call): Discover the
10363         load of pseudo return value in alternate exit block.
10364
10365 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
10366
10367         * calls.c (ECF_ALWAYS_RETURN): New constant.
10368         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
10369         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
10370         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
10371         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
10372         * rtl.c (reg_note_name): New name.
10373         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
10374
10375 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
10376
10377         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
10378
10379 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
10380
10381         * alias.c (get_alias_set): Return a previously calculated
10382         alias set for a VAR_DECL.
10383         * function.c (gen_mem_addressof): Calculate the alias set before
10384         touching the RTL.
10385
10386 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
10387
10388         * predict.def: Set hitrates according our experimental run.
10389
10390 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
10391
10392         * i386.h (HARD_REGNO_RENAME_OK): New macro.
10393
10394 2001-08-08  H.J. Lu <hjl@gnu.org>
10395
10396         * config/mips/mips.c (mips_unique_section): New. Copied from
10397         config/mips/elf.h.
10398
10399         * config/mips/mips-protos.h (mips_unique_section): New
10400         prototype.
10401
10402         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
10403
10404         * config/mips/little.h: New. Generic little endian mips
10405         targets. Only mips*-*-linux* is converted to use it so far.
10406
10407         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
10408         (WCHAR_TYPE): Defined
10409         (WCHAR_TYPE_SIZE): Likewise.
10410         (INIT_SUBTARGET_OPTABS): Likewise.
10411         (BSS_SECTION_ASM_OP): Likewise.
10412         (SBSS_SECTION_ASM_OP): Likewise.
10413         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10414         (ASM_DECLARE_OBJECT_NAME): Likewise.
10415         (UNIQUE_SECTION): Likewise.
10416         (EXTRA_SECTIONS): Likewise.
10417         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
10418         (ASM_OUTPUT_DESTRUCTOR): Likewise.
10419         (ASM_OUTPUT_DEF): Likewise.
10420         (HANDLE_SYSV_PRAGMA): Removed.
10421         (NO_IMPLICIT_EXTERN_C): Likewise.
10422         (TARGET_MEM_FUNCTIONS): Likewise.
10423         (STARTFILE_SPEC): Likewise.
10424         (ENDFILE_SPEC): Likewise.
10425         (LIB_SPEC): Likewise.
10426         (INVOKE__main): Likewise.
10427         (CTOR_LIST_BEGIN): Likewise.
10428         (CTOR_LIST_END): Likewise.
10429         (DTOR_LIST_BEGIN): Likewise.
10430         (DTOR_LIST_END): Likewise.
10431         (SET_ASM_OP): Likewise.
10432         (ASM_OUTPUT_SOURCE_LINE): Likewise.
10433         (ASM_OUTPUT_DEF): Likewise.
10434         (ASM_OUTPUT_IDENT): Likewise.
10435
10436         * config/mips/mips.h (ASM_SPEC): Undefine before define.
10437         (CPLUSPLUS_CPP_SPEC): Likewise.
10438         (ASM_APP_ON) Redefine only if not defined.
10439         (ASM_APP_OFF): Likewise.
10440         (ASM_OUTPUT_SOURCE_LINE): Likewise.
10441         (ASM_OUTPUT_IDENT): Likewise.
10442
10443         * config.gcc: Update tm_file for Linux/mips.
10444
10445 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
10446
10447         * cselib.c (cselib_record_sets): If insn is predicated, turn
10448         sources into IF_THEN_ELSEs.
10449
10450         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
10451         Turn into define_insn_and_split.
10452
10453         * sched-deps.c: Include "cselib.h".
10454         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
10455         Use cselib to turn memory addresses into VALUEs.
10456         (sched_analyze): Call cselib_init/cselib_finish if necessary.
10457         * sched-int.h (struct sched_info): New member USE_CSELIB.
10458         * sched-ebb.c (ebb_sched_info): Initialize it.
10459         * sched-rgn.c (rgn_sched_info): Likewise.
10460         * Makefile.in (sched-deps.o): Update dependencies.
10461
10462         * cselib.h (cselib_subst_to_values): Declare.
10463         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
10464         that have no value and autoincs to be handled by generating a new
10465         dummy value.
10466
10467 2001-08-08  Graham Stott  <grahams@redhat.com>
10468
10469         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
10470         within fixed length SEQUENCE.
10471
10472 2001-08-08  Graham Stott  <grahams@redhat.com>
10473
10474         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
10475         (diagnostic_prefixing_rule): Likewise.
10476         (diagnostic_line_cutoff): Likewise.
10477         (diagnostic_kind_count): Likewise.
10478
10479 2001-08-08  Graham Stott  <grahams@redhat.com>
10480
10481         * alias.c (find_base_decl): Delete redundent assignment.
10482
10483 2001-08-08  Graham Stott  <grahams@redhat.com>
10484
10485         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
10486         (abs): Uppercase and paranthesize macro parameter.
10487         (MEM_DEPENDENCY): Add whitespace.
10488
10489 2001-08-08  Graham Stott  <grahams@redhat.com>
10490
10491         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
10492         failure check for CONST_INT
10493
10494 2001-08-08  Graham Stott  <grahams@redhat.com>
10495
10496         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
10497         (libcall_dead_p): Likewise.
10498
10499         (mark_used_regs): Constify fmt.
10500         (find_use_as_address): Likewise.
10501
10502 2001-08-08  Graham Stott  <grahams@redhat.com>
10503
10504         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
10505          parameter.
10506
10507 2001-08-08  Graham Stott  <grahams@redhat.com>
10508
10509         * combine.c (combine_simplify_rtx): Update comment and
10510         remove erroneous test.
10511
10512 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10513
10514         * cppinit.c (cpp_finish): Pop the final buffer without comment.
10515         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
10516         take care to avoid multiple no-newline at EOF warnings in that
10517         case.
10518
10519 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
10520
10521         * calls.c (expand_call): Do not emit INSN_SETJMP note.
10522         (emit_library_call_value_1): Likewise.
10523         (emit_call_1): Emit REG_SETJMP note.
10524         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
10525         of INSN_SETJMP
10526         * cselib.c (cselib_process_insn): Likewise.
10527         * flow.c (propagate_block): Likewise.
10528         * loop.c (find_and_verify_loops): Likewise.
10529         * reload.c (find_equiv_regs): Likewise.
10530         * reload1.c (reload): Likewise.
10531         * resource.c (mark_referenced_resources,
10532         mark_set_resources): Likewise.
10533         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
10534         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
10535         * haifa-sched.c (unlink_other_notes): Likewise.
10536         (reemit_notes): Likewise.
10537         * sched-ebb.c (sched_ebb): Likewise.
10538         * sched-rgc.c (sched_region): Likewise.
10539         * rtl.c (note_insn_name): Likewise.
10540         (reg_note_name): Add REG_SETJMP
10541         * rtl.h (reg_note): Add REG_SETJMP.
10542         (insn_note): Remove NOTE_INSN_SETJMP.
10543
10544         * profile.c (branch_prob): Add fake edges for setjmp.
10545
10546 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
10547
10548         * config.gcc: Quote target_cpu_default2 correctly for
10549         powerpc*-*-* targets.
10550
10551 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10552
10553         * cpplib.h, line-map.h: Update comments.
10554         * cppmain.c (printer_init): Move inline.
10555         (maybe_print_line, print_line): Take a map pointer.
10556         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
10557         (cb_file_change): Don't use prior value of print.map.
10558
10559 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
10560
10561         * doc/install.texi: Document fine-grained multilib configuration.
10562
10563 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
10564
10565         * rtlanal.c (find_first_parameter_load): Call note_stores
10566         only on the instructions.
10567
10568 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
10569
10570         * alias.c (nonlocal_mentioned_p):
10571         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
10572         * calls.c (emit_call_1): Likewise.
10573         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
10574         * cselib.c (cselib_process_insn): Likewise.
10575         * df.c (df_insns_modify): Likewise.
10576         * flow.c (need_fake_edge_p): Likewise.
10577         (propagate_one_insn): Likewise.
10578         * haifa-sched.c (reemit_notes): Likewise.
10579         * integrate.c (copy_insn_list): Likewise.
10580         * jump.c (delete_prior_computation): Likewise.
10581         * local-alloc.c (validate_equiv_mem): Likewise.
10582         * loop.c (scan_loop): Likewise.
10583         * predict.c (estimate_probability): Likewise.
10584         * reload.c (reload): Likewise.
10585         * sched-deps (sched_analyze): Likewise.
10586         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
10587         * gcse.c (compute_hash_table): Likewise.
10588         (mark_call): Likewise.
10589         (store_killed_in_insn): Likewise.
10590
10591 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
10592
10593         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
10594
10595 2001-08-06  Richard Henderson  <rth@redhat.com>
10596
10597         * varasm.c (assemble_gc_entry): Remove.
10598         * output.h: Likewise.
10599
10600 2001-08-06  Richard Henderson  <rth@redhat.com>
10601
10602         * varasm.c (assemble_constructor): Take a symbol_ref and a
10603         priority instead of a bare string.  Move priority handling
10604         here from cp/decl2.c.
10605         * output.h: Update decls.
10606
10607         * c-decl.c (c_expand_body): Update calls to assemble_constructor
10608         and assemble_destructor.
10609         * profile.c (output_func_start_profiler): Likewise.
10610         * objc/objc-act.c (finish_objc): Likewise.
10611         (build_module_descriptor): Return the symbol not the symbol name.
10612
10613 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
10614
10615         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
10616         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
10617         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
10618         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
10619         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
10620         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
10621
10622 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10623
10624         * cpperror.c (print_containing_files): Moved to line-map.c.
10625         (print_location): line-map.c handles re-listing or otherwise.
10626         * cpphash.h (struct lexer_state): Remove next_bol.
10627         (struct cpp_buffer): Remove include_stack_listed.
10628         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
10629         Remove faked buffer handling.
10630         (_cpp_do_file_change): Tweak.
10631         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
10632         * cppmain.c (struct printer): Remove filename.
10633         (print_line, cb_file_change): Update accordingly.
10634         * line-map.c: Include intl.h.
10635         (init_line_maps): Initialize last_listed.
10636         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
10637         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
10638         (print_containing_files): New.
10639         * line-map.h (struct line_maps): New member last_listed.
10640         (print_containing_files, INCLUDED_FROM): New.
10641         * Makefile.in: Update.
10642         * po/POTFILES.in: Add line-map.c.
10643
10644 2001-08-06  Richard Henderson  <rth@redhat.com>
10645
10646         * except.c (convert_from_eh_region_ranges_1): Never mark
10647         USE or CLOBBER insns as throwing.
10648
10649         * expr.c (store_constructor): Don't clobber memory targets.
10650
10651 2001-08-06  Andreas Jaeger  <aj@suse.de>
10652
10653         * profile.c (branch_prob): Remove unused variable insn.
10654
10655         * Makefile.in (local-alloc.o): Add dependency on except.h.
10656
10657         * local-alloc.c: Include except.h for can_throw_internal prototype.
10658
10659 2001-08-06  Richard Henderson  <rth@redhat.com>
10660
10661         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
10662         * function.c (expand_main_function): Implement it.
10663         * doc/tm.texi: Document it.
10664
10665 2001-08-06  Stan Shebs  <shebs@apple.com>
10666
10667         * doc/install.texi: Document powerpc-*-darwin* details.
10668
10669 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
10670
10671         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
10672         (ASM_CPU_SPEC): Move back to rs6000.h
10673         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
10674
10675         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
10676
10677         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
10678         readded.
10679
10680         * config/rs6000/linux64.h: Ditto.
10681
10682         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
10683         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
10684         nothing.
10685
10686         Remove accidently readded definitions of FUNCTION_PROLOGUE,
10687         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
10688
10689         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
10690         to rs6000.h
10691
10692 2001-08-05  Richard Henderson  <rth@redhat.com>
10693
10694         * local-alloc.c (update_equiv_regs): Do not move insns that
10695         can throw.
10696
10697 2001-08-05  Jan Hubicka  <jh@suse.cz>
10698
10699         * Makefile.in (reload1.o): Add dedendancy on except.h
10700         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
10701         prototypes.
10702         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
10703         indicating wehther edges has been cleaned up.
10704         * reload1.c: Inlucde except.h
10705         (fixup_abnormal_edges): Accept deleted insns.
10706         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
10707         after combine.
10708
10709 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10710
10711         * cpplib.c (do_line): Correct line number after pop_buffer.
10712
10713 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10714
10715         PR preprocessor/3824
10716         * line-map.c: Update comments.
10717         * line-map.h: Update comments.
10718         * tradcif.y: Don't consider large numbers unsigned.
10719
10720 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10721
10722         PR preprocessor/3081
10723         * c-lex.c (map): New.
10724         (cb_file_change): Update map and use it.
10725         (cb_def_pragma, cb_define, cb_undef): Use map and line.
10726         (c_lex): Update to use map.
10727         * cpperror.c (print_location): Move to using logical line numbers.
10728         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
10729         (cpp_make_system_header): Similarly.
10730         (_cpp_execute_include): Stop line numbering hacks.  Store the
10731         line we will return to.
10732         * cpphash.h (CPP_BUF_LINE): Remove.
10733         (struct cpp_buffer): Remove lineno and pseudo_newlines.
10734         Add map and return_to_line.
10735         (_cpp_do_file_change): Update.
10736         * cppinit.c (cpp_start_read): Update line kludge.
10737         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
10738         (trigraph_ok): Use logical line numbers for diagnostics.
10739         (skip_block_comment): Likewise.
10740         (skip_whitespace): Likewise.
10741         (skip_line_comment): Use pfile->line instead.
10742         (_cpp_lex_token): Update to use logical line numbering exclusively.
10743         Handle BOL locally.  Accept new lines in directives, but keep
10744         pfile->line decremented.  Diagnostics use logical lines.  Update
10745         directive handling.
10746         * cpplib.c (SEEN_EOL): New.
10747         (skip_rest_of_line, check_eol): Use it.
10748         (end_directive): Increase line number when accepting the newline
10749         at the end of a directive.
10750         (run_directive): Simplify.
10751         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
10752         (_cpp_do_file_change): Update to take buffer line number as an
10753         argument, and store the current map in the cpp_reader.  Remove
10754         line number kludges.
10755         (_cpp_do__Pragma): Restore output position after a _Pragma.
10756         (cpp_push_buffer): Don't set output line or lineno.
10757         (_cpp_pop_buffer): Transfer more info from a faked buffer.
10758         Remove line kludge.  Set output_line.
10759         * cppmacro.c (builtin_macro): Update handling of __LINE__.
10760         (parse_arg): Use logical lines.
10761         (save_lookahead_token): Save EOFs too now.
10762         * cppmain.c (struct printer): Fix comments.
10763         (printer_init): Simplify, let caller do errors.
10764         (scan_translation_unit, check_multiline_token, dump_macro): Update.
10765         (maybe_print_line): Simplify.
10766         (print_line): Don't print a linemarker if -P.
10767         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
10768         (cb_file_change): Simplify.
10769         * line-map.h (LAST_SOURCE_LINE): Fix.
10770         (CURRENT_LINE_MAP): New.
10771
10772 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
10773
10774         * doloop.c (doloop_modify_runtime): Properly compute number of
10775         iterations if loop was unrolled.
10776
10777         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
10778         if their CSELIB_VAL_PTRs are.
10779
10780         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
10781         (setup_spill_pointers): Initialize it.
10782         (spill_restore_mem): Set it.
10783         (do_spill, do_restore): Use it to add REG_INC note.
10784         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
10785
10786         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
10787         asms if other insns are available.
10788
10789         * config/ia64/ia64.c (condop_operator): New predicate.
10790         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
10791         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
10792         patterns.
10793
10794         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
10795         temporary register than directly using a MEM.
10796
10797 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
10798
10799         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
10800         parameter in last change.
10801
10802 2001-08-04  Zack Weinberg  <zackw@panix.com>
10803
10804         * sparc.md: Don't use #if inside C test expression.
10805
10806 2001-08-04  Richard Henderson  <rth@redhat.com>
10807
10808         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
10809
10810 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10811
10812         * cpphash.h (struct cpp_reader): New member directive_line.
10813         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
10814         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
10815         do_pragma): Pass line to callbacks.
10816         (start_directive): Record line of directive.
10817         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
10818         cb_include): Similarly.
10819         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
10820         Similarly.
10821
10822 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
10823
10824         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
10825         comment.
10826
10827 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
10828
10829         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
10830
10831         * reload1.c (fixup_abnormal_edges): New static function.
10832         (reload): Use it.
10833
10834         * flow.c (need_fake_edge_p): New function.
10835         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
10836         avoid call insn to be very last insn in the insn stream.
10837
10838         * profile.c (branch_prob): Call flow_call_edges_add instead of
10839         doing that by hand; cleanup cfg to re-merge basic blocks once
10840         we are done.
10841
10842 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10843
10844         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
10845         are also on line-map.h.
10846         * cppfiles.c (stack_include_file): Update.
10847         * cpphash.h (struct cpp_buffer): New member return_at_eof.
10848         (_cpp_pop_buffer): New.
10849         * cppinit.c (cpp_destroy, cpp_finish): Update.
10850         (do_includes): Mark each buffer to return at EOF.
10851         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
10852         return as requested.
10853         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
10854         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
10855         * cpplib.h (cpp_pop_buffer): Remove.
10856         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
10857         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
10858         buffers.
10859         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
10860         to pop buffers.
10861         (do_preprocessing): Update.
10862         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
10863         * c-parse.in (_yylex): Similarly.
10864         * scan-decls.c (scan_decls): Similarly.
10865         * line-map.h: Update comments.
10866
10867         * objc/Make-lang.in (objc-act.o): Update dependencies.
10868
10869 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10870
10871         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
10872         and soft register for operand 0.
10873         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
10874
10875 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10876
10877         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
10878         register for operand 0.
10879         ("bitcmpqi_z_used"): Allow memory for operand 0.
10880         (split "bitcmpqi"): New split to handle address reg as operand 1.
10881
10882 2001-08-04  Andreas Jaeger  <aj@suse.de>
10883
10884         * gcse.c: Revert Daniel's last patch.
10885
10886 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
10887
10888         * sparc-protos.h: Add prototypes for fp_zero_operand and
10889         reg_or_0_operand.
10890         * sh-protos.h: Add prototype for fpul_operand.
10891
10892 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
10893
10894         * doc/extend.texi (Other Builtins): Fix typo in last change.
10895
10896 2001-08-03  Richard Henderson  <rth@redhat.com>
10897
10898         * target.h (gcc_target): Add asm_out.named_section,
10899         section_type_flags, have_named_sections.
10900         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
10901         (TARGET_HAVE_NAMED_SECTIONS): New.
10902         (TARGET_SECTION_TYPE_FLAGS): New.
10903
10904         * Makefile.in (toplev.o): Depend on TARGET_H.
10905         (varasm.o, dbxout.o): Likewise.
10906         * c-common.c (decl_attributes): Check targetm.have_named_sections
10907         instead of ifdef ASM_OUTPUT_SECTION_NAME.
10908         * dbxout.c (dbxout_function_decl): Likewise.
10909         (dbxout_function_end): Likewise.
10910         * toplev.c (compile_file): Likewise.
10911         * varasm.c (exception_section): Likewise.
10912         * cp/decl2.c (finish_objects): Likewise.
10913
10914         * defaults.h (EH_FRAME_SECTION): Remove.
10915         (EH_FRAME_SECTION_ASM_OP): Remove.
10916         (EH_FRAME_SECTION_NAME): New.
10917         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
10918         (UNIQUE_SECTION_P): Remove.
10919         * dwarf2out.c (SECTION_FORMAT): Remove.
10920         (ASM_OUTPUT_SECTION): Remove.
10921         (output_call_frame_info): Use named_section_flags.
10922         (output_comp_unit, dwarf2out_start_source_file): Likewise.
10923         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
10924         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
10925         * varasm.c (in_eh_frame, eh_frame_section): Remove.
10926         (named_section_flags): New.
10927         (named_section): Use it and targetm.section_type_flags.
10928         (resolve_unique_section): New.
10929         (assemble_start_function): Use it.
10930         (asm_emit_uninitialised, assemble_variable): Likewise.
10931         (default_section_type_flags): New.
10932         (default_no_named_section, default_elf_asm_named_section): New.
10933         (default_coff_asm_named_section, default_pe_asm_named_section): New.
10934         * output.h: Update varasm.c decls.
10935         (SECTION_*): New flags.
10936
10937         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
10938         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
10939
10940         * config/elfos.h (UNIQUE_SECTION_P): Remove.
10941         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
10942         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
10943         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
10944         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
10945         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
10946         * config/mips/elf.h, config/mips/elf64.h: Likewise.
10947         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
10948         * config/pa/pa64-hpux.h,
10949
10950         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
10951         (TARGET_ASM_NAMED_SECTION): New.
10952         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
10953         * config/alpha/vms.h, config/arm/coff.h: Likewise.
10954         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
10955         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
10956         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
10957         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
10958         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
10959         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
10960         * config/i386/sco5.h, config/i386/win32.h: Likewise.
10961         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
10962         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
10963         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
10964         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
10965         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
10966         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
10967         * config/sparc/sysv4.h: Likewise.
10968
10969         * config/nextstep.h: Error until named sections implemented.
10970
10971         * config/a29k/a29k.c (a29k_asm_named_section): New.
10972         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
10973         (vms_section_type_flags, vms_asm_named_section): New.
10974         * config/arm/arm.c (arm_elf_asm_named_section): New.
10975         * config/avr/avr.c (asm_output_section_name): Remove.
10976         * config/avr/avr-protos.h: Update.
10977         * config/c4x/c4x.c (c4x_asm_named_section): New.
10978         * config/h8300/h8300.c (h8300_asm_named_section): New.
10979         * config/i386/i386.c (sco_asm_named_section): New.
10980         * config/i386/winnt.c (SECTION_PE_SHARED): New.
10981         (i386_pe_section_type_flags): New.
10982         (i386_pe_asm_named_section): New.
10983         * config/i386/i386-protos.h: Update.
10984         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
10985         * config/mcore/mcore.c (mcore_asm_named_section): New.
10986         * config/mips/mips.c (iris6_asm_named_section): New.
10987         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
10988         instead of UNIQUE_SECTION_P.
10989         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
10990         (xcoff_asm_named_section): New.
10991         * config/sh/sh.c (sh_asm_named_section): New.
10992         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
10993
10994         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
10995         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
10996         (EH_FRAME_SECTION_NAME): New.
10997         (EXCEPTION_SECTION): New.
10998         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
10999         (DEBUG_*_SECTION): Remove.
11000         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
11001         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
11002         (EH_FRAME_SECTION_ASM_OP): Remove.
11003
11004         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
11005         (ASM_OUTPUT_SECTION_NAME): Remove.
11006         (TARGET_ASM_NAMED_SECTION): New.
11007         (TARGET_HAVE_NAMED_SECTIONS): New.
11008         (TARGET_SECTION_TYPE_FLAGS): New.
11009         (EH_FRAME_SECTION_ASM_OP): Remove.
11010         (EH_FRAME_SECTION_NAME): New.
11011
11012 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
11013
11014         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
11015         for complex expressions when cfun == 0.
11016         * doc/extend.texi: Document that __builtin_constant_p can be
11017         used in data initializers as well as functions.
11018
11019 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
11020
11021         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
11022         variable I locally, instead of expecting a declaration in the
11023         calling context.
11024
11025 2001-08-03  Richard Henderson  <rth@redhat.com>
11026
11027         * except.c (collect_one_action_chain): Add an explicit cleanup
11028         action if regions surrounding a catch were encoded entirely
11029         within the call-site entry.
11030
11031 2001-08-03  Richard Henderson  <rth@redhat.com>
11032
11033         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
11034         don't take REGNO of a non-register.
11035
11036 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11037
11038         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
11039         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
11040         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
11041         (__gthread_mutex_init_function): New function for mutex initialization.
11042
11043 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11044
11045         * Makefile.in: Revert screwed up commit.
11046
11047 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11048
11049         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
11050         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
11051         merged by linker script to get a final _exit().
11052         (__do_global_dtors): New for destructor handling in specific exit
11053         section.
11054         (__do_global_ctors): New for constructors in specific install section.
11055         (__map_data_section): Map data sections before running constructors.
11056         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
11057         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
11058         (DTORS_SECTION_ASM_OP): Likewise.
11059         (CTORS_SECTION_FUNCTION): Define to force a reference to
11060         __do_global_ctors.
11061         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
11062
11063 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11064
11065         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
11066
11067         * Makefile.in: Add df.h to gcse.c dependencies.
11068
11069 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11070
11071         * varasm.c (output_constant_def_contents): Use for the length of a
11072         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
11073         depending on which is larger.
11074
11075 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11076
11077         * gcse.c: Include df.h for use as a dataflow analyzer.
11078         Remove regvec.
11079         Declaration of reg_set_info: gone.
11080         New df_analyzer variable used by store motion.
11081         (reg_set_info): Deleted.
11082         (mark_mem_regs): New function, analyze regs used by a mem.
11083         (store_ops_ok): Use dataflow analyzer results to determine if
11084         necessary regs are changed in the block.
11085         (find_moveable_store): Remove check for symbol ref, we can handle
11086         much more complex expressions now.
11087         (compute_store_table): Remove most of the code, it's unnecessary
11088         now that the dataflow analyzer records the info for us.
11089         (store_killed_after): Add parameter to say whether to do the
11090         store_ops_okay test, used to speed up testing when we already know
11091         the answer, and just want to know if the store itself was killed.
11092         (build_store_vector): Largely rewritten to calculate the various
11093         vectors properly, and somewhat optimized.
11094         (store_motion): Init the df_analyzer, get REG_DEF chains.
11095         Also handle trapping expressions (since mems almost always trap)
11096         (simple_mem): Redefine what a simple mem is.
11097
11098 2001-08-03  DJ Delorie  <dj@redhat.com>
11099
11100         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
11101         set from a constant part of the condition.
11102
11103 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
11104
11105         * mkdeps.c (deps_add_default_target): Make local variable
11106         ``start'' a const char pointer.
11107         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
11108
11109 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11110
11111         * doc/install.texi (Configuration): Fix markup.
11112         (Specific, i?86-*-udk): Likewise.
11113         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
11114         --with-gnu-ld.
11115         Document --enable-threads and --enable-libgcj status.
11116         (Specific, mips-sgi-irix*): Canonicalize triples.
11117         (Specific, mips-sgi-irix5): Warn about problems with this config.
11118         Mention required GNU as patch.
11119         Native assembler problems are fixed.
11120         (Specific, mips-sgi-irix6): Update O32 ABI support status.
11121         Document --enable-threads and --enable-libgcj status.
11122
11123 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11124
11125         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
11126         of mkinstalldirs.
11127
11128 2001-08-03  Richard Henderson  <rth@redhat.com>
11129
11130         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
11131         constant data.
11132
11133 2001-08-03  Richard Henderson  <rth@redhat.com>
11134
11135         * rtlanal.c (find_first_parameter_load): Stop if we
11136         reach a CODE_LABEL at BOUNDARY.
11137
11138 2001-08-03  Richard Henderson  <rth@redhat.com>
11139
11140         * config/alpha/alpha.md (force_movdi): New insn.
11141         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
11142         Tweek FRP marking of VMS prologue insns.
11143         * config/alpha/vms.h (EPILOGUE_USES): New.
11144
11145 2001-08-02  Richard Henderson  <rth@redhat.com>
11146
11147         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
11148
11149 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
11150
11151         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
11152         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
11153         config/convex/convex.h, config/d30v/d30v.c,
11154         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11155         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
11156         config/mips/mips.h, config/mn10200/mn10200.h,
11157         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
11158         config/v850/v850.h, config/vax/openbsd.h,
11159         config/vax/openbsd1.h, config/vax/ultrix.h,
11160         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
11161         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
11162         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
11163         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
11164         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
11165         in comments and documentation.
11166
11167 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11168
11169         * line-map.c: New.
11170         * line-map.h: New.
11171         * Makefile.in (line-map.o): New.
11172         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
11173         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
11174         * cpperror.c (print_containing_files): Similarly.
11175         (print_location): Update.  Don't output a space before _Pragma.
11176         * cppfiles.c (stack_include_file): Set to line 1 immediately.
11177         (stack_include_filee, cpp_make_system_header): Update.
11178         (_cpp_execute_include): Get logical line number right for calling
11179         as-yet-unterminated #include.
11180         * cpphash.h (struct cpp_reader): Add line_maps.
11181         (_cpp_do_file_change): Update.
11182         * cppinit.c (cpp_create_reader): Initialize line maps.
11183         (cpp_destroy): Destroy line maps.
11184         (cpp_start_read): Get logical line number right.
11185         * cpplex.c (parse_string): Only warn once for multi-line strings.
11186         Use boolean variable for null warning.
11187         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
11188         already.
11189         (do_include_common): End the directive early.
11190         (do_line): Don't warn about out-of-range lines in preprocessed
11191         source.  Update.  Remove unused variables.
11192         (_cpp_do_file_change): Update for new line mapping.
11193         (pragma_cb): New typedef.
11194         (cpp_register_pragma): Stop looking ahead before calling the
11195         handler.  Clean up.
11196         (do_pragma_system_header): End directive early.
11197         (cpp_get_line_maps): New.
11198         (cpp_pop_buffer): Fudge logical line.  Update.
11199         * cpplib.h: Include line-map.h
11200         (enum cpp_fc_reason): Remove.
11201         (struct cpp_file_change): Update.
11202         (cpp_get_line_maps): New.
11203         * cppmain.c (struct_printer): New member map.
11204         (cb_file_change): Update for new mappings.
11205         * fix-header.c (cb_file_change): Similarly.
11206
11207 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11208
11209         * Makefile.in (libgcc.mk): Define mkinstalldirs.
11210         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
11211
11212 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
11213
11214         * config/vax/vax.c: include expr.h.
11215
11216 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11217
11218         * Makefile.in ($(srcdir)/configure): Only rebuild in
11219         maintainer mode.
11220         ($(srcdir)/config.in): Only define in maintainer mode.
11221         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
11222
11223 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
11224
11225         * doc/install.texi (Install GCC: Binaries): Update Bull info.
11226
11227 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11228
11229         * gcc.c (set_collect_gcc_options): New function, split out from
11230         main.
11231         Ignore elided switches.
11232         (do_spec_1): Invoke before executing command.
11233         (set_input): Export.
11234         Move declaration ...
11235         * gcc.h (set_input): ... here.
11236         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
11237         file.
11238
11239 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
11240
11241         Kill -fhonor-std.
11242         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
11243         interaction.
11244         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
11245
11246 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
11247
11248         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
11249         for the unnamed instructions it expands to.
11250
11251 2001-08-02  Richard Henderson  <rth@redhat.com>
11252
11253         * regclass.c (call_really_used_regs): Conditionally define.
11254         (init_reg_sets_1): Don't use it if not defined.
11255         (fix_register): Similarly, don't set it.
11256
11257 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11258
11259         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
11260         Correct comment that had been missed in the previous change.
11261
11262 2001-08-01  Stan Shebs  <shebs@apple.com>
11263
11264         * config/darwin.c (machopic_stub_name): Try matching by name.
11265         (update_stubs): New function.
11266         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
11267         unconditionally.
11268
11269 2001-08-01  Richard Henderson  <rth@redhat.com>
11270
11271         * except.c (output_function_exception_table): Use assemble_align.
11272         * varasm.c (assemble_eh_label): Remove.
11273         (assemble_eh_align, assemble_eh_integer): Remove.
11274
11275 2001-08-01  Robert Lipe  <robertl@caldera.com>
11276
11277         * dwarfout.c: Remove reference to README.DWARF.
11278
11279 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
11280
11281         * regclass.c (call_really_used_regs): New array for registers which
11282         are actually used by a call.
11283         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
11284         new array.
11285         (fix_register): Set call_really_used too.
11286         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
11287         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
11288
11289 2001-08-01  Richard Henderson  <rth@redhat.com>
11290
11291         * read-rtl.c (read_name): Consider \r whitespace.
11292
11293 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
11294
11295         * config.gcc: Recognize powerpc-*-netbsd*.
11296
11297         * doc/install.texi (Host/target specific installation notes for
11298         GCC): Mention powerpc-*-netbsd*.
11299
11300         * config/rs6000/netbsd.h: New file.
11301         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
11302         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
11303         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
11304         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
11305         (TARGET_VERSION): Redefine.
11306
11307         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
11308         mcall-netbsd as a match for mcall-sysv.
11309         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
11310         (ncrti.S, ncrtn.S): New targets.
11311         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
11312
11313         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
11314         "netbsd' as a V4 ABI.
11315         (ASM_SPEC): Check for -mcall-netbsd.
11316         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
11317         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
11318         (LIB_SPEC, ENDFILE_SPEC): Ditto.
11319         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
11320         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
11321         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
11322         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
11323
11324         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
11325         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
11326
11327 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
11328
11329         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
11330         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
11331         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
11332         including "unwind-pe.h".
11333
11334 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
11335
11336         * rs6000.md (define_splits): Kill unused constraints.
11337
11338 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
11339                               Jan Hubicka  <jh@suse.cz>
11340
11341         * function.c (thread_prologue_and_epilogue_insns): Kill code
11342         dealing with non-existent CFG.
11343
11344 2001-08-01  Kazu Hirata  <kazu@hxi.com>
11345
11346         * alias.c: Fix comment formatting.
11347         * bitmap.c: Likewise.
11348         * builtins.c: Likewise.
11349         * calls.c: Likewise.
11350         * c-common.c: Likewise.
11351         * c-decl.c: Likewise.
11352         * c-dump.c: Likewise.
11353         * c-lex.c: Likewise.
11354         * collect2.c: Likewise.
11355         * combine.c: Likewise.
11356         * conflict.c: Likewise.
11357         * cppfiles.c: Likewise.
11358         * cppinit.c: Likewise.
11359         * cpplex.c: Likewise.
11360         * cpplib.c: Likewise.
11361         * cppmacro.c: Likewise.
11362         * cppspec.c: Likewise.
11363         * c-pragma.c: Likewise.
11364         * crtstuff.c: Likewise.
11365         * cse.c: Likewise.
11366         * cselib.c: Likewise.
11367         * c-semantics.c: Likewise.
11368         * c-typeck.c: Likewise.
11369
11370 2001-08-01  H.J. Lu <hjl@gnu.org>
11371
11372         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
11373
11374 2001-08-01  H.J. Lu <hjl@gnu.org>
11375
11376         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
11377
11378 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
11379
11380         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
11381         contextualizing Objective-C class name lookup by the lexer.
11382         (typespec_reserved_nonattr): Disable ObjC class name lookup after
11383         seeing a TYPESPEC.
11384         (protocoldef): Add support for forward @protocol declarations.
11385         (yylexname): Suppress ObjC class name lookup in certain contexts;
11386         re-enable after lookup is complete.
11387         (_yylex): Re-enable ObjC class name lookup when certain
11388         punctuation marks are seen.
11389
11390         * objc/objc-act.c (check_protocol_recursively): New function used
11391         for finding circular dependencies in protocols.
11392         (objc_declare_protocols): New function for handling forward
11393         @protocol declarations.
11394         (receiver_is_class_object): Detect the case when 'self' is used
11395         inside of a class method.
11396         (build_message_expr): Issue a warning if class method is desired
11397         but instance method is found instead.
11398         (conforms_to_protocol): Streamline.
11399         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
11400         protocol Foo, even if 'Bar foo' does not.
11401         (check_protocols): Streamline.
11402         (start_protocol): Add checks for circular and duplicate protocol
11403         definitions.
11404         (encode_aggregate_within): For typedefs of structs, encode the
11405         underlying struct.
11406         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
11407         (objc_declare_protocols): New prototype.
11408
11409 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11410
11411         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
11412         * cpplex.c (handle_newline): Update prototype.  Maintain logical
11413         line number.
11414         (skip_escaped_newlines, skip_block_comment, parse_string):
11415         Update accordingly.
11416         (_cpp_lex_token): Update, and store token position within the token.
11417         * cpplib.h (struct cpp_token): Add line and column entries.
11418         * cppmacro.c (replace_args): Position stringified tokens correctly.
11419
11420 2001-08-01  Andreas Jaeger  <aj@suse.de>
11421
11422         * basic-block.h: Add prototype for last_loop_beg_note.
11423
11424 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
11425
11426         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
11427         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
11428         comment.
11429         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
11430         while handling WITH_CLEANUP_EXPR node. Use second operand calling
11431         expand_decl_cleanup.
11432         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
11433         the first RTX.
11434         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
11435         operand while calling simple_cst_equal.
11436         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
11437         operand is the cleanup expression, the third is the RTL_EXPR.
11438         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
11439
11440 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
11441
11442         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
11443
11444 2001-07-31  matthew green  <mrg@eterna.com.au>
11445
11446         * config.gcc (i386-*-netbsdelf): New description.
11447         * config/i386/netbsd-elf.h: New file.
11448
11449 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
11450
11451         * loop.c (check_dbra_loop): Use single_set to compute
11452         jump_label.
11453
11454 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
11455
11456         PowerPC reorg and support for powerpc64-*-linux*.
11457
11458         Also fixes emitting of constants on 32 bit and 64 bit
11459         platforms.
11460
11461         * config.gcc: powerpc64-*-linux* is a new target.
11462         Things that needed aix.h now also include xcoff.h
11463
11464         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
11465         xcoff.h.
11466         Move AIX specific stuff into aix.h.
11467         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
11468         with more than just XCOFF now.
11469         (SET_ASM_OP): Remove, now defined where needed.
11470         (FUNCTION_PROLOGUE): New macro definition.
11471         (FUNCTION_EPILOGUE): New macro definition.
11472         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
11473
11474         * config/rs6000/xcoff.h: New file.
11475
11476         * config/rs6000/linux64.h: New file.
11477
11478         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
11479
11480 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
11481
11482         * rs6000.c (print_operand_address): Handle ELF syntax.
11483         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
11484         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
11485         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
11486
11487 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
11488
11489         * rs6000.c (rs6000_override_options): Only disable
11490         flag_function_sections for XCOFF.
11491         (exact_log2_cint_operand): New predicate.
11492         (reg_or_{add,sub}_cint64_operand): New predicates.
11493         (add_operand): Compare CONST_INT with fewer function calls.
11494         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
11495         (print_operand, case 'p'): Ensure positive operand.
11496         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
11497         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
11498         (PREDICATE_CODES): Add new predicates.
11499         * rs6000.md (addsi3): Split 32-bit constants more correctly.
11500         (divsi3, modsi3): Ensure positive power-of-2.
11501         (adddi3): Use new predicate.  Split 32-bit constants more
11502         correctly.  Re-arrange splitter to handle any constant.
11503         (subdi3): Use new predicate.
11504         (divdi3, moddi3): Ensure positive power-of-2.
11505         (movdi): Use rs6000_emit_set_const.
11506         (load_toc_v4_pic_di): Delete.
11507
11508 2001-07-31  Graham Stott <grahams@redhat.com>
11509
11510         * function.c (pad_below): Revert 2001-07-26 patch.
11511
11512 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
11513
11514         * reg-stack (convert_regs_1): Fix best edge condition.
11515
11516 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
11517
11518         * jump.c (duplicate_loop_exit_test): Better test for jumps
11519         entering the loop; create loop pre_header.
11520
11521 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
11522
11523         * doc/install.texi: Add s390 and s390x as new targets.
11524         * doc/invoke.texi: Add documentation of S/390 and zSeries
11525         target options.
11526         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
11527
11528 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
11529
11530         * config/m68k/m68k.md: Replace all general_operand with
11531         nonimmediate_operand for all destinations.
11532         * config/m68k/m68k.c (not_sp_operand): Likewise.
11533
11534 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
11535
11536         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
11537
11538 2001-07-30  Richard Henderson  <rth@redhat.com>
11539
11540         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
11541         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
11542
11543 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
11544
11545         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
11546         Add missing doc strings
11547         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
11548         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
11549
11550 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
11551
11552         * i386.c (ix86_output_main_function_alignment_hack): New function.
11553         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
11554
11555         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
11556         edges by EDGE_DFS_BACK flag.
11557         (dump_edge_info): Add dfs_back flag.
11558         * basic-block.h (EDGE_DFS_BACK): New constant.
11559         (mark_dfs_back_edges): Declare.
11560         * alias.c (loop_p): Remove.
11561         (mark_constant_function): Use mark_dfs_back_edges.
11562
11563         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
11564         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
11565         (compensate_edge): Break out from ...
11566         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
11567         (convert_regs_2): Set block_done once block is really done;
11568         Do updating of the predecessors counts.
11569
11570         * toplev.c (rest_of_compilation): Recompute block_for_insn
11571         before post-reload cfg_cleanup.
11572         * function.c (thread_prologue_epilogue_insns):
11573         Call set_block_for_new_insns when emitting prologue directly.
11574
11575 2001-07-30  Andreas Jaeger  <aj@suse.de>
11576
11577         * jump.c: Add prototype for mark_modified_reg.
11578
11579         * cse.c (set_live_p): Add unused attribute.
11580
11581         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
11582         overflow.
11583         (scan_for_source_files): Use long for count to avoid overflow.
11584         (output_data): Likewise.
11585         (output_data): Don't use string concatatenation to silence gcc
11586         -traditional.
11587
11588         * predict.c: Fix typos and grammar.
11589
11590         * gcse.c (insert_insn_end_bb): Remove unused variables.
11591
11592 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
11593
11594         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
11595         (attempt_auto_inc): LIkewise.
11596         (mark_used_reg): Likewise.
11597         (try_pre_increment_1): Likewise.
11598         * regclass.c (regclass): Likewise.
11599         * global.c (allocno_compare): Update comment; change scaling factor.
11600         * local-alloc.c (QTY_CMP_PRI): Likewise.
11601         * regs.h (REG_FREQ_FROM_BB): New.
11602         (REG_FREQ_MAX): Likewise.
11603
11604 2001-07-30  H.J. Lu <hjl@gnu.org>
11605
11606         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
11607         -D_GNU_SOURCE.
11608
11609 2001-07-30  H.J. Lu  (hjl@gnu.org)
11610
11611         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
11612         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
11613         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
11614
11615 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
11616
11617         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
11618         as -mthumb-interwork when -mcpu=arm7 is specified.
11619
11620 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
11621
11622         * predict.def (noreturn, loop branch, loop exit): Mark as first
11623         match heuristics.
11624
11625 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
11626
11627         * combine.c (try_combine): Avoid barrier after noop jumps.
11628
11629 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11630
11631         * cpphash.h (struct cpp_reader): Remove import_warning.
11632         * cpplib.c (skip_rest_of_line): Don't bother turning off
11633         macro expansion.
11634         (parse_include): Move include handling to...
11635         (do_include_common): ... here.  Move import warning from...
11636         (do_import): ... here.
11637         (do_pragma_poison): Don't do a callback for poison identifiers.
11638         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
11639         * cppmain.c (setup_callbacks): Similarly.
11640
11641 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
11642
11643         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
11644         handle multiple sets.
11645         * except.c (sjlj_mark_call_sites): .... here.
11646         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
11647
11648 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
11649
11650         Suggested by Richard Henderson and Richard Kenner:
11651         * combine.c (recog_for_combine): Use the fake recog
11652         only if instruction does not match.
11653         * rtl.h (NOOP_MOVE_INSN_CODE): New.
11654         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
11655
11656         * combine.c (try_combine): Discover noop jump as direct jump.
11657
11658 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
11659
11660         * df.c (df_rd_global_compute): Add successors to worklist, not
11661         current item.
11662         (df_ru_global_compute): Ditto.
11663
11664 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
11665
11666         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
11667         increment REG_N_SETS.
11668
11669 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
11670
11671         * sbitmap.h: New prototype for sbitmap_a_xor_b.
11672
11673         * sbitmap.c (sbitmap_a_xor_b): New function.
11674         ifdef the basic block stuff on IN_GCC.
11675
11676 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11677
11678         * cppexp.c (parse_defined): Always record the macro name.
11679         (lex): Don't worry about identifiers, or special-case
11680         CPP_NOT here.
11681         (_cpp_parse_expr): Figure out at the end of the routine
11682         whether we saw a valid !defined() expression.
11683         * cppfiles.c (stack_include_file): Update for mi_valid.
11684         (_cpp_pop_file_buffer): Similarly.
11685         * cpplex.c (_cpp_lex_token): Similarly.
11686         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
11687         mi_if_not_defined, mi_lexed): Remove.
11688         (mi_valid): New.
11689         * cpplib.c (do_if): Simplify.
11690         (do_endif, push_conditional, _cpp_handle_directive): Update
11691         for renaming of mi_state to mi_valid.
11692 doc:
11693         * cpp.texi: Add index entries for digraphs, and add comment
11694         that C++ refers to them as alternative tokens.
11695
11696 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
11697
11698         * basic-block.h (CLEANUP_PRE_LOOP): New.
11699         * except.c (finish_eh_generation): Update call of cleanup_cfg.
11700         * sibcall.c (optimize_sibling_calls): Likewise.
11701         * toplev.c (rest_of_compilation): Likewise.
11702         * flow.c (try_forward_edges): Take argument MODE;
11703         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
11704         (try_optimize_cfg): Update call of try_forward_edges.
11705
11706 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
11707                                 Jan Hubicka  <jh@suse.cz>
11708
11709         * (validate_replace_rtx_1): Fix simplification of MINUS.
11710
11711 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11712
11713         PR preprocessor/3669
11714         * cppinit.c (init_dependency_output): Turn off dump requests
11715         if sending dependencies to stdout.
11716
11717 2001-07-28  Richard Henderson  <rth@redhat.com>
11718
11719         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
11720         not optimizing.
11721
11722 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
11723
11724         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
11725
11726 2001-07-28  Kazu Hirata  <kazu@hxi.com>
11727
11728         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
11729         is VAR_DECL first to prevent an ICE.
11730
11731 2001-07-28  Richard Henderson  <rth@redhat.com>
11732
11733         * varasm.c (immed_real_const_1): Don't elide special cases for
11734         nested functions.
11735         (clear_const_double_mem): Clear const_tiny_rtx too.
11736
11737 2001-07-28  Richard Henderson  <rth@redhat.com>
11738
11739         * dwarf2out.c (dw_val_class_offset): New.
11740         (struct dw_ranges_struct, dw_ranges_ref): New.
11741         (ranges_table, ranges_table_allocated): New.
11742         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
11743         (add_AT_offset, add_ranges, output_ranges): New.
11744         (print_die, output_die): Handle dw_val_class_offset.
11745         (attr_checksum, size_of_die, value_format): Likewise.
11746         (gen_lexical_block_die): Handle non-contiguous blocks.
11747         (gen_block_die): Likewise.
11748         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
11749         if needed.  Dump the ranges table.
11750         * final.c (final_start_function): Remove unnecessary notes and
11751         rebuild the block tree before numbering the blocks.
11752         * function.c (reorder_blocks_0): Walk the existing block tree
11753         to unmark all blocks.
11754         (reorder_blocks_1): Create block fragments when duplicate block
11755         notes are seen.
11756         (reorder_fix_fragments): New.
11757         (reorder_blocks): Call it.
11758         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
11759
11760 2001-07-28  Richard Henderson  <rth@redhat.com>
11761
11762         * emit-rtl.c (adjust_address): Make a copy of the memory address.
11763
11764 2001-07-28  Richard Henderson  <rth@redhat.com>
11765
11766         * flow.c (add_to_mem_set_list): New function.
11767         (init_propagate_block_info): Use it.
11768         (mark_set_1): Likewise.
11769         (insn_dead_p): Canonicalize memory address for dead store
11770         comparison.  Allow wider mode stores to kill narrower mode stores.
11771         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
11772         (invalidate_mems_from_set): Don't handle MEMs.
11773
11774 2001-07-28  Kazu Hirata  <kazu@hxi.com>
11775
11776         * config/h8300/h8300.h: Fix formatting.
11777
11778 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
11779
11780         * basic-block.h (EDGE_FREQUENCY): New macro.
11781         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
11782         for new BB/edges.
11783         * flow.c (find_sub_basic_blocks): Likewise.
11784         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
11785         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
11786
11787         * predict.c (DEF_PREDICTOR): New argument FLAGS.
11788         (HITRATE): New macro.
11789         (PRED_FLAG_FIRST_MATCH): New constant.
11790         (predictor_info): New field flgags.
11791         (combine_predictions_for_insn): Use DS theory to combine
11792         probabilities; set the edge probabilities when finished.
11793         (estimate_probability): Avoid duplicated matches
11794         of LOOP_BRANCH heuristics for nested loops; update comment.
11795         * predict.def: Add flags for each prediction, set probabilities
11796         according to B&L paper.
11797         * predict.h (DEF_PREDICTOR): New argument FLAGS.
11798
11799         * profile.c (compute_branch_probabilities):  Cleanup way the edge
11800         probabilities are computed and REG_BR_PROB notes are dropped; if
11801         values does not match, emit error.
11802         (init_branch_prob): Do error instead of warning when profile driven
11803         feedback is missing or corrupt.
11804
11805 2001-07-27  DJ Delorie  <dj@redhat.com>
11806
11807         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
11808         against a constant, try to adjust the compare to have the desired
11809         constant in it so that min/max optimizations happen more often.
11810
11811 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
11812
11813         * flow.c (last_loop_beg_note): New function.
11814         (redirect_edge_and_branch): Use it.
11815         (split_edge): Likewise.
11816
11817         * alias.c (loop_p): Avoid uninitialized memory access.
11818
11819         * flow.c (try_forward_edges): Avoid accessing freed memory.
11820
11821         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
11822         variable access.
11823
11824 2001-07-26  Andrew Haley  <aph@redhat.com>
11825         Joern Rennecke <amylaar@redhat.com>
11826
11827         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
11828         (SUBTARGET_CPP_ENDIAN_SPEC): New.
11829         (SUBTARGET_CPP_SPEC): New.
11830         (CPP_SPEC): Remove.
11831         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
11832         (SUBTARGET_CPP_PTR_SPEC): New.
11833         (CPP_DEFAULT_CPU_SPEC): New.
11834         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
11835         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
11836         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
11837         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
11838         (SUBTARGET_CPP_SPEC): Define as an empty string.
11839
11840 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11841
11842         * doc/install.texi (Configuration): Properly link the host
11843         specific instructions also when generating HTML.
11844
11845 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
11846
11847         * flow.c (redirect_edge_and_branch_force): Test
11848         target->global_live_at_start.
11849
11850 2001-07-26  Richard Henderson  <rth@redhat.com>
11851
11852         * simplify-rtx.c (avoid_constant_pool_reference): Export.
11853         * rtl.h (avoid_constant_pool_reference): Declare it.
11854         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
11855         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
11856
11857 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
11858
11859         * rtl.h (cleanup_barriers): Declare.
11860         * jump.c (cleanup_barriers): New function.
11861         * toplev.c (rest_of_compilation): Call cleanup_barriers
11862         before loop optimizer and after bb_reorder.
11863
11864         * flow.c (back_edge_of_syntactic_loop_p): New.
11865         (split_edge): Use it.
11866
11867 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11868
11869         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
11870
11871 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
11872
11873         * cse.c (cse_process_notes): Replace any registers if the address
11874         remains valid.
11875
11876 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
11877
11878         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
11879         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
11880         (propagate_block): Update prototype.
11881         * flow.c (update_life_info): Simplify the CFG and
11882         recalculate the global regs which are alive when
11883         removing dead code during a global update.
11884         (propagate_block): Return non-zero if an INSN is
11885         deleted.
11886
11887 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11888
11889         * Makefile.in (LIBICONV): Define.
11890
11891 2001-07-26  Catherine Moore  <clm@redhat.com>
11892
11893         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
11894         of conditional to avoid tree checking errors.
11895
11896 2001-07-26  Kazu Hirata  <kazu@hxi.com>
11897
11898         * regmove.c (regmove_optimize): Don't replace a reg with
11899         another reg of a different mode.
11900
11901 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
11902
11903         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
11904         limit length of dependency flush list.
11905         * params.h (MAX_PENDING_LIST_LENGTH): Define.
11906         * sched-int.h  (struct deps): Add pending_flush_length field.
11907         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
11908         has 1 element in it.
11909         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
11910         (sched_analyze): After a jump, if the pending memory flush list is too
11911         large, flush the pending lists.
11912         (init_deps): Initialize pending_flush_length to 0.
11913         * doc/invoke.texi (max_pending_list_length): Document parameter.
11914
11915 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
11916
11917         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
11918         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
11919         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
11920
11921 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11922
11923         * cpphash.h (struct_lexer_state): Delete was_skipping.
11924         Move skipping here from struct cpp_reader.
11925         * cpplex.c (parse_identifier): Update.
11926         (_cpp_lex_token): Don't skip tokens in a directive.
11927         * cpplib.c (struct if_stack): Update.
11928         (start_directive, end_directive): Don't change skipping state.
11929         (_cpp_handle_directive): Update.
11930         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
11931         (do_else, do_endif): Update; only check for excess tokens if not
11932         in a skipped conditional block.
11933         (push_conditional): Update for new struct if_stack.
11934
11935 2001-07-26  Graham Stott  <grahams@redhat.com>
11936
11937         * function.c (locate_and_pad_parm): Also pad initial offset
11938         so that the total argument size also includes the padding.
11939
11940 2001-07-26  Graham Stott <grahams@redhat.com>
11941
11942         * gensupport.c (alter_output_for_insn): Correct enable checking failure
11943         change XSTR to XTMPL.
11944
11945         (process_one_cond_exec): Likewise
11946
11947 2001-07-25  Richard Henderson  <rth@redhat.com>
11948
11949         * varasm.c (assemble_variable): Create DECL_RTL before setting
11950         TREE_ASM_WRITTEN.
11951
11952 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
11953
11954         * predict.c (estimate_probability): Avoid duplicated predictions.
11955
11956         * loop.c (find_and_verify_loops): Grok multiple barriers.
11957
11958 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11959
11960         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
11961
11962         * dbxout.c: Consistently use putc instead of fputc.
11963         (print_wide_int): New function; call instead of direct fprintf.
11964         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
11965         (dbxout_type_fields, dbxout_type_method_1): Likewise.
11966         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
11967         (print_int_cst_octal): Likewise.
11968         (print_octal): Show we wrote characters.
11969         (dbxout_type): Set have_used_extensions in more places.
11970
11971 2001-07-25  Catherine Moore  <clm@redhat.com>
11972
11973         * config/v850/v850.c (v850_va_arg):  Use addr
11974         instead of valist to build incr.
11975
11976 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
11977
11978         * flow.c (delete_dead_jumptables): New function.
11979         (life_analyzis): Call it.
11980         * bb-reorder.c (skip_insns_after_block): Handle contradictory
11981         sequences.
11982
11983 2001-07-25  Richard Henderson  <rth@redhat.com>
11984
11985         * except.c (reachable_handlers): Handle a region being removed
11986         out from under a RESX.
11987
11988 2001-07-25  Richard Henderson  <rth@redhat.com>
11989
11990         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
11991         swap GE/GT if it is an fp comparison.
11992
11993 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
11994
11995         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
11996         operands.
11997
11998 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
11999
12000         * ssa.c (rename_insn_1): Do not wrap an assignment to a
12001         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
12002         glitch.
12003
12004         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
12005         throw an exception.
12006         (visit_expression): When attempting to simplify an expression,
12007         retrieve any modes for arguments before they are simplified
12008         to constants.
12009
12010 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
12011             Janis Johnson  <janis@us.ibm.com>
12012
12013         * stmt.c (expand_goto): A nonlocal goto can be a call too.
12014         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
12015         pointer parameters to match documented usage of nonlocal_goto.
12016         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
12017         parameters to their correct order.
12018         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
12019         parameters to their correct order.
12020
12021 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
12022
12023         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
12024
12025 2001-07-25  Jan Hubicka  <jh@suse.cz>
12026             Richard Henderson  <rth@redhat.com>
12027
12028         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
12029         the sequence.
12030         (make_edges): New argument update_p; populate the edge cache if set.
12031         (find_basic_blocks): Update make_edges invocation.
12032
12033 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12034
12035         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
12036
12037 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12038
12039         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
12040         -Acpu and -Amachine.h.
12041         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
12042         Corrected header to say ELF not a.out.
12043         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
12044         when given -msoft-float.
12045
12046 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12047
12048         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
12049         extra multilib parts like arm-elf.
12050         (i960-*-coff*, i960-*-rtems): Should not use collect2.
12051         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
12052         crtfini.o as extra multilib parts.
12053
12054 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12055
12056         * configure.in: Add rtems as a supported thread model.
12057         * gthr-rtems.h: Add missing entry point __gthread_active_p.
12058         * configure: Rebuilt.
12059
12060 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
12061
12062         * stor-layout.c (get_mode_alignment): make it work when
12063         BITS_PER_UNIT is not a power of two.
12064         * builtins.c (get_pointer_alignment): Likewise.
12065
12066 2001-07-24  Richard Henderson  <rth@redhat.com>
12067
12068         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
12069         the retrieved constant into the expected mode.
12070
12071 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
12072
12073         * flow.c (try_simplify_condjump): Avoid duplicated edges.
12074         (verify_flow_info): Check for duplicated edges; clarify
12075         error reporting.
12076
12077         * flow.c (block_label): Update basic_block_for_insn.
12078         (commit_edge_insertions): Call compute_bb_for_insn.
12079
12080         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
12081         returns too.
12082
12083         * flow.c (redirect_edge_and_branch,
12084         try_optimize_cfg): Use redirect_edge_succ_nodup
12085         (redirect_edge_succ_nodup): New.
12086         * basic_block.h (redirect_edge_succ_nodup): Declare.
12087
12088         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
12089         after gcse.
12090
12091 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
12092
12093         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
12094         (try_crossjump_to_edge): Update commetns.
12095         (try_crossjump_bb): Likewise.
12096
12097 2001-07-24  Richard Henderson  <rth@redhat.com>
12098
12099         * combine.c (distribute_notes): Move set of need_refresh
12100         for noop_move_p down to catch all cases.
12101
12102 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
12103
12104         * recog.c (split_all_insns_noflow): New.
12105         * rtl.h (split_all_insns_noflow): Declare.
12106         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
12107         * m68hc11.c (m68hc11_reorg): Likewise.
12108         * sh.c (machine_dependent_reorg): Likewise.
12109         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
12110         call.
12111
12112 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
12113
12114         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
12115         (ashlsi3_n splitter): Likewise.
12116         (lshrsi3_n splitter): Likewise.
12117
12118         (GOTaddr2picreg): Make const SImode.
12119         (sym_label2reg): Likewise.
12120         (symGOT2reg): Likewise.
12121         (symGOTOFF2reg) Likewise.
12122
12123         (casesi_worker_0): Make unspec SImode.
12124
12125 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
12126
12127         * config/sh/sh.c (barrier_align): Check that an operand really is
12128         an insn before extracting its INSN_CODE.
12129
12130 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
12131
12132         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
12133         dangling else.
12134
12135         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
12136         for SImode to prevent overflow.
12137
12138 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12139
12140         * config/mips/irix6-libc-compat.c: New file.
12141         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
12142         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
12143         passing workaround.
12144
12145 2001-07-24  lars brinkhoff  <lars@nocrew.org>
12146
12147         * rtl.texi (REG_POINTER): Document.
12148         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
12149         QFmode, HFmode, TQFmode, QCmode, and HCmode.
12150
12151 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
12152
12153         * flow.c (delete_noop_moves): Do not confuse libcall regions.
12154
12155 2001-07-23  Richard Henderson  <rth@redhat.com>
12156
12157         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
12158
12159 2001-07-23  Kazu Hirata  <kazu@hxi.com>
12160
12161         * config/h8300/h8300-protos.h: Add a prototype for
12162         general_operand_dst_push.
12163         * config/h8300/h8300.c (general_operand_dst_push): New.
12164         * config/h8300/h8300.h (OK_FOR_T): New.
12165         (EXTRA_CONSTRAINT): Use it.
12166         * config/h8300/h8300.md (movqi_push): Remove and integrate into
12167         the existing movqi pattern.
12168         (movhi_push): Likewise.
12169
12170         * reload.c: Fix comment typos.
12171
12172 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
12173
12174         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
12175
12176 2001-07-23  H.J. Lu  (hjl@gnu.org)
12177
12178         * doc/extend.texi: Update __builtin_return_address and
12179         __builtin_frame_address.
12180
12181 2001-07-23  Richard Henderson  <rth@redhat.com>
12182
12183         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
12184         before CSE.
12185         * config/i386/i386.md: New setcc+movzbl peephole2.
12186
12187 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12188
12189         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
12190         * objc/objc-act.c: Include debug.h.
12191         (synth_module_prologue): Save and restore debug hooks too.
12192
12193 2001-07-23  lars brinkhoff  <lars@nocrew.org>
12194
12195         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
12196         and C4X_FLOAT_FORMAT.
12197         (BOOL_TYPE_SIZE): Document.
12198
12199 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
12200
12201         * unroll.c (loop_iterations): Fix miscalculation of initial
12202         giv offset.
12203
12204 2001-07-13  Andrew Haley  <aph@redhat.com>
12205
12206         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
12207         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
12208         * config/sh/sh.c (sh_can_redirect_branch): New function.
12209         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
12210         * reorg.c (steal_delay_list_from_target): Use
12211         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
12212
12213 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
12214
12215         * flow.c (try_simplify_condjump): Unlink insn chain on
12216         fallthru edge; use can_fallthru.
12217
12218 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
12219
12220         * basic-block.h (find_sub_basic_block): Declare.
12221         * flow.c (make_edges): New arguments MIN and MAX;
12222         (find_sub_basic_blocks): Revamp to use make_edges
12223         and purge_dead_edges.
12224         (find_basic_blocks): Update call of find_sub_basic_block.
12225
12226         * recog.c (split_all_insns): Always expect CFG to be consistent;
12227         call find_sub_basic_blocks in case something has changed.
12228         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
12229         has been built.
12230
12231         * basic-block.h (delete_noop_moves): Declare.
12232         * combine.c (combine_instructions): Call it.
12233         (recog_for_combine): Tolerate noop moves
12234         (distribute_notes): Force refresh when register dies at noop move.
12235         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
12236         too.
12237         (life_analysis): Update delete_noop_moves call.
12238         (set_noop_p): Move too ...
12239         * rtlanal.c (noop_move_p): ... here.
12240         * rtl.h (noop_move_p): Declare.
12241
12242         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
12243         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
12244         after combine.
12245         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
12246         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
12247
12248 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
12249
12250         * reload.c (push_reload): Fix typo in comment.
12251         (find_reloads_address): Ditto.
12252         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
12253
12254 2001-07-22  Richard Henderson  <rth@redhat.com>
12255
12256         * flow.c: Grammar check and clarify a lot of comments.
12257         (try_simplify_condjump): Rename variables to be clearer.
12258         (try_forward_edges): Skip complex and fallthru edges.
12259         Rearrange tests to avoid duplicate checks.
12260         (flow_find_cross_jump): Likewise.
12261         (outgoing_edges_match): Allow match if neither branch has
12262         probability data.  Loosen probability match to 5%.
12263         (try_crossjump_to_edge): Hoist repeated indirection into
12264         local variables.
12265         (try_crossjump_bb): Don't check complex edges.  Eliminate
12266         redundant crossjump tests.
12267         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
12268         checks before more expensive checks.
12269
12270 2001-07-22  Richard Henderson  <rth@redhat.com>
12271
12272         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
12273         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
12274         arguments.
12275
12276 2001-07-22  Richard Henderson  <rth@redhat.com>
12277
12278         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
12279         (const_sint32_operand): Likewise.
12280         * m68k.md (anon mulsi pattern): Use const_int_operand not
12281         const_sint32_operand.
12282         (umulsi3_highpart): Zero extend a constant input.
12283         (smulsi3_highpart): Don't bother checking SImode constant.
12284         (const_umulsi3_highpart): Give op3 DImode.
12285         (const_smulsi3_highpart): Likewise.
12286
12287 2001-07-22  Richard Henderson  <rth@redhat.com>
12288
12289         * flow.c (split_block): Make sure bb_note is included in the
12290         new block when splitting before a label.
12291
12292 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
12293
12294         * basic-block.h (redirect_edge_and_branch_force,
12295         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
12296         * flow.c (redirect_edge_and_branch_force,
12297         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
12298         (redirect_edge_and_branch_force): Fix copying of lifeness information.
12299         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
12300         * ifcvt.c (dead_or_predictable): Take BB as an new destination
12301         instead of label; update CFG after transformation.
12302         (find_if_case_1): Update call, use redirect_edge_and_branch_force
12303         for finishing the transformation; handle even case where ELSE
12304         does not follow THEN.
12305         (find_if_case_2): Update call of dead_or_predictable; simplify
12306         CFG update.
12307
12308         * emit-rtl.c (split_branch_probability): New global variable.
12309         (try_split): Take care to set split_branch_probability and
12310         create REG_BR_PROB note for new jump insns.
12311         * md.texi (define_split): Document new feature.
12312
12313         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
12314
12315 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12316
12317         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
12318         (asm_out_file): Remove redundant declaration.
12319         (assemble_asm): Remove old #if 0 block.
12320         (assemble_variable): Remove end of function; debug output is
12321         now handled with global_decl.  Remove old #if 0 block.  Update.
12322         Remove saved_in_section and associated no-op code.
12323         * Makefile.in (varasm.o): Correct dependencies.
12324
12325 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
12326
12327         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
12328         the definition in defaults.h.
12329
12330 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
12331
12332         * jump.c: Update comments.
12333         (delete_barrier_successors, delete_unreferenced_labels,
12334         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
12335         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
12336         jump_optimize, jump_optimize_minimal): Kill.
12337         (rebuild_jump_labels): Move code from jump_optimize_1.
12338         (purge_line_number_notes): Likewise.
12339         (copy_loop_headers): Likewise.
12340         * reg-stack.c: Update comment.
12341         * stmt.c: Likewise.
12342         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
12343         JUMP_AFTER_REGSCAN): Kill.
12344         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
12345         purge_line_number_notes and copy_loop_headers.
12346
12347 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
12348            Richard Henderson  <rth@redhat.com>
12349
12350         * dbxout.c (dbxout_global_decl): New.
12351         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
12352         * sdbout.c (sdbout_finish): New.
12353         (sdbout_debug_hooks): Use it, add comments.
12354         (sdbout_global_decl): Defer initialised public vars to
12355         sdbout_finish.
12356         * varasm.c (assemble_variable): Don't output debug information
12357         for file-scope variables.
12358
12359 2001-07-22  Richard Henderson  <rth@redhat.com>
12360
12361         * config/alpha/alpha.c (get_trap_mode_suffix): New.
12362         (get_round_mode_suffix): New.
12363         (print_operand): Use them for [/].  Remove support for [&'`()+].
12364         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
12365         * config/alpha/alpha.md (attr round_suffix): New.
12366         (attr trap_suffix): New.
12367         (all insns): Set them appropriately.  Use %/ instead of the
12368         myriad punctuators.
12369
12370 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12371
12372         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
12373
12374 2001-07-22  Richard Henderson  <rth@redhat.com>
12375
12376         * regrename.c (regrename_optimize): Compute nregs for each
12377         potential target register.
12378
12379 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
12380            Richard Henderson  <rth@redhat.com>
12381
12382         * dbxout.c (dbxout_global_decl): New.
12383         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
12384         * sdbout.c (sdbout_finish): New.
12385         (sdbout_debug_hooks): Use it, add comments.
12386         (sdbout_global_decl): Defer initialised public vars to
12387         sdbout_finish.
12388         * varasm.c (assemble_variable): Don't output debug information
12389         for file-scope variables.
12390
12391 2001-07-21  H.J. Lu  (hjl@gnu.org)
12392
12393         * config/mips/mips.c (mips_cpu): Moved into ...
12394         (override_options): Here.
12395
12396         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
12397         mips_tune.
12398         (mips_cpu): Removed.
12399
12400 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12401
12402         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
12403         ("iorqi3"): Likewise.
12404         ("xorqi3"): Likewise.
12405         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
12406         ("*subhi3_sp): Likewise.
12407         ("*subhi3"): Likewise.
12408         ("extendhisi2"): Accept D, X and Y as source operand to avoid
12409         reload problems.
12410
12411 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
12412
12413         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
12414         * config/freebsd.h: Likewise.
12415         * config/linux.h: Likewise.
12416         * config/openbsd.h: Likewise.
12417         * config/alpha/linux-elf.h: Likewise.
12418         * config/arm/linux-elf.h: Likewise.
12419         * config/d30v/d30v.h: Likewise.
12420         * config/fr30/fr30.h: Likewise.
12421         * config/ia64/aix.h: Likewise.
12422         * config/ia64/ia64.h: Likewise.
12423         * config/mips/linux.h: Likewise.
12424         * config/pj/pj.h: Likewise.
12425         * config/rs6000/linux.h: Likewise.
12426         * config/sparc/linux.h: Likewise.
12427         * config/sparc/linux64.h: Likewise.
12428
12429 2001-07-20  Bruce Korb  <bkorb@gnu.org>
12430
12431         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
12432         because getc() and char* may disagree on signedness.
12433
12434 2001-07-20  Richard Henderson  <rth@redhat.com>
12435
12436         * doc/rtl.texi (REG_DEAD): Update for current semantics.
12437
12438         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
12439         insns to delete in the presence of cc0 in a jump insn.
12440
12441 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
12442                                 Jan Hubicka  <jh@suse.cz>
12443
12444         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
12445         of doing the change by hand.
12446
12447 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
12448
12449         * rtlanal.c (set_noop_p): Return true for noop jumps.
12450
12451         * expr.c (emit_single_push_insn): Add call to push expander.
12452         * expr.h (optab_index): Add OTI_push
12453         (push_optab): New constant.
12454         * genopinit.c (optabs): Add push_optab.
12455         * optabs.c (init_optab): Init push optab.
12456         * md.texi (push??1): Document
12457
12458 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12459
12460         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
12461         expand to emit the pattern; put a REG_INC note for push/pop
12462         instructions.
12463         ("movdf", "movdf_internal"): Likewise.
12464         ("movsi", "movsi_internal"): Likewise.
12465         ("movsf", "movsf_internal"): Likewise.
12466         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
12467
12468 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12469
12470         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
12471         gen_highpart.
12472
12473 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
12474
12475         * params.def: Change default max inline insns to 100.
12476
12477 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
12478
12479         * combine.c (combine_simplify_rtx): Generate a new shift operation
12480         when simplifying the first operand of a (neg (ashift)) expression.
12481
12482 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
12483
12484         * regclass.c (N_REG_INTS): Use only 32 bits per element.
12485
12486 2001-07-20  Kelley Cook  <kelley.cook@home.com>
12487
12488         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
12489         information.   Move rest into ...
12490         (*-*-solaris): ... here.  Eliminate redundant information and
12491         reword necessary packages section.  Delete 4.x assembler bug info.
12492         (sparc-sun-*): Merge into ...
12493         (sparc-sun-sunos*): here.
12494
12495 2001-07-20  Catherine Moore  <clm@redhat.com>
12496
12497         * config/v850/v850.md (casesi): Generate LABEL_REF
12498         with Pmode.
12499
12500 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
12501
12502         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
12503         * i386.c (ix86_zero_extend_to_Pmode): Make global.
12504         * i386.md (strclrsi expander): Use it.
12505
12506 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
12507
12508         * integrate.c (copy_insn_list): handle
12509         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
12510         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
12511         identically as to CODE_LABEL.
12512
12513         * fold-const (fold): Convert A/B/C to A/(B*C) and
12514         A/(B/C) to (A/B)*C
12515
12516         * except.c (connect_post_landing_pads): Delete the RESX insns.
12517
12518 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
12519
12520         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
12521
12522         * config/mips/mips.md (nmadd/nmsub): Use macro.
12523
12524 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
12525
12526         * cppinit.c (remove_dup_dir): Make static.
12527         (remove_dup_dirs): Make static. Only warn about preempting a
12528         system directory with a non-system directory.
12529
12530 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
12531
12532         * ifcvt.c (noce_try_store_flag_constants): Correct order
12533         of parameters to trunc_int_for_mode.
12534
12535 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
12536
12537         * reorg.c (fill_simple_delay_slots): If an instruction might throw
12538         an exception that will be caught within this function, do not fill
12539         its delay slot with any subsequent instruction.
12540
12541 2001-07-19  Steve Ellcey <sje@cup.hp.com>
12542
12543         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
12544         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
12545         pointer extension instruction.
12546         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
12547         * simplify-rtx.c (simplify_unary_operation) Likewise.
12548         * explow.c (convert_memory_address) Check value of
12549         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
12550         less than zero.
12551         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
12552         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
12553         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
12554         Add Multilib Support.
12555         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
12556         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
12557         Add Multilib Support.
12558         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
12559         support.
12560         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
12561         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
12562         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
12563
12564 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
12565
12566         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
12567         old and new operands in `<', `3' and `b'.
12568
12569 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12570
12571         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
12572         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
12573         (toplev.o): Don't depend on xcoffout.h.
12574         * c-decl.c: Include debug.h
12575         (duplicate_decls): Use debug hook.
12576         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
12577         (dbx_debug_hooks, xcoff_debug_hooks): Update.
12578         (dbxout_types): Remove.
12579         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
12580         * debug.c (do_nothing_debug_hooks): Update.
12581         (debug_true_tree, debug_nothing_rtx): New.
12582         * debug.h (struct rtx_def): New.
12583         (struct gcc_debug_hooks): New hooks ignore_block,
12584         outlining_inline_function and label.
12585         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
12586         dwarf2out_frame_finish): New.
12587         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
12588         Make static, update prototype.
12589         (dwarf2_debug_hooks): Update.
12590         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
12591         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
12592         * dwarfout.c (dwarf_debug_hooks): Update.
12593         * emit-rtl.c: Include debug.h.
12594         (remove_unnecessary_notes): Use debug hook.
12595         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
12596         (final_scan_insn): Use debug hook.
12597         * integrate.c (output_inline_function): Use debug hook.
12598         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
12599         (sdb_debug_hooks): Update.
12600         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
12601         * toplev.c: Don't include xcoffout.h.
12602         (note_outlining_of_inline_function, debug_ignore_block): Remove.
12603         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
12604         Remove.
12605         * tree.h (dwarf2out_do_frame): Remove.
12606
12607 2001-07-19  Catherine Moore  <clm@cygnus.com>
12608
12609         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
12610
12611 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
12612
12613         * reload1.c (eliminate_regs_in_insn): When updating a set
12614         to the frame pointer to the hardware frame pointer, perform
12615         the update always not just when REPLACE is set.
12616
12617         * reload1.c (choose_reload_regs): Don't inherit a reload
12618         that crosses multiple registers if registers past the first
12619         don't fit in the desired class.
12620
12621         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
12622         when negating constants.
12623
12624 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
12625
12626         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
12627         * doc/tree.texi: Ditto.
12628
12629 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
12630             Jakub Jelinek  <jakub@redhat.com>
12631
12632         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
12633         (extract_cie_info): Handle "eh" augmentation properly,
12634         remember eh_ptr.
12635         (struct frame_state, __frame_state_for): New.
12636
12637 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12638
12639         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
12640         HANDLE_SYSV_PRAGMA): Define.
12641         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
12642         previous args.
12643         (copy_object): Caller changed.
12644
12645 2001-07-19  Andreas Schwab  <schwab@suse.de>
12646
12647         * configure.in (assembler dwarf2 debug_line support): Define nop
12648         insn for m68k.
12649         * configure: Regenerated.
12650
12651 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12652
12653         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
12654         dwarfout.h.
12655         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
12656         to conditionally compiled block.
12657         (dbx_debug_hooks, xcoff_debug_hooks): Update.
12658         * dbxout.h (dbxout_function): Remove.
12659         * debug.c (do_nothing_debug_hooks): Update.
12660         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
12661         global_decl, deferred_inline_function.
12662         * dwarf2out.c (dwarf2_debug_hooks): Update.
12663         (dwarf2out_global_decl): New.
12664         * dwarfout.c: Don't include dwarfout.h.
12665         (dwarfout_global_decl, dwarfout_function_decl,
12666         dwarfout_deferred_inline_function): New.
12667         (dwarf_debug_hooks): Update.
12668         * dwarfout.h: Remove.
12669         * final.c: Don't include dwarfout.h.
12670         * sdbout.c (sdbout_global_decl): New.
12671         (sdbout_debug_hooks): Update.
12672         * toplev.c: Don't include dwarfout.h.
12673         (check_global_declarations, rest_of_compilation): Use new debug hooks.
12674         (note_deferral_of_defined_inline_function): Remove.
12675         * toplev.h (note_deferral_of_defined_inline_function): Remove.
12676         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
12677         * ch/lex.c: Don't include dwarfout.h.
12678         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
12679         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
12680         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
12681         * cp/optimize.c: Include debug.h.
12682         (maybe_clone_body): Use debug hook.
12683         * cp/semantics.c: Include debug.h.
12684         (expand_body): Use debug hook.
12685         * po/POTFILES.in: Remove dwarfout.h.
12686
12687 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12688
12689         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
12690         * c-parse.in (yyerror, _yylex): Similarly.
12691         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
12692         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
12693         Update comments.
12694         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
12695         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
12696
12697 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
12698
12699         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
12700         in-class declaration at -g1.  Fixes c++/2814.
12701
12702 2001-07-18  Richard Henderson  <rth@redhat.com>
12703
12704         * doc/md.texi (reload_in/out): Document restrictions in predicates
12705         and constraints for these patterns.  Document empty string matching
12706         ALL_REGS.
12707
12708 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12709
12710         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
12711
12712 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
12713
12714         * cse.c: Undo my previous patch.
12715
12716 2001-07-18  Tom Tromey  <tromey@redhat.com>
12717
12718         For PR java/2812:
12719         * configure: Rebuilt.
12720         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
12721         instead.
12722         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
12723
12724 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
12725                                 Jan Hubicka  <jh@suse.cz>
12726
12727         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
12728         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
12729         * jump.c (mark_jump_label): Do not forward branches.
12730
12731 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
12732
12733         * cse.c (delete_trivially_dead_insns): Delete the libcall block
12734         when return value is unused.
12735
12736 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
12737
12738         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
12739
12740 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
12741
12742         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
12743         on error.  We can't blindly return the result of
12744         pthread_mutex_trylock because it returns a positive number on
12745         error, while we must return -1 on error.
12746         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
12747         fixes.
12748         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
12749
12750 2001-07-18  Andreas Jaeger  <aj@suse.de>
12751
12752         * integrate.c (output_inline_function): Correct type of debug_hooks.
12753
12754 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
12755
12756         * combine.c (combine_simplify_rtx): DIV can be treated
12757         associatively for floats if unsafe math optimisations are enabled.
12758
12759 2001-07-17  Richard Henderson  <rth@redhat.com>
12760
12761         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
12762
12763 2001-07-17  Richard Henderson  <rth@redhat.com>
12764
12765         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
12766         don't force the function address into a register.
12767         (expand_call, emit_library_call_value_1): Update callers.
12768         * builtins.c (expand_builtin_apply): Likewise.
12769         * expr.h (prepare_call_address): Update decl.
12770
12771 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
12772
12773         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
12774         config directory.
12775         * config/i386/chorus.h: Move up.
12776         * config/sparc/chorus.h: Likewise.
12777         * config/rs6000/chorus.h: Likewise.
12778         * config/chorus.h: Moved here.
12779
12780 2001-07-17  Andreas Schwab  <schwab@suse.de>
12781
12782         * configure.in  (assembler eh_frame optimization): Handle big
12783         endian.
12784         * configure: Regenerated.
12785
12786 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
12787
12788         * expr.c (epxand_expr): Convert divisions into multiplications by
12789         reciprocals if -ffast-math.
12790
12791 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
12792
12793         * dbxout.c (dbxout_really_begin_function): Rename to
12794         dbxout_begin_function.
12795         (dbx_debug_hooks, xcoff_debug_hooks): Update.
12796         (dbxout_begin_function): Remove.
12797         (dbxout_function): Update.
12798         (dbxout_source_line): Update prototype.
12799         * dbxout.h (dbxout_begin_function): Remove.
12800         * debug.c (do_nothing_debug_hooks): Update.
12801         (debug_nothing_tree): Update.
12802         (debug_nothing_charstar_rtx): Remove.
12803         * debug.h (union tree_node): Declare.
12804         (struct rtx_def): Remove.
12805         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
12806         begin_function.  Change source_line prototype.
12807         (debug_nothing_tree): New.
12808         (debug_nothing_charstar_rtx): Delete.
12809         (dwarf2out_begin_prologue): Moved from ...
12810         * tree.h: ... here.
12811         * dwarf2out.c (dwarf2_debug_hooks): Update.
12812         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
12813         debug info, call dwarf2out_source_line.
12814         (dwarf2out_souce_line): Update prototype.
12815         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
12816         Change prototype, make static.
12817         (dwarfout_source_line): Update prototype.
12818         (dwarf_debug_hooks): Update.
12819         * dwarfout.h (dwarfout_begin_function): Remove.
12820         * final.c (final_start_function, final_scan_insn): Use appropriate
12821         debug hooks, update to use notice_source_line.
12822         (output_source_line): Rename notice_source_line.  Don't call the
12823         source_line debug hook.
12824         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
12825         make static, update prototype.
12826         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
12827         prototype.
12828         (sdbout_end_prologue): New.
12829         (sdbout_source_line): Update prototype.
12830         (sdbout_debug_hooks): Update.
12831         (sdbout_symbol): Remove unused var.
12832         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
12833         Delete.
12834         * varasm.c: Include debug.h.
12835         (assemble_start_function): Use begin_function debug_hook.
12836         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
12837         update with prototype.
12838         (xcoffout_source_line): Update prototype.
12839         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
12840         update prototype.
12841         (xcoffout_source_line): Update prototype.
12842
12843 2001-07-17  Richard Henderson  <rth@redhat.com>
12844
12845         * c-typeck.c (build_binary_op): Do not shorten unsigned
12846         right shift after sign extension.
12847
12848 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
12849
12850         * combine.c (combine_simplify_rtx): Attempt to simplify
12851         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
12852
12853         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
12854         (simplify_binary_operation, simplify_unary_operation,
12855          simplify_relational_operation): Use it.
12856
12857         * combine.c (combine_simplify_rtx): Don't do associative law
12858         on divisions; allow associative law on floats.
12859
12860 2001-07-17  H.J. Lu <hjl@gnu.org>
12861             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12862
12863         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
12864         ASM_OUTPUT_WEAK_ALIAS are defined.
12865         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
12866         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
12867         Moved ...
12868         * config/mips/iris5.h: ... here.
12869         (HANDLE_SYSV_PRAGMA): Defined as 1.
12870         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
12871         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
12872         symbol.
12873
12874 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
12875
12876         * c-parse.in (all_prefix_attributes): New variable.
12877         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
12878         (maybe_resetattrs): New production.
12879         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
12880         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
12881         notype_initdcl, nested_function, notype_nested_function,
12882         component_decl, components, components_notype,
12883         component_declarator, component_notype_declarator,
12884         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
12885         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
12886         after a comma being applied to more than one declarator.
12887         * doc/extend.texi (Attribute Syntax): Update.  Remove
12888         documentation of bugs that are no longer present.
12889
12890 2001-07-13  Eric Christopher  <echristo@redhat.com>
12891
12892         * config/mips/mips.h: Change TUNE_MIPS* options to use
12893         mips_tune.
12894         (EXTRA_SPECS): Add cc1_cpu_spec.
12895         * config/mips/mips.md (muldf3): Fix typo.
12896
12897 2001-07-16  Richard Henderson  <rth@redhat.com>
12898
12899         * config/m68k/m68k.c: Include expr.h and reload.h.
12900         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
12901         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
12902
12903 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
12904             Richard Henderson  <rth@redhat.com>
12905
12906         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
12907         (insn_live_p): Fix fall off end of function.
12908         (dead_libcall_p): Remove COUNTS argument; update callers.
12909         (delete_trivially_dead_insns): Remove unused variables.
12910
12911 2001-07-17  Andreas Jaeger  <aj@suse.de>
12912
12913         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
12914         x86-64 pic support.
12915
12916         * lcm.c (optimize_mode_switching): Avoid warning for unused
12917         variable if !NORMAL_MODE.
12918
12919         * flow.c (try_crossjump_to_edge): Remove unused variable.
12920
12921 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12922
12923         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
12924         atexit declaration in stdlib.h.
12925
12926 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
12927
12928         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
12929
12930 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
12931
12932         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
12933         * except.c (finish_eh_generation): Update call of cleanup_cfg;
12934         do rebuild_jump_labels instead of jump_optimize
12935         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
12936         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
12937         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
12938
12939         * flow.c: Include timevar.h
12940         (find_basic_block): Push/pop timevar;
12941         (cleanup_cfg): Likewise.
12942         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
12943         * Makefile: Add dependencies on timevar.h
12944
12945         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
12946         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
12947
12948         * rtl.h (delete_trivially_dead_insns): Add new parameter.
12949         * toplev.c (rest_of_compilation): Update calls.
12950         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
12951         (delete_trivially_dead_insns): ... here; accept new argument
12952         preserve_basic_blocks; preserve basic blocks if set.
12953
12954         * reg-stack.c (stack_regs_mentioned): Return 0 if
12955         stack_regs_mentioned_data is not initialized.
12956         (reg_to_stack): Make stack_regs_mentioned survive after the
12957         reg-stack is completted; do not call cleanup_cfg.
12958         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
12959         make cleanup_cfg after bb-reorder to output to debug file.
12960
12961 2001-07-16  Richard Henderson  <rth@redhat.com>
12962
12963         * regclass.c (init_reg_sets): Use only 32 bits per initializer
12964         from int_reg_class_contents.
12965
12966 2001-07-16  Richard Henderson  <rth@redhat.com>
12967
12968         * hard-reg-set.h (regs_invalidated_by_call): Declare.
12969         * regclass.c (regs_invalidated_by_call): Move from cse.c.
12970         (init_reg_sets_1): Move initialization from cse_main.
12971         * cse.c (regs_invalidated_by_call): Move to regclass.c.
12972         (cse_main): Move its initialization also.
12973         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
12974         * flow.c (propagate_one_insn): Likewise.
12975         * gcse.c (compute_hash_table): Likewise.
12976         (compute_kill_rd, compute_store_table): Likewise.
12977         * sched-deps.c (sched_analyze_1): Likewise.
12978
12979 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
12980
12981         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
12982         gen_rtx_SET.
12983
12984 2001-07-16  Steve Ellcey <sje@cup.hp.com>
12985
12986         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
12987         in if statement so we don't access undefined memory.
12988
12989 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
12990
12991         * gcse.c: Update comment at top.
12992         Update comment on mem handling.
12993         mem_last_set, mem_first_set, mem_set_in_block: gone.
12994         Declaration of reg_set_info: gone.
12995         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
12996         pointless with load_killed_in_block_p (they are *more*
12997         conservative then it, not less, and less accurate).
12998         (oprs_not_set_p): Ditto.
12999         (alloc_gcse_mem): Don't allocate mem_set_in_block
13000         (free_gcse_mem): Don't free it, either.
13001         (record_last_mem_set_info): Update comment in front, remove
13002         mem_*set_* stuff. Note the reason we don't handle stores directly
13003         here.
13004         (compute_hash_table): Update comments to reflect reality. Remove
13005         mem_*set_* references.
13006         (reset_opr_set_tables): Remove mem_*set_* references.
13007         (mark_call): Ditto.
13008         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
13009         (mark_clobber): Ditto (on both parts, we double set here too).
13010         (expr_killed_p): Remove mem_set_in_block test.
13011         (compute_transp): Remove mem_set_in_block test.
13012
13013         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
13014         of edge, and removal of phi alternative to dump file.
13015         (ssa_ccp_substitute_constants): Add note about register now being
13016         constant, and which uses were replaced in what insns to dump file.
13017
13018 2001-07-16  Andreas Jaeger  <aj@suse.de>
13019
13020         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
13021         variables of type HOST_WIDEST_INT.
13022
13023         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
13024         (__bb_exit_func): Correct type of count_max to avoid overflow.
13025         (num_digits): Handle long long argument.
13026
13027         * combine.c (gen_lowpart_for_combine): Remove unused variable.
13028
13029 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13030
13031         * output.h (sdb_begin_function_line): Restore as an extern
13032         variable.
13033         * sdbout.c (sdb_begin_function_line): Make extern.
13034
13035 2001-07-15  Richard Henderson  <rth@redhat.com>
13036
13037         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
13038         * genrecog.c (maybe_both_true_mode): New.
13039         (maybe_both_true_2): Use it.
13040         (write_switch): Don't put Pmode in a switch.
13041         * rtl.c (mode arrays): Don't explicitly size them.
13042
13043 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
13044
13045         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
13046         handling; move unconditional splitting before mode switching.
13047
13048         * i386.md (type): Add fistp type.
13049         (i387, length_attr, scheduling definitions): Handle this type.
13050         (fix_trunc?f?i2): Revamp to use mode switching.
13051         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
13052         * i386.h (fp_cw_mode): New enum
13053         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
13054         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
13055
13056 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13057
13058         * Makefile.in (integrate.o): Add debug.h.
13059         * integrate.c (debug.h): Add.
13060         (output_inline_function): Save, reset, and restore debug_hooks.
13061
13062 2001-07-15  Richard Henderson  <rth@redhat.com>
13063
13064         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
13065         instead of COMPARE for the EQUIV expression.
13066
13067 2001-07-15  Richard Henderson  <rth@redhat.com>
13068
13069         * flow.c (redirect_edge_and_branch_force): Initialize
13070         global_live_at_start and global_live_at_end.
13071         (allocate_bb_life_data): Export.
13072         * basic-block.h (allocate_bb_life_data): Declare.
13073         * toplev.c (rest_of_compilation): Call it.
13074
13075 2001-07-15  Richard Henderson  <rth@redhat.com>
13076
13077         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
13078         (alpha_tablejump_best_label): New.
13079         * config/alpha/alpha-protos.h: Declare them.
13080         * config/alpha/alpha.md: Use braced strings for code blocks.
13081         (tablejump_osf): Break out add with r29.
13082         (tablejump_osf_internal): Remove.
13083         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
13084         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
13085
13086 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
13087
13088         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
13089         of the movable.
13090
13091         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
13092
13093         * i386-protos.h (ix86_split_fp_branch): Update prototype.
13094         (ix86_fp_jump_nontrivial_p): New.
13095         * i386.md (fp_jcc_?): Update call of split_fp_branch;
13096         use ix86_fp_jump_nontrivial_p.
13097         * i386.c (ix86_fp_jump_nontrivial_p): New.
13098         (ix86_split_fp_branch): Accept code instead of rtx.
13099         (ix86_expand_compare): Expand comparison early in case
13100         doing so is resonably cheap.
13101
13102 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
13103
13104         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
13105         not 'machine'.
13106         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
13107         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
13108
13109 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
13110
13111         * dbxout.c (dbxout_source_line): Make static, update prototype.
13112         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
13113         (dbxout_init, dbxout_finish, dbxout_source_line,
13114         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
13115         * dbxout.h (dbxout_source_line): Delete.
13116         * debug.c (debug_nothing_file, debug_nothing_file_int,
13117         debug_nothing_file_charstar_rtx): New.
13118         (do_nothing_debug_hooks): Update.
13119         (debug_nothing_void, debug_nothing_charstar_rtx,
13120         dwarf2out_end_epilogue): New.
13121         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13122         * debug.h (struct rtx_def): Declare.
13123         (gcc_debug_hooks): New hooks source_line, end_epilogue
13124         and end_function.
13125         (debug_nothing_void, debug_nothing_charstar_rtx,
13126         dwarf2out_end_epilogue): New.
13127         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13128         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
13129         (dwarf2_debug_hooks): Update.
13130         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
13131         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
13132         * dwarf2out.h (dwarf2out_source_line): Remove.
13133         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
13134         Make static, update prototype.
13135         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
13136         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
13137         (dwarf_debug_hooks): Update.
13138         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
13139         dwarfout_end_function): Remove.
13140         * final.c (profile_function): Use debug hooks for ending functions
13141         and epilogues.
13142         (output_source_line, final_end_function): Update prototype,
13143         use debug hooks.
13144         (final_start_function, final_scan_insn): Update.
13145         * output.h (sdb_begin_function_line): Remove.
13146         (final_end_function): Update prototype.
13147         * sdbout.c (sdb_begin_function_line): Make static.
13148         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
13149         (sdbout_source_line): New.
13150         (sdbout_end_epilogue, sdbout_end_function): Make static, update
13151         prototypes.
13152         (sdb_debug_hooks): Update.
13153         (sdbout_init, sdbout_source_line,
13154         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
13155         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
13156         * toplev.c (compile_file, rest_of_compilation): Update.
13157         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
13158         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
13159         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
13160         Update for prototype changes.
13161         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
13162         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
13163
13164 2001-07-15  Richard Henderson  <rth@redhat.com>
13165
13166         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
13167         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
13168         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
13169         * config/alpha/alpha.c: Likewise.
13170         * config/alpha/alpha.md: Likewise.
13171         * config/alpha/alpha32.h: Likewise.
13172         * config/alpha/vms.h: Likewise.
13173         (OPEN_VMS): Remove.
13174
13175 2001-07-14  Richard Henderson  <rth@redhat.com>
13176
13177         * config/alpha/alpha.md: Use define_constants for unspec values.
13178         Substitute throughout.
13179
13180 2001-07-14  Tim Josling  <tej@melbpc.org.au>
13181
13182         * tree.def (EXPON_EXPR) remove. Never supported anyway.
13183
13184 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13185
13186         * pa.md: Remove unused constraints from define_split's.
13187
13188 2001-04-14  Richard Henderson  <rth@redhat.com>
13189
13190         * ifcvt.c (find_cond_trap): Test for exit block.
13191
13192 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
13193
13194         Re-install recently reverted patch.
13195         * emit-rtl.c (try_split): Update mark_jump_label call.
13196         * flow.c (find_sub_basic_blocks): Likewise.
13197         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13198         jump_back_p): Kill.
13199         (mark_all_labels): Kill second parameter.
13200         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13201         (rebuild_jump_labels, jump_optimize_minimal): Update call
13202         of jump_optimize_1.
13203         (jump_optimize_1): Kill crossjumping code.
13204         (mark_jump_label): Kill cross_jump parameter.
13205         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13206         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13207         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13208          splitting.
13209         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13210         DFI_bpro.
13211         (dump_file_info): Likewise.
13212         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13213         reorganize passes to do reg-stack first, bb-reorder second.
13214         * invoke.texi (-d letters doc): Remove the jump2 pass.
13215
13216 2001-07-14  Richard Henderson  <rth@redhat.com>
13217
13218         * ifcvt.c (find_cond_trap): New.
13219         (find_if_header): Call it.
13220         (merge_if_block): Relax existing jump sanity check.
13221         * jump.c (jump_optimize_1): Remove conditional trap handling.
13222
13223 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
13224
13225         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
13226         millicode.
13227         (insn_refs_are_delayed): Correct comment.
13228         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
13229         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
13230         instead of r31.  Make associated insn !TARGET_64BIT, and
13231         provide an additional 64-bit insn that clobbers r2.
13232         (divsi3): Likewise.
13233         (udivsi3): Likewise.
13234         (modsi3): Likewise.
13235         (umodsi3): Likewise.
13236
13237 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
13238
13239         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
13240
13241         * flow.c (redirect_edge_and_branch_force, split_edge,
13242         try_crossjump_to_edge): Use set_block_for_new_insns.
13243         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
13244
13245 2001-07-13  H.J. Lu  (hjl@gnu.org)
13246
13247         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
13248         the correct patch.
13249
13250 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
13251
13252         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
13253
13254 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
13255
13256         * c-common.c (decl_attributes): Take a pointer to the node to
13257         which attributes are to be attached, and a flags argument.
13258         * c-common.h (enum attribute_flags): New.
13259         (decl_attributes): Update prototype.
13260         * c-decl.c (start_decl, push_parm_decl, finish_struct,
13261         finish_enum, start_function): Update calls to decl_attributes.
13262         * c-parse.in (component_declarator, component_notype_declarator,
13263         label): Update calls to decl_attributes.
13264
13265 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
13266
13267         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
13268         * config/avr/avr.c (legitimate_address_p): Return value changed
13269         from letter to register classes. For better debugging.
13270
13271 2001-07-13  Kazu Hirata  <kazu@hxi.com>
13272
13273         * jump.c (reversed_comparison_code_parts): Fix comment typos.
13274
13275 2001-07-13  H.J. Lu  (hjl@gnu.org)
13276
13277         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
13278
13279 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
13280
13281         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
13282         correctly for shared configurations.
13283         * config/t-libgcc-pic:  New.
13284         * config/{i386,m68k,sparc}/t-openbsd:  New.
13285         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
13286         Support -shared.  Support debugging libraries with -g.
13287         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
13288         frame information does not emit pointer diffs.
13289         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
13290         emit pointer diffs.
13291
13292 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
13293
13294         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
13295
13296 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
13297
13298         * combine.c (try_combine): Ensure const_int pow2 is positive.
13299
13300 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
13301
13302         * config.gcc: Add configuration for s/390.
13303         * config/s390/s390.c: New. Subroutines for code generation.
13304         * config/s390/s390.h: New. Definitions for s/390.
13305         * config/s390/s390-protos.h: New. Prototypes.
13306         * config/s390/linux.h: New. Definitions for linux for s/390.
13307         * config/s390/linux64.h: New. Definitions for linux for zSeries.
13308         * config/s390/t-linux: New. Makefile fragment.
13309         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
13310         * config/s390/fixdfdi.h: New. Fix L_fix*di.
13311
13312 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
13313
13314         * emit-rtl.c (try_split): Update mark_jump_label call.
13315         * flow.c (find_sub_basic_blocks): Likewise.
13316         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13317         jump_back_p): Kill.
13318         (mark_all_labels): Kill second parameter.
13319         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13320         (rebuild_jump_labels, jump_optimize_minimal): Update call
13321         of jump_optimize_1.
13322         (jump_optimize_1): Kill crossjumping code.
13323         (mark_jump_label): Kill cross_jump parameter.
13324         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13325         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13326         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13327          splitting.
13328         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13329         DFI_bpro.
13330         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13331         reorganize passes to do reg-stack first, bb-reorder second.
13332         * invoke.texi (-d letters doc): Remove the jump2 pass.
13333
13334 2001-07-12  Steve Ellcey <sje@cup.hp.com>
13335
13336         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
13337
13338 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13339
13340         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
13341         basic blocks.
13342         (verify_flow_info): Make diagnostics prettier.
13343
13344 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
13345
13346         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
13347
13348         * flow.c (outgoing_edges_match): Return early if condition reversal
13349         failed.
13350
13351 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
13352
13353         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
13354         (mips_move_2words): When splitting a move into two instructions,
13355         prefix the second address operand with '%D'.
13356
13357 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
13358
13359         * Makefile.in (final.o): Depend on debug.h.
13360         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
13361         (dbx_debug_hooks): Add new hooks.
13362         (xcoff_debug_hooks): New.
13363         * debug.c (debug_nothing_file_int_int): New.
13364         (do_nothing_debug_hooks): Update.
13365         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
13366         (debug_nothing_file_int_int): New.
13367         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
13368         static, update prototype.
13369         (dwarf2_debug_hooks): Update.
13370         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
13371         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
13372         static, update prototype.
13373         (dwarf_debug_hooks): Update.
13374         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
13375         * final.c: Include debug.h.
13376         (final_scan_insn): Use debug hooks when beginning and ending blocks.
13377         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
13378         static, update prototype.
13379         (sdb_debug_hooks): Update.
13380         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
13381         * toplev.c: Distinguish between xcoff and dbx.
13382
13383         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
13384         Call all debug hooks, not just dwarf ones.
13385
13386 2001-07-11  Timothy Wall  <twall@redhat.com>
13387
13388         * config.gcc: Add configuration for AIX5/IA64.
13389         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
13390         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
13391         support prefix/suffix code.
13392         * config/ia64/t-aix: New.  Makefile fragment.
13393         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
13394
13395 2001-07-11  Kazu Hirata  <kazu@hxi.com>
13396
13397         * recog.c (validate_change): Fix a comment typo.
13398
13399 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13400
13401         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
13402         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
13403         hooks directly.
13404         * dbxout.c (dbx_debug_hooks): Add new hooks.
13405         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
13406         make static.
13407         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
13408         make static.
13409         * dbxout.h (dbxout_start_new_source_file,
13410         dbxout_resume_previous_source_file): Delete.
13411         * debug.c (do_nothing_debug_hooks): Add new hooks.
13412         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
13413         (debug_nothing_int_charstar, debug_nothing_int): New.
13414         * debug.h (gcc_debug_hooks): New hooks define, undef,
13415         start_source_file and end_source_file.
13416         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
13417         (debug_nothing_int_charstar, debug_nothing_int): New.
13418         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
13419         the conditionally compiled section.
13420         (dwarf2out_start_source_file, dwarf2out_end_source_file,
13421         dwarf2out_define, dwarf2out_undef): Make static.
13422         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
13423         dwarf2out_define, dwarf2out_undef): Remove.
13424         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
13425         (dwarfout_start_source_file, dwarfout_end_source_file,
13426         dwarfout_define, dwarfout_undef): Make static.
13427         (dwarfout_start_source_file_check,
13428         dwarfout_end_source_file_check): New.
13429         (dwarfout_define, dwarfout_finish): Update.
13430         * dwarfout.h (dwarfout_start_new_source_file,
13431         dwarfout_resume_previous_source_file, dwarfout_define,
13432         dwarfout_undef): Remove.
13433         * sdbout.c (sdb_debug_hooks): Add new hooks.
13434         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
13435         make static.
13436         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
13437         make static, take an arg.
13438         * sdbout.h (sdbout_start_new_source_file,
13439         sdbout_resume_previous_source_file): Delete.
13440         * toplev.c (debug_start_source_file, debug_end_source_file,
13441         debug_define, debug_undef): Delete.
13442         * toplev.h (debug_start_source_file, debug_end_source_file,
13443         debug_define, debug_undef): Delete.
13444
13445         * java/jcf-parse.c: Include debug.h.
13446         (parse_class_file): Update to use debug hooks directly.
13447         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
13448
13449 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13450
13451         * alias.c (set_mem_alias_set): New function.
13452         * rtl.h (set_mem_alias_set): Declare it.
13453         * builtins.c (expand_builtin_return_addr): Call it instead of
13454         using MEM_ALIAS_SET accessor.
13455         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
13456         (get_memory_rtx, expand_builtin_va_arg): Likewise.
13457         (expand_builtin_va_copy):Likewise.
13458         * caller-save.c (setup_save_areas): Likewise.
13459         * calls.c (compute_argument_addresses): Likewise.
13460         * explow.c (set_mem_attributes): Likewise.
13461         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
13462         (expand_assignment, store_constructor_field, store_field): Likewise.
13463         (expand_expr_unaligned): Likewise.
13464         * function.c (assign_stack_temp_for_type): Likewise.
13465         (put_reg_into_stack, gen_mem_addressof): Likewise.
13466         * ifcvt.c (noce_try_cmove_arith): Likewise.
13467         * reload1.c (reload, alter_reg): Likewise.
13468         * config/alpha/alpha.c (get_aligned_mem): Likewise.
13469         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
13470         (alpha_expand_unaligned_store): Likewise
13471         (alpha_expand_unaligned_load_words): Likewise.
13472         (alpha_expand_unaligned_store_words): Likewise.
13473         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
13474         (alpha_expand_epilogue): Likewise.
13475         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
13476         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
13477         * config/i386/i386.c (legitimize_pic_address): Likewise.
13478         * config/i960/i960.c (setup_incoming_varargs): Likewise.
13479         * config/ia64/ia64.c (spill_restore_mem): Likewise.
13480         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13481         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
13482         * config/mips/mips.c (mips_va_arg): Likewise.
13483         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
13484         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
13485         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13486         (setup_incoming_varargs, rs6000_va_arg): Likewise.
13487         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
13488         (rs6000_emit_epilogue): Likewise.
13489         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
13490         * config/sparc/sparc.c (sparc_va_arg): Likewise.
13491         * config/v850/v850.c (v850_va_arg): Likewise.
13492
13493 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
13494
13495         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
13496         when fallthru edge is present.
13497         (mege_blocks): Handle case where creation of jump insn
13498         is required.
13499
13500         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
13501         CLEANUP_POST_REGSTACK): New constants.
13502         * except.c (finish_eh_generation): Update call of cleanup_cfg,
13503         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
13504         * output.h (cleanup_cfg): Update prototype.
13505         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
13506         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
13507         cleanup_cfg call; kill missleading comment.
13508         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
13509         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
13510         parameter; control optimizations performed using it.
13511         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
13512         try_crossjump_bb): New functions.
13513
13514 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13515
13516         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
13517         extern.
13518         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
13519         pa_output_function_prologue.
13520         * pa-protos.h (pa_output_function_prologue): New prototype.
13521
13522 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13523
13524         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
13525         and low to get correct sign extension in low+high test.
13526
13527 2001-07-11  Janis Johnson <janis@us.ibm.com>
13528
13529         * gcov.c (arcdata): Use gcov_type to fix branch percentage
13530         for large hit count.
13531
13532         * profile.c (branch_prob): Fix .bbg info for computed gotos
13533         and C++ EH code.
13534
13535 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
13536
13537         * stmt.c (parse_output_constraint): New function, split out
13538         from ...
13539         (expand_asm_operands): ... here.  Use parse_output_constraint.
13540         * tree.h (parse_output_constraint): Declare it.
13541
13542 2001-07-11  Richard Henderson  <rth@redhat.com>
13543
13544         * bitmap.c: Comment some functions; fiddle whitespace.
13545         (bitmap_free): Don't export.
13546         (bitmap_element_allocate): Use memset.
13547         * bitmap.h (bitmap_free): Don't declare.
13548
13549 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
13550
13551         * gcse.c, lcm.c, sched-deps.c:
13552         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
13553
13554         * flow.c (flow_loops_find): Free dom if we found no loops, since
13555         we aren't going to save it.
13556
13557         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
13558         done.
13559
13560 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
13561
13562         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
13563
13564 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13565
13566         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
13567         #ifndef DWARF2_DEBUGGING_INFO.
13568
13569 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
13570
13571         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
13572
13573 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
13574
13575         * config/mips/mips.c (gen_int_relational): Tell the caller not to
13576         reverse a branch if a NE comparison is implemented with GTU.
13577
13578 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
13579             H.J. Lu  <hjl@gnu.org>
13580
13581         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
13582         constant addresses.
13583         (call_internal2): Likewise.
13584         (call_value_internal1): Likewise.
13585         (call_value_internal2): Likewise.
13586         (call_value_multiple_internal1): Likewise.
13587         (call_value_multiple_internal2): Likewise.
13588
13589 2001-07-10  Kazu Hirata  <kazu@hxi.com>
13590
13591         * calls.c (emit_library_call_value_1): Fix a comment typo.
13592         * dwarf2out.c (mem_loc_descriptor): Likewise.
13593         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
13594
13595 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
13596
13597         * simplify-rtx.c (simplify_subreg): Fix typo in comment
13598
13599 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13600
13601         * recog.c (offsettable_address_p): Handle LO_SUM case.
13602         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
13603         instead of plus_constant.
13604
13605 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13606
13607         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
13608         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
13609
13610 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13611
13612         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
13613         adjust_address_nv instead of plus_constant.
13614
13615 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
13616
13617         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
13618         dwarf2out.o): Depend on debug.h, wrap long lines.
13619         * dbxout.c: Include debug.h.
13620         (dbx_debug_hooks): New.
13621         (dbxout_init): Make static, take just 2 args.
13622         (dbxout_finish): Make static.
13623         * dbxout.h (dbxout_init, dbxout_finish): Delete.
13624         * debug.c: New file.
13625         * debug.h: New file.
13626         * dwarf2out.c: Include debug.h.
13627         (dwarf2_debug_hooks): New.
13628         (dwarf2out_init): Make static.
13629         (dwarf2out_finish): Make static, take 2 args.
13630         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
13631         * dwarfout.c: Include debug.h.
13632         (dwarf_debug_hooks): New.
13633         (dwarfout_init): Make static.
13634         (dwarfout_finish): Make static, take 2 args.
13635         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
13636         * sdbout.c: Include debug.h.
13637         (sdb_debug_hooks): New.
13638         (sdbout_init): Make static, take 2 args.
13639         * sdbout.h (sdbout_init): Delete.
13640         * toplev.c: Include debug.h.
13641         (debug_hooks): New.
13642         (compile_file): Set deubg_hooks based on command line options.
13643         Use the hooks unconditionally rather than conditional compilation.
13644
13645 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
13646
13647         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
13648         first_insn_after_basic_block_note instead.
13649
13650         * df.c (df_bb_refs_unlink): #if 0 out for now.
13651
13652 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
13653
13654         * ssa.h: Add prototype for ssa_const_prop
13655         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
13656         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
13657         (ssa_fast_dce): Remove unused variable
13658
13659 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
13660
13661         * diagnostic.c (finish_diagnostic): Rename to
13662         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
13663         calls thourghout.
13664
13665 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
13666
13667         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
13668         .loc support.
13669
13670         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
13671         (dump_file): Only pad the demangled name with spaces if the
13672         mangled name was padded with spaces.
13673
13674 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
13675
13676         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
13677         edge detection.
13678
13679 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13680
13681         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
13682         extraction if no direct load if either EXPAND_CONST_ADDRESS or
13683         EXPAND_INITIALIZER.
13684
13685         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
13686         whether can put offset inside LO_SUM to check mode alignment, not size.
13687
13688 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
13689
13690         * doc/tm.texi (Misc): Fix thinko.
13691
13692 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
13693
13694         * regmove.c (replace_in_call_usage): Fix warnings.
13695         * sched-deps.c (add_dependence): Fix warnings.
13696         * simplify-rtx.c (simplify_subreg): Likewise.
13697         Return NULL_RTX instead of NULL.
13698
13699         * reg-stack.c (emit_swap_insn): Eliminate warnings.
13700         (subst_asm_stack_regs): Likewise.
13701
13702         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
13703         warnings.
13704
13705         * dwarf2out.c (output_call_frame_info): Declare i as int.
13706         (build_abbrev_table): Declare n_alloc as int.
13707         (dwarf2out_finish): Initialize die.
13708         * except.c: Declare sjlj_funcdef_number as unsigned.
13709         (connect_post_landing_pads): Declare j as unsigned.
13710         (convert_to_eh_region_ranges): Initialize call_site.
13711         (output_function_exception_table): Initialize tt_format_size.
13712         * expr.c (move_by_pieces_1): Initialize to1.
13713         (store_constructor): Initialize minelt and maxelt.
13714         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
13715         * function.c (instantiate_decls): Avoid signed/unsigned warning.
13716
13717         * c-decl.c (combine_parm_decls): Unused, remove.
13718         * c-tree.h: Remove prototype for combine_parm_decls.
13719
13720         * reload.c (push_reload): Fix warning.
13721         (regno_clobbered_p): Likewise.
13722         * reload1.c (replace_pseudos_in_call_usage): Likewise.
13723         (reload_combine): Likewise.
13724
13725         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
13726         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
13727         warnings.
13728         * bitmap.c (bitmap_operation): Change user.
13729         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
13730
13731 2001-07-10  Eric Christopher  <echristo@redhat.com>
13732
13733         * config/mips/mips.c (override_options): Fix typo.
13734
13735 2001-07-09  Stan Shebs  <shebs@apple.com>
13736
13737         * target.h (struct gcc_target): New fields init_builtins and
13738         expand_builtin.
13739         * target-def.h (TARGET_INIT_BUILTINS): New macro.
13740         (TARGET_EXPAND_BUILTIN): New macro.
13741         (TARGET_INITIALIZER): Add them.
13742         * builtins.c: Include target.h.
13743         (expand_builtin): Use targetm.expand_builtin.
13744         (default_init_builtins): New function.
13745         (default_expand_builtin): New function.
13746         * expr.h (default_init_builtins): Declare.
13747         (default_expand_builtin): Declare.
13748         * c-common.c (c_common_nodes_and_builtins): Use
13749         targetm.init_builtins.
13750         * defaults.h (MD_INIT_BUILTINS): Remove.
13751         * Makefile.in (builtins.o): Depend on target.h.
13752
13753         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
13754         (TARGET_EXPAND_BUILTIN): Define.
13755         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
13756         (MD_EXPAND_BUILTIN): Remove.
13757
13758         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
13759         (TARGET_EXPAND_BUILTIN): Define.
13760         (c4x_init_builtins): Make endlink arg a local.
13761         (c4x_print_operand): Fix typos in adjust_address usages.
13762         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
13763         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
13764         (MD_EXPAND_BUILTIN): Remove.
13765
13766         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
13767         (TARGET_EXPAND_BUILTIN): Define.
13768         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
13769         (ix86_init_builtins): Call new function only if TARGET_MMX.
13770         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
13771         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
13772         (MD_EXPAND_BUILTIN): Remove.
13773
13774         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
13775         (TARGET_EXPAND_BUILTIN): Define.
13776         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
13777         (MD_EXPAND_BUILTIN): Remove.
13778
13779         * doc/tm.texi: Document these changes.
13780
13781 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
13782
13783         * basic-block.h (tree_node): Forward declare if needed.
13784         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
13785         (BLOCK_HEAD_TREE): Define.
13786         (BLOCK_END_TREE): Define.
13787         (struct loops): Rename field 'tree' to 'tree_root'.
13788         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
13789         'end_tree'.
13790         (flow_loops_tree_build): Rename reference to field 'tree' to
13791         'tree_root'.
13792         (flow_loops_level_compute): Ditto.
13793         * predict.c (estimate_bb_frequencies): Ditto.
13794         * tree.h (struct tree_common): Add field 'aux'.
13795
13796 2001-07-09  Stan Shebs  <shebs@apple.com>
13797
13798         * config/darwin.c (darwin_encode_section_info): Don't mark any
13799         DECL_EXTERNAL node as defined.
13800
13801 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13802
13803         * pa.c (pa_init_machine_status, pa_mark_machine_status,
13804         pa_free_machine_status, hppa_init_pic_save): Delete.
13805         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
13806         (hppa_profile_hook): Use hppa_pic_save_rtx.
13807         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
13808         hppa_init_pic_save): Delete.
13809         (hppa_pic_save_rtx): Declare.
13810         * pa.md (call, call_value, sibcall, sibcall_value,
13811         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
13812
13813 2001-07-09  Kazu Hirata  <kazu@hxi.com>
13814
13815         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
13816         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
13817
13818 2001-07-09  Andreas Jaeger  <aj@suse.de>
13819
13820         * output.h: Add declaration of final_forward_branch_p.
13821
13822         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
13823
13824         * varray.c: Include errors.h for internal_error and trim_filename
13825         declarations.
13826
13827         * Makefile.in (varray.o): Add errors.h.
13828
13829 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
13830
13831         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
13832         * optabs.c (have_add2_insn): Check whether the add insn chosen
13833         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
13834         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
13835
13836 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
13837
13838         * Makefile.in (OBJS): Add ssa-ccp.o
13839         (ssa-ccp.o): Add dependencies.
13840         * toplev.c (DFI_ssa_ccp): New dump file enum.
13841         (dump_file): Add entry for dumping after SSA CCP.
13842         (flag_ssa_ccp): New flag variable.
13843         (f_options): Add -fssa-ccp.
13844         (rest_of_compilation): Run SSA CCP if requested.
13845         * timevar.def (TV_SSA_CCP): New timevar.
13846         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
13847         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
13848         Fix minor typo in SSA DCE documentation.
13849         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
13850         Add documentation for new dump option.  Renumber dump files
13851         appropriately.
13852
13853 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13854
13855         * emit-rtl.c (gen_highpart_mode): New.
13856         * rtl.h (gen_highpart_mode): Declare.
13857         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
13858         operand can be VOIDmode constant.
13859
13860 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
13861
13862         * flow.c (redirect_edge_and_branch_force): New.
13863         (can_fallthru): Ensure that basic blocks are succeeding.
13864         (try_optimize_cfg): Do not delete basic block if it is the last one.
13865
13866         * flow.c (try_redirect_by_replacing_jump): Do not remove
13867         jumps with side effects, unlink chain on fallthru edge;
13868         set block for new jump instruction; avoid basic block to
13869         over by line number note.
13870
13871         * flow.c (try_simplify_condjump): Verify that the condjump
13872         is not always falling through.
13873
13874         Re-install patch:
13875         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
13876
13877         * flow.c (forwarder_block_p): Fix for fallthru blocks.
13878         (try_redirect_by_replacing_jump): Update properly the count
13879         and frequency information.
13880
13881 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13882
13883         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
13884         address that is a LO_SUM specially.
13885         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
13886
13887         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
13888
13889         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
13890         (operand_subword): Use them.
13891         (change_address_1): Renamed from change_address; new arg VALIDATE.
13892         * expr.h: Reflect above changes; change_address now macro.
13893         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
13894         making MEM.
13895         * cselib.c (add_mem_for_addr): Likewise.
13896         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
13897         * regmove.c (try_apply_stack_adjustment): Likewise.
13898         * reload.c (push_reload, make_memloc): Likewise.
13899         * reload1.c (eliminate_regs): Likewise.
13900         * simplify-rtx.c (simplify_replace_rtx): Likewise.
13901         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
13902         adjust_addess.
13903         * combine.c (make_extraction, simplify_shift_const): Likewise.
13904         (gen_lowpart_for_combine): Likewise.
13905         * cse.c (gen_lowpart_if_possible): Likewise.
13906         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
13907         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
13908         * optabs.c (gen_move_insn): Likewise.
13909         * reload1.c (alter_reg): Likewise.
13910         * simplify-rtx.c (simplify_subreg): Likewise.
13911         * stmt.c (expand_anon_union_decl): Likewise.
13912         * recog.c (validate_replace_rtx_1): Likewise.
13913         (expr.h): Include.
13914         * Makefile.in (recog.o): Add $(EXPR_H).
13915         * explow.c (stabilize): Call replace_equiv_address.
13916         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
13917         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
13918
13919 2001-07-03  Andrew Haley  <aph@redhat.com>
13920
13921         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
13922         the mode of the memory location.
13923
13924 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
13925
13926         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
13927
13928 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
13929
13930         * final.c (output_addr_const): Use target opening and
13931         closing parentheses.
13932         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
13933         defaults, add to TARGET_ASM_OUT.
13934         * target.h (struct gcc_target): Add open_paren and close_paren.
13935         * doc/md.texi: Update.
13936         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
13937         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
13938         TARGET_ASM_CLOSE_PAREN.
13939         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
13940         Override.
13941         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
13942         Override.
13943         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
13944         * config/a29k/a29k.h: Similarly.
13945         * config/alpha/alpha.h: Similarly.
13946         * config/arc/arc.h: Similarly.
13947         * config/arm/aof.h: Similarly.
13948         * config/arm/aout.h: Similarly.
13949         * config/avr/avr.h: Similarly.
13950         * config/c4x/c4x.h: Similarly.
13951         * config/clipper/clipper.h: Similarly.
13952         * config/convex/convex.h: Similarly.
13953         * config/d30v/d30v.h: Similarly.
13954         * config/dsp16xx/dsp16xx.h: Similarly.
13955         * config/elxsi/elxsi.h: Similarly.
13956         * config/fr30/fr30.h: Similarly.
13957         * config/h8300/h8300.h: Similarly.
13958         * config/i370/i370.h: Similarly.
13959         * config/i386/i386.h: Similarly.
13960         * config/i860/i860.h: Similarly.
13961         * config/i960/i960.h: Similarly.
13962         * config/ia64/ia64.h: Similarly.
13963         * config/m32r/m32r.h: Similarly.
13964         * config/m68hc11/m68hc11.h: Similarly.
13965         * config/m68k/m68k.h: Similarly.
13966         * config/m88k/m88k.h: Similarly.
13967         * config/mcore/mcore.h: Similarly.
13968         * config/mips/mips.h: Similarly.
13969         * config/mn10200/mn10200.h: Similarly.
13970         * config/mn10300/mn10300.h: Similarly.
13971         * config/ns32k/ns32k.h: Similarly.
13972         * config/pa/pa.h: Similarly.
13973         * config/pdp11/pdp11.h: Similarly.
13974         * config/pj/pj.h: Similarly.
13975         * config/romp/romp.h: Similarly.
13976         * config/rs6000/rs6000.h: Similarly.
13977         * config/sh/sh.h: Similarly.
13978         * config/sparc/sparc.h: Similarly.
13979         * config/v850/v850.h: Similarly.
13980         * config/vax/vax.h: Similarly.
13981         * config/we32k/we32k.h: Similarly.
13982
13983 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
13984
13985         * doc/c-tree.texi: Document representation of attributes.
13986
13987 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13988
13989         * doc/tm.texi: Update some places for the rename of target to
13990         targetm.  Fix typo.
13991
13992 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13993
13994         * target.h (struct gcc_target): Add insert_attributes.
13995         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
13996         (TARGET_INITIALIZER): Update.
13997         * tree.c, tree.h (default_insert_attributes): New function.
13998         Update comments on other default functions to refer to targetm,
13999         not target.
14000         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
14001         TARGET_INSERT_ATTRIBUTES.
14002         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
14003         * c-common.c (decl_attributes): Use targetm.insert_attributes.
14004         Don't use PRAGMA_INSERT_ATTRIBUTES.
14005         * Makefile.in (c-common.o): Depend on $(TARGET_H).
14006         * c-decl.c (start_decl, start_function): Don't call
14007         SET_DEFAULT_DECL_ATTRIBUTES.
14008         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14009         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
14010         declare.
14011         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
14012         (c4x_check_attribute): Avoid modifying attribute list itself.
14013         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
14014         Make static.
14015         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
14016         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
14017         declare.
14018         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
14019         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
14020         Make static.
14021         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14022         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
14023         declare.
14024         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
14025         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
14026         Adjust parameters.  Make static.
14027
14028 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14029
14030         * c-common.c (decl_attributes): Only take a single attributes
14031         parameter.
14032         * c-common.h (decl_attributes): Update prototype.
14033         * c-decl.c (start_decl, start_function): Only take a single
14034         attributes parameter.  Update calls to decl_attributes.
14035         (finish_struct, finish_enum): Update calls to decl_attributes.
14036         (push_parm_decl): Expect unified list of attributes.  Update call
14037         to decl_attributes.
14038         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
14039         notype_nested_function, component_declarator,
14040         component_notype_declarator, label): Update calls to
14041         decl_attributes.
14042         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
14043         lists that are passed to push_parm_decl.
14044         * c-tree.h (start_function, start_decl): Update prototypes.
14045         * config/sh/sh-protos.h, config/sh/sh.c
14046         (sh_pragma_insert_attributes): Only take a single attributes
14047         parameter.
14048         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
14049         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
14050         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
14051         build_module_descriptor, generate_static_references,
14052         generate_strings, build_selector_translation_table,
14053         generate_descriptor_table, generate_protocols,
14054         generate_ivars_list, generate_dispatch_table,
14055         generate_protocol_list, generate_category,
14056         generate_shared_structures, really_start_method, add_objc_decls,
14057         generate_classref_translation_entry): Update calls to start_decl
14058         and start_function.
14059         (build_tmp_function_decl, start_method_def): Unify attribute lists
14060         that are passed to push_parm_decl.
14061
14062 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14063
14064         * final.c (no_asm_to_stream): New.
14065         (final_scan_insn): Use target structures for prologue ends
14066         and epilogue starts.
14067         * output.h (no_asm_to_stream): New.
14068         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
14069         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
14070         (TARGET_ASM_OUT): Update.
14071         * target.h (struct gcc_target): New members function_end_prologue
14072         and function_begin_epilogue.
14073         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
14074         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
14075         * config/alpha/alpha.c (output_end_prologue): Rename to
14076         alpha_output_function_end_prologue.  Use in target struct
14077         and make static.
14078         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
14079         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
14080         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
14081         ia64_output_function_end_prologue.  Use in target struct
14082         and make static.
14083         (ia64_function_prologue, ia64_funciton_epilogue): Rename
14084         mistyped prototypes.
14085         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
14086         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
14087         Delete.
14088         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
14089         an use in target struct, make static.
14090         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
14091         Delete.
14092
14093 2001-07-08  Richard Henderson  <rth@redhat.com>
14094
14095         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
14096
14097 2001-07-08  Richard Henderson  <rth@redhat.com>
14098
14099         * config/i386/i386.md: Remove constraints strings from define_split
14100         and define_peephole2 patterns.
14101         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
14102         (eh_return): Use them.
14103
14104 2001-07-08  Richard Henderson  <rth@redhat.com>
14105
14106         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
14107         Document MD_FALLBACK_FRAME_STATE_FOR.
14108
14109 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14110
14111         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
14112         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
14113         elimination.
14114         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
14115
14116 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
14117
14118         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
14119         of the label inside NAME as opposed to just the end of NAME.
14120
14121 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14122
14123         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
14124         * config/alpha/alpha.c (alpha_init_machine_status,
14125         alpha_mark_machine_status, alpha_free_machine_status): Delete.
14126         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
14127         (vms_valid_decl_attribute_p): Make static, conditionally compile.
14128         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
14129
14130 2001-07-06  Stan Shebs  <shebs@apple.com>
14131
14132         * target.h (targetm): Rename global from "target", so as not to
14133         conflict with local variables.
14134         * c-decl.c: Ditto.
14135         * c-typeck.c: Ditto.
14136         * final.c: Ditto.
14137         * tree.c: Ditto.
14138         * cp/decl.c: Ditto.
14139         * cp/decl2.c: Ditto.
14140         * cp/typeck.c: Ditto.
14141         * 1750a/1750a.c: Ditto.
14142         * a29k/a29k.c: Ditto.
14143         * arc/arc.c: Ditto.
14144         * arm/arm.c: Ditto.
14145         * avr/avr.c: Ditto.
14146         * clipper/clipper.c: Ditto.
14147         * convex/convex.c: Ditto.
14148         * d30v/d30v.c: Ditto.
14149         * dsp16xx/dsp16xx.c: Ditto.
14150         * elxsi/elxsi.c: Ditto.
14151         * fr30/fr30.c: Ditto.
14152         * h8300/h8300.c: Ditto.
14153         * i370/i370.c: Ditto.
14154         * i386/i386.c: Ditto.
14155         * i860/i860.c: Ditto.
14156         * i960/i960.c: Ditto.
14157         * ia64/ia64.c: Ditto.
14158         * m32r/m32r.c: Ditto.
14159         * m68hc11/m68hc11.c: Ditto.
14160         * m68k/m68k.c: Ditto.
14161         * m88k/m88k.c: Ditto.
14162         * mips/mips.c: Ditto.
14163         * ns32k/ns32k.c: Ditto.
14164         * pa/pa.c: Ditto.
14165         * pdp11/pdp11.c: Ditto.
14166         * romp/romp.c: Ditto.
14167         * rs6000/rs6000.c: Ditto.
14168         * sh/sh.c: Ditto.
14169         * sparc/sparc.c: Ditto.
14170         * vax/vax.c: Ditto.
14171         * we32k/we32k.c: Ditto.
14172         * doc/tm.texi: Update the manual to match.
14173
14174 2001-07-06  Richard Henderson  <rth@redhat.com>
14175
14176         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
14177         DWARF2_UNWIND_INFO not just whether it is defined.
14178
14179 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
14180
14181         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
14182         call to simplify_binary_operation returns a new pattern.
14183
14184 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
14185
14186         * glimits.h (__SHRT_MAX__): New.
14187         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
14188         (SHRT_MAX): Define in terms of __SHRT_MAX__.
14189
14190 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
14191
14192         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
14193         avoid warnings.
14194
14195 2001-07-06  Richard Henderson  <rth@redhat.com>
14196
14197         * bitmap.c (bitmap_release_memory): Move adjacent to the
14198         allocation functions.
14199         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
14200         the implementation.  Binary search for the set bit.
14201         (bitmap_union_of_diff): Allocate the temporary on the stack
14202         instead of using xmalloc.
14203
14204 2001-07-06  Richard Henderson  <rth@redhat.com>
14205
14206         * genrecog.c (validate_pattern): Warn for constraints in
14207         define_{expand,split,peephole2}.  Remove strict_low_part
14208         before looking up match_dup.
14209
14210 2001-07-06  DJ Delorie  <dj@redhat.com>
14211
14212         * doc/gcc.texi (Makefile): Rename to be a more general purpose
14213         chapter about various build hints and history.  Add section
14214         talking about the various types of native and cross builds.
14215
14216 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14217
14218         * Makefile.in (final.o): Depend on target.h.
14219         * final.c: Include target.h.
14220         (default_function_pro_epilogue): New.
14221         (final_start_function): Use target structure for function prologues.
14222         (final_end_function): Use target structure for function epilogues.
14223         * fold-const.c (real_hex_to_f): Constify s and p.
14224         * output.h (default_function_pro_epilogue): New.
14225         * real.h (real_hex_to_f): Update prototype.
14226         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
14227         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
14228         (TARGET_INITIALIZER): Update.
14229         * target.h (gcc_target): Add struct asm_out.
14230         * doc/tm.texi: Update.
14231
14232 config:
14233         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
14234         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
14235         in cpu/cpu.c, or rename old functions consistently.  Take
14236         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
14237         redundant macros and prototypes.  Make new functions static.
14238
14239         * 1750a/1750a.c: Similarly.
14240         * 1750a/1750a.h: Similarly.
14241         * a29k/a29k-protos.h: Similarly.
14242         * a29k/a29k.c: Similarly.
14243         * a29k/a29k.h: Similarly.
14244         * arc/arc-protos.h: Similarly.
14245         * arc/arc.c: Similarly.
14246         * arc/arc.h: Similarly.
14247         * arm/arm-protos.h: Similarly.
14248         * arm/arm.c: Similarly.
14249         * arm/arm.h: Similarly.
14250         * avr/avr-protos.h: Similarly.
14251         * avr/avr.c: Similarly.
14252         * avr/avr.h: Similarly.
14253         * clipper/clipper-protos.h: Similarly.
14254         * clipper/clipper.c: Similarly.
14255         * clipper/clipper.h: Similarly.
14256         * convex/convex.c: Similarly.
14257         * convex/convex.h: Similarly.
14258         * d30v/d30v-protos.h: Similarly.
14259         * d30v/d30v.c: Similarly.
14260         * d30v/d30v.h: Similarly.
14261         * d30v/d30v.md: Similarly.
14262         * dsp16xx/dsp16xx-protos.h: Similarly.
14263         * dsp16xx/dsp16xx.c: Similarly.
14264         * dsp16xx/dsp16xx.h: Similarly.
14265         * elxsi/elxsi.c: Similarly.
14266         * elxsi/elxsi.h: Similarly.
14267         * fr30/fr30.c: Similarly.
14268         * fr30/fr30.md: Similarly.
14269         * h8300/h8300-protos.h: Similarly.
14270         * h8300/h8300.c: Similarly.
14271         * h8300/h8300.h: Similarly.
14272         * i370/i370-protos.h: Similarly.
14273         * i370/i370.c: Similarly.
14274         * i370/i370.h: Similarly.
14275         * i386/i386.c: Similarly.
14276         * i386/osf1elf.h: Similarly.
14277         * i386/osfrose.h: Similarly.
14278         * i860/i860-protos.h: Similarly.
14279         * i860/i860.c: Similarly.
14280         * i860/i860.h: Similarly.
14281         * i960/i960-protos.h: Similarly.
14282         * i960/i960.c: Similarly.
14283         * i960/i960.h: Similarly.
14284         * ia64/ia64-protos.h: Similarly.
14285         * ia64/ia64.c: Similarly.
14286         * ia64/ia64.h: Similarly.
14287         * m32r/m32r-protos.h: Similarly.
14288         * m32r/m32r.c: Similarly.
14289         * m32r/m32r.h: Similarly.
14290         * m68hc11/m68hc11-protos.h: Similarly.
14291         * m68hc11/m68hc11.c: Similarly.
14292         * m68hc11/m68hc11.h: Similarly.
14293         * m68k/crds.h: Similarly.
14294         * m68k/dpx2.h: Similarly.
14295         * m68k/m68k-protos.h: Similarly.
14296         * m68k/m68k.c: Similarly.
14297         * m68k/m68k.h: Similarly.
14298         * m68k/news.h: Similarly.
14299         * m88k/m88k-protos.h: Similarly.
14300         * m88k/m88k.c: Similarly.
14301         * m88k/m88k.h: Similarly.
14302         * mips/mips-protos.h: Similarly.
14303         * mips/mips.c: Similarly.
14304         * mips/mips.h: Similarly.
14305         * ns32k/merlin.h: Similarly.
14306         * ns32k/ns32k.c: Similarly.
14307         * ns32k/ns32k.h: Similarly.
14308         * ns32k/tek6000.h: Similarly.
14309         * pa/pa-protos.h: Similarly.
14310         * pa/pa.c: Similarly.
14311         * pa/pa.h: Similarly.
14312         * pdp11/2bsd.h: Similarly.
14313         * pdp11/pdp11-protos.h: Similarly.
14314         * pdp11/pdp11.c: Similarly.
14315         * pdp11/pdp11.h: Similarly.
14316         * romp/romp-protos.h: Similarly.
14317         * romp/romp.c: Similarly.
14318         * romp/romp.h: Similarly.
14319         * rs6000/rs6000-protos.h: Similarly.
14320         * rs6000/rs6000.c: Similarly.
14321         * rs6000/rs6000.h: Similarly.
14322         * rs6000/sysv4.h: Similarly.
14323         * sh/sh-protos.h: Similarly.
14324         * sh/sh.c: Similarly.
14325         * sh/sh.h: Similarly.
14326         * sparc/sparc-protos.h: Similarly.
14327         * sparc/sparc.c: Similarly.
14328         * sparc/sparc.h: Similarly.
14329         * vax/vax.c: Similarly.
14330         * vax/vax.h: Similarly.
14331         * vax/vms.h: Similarly.
14332         * we32k/we32k.c: Similarly.
14333         * we32k/we32k.h: Similarly.
14334
14335 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
14336
14337         * basic-block.h (first_insn_after_basic_block_note): Declare.
14338         * flow.c (first_insn_after_basic_block_note): Define.  Moved
14339         from...
14340         * ssa.c (first_insn_after_basic_block_note): Remove.
14341         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
14342         necessary.
14343         (ssa_eliminate_dead_code): Properly update the CFG and PHI
14344         nodes when we find a dead conditional branch.  Insert BARRIERs
14345         after any blocks with no successors, but which do not have
14346         any BARRIERs.
14347
14348 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
14349
14350         * varray.c (varray_check_failed): Use internal_error.
14351
14352 2001-07-05  Andrew Haley  <aph@redhat.com>
14353
14354         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
14355         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
14356         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
14357
14358 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
14359
14360         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
14361         reference if the target constant is also a SYMBOL_REF.
14362
14363 2001-07-05  Eric Christopher  <echristo@redhat.com>
14364
14365         * config/mips/mips.h (MASK_MIPS3900): Remove.
14366         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
14367         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
14368         (TARGET_MIPS3900): Change to use mips_arch.
14369         (TARGET_MIPS4000): New.
14370         (TARGET_MIPS4100): New.
14371         (TARGET_MIPS4300): New.
14372         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
14373         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
14374         for -mipsX.
14375         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
14376         (ISA_HAS_BRANCHLIKELY): To here.
14377         (CC1_CPU_SPEC):  New.
14378         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
14379         (mips_arch_string): Declare.
14380         (mips_arch): Declare.
14381         (TARGET_OPTIONS): Add -march and -mtune.
14382
14383         * config/mips/mips.c (mips_arch_string): New.
14384         (mips_arch): New.
14385         (override_options): Handle -march for codegen and -mtune
14386         for scheduling. Use mips_arch. Move tx39 target default here.
14387         (mips_parse_cpu): Move error message to override_options.
14388
14389         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
14390
14391         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
14392
14393         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
14394         (MIPS Options): Ditto.  Change mcpu entry to historical text.
14395
14396 2001-07-05  H.J. Lu  (hjl@gnu.org)
14397
14398         * config/mips/mips.c (mips_parse_cpu): New function to parse
14399         -march=*/-mcpu=*.
14400
14401 2001-07-05  Jim Wilson  <wilson@redhat.com>
14402
14403         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
14404         * config/ia64/t-ia64: Likewise.
14405         (LIB1ASMFUNCS): Update comment.
14406
14407 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
14408
14409         * doc/install.texi (Install GCC: Binaries): Fix typo.
14410
14411 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14412
14413         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
14414         reference using the stack pointer, adjust it since we push Y
14415         temporarily.
14416         ("*ashrsi3"): Likewise.
14417         ("*lshrsi3"): Likewise.
14418
14419 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14420
14421         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
14422         when -fomit-frame-pointer is used.
14423
14424 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
14425
14426         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
14427         (try_redirect_by_replacing_jump): Reverse updating properly the
14428         count and frequency information.  Reverse removing cc0 setter.
14429         (forwarder_block_p): Reverse fixing for fallthru blocks.
14430
14431 2001-07-05  DJ Delorie  <dj@redhat.com>
14432
14433         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
14434         (translate_options): If the above is defined, use it to map
14435         given options to new options.
14436         * doc/tm.texi: Document it.
14437
14438 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
14439             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14440
14441         * doc/invoke.texi (Optimize Options): Document that -fgcse may
14442         cause programs using computed gotos to run more slowly.
14443
14444 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14445
14446         * doc/install.texi (Specific): Markup, spelling and typo fixes.
14447         Fixed sorting.
14448         Consistently require binutils 2.11.2, not prereleases.
14449         (Specific, decstation-*): Canonicalize as mips-dec-*.
14450         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
14451         always necessary.
14452         (Specific, m68k-altos): Removed reference to README.altos, deleted.
14453         (Specific, mips-*): Reword MIPS C compiler requirements.
14454         (Specific, powerpc*-*-*): New, mention --with-cpu once.
14455         (Specific, sunv5): Removed, obsolete.
14456
14457 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
14458
14459         * dwarf2out.c (output_loc_list): Use an all ones mask for
14460         .text asm output and don't rely on long long
14461         literals. Reformat some long lines.
14462
14463 2001-07-05  Andreas Jaeger  <aj@suse.de>
14464
14465         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
14466         section.
14467
14468 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
14469
14470         * dwarf2out.c (dwarf2out_define): Update comment.
14471         (dwarf2out_undef): Ditto.
14472         (dwarf2out_start_source_file): Ditto.
14473         (dwarf2out_end_source_file): Ditto.
14474         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
14475         since we never call the start/end debug hook for the primary file.
14476
14477 2001-07-04  Kazu Hirata  <kazu@hxi.com>
14478
14479         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
14480         from shll.
14481
14482 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
14483
14484         * cppinit.c (remove_dup_dirs): Inform if a system include
14485         directory is being reordered.
14486         * doc/invoke.texi (Directory Options): GCC warns if you hide a
14487         system include.
14488         * doc/cpp.texi (Search Paths): Likewise.
14489         * doc/gcc.texi (Interoperation): Remove information about
14490         -I/usr/include.
14491
14492 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
14493
14494         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
14495         (VARRAY_TOP_CHAR_PTR): Likewise.
14496
14497 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14498
14499         * gcc.c (process_command): Don't assign elements of a const char*.
14500
14501 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14502
14503         * emit-rtl.c (change_address): Don't abort if invalid address while
14504         reload is in progress.
14505
14506 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
14507
14508         * c-lex.c (cb_file_change): Pass line number to
14509         debug_start_source_file.
14510         (cb_undefine): Pass correct line number to debug_undef.
14511
14512         * toplev.c (debug_start_source_file): Add line number to
14513         parameters. Pass it along to dwarf2out_start_source_file.
14514         (decode_g_option): Stop resetting debug level back to normal when
14515         we change debug formats, unless the current level is
14516         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
14517         3).
14518
14519         * toplev.h (debug_start_source_file): Add line number to
14520         parameters.
14521
14522         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
14523         parameters.
14524
14525         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
14526         parameters.
14527         Output debug_macinfo data for starting file if requested.
14528         (dwarf2out_end_source_file): Output debug_macinfo data for ending
14529         file if requested.
14530         (dwarf2out_define): Output debug_macinfo data for defining a macro
14531         if requested.
14532         (dwarf2out_undef): Output debug_macinfo data for undefining a
14533         macro if requested.
14534         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
14535         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
14536         (macinfo_section_label): New. DWARF2 macro info section label.
14537         (dwarf2out_init): If we want macro info, output the start label
14538         for the section.
14539         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
14540         attribute to the compilation unit die pointing to the macro info.
14541
14542 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
14543
14544         * dwarf2out.c (new_loc_list): Move to inside #ifdef
14545         DWARF2_DEBUGGING_INFO.
14546         (add_loc_descr_to_loc_list): Ditto.
14547         (output_loc_list): Ditto.
14548         Also, fix thinko in curr not being initialized.
14549         (gen_internal_sym): Ditto.
14550
14551 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14552
14553         * emit-rtl.c (replace_equiv_address): New function.
14554         * expr.h (replace_equiv_address): New declaration.
14555         * explow.c (validize_mem): Call it instead of change_address and
14556         also call if -fforce-addr and address is constant.
14557         * expr.c: Replace more calls to change_address with adjust_address
14558         and/or replace_equiv_address or to validize_mem.
14559         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
14560         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
14561         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
14562         * config/i370/i370.md, config/i860/i860.md: Likewise.
14563         * config/i960/i960.md, config/mips/mips.c: Likewise.
14564         * config/mips/mips.md, config/pa/pa.md: Likewise.
14565         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
14566         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
14567
14568 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14569
14570         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
14571
14572         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
14573         function.
14574
14575 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
14576
14577         * doc/include: New directory.
14578         * doc/fdl.texi: Move to doc/include/fdl.texi.
14579         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
14580         * doc/include/funding.texi, doc/include/gpl.texi: New files.
14581         * doc/gcc.texi: Use funding.texi and gpl.texi.
14582         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
14583         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
14584         Update dependencies and use -I $(docdir)/include.
14585
14586 2001-07-04  Anthony Green  <green@redhat.com>
14587
14588         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
14589
14590 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14591
14592         * doc/install.texi (sparc64-*-*): Remove garbage.
14593
14594 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
14595
14596         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
14597         Fix typo in last change to use adjust_address.
14598
14599 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14600
14601         * doc/install.texi (Specific): Update information for *-*-solaris*.
14602
14603 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14604
14605         * explow.c (plus_constant_wide): Reinitialize Y for restart.
14606
14607 2001-07-03  Stan Shebs  <shebs@apple.com>
14608
14609         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
14610         case for flag_no_mach_text_sections.
14611         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
14612         * config/darwin.c (flag_no_mach_text_sections): Remove.
14613         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
14614
14615 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14616
14617         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
14618         and avoid checking for constant as first operand.
14619         * recog.c (find_constant_term_loc): No longer static.
14620         (adj_offettable_operand): Delete.
14621         * rtl.h (adj_offsettable_operand): Delete declaration.
14622         (find_constant_term): Add declaration.
14623         * caller-save.c: Replace calls to adj_offsettable_operand with calls
14624         to adjust_address.
14625         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
14626         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
14627         * config/i386/i386.c, config/i386/i386.md: Likewise.
14628         * config/i860/i860.c, config/i960/i960.c: Likewise.
14629         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
14630         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
14631         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
14632         * config/mips/mips.c, config/mips/mips.md: Likewise.
14633         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
14634         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
14635         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
14636         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
14637         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
14638         * config/ns32k/ns32k.md: Likewise.
14639
14640 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
14641
14642         * rtl.c (copy_rtx): Handle 'T' format letter.
14643         * gensupport.c (collect_insn_data): Likewise.
14644         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
14645
14646 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
14647
14648         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
14649         -B option.  Use 'dir' not 'foo' as example directory name.
14650
14651 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14652
14653         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14654         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
14655
14656 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
14657
14658         * doc/cppinternals.texi: Improve formatting and logical markup.
14659
14660 2001-07-03  Andreas Jaeger  <aj@suse.de>
14661
14662         * Makefile.in (insn-recog.o): Add dependency on reload.h.
14663
14664         * genrecog.c (write_header): Include reload.h for prototypes in
14665         insn-recog.c.
14666
14667 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14668
14669 config:
14670         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
14671         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
14672         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
14673         i386_pe_valid_type_attribute_p): Add.
14674         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
14675         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
14676
14677 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14678
14679         * explow.c (plus_constant_wide, case LO_SUM): New case.
14680         (plus_constant_for_output_wide): Delete.
14681         * rtl.h (plus_constant_for_output): Delete.
14682         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
14683         instead of plus_constant_for_output.
14684         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
14685         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
14686         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
14687         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
14688         * config/sparc/sparc.md: Likewise.
14689         Convert some change_address calls to adjust_address.
14690
14691 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
14692
14693         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
14694         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
14695         documentation of -std and -Wwrite-strings.
14696
14697 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
14698
14699         * cse.c (canon_hash): Don't register registers in very small
14700         register classes, as extending their lifetime might cause
14701         reload to fail.
14702
14703 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
14704
14705         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
14706
14707         * flow.c (forwarder_block_p): Fix for fallthru blocks.
14708         (try_redirect_by_replacing_jump): Update properly the count
14709         and frequency information.
14710
14711 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
14712
14713         * toplev.c (dump_file_index): Move SSA dumps just after first
14714         jump dump.
14715         (dump_file): Corresponding changes.
14716         (rest_of_compilation): Move SSA path to just after the first
14717         jump pass.
14718         * doc/gcc.texi (Passes): Update due to movement of SSA path.
14719         * doc/invoke.texi: Update dump file #s as they were completely
14720         out of date with reality.
14721
14722 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
14723
14724         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
14725
14726         * expr.c (emit_move_insn_1): Deal with non-default
14727         STACK_PUSH_CODE.
14728
14729         * expr.c (emit_single_push_insn): Fix warning.
14730
14731 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
14732
14733         * expr.c (emit_move_insn_1): Avoid modifying
14734         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
14735
14736 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14737
14738         * emit-rtl.c (adjust_address): New function.
14739         * expr.h (adjust_address): Add declaration.
14740         * builtins.c: Replace some calls to change_address with calls to it
14741         or to validize_mem.
14742         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
14743         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
14744         * config/arm/arm.c, config/convex/convex.c: Likewise.
14745         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
14746         * config/i386/i386.c, config/i386/i386.md: Likewise.
14747         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
14748         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
14749         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
14750         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
14751         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
14752
14753 2001-07-02  Jim Wilson  <wilson@redhat.com>
14754
14755         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
14756
14757 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
14758
14759         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
14760         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
14761
14762 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
14763
14764         * cppinit.c (lang_defaults): New table.
14765         (set_lang): Just read from lang_defaults into the live options
14766         structure.
14767
14768 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
14769
14770         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
14771         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
14772         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
14773
14774 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14775
14776         * doc/install.texi: Various spelling and markup fixes.
14777         (Installing GCC): Component specific installation instructions are
14778         gone.
14779         Fix reference.
14780         Warn about removing old install dir in the presence of shared libs.
14781         (Configuration): Invoke with options target to match configure
14782         --help.
14783         Consistently refer to gas, gld pathnames.
14784         Invert --enable-multilib documentation.
14785         Remove references to old compiler versions.
14786
14787 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14788
14789         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
14790
14791 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14792
14793         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
14794         section.
14795         (Specific, mips*-sgi-irix5): Note IDO download.
14796         Reworded MIPS C hints.
14797         Use GNU as instead of GAS.
14798         Markup fixes.
14799         Removed SGI Freeware reference, IRIX 6 only.
14800         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
14801         Note N64 library requirement/workaround.
14802         Update O32 hints.
14803         Complete list of structure passing bug victims.
14804
14805 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14806
14807         * doc/install.texi: Remove CVS Id.
14808
14809 2001-07-02  Andreas Jaeger  <aj@suse.de>
14810
14811         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
14812         (find_inherently_necessary): Remove unused variable.
14813
14814 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
14815
14816         * c-common.h (TDI_inlined): New ast dump phase.
14817         (dump_flag_name): New function.
14818         * c-dump.c (dump_files): Add inlined phase.
14819         (dump_flag_name): Define.
14820         * doc/invoke.texi (-fdump-ast-inlined): Document.
14821
14822 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14823
14824         * stor-layout.c (layout_decl): Revert change to handling of alignment
14825         in packed types.
14826
14827 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14828
14829         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
14830         for FIELD_DECL.
14831
14832 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
14833
14834         * doc/tm.texi (FUNCTION_ARG): Document that the last call
14835         is special.
14836
14837 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
14838
14839         * tlink.c (recompile_files): Remove COMPILER_PATH and
14840         LIBRARY_PATH from the environment.
14841
14842 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
14843
14844         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
14845         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
14846         enumerators.
14847         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
14848
14849         * c-parse.in (OBJC_STRING): Kill.
14850         (objc_string): Decompose to [objc_string] '@' STRING.
14851         (reswords): Take the leading '@' off all the Objective C keywords.
14852         (objc_rid_sans_at): Kill.
14853         (init_reswords): Don't initialize it.
14854         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
14855         (_yylex): Kill reconsider label.  Look ahead one token after
14856         an '@'; if we get an identifier, check whether it's an
14857         Objective C @-keyword.  If so, return the keyword.  Otherwise,
14858         put back the token and return the '@' as a terminal.
14859
14860         * cpplib.c (lex_macro_node): Remove unnecessary check for
14861         leading '@' on identifier.  Clarify control flow and commentary.
14862
14863 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14864
14865         * cse.c (new_label_ref): Variable deleted.
14866         (insert): Remove set of new_label_ref.
14867         (check_for_label_ref): New function.
14868         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
14869
14870 See ChangeLog.5 for earlier changes.