OSDN Git Service

* rs6000.md (cmptf_internal1): Replace %$ with $.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-11-21  David Edelsohn  <edelsohn@gnu.org>
2
3         * rs6000.md (cmptf_internal1): Replace %$ with $.
4
5 Wed Nov 21 16:44:01 2001  Douglas B. Rupp  <rupp@gnat.com>
6
7         * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
8         (read_include_file): Use STAT_SIZE_TOO_BIG.
9
10         * cppinit.c (INO_T_COPY): Define.
11         (INO_T_EQ): Uppercase parameters.
12         (append_include_chain): Use INO_T_COPY.
13
14 2001-11-21  Richard Sandiford  <rsandifo@redhat.com>
15
16         * cfg.c: Fix typos and formatting in the introductory comment.
17
18 Wed Nov 21 12:38:37 CET 2001  Jan Hubicka
19
20         * profile.c (compute_branch_probabilites):  Compute probabilities
21         for entry/exit edges; estimate probabilities for zero counts.
22
23 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
24
25         * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
26         to emit_library_call.
27         * function.c (expand_main_function, expand_function_start,
28         expand_function_end): Likewise.
29         * profile.c (output_func_start_profiler): Likewise.
30         * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
31         second argument to emit_library_call.
32         * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
33         as second argument to emit_library_call.
34         * calls.c (emit_library_call): Update fn_type description.
35
36 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
37
38         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
39         if fndecl is still DECL_INLINE and has DECL_RESULT.
40
41 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
42
43         * clipper.c (clipper_movstr): Avoid uninitialized warning.
44         * i960.c (is_mask, legitimize_address): Likewise.
45         * m88k.c (m88k_expand_prologue): Likewise.
46         * m88k.md: Likewise.
47         * mcore.c (emit_new_cond_insn): Likewise.
48         * stormy16.c (xstormy16_emit_cbranch): Likewise.
49
50 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
51
52         * config.gcc: Delete powerpcle-*-solaris2* stanza.
53         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
54         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
55         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
56         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
57         config/rs6000/t-ppcos: Expunge all references to Solaris.
58
59         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
60
61         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
62         output templates.
63         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
64         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
65
66 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
67
68         * sh.md: Avoid uninitialized warnings.
69         * vax.c (vax_rtx_cost): Likewise.
70
71 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
72
73         * rs6000.c (direct_return): Check if we are saving altivec
74         registers.
75         (first_altivec_reg_to_save): New.
76         Updated stack frame layout comments.
77         (rs6000_stack_info): Calculate altivec register save size.
78         Save link register if we saved some altivec registers.
79         (rs6000_stack_info): Align save size to 16 if altivec abi or
80         abi_darwin.
81         (rs6000_stack_info): Calculate altivec register offsets.
82         (rs6000_stack_info): Add altivec info to save_size.
83         (debug_stack_info): Add altivec debug info.
84         (rs6000_emit_prologue): Save altivec registers and vrsave.
85         (compute_vrsave_mask): New.
86         (altivec_expand_builtin): Remove unused variables.
87         (rs6000_parse_abi_options): Add static qualifier.
88         (rs6000_expand_builtin): Remove unused parameters.
89         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
90         (altivec_init_builtins): Same.
91         (is_altivec_return_reg): New.
92         (vrsave_operation): New.
93         (ALTIVEC_REG_BIT): New.
94         (generate_set_vrsave): New.
95
96         * rs6000.md (get_vrsave): New.
97         (set_vrsave): New.
98         (*set_vrsave_internal): New.
99
100         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
101         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
102         altivec_padding_size, vrsave_mask.
103         (TOTAL_ALTIVEC_REGS): New.
104         (EPILOGUE_USES): Add VRSAVE_REGNO.
105
106 2001-11-20  Jeff Law <law@redhat.com>
107
108         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
109         exit label as necessary.
110
111 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
112
113         * reload1.c (elimination_effects): Use function_invariant_p
114         instead of CONSTANT_P when considering register equivalences.
115
116 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
117
118         * config.gcc: Add FreeBSD/PowerPC target.
119         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
120         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
121         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
122         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
123         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
124         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
125         freebsd-spec.h to tm_file.
126         (rs6000-*-lynxos*): Add lynx.h to tm_file.
127         * config/freebsd.h: Tidy up.
128         (USING_CONFIG_FREEBSD): Define.
129         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
130         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
131         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
132         (TARGET_HAS_F_SETLKW): Define.
133         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
134         * config/freebsd-spec.h: New file.
135         * config/rs6000/freebsd.h: New file.
136         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
137         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
138         USING_SVR4_H to know when to turn on ELF support.
139         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
140         define only if not already defined.
141         Add FreeBSD support.
142         * config/rs6000/aix.h (TARGET_VERSION): Define.
143         * config/rs6000/beos.h: Likewise.
144         * config/rs6000/darwin.h: Likewise.
145         * config/rs6000/mach.h: Likewise.
146         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
147         Don't include lynx.h directly.
148
149 2001-11-20  Graham Stott  <grahams@redhat.com>
150
151         * unwind-dw2-fde.c (__deregister_frame_info_bases):
152         Fix lossage in last change return OB.
153
154 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
155
156         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
157         Remove unneeded exit related macros.
158
159 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
160
161         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
162
163         * rs6000.c (rs6000_emit_move): Add TFmode case.
164         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
165         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
166         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
167         * rs6000.h: ... to here.
168         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
169         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
170         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
171
172 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
173
174         * emit-rtl.c (get_mem_attrs): Fix typo.
175
176 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
177
178         * c-lang.c (finish_file): Backout 2001-11-16
179         changes, instead set DECL_DEFER_OUTPUT for static inline functions
180         before calling c_expand_deferred_function.
181
182 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
183
184         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
185         Don't register empty .eh_frame sections.
186         (__deregister_frame_info_bases, __deregister_frame): Don't
187         unregister them either.
188
189 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
190
191         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
192         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
193         * configure: Regenerate.
194         * config.in: Add dummy definitions of new flags.
195         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
196         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
197         * gcc.c (ASM_DEBUG_SPEC): New macro.
198         (asm_debug): New static variable.
199         (default_compilers): Add asm_debug when assembling from
200         user input.
201         (static_specs): Add asm_debug.
202
203 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
204
205         * config.gcc (*-*-freebsd*): Remove configuration block.
206
207 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
208
209         bootstrap/4422
210         * configure.in: Setup ability to run ./stage[1234]/xgcc in
211         fixinc *as if* it were a proper lang subdirectory.
212         * configure: Rebuilt.
213
214 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
215
216         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
217
218 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
219
220         * 1750a.md: Don't use hex format for a const_int.
221
222 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
223
224         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
225
226 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
227
228         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
229         defined (prevents link errors when gettext isn't in the system
230         library).
231
232 2001-11-19  DJ Delorie  <dj@redhat.com>
233
234         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
235         (validate_const_int): New.
236         (read_rtx): Validate constant integers.
237         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
238
239 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
240
241         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
242
243 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
244
245         * toplev.c (DUMPFILE_FORMAT): Define default.
246         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
247         (close_dump_file, compile_file): Likewise.
248         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
249         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
250
251 2001-11-19  Jeff Law <law@redhat.com>
252
253         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
254         a nop-jump.
255
256 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
257
258         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
259         Don't fall off the base token run.
260
261 2001-11-19  Jason Wilkins <fenix@io.com>
262
263         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
264
265 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
266
267         * tree.def (VIEW_CONVERT_EXPR): New tree code.
268         * tree.h (handled_component_p): New declaration.
269         * alias.c (handled_component_p): Move function from here ...
270         * expr.c (handled_component_p): ... to here and non longer static.
271         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
272         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
273         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
274         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
275         (expand_expr, case VIEW_CONVERT_EXPR): New case.
276         (expand_expr, cse ADDR_EXPR): No need to copy if already
277         BIGGEST_ALIGNMENT.
278         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
279         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
280         (output_constant): Handle VIEW_CONVERT_EXPR.
281         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
282         Add new case for VIEW_CONVERT_EXPR.
283
284 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
285
286         * a29k/unix.h (ASM_FILE_START): Const-ify.
287         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
288         * i386/isc.h (ASM_FILE_START): Const-ify.
289         * i386/sun386.h (ASM_FILE_START): Likewise.
290         * m32r.md: Likewise.
291         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
292         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
293         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
294         * mn10200.md: Initialize variable.
295
296 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
297
298         * gcse.c (try_replace_reg): Copy RTX before creating note.
299
300         * df.h (df_ref_flags): New uenum.
301         (DF_REF_FLAGS): New macro.
302         (struct ref): Add field "flags".
303         * df.c (HANDLE_SUBREG): Remove.
304         (df_ref_create): Likewise; set flags field of ref.
305         (df_def_record_1): Strip down read_write subreg; remove
306         commented out code; set READ_WRITE flag.
307         (read_modify_subreg_p): New static function.
308         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
309         new argument "flags".
310         (df_insn_refs_record): Update call of df_uses_record.
311         (df_insn_modify): Avoid #if 0 around comment.
312         (df_dump): Dump the read/write flag.
313
314         * predict.c (propagate_freq): Make cyclic_probability and frequency
315         volatile
316
317         * i386.c (ix86_cc_mode): Accept USE.
318
319         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
320         jump is turned into simplejump.
321
322 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
323
324         * doc/fragments.texi, doc/trouble.texi: Remove links to old
325         installation chapter.
326         * doc/gcc.texi: Don't claim that this manual documents
327         installation.  Mark Installation menu entry as being out of date.
328
329 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
330
331         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
332         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
333         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
334
335 2001-11-19  Jason Merrill  <jason@redhat.com>
336
337         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
338         cur_token, not after.
339
340         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
341         Lose ASM_OUTPUT_CONSTRUCTOR.
342         * system.h: Poison it and INT_ASM_OP.
343         * c-lang.c (finish_file): Don't check for it.
344         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
345
346 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
347
348         * mmix.c (mmix_cc1_ignored_option): Const-ify.
349         (mmix_init_machine_status): Make static to match declaration.
350         (mmix_unique_section): Const-ify.
351         (mmix_output_quoted_string): Avoid automatic aggregate
352         initialization.
353         (mmix_output_register_setting): Likewise.
354         (mmix_output_shiftvalue_op_from_str): Likewise.
355
356         * mmix.h (mmix_cc1_ignored_option): Const-ify.
357         (ASM_OUTPUT_BYTE): Fix format specifier warning.
358         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
359
360 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
361
362         PR c/4448
363         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
364         name __objc_thread_exit_status so that it matches the
365         variable defined in objc/thr.h.
366
367 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
368
369         PR bootstrap/4020
370         * mklibgcc.in: Add missing semi-colons.
371         * Makefile.in: Same.
372
373 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
374
375         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
376         after re-laying out decl in incomplete case.
377         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
378
379 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
380
381         * doc/install-old.texi: Move some sections out to ...
382         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
383         ... here.  New files.  Make into chapters rather than sections.
384         * doc/gcc.texi: Include the new files and add menu entries for
385         them.
386         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
387
388 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
389
390         * tree.h (TYPE_ALIGN_OK): New flag.
391         * emit-rtl.c (set_mem_attributes): Handle it.
392         * expr.c (emit_single_push_insn): Only set to alias set 0 if
393         doing sibcall optimization.
394         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
395         when make temporary.
396         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
397         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
398
399         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
400
401 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
402
403         * c-decl.c (c_decode_option): Give deprecation warning for
404         -traditional.
405         * doc/invoke.texi (-traditional): Note that this option is
406         deprecated.
407
408 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
409
410         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
411         arg to HOST_WIDE_INT, not long.
412
413         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
414         (HAS_INIT_SECTION): Define.
415         (REAL_ARITHMETIC): Don't undefine.
416
417 2001-11-18  Egor Duda  <deo@logos-m.ru>
418
419         * config/i386/cygwin.h: Strip leading '*' from name, if any.
420
421 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
422
423         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
424         * c-common.c: Include diagnostic.h.
425         (c_common_finish): New.
426         * c-common.h (c_common_finish): New.
427         * c-lang.c (LANG_HOOKS_FINISH): Override.
428         * c-parse.in: Don't include diagnostic.h.
429         (finish_parse): Remove.
430         * langhooks.h: Update comments.
431         * toplev.c (lang_dependent_init): New prototype.
432         (finalize): New.
433         (compile_file): Split cleanup code out to finalize.
434         (lang_dependent_init): Stop if lang_hooks.init fails.
435         (toplev_main): Update.
436         * tree.h (finish_parse): Remove.
437 objc:
438         * objc-act.c (LANG_HOOKS_FINISH): Override.
439
440 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
441
442         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
443         * config/alpha/vms_tramp.asm: New file.
444         * config/alpha/vms-tramp.asm: Removed.
445
446 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
447
448         * c-common.c (struct disabled_builtin, disabled_builtins,
449         disable_builtin_function, builtin_function_disabled_p): New.
450         (builtin_function_2): Check for disabled built-in functions.
451         * c-common.h (disable_builtin_function): Declare.
452         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
453         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
454         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
455
456 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
457
458         PR target/4606
459         * config.gcc: Remove reference to va-clipper.h.
460
461 2001-11-17  Stan Shebs  <shebs@apple.com>
462
463         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
464         AltiVec-related bitfields.
465
466 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
467
468         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
469         (mark_eh_region, case ERT_UKNONW): New case.
470
471 2001-11-17  Christopher Faylor  <cgf@redhat.com>
472             Corinna Vinschen  <vinschen@redhat.com>
473
474         * config/i386/cygwin.h: Search target specific include directory for
475         w32api stuff, if appropriate.
476
477 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
478
479         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
480
481 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
482
483         * config/rs6000/rs6000.md: Change all ldvx to lvx.
484
485 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
486
487         * gensupport.c (process_rtx): Don't assume filename is the first
488         argument of any rtl.
489
490 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
491
492         * vax-protos.h (reg_was_0_p): New prototype.
493         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
494         * vax.c (follows_p, reg_was_0_p): New functions.
495
496 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
497
498         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
499         (casesi1): Likewise.  Define new pattern which arises by simplification
500         when operand 1 is a constant int.  Correct pattern which arises by
501         simplification when operand 1 is zero.
502
503 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
504
505         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
506         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
507         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
508         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
509         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
510         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
511         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
512         * config/arm/aof.h: Don't include arm.h.
513         * config/arm/aout.h: Likewise.
514         * config/arm/coff.h: Don't include semi.h and aout.h.
515         * config/arm/elf.h: Don't include aout.h.
516         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
517         (TARGET_VERSION): Undef before defining.
518         (ARM_OS_NAME): Likewise
519         (TARGET_DEFAULT): Likewise
520         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
521         * config/arm/pe.h: Don't include arm/coff.h.
522         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
523         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
524         * config/arm/riscix1-1.h: Likewise.
525         * config/arm/rix-gas.h: Don't include riscix.h.
526         (DBX_CONTIN_LENGTH): Undef before defining.
527         * config/arm/semi.h: Don't include aout.h.
528         * config/arm/semiaof.h: Don't include aof.h.
529         * config/arm/strongarm-coff.h: Don't include coff.h.
530         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
531         * config/arm/vxarm.h: Don't include arm/coff.h.
532         * config/arm/xscale-coff.h: Don't include coff.h.
533
534 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
535
536         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
537         emit_cmp_insn.
538
539 2001-11-16  Andreas Jaeger  <aj@suse.de>
540
541         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
542         to ....
543         (fixup_fallthru_exit_predecessor): ... this.
544         Change callers and prototype.
545
546 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
547
548         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
549         hand; don't use gen_setcc_2.
550         (ix86_expand_builtin): Fix pshufw.
551         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
552         case UNORDERED to emit the right assembler instruction.
553         (mmx_pshufw): Lose operand 2.
554         (cvtsi2ss): Fix representation.
555         From Graham Stott:
556         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
557
558 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
559
560         * doc/include/linux-and-gnu.texi: Remove.
561         * doc/gnu.texi: New.
562         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
563         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
564
565 2001-11-16  Kazu Hirata  <kazu@hxi.com>
566
567         * config/a29k/a29k.c: Fix comment formatting.
568         * config/a29k/a29k.h: Likewise.
569         * config/arc/arc.c: Likewise.
570         * config/arc/arc.h: Likewise.
571         * config/vax/vax.c: Likewise.
572         * config/vax/vax.h: Likewise.
573         * config/we32k/we32k.c: Likewise.
574         * config/we32k/we32k.h: Likewise.
575
576 2001-11-16  Jeff Law  <law@redhat.com>
577
578         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
579         creating a new jump insn.
580
581 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
582
583         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
584         copy misaligned data.
585         * varasm.c (assemble_variable): Set alignment into MEM when changed.
586
587 2001-11-16  Graham Stott  <grahams@redhat.com>
588
589         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
590         OPALIGN type.
591
592 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
593
594         * except.c: Support for catching a list of types with a single handler
595         (struct eh_region): Change type and filter to lists for catch regions.
596         (mark_eh_region): Mark the filter list for GC also.
597         (expand_start_catch): Always build a list if argument not NULL and
598         register each type of the list through add_type_for_runtime.
599         (duplicate_eh_region_1): Change type into type_list for catch regions.
600         (assign_filter_values): Assign a filter to each type associated with a
601         catch region. Assign filter for NULL types in a unique entry in the
602         filter list.
603         (build_post_landing_pads): Emit compare and jump for each filter of
604         the list associated with a catch region.
605         (reachable_next_level): When the type thrown is known, stop the search
606         as soon as one type within a catch list matches. Also, a handler is
607         potentially reachable only if at least one of the types it catches
608         has not been previously caught.
609         (collect_one_action_chain): Retrieve the filter for a NULL type list
610         from the first filter list entry. For non NULL type lists, add an
611         action record for every filter assigned.
612         * except.h: Reflect changes in comment before expand_start_catch.
613
614 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
615
616         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
617         BLKmode.
618
619 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
620
621         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
622
623 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
624
625         * c-lang.c (finish_file): Don't emit static inline functions if
626         they weren't referenced.
627
628 2001-11-15  Stan Shebs  <shebs@apple.com>
629
630         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
631
632 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
633
634         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
635         call.
636         * config/i386/i386.md: Likewise.
637
638 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
639
640         * timevar.c (rtl.h): Include so get fancy abort.
641
642 2001-11-15  Dale Johannesen  <dalej@apple.com>
643
644         * config/darwin.h (SELECT_RTX_SECTION):  Force address
645         initializers into 'const' section
646         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
647         if_then_else to match result, not operands
648
649 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
650
651         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
652         * emit-rtl.c (change_address): Fix typo in default alignment.
653         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
654         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
655         * rtl.h (REGNO_PTR_FRAME_P): New macro.
656
657         * expr.c (store_field): Pass tree instead of max size; callers changed.
658         Change handling of alignment.
659         Only copy to_rtx if is TARGET.
660         (expand_expr_unaligned): Delete; callers now use expand_expr.
661         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
662         (expand_assignment): Change handling of alignment.
663         Only copy to_rtx if was original.
664         (get_inner_reference): No longer return alginment; callers changed.
665         (expand_expr, case COMPONENT_REF): Change handling of alignment.
666         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
667         (compare_from_rtx): Delete ALIGN parm; all callers changed.
668         (do_compare_rtx_and_jump): Likewise.
669         * expr.h: Reflect above changes.
670         * tree.h: Likewise.
671         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
672         to get_inner_reference.
673         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
674         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
675         * optabs.c: Likewise.
676         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
677         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
678         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
679         compare_rtx_and_jump, and emit_cmp_jump_insns.
680         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
681         * function.c (assign_stack_temp_for_type): No longer static.
682         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
683         (prepare_cmp_insn): Delete declaration.
684         * rtl.h (assign_stack_temp_for_type): Add declaration.
685         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
686         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
687         * config/i386/i386.c,config/mips/mips.c: Likewise.
688         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
689         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
690
691 2001-11-15  Stan Shebs  <shebs@apple.com>
692
693         * config/rs6000/rs6000.h: Fix a comment typo.
694         (RTX_COSTS): Sort processor versions better.
695
696 2001-11-15  Kazu Hirata  <kazu@hxi.com>
697
698         * config/h8300/h8300.md: Fix insn length of bit insns.
699
700 2001-11-15  Jason Merrill  <jason@redhat.com>
701
702         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
703         DIEs if there were errors in the source.
704
705         * config/alpha/alpha-interix.h, config/alpha/elf.h,
706         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
707         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
708         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
709         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
710         config/elfos.h, config/lynx.h, config/netware.h,
711         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
712         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
713         uses to use ASM_LONG.
714
715 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
716
717         * gensupport.c  process_include : Change call to alloca to
718         xmalloc.
719
720 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
721
722         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
723         templates.
724
725 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
726
727         * final.c (alter_subreg): If simplify_subreg can't do anything,
728         handle REG ourselves and abort for others.
729
730 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
731
732         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
733         routines.
734
735 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
736
737         * fix-header.c (read_scan_file): Update.
738
739 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
740
741         * toplev.c (toplev_main): Don't start timing until after
742         command-line options are parsed.
743
744 2001-11-15  Andreas Schwab  <schwab@suse.de>
745
746         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
747         makefile frag, not host makefile frag.
748         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
749         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
750         used.
751         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
752         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
753         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
754         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
755         * config/i386/t-dgux (STMP_FIXPROTO): Define.
756         * config/x-interix: Don't define STMP_FIXPROTO and
757         FIXPROTO_DEFINES.
758         * config/t-interix: New file, define STMP_FIXPROTO.
759         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
760         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
761         * config/t-svr4 (FIXPROTO_DEFINES): Define.
762         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
763         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
764         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
765         * config/m68k/t-hp3200: Renamed from x-hp3200.
766         * config/i370/t-oe: Renamed from x-oe.
767         * config/mips/t-iris: Renamed from x-iris.
768         * config/pa/t-bsd: Renamed from x-pa.
769         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
770         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
771         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
772         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
773         config/rs6000/x-cygwin: Remove files.
774
775         * configure.in: Check for target objdump and use that in eh_frame
776         optimization test.
777         * configure: Regenerated.
778
779 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
780
781         * jump.c (squeeze_notes): Return true if no real insns were found.
782         * rtl.h (squeeze_notes): Adjust prototype.
783         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
784         squeeze_notes finds no real instructions, abort.
785         (merge_blocks_move_successor_nojumps): Likewise.
786         * loop.c (find_and_verify_loops): Likewise.
787         * stmt.c (expand_end_case): Likewise.
788         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
789         find any real instructions.
790
791         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
792
793         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
794         conditional jump, request updating life into for the block
795         containing it.  Fix a typo which prevented life info update.
796         Clear blocks bitmap before using it.
797
798 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
799
800         * c-common.c: Include c-lex.h.
801         (c_common_lang_init): Change prototype.  Call init_c_lex and
802         init_pragma from here.
803         * c-common.h (c_common_lang_init): Change prototype.
804         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
805         * c-lang.c (c_init): Change prototype.  Update.
806         (c_init_options): Update.
807         * c-lex.c (cpp_filename): Remove.
808         (init_c_lex): Update.  Read the main file, and get the original
809         file name.
810         (yyparse): Finish the command line options.
811         * c-parse.in (c_parse_init): Call init_reswords here.
812         (init_parse): Remove.
813         * c-tree.h (c_init_decl_processing): New.
814         * cpphash.c (_cpp_init_hashtable): After initializing the hash
815         table, populate it.
816         * cppinit.c (read_original_filename, cpp_finish_options): New.
817         (cpp_create_reader): New prototype. Defer hash table initialization.
818         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
819         hash table.  Get the original filename.
820         * cpplib.h (cpp_create_reader): Update.
821         (cpp_start_read): Remove.
822         (cpp_read_main_file, cpp_finish_options): New.
823         * cppmain.c (main, do_preprocessing): Update.
824         * langhooks.h (struct langhooks): Update init prototype.
825         * toplev.c (general_init, parse_options_and_default_flags,
826         process_options, lang_indpendent_init, lang_dependent_init,
827         init_asm_output): New; perform the bulk of initialization.
828         (compile_file): Move most of initialization to above functions.
829         (debug_hooks): Initialize statically.
830         (set_Wunused): Relocate.
831         (toplev_main): Move most of initialization to other init functions.
832         Have a clear logic flow.
833         * tree.h (init_parse, init_decl_processing): Remove.
834 objc:
835         * objc-act.c (objc_init): Update prototype, combine with old
836         init_parse.
837         (objc_init_options): Update.
838
839
840 2001-11-15  Andreas Jaeger  <aj@suse.de>
841
842         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
843         portability.
844         * basic-block.h: Adjust prototype.
845
846 2001-11-15  Kazu Hirata  <kazu@hxi.com>
847
848         * config/rs6000/aix31.h: Fix comment formatting.
849         * config/rs6000/beos.h: Likewise.
850         * config/rs6000/darwin.h: Likewise.
851         * config/rs6000/eabi.asm: Likewise.
852         * config/rs6000/linux.h: Likewise.
853         * config/rs6000/linux64.h: Likewise.
854         * config/rs6000/lynx.h: Likewise.
855         * config/rs6000/netbsd.h: Likewise.
856         * config/rs6000/rs6000.c: Likewise.
857         * config/rs6000/rs6000.h: Likewise.
858         * config/rs6000/rs6000.md: Likewise.
859         * config/rs6000/sol2.h: Likewise.
860         * config/rs6000/tramp.asm: Likewise.
861         * config/rs6000/xcoff.h: Likewise.
862         * config/rs6000/xm-beos.h: Likewise.
863
864 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
865
866         * rtl.def (INCLUDE) : Define.
867         * gensupport.c  (init_include_reader, process_include,
868         save_string) :  New functions to implement an include facility
869         in .md files.
870         * gensupport.h : Add prototype for init_md_reader_args.
871         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
872         genextract.c genflags.c genopinit.c genoutput.c
873         genpeep.c genrecog.c: Change call to init_md_reader to
874         init_md_reader_args.
875         * md.texi: Document (include "path") and -I directives for RTL
876         generation tools.
877
878 2001-11-14  DJ Delorie  <dj@redhat.com>
879
880         * integrate.c (get_hard_reg_initial_reg): New.
881         * integrate.h (get_hard_reg_initial_reg): Prototype.
882         * local-alloc.c (block_alloc): Don't tie pseudos that
883         represent call-saved hard regs' initial values.
884
885 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
886
887         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
888         recursion.
889
890 2001-11-14  Roger Sayle <roger@eyesopen.com>
891
892         * fold-const.c (fold): Optimize strlen comparisons against zero.
893
894 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
895
896         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
897         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
898         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
899         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
900         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
901         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
902         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
903         Include various CPU headers via tm_file.  a.out based platforms now
904         properly include sparc/aout.h.  sol2.h usage now implies including
905         elfos.h, svr4.h, and sparc/sysv4.h.
906         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
907         Also define to '1'.
908         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
909         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
910         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
911         Remove.  They are a.out specific and belong in sparc/aout.h.
912         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
913         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
914         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
915         sparc/sparc.h.
916         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
917         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
918         Moved here from sparc/sparc.h.
919         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
920         defining.
921         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
922         * config/sparc/lynx.h:  Don't include lynx.h.
923         (SELECT_SECTION): Do not undef.
924         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
925         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
926         and sparc/sysv4.h.
927         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
928         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
929         sparc/aout.h now.
930         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
931         Don't undef, there is no need.
932         * config/sparc/splet.h (CPP_PREDEFINES): Define.
933         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
934         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
935         Don't include sparc/sparc.h.
936         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
937         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
938         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
939         elfos.h and svr4.h.
940         (TARGET_VERSION): Define.
941         * config/sparc/vxsim.h (TARGET_VERSION): Define.
942
943 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
944
945         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
946         (cfg_layout_finalize): Use it.
947         * bb-reorder.c (HAVE_epilogue): Remove.
948         (make_reorder_chain): Do not care special placement of
949         last basic block.
950
951         * predict.c (expected_value_to_br_prob): Delete the note
952         once transformed.
953
954         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
955         measure integration time separately.
956
957 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
958
959         * function.c (struct temp_slot): ALIGN now unsigned.
960
961 2001-11-14  Kazu Hirata  <kazu@hxi.com>
962
963         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
964         * config/dsp16xx/dsp16xx.h: Likewise.
965         * config/dsp16xx/dsp16xx.md: Likewise.
966
967 2001-11-14  Kazu Hirata  <kazu@hxi.com>
968
969         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
970         that deals with 7-bit shifts in HImode.
971
972 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
973
974         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
975         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
976         (final_scan_insn): Update call of alter_subreg.
977         (cleanup_subreg_operands): Likewise.
978         (alter_subreg): Rewrite using simplify_subreg.
979         (output_address, output_operand): Update call of alter_subreg.
980         * output.h (alter_subreg): Update prototype.
981         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
982         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
983         * Makefile.in (final.o): Add depdendancy on expr.h
984
985 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
986
987         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
988
989 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
990
991         * doc/install.texi (sparc-*-linux*): Mention requirements for
992         binutils and glibc.
993
994 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
995
996         * Makefile.in (POD2MAN): Don't include --section=1.
997         (manext): Rename to man1ext.  All users changed.
998         (man7ext): New.
999         (man7dir): New.
1000         (generated-manpages): Also depend on $(docdir)/gfdl.7,
1001         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
1002         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
1003         --section=1 in calls to $(POD2MAN).
1004         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
1005         (maintainer-clean, install, uninstall): Handle the new man pages.
1006         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
1007         (installdirs): Create man7dir.
1008         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
1009         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
1010         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
1011         the SEE ALSO man page section.
1012         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
1013         and fsf-funding(7) in the SEE ALSO man page section.
1014         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
1015         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
1016         * doc/include/fdl.texi, doc/include/funding.texi,
1017         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
1018         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
1019
1020 2001-11-13  Richard Henderson  <rth@redhat.com>
1021
1022         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
1023         as appropriate for the artificial decl.
1024
1025 2001-11-13  Richard Henderson  <rth@redhat.com>
1026
1027         * loop.c (combine_movables): Turn off combination until
1028         move_movables validation bugs are fixed.
1029
1030 2001-11-13  DJ Delorie  <dj@redhat.com>
1031
1032         * config.gcc (powerpc|rs6000): Set default cpp options based
1033         on --with-cpu settings.
1034         * config/rs6000/softfloat.h: New.
1035
1036 2001-11-13  Kazu Hirata  <kazu@hxi.com>
1037
1038         * config/h8300/h8300.c (shift_alg_si): Use special code for
1039         25-bit shifts on H8/S.
1040         (get_shift_alg): Generate special code for 25-bit shifts on
1041         H8/S.
1042
1043 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
1044
1045         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
1046         (adjust_automodify_address_1): New.
1047         * expr.h (adjust_address, adjust_address_nv): Adjust.
1048         (adjust_automodify_address, adjust_automodify_address_nv): Define.
1049         (adjust_address_1): Update prototype.
1050         (adjust_automodify_address_1): Add prototype.
1051         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
1052         (store_by_pieces_2): Likewise.
1053
1054 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1055
1056         * Makefile.in (explow.o): Now depends on ggc.h.
1057         * explow.c (ggc.h): Include.
1058         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
1059
1060         * Makefile.in (expr.o): Depends on insn-attr.h.
1061         * expr.c (insn-attr.h): New include.
1062         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
1063         of MEM.
1064         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
1065         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
1066         clean up related usage in ADDR_EXPR.
1067         (expand_expr_unaligned): Likewise.
1068
1069         * emit-rtl.c (change_address): Fix typo in alias setting.
1070
1071 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1072
1073         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
1074
1075 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1076
1077         PR bootstrap/3451
1078         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
1079         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
1080
1081 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
1082
1083         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
1084         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
1085         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
1086         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
1087         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
1088         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
1089         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
1090         sparc64-*-linux*):  Include various CPU headers via tm_file.
1091         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
1092         (SELECT_SECTION): Likewise.
1093         (SELECT_RTX_SECTION): Likewise.
1094         * config/sparc/sparc_bi.h: New file.
1095         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
1096         * config/sparc/linux-aout.h: Likewise.
1097         * config/sparc/linux.h: Don't include sparc/sysv4.h.
1098         * config/sparc/linux64.h: Likewise.
1099         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
1100         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
1101         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
1102         and dbxcoff.h
1103         (ASM_OUTPUT_IDENT): Do not #undef.
1104         (SELECT_SECTION): Likewise.
1105         (SELECT_RTX_SECTION): Likewise.
1106         * config/sparc/liteelf.h: Don't include gofast.h.
1107         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
1108         * config/sparc/lynx.h: Don't include sparc/sparc.h.
1109         * config/sparc/pbd.h: Likewise.
1110         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
1111         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
1112         * config/sparc/rtemself.h: Don't include rtems.h.
1113         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
1114         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
1115         sparc_bi.h instead.
1116         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
1117         * config/sparc/sol2.h: Include sparc/sparc.h directly.
1118         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
1119         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
1120         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
1121         * config/sparc/sp86x-elf.h: Don't include gofast.h.
1122         * config/sparc/splet.h: Don't include sparc/aout.h.
1123         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
1124         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
1125         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
1126         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
1127         * config/sparc/vxsparc64.h: Don't include gofast.h.
1128         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
1129
1130 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
1131
1132         * doc/standards.texi: Mention C99 TC1.
1133
1134 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1135
1136         * mips-protos.h (mips_output_conditional_branch): Const-ify.
1137         * mips.c (mips_output_conditional_branch): Likewise.
1138
1139 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1140
1141         * config/h8300/h8300.c (shift_alg_si): Use special code for
1142         15-bit logical shifts and 31-bit logical shifts.
1143         (get_shift_alg): Generate special code for 15-bit and 31-bit
1144         logical shifts.
1145
1146 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1147
1148         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
1149         doing 6-bit logical shifts on H8/S.
1150         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
1151         (get_shift_alg): Generate special code for 21-bit shifts on
1152         H8/S.
1153
1154 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1155
1156         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
1157         label.
1158
1159 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1160
1161         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
1162         if both size and offset known.
1163
1164 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
1165
1166         * config/ia64/freebsd.h: Fix misspelling.
1167
1168 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
1169
1170         * doc/gcc.texi: Move several chapters out to ...
1171         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
1172         doc/include/linux-and-gnu.texi, doc/interface.texi,
1173         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
1174         ... here.  New files.
1175         * doc/gcc.texi, doc/contrib.texi: Move section headings into
1176         contrib.texi.
1177         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1178
1179 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1180
1181         * config/alpha/alpha-interix.h: Fix comment formatting.
1182         * config/alpha/alpha.c: Likewise.
1183         * config/alpha/alpha.h: Likewise.
1184         * config/alpha/alpha32.h: Likewise.
1185         * config/alpha/freebsd.h: Likewise.
1186         * config/alpha/unicosmk.h: Likewise.
1187         * config/alpha/vms.h: Likewise.
1188
1189 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1190
1191         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1192
1193 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
1194
1195         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
1196         numbers.
1197
1198 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1199
1200         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
1201         from type.
1202         (replace_equiv_address): Call update_temp_slot_address.
1203
1204         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
1205
1206         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
1207
1208 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1209
1210         * config/h8300/h8300.c (shift_alg_qi): New.
1211         (shift_alg_hi): Likewise.
1212         (shift_alg_si): Likewise.
1213         (get_shift_alg): Change the type of count to unsigned int.
1214         Use the tables.
1215
1216 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
1217
1218         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
1219         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
1220         to decide whether to defer a function.
1221         (finish_function): Adjust.
1222         (c_expand_deferred_function): New function.
1223         * c-lang.c (deferred_fns): New variable.
1224         (c_init): Initialize it, and mark it as a root.
1225         (defer_fn): New function.
1226         (finish_file): Expand all deferred functions.
1227         * c-tree.h (defer_fn): Declare.
1228         (c_expand_deferred_function): Likewise.
1229         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
1230         * objc-act.c (deferred_fns): New variable.
1231         (objc_init): Initialize it, and mark it as a root.
1232         (defer_fn): New function.
1233         (finish_file): Expand all deferred functions.
1234
1235 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1236
1237         * alpha.c (unicosmk_special_name): Prototype.
1238         (unicosmk_ssib_name): Delete unused variable.
1239         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
1240         * alpha/vms.h (PREFIX): Undef before defining.
1241         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
1242         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
1243         controlling usage.  Const-ify.
1244         (alias_number): Delete unused variable.
1245         * m32r/m32r.c (m32r_sched_init): Add missing argument.
1246         (m32r_expand_block_move): Fix uninitialized warnings.
1247         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
1248         always true' warnings.
1249         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
1250         * sh/sh.c: Include "integrate.h".
1251         (output_far_jump): Fix uninitialized warning.
1252         * final.c (shorten_branches): Avoid automatic aggregate
1253         initialization.
1254         * integrate.c (subst_constants): Likewise.
1255
1256 2001-11-11  Kazu Hirata  <kazu@hxi.com>
1257
1258         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
1259         (get_shift_alg): Remove redundant code.
1260
1261 2001-11-11  Kazu Hirata  <kazu@hxi.com>
1262
1263         * config/pa/milli64.S: Fix comment formatting.
1264         * config/pa/pa-64.h: Likewise.
1265         * config/pa/pa-linux.h: Likewise.
1266         * config/pa/pa-protos.h: Likewise.
1267         * config/pa/pa.c: Likewise.
1268         * config/pa/pa.h: Likewise.
1269         * config/pa/pa32-linux.h: Likewise.
1270         * config/pa/pa32-regs.h: Likewise.
1271         * config/pa/pa64-hpux.h: Likewise.
1272         * config/pa/pa64-regs.h: Likewise.
1273         * config/pa/som.h: Likewise.
1274
1275 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
1276
1277         * doc/gcc.texi: Move several chapters out to ...
1278         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
1279         doc/service.texi, doc/standards.texi, doc/trouble.texi,
1280         doc/vms.texi: ... here.  New files.
1281         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1282
1283 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
1284
1285         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
1286         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
1287         collect2.c, combine.c, config.in, configure, configure.in,
1288         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
1289         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
1290         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
1291         spelling errors.
1292
1293 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1294
1295         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
1296         Adjust operand number in CONST_DOUBLE.
1297
1298         * expmed.c (extract_bit_field): No longer pass in alignment.
1299         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
1300         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
1301         Likewise.
1302         * expr.c (store_constructor, store_constructor_field): Likewise.
1303         (store_field, emit_group_load, emit_group_store): Likewise.
1304         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
1305         (store_bit_field, extract_bit_field): Likewise.
1306         * calls.c, expr.c, function.c: Change calls to above functions.
1307         * ifcvt.c, stmt.c: Likewise.
1308
1309         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
1310         constant and one is on frame.
1311         If know memref offset, adjust size from decl.
1312
1313 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1314
1315         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
1316         format specifier warning.
1317         * convex.h (ASM_OUTPUT_BYTE): Likewise.
1318         * elfos.h (ALIGN_ASM_OP): Undef before defining.
1319         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
1320         warning.
1321         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1322         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1323         * i386-interix.h (gen_stdcall_suffix): Prototype.
1324         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1325         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1326         ASM_OUTPUT_LONG_DOUBLE): Likewise.
1327         * i386/interix.c (gen_stdcall_suffix): Const-ify.
1328         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1329         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
1330         specifier warnings.
1331         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1332         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1333         ASM_OUTPUT_LONG_DOUBLE): Likewise.
1334         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1335         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1336         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1337         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1338         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
1339         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
1340         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1341         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1342         Likewise.
1343         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1344         Likewise.
1345         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
1346         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1347         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
1348         Likewise.
1349         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
1350         Likewise.
1351         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1352         Likewise.
1353         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
1354         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1355         * m68k/news.h (PRINT_OPERAND): Likewise.
1356         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
1357         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1358         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1359         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
1360         definition.
1361         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1362         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
1363         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
1364         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1365         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
1366         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
1367         PRINT_OPERAND): Likewise.
1368         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1369         Likewise.
1370         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1371         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1372         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
1373         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1374         * mips.c (mips_output_external_libcall): Mark parameter with
1375         ATTRIBUTE_UNUSED.
1376         (mips_asm_file_start): Move variable into the scope where it's
1377         used.
1378         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
1379         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1380         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
1381         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1382         * ns32k.c (print_operand): Likewise.
1383         * pa.c (print_operand, output_div_insn): Likewise.
1384         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
1385         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
1386         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
1387         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1388         specifier warnings.
1389         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1390         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1391         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
1392         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1393         specifier warnings.
1394         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1395
1396         * sdbout.c (sdbout_end_epilogue): Mark parameter with
1397         ATTRIBUTE_UNUSED.
1398         * varasm.c (assemble_global): Likewise.
1399
1400 2001-11-11  H.J. Lu <hjl@gnu.org>
1401
1402         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
1403
1404 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
1405
1406         * final.c (*_MAX_SKIP): Use *_max_skip variables.
1407         * flags.h (align_loops_max_skip, align_jumps_max_skip,
1408         align_labels_max_skip): New global variables.
1409         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
1410         align_labels_max_skip): New global variables.
1411         (toplev_main): Set new variables.
1412         * i386.c (override_options): Set max_skip values.
1413
1414 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
1415
1416         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
1417         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
1418         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
1419         don't print an @fptr for labels either.
1420         (xstormy16_output_addr_vec): Don't print @fptr here.
1421         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
1422
1423 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
1424
1425         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
1426         an ANSI/ISO definitino.
1427         (ssa_const_prop): Likewise.
1428
1429 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
1430
1431         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
1432         altivec registers.
1433
1434 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1435
1436         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
1437         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
1438         * cppmain.c (general_init): Call hex_init.
1439         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
1440
1441         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
1442
1443         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
1444         of dgux.c:output_file_start().
1445
1446         * i386/dgux.c: Delete file.
1447
1448 2001-11-09  Richard Henderson  <rth@redhat.com>
1449
1450         * config/alpha/alpha.c (decl_in_text_section): New.
1451         (current_file_function_operand): Use it.
1452         (alpha_encode_section_info, alpha_end_function): Likewise.
1453
1454 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
1455
1456         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
1457         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
1458         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
1459         so OS specific files and use CPP_PREDEFINES for their needs.
1460         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
1461         target headers to tm_file.
1462         * config/ia64/aix.h (TARGET_VERSION): Likewise.
1463         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
1464         * config/ia64/linux.h (TARGET_VERSION): Likewise.
1465         (FUNCTION_PROFILER): Remove.
1466         * config/ia64/ia64.h (FUNCTION_PROFILER): Update defintion using the
1467         version in config/ia64/linux.h.
1468         * config/ia64/freebsd.h: New file.
1469         * config/freebsd.h: Tidy up.
1470         (_USING_CONFIG_FREEBSD): Define.
1471         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
1472         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
1473         (FBSD_STARTFILE_SPEC): Likewise.
1474         (FBSD_ENDFILE_SPEC): Likewise.
1475         (FBSD_LIB_SPEC): Likewise.
1476         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
1477         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
1478         set an ELF-improper one.
1479
1480 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1481
1482         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
1483         constant can be loaded in a single instruction to a register.  When
1484         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
1485         depdi for insertion of most significant 32-bits on 64-bit hosts.
1486         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
1487         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
1488         * pa.md: New addmove pattern for adding constant_int to HImode
1489         register and moving result to HImode register.  Remove HImode HIGH
1490         and LO_SUM patterns.
1491
1492 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1493
1494         * Makefile.in: Update.
1495         * c-decl.c (print_lang_decl, print_lang_type): Remove.
1496         (print_lang_identifier): Rename c_print_identifier.
1497         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
1498         (print_lang_statistics, lang_print_xnode): Remove.
1499         * c-parse.in (set_yydebug): Rename c_set_yydebug.
1500         * c-tree.h (c_set_yydebug, c_print_identifier): New.
1501         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
1502         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
1503         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
1504         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
1505         (LANG_HOOKS_INITIALIZER): Update.
1506         * langhooks.h (struct lang_hooks): New members.
1507         (lang_print_tree_hook): New.
1508         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
1509         * print-tree.c: Include langhooks.h.
1510         (print_node): Update.
1511         * toplev.c (decode_d_option): Update.
1512         * tree.c: Include langhooks.h.
1513         (dump_tree_statistics): Update.
1514         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
1515         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
1516 objc:
1517         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
1518         LANG_HOOKS_SET_YYDEBUG): Override.
1519         (lang_print_xnode, print_lang_statistics): Remove.
1520
1521 2001-11-09  Richard Henderson  <rth@redhat.com>
1522
1523         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
1524         on the symbol string.
1525
1526 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1527
1528         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
1529         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
1530         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
1531
1532         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
1533
1534         * tlink.c (recompile_files): Copy strings passed to `putenv'.
1535
1536 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
1537
1538         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
1539         (TYPE_READONLY): Likewise.
1540
1541         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
1542
1543         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
1544         don't pass --gdwarf2 to the assembler if the compiler will also
1545         provide debug info.
1546
1547         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
1548         Don't change INDEX.
1549
1550 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1551
1552         * alias.c (nonoverlapping_memrefs_p): New function.
1553         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
1554
1555         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
1556
1557 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
1558
1559         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
1560         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
1561         generating altivec code.
1562         (FIXED_REGISTERS): VRSAVE is fixed.
1563         (CALL_USED_REGISTERS): VRSAVE is call used.
1564
1565 2001-11-09  Jason Eckhardt  <jle@rice.edu>
1566
1567         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
1568         code the branch target as ".+16/.+12", but rather use labels.
1569
1570 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
1571
1572         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
1573         to work around limitations of certain versions of GAS.
1574
1575         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
1576         (muldi3): Update due to SUBREG_BYTE changes.
1577         (casesi): Similarly.
1578
1579 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
1580
1581         * doc/invoke.texi: Remove comment referring to -xf77-version.
1582
1583 2001-11-09  Kazu Hirata  <kazu@hxi.com>
1584
1585         * config/convex/convex.c: Fix comment formatting.
1586         * config/convex/convex.h: Likewise.
1587
1588 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
1589
1590         * Makefile.in (.po.pox): Look both in srcdir and builddir
1591         for $(PACKAGE).pot.
1592         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
1593         to the source directory.
1594
1595 2001-11-09 Ben Elliston  <bje@redhat.com>
1596            Michael Meissner  <meissner@redhat.com>
1597            Andrew MacLeod  <amacleod@redhat.com>
1598            Richard Henderson  <rth@redhat.com>
1599            Nick Clifton  <nickc@redhat.com>
1600            Catherine Moore  <clm@redhat.com>
1601
1602         * m32r.c: Add support for m32rx processor.
1603         * m32r.h: Ditto.
1604         * m32r.md: Ditto.
1605         * t-m32r: Ditto.
1606         * m32r-protos.h: Add prototypes for m32rx functions.
1607         * doc/invoke.texi: Document -m32rx option.
1608
1609 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
1610
1611         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
1612         or after reload.
1613
1614 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1615
1616         * doc/install.texi2html: Use $MAKEINFO --no-split.
1617
1618 2001-11-09  Andreas Schwab  <schwab@suse.de>
1619
1620         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
1621         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
1622         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
1623         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
1624         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
1625
1626 2001-11-09  H.J. Lu <hjl@gnu.org>
1627
1628         * config/mips/mips.c (mips_output_function_prologues): Cast
1629         `tsize' to long for output.
1630
1631 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1632
1633         * c-lang.c (LANG_HOOKS_NAME): New.
1634         (lang_hooks): Constify.
1635         (c_init_options): Update.
1636         (lang_identify): Remove.
1637         * c-parse.in (language_string): Remove.
1638         * dbxout.c: Include langhooks.h.
1639         (dbxout_symbol_location): Update.
1640         * dwarf2out.c: Include langhooks.h.
1641         (gen_compile_unit_die): Update.
1642         * dwarfout.c: Include langhooks.h.
1643         (prototyped_attribute, output_compile_unit_die): Update.
1644         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
1645         (LANG_HOOKS_INITIALIZER): Update.
1646         * langhooks.h (struct lang_hooks): New members.  Constify.
1647         * stringpool.c: Don't include toplev.h.
1648         (set_identifier_size): Remove.
1649         * toplev.c (toplev_main): Initialize identifier size.
1650         (print_version): Update.
1651         * tree.h (language_string, init_lex, lang_identify,
1652         set_identifier_size): Remove.
1653         * Makefile.in: Update dependencies.
1654         * config/darwin.c: Include langhooks.h.
1655         (func_name_maybe_scoped): Update.
1656         * config/darwin.h (ASM_END_FILE): Update.
1657         * config/nextstep.h (ASM_END_FILE): Update.
1658         * config/nextstep21.h (ASM_END_FILE): Update.
1659         * config/i386/sun386.h (ASM_END_FILE): Update.
1660         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
1661         (rs6000_output_function_epilogue): Update.
1662 objc:
1663         * objc-act.c (LANG_HOOKS_NAME): Override.
1664         (struct lang_hooks): Constify.
1665         (objc_init_options): Update.
1666         (lang_identify): Remove.
1667
1668 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
1669
1670         * fold-const.c (lshift_double): Honor PREC.
1671         (rshift_double): Likewise.
1672
1673 2001-11-08  Kazu Hirata  <kazu@hxi.com>
1674
1675         * config/1750a/1750a.c: Fix comment formatting.
1676         * config/1750a/1750a.h: Likewise.
1677
1678 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
1679
1680         * configure.in (--enable-languages): Be more permissive about
1681         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
1682         * configure: Regenerated.
1683
1684 2001-11-08  Richard Henderson  <rth@redhat.com>
1685
1686         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
1687
1688 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
1689
1690         * config.gcc: Rename stormy16 to xstormy16.
1691         * config/stormy16/stormy-abi: Likewise.
1692         * config/stormy16/stormy16-protos.h: Likewise.
1693         * config/stormy16/stormy16.c: Likewise.
1694         * config/stormy16/stormy16.h: Likewise.
1695         * config/stormy16/stormy16.md: Likewise.
1696
1697 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
1698
1699         * tree.h (TYPE_VOLATILE): Add enable-checking code.
1700         (TYPE_READONLY): Likewise.
1701
1702 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1703
1704         * reload1.c (reload): Don't delete equiv insn if can throw.
1705
1706         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
1707         (clear_storage): Likewise, for OBJECT.
1708
1709 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
1710
1711         * pa.c (emit_move_sequence): Fix SUBREG expression to
1712         use proper byte offset when extending a constant from
1713         SImode to DImode.
1714
1715 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
1716
1717         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
1718         which cannot throw.
1719
1720 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1721
1722         * explow.c (convert_memory_address, case SUBREG): Only return
1723         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
1724
1725 2001-11-08  Richard Henderson  <rth@redhat.com>
1726
1727         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
1728         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
1729         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
1730
1731 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
1732
1733         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
1734
1735 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
1736
1737         * dwarf2out.c (debug_str_hash): New.
1738         (struct indirect_string_node): New.
1739         (struct dw_val_struct): Change type of val_str to it.
1740         (DEBUG_STR_SECTION_FLAGS): Define.
1741         (add_AT_string): Push string into hashtable, increment reference
1742         counter.
1743         (AT_string): Return string from ht_identifier.
1744         (AT_string_form): New.
1745         (free_AT): For dw_val_class_str, just decrement reference counter.
1746         (size_of_string): Remove.
1747         (size_of_die): Use AT_string_form to decide what size the string
1748         occupies in DIE.
1749         (size_of_pubnames): Use strlen instead of size_of_string.
1750         (value_format): Use AT_string_form for dw_val_class_str.
1751         (output_die): Output DW_FORM_strp strings using
1752         dw2_asm_output_offset.
1753         (indirect_string_alloc, output_indirect_string): New.
1754         (dwarf2out_finish): Emit .debug_str strings if there are any.
1755
1756 2001-11-08  Andreas Franck  <afranck@gmx.de>
1757
1758         * configure.in: Add AC_ARG_PROGRAM to support program name
1759         transformation with --program-prefix, --program-suffix and
1760         --program-transform-name.
1761         * configure: Regenerated.
1762         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
1763         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
1764         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
1765         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
1766         program_transform_name the way suggested by autoconf.
1767         (GCC_TARGET_INSTALL_NAME): Define.
1768         (install-driver): Use the transformed target alias name.
1769
1770 2001-11-08  Richard Henderson  <rth@redhat.com>
1771
1772         * config/mips/mips.c (save_restore_insns): Remove GP from the
1773         restore registers mask early instead of special casing it inside
1774         the loop.
1775
1776 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1777
1778         * cp/decl.c (shadow_warning): New function.
1779         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
1780         and an error when a block scope decl shadows a parameter.
1781
1782 2001-11-08  Richard Henderson  <rth@redhat.com>
1783
1784         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
1785         case as well.
1786
1787 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1788
1789         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
1790         to implement floating negation on processors prior to PA 2.0.
1791
1792 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
1793
1794         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
1795         (USE_LINKONCE_INDIRECT): Define.
1796         (dw2_output_indirect_constant_1): Try to output indirect constants
1797         into linkonce sections if possible.
1798         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
1799         (dw2_output_indirect_constants): Likewise.
1800
1801 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
1802
1803         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
1804
1805 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1806
1807         * c-decl.c (pushdecl): Remove file and line.
1808         * c-typeck.c (pop_init_level): Remove size.
1809
1810 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
1811
1812         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
1813         for rs6000.
1814
1815         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
1816         (TARGET_ALTIVEC): New.
1817         (TARGET_SWITCHES): Add altivec.
1818         (FIRST_PSEUDO_REGISTER): Change to 109.
1819         (CALL_USED_REGISTERS): Same.
1820         (FIRST_ALTIVEC_REGNO): New.
1821         (LAST_ALTIVEC_REGNO): New.
1822         (ALTIVEC_REGNO_P): New.
1823         (UNITS_PER_ALTIVEC_WORD): New.
1824         (ALTIVEC_VECTOR_MODE): New.
1825         (FIXED_REGISTERS): Add altivec registers.
1826         (REG_ALLOC_ORDER): Same.
1827         (HARD_REGNO_NREGS): Adjust for altivec registers.
1828         (HARD_REGNO_MODE_OK): Same.
1829         (MODES_TIEABLE_P): Same.
1830         (REGISTER_MOVE_COST): Same.
1831         (REGNO_REG_CLASS): Same.
1832         (reg_class): Add ALTIVEC_REGS.
1833         (REG_CLASS_NAMES): Same.
1834         (REG_CLASS_CONTENTS): Same.
1835         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
1836         (ALTIVEC_ARG_RETURN): New.
1837         (FUNCTION_VALUE): Handle VECTOR_TYPE.
1838         (LIBCALL_VALUE): Handle altivec vector modes.
1839         (VECTOR_MODE_SUPPORTED_P): New.
1840         (ALTIVEC_ARG_MIN_REG): New.
1841         (ALTIVEC_ARG_MAX_REG): New.
1842         (ALTIVEC_ARG_NUM_REG): New.
1843         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
1844         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
1845         (REGISTER_NAMES): Add altivec regs.
1846         (DEBUG_REGISTER_NAMES): Same.
1847         (ADDITIONAL_REGISTER_NAMES): Same.
1848         (rs6000_builtins): New.
1849         (MD_EXPAND_BUILTIN): New.
1850         (MD_INIT_BUILTINS): New.
1851         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
1852         for AltiVec instructions.
1853         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
1854         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
1855         registers.
1856         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
1857         (TARGET_SWITCHES): Add no-altivec.
1858         (DATA_ALIGNMENT): Align vectors to 128 bits.
1859         (TARGET_OPTIONS): Add abi= option.
1860         Add rs6000_abi_string extern.
1861         (LOCAL_ALIGNMENT): New.
1862         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
1863         (MASK_ALTIVEC_ABI): New.
1864         (TARGET_ALTIVEC_ABI): New.
1865         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
1866         call-saved.
1867         (STACK_BOUNDARY): Adjust for altivec.
1868         (BIGGEST_ALIGNMENT): Same.
1869         (rs6000_args): Add vregno.
1870         (USE_ALTIVEC_FOR_ARG_P): New.
1871         (FIXED_REGISTERS): Add vrsave register.
1872         (CALL_USED_REGISTERS): Same.
1873         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
1874         (VRSAVE_REGNO): New.
1875         (reg_class): Add VRSAVE_REGS.
1876         (REG_CLASS_NAMES): Same.
1877         (REG_CLASS_CONTENTS): Same.
1878         (REGNO_REG_CLASS): Same.
1879
1880         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
1881         (ABI_STACK_BOUNDARY): Same.
1882         (BIGGEST_ALIGNMENT): Same.
1883         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
1884         (ROUND_TYPE_ALIGN): Same.
1885
1886         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
1887         to 64.
1888
1889         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
1890         to 64.
1891
1892         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
1893         to 64.
1894
1895         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
1896         (altivec_expand_builtin): New.
1897         (altivec_init_builtins): New.
1898         (TARGET_EXPAND_BUILTIN): New.
1899         (TARGET_INIT_BUILTINS): New.
1900         (rs6000_init_builtins): New.
1901         (struct builtin_description): New.
1902         (bdesc_2arg): New.
1903         (rs6000_reg_names): Add altivec registers.
1904         (alt_reg_names): Same.
1905         (secondary_reload_class): Altivec regs can hold altivec regs and
1906         memory.
1907         (rs6000_emit_move): Force constants into memory for AltiVec moves.
1908         (print_operand): Add 'y' case for printing altivec memory
1909         operands.
1910         (rs6000_legitimize_address): Legitimize vector addresses into
1911         [REG+REG] or [REG].
1912         (altivec_expand_binop_builtin): New.
1913         New string rs6000_current_abi.
1914         (rs6000_override_options): Call rs6000_parse_abi_options.
1915         (rs6000_parse_abi_options): New.
1916         (function_arg_boundary): Vector arguments must be 16
1917         byte aligned.
1918         (function_arg_advance): Handle vector arguments.
1919         (function_arg_partial_nregs): Same.
1920         (init_cumulative_args): Same.
1921         (function_arg): Same.
1922
1923         * config/rs6000/rs6000.md (altivec_lvx): New.
1924         (type): Add altivec attribute.
1925         (movv4si): New.
1926         (*movv4si_internal): New.
1927         (movv16qi): New.
1928         (*movv16qi_internal): New.
1929         (movv8hi): New.
1930         (*movv8hi_internal1): New.
1931         (movv4sf): New.
1932         (*movv4sf_internal1): New.
1933         (altivec_stvx): New.
1934         (vaddubm): New.
1935         (vadduhm): New.
1936         (vadduwm): New.
1937         (vaddfp): New.
1938         (vaddcuw): New.
1939         (vaddubs): New.
1940         (vaddsbs): New.
1941         (vadduhs): New.
1942         (vaddshs): New.
1943         (vadduws): New.
1944         (vaddsws): New.
1945         (vand): New.
1946         (vandc): New.
1947         (vavgub): New.
1948         (vavgsb): New.
1949         (vavguh): New.
1950         (vavgsh): New.
1951         (vavguw): New.
1952         (vavgsw): New.
1953         (vcmpbfp): New.
1954         (vcmpequb): New.
1955         (vcmpequh): New.
1956         (vcmpequw): New.
1957         (vcmpeqfp): New.
1958         (vcmpgefp): New.
1959         (vcmpgtub): New.
1960         (vcmpgtsb): New.
1961         (vcmpgtuh): New.
1962         (vcmpgtsh): New.
1963         (vcmpgtuw): New.
1964         (vcmpgtsw): New.
1965         (vcmpgtfp): New.
1966         (vcmpgefp): New.
1967         (vcmpgtub): New.
1968         (vcmpgtsb): New.
1969         (vcmpgtuh): New.
1970         (vcmpgtsh): New.
1971         (vcmpgtuw): New.
1972         (vcmpgtsw): New.
1973         (vcmpgtfp): New.
1974         (vmaxub): New.
1975         (vmaxsb): New.
1976         (vmaxuh): New.
1977         (vmaxsh): New.
1978         (vmaxuw): New.
1979         (vmaxsw): New.
1980         (vmaxfp): New.
1981         (vmrghb): New.
1982         (vmrghh): New.
1983         (vmrghw): New.
1984         (vmrglb): New.
1985         (vmrglh): New.
1986         (vmrglw): New.
1987         (vminub): New.
1988         (vminsb): New.
1989         (vminuh): New.
1990         (vminsh): New.
1991         (vminuw): New.
1992         (vminsw): New.
1993         (vminfp): New.
1994         (vmuleub): New.
1995         (vmulesb): New.
1996         (vmuleuh): New.
1997         (vmulesh): New.
1998         (vmuloub): New.
1999         (vmulosb): New.
2000         (vmulouh): New.
2001         (vmulosh): New.
2002         (vnor): New.
2003         (vor): New.
2004         (vpkuhum): New.
2005         (vpkuwum): New.
2006         (vpkpx): New.
2007         (vpkuhss): New.
2008         (vpkshss): New.
2009         (vpkuwss): New.
2010         (vpkswss): New.
2011         (vpkuhus): New.
2012         (vpkshus): New.
2013         (vpkuwus): New.
2014         (vpkswus): New.
2015         (vrlb): New.
2016         (vrlh): New.
2017         (vrlw): New.
2018         (vslb): New.
2019         (vslh): New.
2020         (vslw): New.
2021         (vsl): New.
2022         (vslo): New.
2023         (vsrb): New.
2024         (vrsh): New.
2025         (vrsw): New.
2026         (vsrab): New.
2027         (vsrah): New.
2028         (vsraw): New.
2029         (vsr): New.
2030         (vsro): New.
2031         (vsububm): New.
2032         (vsubuhm): New.
2033         (vsubuwm): New.
2034         (vsubfp): New.
2035         (vsubcuw): New.
2036         (vsububs): New.
2037         (vsubsbs): New.
2038         (vsubuhs): New.
2039         (vsubshs): New.
2040         (vsubuws): New.
2041         (vsubsws): New.
2042         (vsum4ubs): New.
2043         (vsum4sbs): New.
2044         (vsum4shs): New.
2045         (vsum2sws): New.
2046         (vsumsws): New.
2047         (vxor): New.
2048
2049 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
2050
2051         * Makefile.in (df.o): Add fibheap.h to dependencies.
2052
2053         * df.h: Add prototypes for transfer functions, iterative_dataflow
2054         functions.
2055         (enum df_flow_dir): New enum.
2056         (enum df_confluence_op): New enum.
2057         (struct df): Add inverse_rts_map.
2058
2059         * df.c: Add sbitmap.h to the list of includes.
2060         (df_rd_global_compute): Removed.
2061         (df_ru_global_compute): Removed.
2062         (df_lr_global_compute): Removed.
2063         (df_rd_transfer_function): New function.
2064         (df_ru_transfer_function): New function.
2065         (df_lr_transfer_function): New function.
2066         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
2067         Use iterative_dataflow_bitmap instead of df_*_global_compute.
2068         (iterative_dataflow_sbitmap): New function.
2069         (iterative_dataflow_bitmap): New function.
2070
2071 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2072
2073         * doc/gcc.texi: Move terminology and spelling conventions to
2074         htdocs/codingconventions.html.
2075
2076 2001-11-07  Graham Stott  <grahams@redhat.com>
2077
2078         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
2079
2080 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
2081
2082         * expmed.c (expand_mult): Force operand to register before computing
2083         cost.
2084         * i386.c (x86_decompose_lea): New global vairable.
2085         * i386.h (x86_decompose_lea): Declare.
2086         (TARGET_DECOMPOSE_LEA): New macro.
2087         (RTX_COST): Handle leas properly.
2088
2089 2001-11-06  Richard Henderson  <rth@redhat.com>
2090
2091         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
2092         defined for a CONSTRUCTOR; don't check it.
2093
2094 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
2095
2096         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
2097         test for absolute pathnames.
2098
2099 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
2100
2101         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
2102         instructions up to the target pc inclusive.
2103
2104 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
2105
2106         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
2107
2108 2001-11-06  Eric Christopher  <echristo@redhat.com>
2109
2110         * config/mips/mips.md(movdf_internal2): Add constraints for float
2111         to general register move.
2112         * config/mips/elf64.h: Add default ABI.
2113
2114 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2115
2116         * alias.c:: Include langhooks.h.
2117         * emit-rtl.c: Similarly.
2118         * toplev.c: Similarly.
2119         * tree-inline.c: Similarly.
2120         * langhooks-def.h: New, the old langhooks.h.  Give the default
2121         hooks a common prefix.
2122         * langhooks.h: Contents extracted from toplev.h.
2123         * toplev.h: Move langhook stuff to langhooks.h.
2124         * langhooks.c: Give default hooks a common prefix.
2125
2126         * c-lang.c: Include langhooks-def.h.
2127         * objc/objc-act.c: Similarly.
2128         * Makefile.in: Update.
2129         * objc/Make-lang.in: Update.
2130
2131 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
2132
2133         * doc/install.texi: Document that configure options not listed in
2134         this file are unsupported.  Document --with-system-zlib.
2135
2136 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2137
2138         * rtl.h (mem_for_const_double): New declaration.
2139         * varasm.c (mem_for_const_double): New function.
2140         * config/convex/convex.md (movdf): Use it.
2141         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
2142         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
2143         * config/m68k/m68kv4.h: Likewise.
2144
2145         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
2146         of new GP reg classes.
2147
2148         * expr.c (store_field): When making temp object for unaligned
2149         component, set it to alias set 0.
2150
2151 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
2152
2153         * c-common.c (c_expand_expr_stmt): Apply default conversions to
2154         non-lvalue arrays if C99.
2155         * c-typeck.c (default_conversion): Split out code handling
2156         array-to-pointer and function-to-pointer conversions into a
2157         separate default_function_array_conversion function.
2158         (default_function_array_conversion): New function.  Keep track of
2159         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
2160         arrays unchanged outside C99 mode instead of giving an error for
2161         them.
2162         (build_component_ref): Use pedantic_non_lvalue when handling
2163         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
2164         (convert_arguments): Use default_function_array_conversion.
2165         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
2166         non-lvalues are OK.
2167         (unary_complex_lvalue): Likewise.
2168         (internal_build_compound_expr): Use
2169         default_function_array_conversion.  Apply default conversions to
2170         function in compound expression.
2171         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
2172         Use default_function_array_conversion.
2173         * doc/extend.texi: Update documentation of subscripting non-lvalue
2174         arrays.
2175         Fixes PR c/461.
2176
2177 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
2178
2179         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
2180         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
2181         corresponding to the complete set of .po and .gmo files in
2182         the source directory's po subdir, modified by LINGUAS.  Don't
2183         look at ALL_LINGUAS.
2184         * configure.in: Don't set ALL_LINGUAS.
2185         * configure: Regenerate.
2186
2187         * Makefile.in (.po.gmo): Don't move into source directory.
2188         (.po.pox): Clarify comments.
2189         (install-po): Look for .gmo files in both srcdir and objdir;
2190         don't fail if a file is totally missing.
2191         (distclean): rmdir ada subdirectory too.
2192
2193 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
2194
2195         * config/rs6000/rs6000.c (rs6000_select_section): Handle
2196         CONSTRUCTORs _correctly_.
2197
2198 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2199
2200         * c-decl.c (delete_block): Remove.
2201         * c-tree.h (delete_block): Remove.
2202
2203 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2204
2205         * cppexp.c (lex, parse_defined): Update warning about defined.
2206
2207 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
2208
2209         * config/rs6000/rs6000.c (rs6000_select_section): Handle
2210         CONSTRUCTORs too.
2211
2212 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
2213
2214         * config/arm/arm.c (arm_return_in_memory): Cope with
2215         int_size_in_bytes returning -1.
2216
2217         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
2218         DECL being NULL.
2219
2220 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
2221
2222         * Makefile.in (bb-reoder.o): Add dependency on cfglayout.h;
2223         remove unneeded dependencies;
2224         (cfglayout.o): New.
2225         * cfglayout.c, cfglayout.h: New files; break out from ...
2226         * bb-reorder.c: ... here; Remove unneeded includes;
2227
2228 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
2229
2230         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
2231
2232 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
2233
2234         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
2235         mode as well.  Do not explicitly create intermediate regs.
2236
2237 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2238
2239         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
2240         (common_section): Delete unused variable.
2241         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
2242         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
2243         * arm-protos.h (arm_poke_function_name, aof_add_import,
2244         aof_delete_import): Const-ify.
2245         * arm.c (legitimize_pic_address): Wrap variables in the macro
2246         controlling their usage.
2247         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
2248         (arm_poke_function_name, pic_chain, import, aof_add_import,
2249         aof_delete_import): Const-ify.
2250         * i386.c (ix86_osf_output_function_prologue): Const-ify.
2251         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2252         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
2253         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
2254         * i860/sysv3.h: Add missing comment closure.
2255         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
2256         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
2257         to symbolic_operand.
2258
2259         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
2260         (i960-*-*): Set tmake_file.
2261         (sparc86x-*-elf*): Fix typo in header name.
2262
2263         * sched-rgn.c (schedule_insns): Delete unused variable.
2264
2265 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2266
2267         PR c/2820
2268         * c-typeck.c (lookup_field): Rework to return a chain down to
2269         the looked-up field.
2270         (build_component_ref): Use the new lookup_field to handle
2271         nested anonymous entities correctly.
2272
2273 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2274
2275         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
2276         Change parameters to gen_rtx_CONST_DOUBLE.
2277         (GEN_INT64, sparc_emit_set_const64): Likewise.
2278         * config/sparc/sparc.md (movdf split): Likewise.
2279
2280 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
2281
2282         * unroll.c (calculate_giv_inc): Use find_last_value rather
2283         than just hoping the last instruction is the right SET.
2284         [Fixes 990604-1.c on stormy16.]
2285
2286         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
2287         library at all if -T is used.
2288
2289         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
2290         some uses of uninitialized variables in error cases.
2291
2292         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
2293         look at 'temp' if we won't be using it.
2294
2295         * config/stormy16/stormy16.h (CONST_COSTS): Define.
2296         (RTX_COSTS): Define.
2297         (ADDRESS_COST): Define.
2298         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
2299
2300         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
2301
2302         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
2303         stormy16_asm_output_mi_thunk.
2304         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
2305         function.
2306         * config/stormy16/stormy16-protos.h
2307         (stormy16_asm_output_mi_thunk): New prototype.
2308
2309 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2310
2311         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
2312         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
2313         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
2314         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
2315         sched-int.h, toplev.c, config/alpha/alpha.c,
2316         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
2317         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
2318         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
2319         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
2320         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
2321         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
2322         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
2323
2324 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2325
2326         * Makefile.in (dbxout.o): Depend on function.h.
2327         * collect2.c (is_in_list): Hide unused function.
2328         * dbxout.c: Include function.h.
2329         (source_label_number, dbxout_source_line, dbxout_source_file,
2330         dbxout_function_end, dbxout_begin_function): Wrap/move inside
2331         macros controlling usage.
2332         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
2333         * output.h (exports_section): Prototype.
2334
2335         * convex.c (convex_output_function_prologue): Fix format specifier
2336         warning.
2337         (asm_declare_function_name): Fix signed/unsigned warning.
2338         (print_operand): Fix format specifier warning.
2339         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
2340         * dsp16xx-protos.h (uns_comparison_operator,
2341         num_1600_core_shifts): Prototype.
2342         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
2343         (frame_size, frame_pointer_offset): Delete.
2344         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
2345         Make static.  Fix format specifier warnings.
2346         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
2347         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
2348         * dsp16xx.md: Add default case in switches.
2349         * fr30.h (IN_RANGE): Delete.
2350         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
2351         * mcore-protos.h (mcore_output_cmov): Const-ify.
2352         * mcore.c (mcore_output_cmov): Likewise.
2353         * mcore.h (switch_to_section): Make static and prototype.
2354         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
2355         unsigned>=0 warnings.
2356         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
2357         * rs6000-protos.h (read_only_data_section,
2358         read_only_private_data_section): Prototype.
2359         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2360         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
2361         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
2362
2363 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2364
2365         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
2366         ATTRIBUTE_UNUSED.
2367         * final.c (final_scan_insn): Add brackets around body of if-stmt.
2368         * gcc.c (convert_filename): Add static prototype.  Const-ify.
2369         Wrap variable in macros controlling its use.
2370         * output.h (sdata_section): Add prototype.
2371
2372         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2373         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
2374         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
2375         (ASM_FILE_START): Const-ify.
2376         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
2377         specifier warning.
2378         * c4x.md: Don't use the 'U' integer suffix.
2379         * clipper.md (clipper_movstr): Delete declaration.
2380         * d30v-protos.h (d30v_move_2words): Const-ify.
2381         (debug_stack_info): Add prototype.
2382         * d30v.c: Include "integrate.h".
2383         (d30v_function_arg_boundary, d30v_function_arg,
2384         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
2385         signed/unsigned warnings.
2386         (d30v_print_operand_memory_reference, d30v_move_2words):
2387         Const-ify.
2388         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
2389         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
2390         * fr30.md: Const-ify.
2391         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2392         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
2393         (mvs_get_label_page): Hide unused static function.
2394         * i860.c (current_function_original_name): Const-ify.
2395         * i860/sysv3.h (current_function_original_name): Likewise.
2396         * i860/sysv4.h (current_function_original_name): Likewise.
2397         * i960.md: Add default case in switches.  Remove unused variable.
2398         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
2399         * m32r.md: Const-ify.
2400         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
2401         * m68hc11.c: Include "reload.h".
2402         (static_chain_reg, print_options, m68hc11_asm_file_start):
2403         Const-ify.
2404         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
2405         around & in comparison.
2406         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
2407         * mn10200.c (shift_mode): Remove trailing comma.
2408         * mn10300-protos.h (output_tst): Const-ify.
2409         * mn10300.c (output_tst): Likewise.
2410         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
2411         warnings.
2412         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
2413         * pa.c (output_ascii): Likewise.
2414         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2415         * pdp11.md (expand_unop): Delete declarations.
2416         * pj-protos.h (pj_output_addsi3): Const-ify.
2417         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
2418         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
2419         unique_src_operand): Add prototypes.
2420         (pj_output_store_into_lval): Make definition static.
2421         (pj_function_incoming_arg): Don't use unary plus.
2422         (pj_output_addsi3): Const-ify.
2423         * romp.md (get_symref): Delete declarations.
2424         * v850-c.c (mark_current_function_as_interrupt): Don't return
2425         value from void function.
2426         * v850.c: Include "integrate.h".
2427         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
2428         * vax-protos.h (const_section): Add prototype.
2429
2430 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
2431
2432         * machmode.def: Add documentation for the seventh argument in
2433         vector modes.
2434
2435 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
2436
2437         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
2438         consistently.
2439         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
2440         <-melf>: Don't have markup for ELF acronym.
2441
2442 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
2443
2444         * config.gcc (mmix-*-*): New target.
2445         * doc/invoke.texi: Document MMIX options.
2446         * doc/contrib.texi: Add note about MMIX port to my entry.
2447         * config/mmix/t-mmix: New file.
2448         * config/mmix/mmix.h: New file.
2449         * config/mmix/mmix-protos.h: New file.
2450         * config/mmix/mmix.c: New file.
2451         * config/mmix/mmix.md: New file.
2452         * config/mmix/crti.asm: New file.
2453         * config/mmix/crtn.asm: New file.
2454
2455 2001-11-03  Kazu Hirata  <kazu@hxi.com>
2456
2457         * config/sparc/linux-aout.h: Fix comment formatting.
2458         * config/sparc/linux.h: Likewise.
2459         * config/sparc/linux64.h: Likewise.
2460         * config/sparc/lynx.h: Likewise.
2461         * config/sparc/pbd.h: Likewise.
2462         * config/sparc/sol2-sld-64.h: Likewise.
2463         * config/sparc/sol2.h: Likewise.
2464         * config/sparc/sparc.c: Likewise.
2465         * config/sparc/sparc.h: Likewise.
2466         * config/sparc/sparc.md: Likewise.
2467         * config/sparc/sunos4.h: Likewise.
2468         * config/sparc/vxsim.h: Likewise.
2469         * config/sparc/vxsparc.h: Likewise.
2470         * config/sparc/vxsparc64.h: Likewise.
2471
2472 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2473
2474         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
2475         reference to CONST_DOUBLE_MEM in comment.
2476         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
2477         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
2478         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
2479         * function.c (pop_function_context_from): Don't call
2480         restore_varasm_status.
2481         * function.h (restore_varasm_status): Delete declaration.
2482         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
2483         * rtl.c: Likewise.
2484         * rtl.def (CONST_DOUBLE): Update comment.
2485         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
2486         (CONST_DOUBLE_CHAIN): Likewise.
2487         (CONST_DOUBLE_MEM): Delete.
2488         (gen_rtx_CONST_DOUBLE): Update parameters.
2489         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
2490         Remove reference to CONST_DOUBLE_MEM.
2491         (const_alias_set): New variable.
2492         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
2493         (immed_real_const_1): Adjust tests for 0, 1, and 2.
2494         Don't set CONST_DOUBLE_MEM.
2495         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
2496         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
2497         Put constant in const_alias_set.
2498         (struct pool_constant): ALIGN now unsigned.
2499         OFFSET now HOST_WIDE_INT.
2500         Delete LABEL.
2501         (restore_varasm_status): Deleted.
2502         (mark_pool_constant): Mark desc->rtl.
2503         (force_const_mem): Rework to store rtl in hash table,
2504         not CONST_DOUBLE_MEM.
2505         Put constant in const_alias_set.
2506         (find_pool_constant): Check desc->rtl.
2507         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
2508         (init_varasm_once): Initialize const_alias_set.
2509
2510         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
2511         force_const_mem.
2512
2513         * reload.c (combine_reloads): Don't combine an output reload if there
2514         are other reloads around for part of the output.
2515
2516         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
2517         constant expression.
2518         (set_mem_decl): New function.
2519         * expr.h (set_mem_decl): New declaration.
2520         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
2521         (output_asm_operand_names): Add tab.
2522         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
2523
2524         * builtins.c (get_memory_rtx): Properly set MEM alias set and
2525         attributes.
2526
2527 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
2528
2529         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
2530         Use "invalid" instead of "illegal".  Use @r in comments in
2531         examples.
2532
2533 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2534
2535         * c-decl.c (pushdecl): Move block inside if conditional to remove
2536         possibility of a segfault.  Lookup block-level extern
2537         variables in enclosing scopes correctly.
2538
2539         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
2540
2541 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
2542
2543         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
2544         SUBREG so we avoid SUBREGing memory.
2545
2546         * expmed.c (store_bit_field): Same.
2547
2548 2001-11-02  DJ Delorie  <dj@redhat.com>
2549
2550         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
2551         using FP registers for DImode mem-mem moves is acceptable.
2552
2553 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
2554
2555         * builtins.c (apply_args_size): Handle vector arguments.
2556         (apply_result_size): Same.
2557
2558         * machmode.def: Set WIDER mode field for all vector entries.
2559
2560 2001-11-02  Graham Stott  <grahams@redhat.com>
2561
2562         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
2563
2564 2001-11-01  Eric Christopher  <echristo@redhat.com>
2565
2566         * config.gcc: Revert part of earlier patch.
2567         * config/mips/linux.h: Ditto.
2568         * df.c: Include tm_p.h to avoid warnings.
2569         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
2570         #if/#endif.
2571         * config/mips/mips.c: Define mips_abi regardless.
2572         (mips_output_function_prologues): Add long casts for .frame
2573         output.
2574         (override_options): Allow use of ABI_32.
2575
2576 2001-11-01  Kazu Hirata  <kazu@hxi.com>
2577
2578         * config/m68hc11/m68hc11.c: Fix comment formatting.
2579         * config/m68hc11/m68hc11.h: Likewise.
2580         * config/m68hc11/m68hc11.md: Likewise.
2581
2582 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
2583
2584         * c-typeck.c (default_conversion): Retain the original expression
2585         codes.
2586         * gcc.dg/Wparentheses.c: New tests.
2587
2588 2001-11-01  David S. Miller  <davem@redhat.com>
2589
2590         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
2591         64-bit Sparc description more in line with reality.
2592
2593 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
2594
2595         * Makefile.in (GCOV_OBJS): Add version.o.
2596         * gcov.c: Include "version.h" and <getopt.h>.
2597         (gcov_version_string): Remove.
2598         (print_usage): Take a parameter to determine whether this is a
2599         call from --help or an error message.  Give fuller output that
2600         follows the GNU Coding Standards for --help.
2601         (print_version): New function.
2602         (options): New.
2603         (process_args): Use getopt_long.  Support long options.  Follow
2604         GNU Coding Standards for --help and --version.
2605         * doc/gcov.texi: Document long options.
2606         Addresses part of PR other/704.
2607
2608 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2609
2610         * pa.c (output_move_double): Fix typo in double load.
2611
2612 2001-11-01  Kazu Hirata  <kazu@hxi.com>
2613
2614         * config/h8300/h8300.c (h8300_encode_label): Compute a string
2615         before passing it to ggc_alloc_string.
2616
2617 2001-11-01  Kazu Hirata  <kazu@hxi.com>
2618
2619         * config/m68k/3b1.h: Fix comment formatting.
2620         * config/m68k/3b1g.h: Likewise.
2621         * config/m68k/a-ux.h: Likewise.
2622         * config/m68k/amix.h: Likewise.
2623         * config/m68k/apollo68.h: Likewise.
2624         * config/m68k/atari.h: Likewise.
2625         * config/m68k/aux-exit.c: Likewise.
2626         * config/m68k/ccur-GAS.h: Likewise.
2627         * config/m68k/crds.h: Likewise.
2628         * config/m68k/dpx2.h: Likewise.
2629         * config/m68k/dpx2g.h: Likewise.
2630         * config/m68k/hp310.h: Likewise.
2631         * config/m68k/hp320.h: Likewise.
2632         * config/m68k/isi.h: Likewise.
2633         * config/m68k/linux.h: Likewise.
2634         * config/m68k/lynx.h: Likewise.
2635         * config/m68k/m68k-psos.h: Likewise.
2636         * config/m68k/m68k.c: Likewise.
2637         * config/m68k/m68k.h: Likewise.
2638         * config/m68k/m68k.md: Likewise.
2639         * config/m68k/m68kelf.h: Likewise.
2640         * config/m68k/m68kv4.h: Likewise.
2641         * config/m68k/mot3300.h: Likewise.
2642         * config/m68k/news.h: Likewise.
2643         * config/m68k/next.h: Likewise.
2644         * config/m68k/pbb.h: Likewise.
2645         * config/m68k/plexus.h: Likewise.
2646         * config/m68k/sgs.h: Likewise.
2647         * config/m68k/sun3.h: Likewise.
2648         * config/m68k/tower.h: Likewise.
2649         * config/m68k/vxm68k.h: Likewise.
2650
2651 2001-10-31  DJ Delorie  <dj@redhat.com>
2652
2653         * config/mips/mips.h (mips_cache_flush_func): Prototype.
2654         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
2655         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
2656         * config/mips/mips.c (mips_cache_flush_func): New.
2657         * doc/invoke.texi: Document the new options.
2658
2659 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
2660
2661         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
2662         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
2663
2664         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
2665
2666         * config/cris/cris.c: Include output.h after tree.h but before
2667         target.h.
2668
2669 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
2670
2671         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
2672         (INTL_SUBDIRS): Just intl.
2673         (.SUFFIXES): Add .gmo .po .pox.
2674         (native): Also depend on build-@POSUB@.
2675         (intl.all, intl.install): Depend on config.h and things it includes.
2676         (po-generated): New target; depend on c-parse.c and tradcif.c.
2677         (install-normal): Also depend on install-@POSUB@.
2678         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
2679         (build-, install-, build-po, update-po, install-po,
2680         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
2681
2682         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
2683         * configure.in: Don't munge XGETTEXT.  Don't generate
2684         po/Makefile.in.
2685         * configure: Regenerate.
2686
2687         * exgettext: Delete.
2688         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
2689         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
2690
2691 2001-10-31  Kazu Hirata  <kazu@hxi.com>
2692
2693         * config/h8300/h8300.md (two anonymous patterns): New.
2694
2695 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
2696
2697         * tree.h (tree_index): Add support for V16QI and V8HI.
2698         (V8HI_type_node): New.
2699         (V16QI_type_node): New.
2700
2701         * tree.c (build_common_tree_nodes_2): Same.
2702
2703         * c-common.c (type_for_mode): Same.
2704
2705 2001-10-31  Kazu Hirata  <kazu@hxi.com>
2706
2707         * config/i386/att.h: Fix comment formatting.
2708         * config/i386/beos-elf.h: Likewise.
2709         * config/i386/bsd.h: Likewise.
2710         * config/i386/bsd386.h: Likewise.
2711         * config/i386/crtdll.h: Likewise.
2712         * config/i386/cygwin.asm: Likewise.
2713         * config/i386/cygwin.h: Likewise.
2714         * config/i386/djgpp.h: Likewise.
2715         * config/i386/freebsd-aout.h: Likewise.
2716         * config/i386/freebsd.h: Likewise.
2717         * config/i386/gas.h: Likewise.
2718         * config/i386/i386-interix.h: Likewise.
2719         * config/i386/i386-protos.h: Likewise.
2720         * config/i386/i386.c: Likewise.
2721         * config/i386/i386.h: Likewise.
2722         * config/i386/i386.md: Likewise.
2723         * config/i386/i386elf.h: Likewise.
2724         * config/i386/interix.c: Likewise.
2725         * config/i386/isc.h: Likewise.
2726         * config/i386/isccoff.h: Likewise.
2727         * config/i386/iscdbx.h: Likewise.
2728         * config/i386/linux.h: Likewise.
2729         * config/i386/lynx.h: Likewise.
2730         * config/i386/mingw32.h: Likewise.
2731         * config/i386/netbsd-elf.h: Likewise.
2732         * config/i386/next.h: Likewise.
2733         * config/i386/osf1elf.h: Likewise.
2734         * config/i386/osfrose.h: Likewise.
2735         * config/i386/sco5.h: Likewise.
2736         * config/i386/seq-gas.h: Likewise.
2737         * config/i386/seq-sysv3.h: Likewise.
2738         * config/i386/sequent.h: Likewise.
2739         * config/i386/sol2.h: Likewise.
2740         * config/i386/sun386.h: Likewise.
2741         * config/i386/uwin.asm: Likewise.
2742         * config/i386/uwin.h: Likewise.
2743         * config/i386/vxi386.h: Likewise.
2744         * config/i386/win32.h: Likewise.
2745         * config/i386/winnt.c: Likewise.
2746         * config/i386/xm-cygwin.h: Likewise.
2747         * config/i386/xm-mingw32.h: Likewise.
2748
2749 2001-10-31  Kazu Hirata  <kazu@hxi.com>
2750
2751         * builtins.def: Fix comment typos.
2752         * config/alpha.c: Likewise.
2753         * config/arm/arm.c: Likewise.
2754         * config/avr/avr.h: Likewise.
2755         * config/d30v/d30v.c: Likewise.
2756         * config/d30v/d30v.h: Likewise.
2757         * config/d30v/d30v.md: Likewise.
2758         * config/dsp16xx/dsp16xx.c: Likewise.
2759         * config/fr30/fr30.c: Likewise.
2760         * config/fr30/fr30.md: Likewise.
2761         * config/i386/i386.c: Likewise.
2762         * config/i860/i860.c: Likewise.
2763         * config/i960/i960.c: Likewise.
2764         * config/ia64/ia64.c: Likewise.
2765         * config/mips/mips.c: Likewise.
2766         * config/pa/pa.c: Likewise.
2767         * config/rs6000/rs6000.c: Likewise.
2768         * config/s390/s390.c: Likewise.
2769         * config/sparc/sparc.c: Likewise.
2770
2771 2001-10-30  Kazu Hirata  <kazu@hxi.com>
2772
2773         * config/mips/elf.h: Fix comment formatting.
2774         * config/mips/elf64.h: Likewise.
2775         * config/mips/iris5.h: Likewise.
2776         * config/mips/iris5gas.h: Likewise.
2777         * config/mips/iris6.h: Likewise.
2778         * config/mips/isa3264.h: Likewise.
2779         * config/mips/linux.h: Likewise.
2780         * config/mips/mips.c: Likewise.
2781         * config/mips/mips.h: Likewise.
2782         * config/mips/mips.md: Likewise.
2783         * config/mips/mips16.S: Likewise.
2784         * config/mips/netbsd.h: Likewise.
2785         * config/mips/osfrose.h: Likewise.
2786         * config/mips/r3900.h: Likewise.
2787         * config/mips/sni-svr4.h: Likewise.
2788         * config/mips/svr4-t.h: Likewise.
2789         * config/mips/ultrix.h: Likewise.
2790
2791 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
2792
2793         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
2794         when we update head->current.
2795
2796 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
2797
2798         * tree.c (id_string_size): Remove.
2799         (dump_tree_statistics): Update.
2800         * toplev.c (compile_file): If dumping stats, dump tree stats too.
2801
2802 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
2803
2804         * sched-rgn.c (schedule_insns): Fix comment.
2805
2806 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
2807
2808         * configure.in: Correct previous change: don't assume that
2809         gas's version number _isn't_ the last thing on the line, or
2810         isn't the only number on the line, either.
2811         * configure: Regenerate.
2812
2813 2001-10-30  Kazu Hirata  <kazu@hxi.com>
2814
2815         * cfgcleanup.c: Fix a comment typo.
2816
2817 2001-10-30  Kazu Hirata  <kazu@hxi.com>
2818
2819         * alias.c: Fix comment formatting.
2820         * recog.c: Likewise.
2821         * config/cris/cris.c: Likewise.
2822         * config/cris/cris.h: Likewise.
2823         * config/i960/i960.c: Likewise.
2824         * config/i960/i960.h: Likewise.
2825
2826 2001-10-30  Kazu Hirata  <kazu@hxi.com>
2827
2828         * config/arm/arm.c: Fix a comment typo.
2829         * config/arm/arm.h: Likewise.
2830         * config/ia64/ia64.c: Likewise.
2831
2832 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
2833
2834         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
2835         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
2836         * rtl.h (set_unique_reg_note): Change return value.
2837         * gcse.c (try_replace_reg): Use set_unique_reg_note.
2838         * cse.c (cse_insn): Likewise.
2839         * expr.c (emit_move_insn): Likewise.
2840         * explow.c (force_reg): Likewise.
2841         * local-alloc (update_equiv_regs): Likewise.
2842         * loop.c (move_moveables, load_mems): Likewise.
2843         * reload (find_reloads): Likewise.
2844
2845 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
2846
2847         Localization fixes.
2848         * c-decl.c (parmlist_tags_warning, start_struct,
2849         check_for_loop_decls): Separate messages for struct, union and
2850         enum cases to allow for languages in which they have different
2851         genders.
2852         * c-format.c (scanf_flag_specs): Separate short and long name of
2853         the assignment suppression feature.
2854         (check_format_types): Localize "pointer" and "different types"
2855         strings.
2856         * c-lex.c (lex_number): Localize "an unsigned long int" and
2857         related strings.
2858         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
2859         warning message.
2860         * c-typeck.c (build_unary_up): Separate messages for increment and
2861         decrement cases to allow for languages in which they use different
2862         articles.  Localize the strings "increment" and "decrement" in one
2863         case.
2864
2865 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
2866
2867         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
2868         when no changes has been made.
2869
2870         * gcse.c (reg_set_bitmap): Turn into reg_set.
2871         (modify_mem_list_set, canon_modify_mem_list_set)
2872         (clear_modify_mem_tables, free_modify_mem_tables): New.
2873         (gcse_main); Use free_modify_mem_tables.
2874         (free_gcse_mem): Likewise; free the bitmaps.
2875         (alloc_gcse_main): Initialize the bitmaps.
2876         (canon_list_insert): Set canon_modify_mem_list_set.
2877         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
2878         (compute_hash_table): Use clear_modify_mem_tables.
2879         (reset_opr_set_tables): Likewise.
2880         (oprs_not_set_p): reg_set_bitmap is regset.
2881         (mark_set, mark_clobber): Likewise.
2882
2883         * df.h (DF_EQUIV_NOTES): New constant.
2884         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
2885         when asked for.
2886
2887         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
2888         (init_regions, schedule_insns): Conditionalize the checking
2889         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
2890
2891 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
2892
2893         * i386.md (movti_rex64 splitter): Fix condition.
2894
2895 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
2896
2897         * configure.in: Do not assume that gas's version number is the
2898         last thing on the first line of as --version output.
2899         * configure: Regenerate.
2900
2901         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
2902         MT_WARNING, MT_ERROR, MT_FATAL.
2903         (main): Call gcc_init_libintl.
2904         (v_message): Call gettext on msgid and "warning: "
2905         * tradcif.y: Include intl.h.
2906         (yyerror): Make parameter definition consistent with
2907         prototype.  Call gettext on msgid argument.
2908
2909 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2910
2911         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
2912         warnings.
2913
2914         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
2915
2916 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2917
2918         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
2919         before referencing it.
2920
2921 2001-10-26  DJ Delorie  <dj@redhat.com>
2922
2923         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
2924         override -G, and force -G0.
2925
2926 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
2927
2928         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
2929         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
2930         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
2931         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
2932
2933         * loop.h (struct induction): Rename ext_dependant to
2934         ext_dependent.
2935         * loop.c: Change all uses.
2936         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
2937         All callers changed.
2938         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
2939
2940 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
2941
2942         * c-parse.in (expr_no_commas, primary), c-typeck.c
2943         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
2944
2945 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
2946
2947         Undo assemble_name change in earlier patch.
2948
2949 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
2950
2951         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
2952         determining the type of the receiver, do not check that TREE_CODE
2953         of receiver is CALL_EXPR before calling receiver_is_class_object().
2954         (receiver_is_class_object): For the GNU runtime: recognize
2955         the case that the receiver is self in a class method context.
2956         Check that TREE_CODE of receiver is CALL_EXPR when checking that
2957         the receiver is a call to objc_get_class.
2958
2959 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2960
2961         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
2962
2963 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2964
2965         * Makefile.in (OBJS): Put all files in alphabetical order.
2966
2967         * dwarf2out.c (add_const_value_attribute): Fix error in last
2968         change.
2969
2970 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
2971
2972         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
2973         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
2974         fix warning.
2975         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
2976         (life_analysis): call purge_all_dead_edges after deleting noops.
2977         (delete_noop_move): Do not purge CFG.
2978         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
2979
2980 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
2981
2982         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
2983         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
2984         (ASM_GLOBALIZE_LABEL): Use assemble_name.
2985         (ASM_OUTPUT_COMMON): Likewise.
2986         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
2987         (rs6000_output_function_epilogue): Likewise.
2988         (output_mi_thunk): Fix typo.
2989         (rs6000_output_symbol_ref): Use assemble_name.
2990         (output_toc): Likewise.
2991         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
2992         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
2993         assemble_name calls STRIP_NAME_ENCODING.
2994         (ASM_OUTPUT_LABEL): Use assemble_name.
2995         (ASM_GLOBALIZE_LABEL): Likewise.
2996         (ASM_DECLARE_FUNCTION_NAME): Likewise.
2997         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
2998         (ASM_OUTPUT_LOCAL): Likewise.
2999
3000 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3001
3002         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
3003         (expand_builtin_apply, expand_builtin_return): Likewise.
3004         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
3005
3006 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
3007
3008         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3009         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
3010         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
3011         configure, configure.in, except.c, except.h, flow.c, function.c,
3012         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
3013         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
3014         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
3015         unroll.c: Fix spelling errors.
3016
3017         * doc/extend.texi, doc/invoke.texi: Fix spelling.
3018
3019         * doc/gcc.texi: Document use of "dependent" and American spelling.
3020
3021 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
3022
3023         * expr.c (emit_group_load): Support CONCATs by storing them to memory
3024         and reloading.
3025
3026 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3027
3028         * expr.c (store_constructor_field): Only call adjust_address on MEM.
3029
3030 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
3031
3032         * genrecog.c (write_switch):  Output if before switch for
3033         DT_elt_zero_wide_safe.
3034
3035 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3036
3037         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
3038         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
3039         (FUNCTION_PROFILER): Const-ify.
3040         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
3041         (eliminate_constant_term, assemble_name, output_addr_const):
3042         Remove declarations.
3043         (ptr_half_pic_address_p, half_pic_hash): Prototype.
3044         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
3045         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
3046         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
3047         (half_pic_declare, half_pic_external): Const-ify.
3048         * toplev.c: Include "halfpic.h".
3049
3050 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
3051
3052         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
3053         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
3054         config/i386/i386.c, config/i386/i386-interix.h,
3055         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
3056         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
3057         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
3058         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
3059         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
3060         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
3061         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
3062         spelling errors.
3063
3064         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3065         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
3066         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
3067         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
3068         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
3069         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
3070         system.h, toplev.c: Fix spelling errors.
3071
3072 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3073
3074         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
3075
3076         * dwarf2out.c (reg_number): Abort if pseudo.
3077         (reg_loc_descriptor): Return 0 if pseudo.
3078         (is_based_loc): Return 0 if pseudo.
3079         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
3080         recursive calls.
3081         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
3082         (loc_descriptor): Return 0 if can't find location and handle 0
3083         return from recursive calls.
3084         (loc_descriptor_from_tree): Likewise.
3085         Fix handling of indirect.
3086         Also return 0 for PLACEHOLDER_EXPR.
3087         Clean up COMPONENT_REF cases.
3088         (add_AT_location_descriptor): Simplify, but handle 0 return from
3089         loc_descriptor.
3090         (add_const_value_attribute): Avoid shift count warning.
3091         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
3092         Set comp_unit_die as context if not in function.
3093
3094         * config/mips/mips-protos.h: Break up long lines.
3095         Remove needless #ifdef/#endif blocks.
3096         Don't declare functions declared in file made by genpreds or recog.h.
3097         * config/mips/mips.c (mips_output_function_prologue): TSIZE
3098         is now HOST_WIDE_INT; delete unneeded casts.
3099         * config/mips/mips.h: Don't use #elif.
3100
3101         * expr.c (stor_constructor_field): Always call adjust_address.
3102         Copy TARGET before changing its alias set.
3103         (store_field): Likewise, for TO_RTX.
3104         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
3105         replacement.
3106         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
3107         (find_placeholder): Return 0 if can't find object.
3108         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
3109         returns 0.
3110
3111 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
3112
3113         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
3114
3115 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
3116
3117         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
3118         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
3119         (merge_blocks): Properly udpate life after making edge nonfallthru.
3120         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
3121
3122 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3123
3124         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
3125
3126 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3127
3128         * c-typeck.c (convert_arguments): When comparing for enumeral
3129         type equality, use TYPE_MAIN_VARIANT.
3130         * gcc.dg/Wconversion.c: New tests.
3131
3132 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3133
3134         * s390/s390.c: Fix comment typos.
3135         * s390/s390.h: Likewise.
3136         * s390/s390.md: Likewise.
3137
3138 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3139
3140         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
3141         (walk_tree): Use it for tail calls where appropriate.
3142
3143 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3144
3145         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
3146         non-local label_refs.
3147
3148 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3149
3150         * config/h8300/h8300.md (4 anonymous patterns): New.
3151
3152 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3153
3154         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
3155         algorithm through the shift_info structure.
3156         (emit_a_shift): Update the use of get_shift_alg.
3157
3158 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
3159
3160         * sched-rgn.c: Remove bitset typedef.
3161         Change bitset to sbitmap in prototypes / variable types.
3162         Remove bbset_size.
3163         Remove edgeset_bits.
3164         Remove edgeset_size.
3165         s/BITSET_ADD/SET_BIT/g
3166         s/BITSET_INVERT/sbitmap_ones/g
3167         s/BITSET_INTER/sbitmap_a_and_b/g
3168         s/BITSET_UNION/sbitmap_a_or_b/g
3169         s/BITSET_DIFFER/sbitmap_difference/g
3170         s/bitset_member/TEST_BIT/g
3171         (BITSET_*): Removed.
3172         (bitset_member): Removed.
3173         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
3174         EXECUTE_IF_SET_IN_SBITMAP.
3175         (split_edges): Rewrite, use sbitmap functions instead of bitset
3176         operations.
3177         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
3178
3179 2001-10-26  Andreas Schwab  <schwab@suse.de>
3180
3181         * reload1.c (emit_input_reload_insns): Fix parens in last
3182         (undocumented) change that was supposed to change only whitespace.
3183
3184 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3185
3186         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
3187
3188         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
3189         ASM_OPERANDS.
3190
3191 2001-10-26  Andreas Jaeger  <aj@suse.de>
3192
3193         * flow.c (clear_log_links): Remove unused variable.
3194         * cfgcleanup.c (cleanup_cfg): Likewise.
3195
3196 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3197
3198         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
3199         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
3200
3201 2001-10-26  Richard Henderson  <rth@redhat.com>
3202
3203         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
3204         rename PV_REG to R27_REG.
3205         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
3206         (REG_CLASS_FROM_LETTER): Update.
3207         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
3208         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
3209         (udivsi3, modsi3, umodsi3): Likewise.
3210         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
3211
3212 2001-10-26  Richard Henderson  <rth@redhat.com>
3213
3214         * cfg.c (clear_aux_for_blocks): Split out of ...
3215         (free_aux_for_blocks): here.
3216         (clear_aux_for_edges): Split from ...
3217         (free_aux_for_edges): here.
3218         * basic-block.h: Declare them.
3219         * lcm.c (compute_antinout_edge): Use them.
3220         (compute_laterin, compute_available, compute_nearerout): Likewise.
3221         (optimize_mode_switching): Likewise.
3222
3223 2001-10-26  Richard Henderson  <rth@redhat.com>
3224
3225         * Makefile.in (unstage*): Remove as, ld, collect-ld before
3226         moving everything back to the main build directory.
3227
3228 2001-10-26  Christopher Faylor  <cgf@redhat.com>
3229
3230         * config/i386/cygwin.h: Search target specific include directory, if
3231         appropriate.
3232
3233 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3234
3235         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
3236         of macro guards. Fix #endif comment.
3237
3238         * output.h (default_exception_section, default_eh_frame_section):
3239         Move prototypes outside of macro guard.
3240
3241         * crtstuff.c: Fix #endif comment.
3242
3243 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
3244
3245         * doc/md.texi (movMM): Clarify semantics of storing into a
3246         non-paradoxical SUBREG.
3247
3248 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
3249
3250         * langhooks.c (lang_hook_default_clear_binding_stack): New.
3251         (lang_hook_default_get_alias_set): Move next to other alias
3252         hooks.
3253         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
3254         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
3255         (LANG_HOOKS_INITIALIZER): Add it.
3256         * toplev.h (struct lang_hooks): Add clear_binding_stack.
3257         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
3258         instead of a loop calling poplevel.
3259
3260 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
3261
3262         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
3263         occurrences of #elif with #if...#endif.
3264
3265 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3266
3267         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
3268
3269 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3270
3271         * alias.c (can_address_p): No longer static.
3272         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
3273         Return 0 if all parameters are default values.
3274         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
3275         (adjust_address_1): Try harder to compute a size.
3276         * expr.c (expand_assignment, store_constructor): If can't address,
3277         set MEM_KEEP_ALIAS_SET_P.
3278         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
3279         (store_field): Likewise.
3280         (store_constructor): Simplify call to store_constructor_field.
3281         * expr.h (can_address_p): New declaration.
3282         * gensupport.c (gen_rtx_CONST_INT): New function.
3283         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
3284         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
3285         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
3286
3287         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
3288
3289 2001-10-24  Christopher Faylor  <cgf@redhat.com>
3290
3291         * config/i386/cygwin.h: Use proper path for mingw crt files when
3292         -mno-cygwin.
3293
3294 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3295
3296         * dwarf2out.c (file_info_cmp): Always return consistent results.
3297
3298 2001-10-24  Roger Sayle <roger@eyesopen.com>
3299
3300         * stmt.c (expand_end_case): Index jumptables from zero for
3301         suitably small values of minval.
3302
3303 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
3304
3305         * stor-layout.c (place_union_field): If any field was aligned with
3306         attribute aligned, set record type's TYPE_USER_ALIGN.
3307         (place_field): Likewise.
3308         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
3309         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
3310
3311 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
3312
3313         * c-common.h (struct c_common_identifier): Remove rid_code field.
3314         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
3315
3316         * c-typeck.c (constructor_designated): New local flag.
3317         (struct constructor_stack): Add "designated" field to match.
3318         (start_init): Clear it.
3319         (really_start_incremental_init, push_init_level): Push and
3320         clear it.
3321         (pop_init_level): Pop it.
3322         (set_designator): Set it.
3323
3324         (pop_init_level): Suppress "missing initializer" warnings if
3325         constructor_designated is true.
3326         (process_init_element): Suppress warning about union
3327         initialization under traditional C, if constructor_designated
3328         is true.
3329
3330 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3331
3332         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
3333         change.
3334
3335 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
3336
3337         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
3338
3339 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
3340
3341         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
3342         the node was already a set to a constant.
3343
3344 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3345
3346         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
3347         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
3348
3349 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3350
3351         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
3352         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
3353         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
3354         * s390.c (s390_final_chunkify): Don't use string concatenation.
3355         (s390_function_prologue, s390_function_epilogue): Const-ify.
3356         * s390.h (FUNCTION_PROFILER): Remove unused variable.
3357
3358 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
3359
3360         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
3361         prototypes.
3362
3363 2001-10-23  Stan Shebs  <shebs@apple.com>
3364
3365         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
3366         -traditional-cpp in first-stage compilation.
3367
3368 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3369
3370         * gensupport.c (target_flags): Add.
3371
3372 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
3373
3374         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
3375         if needed.
3376         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
3377         * except.c (expand_builtin_frob_return_addr): Likewise.
3378         (expand_builtin_eh_return): Likewise.
3379         * stmt.c (expand_computed_goto): Likewise.
3380         * explow.c (memory_address): Likewise.
3381         (allocate_dynamic_stack_space): Clean up predicate testing.
3382         (probe_stack_range): Convert SIZE to Pmode.
3383         * calls.c (rtx_for_function_call): Only call convert_memory_address
3384         if needed.
3385         Pass function call operand as ptr_mode, not Pmode.
3386         * expr.c (expand_assignment): Clean up calls to convert_memory
3387         address by only doing so when needed and making offsets Pmode.
3388         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
3389         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
3390         is in Pmode, not ptr_mode.
3391
3392 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3393
3394         * darwin-protos.h (constructor_section, destructor_section,
3395         mod_init_section, mod_term_section): Prototype.
3396         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
3397         Const-ify.
3398         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
3399         Likewise.
3400         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
3401         objc_section_init declaration.
3402         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
3403         (objc_section_init, try_section_alias): Make static.
3404         (alias_section): Make static and hide unused function.
3405         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
3406
3407 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3408
3409         * alias.c (can_address_p): Compnonents are not addressable if
3410         the containing type has alias set 0.
3411         (get_alias_set): Rework to use STRIP_NOPS.
3412         Only call front-end routine on object, type, or object with
3413         NOPs stripped, not inner values.
3414         Use language hook to call front-end routine.
3415         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
3416         (expand_builtin_apply): Call set_mem_align on MEMs we make.
3417         Don't pass alignment to emit_block_move.
3418         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
3419         (expand_builtin_memset): Likewise, but for clear_storage.
3420         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
3421         and remove C++ specific parts.
3422         * c-common.h (c_common_get_alias_set): Add declaration.
3423         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
3424         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
3425         (save_fixed_argument_area): Call set_mem_align.
3426         Remove alignment in call to emit_block_move.
3427         (emit_library_call_value_1, store_one_arg): Likewise.
3428         (target_for_arg): Remove; disabled long ago.
3429         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
3430         once and similar cleanups.
3431         (offset_address): Use proper introductory comment.
3432         * expr.c (emit_block_move): Use alignment from that of MEM args, not
3433         from explicit operand; all callers changed.
3434         (clear_storage): Likewise.
3435         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
3436         (store_field): Remove kludge on alias set used for to_rtx.
3437         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
3438         (expand_expr_unaligned): Call set_mem_attributes instead of
3439         set_mem_alias_set.
3440         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
3441         * function.c (assign_stack_temp_for_type): Set MEM alignment.
3442         (expand_function_end): Track MEM attributes of trampolines.
3443         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
3444         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
3445         attributes from original.
3446         * langhooks.c (lang_hook_default_get_alias_set): New function.
3447         (hook_get_alias_set_0): New function.
3448         * langhooks.h (hook_get_alias_set_0): New declaration.
3449         (lang_hook_default_get_alias_set): Likewise.
3450         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
3451         * reload1.c (alter_reg): Use adjust_address_nv.
3452         * rtl.c (get_mode_alignment): Moved to here.
3453         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
3454         change default if unknown from 1 to BITS_PER_UNIT.
3455         * stor-layout.c (get_mode_alignment): Remove from here.
3456         * toplev.h (struct lang_hoks): Add get_alias_set field.
3457         * tree.h (lang_get_alias_set): Delete declaration.
3458         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
3459         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
3460         (ix86_va_arg): Likewise.
3461         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
3462         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3463         * config/sparc/sparc.c (sparc_va_arg): Likewise.
3464         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
3465         (expand_block_move_mem): Remove dead code.
3466
3467 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3468
3469         * c-common.c (warn_div_by_zero): New.
3470         * c-common.h (warn_div_by_zero): New.
3471         * c-decl.c (c_decode_option): Take it on the command line.
3472         * c-typeck.c (build_binary_op): Warn about division by zero.
3473         * doc/invoke.texi: Document the new command line option, fix
3474         documentation of -Wmultichar.
3475         * testsuite/gcc.dg/divbyzero.c: New tests.
3476         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
3477
3478 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
3479
3480         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
3481
3482         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
3483         to avoid update_life_info call.
3484         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
3485         * cfgcleanup.c (bb_flags): New enum.
3486         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
3487         (notice_new_block, update_forwarder_flag): New functions.
3488         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
3489         (try_forward_edges): Likewise; update flags.
3490         (merge_blocks): Likewise.
3491         (outgoing_edges_match): Likewise.
3492         (try_crossjump_to_edge): Likewise.
3493         (try_optimize_cfg): Likewise; initialize and clear the flags;
3494         recompute life info if needed.
3495         (cleanup_cfg): No need to clear aux pointers.
3496
3497 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
3498
3499         * config/i386/i386.c (override_options): Default to minimum
3500         stack alignment when optimizing for code size.
3501         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
3502         change.
3503
3504         * config/i386/i386.c (override_options): Set upper limit of
3505         -mpreferred-stack-boundary to 12.
3506
3507 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
3508
3509         * recog.c (peephole2_optimize): Add default case to switch.
3510
3511 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
3512
3513         * doc/gcc.texi (Sending Patches): Remove.
3514
3515 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
3516
3517         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
3518         fields when comparing.
3519
3520 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3521
3522         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
3523         * arm.c (HOST_INT, HOST_UINT): Likewise.
3524
3525 2001-10-22  Stan Shebs  <shebs@apple.com>
3526
3527         * config/darwin-protos.h (darwin_exception_section): Declare.
3528         (darwin_eh_frame_section): Declare.
3529
3530 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
3531
3532         * i386.md (movti_rex64): Fix mode.
3533
3534 2001-10-22  Stan Shebs  <shebs@apple.com>
3535
3536         * target.h (struct gcc_target): Add asm_out.exception_section,
3537         asm_out.eh_frame_section.
3538         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
3539         (TARGET_ASM_EH_FRAME_SECTION): New.
3540         (TARGET_INITIALIZER): Update.
3541         * output.h (default_exception_section): Declare.
3542         (default_eh_frame_section): Declare.
3543         * dwarf2out.c: Include target.h.
3544         (output_call_frame_info): Call target hook for eh frames.
3545         (default_eh_frame_section): New function.
3546         * except.c: Include target.h.
3547         (output_function_exception_table): Call target hook for exception
3548         section.
3549         * varasm.c (default_exception_section): Rename from
3550         exception_section, remove EXCEPTION_SECTION macro.
3551
3552         * config/darwin.h (darwin_eh_frame_section): New function.
3553         (EXCEPTION_SECTION): Remove.
3554         (TARGET_ASM_EXCEPTION_SECTION): Define.
3555         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
3556         (nextstep_exception_section): New function.
3557         (nextstep_eh_frame_section): New function.
3558         (TARGET_ASM_EXCEPTION_SECTION): Define.
3559         (TARGET_ASM_EH_FRAME_SECTION): Define.
3560
3561         * config/pa/som.h (EXCEPTION_SECTION): Remove.
3562         (TARGET_ASM_EXCEPTION_SECTION): Define.
3563         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
3564         (EXCEPTION_SECTION): Remove.
3565         (TARGET_ASM_EXCEPTION_SECTION): Define.
3566         * config/stormy16/stormy16.h: Remove comments referencing
3567         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
3568
3569         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
3570         TARGET_ASM_EH_FRAME_SECTION.
3571
3572 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
3573
3574         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
3575         terms.
3576
3577         * c-format.c: Fix spelling typo in comment.
3578
3579         * sched-int.h: Fix typo in GCC preamble.
3580
3581 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3582
3583         PR debug/4252
3584         * doc/invoke.texi: Remove references to -fdump-translation-unit.
3585
3586 2001-10-22  Richard Henderson  <rth@redhat.com>
3587
3588         * config/i386/i386.c (ix86_expand_clear): New.
3589         * config/i386/i386-protos.h: Declare it.
3590         * config/i386/i386.md (setcc peep2s): Use it.
3591         (movsi_xor): Unexport.
3592
3593 2001-10-22  Richard Henderson  <rth@redhat.com>
3594
3595         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
3596         free_EXPR_LIST_list for LOG_LINKS.
3597
3598 2001-10-21  Robert Lipe  <robertlipe@usa.net>
3599
3600         * config/i386/i386.c (sco_asm_named_section): Delete.
3601         (sco_asm_out_constructor): Delete.
3602         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
3603         (ASM_OUTPUT_DOUBLE_INT): Likewise.
3604         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
3605         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
3606         (EXCEPTION_SECTION): Delete EH scn renaming hack.
3607
3608 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3609
3610         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
3611         and/or fold extra calls into fewer ones.
3612         * collect2.c (dump_file): Likewise.
3613         * cppexp.c (parse_number): Likewise.
3614         * cpplex.c (_cpp_lex_direct): Likewise.
3615         * final.c (output_asm_insn, asm_fprintf): Likewise.
3616         * fix-header.c (inf_scan_ident, main): Likewise.
3617         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
3618         Likewise.
3619         * fold-const.c (real_hex_to_f): Likewise.
3620         * gen-protos.c (parse_fn_proto): Likewise.
3621         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
3622         * genrecog.c (change_state, write_action): Likewise.
3623         * gensupport.c (shift_output_template): Likewise.
3624         * local-alloc.c (requires_inout): Likewise.
3625         * mips-tfile.c (IS_ASM_IDENT): Likewise.
3626         * protoize.c (is_id_char, main): Likewise.
3627         * real.c (asctoeg): Likewise.
3628         * recog.c (asm_operand_ok): Likewise.
3629         * reload.c (find_reloads): Likewise.
3630         * scan.c (scan_identget_token): Likewise.
3631         * sched-vis.c (print_value): Likewise.
3632         * stringpool.c (ggc_alloc_string): Likewise.
3633         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
3634         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
3635         * tradcpp.c (rescan): Likewise.
3636         * tree.c (clean_symbol_name): Likewise.
3637         * varasm.c (decode_reg_name): Likewise.
3638
3639         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
3640         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
3641         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
3642         * m88k.c (output_ascii): Likewise.
3643         * m88k.h (OVERRIDE_OPTIONS): Likewise.
3644         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
3645         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
3646         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
3647
3648 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3649
3650         * langhooks.c (lang_hook_default_do_nothing,
3651         lang_hook_default_decode_option): New defaults.
3652         * langhooks.h: Make hooks unconditional and non-NULL.
3653         * toplev.c (compile_file, toplev_main): Update.
3654         * toplev.h: Update comments.
3655         * objc/objc-act.c (lang_hooks): Update to new paradigm.
3656
3657 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3658
3659         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
3660
3661         * system.h (IN_RANGE): New macro.
3662
3663 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
3664
3665         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
3666         INTLDEPS variable, which does not include $LIBICONV.
3667         * Makefile.in: Use INTLDEPS in LIBDEPS.
3668         * configure: Regenerate.
3669
3670 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3671
3672         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
3673         * cpplex.c (lex_percent, lex_dot): Remove.
3674         (get_effective_char, skip_block_comment, skip_line_comment,
3675         parse_identifier_slow, parse_number, parse_string, save_comment,
3676         _cpp_lex_direct): Update to do lookback freely.
3677         (IF_NEXT_IS, BACKUP): New macros.
3678         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
3679         * cppmacro.c (paste_tokens): Update.
3680
3681 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
3682
3683         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
3684
3685 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
3686
3687         * reload1.c (reload): Check CONSTANT_P before calling
3688         LEGITIMATE_PIC_OPERAND_P.
3689         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
3690         workaround of 2001-10-13.
3691
3692 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
3693
3694         * i386.c (split_di): Handle splitting of DFmode.
3695
3696 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3697
3698         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
3699         (adjust_address_1, offset_address): Likewise.
3700
3701         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
3702         (output_asm_insn): Call it for each line output.
3703         Don't record an operand more than once.
3704
3705         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
3706         * main.c: Include config.h and system.h, but not ansidecl.h.
3707         * Makefile.in (main.o): Update accordingly.
3708
3709 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
3710
3711         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
3712
3713 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
3714
3715         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
3716         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
3717         Break out from ...
3718         (find_sub_basic_blocks): ... here;
3719         (find_many_sub_basic_blocks): New.
3720         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
3721
3722         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
3723
3724         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
3725
3726         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
3727
3728         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
3729         * flow.c (update_life_info): Measure time.
3730         * c-decl.c: Include timevar.h
3731         (c_expand_body): Measure time.
3732         * toplev.c (rest_of_compilation): Measure time of mode switching
3733         separately.
3734         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
3735
3736         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
3737         (lang_independent_options): Add asynchronous-unwind-tables
3738         (toplev_main): flag_asynchronous_unwind_tables implies
3739         flag_unwind_tables.
3740         * flags.h (flag_asynchronous_unwind_tables): Declare.
3741         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
3742         flag_asynchronous_unwind_tables.
3743         (output_call_frame_info): Likewise.
3744         * invoke.texi (-fasynchronous-unwind-tables): Document.
3745         * i386.c (optimization_options): Enable
3746         flag_asynchronous_unwind_tables.
3747
3748         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
3749         * i386.md (s* expanders): Destination is QImode.
3750
3751         * toplev.c (rest_of_compilation): Do not call clear_log_links.
3752         * rtl.h (clear_log_links): Kill.
3753         * flow.c (clear_log_links): Make static; accept blocks parameter;
3754         do no clear life info.
3755         (update_life_info): Call clear_log_links.
3756
3757         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
3758
3759 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3760
3761         * cpplex.c (handle_newline, skip_escaped_newlines,
3762         get_effective_char, skip_block_comment, skip_line_comment,
3763         parse_identifier_slow, parse_number, parse_string,
3764         _cpp_lex_direct): Update to do more stepping back.
3765         (trigraph_ok): Similarly.  Rename trigraph_p.
3766         (SAVE_STATE, RESTORE_STATE): Remove.
3767         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
3768
3769         * cpplib.c (destringize): Rename destringize_and_run, and
3770         call run_directive directly.
3771         (_cpp_do__Pragma): Simplify.
3772
3773 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3774
3775         * pe.c (arm_pe_unique_section): Const-ify.
3776         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
3777         (switch_to_section): Add static prototype.
3778
3779         * output.h (drectve_section): Prototype.
3780
3781 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3782
3783         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
3784         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
3785         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
3786         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
3787         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
3788         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
3789         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
3790         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
3791         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
3792         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
3793         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
3794         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
3795         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
3796         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
3797         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
3798         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
3799         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
3800         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
3801         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
3802         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
3803         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
3804         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
3805         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
3806         cris-*-none, cris-*-linux*: Update ${tmfile} list.
3807         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
3808         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
3809         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
3810         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
3811         v850-*-*): Delete superflous ${cpu_type} setting.
3812         * config/linux.h: Delete svr4.h include.
3813         (SET_ASM_OP): Delete.
3814         * config/netware.h (INT_ASM_OP): Undef before define.
3815         * config/ptx4.h: Delete elfos.h include.
3816         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
3817         * config/svr4.h: Delete elfos.h include. Update commentary.
3818         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
3819         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
3820         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
3821         config/v850/v850.h: Delete svr4.h include.
3822         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
3823         config/m68k/m68kv4.h, config/m88k/sysv4.h,
3824         config/sparc/sysv4.h: Update includes.
3825         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
3826         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
3827         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
3828         config/m88k/dguxbcs.h: Delete includes.
3829         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
3830         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
3831         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
3832         it.
3833         * config/m88k/dgux.h: Delete include.
3834         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
3835         defining it.
3836         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
3837         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
3838         * config/sh/elf.h: Update include.
3839         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
3840         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
3841
3842 2001-10-19  Catherine Moore  <clm@redhat.com>
3843
3844         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
3845         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
3846         base and count fields.
3847         (stormy16_expand_builtin_va_start):  last_reg_count changed to
3848         size_of_reg_args.  Use count + size in first comparison.
3849
3850 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3851
3852         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
3853         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
3854         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
3855         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
3856         Set alignment from type if INDIRECT_REF.
3857         (adjust_address_1, offset_address): Simplify alignment compuitation.
3858         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
3859         here; done by set_mem_attributes.
3860
3861 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3862
3863         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
3864         * arm-protos.h (rdata_section, zero_init_section, common_section):
3865         Prototype.
3866         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
3867         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
3868         traditional mode stringification.
3869         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
3870         in macros controling its use.
3871         * rtlanal.c: Include tm_p.h.
3872         * varasm.c (asm_output_aligned_bss): Mark parameter with
3873         ATTRIBUTE_UNUSED.
3874         (assemble_constant_align, assemble_start_function, assemble_align,
3875         assemble_variable, assemble_trampoline_template,
3876         output_constant_def_contents): Wrap potentially empty if-stmt body
3877         in brackets.
3878
3879 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3880
3881         * a29k-protos.h (literal_section): Prototype.
3882         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
3883         * a29k.md: Ensure function pointers are prototyped.
3884         * genattrtab.c (write_eligible_delay): Mark parameter with
3885         ATTRIBUTE_UNUSED.
3886
3887 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3888
3889         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
3890         * 1750a.c (print_operand): Fix format specifier warning.
3891         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
3892         * 1750a.md: Likewise.
3893         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
3894         * genemit.c (output_add_clobbers): Mark parameter with
3895         ATTRIBUTE_UNUSED.
3896         * genrecog.c (write_subroutine): Likewise.
3897         * integrate.c (expand_inline_function): Delete unused variable.
3898         * varasm.c (remove_from_pending_weak_list): Wrap with
3899         ASM_WEAKEN_LABEL.
3900
3901 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
3902
3903         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
3904         field is different to previous argument's neg field.
3905
3906         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
3907
3908 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3909
3910         * final.c (get_decl_from_op): New function.
3911         (output_asm_insn): Call it; write "*" when item with decl is address.
3912
3913 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
3914
3915         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
3916         about 64-bit support from the 3.0_branch version.
3917
3918 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
3919
3920         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
3921         USE_INCLUDED_LIBINTL when appropriate.
3922         * configure, config.in: Regenerate.
3923         * Makefile.in (datadir): Set to @datadir@.
3924         (intl.o): Also depend on $(CONFIG_H) and system.h.
3925
3926         * intl.c: Factor out common gettext initialization sequence.
3927         (gcc_init_libintl):  New function.
3928         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
3929         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
3930         off NLS.  Add multiple include guard.  No need to #ifdef-guard
3931         an #undef.  Prototype gcc_init_libintl here.
3932
3933         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
3934         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
3935         Use gcc_init_libintl.
3936
3937 2001-10-19  Catherine Moore  <clm@redhat.com>
3938
3939         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
3940
3941         * config/stormy16/stormy16.c (stormy16_split_move):  Make
3942         sure that REG_INC notes are present for auto_inc operands.
3943
3944 2001-10-19  Andreas Jaeger  <aj@suse.de>
3945
3946         * configure: Regenerated.
3947         * configure.in: Add x86_64 to switch statements.
3948
3949 2001-10-18  Richard Henderson  <rth@redhat.com>
3950
3951         * config/alpha/alpha.md (sibcall_osf_1): Load destination
3952         address into $27 explicitly.
3953         (sibcall_value_osf_1): Likewise.
3954
3955 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3956
3957         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
3958         (offset_address): New function.
3959         (free_emit_status): Free regno_decl.
3960         (init_emit): Pass proper number of elements to xcalloc.
3961         Allocate regno_decl.
3962         (mark_emit_status): Mark regno_decl values.
3963         * expr.c (highest_pow2_factor): New function.
3964         (expand_assigment): Use it and offset_address.
3965         Properly handle ptr_mode vs. Pmode in offset calculation.
3966         (store_constructor, expand_expr_unaligned): Likewise.
3967         (expand_expr, case COMPONENT_EXPR): Likewise.
3968         * expr.h (offset_address): New decl.
3969         * function.h (struct emit_status): Add regno_decl.
3970         (REGNO_DECL): New macro.
3971         * final.c (output_asm_name): Move in file and don't conditionalize
3972         on flag_print_asm_name.
3973         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
3974         Output names of operands, if known.
3975         * function.c (assign_parms): Set REGNO_DECL.
3976         * integrate.c (integrate_decl_tree): Likewise.
3977         * stmt.c (expand_decl): Likewise.
3978         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
3979
3980 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
3981
3982         * attribs.c (handle_noinline_attribute): New function.
3983         (handle_used_attribute): Likewise.
3984         (c_common_attribute_table): Added noinline and used.
3985         * doc/extend.texi (Function Attributes): Document them.
3986         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
3987         Warn when merging inline with attribute noinline.
3988         (start_decl, start_function): Warn if inline and attribute
3989         noinline appear in the same declaration.
3990
3991 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
3992
3993         * config.gcc: Update c4x and i370 for C front end-specific
3994         dependencies.
3995         * config/c4x/c4x-c.c: New.
3996         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
3997         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
3998         New declarations.
3999         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
4000         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
4001         Make extern.
4002         (c4x_init_pragma): Remove.
4003         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
4004         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
4005         c4x_pr_ignored): Move to c4x-c.c.
4006         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
4007         * config/c4x/t-c4x: Update.
4008         * config/i370/i370-c.c: New.
4009         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
4010         (i370_pr_map): Move to i370-c.c.
4011         * config/i370/t-i370: New.
4012
4013         * doc/tm.texi: Update.
4014
4015 2001-10-17  Stan Shebs  <shebs@apple.com>
4016
4017         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
4018         typo fixes throughout.
4019         (machopic_output_stub): Remove some dead code.
4020
4021 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
4022
4023         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
4024         leak.
4025
4026 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4027
4028         * Makefile.in (print-rtl.o): Depend on TREE_H.
4029         * alias.c (get_alias_set): Make two passes over objects to first
4030         see if inner object is access via restricted pointer.
4031         Defer allocating alias set for restricted pointer until here.
4032         Call find_placeholder with second arg nonzero.
4033         Minor cleanups.
4034         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
4035         set for restricted pointer types.
4036         * emit-rtl.c (set_mem_attributes): Set more attributes.
4037         (set_mem_align, change_address, adjust_address_1): New functions.
4038         (change_address_1): Now static.
4039         (adjust_address, adjust_address_nv): Deleted.
4040         (replace_equiv_address): Call change_address_1.
4041         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
4042         (find_placeholder): Get starting point from PLIST arg.
4043         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
4044         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
4045         (adjust_address, adjust_address_nv): New macros.
4046         * print-rtl.c (tree.h): New include.
4047         (print_rtx, case MEM): Print all memory attributes.
4048
4049 2001-10-17  Richard Henderson  <rth@redhat.com>
4050
4051         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
4052
4053 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4054
4055         * c-tree.texi: Eliminate duplicated word.
4056         * cpp.texi: Likewise.
4057         * install.texi: Likewise.
4058         * invoke.texi: Likewise.
4059         * tm.texi: Likewise.
4060
4061 2001-10-17  Michael Collison  <collison@isisinc.net>
4062
4063         * dsp16xx.c: Fix comment formatting to match GNU standards.
4064         (dsp16xx_output_function_prologue): Change type of 'size'
4065         parameter from 'int' to HOST_WIDE_INT.
4066         (dsp16xx_output_function_epilogue): Change type of 'size'
4067         parameter from 'int' to HOST_WIDE_INT.
4068
4069 2001-10-16  Richard Henderson  <rth@redhat.com>
4070
4071         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
4072         * configure, config.in: Rebuild.
4073
4074         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
4075         (ix86_output_addr_diff_elt): New.
4076         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
4077         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4078         (JUMP_TABLES_IN_TEXT_SECTION): New.
4079         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
4080         * config/i386/i386-protos.h: Update.
4081
4082         * config/i386/386bsd.h, config/i386/beos-elf.h,
4083         config/i386/freebsd-aout.h, config/i386/freebsd.h,
4084         config/i386/i386-interix.h, config/i386/i386elf.h,
4085         config/i386/linux.h, config/i386/netbsd-elf.h,
4086         config/i386/netbsd.h, config/i386/openbsd.h,
4087         config/i386/ptx4-i.h, config/i386/rtemself.h,
4088         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
4089         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
4090
4091 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
4092
4093         * stmt.c (expand_asm_operands): Update commentary.
4094
4095 2001-10-16  Stan Shebs  <shebs@apple.com>
4096
4097         * config/darwin.h (GCC_NAME): Remove, no longer used.
4098         (NO_MATH_LIBRARY): Ditto.
4099         (MATH_LIBRARY): Define to emptiness.
4100         (DWARF2_DEBUGGING_INFO): Define.
4101         (PREFERRED_DEBUGGING_TYPE): Define.
4102         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
4103         (EXCEPTION_SECTION): Define.
4104         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4105         * config/darwin.c (darwin_encode_section_info): Handle case of
4106         DECL_INITIAL being error_mark_node.
4107
4108 2001-10-16  Richard Henderson  <rth@redhat.com>
4109
4110         * alpha.c (current_file_function_operand): Don't fail for profiling.
4111         (direct_call_operand): New.
4112         * alpha-protos.h: Declare it.
4113         * alpha.h (EXTRA_CONSTRAINT): Use it.
4114         (PREDICATE_CODES): Add it.
4115         (ASM_OUTPUT_MI_THUNK): Remove.
4116         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
4117         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
4118
4119 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
4120
4121         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
4122         (JUMP_TABLES_IN_TEXT_SECTION): Define.
4123
4124 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
4125
4126         * cfg.c (free_edge): Break out from ....
4127         (remove_edge): ... here.
4128         (clear_edges): Use free_edge.
4129
4130         * att.h (ASM_QUAD): Add comment.
4131         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
4132
4133 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
4134
4135         * i386.c (split_ti): New function.
4136         (ix86_split_to_parts): Support TImodes.
4137         * i386.h (VALID_INT_MODE_P): Add TImode.
4138         * i386.md (movdi splitter): Fix.
4139         (movti): Support 64bit integer registers.
4140         (movti_rex64): New function and splitter.
4141
4142         * i386.c (*_cost): Add movsx/movzx cost.
4143         * i386.h (struct processor_costs): Add movsx/movzx fields.
4144         (RTX_COSTS): Handle zero/sign extend + avoid believing that
4145         64bit operations require split on 64bit machine.
4146         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
4147
4148         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
4149         (ix86_expand_move): Avoid pushes of memory if size does not match;
4150         move long constants to register.
4151         (x86_initialize_trampoline): Fix mode.
4152         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
4153         Use ASM_QUAD on 64bit.
4154         * i386.md (test pattern): Disallow impossible constants.
4155         (tablejump PIC expander): Fix emitting of sum.
4156         (movdicc_rex64): Rename to movdicc.
4157         * linux64.h (LINK_SPEC): Add missing '%'.
4158
4159 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
4160
4161         * tree-inline.c (inlinable_function_p): Leave it up to the
4162         front-end to turn -finline-functions into DECL_INLINE set for all
4163         functions.
4164
4165 2001-10-16  Stan Shebs  <shebs@apple.com>
4166
4167         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
4168
4169 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
4170
4171         * recog.c: Formatting and comment typo fixes.
4172
4173         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
4174         version in single tree build.
4175         * configure: Regenerate.
4176
4177 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
4178
4179         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
4180         MODE arguments to gen_rtx and compare operand with const0_rtx.
4181
4182 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4183
4184         * system.h: Poison old unused target macros.
4185         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
4186         * config/stormy16/stormy16.c: Update references to obsolete macros.
4187         * config/stormy16/stormy16.h: Similarly.
4188         * config/stormy16/stormy16.md: Similarly.
4189         * config/cris/cris.h: Similarly.
4190
4191 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4192
4193         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
4194         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
4195         cpp_register_pragma): Update accordingly.
4196
4197 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
4198
4199         * c-pragma.h (cpp_register_pragma_space): Remove.
4200         * cpplib.h (cpp_register_pragma_space): Remove.
4201         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
4202         (cpp_register_pragma_space): Remove.
4203         (cpp_register_pragma): Simplify using lookup_pragma_entry,
4204         add sanity checks.
4205         (do_pragma): Similarly.
4206         (_cpp_init_internal_pragmas): Don't register namespaces.
4207
4208         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
4209         Don't register namespaces.
4210         * cp/lex.c (init_cp_pragma): Similarly.
4211         * doc/tm.texi: Update.
4212
4213 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4214
4215         PR c/4157
4216         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
4217
4218 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
4219
4220         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
4221         add scheduling support.
4222         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
4223         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
4224         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
4225
4226
4227 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
4228
4229         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
4230         missing CONSTANT_P test in core GCC.
4231
4232 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
4233
4234         * cppmain.c (struct printer): New member source.
4235         (scan_translation_unit): Fix spacing at start of lines.
4236         (cb_line_change): Update.
4237
4238         * gcc.dg/cpp/spacing2.c: New test.
4239
4240 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
4241
4242         * config/cris/arit.c: Use __builtin_labs, not abs.
4243
4244         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
4245
4246         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
4247         misplaced sprintf and fprintf argument.
4248
4249 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
4250
4251         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
4252         * configure.in, Makefile.in: Take out obsolete check-po logic.
4253         * configure, config.in: Regenerate.
4254
4255 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
4256
4257         * objc/objc-act.c (finish_objc): Correct precondition for emitting
4258         symtab declarations.
4259
4260 2001-10-12  Stan Shebs  <shebs@apple.com>
4261
4262         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
4263         declarations of arguments and local variables.
4264
4265 2001-10-12  Christopher Faylor  <cgf@redhat.com>
4266
4267         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
4268         ENDFILE_SPEC definition.
4269
4270 2001-10-12  Kazu Hirata  <kazu@hxi.com>
4271
4272         * gthr-dce.h: Fix comment formatting.
4273         * gthr-posix.h: Likewise.
4274         * gthr-single.h: Likewise.
4275         * gthr-solaris.h: Likewise.
4276         * gthr-vxworks.h: Likewise.
4277         * gthr-win32.h: Likewise.
4278
4279 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
4280
4281         * final.c (output_asm_insn): Make sure assembly dialects are
4282         terminated, not nested.  Output `|' and `}' characters if they
4283         don't appear inside assembly dialect selection.
4284         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
4285         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
4286         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
4287         strsetsi_rex_1): Add {} braces.
4288
4289 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
4290
4291         * toplev.c (compile_file): Ignore return value from yyparse.
4292         Always pop any nested binding levels after yyparse returns.
4293
4294 2001-10-11  Richard Henderson  <rth@redhat.com>
4295
4296         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
4297
4298 2001-10-11  Richard Henderson  <rth@redhat.com>
4299
4300         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
4301         fall back to add_AT_long_long for large CONST_INT.
4302
4303 2001-10-11  Richard Henderson  <rth@redhat.com>
4304
4305         * config/i386/i386.md (setcc splitters): Add four splitters to
4306         simplify compound compares that simplify_comparison can't handle.
4307
4308 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
4309
4310         * cpplex.c (digraph_spellings, token_spellings): Make static.
4311
4312 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4313
4314         * unroll.c (loop_iterations): Fixup last patch.
4315
4316 2001-10-11  Richard Henderson  <rth@redhat.com>
4317
4318         * rtl.h (REG_VTABLE_REF): New.
4319         * rtl.c (reg_note_name): Add it.
4320         * combine.c (distribute_notes): Handle it.
4321         * final.c (final_scan_insn): Handle it.
4322         * tree.def (VTABLE_REF): New.
4323         * expr.c (expand_expr): Handle it.
4324         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
4325         * output.h: Declare them.
4326
4327 2001-10-11  Richard Henderson  <rth@redhat.com>
4328
4329         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
4330         for a DECL_INITIAL.
4331
4332 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
4333
4334         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
4335         available in 64-bit mode.
4336
4337 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
4338
4339         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
4340         cris-*-linux* cases.
4341         * config/cris/cris-protos.h: New file.
4342         * config/cris/cris.c: New file.
4343         * config/cris/cris.h: New file.
4344         * config/cris/cris.md: New file.
4345         * config/cris/linux.h: New file.
4346         * config/cris/aout.h: New file.
4347         * config/cris/arit.c: New file.
4348         * config/cris/cris_abi_symbol.c: New file.
4349         * config/cris/mulsi3.asm: New file.
4350         * config/cris/t-aout: New file.
4351         * config/cris/t-cris: New file.
4352         * config/cris/t-elfmulti: New file.
4353         * config/cris/t-linux: New file.
4354         * doc/invoke.texi: Add CRIS options.
4355         * doc/install.texi (Specific): Add blurb for CRIS.
4356
4357 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
4358
4359         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
4360         before using it.
4361         * config/float/i32.h: Likewise.
4362         * config/float-i386.h: Likewise.
4363         * config/float-i64.h: Likewise.
4364         * config/float-m68k.h: Likewise.
4365         * config/float-sh.h: Likewise.
4366         * config/float-sparc.h: Likewise.
4367
4368 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
4369
4370         * doc/contrib.texi: Add note about CRIS port to my entry.
4371
4372 2001-10-11  Kazu Hirata  <kazu@hxi.com>
4373
4374         * basic-block.h: Fix formatting.
4375         * bitmap.h: Likewise.
4376         * cpplib.h: Likewise.
4377         * c-tree.h: Likewise.
4378         * diagnostic.h: Likewise.
4379         * flags.h: Likewise.
4380         * ggc.h: Likewise.
4381         * longlong.h: Likewise.
4382         * real.h: Likewise.
4383         * reload.h: Likewise.
4384         * rtl.h: Likewise.
4385         * tree.h: Likewise.
4386
4387 2001-10-10  Richard Henderson  <rth@redhat.com>
4388
4389         * c-parse.in (asm_operand): Allow named operands.
4390         * genconfig.c (max_recog_operands): Set to 29.
4391         * local-alloc.c (requires_inout): Skip multiple digits.
4392         * recog.c (asm_operand_ok): Likewise.
4393         (preprocess_constraints): Use strtoul for matching constraints.
4394         (constrain_operands): Likewise.
4395         * regmove.c (find_matches): Likewise.
4396         * reload.c (find_reloads): Likewise.
4397         * stmt.c (parse_output_constraint): Don't reject in-out
4398         constraint on operands > 9.  Reject '[' in constraint.
4399         (expand_asm_operands): Handle named operands.  Use strtoul
4400         for matching constraints.
4401         (check_operand_nalternatives): Split out from expand_asm_operands.
4402         (check_unique_operand_names): New.
4403         (resolve_operand_names, resolve_operand_name_1): New.
4404
4405         * doc/extend.texi (Extended Asm): Document named operands.
4406         * doc/md.texi (Simple Constraints): Document matching constraints
4407         on operands > 9.
4408
4409 2001-10-10  Richard Henderson  <rth@redhat.com>
4410
4411         * combine.c (try_combine): Handle a SEQUENCE of one insn.
4412
4413         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
4414         (jcc splitters): Add two splitters to simplify compound compares
4415         that simplify_comparison can't handle.
4416
4417 2001-10-10  Richard Henderson  <rth@redhat.com>
4418
4419         * langhooks.c: Include langhooks.h.
4420         * Makefile.in (langhooks.o): Depend on it.
4421
4422 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
4423
4424         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
4425         should not be considered as a no-op.
4426         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
4427
4428 2001-10-10  Stan Shebs  <shebs@apple.com>
4429
4430         * alias.c: Remove uses of "register" specifier in declarations
4431         of arguments and local variables.
4432         * c-common.c: Ditto.
4433         * c-convert.c: Ditto.
4434         * c-decl.c: Ditto.
4435         * c-format.c: Ditto.
4436         * c-semantics.c: Ditto.
4437         * c-typeck.c: Ditto.
4438         * caller-save.c: Ditto.
4439         * calls.c: Ditto.
4440         * cfg.c: Ditto.
4441         * cfgbuild.c: Ditto.
4442         * cfgrtl.c: Ditto.
4443         * collect2.c: Ditto.
4444         * combine.c: Ditto.
4445         * convert.c: Ditto.
4446         * cppexp.c: Ditto.
4447         * cppfiles.c: Ditto.
4448         * cse.c: Ditto.
4449         * dbxout.c: Ditto.
4450         * defaults.h: Ditto.
4451         * df.c: Ditto.
4452         * dwarf2out.c: Ditto.
4453         * dwarfout.c: Ditto.
4454         * emit-rtl.c: Ditto.
4455         * explow.c: Ditto.
4456         * expmed.c: Ditto.
4457         * expr.c: Ditto.
4458         * final.c: Ditto.
4459         * fix-header.c: Ditto.
4460         * floatlib.c: Ditto.
4461         * flow.c: Ditto.
4462         * fold-const.c: Ditto.
4463         * function.c: Ditto.
4464         * gcc.c: Ditto.
4465         * gcse.c: Ditto.
4466         * gen-protos.c: Ditto.
4467         * genattrtab.c: Ditto.
4468         * gencheck.c: Ditto.
4469         * genconfig.c: Ditto.
4470         * genemit.c: Ditto.
4471         * genextract.c: Ditto.
4472         * genflags.c: Ditto.
4473         * gengenrtl.c: Ditto.
4474         * genoutput.c: Ditto.
4475         * genpeep.c: Ditto.
4476         * genrecog.c: Ditto.
4477         * gensupport.c: Ditto.
4478         * global.c: Ditto.
4479         * gmon.c: Ditto.
4480         * graph.c: Ditto.
4481         * haifa-sched.c: Ditto.
4482         * hard-reg-set.h: Ditto.
4483         * hash.c: Ditto.
4484         * integrate.c: Ditto.
4485         * jump.c: Ditto.
4486         * lists.c: Ditto.
4487         * local-alloc.c: Ditto.
4488         * loop.c: Ditto.
4489         * mips-tdump.c: Ditto.
4490         * mips-tfile.c: Ditto.
4491         * optabs.c: Ditto.
4492         * prefix.c: Ditto.
4493         * print-rtl.c: Ditto.
4494         * read-rtl.c: Ditto.
4495         * real.c: Ditto.
4496         * recog.c: Ditto.
4497         * reg-stack.c: Ditto.
4498         * regclass.c: Ditto.
4499         * regmove.c: Ditto.
4500         * reload.c: Ditto.
4501         * reload1.c: Ditto.
4502         * reorg.c: Ditto.
4503         * resource.c: Ditto.
4504         * rtl.c: Ditto.
4505         * rtlanal.c: Ditto.
4506         * scan.c: Ditto.
4507         * sched-deps.c: Ditto.
4508         * sched-rgn.c: Ditto.
4509         * sdbout.c: Ditto.
4510         * simplify-rtx.c: Ditto.
4511         * stmt.c: Ditto.
4512         * stor-layout.c: Ditto.
4513         * toplev.c: Ditto.
4514         * tradcif.y: Ditto.
4515         * tradcpp.c: Ditto.
4516         * tree.c: Ditto.
4517         * unroll.c: Ditto.
4518         * varasm.c: Ditto.
4519         * xcoffout.c: Ditto.
4520
4521 2001-10-10  Richard Henderson  <rth@redhat.com>
4522
4523         * rtl.h (can_reverse_comparison_p): Remove.
4524
4525 2001-10-10  Christopher Faylor <cgf@redhat.com>
4526
4527         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
4528         used.
4529
4530 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4531
4532         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
4533         (Thanks to Chris Faylor for suggesting macro name).
4534         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
4535         WIN32 defines.
4536         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
4537         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
4538         (MATH_LIBRARY): Undef before definition.
4539         (OUTPUT_QUOTED_STRING): Likewise.
4540         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
4541
4542 2001-10-10  Richard Henderson  <rth@redhat.com>
4543
4544         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
4545         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
4546         a tristate comparison value.
4547         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
4548
4549 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4550
4551         PR c++/4512
4552         * unroll.c (loop_iterations): Ignore insns generated by loop
4553         unrolling.
4554
4555         * config.gcc (mips*-*-gnu*): Delete support.
4556         * config/mips/gnu.h: Remove.
4557
4558 2001-10-10  Kazu Hirata  <kazu@hxi.com>
4559
4560         * calls.c: Fix formatting.
4561         * c-decl.c: Likewise.
4562         * cfgcleanup.c: Likewise.
4563         * combine.c: Likewise.
4564         * cppfiles.c: Likewise.
4565         * cpplib.c: Likewise.
4566         * cppmacro.c: Likewise.
4567         * crtstuff.c: Likewise.
4568         * cse.c: Likewise.
4569         * dwarf2out.c: Likewise.
4570         * expmed.c: Likewise.
4571         * expr.c: Likewise.
4572         * fold-const.c: Likewise.
4573         * function.c: Likewise.
4574         * gcse.c: Likewise.
4575         * genattrtab.c: Likewise.
4576         * ggc-page.c: Likewise.
4577         * integrate.c: Likewise.
4578         * libgcc2.c: Likewise.
4579         * loop.c: Likewise.
4580         * optabs.c: Likewise.
4581         * profile.c: Likewise.
4582         * protoize.c: Likewise.
4583         * real.c: Likewise.
4584         * recog.c: Likewise.
4585         * reload1.c: Likewise.
4586         * reload.c: Likewise.
4587         * reorg.c: Likewise.
4588         * resource.c: Likewise.
4589         * sched-rgn.c: Likewise.
4590         * sdbout.c: Likewise.
4591         * stmt.c: Likewise.
4592         * toplev.c: Likewise.
4593         * varasm.c: Likewise.
4594
4595 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
4596
4597         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
4598         * Makefile.in (langhooks.o): Add dependencies.
4599
4600 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
4601
4602         * rs6000.c (rs6000_emit_load_toc_table): Don't
4603         strdup the toc label.
4604         (create_TOC_reference): Likewise.
4605
4606 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4607
4608         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
4609         version default.
4610
4611 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4612
4613         * config/i386/i386.c (ix86_attribute_table): Correct
4614         min_len, max_len fields for dllimport, dllexport and shared.
4615
4616 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
4617
4618         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
4619         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
4620         Consistently use "nonzero" instead of "non-zero".
4621
4622 2001-10-09  Kazu Hirata  <kazu@hxi.com>
4623
4624         * acconfig.h: Fix comment formatting.
4625         * c-dump.h: Likewise.
4626         * c-tree.h: Likewise.
4627         * conditions.h: Likewise.
4628         * expr.h: Likewise.
4629         * function.h: Likewise.
4630         * gthr.h: Likewise.
4631         * hwint.h: Likewise.
4632         * integrate.h: Likewise.
4633         * intl.h: Likewise.
4634         * loop.h: Likewise.
4635         * optabs.h: Likewise.
4636
4637 2001-10-09  Kazu Hirata  <kazu@hxi.com>
4638
4639         * c-common.h: Fix comment formatting.
4640         * c-dump.c: Likewise.
4641         * cfg.c: Likewise.
4642         * diagnostic.h: Likewise.
4643         * except.c: Likewise.
4644         * gcc.h: Likewise.
4645         * gcov-io.h: Likewise.
4646         * genattrtab.c: Likewise.
4647         * output.h: Likewise.
4648         * predict.h: Likewise.
4649         * reload1.c: Likewise.
4650         * reload.h: Likewise.
4651         * resource.h: Likewise.
4652         * scan.h: Likewise.
4653         * system.h: Likewise.
4654         * tree.h: Likewise.
4655         * tree-inline.c: Likewise.
4656         * tsystem.h: Likewise.
4657         * varasm.c: Likewise.
4658         * xcoffout.h: Likewise.
4659
4660 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
4661
4662         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
4663
4664 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
4665
4666         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
4667         config/i386/i386elf.h, config/i386/netbsd-elf.h,
4668         config/i386/netware.h, config/mcore/gfloat.h,
4669         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
4670         config/netware.h, gccbug.in: Update FSF address.
4671
4672 2001-10-09  Kazu Hirata  <kazu@hxi.com>
4673
4674         * c-common.c: Fix comment typos.
4675         * cfgrtl.c: Likewise.
4676         * collect2.c: Likewise.
4677         * cpplex.c: Likewise.
4678         * doloop.c: Likewise.
4679         * dwarf2out.c: Likewise.
4680         * dwarfout.c: Likewise.
4681         * expr.c: Likewise.
4682         * fold-const.c: Likewise.
4683         * gcc.c: Likewise.
4684         * gcov.c: Likewise.
4685         * gcse.c: Likewise.
4686         * global.c: Likewise.
4687         * ifcvt.c: Likewise.
4688         * loop.c: Likewise.
4689         * optabs.c: Likewise.
4690         * protoize.c: Likewise.
4691         * regclass.c: Likewise.
4692         * reorg.c: Likewise.
4693         * rtl.h: Likewise.
4694         * stmt.c: Likewise.
4695         * tree.h: Likewise.
4696         * doc/cpp.texi: Likewise.
4697         * doc/c-tree.texi: Likewise.
4698         * doc/extend.texi: Likewise.
4699         * doc/invoke.texi: Likewise.
4700         * doc/objc.texi: Likewise.
4701         * doc/tm.texi: Likewise.
4702
4703 2001-10-08  Richard Henderson  <rth@redhat.com>
4704
4705         * varasm.c (set_named_section_flags): Initialize "declared".
4706
4707 2001-10-08  Robert Lipe  <robertlipe@usa.net>
4708
4709         * varasm.c (struct in_named_entry): Add declared.
4710         (named_section_first_declaration): New function.
4711         (default_elf_asm_named_section): Use it.
4712         * output.h (named_section_first_declaration): New.
4713
4714 2001-10-08  Richard Henderson  <rth@redhat.com>
4715
4716         * i386.md (movsi_xor): Export.
4717         (setcc peep2): Use it when available; add an alternative to
4718         match zero_extendhisi2_and.
4719
4720 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4721
4722         * romp-protos.h (romp_initialize_trampoline): New function.
4723         * romp.c (romp_initialize_trampoline): Likewise.
4724         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
4725         romp_initialize_trampoline.
4726
4727 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4728
4729         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
4730         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4731         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4732         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4733
4734 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4735
4736         * unroll.c (loop_iterations): Extend check for multiple back edges.
4737
4738 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
4739
4740         * langhooks.h: New file.
4741         * Makefile.in (OBJS): Added langhooks.o.
4742         (c-lang.o): Depend on langhooks.h.
4743         (c-common.o): Don't depend on tree-inline.h.
4744         (tree-inline.o): Depend on toplev.h.
4745         (langhooks.o): New rule.
4746         * c-common.c: Don't include tree-inline.h.
4747         (c_mark_lang_decl): Mark argument c as unused.
4748         (c_common_lang_init): Don't initialize hooks here.
4749         * c-lang.c: Include langhooks.h, then override some macros.
4750         (lang_hooks): Initialize with macros in langhooks.h.
4751         (c_init): Don't initialize hooks here.
4752         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
4753         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
4754         * tree-inline.c: Include toplev.h.  Don't define hook variables.
4755         * tree-inline.h: Don't define hook types nor declare hook
4756         variables.  Move macros to...
4757         * langhooks.c: ... new file, as functions.  Adjust all callers.
4758
4759 2001-10-08  Jeffrey A Law  <law@cygnus.com>
4760
4761         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
4762         purge_mem_unchanging_flag on all instructions, not just on those
4763         before NOTE_INSN_FUNCTION_BEG.
4764
4765 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4766
4767         * cppmacro.c (_cpp_create_definition): Leave comments off.
4768
4769         * doc/cpp.texi: Update.
4770
4771 2001-10-08  DJ Delorie  <dj@redhat.com>
4772
4773         * c-decl.c (grokfield): Make sure the only unnamed fields
4774         we're allowing are either structs or unions.
4775         * doc/extend.texi: Add documentation for the unnamed field
4776         extension.
4777
4778 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
4779
4780         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
4781         * configure.in: Use it.
4782         * configure: Regenerated.
4783         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
4784         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
4785
4786 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4787
4788         * cppfiles.c (open_file): Don't mark zero-length files
4789         never-reread here.  Don't output diagnostics here either.
4790         (stack_include_file): Mark them never-reread here.
4791         (_cpp_read_file): Update.
4792
4793 2001-10-08  Richard Henderson  <rth@redhat.com>
4794
4795         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
4796
4797 2001-10-08  Richard Henderson  <rth@redhat.com>
4798
4799         * expr.c (store_expr): When converting a CONST_INT for storage
4800         in a SUBREG, convert it to both SUBREG modes before stripping
4801         the SUBREG.
4802
4803 2001-10-08  Richard Henderson  <rth@redhat.com>
4804
4805         * varasm.c (restore_varasm_status): New.
4806         * function.h: Declare it.
4807         * function.c (pop_function_context_from): Call it.
4808
4809 2001-10-08  Richard Henderson  <rth@redhat.com>
4810
4811         * c-common.h (struct c_lang_decl): Add declared_inline.
4812         * c-tree.h (DECL_DECLARED_INLINE_P): New.
4813         * c-lang.c (c_disregard_inline_limits): Use it.
4814         * c-decl.c (duplicate_decls): Likewise.
4815         (pushdecl, redeclaration_error_message): Likewise.
4816         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
4817         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
4818         Set DECL_INLINE if -finline-functions.
4819         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
4820
4821 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4822
4823         * cppmacro.c (funlike_invocation_p): Move some logic to caller
4824         in enter_macro_context.  Create a padding token in its own context
4825         if necessary when the search for '(' fails.
4826         (enter_macro_context): Update.
4827
4828 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
4829
4830         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
4831         genmultilib, toplev.c: Fix spelling errors of "separate" as
4832         "seperate", and corresponding spelling errors of related words.
4833
4834 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4835
4836         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
4837         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
4838         Likewise.
4839         * c-dump.c (dump_option_value_info): Likewise.
4840         * c-format.c (format_length_info, format_char_info,
4841         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
4842         * collect2.c (names): Likewise.
4843         * cppdefault.h (default_include): Likewise.
4844         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
4845         * flow.c (life_analysis): Likewise.
4846         * gcc.c (dir_separator_str, modify_target, option_map,
4847         target_option_translations, spec_list_1, extra_specs_1,
4848         init_spec): Likewise.
4849         * gcov.c (gcov_version_string): Likewise.
4850         * genattr.c (write_units): Likewise.
4851         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
4852         * gengenrtl.c (rtx_definition, defs): Likewise.
4853         * genrecog.c (pred_table): Likewise.
4854         * global.c (global_alloc): Likewise.
4855         * lcm.c (optimize_mode_switching): Likewise.
4856         * local-alloc.c (find_free_reg): Likewise.
4857         * params.h (param_info): Likewise.
4858         * predict.c (predictor_info): Likewise.
4859         * protoize.c (unexpansion_struct): Likewise.
4860         * real.c (bmask): Likewise.
4861         * recog.h (insn_operand_data, insn_data): Likewise.
4862         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
4863         * stmt.c (expand_nl_goto_receiver): Likewise.
4864         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
4865         target_switches, target_options): Likewise.
4866         * tradcif.y (token, tokentab2, yylex): Likewise.
4867         * tree.h (attribute_spec): Likewise.
4868
4869         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
4870         Likewise.
4871         * arc.c (arc_output_function_epilogue): Likewise.
4872         * arm.c (processors, all_cores, all_architectures,
4873         arm_override_options, isr_attribute_arg, isr_attribute_args,
4874         arm_isr_value): Likewise.
4875         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
4876         Likewise.
4877         * c4x.c (c4x_int_reglist): Likewise.
4878         * d30v.c (override_options): Likewise.
4879         * h8300.c (shift_insn): Likewise.
4880         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
4881         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
4882         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
4883         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
4884         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
4885         * i386.h (processor_costs, ix86_cost): Likewise.
4886         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
4887         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
4888         * m68k.c (codes_68881, codes_FPA): Likewise.
4889         * m88k.c (mode_from_align, max_from_align, all_from_align,
4890         best_from_align, m_options): Likewise.
4891         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
4892         * mcore.c (mode_from_align): Likewise.
4893         * mips/elf64.h (UNIQUE_SECTION): Likewise.
4894         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
4895         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
4896         * mips.h (mips_regno_to_class): Likewise.
4897         * ns32k.c (scales): Likewise.
4898         * pa.c (import_string, magic_milli): Likewise.
4899         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
4900         * sparc.c (leaf_reg_remap, sparc_override_options,
4901         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
4902         Likewise.
4903         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
4904
4905 2001-10-07  Dale Johannesen  <dalej@apple.com>
4906
4907         * reload1.c (reload_reg_free_p): Teach register interference
4908         checking that multiple output reloads are emitted in
4909         reverse order.
4910         reload1.c (reload_reg_reaches_end_p):  Ditto.
4911         reload1.c (reloads_conflict):  Ditto.
4912
4913 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
4914
4915         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
4916         NULL_TREE inside @code.
4917
4918 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
4919
4920         * doc/gcc.texi: Document consistent style of "32-bit",
4921         "Objective-C", and "@code{NULL}".
4922
4923 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
4924
4925         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
4926         (cpp_token_len, cpp_spell_token, cpp_output_token,
4927         _cpp_equiv_tokens): Handle it.
4928         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
4929         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
4930         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
4931         error messages.
4932
4933 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4934
4935         * gcc.c (default_compilers): Remove .ada.
4936
4937 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4938
4939         * doc/cppinternals.texi: Update.
4940
4941 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
4942
4943         * gcc.c (main): Set this_file_error if the appropriate
4944         compiler for a language has not been installed.
4945
4946 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
4947
4948         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
4949
4950 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
4951
4952         * gccbug.in (CATEGORIES): Add ada.
4953
4954 2001-10-05  Catherine Moore  <clm@redhat.com>
4955
4956         * config/stormy16/stormy-abi:  Document abi changes.
4957         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
4958         (ICALL_REGS): New register class.
4959         (NUM_ARGUMENT_REGISTERS): Now 6.
4960         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
4961         in registers.
4962         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
4963         * config/stormy16.md (call_internal, call_value_internal,
4964         indirect_jump): Use new 'z' constraint.
4965
4966 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4967
4968         * doc/cppinternals.texi: Update.
4969
4970 2001-10-05  Richard Henderson  <rth@redhat.com>
4971
4972         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
4973         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
4974         the gas section-name-as-label feature.
4975
4976 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4977
4978         * doc/cppinternals.texi: Update.
4979
4980 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4981
4982         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
4983         to ensure valid SImode constants.
4984
4985 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
4986
4987         * Makefile.in (c-decl.o): Depend on tree-inline.h.
4988         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
4989         * c-decl.c: Include tree-inline.h.
4990         (c_expand_body): Call optimize_inline_calls. Determine whether
4991         a function is inlinable upfront, and only clear
4992         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
4993         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
4994         (c_disregard_inline_limits): New function.
4995         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
4996         (c_post_options): Enable tree inlining if inlining is enabled.
4997         Don't inline trees when instrumenting functions.
4998         (c_init): Initialize lang_disregard_inline_limits and
4999         lang_cannot_inline_tree_fn.
5000         * tree-inline.c (initialize_inlined_parameters): Handle calls
5001         with fewer arguments than declared parameters, and fewer
5002         parameters than passed arguments.  Don't assume value is a
5003         DECL.
5004         (declare_return_variable): Convert return value back to the
5005         original type, if it was promoted.
5006         (tree_inlinable_function_p): New function.
5007         (inlinable_function_p): Don't look at DECL_INLINE if we're
5008         inlining all functions.  Make it work with a NULL id.
5009         Re-check DECL_UNINLINABLE after language-specific checks.
5010         * tree-inline.h (tree_inlinable_function_p): Declare it.
5011         * integrate.c (save_for_inline): Don't bother to prepare argvec
5012         when not inlining.
5013         * cse.c (check_for_label_ref): Don't check deleted labels.
5014
5015         * Makefile.in (tree-inline.o): Depend on newly-included headers.
5016         * tree-inline.c: Include headers needed for the functions moved in.
5017         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
5018         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
5019         (copy_body, initialize_inlined_parameters): Likewise.
5020         (declare_return_variable, inlinable_function_p): Likewise.
5021         (expand_call_inline, expand_calls_inline): Likewise.
5022         (optimize_inline_calls, clone_body): Likewise.
5023         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
5024         (copy_tree_r, remap_save_expr): Likewise.
5025
5026 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
5027
5028         * Makefile.in (OBJS): Added tree-inline.o.
5029         (c-common.o): Depend on tree-inline.h.
5030         (tree-inline.o): New target.
5031         * c-common.c: Include tree-inline.h.
5032         (c_mark_lang_decl): Don't mark saved_tree.
5033         (c_common_lang_init): Set lang_anon_aggr_type_p.
5034         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
5035         (struct c_lang_decl): Moved saved_tree to tree_decl.
5036         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
5037         * integrate.h (function_attribute_inlinable_p): Declare it.
5038         * integrate.c (function_attribute_inlinable_p): Export it.
5039         * tree-inline.c: New file.  Define variables declared in...
5040         * tree-inline.h: New file.  Declare functions to be moved to
5041         tree-inline.c.  Define macros and declare types and hooks for
5042         language-specific tree inlining.
5043         (flag_inline_trees): Moved definition from cp/decl2.c.
5044         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
5045         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
5046         (struct tree_decl): Moved saved_tree from c_lang_decl and
5047         inlined_fns from C++'s lang_decl.
5048
5049 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
5050
5051         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
5052         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
5053
5054 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
5055
5056         * doc/cppinternals.texi: Update.
5057
5058 2001-10-04  Eric Christopher  <echristo@redhat.com>
5059
5060         * config/mips/mips.c (init_cumulative_args): Remember to set
5061         cum->prototype.
5062         * config.gcc: Redo linux configuration. Add target_cpu_default
5063         of soft-float to all mipsisa32 combinations and tx39.
5064         * config/mips/linux.h: Remove include of mips.h.
5065
5066 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
5067
5068         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
5069         HOST_LDFLAGS and HOST_CPPFLAGS.
5070
5071 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
5072
5073         * c-parse.in (objc_inherit_code, objc_pq_context,
5074         objc_public_flag): Make static.
5075         (objc_interface_context, objc_implementation_context,
5076         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
5077         global tree array in objc/objc-act.[ch].
5078         (methoddef): Remove unnecessary code.
5079
5080         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
5081         Hoist struct definitions to objc-act.h.
5082         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
5083         cat_count): Place declaration in objc-act.h.
5084         (objc_tree_index): Move enumeration to objc-act.h.
5085         (objc_global_trees): Place declaration and macro accessors in
5086         objc-act.h.
5087         (implementation_context): Remove duplicate; use
5088         objc_implementation_context instead:
5089         (method_context): Remove duplicate; use objc_method_context
5090         instead.
5091         (objc_ellipsis_node, objc_method_prototype_template,
5092         implemented_classes, function_type): Move global vars to
5093         objc_global_trees.
5094         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
5095         (build_message_expr): Move actual construction of ObjC message
5096         send nodes to finish_message_expr.
5097         (finish_message_expr): New routine, contains code formerly in
5098         build_message_expr.
5099         * objc/objc-act.h (finish_message_expr): New prototype.
5100         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
5101         declarations; these vars are now part of objc_global_trees.
5102         (objc_tree_index, objc_global_trees): Move definitions from
5103         objc-act.c.
5104         * objc/objc-tree.def: Update copyright info.
5105
5106 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
5107
5108         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
5109         op is NULL.
5110         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
5111         only if TARGET_ARCH64.
5112
5113 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
5114
5115         * doc/extend.texi: Fix some problems with previous checkin.
5116         * doc/invoke.texi: Likewise.
5117
5118 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5119
5120         * cpphash.h: Update comments.
5121         (cpp_context): Update.
5122         (spec_nodes): Remove n__Pragma.
5123         * cppinit.c (cpp_create_reader): Update.
5124         (builtin_array): Add _Pragma.
5125         * cpplib.h: Update comments.
5126         (NODE_DISABLED, BT_PRAGMA): New.
5127         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
5128         * cppmacro.c (struct cpp_macro): Remove disabled.
5129         (builtin_macro): Return int, handle _Pragma, push the new token
5130         on the context stack.
5131         (funlike_invocation_p): Unconstify, update.
5132         (enter_macro_context): Handle builtins here.
5133         (replace_args, push_token_context, push_ptoken_context):
5134         Update for prototype changes.
5135         (_cpp_pop_context): Update.
5136         (cpp_get_token): Don't handle buitins, nor _Pragma here.
5137         (cpp_sys_macro_p): Update.
5138         (_cpp_free_definition): Clear disabled flag.
5139         (_cpp_create_definition): Upate.
5140         * cppmain.c: Update comments.
5141
5142 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
5143                                 Andreas Jaeger <aj@suse.de>,
5144                                 Jan Hubicka    <jh@suse.cz>
5145
5146         * doc/invoke.texi (i386 Options): Document x86-64 options.
5147         (i386 and x86-64 Options): Rename i386 options section.
5148
5149         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
5150         (TARGET_SWITCHES): Add -munwind-info.
5151         (MASK_NO_UNWIND_INFO): New.
5152         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
5153         biarch compilation.
5154         (ASM_OUTPUT_DOUBLE_INT): New.
5155
5156         * config/i386/linux64.h: New spec file for Linux x86-64 support.
5157         * config.gcc: Fix tm_file settings for x86-64.
5158         * config/i386/x86-64.h: New file with OS independent x86-64
5159         definitions.
5160         * config/i386/biarch64.h: New file used to configure compiler
5161         to biarch/64bit compilation.
5162
5163         * config/i386/i386.c: (override_options): Set flags default
5164         for 64bit compilation.
5165
5166 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
5167
5168         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
5169         (ix86_expand_int_movcc): Optimize DImode conditional moves with
5170         constants on x86_64.
5171         (ix86_attr_length_immediate_default): Support MODE_DI.
5172         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
5173         condition.
5174         (indirect_jump, tablejump): Turn into expander.
5175
5176 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5177
5178         * c-common.c (c_format_attribute_table): Make format and
5179         format_arg attributes apply to function types rather than to
5180         decls.
5181         (is_valid_printf_arglist): Construct an attribute list and pass
5182         that to check_function_format rather than a name.
5183         * c-common.h (check_function_format): Adjust prototype.
5184         * c-decl.c (duplicate_decls): Preserve attributes from type of
5185         built-in decl when allowing for harmless conflict in types.
5186         * c-format.c (record_function_format,
5187         record_international_format, function_format_list,
5188         international_format_info, international_format_list): Remove.
5189         (function_format_info): Remove next, name and assembler_name.
5190         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
5191         (decode_format_attr): New.
5192         (handle_format_attribute): Handle receiving a type rather than a
5193         decl.  Call decode_format_attr.  Store format information in a
5194         function_format_info.
5195         (handle_format_arg_attribute): Correct comment.  Handle receiving
5196         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
5197         arg_num.
5198         (check_format_info_recurse, check_format_info_main): Take argument
5199         numbers as unsigned HOST_WIDE_INT.
5200         (check_function_format): Take a list of attributes from the
5201         function type rather than a name or assembler name.  Check for
5202         format attributes in that list and the attributes on the type of
5203         the current function rather than looking through
5204         function_format_list.
5205         (check_format_info): Use unsigned HOST_WIDE_INT for argument
5206         numbers.
5207         (check_format_info_recurse): Take format_arg attributes from the
5208         type of the function calls rather than using
5209         international_format_list.  Allow for multiple format_arg
5210         attributes.
5211         * c-typeck.c (build_function_call): Pass type attributes to
5212         check_function_format rather than name or assembler name.  Don't
5213         require there to be a name or assembler name to check formats.
5214
5215 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5216
5217         * attribs.c (decl_attributes): Possibly call
5218         insert_default_attributes to insert default attributes on
5219         functions in a lazy manner.
5220         * builtin-attrs.def: New file; define the default format and
5221         format_arg attributes.
5222         * c-common.c (c_format_attribute_table): Move to earlier in the
5223         file.
5224         (c_common_nodes_and_builtins): Initialize format_attribute_table.
5225         (enum built_in_attribute, built_in_attributes,
5226         c_attrs_initialized, c_init_attributes,
5227         c_common_insert_default_attributes): New.
5228         (c_common_lang_init): Don't initialize format_attribute_table.  Do
5229         call c_init_attributes.
5230         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
5231         * c-common.h (init_function_format_info): Don't declare.
5232         (c_common_insert_default_attributes): Declare.
5233         * c-decl.c (implicitly_declare, builtin_function): Call
5234         decl_attributes.
5235         (init_decl_processing): Don't call init_function_format_info.
5236         (insert_default_attributes): New.
5237         * c-format.c (handle_format_attribute,
5238         handle_format_arg_attribute): Be quiet about inappropriate
5239         declaration when applying default attributes.
5240         (init_function_format_info): Remove.
5241         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
5242         (insert_default_attributes): Declare.
5243
5244 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5245
5246         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
5247
5248 2001-10-01  Jim Wilson  <wilson@redhat.com>
5249
5250         * sched-deps.c (add_dependence): When elide conditional dependence,
5251         check that insn doesn't modify cond2.
5252
5253 2001-10-01  Dale Johannesen  <dalej@apple.com>
5254
5255         * config/rs6000/rs6000.h (enum processor_type): Add support
5256         for 7400 (G4) and 7450.
5257         (RTX_COSTS): Ditto.
5258         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
5259         (rs6000_issue_rate): Ditto.
5260         (rs6000_adjust_cost): Fix cycle counts for compares.
5261         (debug_stack_info):  Fix an obvious typo.
5262         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
5263         * doc/invoke.texi: Document.
5264         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
5265         for Darwin.
5266         (PROCESSOR_DEFAULT): Ditto.
5267
5268 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
5269
5270         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
5271         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
5272         later recursive make invocation.
5273
5274 2001-10-01  Hans Boehm  <boehm@acm.org>
5275
5276         * optabs.c (emit_libcall_block): When using non-call exceptions,
5277         don't add REG_LIBCALL reg notes to trapping calls.
5278
5279 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
5280
5281         * flow.c (propagate_block_delete_libcall): Remove unused first arg
5282         (propagate_one_insn):  Update for above change
5283
5284 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
5285
5286         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
5287         _Unwind_GetTextRelBase): Argument is unused.
5288
5289 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5290
5291         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
5292         Loop through NOPs, placeholders, and components.
5293         Don't go through NOPs if change mode.
5294         (record_alias_subset): Do nothing if SUBSET and SET are the same.
5295         * emit-rtl.c (set_mem_alias_set): Enable check.
5296         * expr.c (find_placeholder): New function.
5297         (expand_expr, case PLACEHOLDER_EXPR): Use it.
5298         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
5299         to modify it and avoid unneeded copies.
5300         * expr.h (expand_expr): Always define.
5301         (find_placeholder): New declaration.
5302
5303 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5304
5305         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
5306         operand 2 is the stack pointer.
5307         ("addr-peephole"): Fix address computation peephole when operand 2
5308         is the stack pointer.
5309
5310 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5311
5312         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
5313         (ix86_setup_incoming_varargs): Likewise.
5314
5315 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
5316
5317         * stor-layout.c (layout_type): Don't complain about too-large
5318         array here.
5319
5320 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5321
5322         * function.c (keep_stack_depressed): Don't use delete_insn.
5323
5324         * expr.h (set_mem_alias_set): Move decl to here.
5325         * rtl.h (mem_attrs): New typedef and struct.
5326         (union rtunion_def): Add field for mem_attrs.
5327         (X0MEMATTR, MEM_ATTRS): New macros.
5328         (MEM_ALIAS_SET): Use MEM_ATTRS.
5329         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
5330         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
5331         (set_mem_alias_set): Delete decl from here.
5332
5333         * alias.c (set_mem_alias_set): Delete from here.
5334         * emit-rtl.c (mem_attrs_htab): New variable.
5335         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
5336         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
5337         (mem_attrs_mark, get_mem_attrs): Likewise.
5338         (gen_rtx_MEM): Clear MEM_ATTRS.
5339         (set_mem_attributes): Move to here.
5340         (set_mem_alias_set): Likewise, and call get_mem_attrs.
5341         (init_emit_once): const_int_htab now deletable htab.
5342         Initialize mem_attrs_htab.
5343         * explow.c (set_mem_attributes): Delete from here.
5344         * function.c (put_var_into_stack): Clear MEM_ATTRS.
5345         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
5346         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
5347         * reload1.c (reload): Rework changing REG to MEM.
5348
5349 2001-09-30  H.J. Lu <hjl@gnu.org>
5350
5351         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
5352         * config.in: Rebuild.
5353
5354 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5355
5356         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
5357         ("tsthi_1"): Avoid allocation in register y.
5358         ("*movqi_68hc12"): Reorganize and fix constraints.
5359         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
5360         ("addqi3"): Likewise.
5361         ("addhi3"): Fix constraints.
5362         ("*logicalhi3_zexthi"): Disparage soft registers.
5363
5364 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5365
5366         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
5367         to tmp reg.
5368
5369 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5370
5371         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
5372         that we use setjmp/longjmp exceptions.
5373
5374 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
5375
5376         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
5377         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
5378         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5379         _cpp_pool_alloc, _cpp_next_chunk): Remove.
5380         (_cpp_extend_buff, BUFF_ROOM): Update.
5381         (_cpp_append_extend_buff): New.
5382         (struct cpp_reader): Remove macro_pool, add a_buff.
5383         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
5384         macro_pool.
5385         (cpp_destroy): Free a_buff instead of macro_pool.
5386         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
5387         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5388         _cpp_pool_alloc, ): Remove.
5389         (parse_number, parse_string): Update use of _cpp_extend_buff.
5390         (_cpp_extend_buff): Update.
5391         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
5392         * cpplib.c (glue_header_name, parse_answer):
5393         Update use of _cpp_extend_buff.
5394         (cpp_register_pragma, cpp_register_pragma_space): Use
5395         _cpp_aligned_alloc.
5396         (do_assert, do_unassert): Check for EOL, update.
5397         * cppmacro.c (stringify_arg, collect_args): Update to use
5398         _cpp_extend_buff and _cpp_append_extend_buff.
5399         (save_parameter, parse_params, alloc_expansion_token,
5400         _cpp_create_definition): Rework memory management.
5401
5402 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
5403
5404         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
5405         update md_exec_prefix.
5406         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
5407         to string constant.
5408
5409 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
5410
5411         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
5412         (SELECT_CC_MODE): Use s390_select_ccmode.
5413         * config/s390/s390-protos.h (s390_select_ccmode): Add.
5414         * config/s390/s390.c (s390_select_ccmode): New.
5415         (s390_match_ccmode): Add CCLmode.
5416         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
5417         (output_branch_condition, output_inverse_branch_condition): Removed.
5418         (print_operand): Use s390_branch_condition_mnemonic.
5419         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
5420         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
5421         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
5422
5423         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
5424         when converting conditional branches to far branches.
5425         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
5426         cmpint_di): Use CCSmode instead of CCUmode.
5427
5428         * config/s390/s390.c (legitimate_la_operand_p): New.
5429         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
5430         * config/s390/s390.md (movsi): Convert load address patterns to
5431         arithmetic operations when necessary.
5432         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
5433         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
5434         (*do_la_reg_0): Don't use before reload.
5435
5436         * config/s390/s390.c (legitimize_address): Make more efficient
5437         use of two-register addressing mode.
5438
5439         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
5440         with -mno-backchain in some corner cases.
5441
5442         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
5443
5444 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
5445
5446         * reload.c (find_reloads): Mark new USE insns with QImode.
5447         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
5448         find_reloads_subreg_address): Likewise.
5449         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
5450         encountered.
5451         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
5452         CLOBBERs.
5453         (reload): Make sure there are no USEs with mode other than
5454         VOIDmode.  At the end, remove those marked with QImode.
5455
5456 2001-09-29  Per Bothner  <per@bothner.com>
5457
5458         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
5459         * Makefile.in (includedir):  Rename to local_includedir.
5460         (includedir):  Define as $(prefix)/include.
5461         * config.in (PREFIX_INCLUDE_DIR):  New variable.
5462         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
5463
5464 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
5465
5466         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
5467         storehps builtins.
5468         * doc/extend.texi (Vector Extensions): New node.
5469         * doc/invoke.texi (Machine Dependent Options): Add documentation for
5470         i386 -mmmx, -msse, -m3dnow.
5471
5472 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
5473
5474         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
5475
5476 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
5477
5478         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
5479
5480         * doc/invoke.texi (Optimize Options): Delete spurious @table.
5481
5482 2001-09-28  Richard Henderson  <rth@redhat.com>
5483
5484         * varasm.c (assemble_integer): Bound alignment check by
5485         BIGGEST_ALIGNMENT.
5486
5487         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
5488
5489 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5490
5491         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
5492
5493 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
5494
5495         Mostly from Graham Stott  <grahams@redhat.com>
5496         * c-common.c (type_for_mode): Add support for V2SFmode.
5497         * tree.c (build_common_tree_nodes_2): Likewise.
5498         * tree.h (enum tree_index, global_trees): Likewise.
5499         * config/i386/i386.c (x86_3dnow_a): New variable.
5500         (override_options): Support 3Dnow extensions.
5501         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
5502         Athlon's version of 3Dnow.
5503         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
5504         (ix86_expand_builtin): Handle them.
5505         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
5506         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
5507         TARGET_3DNOW_A): New macros.
5508         (TARGET_SWITCHES): Add 3Dnow switches.
5509         (VALID_MMX_REG_MODE_3DNOW): New macro.
5510         (VECTOR_MODE_SUPPORTED_P): Use it.
5511         (enum ix86_builtins): Add entries for 3Dnow builtins.
5512         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
5513         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
5514         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
5515         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
5516         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
5517         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
5518         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
5519         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
5520         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
5521         sfence_insn, prefetch): Make these available if TARGET_SSE or
5522         TARGET_3DNOW_A.
5523
5524 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
5525
5526         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
5527         ix86_va_start, ix86_build_va_list): Declare.
5528         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
5529         ix86_va_start, ix86_build_va_list): New global functions.
5530         * i386.md (sse_prologue_save_insn): New insn.
5531         (sse_prologue_save): New expander.
5532         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
5533         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
5534
5535 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5536
5537         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
5538         Use size_t everywhere, make definitions consistent with
5539         prototypes.
5540
5541 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
5542
5543         * gcse.c (replace_store_insn): Use delete_insn.
5544         * loop.c (move_movables): Likewise; avoid delete_insn
5545         from clobbering notes moved elsewhere.
5546         (check_dbra_loop): Use delete_insn.
5547         * ssa.c (convert_from_ssa): Likewise.
5548         * cse.c (cse_insn): Use delete_insn.
5549
5550 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5551
5552         * cpphash.h (struct cpp_buff): Make unsigned.
5553         (_cpp_get_buff): Take length of size_t.
5554         (_cpp_unaligned_alloc): New.
5555         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
5556         (struct cpp_reader): Remove ident_pool.  Add u_buff.
5557         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
5558         (cpp_destroy): Destroy u_buff, not ident_pool.
5559         * cpplex.c (parse_number, parse_string, save_comment,
5560         cpp_token_as_text): Update to use the unaligned buffer.
5561         (new_buff): Make unsigned.
5562         (_cpp_unaligned_alloc): New.
5563         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
5564         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
5565         Similarly.
5566         (collect_args): Make unsigned.
5567
5568 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
5569
5570         * cpplex.c (cpp_output_token): Use a putc loop for
5571         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
5572
5573         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
5574         * configure, config.in: Regenerate.
5575         * system.h: Replace fwrite and fprintf with their unlocked
5576         variants if available.
5577
5578 2001-09-27  Richard Henderson  <rth@redhat.com>
5579
5580         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
5581         in favour of .eh_frame.
5582
5583 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
5584
5585         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
5586         to macros.
5587         (LIBCALL_VALUE): Likewise.
5588
5589 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5590
5591         * cpphash.h: Update comment.
5592         * cpplex.c: Update comments.
5593         (_cpp_can_paste): Remove.
5594         * cpplib.h (_cpp_can_paste): Remove.
5595         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
5596         lexer rather than _cpp_can_paste.
5597
5598 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5599
5600         * doc/cppinternals.texi: Update.
5601
5602 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5603
5604         * cpphash.h (struct cpp_pool): Remove locks and locked.
5605         (struct cpp_context): Add member buff.
5606         (struct cpp_reader): Remove member argument_pool.
5607         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
5608         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
5609         * cpplex.c (chunk_suitable): Remove pool argument.
5610         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
5611         (new_buff, _cpp_extend_buff): Update.
5612         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
5613         which buffer is returned.
5614         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
5615         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
5616         * cppmacro.c (lock_pools, unlock_pools): Remove.
5617         (push_ptoken_context): Take a _cpp_buff.
5618         (enter_macro_context): Pool locking removed.
5619         (replace_args): Use a _cpp_buff for the replacement list with
5620         arguments replaced.
5621         (push_token_context): Clear buff.
5622         (expand_arg): Use _cpp_pop_context.
5623         (_cpp_pop_context): Free a context's buffer, if any.
5624
5625 2001-09-26  DJ Delorie  <dj@redhat.com>
5626
5627         * c-typeck.c (digest_init): Check for sizeless arrays.
5628
5629 2001-09-26  Richard Henderson  <rth@redhat.com>
5630
5631         * optabs.c (init_one_libfunc): Create a dummy function type
5632         instead of using error_mark_node.
5633
5634 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5635
5636         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
5637         _cpp_extend_buff, _cpp_free_buff): New.
5638         (struct cpp_reader): New member free_buffs.
5639         * cppinit.c (cpp_destroy): Free buffers.
5640         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
5641         _cpp_extend_buff, _cpp_free_buff): New.
5642         * cpplib.h (struct cpp_options): Remove unused member.
5643         * cppmacro.c (collect_args): New.  Combines the old parse_arg
5644         and parse_args.  Use _cpp_buff for memory allocation.
5645         (funlike_invocation_p, replace_args): Update.
5646
5647 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
5648
5649         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
5650
5651 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
5652
5653         * except.c (sjlj_mark_call_sites): Change address inside sequence.
5654
5655 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
5656
5657         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
5658         glibc.
5659
5660 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
5661             Jim Wilson  <wilson@redhat.com>
5662
5663         * doc/install.texi (Specific, ia64-*-linux): Document.
5664
5665 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
5666
5667         * Makefile.in (cfgrtl.o): Add.
5668         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
5669         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
5670         free_aux_for_edge): Declare.
5671         * cfg.c
5672         (HAVE_return): Undefine.
5673         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
5674         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
5675         free_aux_for_edge): New global functions.
5676         (first_delete_block): New static variable.
5677         (init_flow): Clear first_delete_block.
5678         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
5679          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
5680          try_redirect_by_replacing_jump, last_loop_beg_note,
5681          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
5682          delete_insn, delete_insn_chain, create_basic_block_structure,
5683          create_basic_block, flow_delete_block, compute_bb_for_insn,
5684          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
5685          set_block_for_new_insns, split_block, merge_blocks_nomove,
5686          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
5687          redirect_edge_and_branch, force_nonfallthru_and_redirect,
5688          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
5689          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
5690          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
5691          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5692          purge_all_dead_edges): Move to ....
5693         * cfgrtl.c: New file; .... Here.
5694
5695         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
5696         (reroder_basic_block): Use alloc_aux_for_blocks.
5697         * predict.c (estimate_bb_frequencies): Likewise; use
5698         alloc_aux_for_edges.
5699         * profile.c (compute_branch_probabilities): Likewise.
5700         (branch_prob): Likewise.
5701         * reg-stack.c (reg_to_stack): Likewise.
5702
5703         * emit-rtl.c (emit_insns_after): Never return NULL.
5704
5705         * basic-block.h (set_block_for_new_insns): Delete.
5706         * cfgrtl.c (set_block_for_new_insns): Delete.
5707
5708         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
5709         calls when crossjumping.
5710
5711         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
5712         * unroll.c (copy_loop_body): Use delete_insn.
5713
5714         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
5715         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
5716         keep_stack_depressed): Likewise.
5717         * gcse.c (cprop_cc0_jump): Likewise.
5718         * local-alloc.c (update_equiv_regs): Likewise.
5719         * loop.c (scan_loop, loop_delete_insns): Likewise.
5720         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
5721         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
5722         delete_output_reload, delete_address_reloads_1,
5723         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
5724         Likewise.
5725         * sibcall.c (replace_call_placeholder): Likewise.
5726         * cse.c (cse_insn): Likewise.
5727
5728 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
5729
5730         From Graham Stott  <grahams@redhat.com>
5731         (def_builtin): Only define builtins appropriate for target_flags.  All
5732         callers changed.
5733         (builtin_decsription): Add new field mask which is used to determine
5734         when to define the builtin via the macro def_builtin.
5735
5736         (bdesc_comi): Initialise new mask fields.
5737         (bdesc_2srg): Likewise.
5738         (bdesc_1arg): Likewise.
5739
5740         * config/i386/i386.c (ix86_init_builtins): Correct return type
5741         building v4hi_ftype_v4hi_int_int tree node.
5742         (ix86_expand_sse_comi): Fix typo swapping operands.
5743         Don't swap comparision condition, it is already swapped.
5744         (ix86_expand_sse_compare): Before swapping operands
5745         move operand 1 into new rtx and not the target rtx.
5746         Don't swap comparison condition, it is already swapped.
5747         Always check whether we need to create a new TARGET.
5748
5749         * config/i386/i386.md: (sse_comi) Fix typos.
5750         (sse_ucomi): Likewise.
5751         (cvtss2si): Fix operand 0 contraint.
5752         (cvttss2si): Likewise.
5753         (sse_unpckhps): Fix mode for operand 2.
5754         (sse_unpcklps): Likewise.
5755
5756 2001-09-25  Graham Stott  <grahams@redhat.com>
5757
5758         * sibcall.c (skip_copy_to_return_value): Tighten return value
5759         copy check.
5760
5761 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
5762
5763         * rs6000.c (lwa_operand): Address must be word aligned.
5764
5765 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5766
5767         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
5768         number has been set.
5769         (type_hash_mark): Mark type itself.
5770
5771 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5772
5773         * c-lex.c (cb_def_pragma): Update.
5774         (c_lex): Update, and skip padding.
5775         * cppexp.c (lex, parse_defined): Update, remove unused variable.
5776         * cpphash.h (struct toklist): Delete.
5777         (union utoken): New.
5778         (struct cpp_context): Update.
5779         (struct cpp_reader): New members eof, avoid_paste.
5780         (_cpp_temp_token): New.
5781         * cppinit.c (cpp_create_reader): Update.
5782         * cpplex.c (_cpp_temp_token): New.
5783         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
5784         (cpp_output_token): Don't print leading whitespace.
5785         (cpp_output_line): Update.
5786         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
5787         do_include_common, do_line, do_ident, do_pragma,
5788         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
5789         parse_assertion): Update.
5790         (get_token_no_padding): New.
5791         * cpplib.h (CPP_PADDING): New.
5792         (AVOID_LPASTE): Delete.
5793         (struct cpp_token): New union member source.
5794         (cpp_get_token): Update.
5795         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
5796         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
5797         replace_args, quote_string, stringify_arg, parse_arg, next_context,
5798         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
5799         _cpp_backup_tokens, _cpp_create_definition): Update.
5800         (push_arg_context): Delete.
5801         (padding_token, push_token_context, push_ptoken_context): New.
5802         (make_string_token, make_number_token): Update, rename.
5803         (cpp_get_token): Update to handle tokens as pointers to const,
5804         and insert padding appropriately.
5805         * cppmain.c (struct printer): New member prev.
5806         (check_multiline_token): Constify.
5807         (do_preprocessing, cb_line_change): Update.
5808         (scan_translation_unit): Update to handle spacing.
5809         * scan-decls.c (get_a_token): New.
5810         (skip_to_closing_brace, scan_decls): Update.
5811         * fix-header.c (read_scan_file): Update.
5812
5813         * doc/cpp.texi: Update.
5814
5815 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5816
5817         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
5818         leak by passing malloc'ed pointer to reconcat, not concat.
5819
5820 2001-09-24  DJ Delorie  <dj@redhat.com>
5821
5822         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
5823
5824 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
5825
5826         * flow.c (delete_dead_jumptables): Delete jumptable if the only
5827         reference is from the literal pool.
5828
5829 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
5830
5831         * doc/install.texi (Final install): Request additional information
5832         in mail about successful builds.
5833
5834 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5835
5836         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
5837         initial value of return pointer register instead of value in frame-20.
5838         Revise comments.
5839
5840 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5841
5842         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
5843         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
5844         the libcall if there isn't a referenced identifier for the symbol.
5845
5846 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5847
5848         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
5849         non 64-bit machines.  Use these as a plabel for the trampoline.
5850         (TRAMPOLINE_SIZE): Adjust size for new words.
5851         (INITIALIZE_TRAMPOLINE): Initialize new words.
5852         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
5853         pointer to the plabel in the trampoline.
5854
5855 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5856
5857         * pa.c (function_arg): Pass floating arguments in both general and
5858         floating registers in indirect (dynamic) calls when generating code
5859         for the 32 bit ABI and the HP assembler.
5860
5861 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5862
5863         * doc/install.texi: Markup fixes.
5864         Use Solaris 2, SunOS 4 as appropriate.
5865         (Specific, *-*-solaris2*): Explain this.
5866         Unconditionally warn against /usr/ucb tools.
5867         Remove Sun as warning, obsolete.
5868         Move X11 header bug workaround here, update patches.
5869         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
5870         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
5871
5872 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
5873
5874         * errors.h (warning, error, fatal, internal_error): Don't mark
5875         with ATTRIBUTE_PRINTF_n.
5876         * toplev.h (internal_error, fatal_io_error, warning, error,
5877         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
5878         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
5879         Likewise.
5880
5881 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5882
5883         * function.c (pop_function_context_from): var_refs_queue
5884         and temp slots now in GC memory.
5885         (mark_function_status, free_after_compilation): Likewise;
5886         also struct function now in GC memory.
5887         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
5888         (combine_temp_slots): Likewise.
5889         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
5890         (prepare_function_start): Use GC memory for struct function.
5891         (mark_temp_slot): Deleted.
5892         (gcc_mark_struct_function): struct function now in GC memory.
5893
5894         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
5895         code for division, not modulus.
5896
5897         * rtl.def (MEM): Remove obsolete part of comment.
5898
5899 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
5900
5901         * c-format.c (init_function_format_info): Check __builtin_printf
5902         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
5903         in gnu89 mode.
5904
5905 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5906
5907         * c-common.c (format_attribute_table): Remove decl.
5908         * tree.h (format_attribute_table, lang_attribute_table): New decls.
5909         (lang_attribute_common): Likewise.
5910
5911         * function.c (fix_lexical_address): Use set_mem_alias_set.
5912         (expand_function_start): Likewise.
5913         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
5914
5915         * varasm.c (output_constant): Fix unused variable warning.
5916
5917         * attribs.c: New file, from c-common.c.
5918         (attribute_tables): Now four elements.
5919         (format_attribute_table, lang_attribute_common): New variables.
5920         (init_attributes): Reflect above changes.
5921         (handle_mode_attribute): Delete check for wider than uintmax.
5922         * c-common.c: Delete parts moved to attribs.c.
5923         (enum attrs): Deleted; unused.
5924         (c_format_attribute_table): New variable.
5925         (c_common_lang_init): Initialize format_attribute_table with it.
5926         * c-common.h (decl_attributes): Remove decl.
5927         * tree.h (decl_attribute): Move it to here.
5928         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
5929         (attribs.o): New rule.
5930
5931 2001-09-22  Andreas Jaeger  <aj@suse.de>
5932
5933         * builtins.c (c_getstr): Remove unused variable.
5934
5935 2001-09-21  Richard Henderson  <rth@redhat.com>
5936
5937         * reload1.c (reload): Use delete_insn instead of splatting
5938         NOTE_INSN_DELETED.
5939
5940 2001-09-21  Richard Henderson  <rth@redhat.com>
5941
5942         * reload.c (push_secondary_reload): Don't check for "=" in output
5943         constraint after ""->ALL_REGS check.
5944
5945 2001-09-21  Richard Henderson  <rth@redhat.com>
5946
5947         * predict.c (expected_value_to_br_prob): Use pc_set.
5948
5949         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
5950         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
5951
5952 2001-09-21  Richard Henderson  <rth@redhat.com>
5953
5954         * rtl.h (LCT_RETURNS_TWICE): New.
5955         * calls.c (emit_call_1): Set current_function_calls_setjmp for
5956         ECF_RETURNS_TWICE.
5957         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
5958         to ECF_RETURNS_TWICE.
5959         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
5960         call to setjmp.
5961
5962         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
5963
5964         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
5965         (JMP_BUF_SIZE): New.
5966
5967 2001-09-21  Richard Henderson  <rth@redhat.com>
5968
5969         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
5970         to R8_REGS.
5971
5972 2001-09-21  Richard Henderson  <rth@redhat.com>
5973
5974         * tree.def (FDESC_EXPR): New.
5975         * expr.c (expand_expr): Handle it.
5976         * varasm.c (initializer_constant_valid_p): Likewise.
5977         (output_constant): Likewise.
5978         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
5979         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
5980         (ASM_OUTPUT_FDESC): New.
5981         * doc/tm.texi: Document the new macros.
5982
5983 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
5984
5985         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
5986         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
5987         once merging is complete.
5988
5989 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5990
5991         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
5992
5993 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
5994
5995         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
5996         that would be invalid after a merge.
5997
5998 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
5999
6000         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
6001         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
6002         remove some labels.
6003         (flow_delete_insn): This one.
6004         (delete_insn_chain): Rename from ...; do not care labels.
6005         (flow_delete_insn_chain): ... this one.
6006         (flow_delete_block): Remove the insns one BB has been expunged.
6007         (merge_blocks_nomove): Likewise.
6008         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
6009         updating BB boundaries.
6010         (tidy_fallthru_edge): Likewise.
6011         (commit_one_edge_insertion): Likewise.
6012         * cfgbuild.c (find_basic_block): Likewise.
6013         (find_basic_blocks_1): Likewise.
6014         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
6015         (try_crossjump_to_edge): Likewise.
6016         (try_optimize_cfg): Likewise.
6017         * cse.c (delete_trivially_dead_insns): Likewise.
6018         * df.c (df_insn_delete): Likewise.
6019         * doloop.c (doloop_modify): Use delete_related_insns.
6020         * emit-rtl.c (try_split): Likewise.
6021         (remove_insn): Update BB boundaries.
6022         * expect.c (connect_post_landing_pads): Use delete_related_insns.
6023         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
6024         updating BB boundaries.
6025         (propagate_block_delete_insn): Likewise.
6026         (propagate_block_delete_libcall): Likewise.
6027         * function.c (delete_handlers): Use delete_related_insns.
6028         (thread_prologue_and_epilogue_insns): Likewise.
6029         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
6030         * genpeep.c (gen_peephole): Use delete_related_insns.
6031         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
6032         BB boundaries.
6033         (find_cond_trap): Likewise.
6034         * integrate.c (save_for_inline): Use delete_related_insns.
6035         (copy_insn_list): Likewise.
6036         * jump.c (pruge_linie_number_notes): Likewise.
6037         (duplicate_loop_exit_test): Likewise.
6038         (delete_computation): Likewise.
6039         (delete_related_insn): Rename from ...; use delete_insn
6040         (delete_insn): ... this one.
6041         (redirect_jump): Use delete_related_insns.
6042         * loop.c (scan_loop): Likewise.
6043         (move_movables): Likewise.
6044         (find_and_verify_loops): Likewise.
6045         (check_dbra_loop): Likewise.
6046         * recog.c (peephole2_optimize): Likewise.
6047         * reg-stack.c (delete_insn_for_stacker): Remove.
6048         (move_for_stack_reg): Use delete_insn.
6049         * regmove.c (combine_stack_adjustments_for_block): Likewise.
6050         * reload1.c (delete_address_reloads): Use delete_related_insns.
6051         (fixup_abnormal_edges): Use delete_insn.
6052         * recog.c (emit_delay_sequence): Use delete_related_insns.
6053         (delete_from-delay_slot): Likewise.
6054         (delete_scheduled_jump): likewise.
6055         (optimize_skip): Likewise.
6056         (try_merge_delay_insns): Likewise.
6057         (full_simple_delay_slots): Likewise.
6058         (fill_slots_from_thread): Likewise.
6059         (relax_delay_slots): Likewise.
6060         (make_return_insns): Likewise.
6061         (dbr_schedule): Likewise.
6062         * rtl.h (delete_insn): Rename to delete_related_insns.
6063         (delete_insn, delete_insn_chain): New prototypes.
6064         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
6065         by df_insn_delete already.
6066         * ssa-dce.c (delete_insn_bb): Use delete_insn.
6067         * ssa.c (convert_from_ssa): Use delete_related_insns.
6068         * unroll.c (unroll_loop): Likewise.
6069         (calculate_giv_inc): Likewise.
6070         (copy_loop_body): Likewise.
6071
6072         * i386-protos.h (ix86_libcall_value, ix86_function_value,
6073         ix86_function_arg_regno_p, ix86_function_arg_boundary,
6074         ix86_return_in_memory, ix86_function_value): Declare.
6075         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
6076         new static valurables.
6077         (x86_64_reg_class): New enum
6078         (x86_64_reg_class_name): New array.
6079         (classify_argument, examine_argument, construct_container,
6080          merge_classes): New static functions.
6081         (optimization_options): Enable flag_omit_frame_pointer and disable
6082         flag_pcc_struct_return on 64bit.
6083         (ix86_libcall_value, ix86_function_value,
6084         ix86_function_arg_regno_p, ix86_function_arg_boundary,
6085         ix86_return_in_memory, ix86_function_value): New global functions.
6086         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
6087         (function_arg_advance): Handle x86_64 passing conventions.
6088         (function_arg): Likewise.
6089         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
6090         (RETURN_IN_MEMORY): Move offline.
6091         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
6092         (FUNCTION_VALUE_REGNO_P): New macro.
6093         (FUNCTION_ARG_REGNO_P): Move offline.
6094         (struct ix86_args): Add maybe_vaarg.
6095         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
6096         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
6097
6098 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
6099
6100         * s390.md: Changed attributes for scheduling.
6101         * s390.c: (s390_adjust_cost, s390_adjust_priority)
6102         Changed scheduling
6103
6104 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6105
6106         Table-driven attributes.
6107         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
6108         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
6109         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
6110         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
6111         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
6112         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
6113         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
6114         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
6115         * tree.h (struct tree_decl): Change machine_attributes to
6116         attributes.
6117         * doc/c-tree.texi: Document that all attributes are now attached
6118         to decls and types.
6119         * c-common.c (add_attribute, attrtab, attrtab_idx,
6120         default_valid_lang_attribute, valid_lang_attribute): Remove.
6121         (attribute_tables, attributes_initialized,
6122         c_common_attribute_table, default_lang_attribute_table): New
6123         variables.
6124         (handle_packed_attribute, handle_nocommon_attribute,
6125         handle_common_attribute, handle_noreturn_attribute,
6126         handle_unused_attribute, handle_const_attribute,
6127         handle_transparent_union_attribute, handle_constructor_attribute,
6128         handle_destructor_attribute, handle_mode_attribute,
6129         handle_section_attribute, handle_aligned_attribute,
6130         handle_weak_attribute, handle_alias_attribute,
6131         handle_no_instrument_function_attribute,
6132         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
6133         handle_no_limit_stack_attribute, handle_pure_attribute): New
6134         functions.
6135         (init_attributes, decl_attributes): Rewrite to implement
6136         table-driven attributes.
6137         * c-common.h (enum attribute_flags): Move to tree.h.
6138         * c-format.c (decl_handle_format_attribute,
6139         decl_handle_format_arg_attribute): Rename to
6140         handle_format_attribute and handle_format_arg_attribute.  Update
6141         for table-driven attributes.
6142         * c-common.h (decl_handle_format_attribute,
6143         decl_handle_format_arg_attribute): Remove prototypes.
6144         (handle_format_attribute, handle_format_arg_attribute): Add
6145         prototypes.
6146         * c-decl.c (grokdeclarator): Handle attributes nested inside
6147         declarators.
6148         * c-parse.in (setattrs, maybe_setattrs): Remove.
6149         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
6150         Update to handle nested attributes properly.
6151         (maybe_resetattrs, after_type_declarator,
6152         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
6153         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
6154         properly.
6155         (make_pointer_declarator): Update to handle nested attributes
6156         properly.
6157         * doc/extend.texi: Update documentation of limits of attributes
6158         syntax.  Warn about problems with attribute semantics in C++.
6159         * target.h (struct target): Remove valid_decl_attribute and
6160         valid_type_attribute.  Add attribute_table and
6161         function_attribute_inlinable_p.
6162         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
6163         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
6164         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
6165         Add.
6166         (TARGET_INITIALIZER): Update.
6167         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
6168         definition.
6169         (function_attribute_inlinable_p): New function.  Check for the
6170         presence of any machine attributes before using
6171         targetm.function_attribute_inlinable_p.
6172         (function_cannot_inline_p): Update.
6173         * Makefile.in (integrate.o): Update dependencies.
6174         * doc/tm.texi: Update documentation of target attributes and
6175         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
6176         * tree.c (default_valid_attribute_p, valid_machine_attribute):
6177         Remove.
6178         (default_target_attribute_table,
6179         default_function_attribute_inlinable_p): New.
6180         (lookup_attribute): Update comment to clarify handling of multiple
6181         attributes with the same name.
6182         (merge_attributes, attribute_list_contained): Allow multiple
6183         attributes with the same name but different arguments to appear in
6184         the same attribute list.
6185         * tree.h (default_valid_attribute_p): Remove prototype.
6186         (struct attribute_spec): New.
6187         (default_target_attribute_table): Declare.
6188         (enum attribute_flags): Move from c-common.h.  Add
6189         ATTR_FLAG_TYPE_IN_PLACE.
6190         (default_function_attribute_inlinable_p): Declare.
6191         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
6192         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6193         (TARGET_ATTRIBUTE_TABLE): Define.
6194         (vms_attribute_table): New.
6195         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
6196         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6197         (TARGET_ATTRIBUTE_TABLE): Define.
6198         (arc_attribute_table, arc_handle_interrupt_attribute): New.
6199         * config/arm/arm.c (arm_valid_type_attribute_p,
6200         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
6201         Remove.
6202         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6203         define.
6204         (TARGET_ATTRIBUTE_TABLE): Define.
6205         (arm_attribute_table, arm_handle_fndecl_attribute,
6206         arm_handle_isr_attribute): New.
6207         * config/avr/avr.c (avr_valid_type_attribute,
6208         avr_valid_decl_attribute): Remove.
6209         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
6210         define.
6211         (TARGET_ATTRIBUTE_TABLE): Define.
6212         (avr_attribute_table, avr_handle_progmem_attribute,
6213         avr_handle_fndecl_attribute): New.
6214         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
6215         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6216         (TARGET_ATTRIBUTE_TABLE): Define.
6217         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
6218         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
6219         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6220         (TARGET_ATTRIBUTE_TABLE): Define.
6221         (h8300_attribute_table, h8300_handle_fndecl_attribute,
6222         h8300_handle_eightbit_data_attribute,
6223         h8300_handle_tiny_data_attribute): New.
6224         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
6225         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
6226         Remove prototypes.
6227         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
6228         declarations.
6229         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
6230         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6231         define.
6232         (TARGET_ATTRIBUTE_TABLE): Define.
6233         (ix86_attribute_table, ix86_handle_cdecl_attribute,
6234         ix86_handle_regparm_attribute): New.
6235         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
6236         i386_pe_valid_type_attribute_p): Remove.
6237         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
6238         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
6239         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6240         (TARGET_ATTRIBUTE_TABLE): Define.
6241         (ia64_attribute_table): New.
6242         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
6243         interrupt_ident2, model_ident1, model_ident2): Remove.
6244         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6245         (TARGET_ATTRIBUTE_TABLE): Define.
6246         (init_idents): Update.
6247         (m32r_attribute_table, m32r_handle_model_attribute): New.
6248         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
6249         Remove.
6250         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6251         (TARGET_ATTRIBUTE_TABLE): Define.
6252         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
6253         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
6254         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6255         (TARGET_ATTRIBUTE_TABLE): Define.
6256         (mcore_attribute_table, mcore_handle_naked_attribute): New.
6257         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
6258         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6259         (TARGET_ATTRIBUTE_TABLE): Define.
6260         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
6261         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
6262         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6263         (TARGET_ATTRIBUTE_TABLE): Define.
6264         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
6265         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
6266         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6267         (TARGET_ATTRIBUTE_TABLE): Define.
6268         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
6269         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
6270         New.
6271         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
6272         Remove.
6273         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
6274         (TARGET_ATTRIBUTE_TABLE): Define.
6275         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
6276         New.
6277         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
6278         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6279         (TARGET_ATTRIBUTE_TABLE): Define.
6280         (v850_attribute_table, v850_handle_interrupt_attribute,
6281         v850_handle_data_area_attribute): New.
6282         * config/v850/v850-c.c (mark_current_function_as_interrupt):
6283         Return void.  Call decl_attributes instead of
6284         valid_machine_attribute.
6285
6286 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
6287
6288         * sh-protos.h (sh_pr_n_sets): Declare.
6289         * sh.c (calc_live_regs): If the initial value for PR has been copied,
6290         look at the copy to determine if PR needs to be saved.
6291         sh_pr_n_sets: New function.
6292         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
6293         (ALLOCATE_INITIAL_VALUE): Define.
6294
6295         * sh.c (initial_elimination_offset):
6296         Fix RETURN_ADDRESS_POINTER_REGNUM case.
6297
6298 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
6299
6300         * integrate.c (allocate_initial_values): New function.
6301         * integrate.h (allocate_initial_values): Declare.
6302         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
6303         here...
6304         * reload1.c (reload): And initialization of reg_equiv_memory_loc
6305         from here...
6306         * toplev.c (rest_of_compilation): To here.
6307         Call allocate_initial_values.
6308         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
6309
6310 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6311
6312         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
6313
6314 2001-09-20  DJ Delorie  <dj@redhat.com>
6315
6316         * c-typeck.c (really_start_incremental_init): Discriminate
6317         between zero-length arrays and flexible arrays.
6318         (push_init_level): Detect zero-length arrays and handle them
6319         like fixed-sized arrays.
6320         * expr.c (store_constructor): Handle zero-length arrays and
6321         flexible arrays correctly.
6322         * doc/extend.texi: Update zero-length array notes.
6323
6324 2001-09-20  Jim Wilson  <wilson@redhat.com>
6325
6326         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
6327         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
6328         for issue port conflicts.
6329         (cycle_end_fill_slots): TYPE_L instructions take two slots.
6330
6331 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
6332
6333         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
6334         on ia64.
6335
6336 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6337
6338         * fold-const.c (hashtab.h): Include.
6339         (int_const_binop): Remove FORSIZE arg and compute from type; all
6340         callers changed.
6341         Call size_int_type_wide for all single-word constants.
6342         (size_htab_hash, size_htab_eq): New functions.
6343         (size_int_type_wide): Rework to use hash table.
6344         * ggc-common.c (hashtab.h): Include.
6345         (struct d_htab_root): New struct.
6346         (d_htab_roots): New variable.
6347         (ggc_add_deletable_htab, ggc_htab_delete): New functions
6348         (ggc_mark_roots): Handle deletable htabs.
6349         * ggc-page.c (ggc_marked_p): New function.
6350         * ggc-simple.c (ggc_marked_p): Likewise.
6351         * ggc.h: Reformatting throughout.
6352         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
6353         * tree.c (init_obstacks): Make type_hash_table a deletable root.
6354         (type_hash_add): Allocate struct type_hash from GC memory.
6355         (mark_hash_entry, mark_type_hash): Deleted.
6356         (type_hash_marked_p, type_hash_mark): New functions.
6357         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
6358
6359 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
6360
6361         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
6362         than SImode.
6363
6364 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6365
6366         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
6367         array-too-large test for signed sizetype.
6368
6369 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
6370
6371         * i386.md (indirect_jump): Allow Pmode operand.
6372         (tablejump): LIkewise; perform expansion to 64bit mode.
6373         * i386.c (symbolic_operand): Allow 64bit PIC references.
6374         (pic_symbolic_operand): Likewise.
6375         (ix86_find_base_term): Strip the 64bit PIC references.
6376         (legitimate_pic_address_disp_p): Handle 64bit PIC.
6377         (legitimize_pic_address): Likewise.
6378         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
6379         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
6380
6381 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
6382
6383         * stringpool.c (get_identifier_with_length): New function.
6384         * tree.h (get_identifier_with_length): New prototype.
6385
6386 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
6387             David Edelsohn  <edelsohn@gnu.org>
6388
6389         Revert:
6390         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
6391         already sign-extended.
6392
6393         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
6394         * config/rs6000/rs6000.c (logical_operand): Always compare op as
6395         HOST_WIDE_INT.
6396         (rs6000_emit_set_long_const): Avoid unnecessary shift.
6397         (output_profile_hook): Declare label_name const.
6398         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
6399         to match constraints.
6400
6401 2001-09-19  Stan Shebs  <shebs@apple.com>
6402
6403         * alias.c: Fix typos in comments.
6404         * sched-rgn.c (init_ready_list): Ditto.
6405         * unwind-dw2.c (uw_frame_state_for): Ditto.
6406         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
6407         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
6408         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
6409
6410 2001-09-19  Richard Henderson  <rth@redhat.com>
6411
6412         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
6413         to the exit block.
6414         * Makefile.in (cfg.o): Depend on TM_P_H.
6415
6416 2001-09-19  Richard Henderson  <rth@redhat.com>
6417
6418         * config/alpha/alpha.c (local_symbol_p): Split out from ...
6419         (local_symbolic_operand): ... here.
6420         (small_symbolic_operand): Check mode.
6421         (global_symbolic_operand): New.
6422         (input_operand): Reject symbolics if explicit relocs.
6423         (call_operand): Tidy.
6424         (alpha_legitimize_address): Use movdi_er_high_g.
6425         (alpha_expand_mov): Likewise.
6426         * config/alpha/alpha-protos.h: Update.
6427         * config/alpha/alpha.h (PREDICATE_CODES): Update.
6428         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
6429         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
6430         (UNSPECV_LDGP2): Remove.
6431         (all call patterns): Use 's' not 'i' for symbolic constraint.
6432         (call_osf call_value_osf): Use call_operand.
6433         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
6434         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
6435         (prologue_ldgp_1_er): Remove.
6436         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
6437         (builtin_setjmp_receiver_er patterns): Use them.
6438         (exception_receiver_er): Likewise.
6439
6440 2001-09-19  Richard Henderson  <rth@redhat.com>
6441
6442         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
6443
6444         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
6445         and NON_LOCAL_GOTO notes.
6446         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
6447         copy over CALL_INSN_FUNCTION_USAGE.
6448
6449 2001-09-18  Catherine Moore  <clm@redhat.com>
6450
6451         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
6452         Define as 0.
6453
6454 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
6455
6456         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
6457         new-style tm_file specification.  Specify correct tm_p_file,
6458         md_file, and out_file for s390x.
6459
6460         * config/s390/linux.h, linux64.h:  Don't include other target
6461         macro header files.  Now handled via tm_file.
6462
6463         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
6464         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
6465         are defined before use.
6466
6467 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
6468
6469         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
6470         code generation only for Gnu assembler.
6471
6472 2001-09-18  Catherine Moore  <clm@redhat.com>
6473
6474         * config/stormy16 (LIB_SPEC): Remove -lnosys.
6475
6476 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
6477
6478         * config/mips/mips.c (mips_frame_set): New.
6479         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
6480         a parallel frame-related expression with a set for each register.
6481
6482 2001-09-18  Philip Blundell  <philb@gnu.org>
6483
6484         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
6485         header files.
6486
6487 2001-09-17  Dale Johannesen  <dalej@apple.com>
6488
6489         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
6490         * config/rs6000/aix.h (FIXED_R2): Define.
6491         * config/rs6000/darwin.h (FIXED_R2): Define.
6492         * config/rs6000/sysv4.h (FIXED_R2): Define.
6493
6494 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
6495
6496         * except.c (dw2_build_landing_pads): New local
6497         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
6498         barrier after clobbers.  Fixes c++/4012.
6499
6500 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6501
6502         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
6503
6504 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
6505
6506         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
6507         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
6508
6509 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6510
6511         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
6512         alloca/strcpy.
6513
6514 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6515
6516         * cpphash.h (_cpp_lex_direct): New.
6517         * cpplex.c (_cpp_lex_token): Update.
6518         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
6519         and increment that pointer.
6520         * cppmacro.c (alloc_expansion_token): New.
6521         (lex_expansion_token): Lex macro expansion directly into
6522         macro storage.
6523
6524 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
6525
6526         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
6527
6528 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
6529
6530         * basic-block.h (free_bb_for_insn): Declare.
6531         * bb-reorder.c (label_for_bb): Use block_label.
6532         (emit_jump_to_block_after): Remove.
6533         (insert_intra_1): Do not update block_for_insn.
6534         (insert_inter_bb_scope_notes): Likewise; update bb->end
6535         * cfg.c (free_bb_for_insn): New.
6536         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
6537         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
6538         (commit_one_edge_insertion): Likewise.
6539         (commit_one_edge_insertion): Do not update BB boundary.
6540         (commit_edge_insertions): Do not call compute_bb_for_insn.
6541         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
6542         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
6543         (merge_blocks_move_successor_nojumps): Likewise.
6544         (try_crossjump_to_edge): Do not update block_for_insn.
6545         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
6546         * df.c (df_pattern_emit_later): Do not update BB boundary.
6547         (df_jump_pattern_emit_after): Likewise.
6548         (df_insn_move_before): Use emit_insn_before.
6549         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
6550          properly.
6551         (add_insn_after, add_insn_before, emit_insns_after): Update BB
6552         boundaries and basic_block_for_insn.
6553         (reorder_insns_nobb): Rename from reorder_insns.
6554         (reorder_insns): New.
6555         (emit_block_insn_before, emit_block_insn_after): Kill.
6556         * flow.c (check_function_return_warnings): Do not call
6557         compute_bb_for_insn; Do not free basic_block_for_insn.
6558         (attempt_auto_inc): Do not update basic_block_for_insn.
6559         * function.c (emit_return_into_block): Likewise;
6560         do not update BB boundaries.
6561         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
6562         (insert_insn_end_bb): Use emit_insn_before; Likewise.
6563         (pre_insert_copy_insn): Likewise.
6564         (update_ld_motion_notes): Likewise.
6565         (insert_insn_start_bb): Likewise.
6566         (replace_store_insn): Likewise.
6567         * ifcvt.c (noce_process_if_block): Likewise.
6568         (if_convert): Do not call compute_bb_for_insn.
6569         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
6570         Use emit_insn_before and emit_insn_after.
6571         * recog.c (split_all_insns): Do not update BB boundaries;
6572         Do not call compute_bb_for_insn.
6573         (peephole2_optimize): Do not update BB boundaries.
6574         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
6575         emit_insn_before.
6576         (emit_swap_insn): Likewise.
6577         (convert_regs_1): Likewise.
6578         * reload1.c (reload): Call compute_bb_for_insn.
6579         * rtl.h (reorder_insns_nobb): Declare.
6580         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
6581         * toplev.c (rest_of_compilation): Call free_bb_for_insn
6582         at places CFG is invalidated; do not call compute_bb_for_insn.
6583
6584         * cfg.c (expunge_block): Invalidate BB structure.
6585
6586         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
6587         array.
6588
6589         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
6590
6591 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6592
6593         * cpphash.h (_cpp_lex_token): Update prototype.
6594         * cpplex.c (_cpp_lex_token): New prototype.
6595         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
6596         lex_macro_node, read_flag, do_pragma_poison): Update.
6597         * cppmacro.c (cpp_get_token, parse_params,
6598         lex_expansion_token): Update.
6599
6600 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6601
6602         * cppmain.c (scan_translation_unit): Don't worry about
6603         putting a space after hashes.
6604         * cpplib.c (directive_diagnostics): New.
6605         (_cpp_handle_directive): Update to use directive_diagnostics.
6606         (run_directive): Don't toggle prevent_expansion.
6607         (do_line): Backup in case of the line extension.
6608         * cpplib.h (cpp_lexer_pos): Remove.
6609         * cppmacro.c (_cpp_create_definition): Precede a leading #
6610         with whitespace.
6611
6612 2001-09-15  Richard Henderson  <rth@redhat.com>
6613
6614         * c-typeck.c (comptypes): Handle zero-length arrays properly.
6615
6616 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6617
6618         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
6619
6620 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6621
6622         PR preprocessor/3571
6623         * tradcpp.c (handle_directive): Skip non-vertical space.
6624
6625 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6626
6627         * cppmain.c (setup_callbacks): Set line callback only
6628         if outputting preprocessed source.
6629
6630 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6631
6632         * collect2.c (main): Const-ification.
6633         * gcc.c (translate_options, process_command): Use xstrdup in
6634         lieu of xmalloc/strcpy.
6635         (main): Use concat in lieu of xmalloc/strcpy/strcat.
6636
6637 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6638
6639         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
6640         example.
6641
6642 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6643
6644         * scan-decls.c (scan_decls): Fix typo.
6645
6646 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6647
6648         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
6649         Split mlstring_pos into mls_line and mls_col.
6650         * cppinit.c (cpp_create_reader): Initialize line to 1.
6651         (cpp_destroy): Free tokenruns.
6652         (push_include): Don't update lexer_pos.
6653         * cpplex.c (unterminated, parse_string): Update.
6654         (lex_token): Don't update lexer_pos, update.
6655         * cpplib.c (if_stack): Save line instead of line + col.
6656         (start_directive, _cpp_do__Pragma, do_else, do_elif,
6657         push_conditional, _cpp_pop_buffer): Update.
6658         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
6659         (_cpp_create_definition): Update.
6660
6661 2001-09-15  Eric Christopher  <echristo@redhat.com>
6662
6663         * config/mips/abi64.h: Add support for MEABI.
6664
6665 2001-09-15  Eric Christopher  <echristo@redhat.com>
6666
6667         * config/mips/mips.md: Add unspec #2.
6668         (reload_indi): Use.
6669         (reload_outdi): Ditto.
6670         (reload_outsi): Ditto.
6671         (HILO_delay): New.
6672
6673 2001-09-15  Eric Christopher  <echristo@redhat.com>
6674             Jason Eckhardt  <jle@redhat.com>
6675
6676         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
6677         * config/mips/isa32-linux.h: New file.
6678         * config/mips/isa3264.h: Ditto.
6679         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
6680         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
6681         (output_block_mode): Support MEABI.
6682         (function_arg): Ditto. Fix floating point arg passing.
6683         (mips_va_start): Ditto.
6684         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
6685         processors.
6686         (mips_asm_file_start): Add new section to pass abi to gdb.
6687         (function_arg_pass_by_reference): Support MEABI.
6688         (mips_parse_cpu): Support mips32 and mips64 processors.
6689         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
6690         TARGET_MIPS5KC.  Support isa32 and isa64.
6691         (processor_type): Add r4kc, r5kc, r20kc.
6692         (GENERATE_MULT3_SI): New.
6693         (GENERATE_MULT3_DI): Ditto.
6694         (GENERATE_MULT3): Remove.
6695         (ISA_HAS_64BIT_REGS): Add isa == 64.
6696         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
6697         (ISA_HAS_MADD_MSUB): New.
6698         (ISA_HAS_CLZ_CLO): Ditto.
6699         (ISA_HAS_DCLZ_DCLO): Ditto.
6700         (ABI_GAS_ASM_SPEC): New.
6701         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
6702         (ASM_SPEC): Ditto.
6703         (LINK_SPEC): Ditto.
6704         (SUBTARGET_CC1_SPEC): Ditto.
6705         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
6706         (PAD_VARARGS_DOWN): Support MEABI.
6707         (HARD_REGNO_NREGS): Move to mips.c.
6708         (ASM_OUTPUT_IDENT): Add #undef.
6709         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
6710         (mulsi3): Use GENERATE_MULT3_SI.
6711         (mulsi3_mult3): Ditto.  Support mips32, mips64.
6712         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
6713         (mul_sub_si): New pattern.
6714         (unnamed splitters): New.
6715         (muldi3): Use GENERATE_MULT3_DI.
6716         (muldi3_internal2): Ditto.
6717         (movdicc): Support mips32.
6718         * config/mips/t-isa3264: New file.
6719
6720 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
6721
6722         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
6723         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
6724         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
6725
6726         * reorg.c (fill_slots_from_thread): After call to
6727         steal_delay_list_from_target, update own_thread as new_thread may
6728         have branched.
6729
6730 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6731
6732         * cpperror.c (print_location): Take line and column, for
6733         default positioning use the previously lexed token.
6734         (_cpp_begin_message): Take line and column.
6735         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
6736         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
6737         * cpphash.h (_cpp_begin_message): Update prototype.
6738         * cppinit.c (push_include): Don't set output line.
6739         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
6740         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
6741         (do_pragma): Kludge for front ends.  Don't expand macros at all.
6742         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
6743         (struct cpp_token): Remove output_line.
6744         (struct cpp_callbacks): New member line_change.
6745         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
6746         cpp_get_token): Preserve BOL flag.
6747         (cpp_get_line): Remove.
6748         (_cpp_backup_tokens): Remove useless abort().
6749         * cppmain.c (cb_line_change): New.
6750         (scan_translation_unit): Don't worry about starting new lines here.
6751         * scan-decls.c (scan_decls): Update.
6752         * c-lex.c (c_lex, init_c_lex): Update.
6753         (cb_line_change, src_lineno): New.
6754
6755 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
6756
6757         * tree.c (append_random_chars): Generate the random
6758         characters in a reproducable fashion.
6759
6760 2001-09-14  Richard Henderson  <rth@redhat.com>
6761
6762         * config/i386/i386.c (internal_label_prefix): New.
6763         (internal_label_prefix_len): New.
6764         (override_options): Set them.
6765         (local_symbolic_operand): New.
6766         (legitimate_pic_address_disp_p): Use it.
6767         (legitimize_pic_address): Likewise.
6768
6769 2001-09-14  Marc Espie <espie@openbsd.org>
6770
6771         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
6772         correctly.
6773
6774 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6775
6776         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
6777         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
6778
6779 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
6780
6781         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
6782         invocation of SUBREG_REGNO_OFFSET.
6783
6784         * haifa-sched.c: Fix typo in FSF copyright statement.
6785         * sched-deps.c: Fix typo in FSF copyright statement.
6786         * sched-ebb.c: Fix typo in FSF copyright statement.
6787         * sched-rgn.c: Fix typo in FSF copyright statement.
6788         * sched-vis.c: Fix typo in FSF copyright statement.
6789
6790         * config.gcc: Move inclusion of arm elf specific header files
6791         from the files themselves into the tm_file variable.  Make
6792         sure that elfos.h is included before target specific elf
6793         headers.
6794         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
6795         already defined.
6796         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
6797         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
6798         ASM_OUTPUT_CASE_LABEL): Protect definition.
6799         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
6800         not already defined.
6801         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
6802         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
6803         Remove duplicate definition.
6804         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
6805         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
6806         (RDATA_SECTION_FUNCTION): Remove redundant definition.
6807         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
6808         Remove inclusion of arm/elf.h.
6809         * config/arm/unknown-elf.h: as for conix-elf.h.
6810         (STARTFILE_SPEC): Include crti.o and crtn.o.
6811         * config/arm/linux-elf.h: as for conix-elf.h.
6812         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
6813         * config/arm/strongarm-elf.h: Remove inclusion of
6814         unknown-elf.h.
6815         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
6816         * config/arm/unknown-elf-oabi.h: Remove inclusion of
6817         unknown-elf.h and elf.h.
6818         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
6819         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
6820         ASM_WEAKEN_LABEL): Remove redundant definition.
6821         * config/arm/elf.h: Test for inclusion of elfos.h
6822         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
6823         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
6824         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
6825         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
6826         redundant definition.
6827         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
6828         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
6829         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
6830         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
6831         Add rules to build crti.o and crtn.o
6832         * crti.asm: New file.
6833         * crtn.asm: New file.
6834
6835 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6836
6837         * c-parse.in (_yylex): Use _cpp_backup_tokens.
6838         * cpphash.h (struct tokenrun): Add prev.
6839         (struct lexer_state): Remove bol.
6840         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
6841         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
6842         : Remove.
6843         * cppinit.c (cpp_create_reader): Don't set bol.
6844         (cpp_destroy): Don't free lookaheads.
6845         * cpplex.c (lex_directive): Remove.
6846         (next_tokenrun): Update.
6847         (_cpp_lex_token): Clean up logic.
6848         (lex_token): Update to return a pointer to lexed token, since it
6849         can move to the start of the buffer.  Simpify newline handling.
6850         * cpplib.c (SEEN_EOL): Update.
6851         (skip_rest_of_line): Remove lookahead stuff.
6852         (end_directive): Line numbers are already incremented.  Revert
6853         to start of lexed token buffer if we can.
6854         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
6855         parse_answer): Use _cpp_backup_tokens.
6856         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
6857         instead.  Don't check for EOL.
6858         (do_include_common, do_line, do_pragma_system_header): Use
6859         skip_rest_of_line.
6860         * cpplib.h (BOL, _cpp_backup_tokens): New.
6861         * cppmacro.c (save_lookahead_token, take_lookahead_token,
6862         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
6863         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
6864         (builtin_macro): Don't use cpp_get_line.
6865         (cpp_get_line): Short term kludge.
6866         (parse_arg): Handle directives in arguments here.  Back up when
6867         appropriate.  Store EOF at end of argument list.
6868         (funlike_invocation_p): Use _cpp_backup_tokens.
6869         (push_arg_context): Account for EOF at end of list.
6870         (cpp_get_token): Remove lookahead stuff.  Update.
6871
6872 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6873
6874         * c-parse.in (yyerror): Const-ification and/or static-ization.
6875         * c-typeck.c (push_member_name): Likewise.
6876         * collect2.c (main): Likewise.
6877         * dbxout.c (dbxout_parms): Likewise.
6878         * diagnostic.c (format_with_decl): Likewise.
6879         * dwarf2out.c (output_ranges): Likewise.
6880         * dwarfout.c (fundamental_type_code): Likewise.
6881         * except.c (dw2_output_call_site_table): Likewise.
6882         * gcc.c (do_spec_1): Likewise.
6883         * genopinit.c (optabs): Likewise.
6884         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
6885         gen_declaration_1, handle_impent): Likewise.
6886         * protoize.c (default_include, in_system_include_dir, abspath):
6887         Likewise.
6888         * sched-vis.c (visualize_stall_cycles): Likewise.
6889         * sdbout.c (plain_type_1, sdbout_end_function,
6890         sdbout_end_epilogue): Likewise.
6891         * varasm.c (decode_reg_name): Likewise.
6892
6893         * 1750a.c (mod_regno_adjust): Likewise.
6894         * alpha.c (alpha_write_one_linkage,
6895         unicosmk_output_default_externs): Likewise.
6896         * arm.c (arm_condition_codes): Likewise.
6897         * arm.h (arm_condition_codes): Likewise.
6898         * avr.c (output_movsisf, encode_section_info): Likewise.
6899         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
6900         Likewise.
6901         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
6902         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
6903         * m88k.c (output_function_profiler): Likewise.
6904         * mips.c (mips_output_conditional_branch): Likewise.
6905         * ns32k.c (ns32k_out_reg_names): Likewise.
6906         * ns32k.h (ns32k_out_reg_names): Likewise.
6907         * pj.c (pj_output_rval): Likewise.
6908         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
6909         * sparc.c (sparc_flat_function_prologue,
6910         sparc_flat_function_epilogue): Likewise.
6911
6912 2001-09-13  Markus Werle <numerical.simulation@web.de>
6913             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6914
6915         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
6916         Aachen University of Technology".
6917
6918 2001-09-13  Andreas Schwab  <schwab@suse.de>
6919
6920         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
6921         C99.
6922
6923 2001-09-13  Richard Henderson  <rth@redhat.com>
6924
6925         * config/alpha/alpha.c (small_symbolic_operand): New.
6926         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
6927         (some_operand, input_operand): Don't handle HIGH.
6928         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
6929         (alpha_expand_mov): Likewise.
6930         (print_operand) [H]: Just print HIGH symbol.
6931         (print_operand_address): Handle small data.
6932         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
6933         (TARGET_SWITCHES): Add -msmall-data/large-data.
6934         (PIC_OFFSET_TABLE_REGNUM): New.
6935         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
6936         (PREDICATE_COES): Update.
6937         * config/alpha/alpha.md (adddi_er_high): New.
6938         (adddi_er_low): Handle small data.
6939         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
6940         prefer .sdata to .rodata.
6941         (SELECT_RTX_SECTION): Likewise.
6942
6943 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
6944
6945         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
6946         defining __size_t and leaving size_t undefined.
6947
6948 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
6949
6950         * basic-block.h (expunge_block): Declare.
6951         * cfg.c (expunge_block): Remove static declaration.
6952
6953 2001-09-12  Richard Henderson  <rth@redhat.com>
6954
6955         * integrate.c (copy_insn_list): Copy label name from
6956         NOTE_INSN_DELETED_LABEL.
6957
6958 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6959
6960         * c-common.c (c_tree_code_name): Const-ification.
6961         * c-decl.c (c_decode_option): Likewise.
6962         * c-typeck.c (warn_for_assignment): Likewise.
6963         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
6964         Likewise.
6965         * cppinit.c (output_deps): Likewise.
6966         * dependence.c (dependence_string, direction_string): Likewise.
6967         * dwarf2out.c (output_ranges): Likewise.
6968         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
6969         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
6970         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
6971         standard_startfile_prefix, standard_startfile_prefix_1,
6972         standard_startfile_prefix_2, tooldir_base_prefix,
6973         standard_bindir_prefix, find_a_file): Likewise.
6974         * genattrtab.c (make_length_attrs): Likewise.
6975         * gencheck.c (tree_codes): Likewise.
6976         * genemit.c (gen_split): Likewise.
6977         * genrecog.c (special_mode_pred_table): Likewise.
6978         * graph.c (graph_ext): Likewise.
6979         * protoize (default_include): Likewise.
6980         * reload.c (reload_when_needed_name): Likewise.
6981         * sched-vis.c (visualize_stall_cycles): Likewise.
6982         * tlink.c (recompile_files): Likewise.
6983         * toplev.c (decode_g_option): Likewise.
6984         * tradcpp.c (output_deps): Likewise.
6985         * varasm.c (decode_reg_name): Likewise.
6986
6987         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
6988         Const-ification.
6989         * arm.md: Likewise.
6990         * avr.c (avr_regnames, encode_section_info): Likewise.
6991         * c4x.c (float_reg_names): Likewise.
6992         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
6993         * elfos.h (const_section): Likewise.
6994         * i386.c (ix86_comp_type_attributes): Likewise.
6995         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
6996         * ia64/aix.h (UNIQUE_SECTION): Likewise.
6997         * ia64.c (type_names): Likewise.
6998         * m68hc11.c (reg_class_names): Likewise.
6999         * m88k.c (m_options): Likewise.
7000         * mips.c (mips_output_conditional_branch, mips_unique_section):
7001         Likewise.
7002         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7003         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
7004         ultra_code_names): Likewise.
7005         * sparc.h (OVERRIDE_OPTIONS): Likewise.
7006
7007 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
7008
7009         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
7010         Use --fatal-warnings option for gas.
7011         * configure: Rebuilt.
7012
7013 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7014
7015         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
7016
7017 2001-09-11  Jim Wilson  <wilson@redhat.com>
7018
7019         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
7020
7021 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7022
7023         * builtins.c (c_strlen): Treat an offset too large for a
7024         HOST_WIDE_INT as out of range.
7025
7026 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
7027
7028         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
7029         (EDGE_CRITICAL_P): New predicate.
7030         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
7031         handling.
7032         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
7033         (dump_edge_info): Remove "crit".
7034         * cfganal.c (mark_critical_edges): Kill.
7035         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
7036         * cfgcleanup.c (cleanup_cfg): Likewise.
7037         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
7038         (find_spanning_tree): Likewise.
7039         * reg-stack.c (convert_regs_1): Likewise.
7040         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
7041
7042         * basic-block.h (create_basic_block_structure): New.
7043         (create_basic_block): Update prototype.
7044         (force_nonfallthru): New.
7045         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
7046         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
7047         handle updating of block_for_insn, creating of empty BBs and BBs at
7048         the end of INSN chain.
7049         (create_basic_block): New function.
7050         (split_block): Use create_basic_block.
7051         (force_nonfallthru_and_redirect): Break out from ...; cleanup
7052         (redirect_edge_and_branch_force): ... here.
7053         (force_nonfallthru): New.
7054         (split_edge): Rewrite to use force_nonfallthru and create_block.
7055         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
7056         (find_basic_blocks): Free basic_block_for_insn.
7057         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
7058
7059         * cfg.c: Fix formating.
7060         * cfgcleanup.c: Fix formating.
7061         (merge_blocks, tail_recursion_label_p): Return bool.
7062         (merge_blocks_move_predecessor_nojumps,
7063          merge_blocks_move_successor_nojumps): Return void.
7064
7065 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
7066
7067         * configure.in: Check whether assembler supports section merging.
7068         * config.in: Rebuilt.
7069         * configure: Rebuilt.
7070         * varasm.c (variable_section, output_constant_pool): Pass alignment
7071         to SELECT_SECTION and SELECT_RTX_SECTION.
7072         (mergeable_string_section): New.
7073         (mergeable_constant_section): New.
7074         (default_elf_asm_named_section): Output SECTION_MERGE and
7075         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7076         * output.h (mergeable_string_section): New.
7077         (mergeable_constant_section): New.
7078         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
7079         * toplev.c (flag_merge_constants): New.
7080         (f_options): Add -fmerge-constants and -fmerge-all-constants
7081         options.
7082         (toplev_main): Default to -fno-merge-constants if not optimizing.
7083         * flags.h (flag_merge_constants): Add extern.
7084         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
7085         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
7086         argument.
7087         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
7088         Define if assembler has working .subsection -1 support.
7089         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
7090         Put constant into special SHF_MERGE sections if the linker should
7091         attempt to merge duplicates.
7092         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
7093         macro argument.
7094         Put constant into special SHF_MERGE sections if the linker should
7095         attempt to merge duplicates.
7096         * config/alpha/elf.h: Likewise.
7097         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
7098         has working .subsection -1 support.
7099         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
7100         SELECT_SECTION.
7101         * config/svr3.h: Likewise.
7102         * config/darwin.h: Likewise.
7103         * config/arm/aof.h: Likewise.
7104         * config/arm/linux-elf.h: Likewise.
7105         * config/avr/avr.h: Likewise.
7106         * config/c4x/c4x.h: Likewise.
7107         * config/d30v/d30v.h: Likewise.
7108         * config/i386/dgux.h: Likewise.
7109         * config/i386/osfrose.h: Likewise.
7110         * config/i386/sco5.h: Likewise.
7111         * config/i386/svr3gas.h: Likewise.
7112         * config/ia64/aix.h: Likewise.
7113         * config/m32r/m32r.h: Likewise.
7114         * config/m68k/m68k.h: Likewise.
7115         * config/m88k/dgux.h: Likewise.
7116         * config/m88k/m88k.h: Likewise.
7117         * config/mcore/mcore-pe.h: Likewise.
7118         * config/mips/mips.h: Likewise.
7119         * config/pa/pa.h: Likewise.
7120         * config/pa/pa-linux.h: Likewise.
7121         * config/romp/romp.h: Likewise.
7122         * config/rs6000/sysv4.h: Likewise.
7123         * config/rs6000/xcoff.h: Likewise.
7124         * config/s390/linux.h: Likewise.
7125         * config/sparc/sparc.h: Likewise.
7126         * config/sparc/sysv4.h: Likewise.
7127         * config/stormy16/stormy16.h: Likewise.
7128         * config/v850/v850.h: Likewise.
7129         * config/vax/vms.h: Likewise.
7130         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
7131         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7132         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
7133         default_elf_asm_named_section for SHF_MERGE sections.
7134
7135 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
7136
7137         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
7138         is OK.
7139
7140 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
7141
7142         * c-common.c (split_specs_attrs): Allow for empty attributes with
7143         empty TREE_PURPOSE.  Fixes PR c/4294.
7144
7145 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
7146
7147         * basic-block.h (cached_make_edge, make_single_succ): New.
7148         (make_edge): Remove first parameter.
7149         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
7150         * cfg.c (cached_make_edge): Rename from make_edge; return newly
7151         created edge; use obstack allocation.
7152         (make_edge, make_single_succ_edge): New.
7153         (first_removed_edge): New static variable.
7154         (init_flow): Initialize first_removed_edge and n_edges.
7155         (clear_edges): Use remove_edge.
7156         (flow_delete_block): Likewise.
7157         (remove_edge): Add removed edges to the removed edges list.
7158         (split_block, redirect_edge_and_branch_force, split_edge):
7159         Use make_edge.
7160         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
7161         (add_noreturn_fake_exit_edges): Likewise.
7162         (connect_infinite_loops_to_exit): Liekwise.
7163         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
7164         Use cached_make_edge.
7165         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
7166         * profile.c (branch_prob): Update make_edge call.
7167         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7168
7169 2001-09-11  Richard Henderson  <rth@redhat.com>
7170
7171         * config/alpha/alpha.c: Tidy formatting.
7172         (local_symbolic_operand): Verify mode.
7173         (alpha_sa_mask): Ignore unicos for eh_return.
7174         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
7175         * config/alpha/alpha.md (umk divsi patterns): Remove.
7176         (extendsfdf2): Remove unicos check.
7177         (tablejump): Merge vms and unicos code; always use direct set
7178         plus label_ref use.
7179
7180 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7181
7182         * config.gcc (alpha*-*-unicosmk*): New target.
7183
7184         * config/alpha/alpha-protos.h (symbolic_operand,
7185         unicosmk_add_call_info_word, unicosmk_add_extern,
7186         unicosmk_defer_case_vector, unicosmk_unique_section,
7187         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
7188         unicosmk_asm_file_start, unicosmk_asm_file_end,
7189         unicosmk_output_common): Declare.
7190
7191         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
7192         direct_return, function_arg, alpha_va_start, alpha_va_arg,
7193         alpha_does_function_need_gp, alpha_end_function): Support Cray
7194         Unicos/Mk.
7195         (alpha_init_machine_status, alpha_mark_machine_status,
7196         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
7197         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
7198         unicosmk_asm_named_section, unicosmk_insert_attributes,
7199         unicosmk_section_type_flags, symbolic_operand,
7200         unicosmk_output_module_name, unicosmk_output_default_externs,
7201         unicosmk_output_dex, unicosmk_output_externs,
7202         unicosmk_output_addr_vec, unicosmk_ssib_name,
7203         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
7204         unicosmk_asm_file_end, unicosmk_output_common,
7205         unicosmk_section_type_flags, unicosmk_unique_section,
7206         unicosmk_add_call_info_word, unicosmk_text_section,
7207         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
7208         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
7209         unicosmk_dex_count, unicosmk_special_name): New.
7210         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
7211         TARGET_ABI_UNICOSMK.
7212         (get_aligned_mem, alpha_expand_unaligned_load,
7213         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
7214         alpha_expand_unaligned_store_words): Support big-endian mode.
7215         (print_operand): Likewise. New format specifier 't'. Use
7216         TARGET_AS_SLASH_BEFORE_SUFFIX.
7217         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
7218         (alpha_pv_save_size): Update with above change.
7219         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
7220         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
7221         Unicos/Mk.
7222
7223         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
7224         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
7225         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
7226         (EXTRA_CONSTRAINT): New constraint 'U'.
7227         (PREDICATE_CODES): Add symbolic_operand.
7228
7229         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
7230         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
7231         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
7232         (integer division and modulus patterns): Split in default and
7233         Unicos/Mk versions.
7234         (*divmodsi_internal, *divmoddi_internal): Disable for
7235         TARGET_ABI_UNICOSMK.
7236         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
7237         little-endian and big-endian versions.
7238         (ext, ins, msk): Likewise.
7239         (extv, extzv, insv): Support big-endian mode.
7240         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
7241         (call_umk, call_value_umk, *call_umk, tablejump_umk,
7242         *tablejump_umk_internal, *call_value_umk): New.
7243         (*movdi_nofix): Add pattern for loading an address into a register on
7244         TARGET_ABI_UNICOSMK.
7245         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
7246         (umk_mismatch_args, arg_home_umk): New.
7247         (various insns): Don't use mov, fmov, nop, fnop and unop.
7248         (realign): Support TARGET_ABI_UNICOSMK.
7249
7250         * config/alpha/unicosmk.h: New file.
7251         * config/alpha/t-unicosmk: New file.
7252
7253         * fixinc/inclhack.def (unicosmk_restrict): New.
7254         * fixinc/fixincl.x: Regenerate.
7255
7256         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
7257         (wchar_t): Check for and define __WCHAR_T__.
7258
7259 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
7260
7261         * combine.c (simplify_shift_const): Treat shifts by the mode
7262         size as undefined.
7263
7264 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7265
7266         * cpphash.h (struct tokenrun): New.
7267         (struct cpp_context): New member bol.
7268         (struct cpp_reader): New members.
7269         (_cpp_init_tokenrun): New.
7270         * cppinit.c (cpp_create_reader): Set up the token runs.
7271         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
7272         (lex_token): New internalised version of _cpp_lex_token.  Don't
7273         handle directives or the multiple include opimisation here any
7274         more.  Simply lex a token.
7275         * cpplib.c (run_directive): Clear bol.
7276         (_cpp_pop_buffer): Set bol.
7277         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
7278         arguments.
7279
7280 2001-09-11  Michael Meissner  <meissner@redhat.com>
7281
7282         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
7283         give an error if the user uses -mfp32.
7284         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
7285         default options.
7286         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
7287         floating point register size.
7288         (EXTRA_SPECS): Add CPP_FPR_SPEC.
7289
7290         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
7291         HOST_WIDE_INT_PRINT_DEC to properly print the result of
7292         int_size_in_bytes.
7293         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7294         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7295
7296 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
7297
7298         * dbxout.c (dbxout_parms): Fix typo in comment.
7299         * unroll.c (loop_find_equiv_value): Ditto.
7300         * toplev.c (rest_of_compilation): Ditto.
7301         * loop.c (scan_loop): Ditto.
7302         * dwarf2out.c (struct dw_fde_struct): Ditto.
7303
7304 2001-09-10  Zack Weinberg  <zackw@panix.com>
7305
7306         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
7307         copying identifier when we're just going to throw it away.
7308         (parse_identifier_slow): New routine to handle abnormal cases.
7309         (_cpp_lex_token): Update call site.
7310
7311         * hashtable.c (ht_lookup): Don't assume that the string we've
7312         been given is NUL-terminated.
7313         * system.h: #define __builtin_expect(a, b) to (a) if not
7314         GCC >=3.0.
7315
7316 2001-09-10  Michael Meissner  <meissner@redhat.com>
7317
7318         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
7319         binutils, gdb.
7320
7321 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
7322
7323         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
7324
7325 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7326
7327         * builtins.c (c_getstr): Correct thinko in last change and further
7328         cleanup.
7329
7330 2001-09-10  Tim Freeman <tim@fungibole.com>
7331
7332         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
7333         into varray's and register them as roots with the garbage
7334         collector so they are not collected too soon.
7335
7336 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
7337
7338         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
7339         New.
7340         * basic-block.h (flow_obstack, label_value_list,
7341         tail_recursion_label_list): Declare
7342         (tidy_fallthru_edges): Declare.
7343         (expunge_block, last_loop_beg_note): Delete.
7344         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
7345         * cfg.c: New file
7346         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
7347         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
7348         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
7349         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
7350         expunge_block, flow_delete_block, compute_bb_for_insn,
7351         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
7352         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
7353         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
7354         try_redirect_by_replacing_jump, last_loop_beg_note,
7355         redirect_edge_and_branch, redirect_edge_and_branch_force,
7356         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
7357         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
7358         commit_edge_insertions, dump_flow_info, debug_flow_info,
7359         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
7360         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
7361         Move here from flow.c
7362         * cfganal.c: New file.
7363         (forwarder_block_p, can_fallthru, mark_critical_edges,
7364          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
7365          find_unreachable_blocks, create_edge_list, free_edge_list,
7366          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
7367          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
7368          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
7369          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
7370          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
7371          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
7372         Move here from flow.c
7373         * cfgbuild.c: New file
7374         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
7375          make_edges, find_basic_blocks_1, find_basic_blocks,
7376          find_sub_basic_blocks): Move here from flow.c
7377         * cfgcleanup.c: New file.
7378         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
7379          merge_blocks_move_predecessor_nojumps,
7380          merge_blocks_move_successor_nojumps, merge_blocks,
7381          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
7382          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
7383         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
7384         if succeeded.
7385         * cfgloop.c: New file
7386         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
7387          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
7388          flow_loop_exit_edges_find, flow_loop_nodes_find,
7389          flow_loop_pre_header_scan, flow_loop_pre_header_find,
7390          flow_loop_tree_node_add, flow_loops_tree_build,
7391          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
7392          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
7393         Move here from flow.c
7394         * flow.c: Remove everything moved elsewhere
7395         * output.h (cleanup_cfg): Return bool.
7396
7397         * bb-reorder.c (reorder_block_def): Remove 'index'.
7398         (insert_intra_1): Add argument BB, set block for new note.
7399         (make_reorder_chain): Do not depdent on BB indexes.
7400         (make_reorder_chain_1): Do not use BB indexes.
7401         (label_for_bb): Likewise; set BB for new insn.
7402         (emit_jump_to_block_after): Likewise.
7403         (fixup_reoder_chain): Sanity check that all basic blocks
7404         are chained; verify newly created insn chain; remove
7405         undocnitional jump simplifying; Do not use BB indexes;
7406         properly initialize count and frequency information;
7407         dump reordered sequence.
7408         (insert_intra_bb_scope_notes): update call of insert_intra_1.
7409         (insert_inter_bb_scope_notes): Set block for new insn.
7410         (reorder_basic_blocks): Dump flow info before reoredering.
7411
7412 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7413
7414         * alias.c (clear_reg_alias_info): Use K&R format definition.
7415         Avoid unsigned warning.
7416         * builtins.c: Use "unsigned int", not "unsigned".
7417         (target_char_cast): Use host_integerp and tree_low_cst.
7418         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
7419         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
7420         (c_getstr): Likewise.
7421         (std_expand_builtin_va_arg): Use int_size_in_bytes.
7422         (builtin_memcpy_read_str): Avoid unsigned warning.
7423         (expand_builtin_memcpy): Alignments are unsigned.
7424         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
7425         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
7426         * predict.c (expensive_function_p): LIMIT now unsigned.
7427         * resource.c (mark_target_live_regs): Make some vars unsigned.
7428         * sdbout.c: Use "unsigned int", not "unsigned".
7429         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
7430         (sdbout_source_line): Likewise.
7431         (sdbout_record_type_name): Remove "const" for NAME declaration.
7432         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
7433
7434 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
7435
7436         * calls.c (store_one_arg): Expand comment.
7437
7438 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7439
7440         * calls.c (store_one_arg): Make sure that the entire argument is
7441         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
7442
7443 2001-09-09  Richard Henderson  <rth@redhat.com>
7444
7445         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
7446
7447 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
7448
7449         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
7450
7451 2001-09-09  Richard Henderson  <rth@redhat.com>
7452
7453         * config/alpha/alpha.c (alpha_next_sequence_number): New.
7454         (alpha_this_literal_sequence_number): New.
7455         (alpha_this_gpdisp_sequence_number): New.
7456         (some_operand, input_operand): Add HIGH.
7457         (local_symbolic_operand): New.
7458         (alpha_encode_section_info): New.
7459         (alpha_legitimate_address_p): Allow LO_SUM.
7460         (alpha_legitimize_address): Generate HIGH+LO_SUM.
7461         (alpha_expand_mov): Likewise.
7462         (secondary_reload_class): Check memory_operand not general_operand
7463         for FP_REGS test.
7464         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
7465         (alpha_expand_unaligned_store): Likewise.
7466         (alpha_expand_unaligned_load_words): Likewise.
7467         (alpha_expand_unaligned_store_words): Likewise.
7468         (alpha_expand_block_clear): Likewise.
7469         (print_operand): Handle %#, %*, %H.
7470         (print_operand_address): Handle LO_SUM.
7471         (find_lo_sum): New.
7472         (alpha_does_function_need_gp): Use it.
7473         (alpha_expand_block_move): Fix signed compare warnings.
7474         (alpha_sa_mask, alpha_align_insns): Likewise.
7475         * config/alpha/alpha-protos.h: Update.
7476         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
7477         (MASK_EXPLICIT_RELOCS): New.
7478         (TARGET_SWITCHES): Add -mexplicit-relocs.
7479         (EXTRA_CONSTRAINT): Add 'T'.
7480         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
7481         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
7482         (ENCODE_SECTION_INFO): Out line.
7483         (REDO_SECTION_INFO_P): New.
7484         (STRIP_NAME_ENCODING): New.
7485         (ASM_OUTPUT_LABELREF): New.
7486         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
7487         (PREDICATE_CODES): Update.
7488         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
7489         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
7490         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
7491         builtin_setjmp_receiver_er, exception_receiver_1_er,
7492         call_value_osf_1_er): New patterns.
7493         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
7494         (movqi, movhi, movsi): Add explicit $31 base register to lda.
7495         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
7496         (FINAL_PRESCAN_INSN): New.
7497
7498 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
7499
7500         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
7501
7502 2001-09-08  Andreas Jaeger  <aj@suse.de>
7503
7504         * i386.h (TARGET_SWITCHES): Fix description.
7505
7506 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
7507
7508         * rs6000.c (num_insns_constant): Compute number of instructions
7509         more accurately.
7510
7511         * doc/install.texi: Explain AIX exception handling work-around.
7512         Update URL for AIX fixes.
7513
7514 2001-09-07  Jim Wilson  <wilson@redhat.com>
7515
7516         * alias.c (clear_reg_alias_info): New.
7517         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
7518         * rtl.h (clear_reg_alias_info): Declare.
7519
7520 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7521
7522         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
7523         available.
7524         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
7525         (m16m,edivm,emulm): Change declaration to match definition.
7526
7527 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
7528
7529         * reload.c (push_reload): Check for subreg_lowpart_p instead of
7530         SUBREG_BYTE being 0 when determining if the inner part of a subreg
7531         can be reloaded.
7532
7533 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7534
7535         * c-common.c (signed_or_unsigned_type): Handle machine mode types
7536         which have no corresponding C type.
7537         * fold_const.c (target_isinf,target_isnan,target_negative): Update
7538         the representation of 64-bit doubles to work with 64-bit ints.
7539
7540 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
7541
7542         * config/mips/mips.c (override_options): Do not override ISA when ABI
7543         specified if MIPS_CPU_STRING_DEFAULT was specified.
7544
7545 2001-09-07  Richard Henderson  <rth@redhat.com>
7546
7547         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
7548         (express_from_1): Wrap lines.
7549         * rtlanal.c (commutative_operand_precedence): Rename from
7550         operand_preference; export.
7551         * rtl.h: Declare it.
7552         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
7553         (simplify_binary_operation): Invoke simplify_plus_minus on
7554         (CONST (PLUS ...)) as well.
7555         (struct simplify_plus_minus_op_data): New.
7556         (simplify_plus_minus_op_data_cmp): New.
7557         (simplify_plus_minus): Use them.  Avoid infinite recursion with
7558         simplify_binary_operation wrt CONST.
7559
7560 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
7561
7562         * h8300-protos.h (general_operand_dst_push): Remove.
7563         * h8300.c (general_operand_dst_push): Likewise.
7564         * h8300.h (OK_FOR_T): Likewise.
7565         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
7566         * h8300.md (pushqi_h8300): New.
7567         (pushqi_h8300hs): Likewise.
7568         (pushqi): Likewise.
7569         (pushhi_h8300): Likewise.
7570         (pushhi_h8300hs): Likewise.
7571         (pushhi): Likewise.
7572
7573 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7574
7575         * genattrtab.c (attr_printf): First arg is unsigned.
7576         Clean up formatting of callers.
7577
7578 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
7579
7580         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
7581         registers.
7582
7583 2001-09-07  Andreas Jaeger  <aj@suse.de>
7584
7585         * i386.h (TARGET_SWITCHES): Fix descriptions.
7586
7587 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7588
7589         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
7590
7591 2001-09-06  Ira Ruben  <ira@apple.com>
7592
7593         Remove OP_IDENTIFIER.
7594         * tree.def (OP_IDENTIFIER): Remove.
7595         * tree.c (tree_node_kind enum): Remove op_id_kind.
7596         (tree_node_kind_names): Remove "op_identifiers".
7597         (make_node): Remove OP_IDENTIFIER test.
7598         (build_op_identifier): Removed because it isn't being used.
7599         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
7600         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
7601
7602 2001-09-06  Richard Henderson  <rth@redhat.com>
7603
7604         * simplify-rtx.c (simplify_binary_operation): Revert last change.
7605
7606 2001-09-06  Richard Henderson  <rth@redhat.com>
7607
7608         * simplify-rtx.c (simplify_binary_operation): Simplify contents
7609         of CONST.
7610
7611 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7612
7613         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
7614         number used for CR register.
7615
7616 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
7617                           Joern Rennecke (amylaar@cygnus.com)
7618
7619         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
7620         * h8300.c (initial_offset): Handle offset between RP and FP.
7621         (h8300_return_addr_rtx): New function.
7622         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
7623         return register.
7624         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
7625         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7626         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
7627         (CAN_ELIMINATE, REGISTER_NAMES):
7628         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
7629
7630 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
7631
7632         Remove TYPE_NONCOPIED_PARTS.
7633         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
7634         (struct tree_type): Remove noncopied_parts.
7635         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
7636         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
7637         (fixed_type_p): Remove.
7638         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
7639         (expand_expr, MODIFY_EXPR): Likewise.
7640         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
7641         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
7642
7643 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
7644
7645         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
7646         compiler warnings.
7647         (mask64_operand): Likewise.
7648         (includes_rldic_lshift_p): Likewise.
7649         (includes_rldicr_lshift_p): Likewise.
7650
7651 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
7652
7653         * objc/objc-act.c (build_message_expr): If a class method cannot
7654         be found, do not issue a warning if a corresponding instance
7655         method exists in the root class.
7656
7657 2001-09-05  Richard Henderson  <rth@redhat.com>
7658
7659         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
7660
7661 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
7662
7663         * function.c (ggc_mark_struct_function): Mark f->outer.
7664         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
7665         * integrate.c (output_inline_function): ... not here.
7666
7667 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
7668
7669         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
7670
7671         * i386.c (size_cost): New static variable.
7672         (override_function): Use size_cost when -Os is specified.
7673
7674         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
7675         properly;  Use current_function_calls_eh_return.
7676         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
7677         use leave to avoid dependency chain.
7678
7679         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
7680         get BB loop_depth instead of computing it from LOOP notes.
7681
7682         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
7683
7684 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7685
7686         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7687         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
7688         UNALIGNED_DOUBLE_INT_ASM_OP): Define
7689
7690 2001-09-05  Jeffrey A Law  (law@cygnus.com)
7691             Jason Merrill (jason@redhat.com)
7692
7693         * stor-layout.c (layout_type): Complain if an array's size can
7694         not be represented in a size_t.
7695
7696         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
7697
7698 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
7699
7700         * gcc.c: (process_command) Add parentheses around assignment
7701         used as truth value.
7702
7703 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
7704
7705         * config/mips/mips.c (save_restore_insns): Don't mark any register
7706         save slots as unchanging if current_function_calls_eh_return.
7707
7708 2001-09-05  Richard Henderson  <rth@redhat.com>
7709
7710         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
7711         * config/alpha/alpha-protos.h: Declare it.
7712         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
7713         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
7714         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
7715         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
7716         (REG_OK_FOR_BASE_P): Select one of the above.
7717
7718 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
7719
7720         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
7721         (crti.o): Prefix name of object file with $(T).
7722         (crtn.o): Likewise.
7723
7724 2001-09-05  David S. Miller  <davem@redhat.com>
7725
7726         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7727         * config/sparc/linux64.h: Likewise.
7728
7729 2001-09-05  Andreas Jaeger  <aj@suse.de>
7730
7731         * doc/invoke.texi (i386 Options): -mwide-multiply is not
7732         available anymore, remove the documentation.
7733         (i386 Options): Fix typo, cleanup index entries.
7734
7735         * prefix.c (concat): Remove, we can use the version from liberty.
7736
7737 2001-09-05  Richard Henderson  <rth@redhat.com>
7738
7739         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
7740         New functions split out of md file expanders.
7741         * config/alpha/alpha-protos.h: Declare them.
7742         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
7743
7744 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7745
7746         * cppmacro.c (funlike_invocation_p): No need to restore context.
7747
7748 2001-09-04  Richard Henderson  <rth@redhat.com>
7749
7750         * reload.c (push_reload): Export.
7751         * reload.h (push_reload): Declare it.
7752
7753         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
7754         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
7755         * config/alpha/alpha.c (alpha_legitimize_address): New.
7756         (alpha_legitimize_reload_address): Likewise.
7757         * config/alpha/alpha-protos.h: Declare them.
7758
7759 2001-09-04  Stan Shebs  <shebs@apple.com>
7760
7761         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
7762         * config/darwin.c (machopic_stub_name): Account for internally
7763         generated lib calls such as memcpy.
7764
7765 2001-09-04  Richard Henderson  <rth@redhat.com>
7766
7767         * unwind.h (_UA_END_OF_STACK): New flag.
7768         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
7769
7770 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
7771
7772         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
7773
7774 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
7775
7776         * config/mips/mips.c (save_restore_insns): Change base_offset to
7777         fp_offset in second call to mips_emit_frame_related_store.
7778
7779 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
7780
7781         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
7782         sometimes be represented as a NOTE of type
7783         NOTE_INSN_DELETED_LABEL.
7784         (Insns): Document NOTE_INSN_DELETED_LABEL.
7785
7786 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
7787
7788         * c-common.h (tree_dump_index): Add more comments.
7789         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
7790         (dump_option_value_info): New struct.
7791         (dump_options): New array.
7792         (dump_switch_p): Parse switch options symbolically.
7793         * doc/invoke.texi (-fdump-ast): Rename to ...
7794         (-fdump-tree): ... here. Document that options are symbolic, and
7795         not all are applicable.
7796
7797 2001-09-04  David S. Miller  <davem@redhat.com>
7798
7799         * config/sparc/sparc.md (define_splits): Kill constraints.
7800
7801         Cleanup redundant and unused insn attributes.
7802         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
7803         binary, and move.  Mark ialu as default.
7804         (commented out define_function_unit "alu"): Kill.
7805         (define_attr "use_clobbered"): Kill.
7806         (whole file): Kill address insn type references.  Replace
7807         all unary/binary/move references with ialu.
7808         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
7809         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
7810         TYPE_IALU.
7811
7812         Simplify length insn attribute and make more judicious use
7813         of insn attribute defaulting.
7814         * config/sparc/sparc.md (all insns with length > one): Mark as
7815         insn type multi if real instructions, else use default if
7816         it is a forced splitter.
7817         (all insns with length == one): Use default insn length.
7818         (all insns of type ialu): Use default insn type.
7819
7820         Fix erroneous insn attribute settings.
7821         (addx): Set insn type to misc.
7822         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
7823         const_umulsidi3_sp64): Set insn type to imul.
7824
7825         Track SFmode vs DFmode insns according to UltraSPARC
7826         scheduling rules.
7827         * config/sparc/sparc.md ("fptype"): New attribute, default
7828         to "single".
7829         (all DFmode single insns): Mark as fptype "double".
7830
7831 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
7832
7833         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
7834
7835 2001-09-03  Richard Henderson  <rth@redhat.com>
7836
7837         * function.h (struct function): Add arg_pointer_save_area_init.
7838         * function.c (expand_function_end): Init arg_pointer_save_area.
7839         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
7840         when called from a nested function.
7841
7842 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
7843
7844         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
7845         is enabled.
7846
7847 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
7848
7849         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
7850
7851 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
7852
7853         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
7854         (emit_push_insn): Use specified padding direction when
7855         STACK_PUSH_CODE is POST_INC.
7856
7857         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
7858
7859 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7860
7861         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
7862
7863 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7864
7865         * cppinit.c (cpp_start_read): Free the imacros list as we
7866         traverse it.  Don't free the chains before returning.
7867         (_cpp_push_next_buffer): Only try pushing buffers if we've
7868         completed -imacros handling.
7869
7870 2001-08-31  Eric Christopher  <echristo@redhat.com>
7871
7872         * gcc.c (handle_braces): Add explaination for abort.
7873
7874 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
7875
7876         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
7877         move adjustment of bitpos instead.
7878
7879 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
7880
7881         * function.c: Remove all_functions.  Make outer_function_chain
7882         static.
7883         (init_function_start): Don't add new function structure to
7884         all_functions.
7885         (find_function_data, push_function_context_to,
7886         pop_function_context_from, put_var_into_stack,
7887         trampoline_address): Update for changed structure element names.
7888         (push_function_context_to): Disentangle.
7889         (free_after_compilation): Also free F.
7890         (expand_dummy_function_end): Don't free cfun here.
7891         (put_var_into_stack): Comment why we can't use find_function_data here.
7892         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
7893         (mark_function_chain): Split into maybe_mark_struct_function and
7894         ggc_mark_struct_function.  Export the latter.
7895         (init_function_once): Mark from cfun and outer_function_chain;
7896         not all_functions.
7897
7898         * function.h (struct function): Kill next_global.  Rename next
7899         to outer.  All users updated to match.
7900         (all_functions, outer_function_chain): Don't declare.
7901
7902         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
7903         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
7904         don't touch f->inlinable, after calling rest_of_compilation.
7905
7906         * tree.h: Forward-declare struct function.  Prototype
7907         ggc_mark_struct_function.
7908
7909 2001-08-31  Kazu Hirata  <kazu@hxi.com>
7910
7911         * config/h8300/h8300.md (*andorhi3): Fix typos.
7912
7913 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7914
7915         * calls.c (emit_library_call_value): Don't use a fixed
7916         argument after VA_CLOSE, i.e. out of scope in traditional C.
7917
7918         * emit-rtl.c (gen_rtvec): Likewise.
7919
7920 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7921
7922         * Makefile.in (c-pragma.o): Depend on output.h.
7923         (reorg.o): Depend on except.h.
7924
7925         * c-pragma.c: Include output.h.
7926
7927         * reorg.c: Include except.h.
7928
7929         * unwind-dw2.c: Call __builtin_alloca, not alloca.
7930
7931 2001-08-31  Richard Henderson  <rth@redhat.com>
7932
7933         * sched-deps.c (add_dependence): Don't elide dependency if the
7934         conditional used by insn is modified in elem.
7935
7936 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
7937
7938         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
7939
7940 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
7941
7942         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
7943         dump_switch_p.
7944
7945 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
7946
7947         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
7948         function.
7949         (stormy16_asm_out_constructor): New function.
7950         (TARGET_ASM_CONSTRUCTOR): Define.
7951         (TARGET_ASM_DESTRUCTOR): Define.
7952
7953 2001-08-31  Andreas Jaeger  <aj@suse.de>
7954
7955         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
7956         * loop.c (add_label_notes): Likewise.
7957         * reload.c (find_reloads): Likewise.
7958         * config/sh/sh.c (machine_dependent_reorg): Likewise.
7959
7960 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
7961
7962         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
7963         code here.  Take _Unwind_{W,Sw}ord*.
7964         (read_encoded_value_with_base): Use them.
7965         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
7966         words.
7967         (extract_cie_info): Simplify read_?leb128 handling.
7968         (execute_stack_op, execute_cfa_program): Likewise.
7969         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
7970
7971 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
7972
7973         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
7974         the frame pointer to pop the stack if convenient.
7975
7976         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
7977         Don't use post-increment before combine.
7978         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
7979         a call-saved register.
7980
7981 2001-08-31  Andreas Jaeger  <aj@suse.de>
7982
7983         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
7984         code was correct.
7985
7986 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
7987
7988         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
7989         not DIV/MOD, of course.
7990
7991 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
7992
7993         * rtl.def: Undo my patch commited 2001-08-27.
7994
7995         * genattrtab.c: Ditto.
7996
7997         * rtl.h: Ditto.
7998
7999         * sched-int.h: Ditto.
8000
8001         * target-def.h: Ditto.
8002
8003         * target.h: Ditto.
8004
8005         * haifa-sched.c: Ditto.
8006
8007         * sched-rgn.c: Ditto.
8008
8009         * sched-vis.c: Ditto.
8010
8011         * Makefile.in: Ditto.
8012
8013         * doc/md.texi: Ditto.
8014
8015         * doc/tm.texi: Ditto.
8016
8017         * doc/contrib.texi: Ditto.
8018
8019         * doc/gcc.texi: Ditto.
8020
8021         * genattrtab.h: Remove it.
8022
8023         * genautomata.c: Remove it.
8024
8025         * genattr.c: Undo my patch and Richard Henderson's patch commited
8026         2001-08-27.
8027
8028 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
8029
8030         * config.gcc (h8300-*-elf*): New case.
8031         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
8032         (SUBTARGET_CPP_SPEC): Define.
8033         (EXTRA_SPECS): Define.
8034         (SUBTARGET_EXTRA_SPECS): Define.
8035         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
8036         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
8037
8038 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
8039
8040         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
8041         (LIB2FUNCS_EXTRA): Define.
8042         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
8043         config/h8300/fixunssfsi.c: New file.
8044
8045 2001-08-30  Kazu Hirata  <kazu@hxi.com>
8046
8047         * config/h8300/h8300.md (zero_extendqihi2): Changes to
8048         define_expand to accommodate target-specific attributes.
8049         (anonymous zero_extendqihi2 patterns): New.
8050
8051 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
8052
8053         * h8300.md (*andorhi3): New pattern.
8054
8055 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
8056
8057         * h8300.c (dosize): Fix test for "sub".
8058
8059 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
8060
8061         * c-typeck.c (pointer_diff): Try to eliminate common term before
8062         doing conversions.
8063
8064 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
8065
8066         * config/arm/arm.c (arm_compute_initial_elimination_offset):
8067         Account for the saves of the FP registers.
8068
8069         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
8070         (TEXT_SECTION_ASM_OP): Define.
8071         (INIT_SECTION_ASM_OP): Define.
8072         (FINI_SECTION_ASM_OP): Define.
8073         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
8074         (RDATA_SECTION_FUNCITON): Provide prototype.
8075
8076 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
8077
8078         * reload1.c (move2add_note_store): Correct typo checking for
8079         argument pushes.
8080
8081 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
8082
8083         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
8084         note should not be considered outside the libcall block.
8085
8086 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8087
8088         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
8089
8090 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8091
8092         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
8093
8094 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8095
8096         * config/h8300/h8300-protos.h: Add a prototype for
8097         emit_logical_op.
8098         * config/h8300/h8300.c (emit_logical_op): New.
8099         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
8100         (andsi3): Likewise.
8101         (iorhi3): Likewise.
8102         (iorsi3): Likewise.
8103         (xorhi3): Likewise.
8104         (xorsi3): Likewise.
8105
8106 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8107
8108         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
8109         comparison with rtx INTVAL.
8110         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
8111         expression.
8112         * pa.h (FUNCTION_ARG_SIZE): Likewise.
8113
8114 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8115
8116         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
8117         comment typos.
8118
8119 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8120
8121         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
8122         (reg n) to (mem (pre_dec (reg n))
8123         (anonymous movsi pattern): Likewise.
8124
8125 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8126
8127         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
8128
8129 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8130
8131         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
8132         several special constants.
8133
8134 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8135
8136         * config/h8300/lib1funcs.asm: Fix comment typos.
8137
8138 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8139
8140         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
8141         Fix format specifier warnings.
8142
8143         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
8144         inet_makeaddr, semctl): Prototype.
8145
8146         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
8147         (save_restore_insns): Use base_offset, not gp_offset.
8148
8149         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
8150         (ASM_OUTPUT_BYTE): Fix format specifier warning.
8151
8152 2001-08-29  Richard Henderson  <rth@redhat.com>
8153
8154         * bb-reorder.c (function_tail_eff_head): New.
8155         (record_effective_endpoints): Set it.
8156         (fixup_reorder_chain): Use it.
8157
8158 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8159
8160         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
8161
8162 2001-08-28  Dale Johannesen  <dalej@apple.com>
8163
8164         * config/darwin.c (machopic_function_base_name): Add const
8165         qualifier to a string.
8166         (darwin_encode_section_info): Ditto.
8167
8168 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8169
8170         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
8171         function definition.
8172
8173 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
8174
8175         * df.h (struct df): Add rts_order variable.
8176
8177         * df.c (df_visit_next_rts): New function.
8178         (df_visit_next): Renamed to df_visit_next_rc
8179         (df_analyse_1): Allocate/compute/free rts_order as well.
8180         (df_rd_global_compute): Use df_visit_next_rc instead of
8181         df_visit_next.
8182         (df_ru_global_compute): Use df_visit_next_rts instead of
8183         df_visit_next.
8184
8185         * flow.c (flow_reverse_top_sort_order_compute): New function.
8186
8187         * basic-block.h: Add prototype.
8188
8189 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
8190
8191         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
8192         blocks, the BB_REACHABLE is now set, rather than aux being
8193         non-NULL. Update the test to reflect this.
8194
8195 2001-08-28  Eric Christopher  <echristo@redhat.com>
8196
8197         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
8198         config/mips/crti.asm: Ditto.
8199
8200 2001-08-28  Eric Christopher <echristo@redhat.com>
8201             Richard Henderson <rth@redhat.com>
8202
8203         * c-pragma.h (add_weak): Move prototype from here...
8204         * output.h (add_weak): ... to here.
8205         * varasm.c (add_weak): Fix typo.
8206         * config/mips/crti.asm: New file.
8207         * config/mips/crtn.asm: Ditto.
8208         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
8209         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
8210         (INVOKE__main): Ditto.
8211         (INIT_SECTION_ASM_OP): New.
8212         (FINI_SECTION_ASM_OP): Ditto.
8213         (STARTFILE_SPEC): Add crti.
8214         (ENDFILE_SPEC): Add crtn.
8215         * config/mips/elf64.h: Same.
8216         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
8217         Remove.
8218         * config/mips/vxworks.h: Ditto.
8219         * config/mips/t-elf: Support crti and crtn.
8220
8221 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8222
8223         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
8224         INSN_LIST.
8225
8226 2001-08-28  Richard Henderson  <rth@redhat.com>
8227
8228         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
8229         (one_cmplbi2 splitter): Remove redundant test.
8230
8231 2001-08-28  Dale Johannesen  <dalej@apple.com>
8232
8233         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
8234
8235 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
8236
8237         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
8238
8239 2001-08-28  Stan Shebs  <shebs@apple.com>
8240
8241         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
8242         (UNALIGNED_SHORT_ASM_OP): Define.
8243         (UNALIGNED_INT_ASM_OP): Define.
8244
8245 2001-08-28  Will Cohen  <wcohen@redhat.com>
8246
8247         * config/rs6000/rs6000.md (store_multiple): Correct RTL
8248         generation for first set.
8249
8250 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
8251
8252         * flow.c (redirect_edge_succ_nodup): Return new edge.
8253         (try_simplify_condjump): Use new edge.
8254         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
8255
8256         * cse.c (cse_basic_block): Skip note instructions.
8257
8258 2001-08-27  Richard Henderson  <rth@redhat.com>
8259
8260         * combine.c (combine_simplify_rtx): Don't reverse condition
8261         if there is no reverse for the condition.
8262         (simplify_comparison): Don't simplify subregs from INT to FP.
8263
8264         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
8265         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
8266         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
8267         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
8268         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
8269         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
8270
8271 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
8272
8273         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
8274         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
8275         (pushqi1): New.
8276         (adddi_dilshr32, adddi_dishl32): Only data register can be
8277         source for mem destination.
8278
8279         * expmed.c (store_bit_field): Ignore adjustment to bitpos
8280         and use bitnum to decide about register move.
8281
8282 2001-08-27  Richard Henderson  <rth@redhat.com>
8283
8284         * genattr.c (main): Emit state_t even when not doing scheduling.
8285
8286 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
8287             Richard Henderson  <rth@redhat.com>
8288
8289         * gcse.c (reg_first_set, reg_last_set): Replace with ...
8290         (reg_avail_info, current_bb): ... these.
8291         (oprs_unchanged_p, record_last_reg_set_info): Use them.
8292         (compute_hash_table): Likewise.
8293
8294 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
8295
8296         * flow.c (verify_flow_info): Use checksums to verify edges.
8297
8298 2001-08-27  Richard Henderson  <rth@redhat.com>
8299
8300         * genautomata.c (expand_automata): Always create a description.
8301
8302 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
8303
8304         * optabs.c (expand_binop): Correctly handle the carry in multiword
8305         add/subtract operations.
8306
8307 2001-08-27  Fred Fish  <fnf@be.com>
8308
8309         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
8310         __SIZE_TYPE__.
8311
8312 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
8313
8314         * reload.c (find_reloads_toplev): Back out this change:
8315
8316         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
8317
8318         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
8319         mem if the address is a mode_dependent_address_p.
8320
8321 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
8322
8323         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
8324         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8325         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8326         RTL constructions.
8327
8328         * genattr.c (main): New variable num_insn_reservations.  Increase
8329         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
8330         pipeline hazard recognizer interface.
8331
8332         * genattrtab.h: New file.
8333
8334         * genattrtab.c: Include genattrtab.h.
8335         (attr_printf, check_attr_test, make_internal_attr,
8336         make_numeric_value): Move protypes into genattrtab.h.  Define them
8337         as external.
8338         (num_dfa_decls): New global variable.
8339         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8340         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8341         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8342         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
8343
8344         * genautomata.c: New file.
8345
8346         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8347
8348         * sched-int.h: (curr_state): Add the external definition for
8349         automaton pipeline interface.
8350         (haifa_insn_data): Add comments for members blockage and units.
8351
8352         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8353         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8354         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8355         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8356         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8357         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8358         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8359         macros.
8360         (TARGET_SCHED): Use the new macros.
8361
8362         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8363         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8364         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8365         dfa_bubble): New members in gcc_target.sched.
8366
8367         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
8368         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8369         (insn_queue): Redefine it as pointer to array.
8370         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8371         INSN_QUEUE_SIZE.
8372         (max_insn_queue_index_macro_value): New variable.
8373         (curr_state, dfa_state_size, ready_try): New varaibles for
8374         automaton interface.
8375         (ready_element, ready_remove, max_issue): New function prototypes
8376         for automaton interface.
8377         (choose_ready): New function prototype.
8378         (insn_unit, blockage_range): Add comments.
8379         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8380         FUNCTION_UNITS_SIZE == 0.
8381         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8382         actual_hazard, potential_hazard): Add comments.
8383         (insn_cost): Use cost -1 as undefined value.  Remove
8384         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
8385         pipeline interface.
8386         (ready_element, ready_remove): New functions for automaton
8387         interface.
8388         (schedule_insn): Add new code for automaton pipeline interface.
8389         (queue_to_ready): Add new code for automaton pipeline interface.
8390         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8391         (debug_ready_list): Print newline when the queue is empty.
8392         (max_issue): New function for automaton pipeline interface.
8393         (choose_ready): New function.
8394         (schedule_block): Add new code for automaton pipeline interface.
8395         Print ready list before scheduling each insn.
8396         (sched_init): Add new code for automaton pipeline interface.
8397         Initiate insn cost by -1.
8398         (sched_finish): Free the current automaton state and finalize
8399         automaton pipeline interface.
8400
8401         * sched-rgn.c: Include target.h.
8402         (init_ready_list, new_ready, debug_dependencies): Add new code for
8403         automaton pipeline interface.
8404
8405         * sched-vis.c: Include target.h.
8406         (get_visual_tbl_length): Add code for automaton interface.
8407         (target_units, print_block_visualization):  Add comments.
8408
8409         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
8410         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8411         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8412         (getruntime.o, genautomata.o): New entries.
8413         (genattrtab.o): Add new dependency file genattrtab.h.
8414         (genattrtab): Add new dependencies.  Link it with `libm.a'.
8415         (getruntime.o, hashtab.o): New entries for canadian cross.
8416
8417         * doc/md.texi: Description of automaton based model.
8418
8419         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
8420         Add comments.
8421         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8422         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8423         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8424         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8425         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8426         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8427         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
8428         hook descriptions.
8429         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
8430         MAX_DFA_ISSUE_RATE): New macro descriptions.
8431
8432         * doc/contrib.texi: Add dfa based scheduler contribution.
8433
8434         * doc/gcc.texi: Add more information about genattrtab.
8435
8436 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
8437
8438         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
8439         an RTL basic block.
8440
8441 2001-08-27  Richard Henderson  <rth@redhat.com>
8442
8443         * function.c (expand_function_end): Don't init arg_pointer_save_area.
8444         (get_arg_pointer_save_area): New.  Create an init it here.
8445         (fix_lexical_addr): Use it.
8446         * function.h: Declare it.
8447         * builtins.c (expand_builtin_setjmp_receiver): Use it.
8448         * stmt.c (expand_nl_goto_receiver): Use it.
8449
8450 2001-08-27  Richard Henderson  <rth@redhat.com>
8451
8452         * final.c (final_scan_insn): Don't enter APP_ON mode for
8453         empty asm strings.
8454
8455         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
8456         alignment for assemble_integer for DW_EH_PE_aligned.
8457         * except.c (output_function_exception_table): Likewise.
8458
8459 2001-08-26  Andreas Jaeger  <aj@suse.de>
8460
8461         * c-tree.h: Add prototyp for c_sizeof_nowarn.
8462
8463 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
8464
8465         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
8466
8467 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
8468
8469         * config/rs6000/rs6000.c (mask_operand): Rewrite without
8470         bit-shifting loop.
8471         (mask64_operand): Likewise.
8472         (rldic_operand): Delete.
8473         (includes_lshift64_p): Delete.
8474         (includes_rldic_lshift_p): New function.
8475         (includes_rldicr_lshift_p): New function.
8476         (print_operand): Don't call rldic_operand in case 'W'.
8477         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
8478         (includes_lshift64_p): Remove.
8479         (includes_rldic_lshift_p): Declare.
8480         (includes_rldicr_lshift_p): Declare.
8481         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
8482         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
8483         Replace match_operand rldic_operand predicate with
8484         const_int_operand.  Replace includes_lshift64_p condition with
8485         includes_rldic_lshift_p.
8486         <ashldi3_internal 64 bit rldicr patterns>: New.
8487
8488 2001-08-27  Andreas Jaeger  <aj@suse.de>
8489
8490         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
8491         * errors.c: Likewise.
8492         * final.c: Likewise.
8493         * dwarf2asm.c: Likewise.
8494         * doprint.c (checkit): Likewise.
8495         * diagnostic.c: Likewise.
8496         * collect2.c: Likewise.
8497         * calls.c: Likewise.
8498         * c-semantics.c (build_stmt): Likewise.
8499         * c-format.c (status_warning): Likewise.
8500         * c-errors.c (pedwarn_c99): Likewise.
8501         * builtins.c (validate_arglist): Likewise.
8502         * config/pj/pj.c (pj_printf): Likewise.
8503         * fix-header.c: Likewise.
8504         * gcc.c: Likewise.
8505         * gcov.c (fnotice): Likewise.
8506         * gensupport.c (message_with_line): Likewise.
8507         * mips-tfile.c: Likewise.
8508         * protoize.c (notice): Likewise.
8509         * read-rtl.c (fatal_with_file_and_line): Likewise.
8510         * rtl-error.c: Likewise.
8511         * tradcpp.c: Likewise.
8512         * tree.c: Likewise.
8513         * cp/tree.c (build_min_nt): Likewise.
8514         (build_min): Likewise.
8515         * cp/lex.c: Likewise.
8516         * cp/errfn.c: Likewise.
8517         * cp/rtti.c (create_pseudo_type_info): Likewise.
8518
8519 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
8520
8521         * df.c (df_uses_record): Return after recording all uses
8522         in ASM_OPERANDS.
8523
8524 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
8525
8526         * df.c (df_insn_modify): Realloc the INSN table here, if
8527         necessary, here, too.
8528
8529 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
8530
8531         * config/mips/mips.c (mips_function_value): Handle complex return
8532         values.
8533
8534 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
8535
8536         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
8537         unshared.
8538         * reload.c (make_memloc): Copy result if it is still
8539         reg_equiv_memory_loc[regno] on return.
8540         (subst_reloads) [ENABLE_CHECKING]: Check that none of
8541         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
8542         reg_equiv_mem are modified by the substitutions.
8543
8544 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
8545
8546         * predict.c (expensive_function_p): New.
8547         * rtl.h (expensive_function_p): Declare.
8548         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
8549         (use_fast_prologue_epilogue): New static variable.
8550         (expand_prologue): Set it; emit short prologues if unset.
8551         (expand_epilogue): Likewise.
8552
8553 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
8554
8555         * config.gcc: Add stormy16-*-elf case.
8556         * config/stormy16/stormy-abi: New file.
8557         * config/stormy16/stormy16-lib2.c: New file.
8558         * config/stormy16/stormy16-protos.h: New file.
8559         * config/stormy16/stormy16.c: New file.
8560         * config/stormy16/stormy16.h: New file.
8561         * config/stormy16/stormy16.md: New file.
8562         * config/stormy16/t-stormy16: New file.
8563
8564 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
8565
8566         * i386.h (no-accumulate-outgoing-args): Use proper mask.
8567
8568 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
8569
8570         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
8571         descriptor members are pointer size, not constant 4.
8572         * config/rs6000/rs6000.md (define_splits): Remove more unused
8573         constraints.
8574
8575 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8576
8577         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
8578
8579 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
8580
8581         * cp/rtti.c (VPARAMS): Fix parameter.
8582
8583 2001-08-24  Zack Weinberg  <zackw@panix.com>
8584
8585         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
8586         to zero.
8587         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
8588         to switch.
8589         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
8590         in if controlling use of insv.
8591         (extract_bit_field): Likewise, for extv and extzv.
8592
8593 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
8594
8595         * i386.md (movcc peep2): Fix load of 0.
8596
8597 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8598
8599         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
8600         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
8601
8602 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
8603
8604         * c-pragma.h: Move weak_syms and weak_decls...
8605         * varasm.c: ...here.  Now static.
8606         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
8607         depend on HANDLE_PRAGMA_WEAK.
8608
8609         * c-common.c (c_alignof, c_alignof_expr): Move here...
8610         * c-typeck.c: ...from here.
8611         * c-tree.h, c-common.h: Adjust.
8612
8613 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
8614
8615         * config/ia64/ia64.c (rws_update): If !pred, set write_count
8616         instead of incrementing it.
8617
8618         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
8619         asm ready, don't try to move them all into the same array element.
8620
8621 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
8622
8623         * function.c (thread_prologue_and_epilogue_insns): Avoid
8624         fallthru flag on edge to exit.
8625
8626         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
8627
8628         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
8629         dead edges.
8630
8631 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
8632
8633         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
8634         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
8635         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
8636         Remove prototype.
8637
8638 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
8639
8640         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
8641         replace "GNU CC" with "GCC".
8642
8643 2001-08-23  Richard Henderson  <rth@redhat.com>
8644
8645         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
8646         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
8647         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
8648         Need GR between FR and not GR_AND_FR.
8649         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
8650         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
8651         AR regs before GR regs.
8652         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
8653         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
8654         (REGISTER_MOVE_COST): Update.
8655         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
8656
8657 2001-08-23  Richard Henderson  <rth@redhat.com>
8658
8659         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
8660         a register class.
8661
8662 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
8663
8664         * reload1.c (emit_reload_insns): Don't look for notes
8665         on a NULL store_insn.
8666
8667 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8668
8669         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
8670         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
8671         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
8672         format specifier warnings.
8673         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
8674
8675 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
8676
8677         * config/i386/i386-protos.h: Correct declaration of
8678         i386_pe_asm_named_section.
8679
8680 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8681
8682         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
8683         variable i.
8684         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
8685
8686 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8687
8688         * cpperror.c (print_location): Don't show _Pragma.
8689         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
8690         and file change callback generation here.
8691         (stack_include_file): Update use of cpp_push_buffer.
8692         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
8693         (struct cpp_buffer): Remove type, pfile members.
8694         * cppinit.c (cpp_handle_option): Use free_chain.
8695         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
8696         (skip_escaped_newlines, get_effective_char, lex_percent): Take
8697         a cpp_reader rather than a cpp_buffer.
8698         (skip_escaped_newlines, get_effective_char, skip_block_comment,
8699         skip_line_comment, parse_string, lex_percent, lex_dot,
8700         _cpp_lex_token): Update accordingly.
8701         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
8702         generation here.
8703         (cpp_push_buffer): Update prototype.
8704         (run_directive): Update use of cpp_push_buffer.
8705         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
8706         handle_assertion): Update use of run_directive.
8707         * cpplib.h (enum cpp_buffer_type): Remove.
8708         (cpp_push_buffer): Update prototype.
8709         * fix-header.c (read_scan_file): Update.
8710
8711 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8712
8713         * gcc.c (struct prefix_list): Change prefix to const char *.
8714
8715 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8716
8717         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
8718
8719 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
8720
8721         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
8722         from a new MEM.
8723
8724         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
8725         a squeezable note.
8726         * rtl.h: Adjust.
8727         * ifcvt.c (dead_or_predicable): Adjust.
8728         * loop.c (find_and_verify_loops): Adjust.
8729         * stmt.c (expand_end_case): Adjust.
8730         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
8731         head and end insn pointers in the basic block, not just local copies.
8732         (merge_blocks_move_predecessor_nojumps): Likewise.
8733
8734 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
8735
8736         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
8737         bitmap.h, builtin-types.def, builtins.c, builtins.def,
8738         c-aux-info.c, c-common.c, c-common.def, c-common.h,
8739         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
8740         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
8741         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
8742         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
8743         conditions.h, config.gcc, configure.frag, configure.in,
8744         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
8745         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
8746         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
8747         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
8748         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
8749         emit-rtl.c, errors.c, errors.h, except.c, except.h,
8750         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
8751         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
8752         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
8753         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
8754         gencheck.c, gencodes.c, genconfig.c, genemit.c,
8755         genextract.c, genflags.c, gengenrtl.c, genmultilib,
8756         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
8757         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
8758         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
8759         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
8760         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
8761         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
8762         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
8763         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
8764         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
8765         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
8766         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
8767         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
8768         params.h, predict.c, predict.def, predict.h, prefix.c,
8769         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
8770         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
8771         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
8772         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
8773         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
8774         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
8775         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
8776         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
8777         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
8778         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
8779         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
8780         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
8781         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
8782         xcoffout.h: replace "GNU CC" with "GCC".
8783
8784 2001-08-21  Richard Henderson  <rth@redhat.com>
8785
8786         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
8787         (final_scan_insn): Consider jump tables data even if we have no
8788         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
8789         ADDR_VEC_ALIGN.
8790         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
8791         (ASM_OUTPUT_CASE_END): Remove.
8792         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
8793         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
8794         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
8795
8796 2001-08-21  Richard Henderson  <rth@redhat.com>
8797
8798         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
8799         at barrier insns.  Emit stop bits before barriers.
8800
8801         * flow.c (flow_find_cross_jump): Don't consider unconditional
8802         return insns for commoning.
8803
8804         * final.c (compute_alignments): Fix typo.
8805
8806         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
8807         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
8808         (store_bit_field): Use mode_for_extraction more places.
8809         (extract_bit_field): Likewise.
8810
8811 2001-08-21  Zack Weinberg  <zackw@panix.com>
8812
8813         * caller-save.c: Don't include insn-codes.h.
8814         (reg_save_code, reg_restore_code): Make arrays of int.
8815         All uses updated to match.
8816         (insert_save, insert_restore): No need to initialize "code"
8817         variable upon declaration.
8818         * Makefile.in: update dependencies; fix typo in clean rule.
8819
8820 2001-08-21  Richard Henderson  <rth@redhat.com>
8821
8822         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
8823         (merge_if_block): Handle fallout from same.
8824
8825 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8826
8827         * builtins.c (type_to_class): Fix typo in last change.
8828
8829 2001-08-21  Richard Henderson  <rth@redhat.com>
8830
8831         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
8832         ia64_asm_output_label.
8833
8834         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
8835         copy of gp while the real gp register contains garbage.
8836
8837 2001-08-21  Zack Weinberg  <zackw@panix.com>
8838
8839         * expmed.c (mode_for_extraction): New function.
8840         (store_bit_field, extract_bit_field): Use it.
8841         * expr.h: Prototype it and provide an enum for its first argument.
8842
8843         * combine.c, function.c, recog.c: Don't include insn-codes.h.
8844         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
8845         and digging through the insn_data tables.
8846         * Makefile.in: Update dependencies.
8847
8848 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8849
8850         * cppfiles.c (stack_include_file): line-map.c now handles include
8851         depth.
8852         (handle_missing_handler): Similarly.
8853         (_cpp_execute_include): Similarly.
8854         (_cpp_pop_file_buffer): Similarly.
8855         * cpphash.h (struct cpp_reader): Remove system_include_depth,
8856         buffer_stack_depth and include_depth.
8857         * cpplib.c (do_include_common): line-map.c now handles include depth.
8858         (cpp_push_buffer): Similarly.
8859         (_cpp_pop_buffer): Similarly.
8860         * cppmacro.c (builtin_macro): Update.
8861         * line-map.c (init_line_maps): Set depth.
8862         (add_line_map): Increment "used" earlier.  Update and use the
8863         include depth.
8864         (trace_include): Use the include depth.
8865         * line-map.h (struct line_maps): New member depth.
8866
8867 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8868
8869         * cppfiles.c (stack_include_file): Don't handle -H here.
8870         * cppinit.c (cpp_start_read): Set include tracing after
8871         cpp_post_options and after stacking the main file.
8872         * line-map.c (trace_include): New.
8873         (init_line_maps, add_line_map): Update.
8874         * line-map.h (struct line_maps): New member trace_includes.
8875
8876 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8877
8878         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
8879         * cppfiles.c (stack_include_file): Only stack a file if there
8880         is something to do.  Return a boolean indicating whether a
8881         buffer was stacked or not.
8882         (_cpp_execute_include): Similarly.
8883         (_cpp_read_file): Similarly.
8884         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
8885
8886 2001-08-21  Sam Steingold  <sds@gnu.org>
8887
8888         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
8889         (RECACHE): keep obufp_before_macroname up to date
8890
8891 2001-08-21  Zack Weinberg  <zackw@panix.com>
8892
8893         * stmt.c: Don't include insn-codes.h.
8894         (expand_end_case): Machine specific logic moved to expr.c.
8895         No need to worry about __builtin_classify_type.
8896         (check_for_full_enumeration_handling, emit_case_nodes):
8897         Kill #if 0 blocks.
8898
8899         * builtins.o (expand_builtin_classify_type): Split up so code
8900         can be shared with fold_builtin_classify_type.
8901         (type_to_class, fold_builtin_classify_type): New functions.
8902         (fold_builtins): Handle __builtin_classify_type.
8903
8904         * expr.c (do_tablejump): Now static.
8905         (case_values_threshold, try_casesi, try_tablejump): New;
8906         code mostly from stmt.c (expand_end_case).
8907         (expr.h): Update prototypes.
8908
8909         * Makefile.in (stmt.o): Update dependencies.
8910
8911 2001-08-21  Will Cohen  <wcohen@redhat.com>
8912
8913         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
8914         declaration of variable i.
8915         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
8916         declaration of variable i.
8917
8918 2001-08-21  Richard Henderson  <rth@redhat.com>
8919
8920         * crtstuff.c: Fix thinko last change.  Move list tails to start
8921         of CRT_END section.  Tidy ifdefs.
8922         (__EH_FRAME_BEGIN__): Always static for ELF.
8923         (__do_global_ctors_1): Rename from __frame_dummy.
8924         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
8925         name change; don't hide __EH_FRAME_BEGIN__.
8926
8927 2001-08-21  Richard Henderson  <rth@redhat.com>
8928
8929         * gdbinit.in: Move break on exit after break on fancy_abort.
8930
8931         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
8932         sized types.
8933
8934 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8935
8936         * cpphash.h (_cpp_push_next_buffer): New.
8937         * cppinit.c (do_includes): Remove.
8938         (push_include, free_chain, _cpp_push_next_buffer): New.
8939         (cpp_start_read): Use them to rework command line option handling.
8940         (cpp_handle_option): Combine handling of -include and -imacros.
8941         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
8942         appropriate.  Always insert missing \n at EOF.
8943         * cpplib.c (start_directive): Get the directive position right.
8944         * cppmain.c (cb_file_change): Always print the first line, unless
8945         preprocessed.
8946
8947 2001-08-20  Andreas Jaeger  <aj@suse.de>
8948
8949         * profile.c (compute_branch_probabilities): Remove extra new-line
8950         in error message.
8951         * flow.c (verify_flow_info): Likewise.
8952
8953 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
8954
8955         * basic-block.h (basic_block): Add new field 'flags'.
8956         (BB_REACHABLE): Define.
8957         (expunge_block): Declare.
8958         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
8959         (EXIT_BLOCK_PTR): Ditto.
8960         (expunge_block): Remove static declaration.
8961         (cleanup_cfg): Clear bb->aux on every basic block.
8962         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
8963         computing reachability.
8964         (delete_unreachable_blocks): Delete block b if b->flags has
8965         BB_REACHABLE unset.
8966
8967 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
8968
8969         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
8970
8971 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8972
8973         * sparc.c (sparc_variable_issue): Fix typo in last change.
8974
8975 2001-08-20  Richard Henderson  <rth@redhat.com>
8976
8977         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
8978
8979 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8980
8981         * pa.h (RETURN_IN_MEMORY): Improve comment.
8982
8983 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
8984
8985         * doc/invoke.texi (Profiling options): Clarify the interactions
8986         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
8987
8988 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
8989
8990         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
8991         command.
8992
8993 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8994
8995         * gcc.c (make_relative_prefix): Allocate a sufficiently large
8996         buffer.
8997
8998 2001-08-20  Richard Henderson  <rth@redhat.com>
8999
9000         * final.c (end_final): Fix typo last change.
9001
9002 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9003
9004         * cppinit.c (init_standard_includes): The returned buffer
9005         is already malloc-ed.
9006         * gcc.c (add_prefix): Similarly.
9007         * prefix.c (translate_name): Update to support clear buffer
9008         ownership rules.
9009         (update_path): Similarly.  Be sure to free any newly allocated
9010         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
9011         (tr): New function.
9012         * prefix.h (update_path): Update prototype and document.
9013         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
9014         up and update to new buffer ownership rules.
9015         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
9016
9017 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
9018
9019         * final.c (compute_alignments): New function.
9020         (init_insn_lengths): Do not care label_align.
9021         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
9022         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
9023         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
9024         (shorted_branches): Realloc label_align array; do
9025         not call init_insn_lengths; Do not care about loop alignments.
9026         * output.h (compute_alignments): Declare.
9027         * toplev.c (rest_of_compilation): Call compute_alignments.
9028         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
9029
9030         * predict.c (block_info_def): Add npredecesors, remove nvisited;
9031         change visited to tovisit.
9032         (propagate_freq): Use faster traversing algorithm.
9033         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
9034         to tovisit; reverse meaning.
9035
9036         * predict.c (struct block_info_def): Remove nvisited.
9037         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
9038         (estimate_bb_frequencies): Call mark_dfs_back_edges.
9039
9040 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
9041
9042         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
9043         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
9044         (TARGET_FUSED_MADD): New.
9045         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
9046         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
9047         the multiply-add instructions.
9048
9049 2001-08-19  Richard Henderson  <rth@redhat.com>
9050
9051         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
9052         is aligned to pointer size.
9053
9054 2001-08-19  Richard Henderson  <rth@redhat.com>
9055
9056         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
9057         display markers during final schedule.
9058
9059 2001-08-19  Richard Henderson  <rth@redhat.com>
9060
9061         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
9062
9063 2001-08-19  Richard Henderson  <rth@redhat.com>
9064
9065         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
9066         in the same string.
9067         (ASM_NAME_TO_STRING): Remove.
9068         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
9069         in the same string.  Remove support for expressions.
9070
9071 2001-08-19  Richard Henderson  <rth@redhat.com>
9072
9073         * config/i386/i386.md (tablejump): Make an expander; handle
9074         pic relative addressing here.
9075         (tablejump_1): Rename from tablejump_pic.
9076         (casesi): Remove.
9077
9078 2001-08-19  Richard Henderson  <rth@redhat.com>
9079
9080         * regclass.c (fix_register): Fix typo.
9081
9082 2001-08-18  Richard Henderson  <rth@redhat.com>
9083
9084         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
9085         (struct _Unwind_Context): Expand br_loc to hold it.
9086         (uw_frame_state_for): Handle leaf functions better.
9087         (uw_update_reg_address): Update for br_loc change.
9088
9089 2001-08-18  Richard Henderson  <rth@redhat.com>
9090
9091         * crtstuff.c: Move list heads before code that uses them.
9092         (__JCR_LIST__): Remove initial null.
9093         (frame_dummy, __frame_dummy): Do java registration here ...
9094         (__do_global_ctors_aux): ... not here.
9095
9096         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
9097         (__do_global_dtors_aux): Update to match.
9098         (__JCR_LIST__, __do_jv_register_classes): New.
9099         (.init): Call it.
9100         * config/ia64/crtend.asm (__JCR_END__): New.
9101         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
9102         instead of an indirect LTOFF22 reloc.
9103
9104 2001-08-18  Richard Henderson  <rth@redhat.com>
9105
9106         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
9107         * regclass.c (init_reg_sets_1): Fix typo.
9108         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
9109         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
9110         (ia64_compute_frame_size): Make ar.unat live when in use.
9111         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
9112         for ar.pfs; remove ar.unat handling.
9113         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
9114         call-saved.
9115         (PREDICATE_CODES): Add ar_pfs_reg_operand.
9116         * config/ia64/ia64-protos.h: Update decls.
9117         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
9118         (sibcall_pic): Likewise.
9119
9120 2001-08-18  Richard Henderson  <rth@redhat.com>
9121
9122         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
9123         pred_rel_mutex when searching for insn_group_barrier.
9124         * config/ia64/ia64.md (cycle_display): Combine the expander
9125         and insn patterns.
9126
9127         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
9128         bit before asm as needed.
9129
9130 2001-08-18  Richard Henderson  <rth@redhat.com>
9131
9132         * timevar.def (TV_MACH_DEP): New.
9133         * toplev.c (rest_of_compilation): Use it.
9134         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
9135
9136 2001-08-18  Zack Weinberg  <zackw@panix.com>
9137
9138         * unwind-dw2.c (execute_stack_op): Add default aborts to
9139         the inner switches to prevent warnings.
9140
9141 2001-08-18  Richard Henderson  <rth@redhat.com>
9142
9143         * timevar.h (struct timevar_time_def): Change element type to float.
9144         (ticks_to_msec, clocks_to_msec): Likewise.
9145         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
9146         (get_time): Likewise.
9147         (timevar_print): Adjust zero check and printing to match.
9148
9149 2001-08-18  Zack Weinberg  <zackw@panix.com>
9150
9151         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
9152         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
9153         Eliminate overfull or underfull hboxes.
9154
9155 2001-08-18  Zack Weinberg  <zackw@panix.com>
9156
9157         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9158
9159 2001-08-18  Zack Weinberg  <zackw@panix.com>
9160
9161         * haifa-sched.c: Convert to target hooks.  Macros replaced
9162         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
9163         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
9164         MD_SCHED_FINISH, and HAVE_cycle_display.
9165         * target-def.h (TARGET_SCHED_ADJUST_COST,
9166         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
9167         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
9168         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
9169         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
9170         New hook #defines to be overridden.
9171         (TARGET_SCHED): Bring them all together.
9172         (TARGET_INITIALIZER): Update.
9173         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
9174         instead of 'struct rtx_def *' throughout.
9175         (struct sched): New set of hooks for the scheduler.
9176         * Makefile.in (haifa-sched.o): Depend on target.h.
9177         * doc/tm.texi: Document the new scheduler hooks, together in
9178         their own section, instead of scattered around.
9179         Fix a bunch of underfull/overfull hboxes.
9180
9181         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
9182         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
9183         sparc.h: Don't define any of the old scheduler macros.
9184
9185         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
9186         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
9187         sparc.c: Create hook functions from code extracted from
9188         corresponding target header, or make existing hooks static, as
9189         appropriate.  Set the appropriate entries in targetm.
9190
9191         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
9192         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
9193         rs6000-protos.h, s390-protos.h, sparc-protos.h:
9194         Remove prototypes for functions which are now static.
9195
9196         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
9197         related gunk; the Haifa scheduler is now the only choice.
9198
9199 2001-08-18  Zack Weinberg  <zackw@panix.com>
9200
9201         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
9202         * genopinit.c: Put floating point divide insns in sdiv_optab.
9203         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
9204         * config/gofast.h, config/c4x/c4x.h,
9205         config/ia64/hpux_longdouble.h, config/mips/mips.h,
9206         config/pa/long_double.h, config/rs6000/sysv4.h,
9207         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
9208         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
9209         (init_optabs): Use init_optabv for overflow-trapping optabs.
9210         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
9211         cmp_optab RTX codes so have_insn_for can find them.
9212
9213         * optabs.c (expand_simple_binop, expand_simple_unop,
9214         have_insn_for, gen_sub3_insn): New interfaces.
9215         * expr.h: Prototype new functions.
9216         (enum optab_methods): Move here from optabs.h.
9217
9218         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
9219         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
9220         Use new functions instead of working directly with optabs.
9221         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
9222         unroll.c: Don't include optabs.h.
9223         * caller-save.c, combine.c, function.c, stmt.c: Just include
9224         insn-codes.h, not optabs.h.
9225         * Makefile.in: Update dependencies.
9226
9227         * combine.c (make_compound_operation, simplify_comparison):
9228         Fix typos testing for this or that instruction.
9229
9230 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9231
9232         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
9233         generating libgcc.a.
9234
9235 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9236
9237         * except.c (TYPE_HASH): Delete.
9238
9239         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
9240         HOST_WIDE_INT.
9241
9242         * tree.c (TYPE_HASH): Delete.
9243
9244         * tree.h (TYPE_HASH): Define.
9245
9246 2001-08-18  Graham Stott  <grahams@redhat.com>
9247
9248         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
9249         define_split.
9250         (adddi3_internal_2+2): Likewise.
9251         (eh_set_lr_di+1): Likewise.
9252
9253 2001-08-17  Richard Henderson  <rth@redhat.com>
9254
9255         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9256         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
9257         * dwarf2asm.c: ... here.
9258         * dwarfout.c: Remove them.
9259
9260         * varasm.c (assemble_integer): Add align parameter.
9261         (assemble_real, output_constant, output_constructor): Likewise.
9262         * output.h: Update decls.
9263         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
9264         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
9265         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
9266         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
9267         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
9268         Update all callers.
9269
9270         * final.c (end_final): Abort profile block generation if we
9271         havn't layed it out properly.
9272         * output.h (assemble_eh_integer): Remove stale decl.
9273         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
9274         (min_align): New.
9275         (assemble_integer): Handle unaligned data.
9276         (assemble_real): Abort on unaligned data.
9277         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
9278         anything useful.
9279         (default_dtor_section_asm_out_destructor): Use assemble_align.
9280         (default_named_section_asm_out_constructor): Likewise.
9281         (default_ctor_section_asm_out_constructor): Likewise.
9282         * config/darwin.c (machopic_asm_out_constructor): Likewise.
9283         (machopic_asm_out_destructor): Likewise.
9284         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
9285         (nextstep_asm_out_destructor): Likewise.
9286         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
9287         (vms_asm_out_destructor): Likewise.
9288
9289 2001-08-17  Richard Henderson  <rth@redhat.com>
9290
9291         * config/mips/iris6.h (TARGET_IRIX6): New.
9292         (current_section_name, current_section_flags): New.
9293         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
9294         (MAX_OFILE_ALIGNMENT): New.
9295         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
9296         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
9297         (copy_file_data): Split out from
9298         (mips_asm_file_end): ... here.
9299         (mips_asm_file_start): Remove extra .section directive.  Use
9300         tmpfile instead of mips_make_temp_file.
9301         (mips_unique_section): Use const char * as needed for warnings.
9302         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
9303         re-add align parameter.
9304         (iris6_asm_named_section): New.
9305         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
9306         (iris6_asm_output_align, iris6_section_align_1): New.
9307         (iris6_asm_file_start, iris6_asm_file_end): New.
9308         * config/mips/mips-protos.h: Update decls.
9309
9310 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
9311
9312         * doc/install.texi (Install GCC): Add links to build status pages.
9313         (Specific): Ditto.
9314         (Final install): Ditto; request updates for specific info
9315
9316 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9317
9318         * cpperror.c (print_location):  Don't take a file name; use the
9319         line map instead.
9320         (_cpp_begin_message): Similarly.
9321         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
9322         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
9323         (cpp_pedwarn_with_file_and_line): Remove.
9324         * cppfiles.c (stack_include_file): Update; set filename to stdin
9325         here when appropriate.
9326         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
9327         (_cpp_begin_message): Don't take a file name.
9328         * cppinit.c: Add comment.
9329         * cpplex.c: Fix end-of-directive indicator.
9330         * cpplib.c: Don't include intl.h.
9331         (run_directive, do_diagnostic): Update.
9332         (do_line): Update to not use nominal_fname.
9333         (cpp_push_buffer): Don't take a filename.
9334         * cpplib.h (struct ht): Remove.
9335         (cpp_push_buffer): Don't take a filename.
9336         (cpp_pedwarn_with_file_and_line): Remove.
9337         * cppmacro.c (struct cpp_macro): Remove file.
9338         (builtin_macro): Update.
9339         (_cpp_create_definition): Update.
9340         * cppmain.c: Correct comment.
9341         * fix-header.c (read_scan_file): Update.
9342
9343 2001-08-17  Kazu Hirata  <kazu@hxi.com>
9344
9345         * sbitmap.c: Fix comment formatting.
9346         * sched-deps.c: Likewise.
9347         * sibcall.c: Likewise.
9348         * simplify-rtx.c: Likewise.
9349         * ssa.c: Likewise.
9350         * ssa-ccp.c: Likewise.
9351         * stor-layout.c: Likewise.
9352         * timevar.c: Likewise.
9353         * toplev.c: Likewise.
9354         * unwind-dw2.c: Likewise.
9355         * unwind-dw2-fde.c: Likewise.
9356         * varasm.c: Likewise.
9357
9358 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9359
9360         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
9361         or larger than an integer in memory.
9362
9363 2001-08-17  Zack Weinberg  <zackw@panix.com>
9364
9365         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
9366         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
9367         * rtl.h: Don't forward-declare union tree_node here.  Don't
9368         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
9369         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9370         and tree respectively.
9371         * tree.h: Don't forward-declare struct rtx_def here.  Don't
9372         typedef tree here.  Change all uses of struct rtx_def *,
9373         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9374         and tree respectively.
9375
9376 2001-08-17  Richard Henderson  <rth@redhat.com>
9377
9378         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
9379         config/mips/openbsd.h: Fix typos last change.
9380
9381 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9382
9383         * doc/invoke.texi (Optimize Options): The default for
9384         -finline-limit is 600.
9385
9386 2001-08-17  Richard Henderson  <rth@redhat.com>
9387
9388         * varasm.c (text_section): Allow TEXT_SECTION to override the
9389         printing of TEXT_SECTION_ASM_OP.
9390         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
9391         (DATA_SECTION, BSS_SECTION): Remove.
9392         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
9393         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
9394         Rename from s/_NAME//.
9395         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
9396         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
9397         (TEXT_SECTION): ... here.  New.
9398         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
9399         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
9400         * config/mips/openbsd.h: Likewise.
9401         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
9402         (mips_asm_file_end): Likewise test.
9403         (mips_output_function_epilogue): Likewise.  Switch back to data
9404         section after emitting the function.
9405
9406         * doc/tm.texi (Sections): Document TEXT_SECTION.
9407
9408 2001-08-17  Richard Henderson  <rth@redhat.com>
9409
9410         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
9411         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
9412
9413 2001-08-17  Richard Henderson  <rth@redhat.com>
9414
9415         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
9416         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
9417         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
9418         Add aligned attribute.
9419
9420 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
9421
9422         * config/sh/sh.md: Add modes to unspecs in first insn to match
9423         those in the second.
9424
9425         * Makefile.in: Fix collect2 copy for Cygwin.
9426
9427 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
9428
9429         Install the proper patch.
9430         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
9431         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
9432         (expand_function_start): Likewise.
9433         * stmt.c (expand_decl): Likewise.
9434         * varasm.c (make_decl_rtx): Likewise.
9435
9436 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9437
9438         * final.c: Undo my previous accidental checkin.
9439         * output.h: Likewise.
9440         * tm.texi: Likewise.
9441
9442 2001-08-16  Richard Henderson  <rth@redhat.com>
9443
9444         * varasm.c (named_section_flags): Remove align parameter.
9445         * varasm.c, dwarf2out.c: Update all callers.
9446         * output.h: Update prototypes.
9447
9448         * target.h (target.asm_out.named_section): Remove align parameter.
9449         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
9450         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
9451         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
9452         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
9453         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
9454
9455         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
9456         (get_named_section_flags, set_named_section_flags): New.
9457         (named_section_flags): Use them.
9458         (named_section): Do decl vs section flags check here...
9459         (default_section_type_flags): ... not here.
9460         (init_varasm_once): Create in_named_htab.
9461         (resolve_unique_section): Mark reloc unused.
9462
9463 2001-08-16  Richard Henderson  <rth@redhat.com>
9464
9465         * varasm.c (force_const_mem): Keep pool alignment in bits.
9466         (output_constant_pool): Use assemble_align.
9467
9468 2001-08-16  Zack Weinberg  <zackw@panix.com>
9469
9470         * doc/tm.texi: Remove extra @table command.
9471
9472 2001-08-16  Zack Weinberg  <zackw@panix.com>
9473
9474         * final.c (shorten_branches): Clear the end of the label_align
9475         array only if we made it larger.  Break up messy expressions
9476         for clarity.
9477
9478         * diagnostic.c (internal_error): Check for error recursion
9479         before doing ICE suppression.
9480
9481         * timevar.c: Timing variables now count in milliseconds.
9482         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
9483         (get_time): Not here.
9484         (timevar_print): Don't print any timer whose user, cpu, and
9485         wall times are all zero as displayed.
9486         * timevar.h: Update comment aboout units.  Make timevar
9487         counters unsigned.
9488
9489 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
9490
9491         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
9492         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
9493         (expand_function_start): Likewise.
9494         * stmt.c (expand_decl): Likewise.
9495         * varasm.c (make_decl_rtx): Likewise.
9496
9497 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
9498
9499         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
9500         (finalize_record_size): Don't set TYPE_USER_ALIGN.
9501
9502 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9503
9504         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
9505         variables.
9506
9507 2001-08-16  Andreas Jaeger  <aj@suse.de>
9508
9509         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
9510         prototype.
9511
9512 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
9513
9514         * rtl.h (only_sets_cc0_p): New prototype.
9515         * jump.c (sets_cc0_p): Handle INSN.
9516         (only_sets_cc0_p): New function.
9517         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
9518         (tidy_fallthru_edge): Likewise.
9519         * integrate.c (copy_insn_list): Likewise.
9520         * unroll.c (unroll_loop): Likewise.
9521         (copy_loop_body): Likewise.
9522
9523 2001-08-15  Jason Eckhardt  <jle@redhat.com>
9524
9525         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
9526
9527 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
9528
9529         * predict.c (struct block_info_def): Remove nvisited.
9530         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
9531         (estimate_bb_frequencies): Call mark_dfs_back_edges.
9532
9533         * i386.c (ix86_agi_depdendant): Lea causes AGI only on the Pentium
9534         (ix86_adjust_cost): Teach scheduler that latency to load operand can
9535         be masked.
9536
9537 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
9538
9539         * predict.def: Update hitrates.
9540
9541 2001-08-15  Richard Henderson  <rth@redhat.com>
9542
9543         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
9544
9545 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
9546
9547         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
9548         note from its associated jump.
9549
9550 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
9551
9552         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
9553         also on 64-bit s390x targets.
9554
9555 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
9556
9557         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
9558         function.
9559         (arm_expand_prologue): Handled nested functions which take a
9560         variable argument list.
9561         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
9562         macro with an invocation of
9563         arm_compute_initial_elimination_offset.
9564         * config/arm/arm-protos.h: Prototype
9565         arm_compute_initial_elimination_offset.
9566
9567 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9568
9569         * doc/install.texi (Specific, avr): Fix markup.
9570         (Specific, c4x): Ditto.
9571
9572 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9573
9574         * predict.c (dump_prediction): Change `bool' parameter to `int'.
9575
9576 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
9577
9578         * Makefile.in (OBJS): Add rtl-error.o
9579         (rtl-error.o): New rule.
9580         (diagnostic.o): Adjust dependency.
9581         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
9582         error_for_asm, _fatal_insn, _fatal_insn_not_found,
9583         warning_for_asm): Move to...
9584         rtl-error.c: ...here.  New file.
9585
9586 2001-08-14  Richard Henderson  <rth@redhat.com>
9587
9588         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
9589         if USING_SJLJ_EXCEPTIONS.
9590
9591 2001-08-14  Steve Ellcey <sje@cup.hp.com>
9592
9593         * tlink.c (scan_linker_output): Check string for unsatisfied in
9594         addition to undefined and unresolved.
9595
9596 2001-08-14  Graham Stott  <grahams@redhat.com>
9597
9598         * libgcc2.c (*): Replace EH_FRAME_SECTION with
9599         EH_FRAME_SECTION_NAME.
9600
9601 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
9602
9603         * genattrtab.c (simplify_test_exp_in_temp): New function.
9604         (simplify_test_exp): Avoid explicit use of temporary obstack.
9605         (simplify_cond, insert_right_side, evaluate_eq_attr,
9606         simplify_and_tree, simplify_or_tree, eliminate_known_true):
9607         Use simplify_test_exp_in_temp.
9608         (optimize_attrs): Iterate until expression stabilizes.
9609
9610 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
9611
9612         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
9613         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
9614
9615 2001-08-13  Richard Henderson  <rth@redhat.com>
9616
9617         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
9618         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
9619         * config/arm/conix-elf.h: Likewise.
9620
9621 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
9622
9623         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
9624         in gcc.c.
9625         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9626
9627         * gcse.c (hash_scan_set): Expressions that are set as part of
9628         jump instructions are not available.
9629
9630 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
9631
9632         * config/s390/s390.c (print_operand, s390_function_prologue,
9633         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
9634
9635 2001-08-13  Richard Henderson  <rth@redhat.com>
9636
9637         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
9638         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
9639         * doc/tm.texi (Exception Region Output): Document it.
9640
9641 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
9642
9643         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
9644         DWARF2 instead of stabs by default.
9645
9646 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
9647
9648         * config/rs6000/rs6000.c: Include optabs.h.
9649
9650 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
9651
9652         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
9653         save/restore routines.
9654         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
9655
9656 2001-08-13  Andreas Jaeger  <aj@suse.de>
9657
9658         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
9659         the english is correct.
9660
9661 2001-08-13  Zack Weinberg  <zackw@panix.com>
9662
9663         * expr.h: Split out optab- and libfunc-related code to...
9664         * optabs.h, libfuncs.h: ... these new headers.
9665
9666         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
9667         (OPTABS_H): New.
9668         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
9669         dependencies.
9670         * mkconfig.sh: Don't include insn-codes.h from config.h.
9671
9672         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
9673         enum insn_code is available.  Move reload_in_optab and
9674         reload_out_optab array declarations to optabs.h.
9675         * regmove.c (gen_add3_insn): Move to optabs.c, export from
9676         there, prototype in expr.h.
9677         * gencodes.c: Cleanup: zap global variables, don't use
9678         printf where puts will do, don't bother defining MAX_INSN_CODE
9679         which nothing uses, let CODE_FOR_nothing get its value implicitly.
9680
9681         * genemit.c, genopinit.c: Include optabs.h in generated file.
9682         * genoutput.c: Include insn-codes.h in generated file.
9683         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
9684         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
9685         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
9686         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
9687         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
9688         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
9689         Include optabs.h.
9690         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
9691         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
9692         config/m88k/m88k.c, config/sparc/sparc.c:
9693         Include libfuncs.h.
9694         * reload.c: Include expr.h and optabs.h before reload.h.
9695         * config/alpha/alpha.c: Include tree.h before reload.h.
9696         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
9697         and reload.h in that order.
9698         * config/sparc/sparc.c: Include debug.h.
9699         * recog.c: Include insn-codes.h.
9700
9701 2001-08-13  Andreas Jaeger  <aj@suse.de>
9702
9703         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
9704         s390*linux.
9705
9706 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
9707
9708         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
9709         * gcc.c (init_spec): Fix typo in comment.
9710         * varasm.c (data_section): Fix typo in comment.
9711
9712 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
9713
9714         * predict.c (dump_prediction): New argument "USED".
9715         (combine_predictions_for_insn): Determine the used heuristics,
9716         output the case no heuristic applied.
9717         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
9718
9719 2001-08-13  Andreas Jaeger  <aj@suse.de>
9720
9721         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
9722         register %rip.
9723
9724 2001-08-13  Kazu Hirata  <kazu@hxi.com>
9725
9726         * jump.c: Fix formatting.
9727
9728 2001-08-13  Kazu Hirata  <kazu@hxi.com>
9729
9730         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
9731         length.
9732
9733 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
9734
9735         * loop.c (check_dbra_loop): Use condjump_label to compute
9736         jump_label.
9737
9738         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
9739         to better document the files they're in.
9740
9741 2001-08-12  Zack Weinberg  <zackw@panix.com>
9742
9743         * recog.h (struct insn_operand_data): Shrink 'mode' field
9744         to 16 bits.
9745
9746 2001-08-12  Kazu Hirata  <kazu@hxi.com>
9747
9748         * gcc.c: Fix comment formatting.
9749         * gccspec.c: Likewise.
9750         * gcov.c: Likewise.
9751         * gcse.c: Likewise.
9752         * genemit.c: Likewise.
9753         * gengenrtl.c: Likewise.
9754         * genrecog.c: Likewise.
9755         * gensupport.c: Likewise.
9756         * ggc-page.c: Likewise.
9757         * global.c: Likewise.
9758         * graph.c: Likewise.
9759         * ifcvt.c: Likewise.
9760         * integrate.c: Likewise.
9761         * lcm.c: Likewise.
9762         * libgcc2.c: Likewise.
9763         * loop.c: Likewise.
9764         * mbchar.c: Likewise.
9765         * optabs.c: Likewise.
9766         * predict.c: Likewise.
9767         * prefix.c: Likewise.
9768         * profile.c: Likewise.
9769         * protoize.c: Likewise.
9770         * real.c: Likewise.
9771         * recog.c: Likewise.
9772         * regclass.c: Likewise.
9773         * regmove.c: Likewise.
9774         * reg-stack.c: Likewise.
9775         * reload1.c: Likewise.
9776         * resource.c: Likewise.
9777         * rtlanal.c: Likewise.
9778         * rtl.c: Likewise.
9779
9780 2001-08-12  Kazu Hirata  <kazu@hxi.com>
9781
9782         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
9783         a tree representing a constant is passed to the macro.
9784
9785 2001-08-12  Richard Henderson  <rth@redhat.com>
9786
9787         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
9788         (rs6000_elf_asm_out_destructor): New.
9789         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
9790         (DTORS_SECTION_ASM_OP): Remove.
9791         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
9792         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
9793
9794 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
9795
9796         Revert:
9797         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9798         * gcc.c (set_collect_gcc_options): New function, split out from
9799         main.
9800         Ignore elided switches.
9801         (do_spec_1): Invoke before executing command.
9802         (set_input): Export.
9803         Move declaration ...
9804         * gcc.h (set_input): ... here.
9805         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
9806         file.
9807
9808 2001-08-12  Richard Henderson  <rth@redhat.com>
9809
9810         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
9811         thinko wrt TARGET_RELOCATABLE.
9812
9813 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
9814
9815         * fix-header.c (cb_file_change): Update prototype.
9816
9817 2001-08-11  Zack Weinberg  <zackw@panix.com>
9818
9819         * toplev.c (set_float_handler): Make static.
9820         * toplev.h: Don't prototype set_float_handler.
9821
9822         * simplify-rtx.c: Don't include setjmp.h.
9823         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
9824         New functions.
9825         (simplify_unary_operation, simplify_binary_operation): Use them,
9826         via do_float_handler.
9827
9828         * fold-const.c: Don't include setjmp.h.
9829         (exact_real_inverse_1): New function.
9830         (exact_real_inverse): Use it, via do_float_handler.
9831
9832         * varasm.c: Don't include setjmp.h.
9833         (assemble_real_1): New function.
9834         (assemble_real): Use it, via do_float_handler.
9835         Call internal_error if we get a trap here.
9836
9837         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
9838         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
9839
9840 2001-08-11  Zack Weinberg  <zackw@panix.com>
9841
9842         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
9843         STACK_BOUNDARY if not already defined.
9844
9845         * calls.c, function.c, reload1.c, explow.c: Don't default
9846         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
9847         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
9848
9849         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
9850         to run-time test.
9851
9852         * doc/tm.texi: Document that STACK_BOUNDARY is required;
9853         clarify difference between it and PREFERRED_STACK_BOUNDARY.
9854
9855 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9856
9857         * cppmacro.c (enter_macro_context): Push macro expansions even
9858         if empty.
9859
9860 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9861
9862         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
9863         (rs6000_elf_section_type_flags): Actually return a value.
9864
9865 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
9866
9867         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
9868         Clean up code: add missing comments and prototypes, fix warnings,
9869         remove obsolete code, fix spacing to conform to coding style.
9870
9871 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
9872
9873         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
9874         and TARGET_ASM_CLOSE_PAREN.
9875         (regclass_map): CC register belongs to class NO_REGS.
9876         (legitimize_pic_address): Don't generate unnecessary moves
9877         (to avoid confusing loop optimization).
9878         (check_and_change_labels): Replace jump_long by indirect_jump.
9879         (s390_final_chunkify): Don't start a new literal pool on section
9880         switch in 64-bit code.
9881         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
9882
9883         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
9884         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
9885         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
9886         modes correctly.
9887         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
9888         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
9889         (CONST_COSTS): Fixed incorrect costs.
9890
9891         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
9892         Use emit_jump instead of emit_jump_insn (gen_jump).
9893         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
9894         (to avoid confusing flow analysis).
9895         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
9896         (casesi, casesi_jump): New.
9897         (jump_long): Removed.  Functionality merged into indirect_jump.
9898         (indirect_jump): Accept address_operand, not just register_operand.
9899         (cjump_long, icjump_long): Use same logic as indirect_jump.
9900         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
9901         Fixed broken setjmp/longjmp handling.
9902         (do_builtin_setjmp_setup): Removed.
9903
9904         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
9905         broken GNU as versions that don't accept .quad with large
9906         negative values.  Use hexadecimal output instead.
9907         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
9908         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
9909         FUNCTION_EPILOGUE): Removed.  Now in targetm.
9910
9911         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
9912
9913         * config/s390/fixdfdi.h: Add missing copyright statement.
9914         Fix type conflicts on 64-bit.  Add missing SFmode routines.
9915
9916         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
9917         email address.
9918
9919 2001-08-11  Richard Henderson  <rth@redhat.com>
9920
9921         * rtl.h (REG_EH_RETHROW): Remove.
9922         * rtl.c (reg_note_name): Update.
9923         * combine.c (distribute_notes): Don't check for it.
9924
9925 2001-08-11  Richard Henderson  <rth@redhat.com>
9926
9927         * combine.c (distribute_notes): Place REG_SETJMP.
9928
9929 2001-08-11  Richard Henderson  <rth@redhat.com>
9930
9931         * doc/extend.texi (Arrays and pointers implementation): Discourage
9932         relying on sign-extension of pointers.
9933
9934 2001-08-11  H.J. Lu <hjl@gnu.org>
9935
9936         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
9937         in_dtors.
9938         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
9939         RDATA_SECTION_ASM_OP.
9940
9941 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9942
9943         * doc/install.texi (Specific, c4x): Fix cross-reference to the
9944         main manual to work both for info and HTML versions.
9945
9946 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9947             Matt Kraai <kraai@alumni.carnegiemellon.edu>
9948
9949         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
9950         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
9951         (struct cpp_pool): New member first.
9952         * cppinit.c (append_include_chain): Plug memory leaks.
9953         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
9954         Allocate pragma structures from the (aligned) macro pool to
9955         avoid leaking memory.
9956         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
9957         so we don't leak memory.
9958         * hashtable.c (ht_destroy): New.
9959         * hashtable.h (ht_destroy): New.
9960
9961 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9962             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9963
9964         * c-lex.c (map): Make const.
9965         (cb_file_change): Update for callback passing a line map.
9966         Don't assume we have a previous map.  Remove sanity check
9967         about popping too many files.
9968         * cpperror.c (print_location): Make map const.
9969         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
9970         (cpp_make_system_header): Similarly.
9971         (search_from): Similarly.
9972         (_cpp_execute_include): Don't remember where we came from.
9973         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
9974         (struct cpp_reader): Make map const.
9975         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
9976         * cpplib.c (do_line): Update; line maps now hold sysp.
9977         (cpp_push_buffer): Similarly.
9978         (_cpp_do_file_change): Similarly; callback with map instead.
9979         (cpp_get_line_maps): Constify return value.
9980         (_cpp_pop_buffer): Update.
9981         * cpplib.h (struct cpp_file_change): Remove.
9982         (struct cpp_callbacks): Update.
9983         (cpp_get_line_maps): Constify return value.
9984         * cppmacro.c (_cpp_create_definition): Update.
9985         * cppmain.c (struct printer): Constify map.
9986         (maybe_print_line): Similarly.
9987         (print_line): Similarly.  Deduce flags 1 and 2 here.
9988         (cb_file_change): Update.
9989         * line-map.c (free_line_maps): Warn regardless.
9990         (add_line_map): Return pointer to const.  When passed NULL to_file
9991         with LC_LEAVE, use the obvious values for the return point so the
9992         caller doesn't have to figure them out.
9993         (lookup_line): Return pointer to const.
9994         (print_containing_files): Take pointer to const.
9995         * line-map.h (struct line_map): New members reason, sysp.
9996         (add_line_map): Return pointer to const.
9997         (lookup_line): Similarly.
9998         (print_containing_files): Take pointer to const.
9999
10000 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
10001             Richard Henderson  <rth@redhat.com>
10002
10003         * regmove.c (regmove_optimize): Avoid setting a register twice in
10004         a parallel set.
10005
10006 2001-08-10  Richard Henderson  <rth@redhat.com>
10007
10008         * doc/extend.texi (Arrays and pointers implementation): Document
10009         behavior of pointer/integer conversion.
10010
10011 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
10012
10013         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
10014
10015 2001-08-10  Richard Henderson  <rth@redhat.com>
10016
10017         * doc/extend.texi (C Implementation): New chapter.
10018         * doc/gcc.texi (Top): Link it in.
10019
10020 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
10021
10022         * doc/install.texi (Specific): Fix CVS merge botch.
10023
10024 2001-08-10  Richard Henderson  <rth@redhat.com>
10025
10026         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
10027         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
10028
10029 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
10030
10031         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
10032         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
10033         this macro is now required.
10034
10035         * cselib.c (cselib_process_insn), flow.c (propagate_block),
10036         loop.c (find_and_verify_loops), reload.c (reload): Check
10037         for rtx code of CALL_INSN, not CALL, when deciding if we
10038         need to check for REG_SETJMP note.
10039
10040         * gcse.c (compute_hash_table, compute_store_table): Update
10041         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
10042         logic.
10043
10044         * config/avr/avr.c: Fix typo.
10045         * config/convex/convex.c (expand_movstr): Use adjust_address.
10046         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
10047         variable.
10048         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
10049         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
10050         Fix typo.
10051         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
10052         Do define STACK_BOUNDARY.
10053         * config/i370/i370.c: Include expr.h.
10054         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
10055         config/pa/som.h, config/v850/v850.h: Take in_ctors and
10056         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
10057         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
10058         * config/m88k/m88k.c: Include c-tree.h after expr.h.
10059         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
10060         * config/romp/romp.c: Include expr.h after tree.h.
10061         Include toplev.h.
10062         (output_fpop): Use xmalloc, not oballoc.
10063         * config/we32k/we32k.c: Include expr.h.
10064
10065 2001-08-10  Kazu Hirata  <kazu@hxi.com>
10066
10067         * config/h8300/h8300.h: Fix formatting.
10068
10069 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
10070
10071         * c-common.h (RETURN_NULLIFIED_P): Lose.
10072         * c-semantics.c (genrtl_return_stmt): Don't check it.
10073
10074 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10075
10076         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
10077         (mips_annotate_frame_insn): New function.
10078         (mips_emit_frame_related_store): New function.
10079         (save_restore_insns): Don't mark instructions that set up the base
10080         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
10081         the store instructions instead.
10082         (mips_expand_prologue): If the stack size is moved into a temporary
10083         register, do not mark that move as frame-related.  Add a
10084         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
10085
10086 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10087
10088         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
10089         stack slot as unchanging if current_function_calls_eh_return.
10090
10091 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10092
10093         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
10094         access the second half of the TFmode scratch operand.
10095
10096 2001-08-10  Anthony Green  <green@redhat.com>
10097
10098         * java/class.c (emit_register_classes): Conditionalize code on
10099         JCR_SECTION_NAME.
10100
10101 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10102
10103         * doc/install.texi (Specific, avr): Fix cross-reference to the
10104         main manual to work both for info and HTML versions.
10105
10106 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10107
10108         * stmt.c (expand_null_return_1): Remove code to generate simple returns
10109         and "use_goto" argument.
10110         (expand_null_return, expand_value_return): Update all callers.
10111         * function.c (expand_function_end): Remove code to generate simple
10112         return.
10113         * config/vax/vax.md (epilogue): New expander for function return.
10114         * doc/md.texi (epilogue): Remove "if defined".
10115
10116 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
10117
10118         * Makefile.in: Partially revert my previous change:
10119         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
10120         of the hashtab.o and safe-ctype.o rules.
10121
10122 2001-08-09  Richard Henderson  <rth@redhat.com>
10123
10124         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
10125         (USE_COLLECT2): Remove duplicate definition.
10126         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
10127         (use_collect2): Remove dead code.
10128         * configure.in (use_collect2): Remove will_use_collect2 and
10129         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
10130         * configure: Rebuild.
10131
10132         * target.h (targetm.asm_out.constructor): New.
10133         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
10134         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
10135         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
10136         * varasm.c (in_ctors, in_dtors): New.
10137         (assemble_constructor, assemble_destructor): Remove.
10138         (default_stabs_asm_out_destructor): New.
10139         (default_named_section_asm_out_destructor): New.
10140         (dtors_section, default_dtor_section_asm_out_destructor): New.
10141         (default_stabs_asm_out_constructor): New.
10142         (default_named_section_asm_out_constructor): New.
10143         (ctors_section, default_ctor_section_asm_out_constructor): New.
10144         * output.h: Update declarations.
10145         * c-decl.c (c_expand_body): Use target hooks instead of
10146         assemble_constructor and assemble_destructor.
10147         * profile.c (output_func_start_profiler): Likewise.
10148         * objc/objc-act.c (finish_objc): Likewise.
10149         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
10150         for the constructor.
10151         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
10152
10153         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
10154         (DTORS_SECTION_ASM_OP): Likewise.
10155         (__CTOR_LIST__): Use attribute section when possible.
10156         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
10157
10158         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
10159         ASM_OUTPUT_CONSTRUCTOR.
10160
10161         * config/darwin.c (machopic_asm_out_constructor): New.
10162         (machopic_asm_out_destructor): New.
10163         * config/darwin-protos.h: Update declarations.
10164         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10165         (ASM_OUTPUT_DESTRUCTOR): Remove.
10166         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10167         * config/nextstep.c (nextstep_asm_out_constructor): New.
10168         (nextstep_asm_out_destructor): New.
10169         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10170         (ASM_OUTPUT_DESTRUCTOR): Remove.
10171         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10172         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
10173         ASM_OUTPUT_*STRUCTOR.
10174         * config/i386/aix386ng.h: Likewise.
10175
10176         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
10177         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
10178         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10179         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10180         * config/lynx.h: Likewise.
10181         * config/netware.h: Likewise.
10182         * config/psos.h: Likewise.
10183         * config/alpha/alpha-interix.h: Likewise.
10184         * config/alpha/elf.h: Likewise.
10185         * config/arc/arc.h: Likewise.
10186         * config/arm/aof.h: Likewise.
10187         * config/arm/coff.h: Likewise.
10188         * config/arm/elf.h: Likewise.
10189         * config/c4x/c4x.h: Likewise.
10190         * config/h8300/h8300.h: Likewise.
10191         * config/i386/cygwin.h: Likewise.
10192         * config/i386/djgpp.h: Likewise.
10193         * config/i386/i386-coff.h: Likewise.
10194         * config/i386/i386-interix.h: Likewise.
10195         * config/i386/sco5.h: Likewise.
10196         * config/i386/vsta.h: Likewise.
10197         * config/i386/win32.h: Likewise.
10198         * config/i960/i960-coff.h: Likewise.
10199         * config/ia64/sysv4.h: Likewise.
10200         * config/m68hc11/m68hc11.h: Likewise.
10201         * config/m68k/coff.h: Likewise.
10202         * config/m68k/mot3300.h: Likewise.
10203         * config/m88k/m88k.h: Likewise.
10204         * config/mcore/mcore-pe.h: Likewise.
10205         * config/mcore/mcore.h: Likewise.
10206         * config/mips/elf.h: Likewise.
10207         * config/mips/elf64.h: Likewise.
10208         * config/mips/iris6.h: Likewise.
10209         * config/pa/pa64-hpux.h: Likewise.
10210         * config/rs6000/sysv4.h: Likewise.
10211         * config/sh/sh.h: Likewise.
10212         * config/sparc/litecoff.h: Likewise.
10213
10214         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
10215         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10216         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10217         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10218         (ASM_OUTPUT_DESTRUCTOR): Remove.
10219         * config/a29k/a29k.c: Move include of tree.h.
10220         * config/a29k/udi.h: Delete file.
10221         * config/alpha/alpha.c (vms_asm_out_constructor): New.
10222         (vms_asm_out_destructor): New.
10223         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
10224         (EXTRA_SECTION_FUNCTIONS): Likewise.
10225         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10226         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10227         * config/c4x/c4x.c: Move include of tree.h.
10228         * config/clipper/clipper.c (clix_asm_out_constructor): New.
10229         (clix_asm_out_destructor): New.
10230         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10231         (ASM_OUTPUT_DESTRUCTOR): Remove.
10232         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10233         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10234         (TARGET_ASM_CONSTRUCTOR): New.
10235         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
10236         (sco_asm_out_constructor): New.
10237         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
10238         * config/i386/svr3gas.h: Remove stack grows up code.
10239         Remove code duplicated from i386/sysv3.h.
10240         (TARGET_ASM_CONSTRUCTOR): New.
10241         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10242         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
10243         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10244         (TARGET_ASM_CONSTRUCTOR): New.
10245         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
10246         (m68hc11_asm_out_destructor): New.
10247         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
10248         (TARGET_ASM_DESTRUCTOR): New.
10249         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
10250         * config/m68k/dpx2.h: Properly undef all the bits inherited from
10251         config/svr3.h pertaining to section manipulation.
10252         * config/m68k/dpx2g.h: Remove #if 0 code.
10253         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
10254         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
10255         (ASM_OUTPUT_CONSTRUCTOR): Remove.
10256         (TARGET_ASM_CONSTRUCTOR): New.
10257         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
10258         (m88k_svr3_asm_out_constructor): New.
10259         (m88k_svr3_asm_out_destructor): New.
10260         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10261         (ASM_OUTPUT_DESTRUCTOR): Remove.
10262         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10263         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
10264         * config/rs6000/aix.h: Likewise.
10265         * config/mips/rtems64.h: Don't undef removed constructor related bits.
10266         * config/mips/vxworks.h: Likewise.
10267         * config/rs6000/lynx.h: Likewise.
10268         * config/sh/elf.h: Likewise.
10269         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
10270         (DTORS_SECTION_ASM_OP): New.
10271         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10272         (ASM_OUTPUT_DESTRUCTOR): Remove.
10273         * config/sparc/sol2-sld-64.h: Likewise.
10274         * config/vax/vax.c (vms_asm_out_constructor): New.
10275         (vms_asm_out_destructor): New.
10276         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10277         (ASM_OUTPUT_DESTRUCTOR): Remove.
10278         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10279
10280         * doc/tm.texi (@node Initialization): Update.
10281
10282 2001-08-09  Richard Henderson  <rth@redhat.com>
10283
10284         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
10285         (__do_global_dtors_aux): Use gp-relative static data to avoid
10286         one dynamic relocation.
10287         (__do_frame_setup): Register Java classes.
10288         * config/alpha/crtend.asm (__JCR_END__): New.
10289
10290 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
10291
10292         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
10293         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
10294         (GEN, STAGESTUFF): Add new files.
10295         (insn-constants.h, s-constants, tm-preds.h, s-preds,
10296         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
10297         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
10298         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
10299         as well as insn-codes.h and insn-flags.h in config.h; and no
10300         extra headers in tconfig.h and hconfig.h.
10301
10302         * gencodes.c: Eliminate code to generate predicate declarations
10303         or #defines for md-file constants.
10304         * genconstants.c, genpreds.c: New files.
10305
10306         * i386.md: Re-order guard expressions such that TARGET_64BIT
10307         comes first, when this permits better optimization.  Add
10308         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
10309         why this is desirable.
10310
10311 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
10312
10313         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
10314         (find_fde_for_dso): Remove.
10315         (_Unwind_IteratePhdrCallback): New.
10316         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
10317         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
10318
10319 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10320
10321         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
10322         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
10323
10324 2001-08-09  Graham Stott  <grahams@redhat.com>
10325
10326         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
10327         (vis_no_unit): Use it.
10328         (visualize_no_unit): Add the insn only if room exists.
10329
10330 2001-08-09  Graham Stott  <grahams@redhat.com>
10331
10332         * predict.c (estimate_probability): Replace magic numbers with
10333         appropriate enumeration.
10334
10335 2001-08-09  Graham Stott  <grahams@redhat.com>
10336
10337         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
10338         parameter.
10339         (EXTRACT_FLAGS): Likewise.
10340
10341 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
10342
10343         * config/mips/mips.c    (mips_legitimate_address_p): Check for
10344         CONST_INT in last patch.
10345
10346 2001-08-08  Anthony Green  <green@redhat.com>
10347
10348         * java/class.c (emit_register_classes): Use assemble_jcr if
10349         possible.  Keep the original mechanism as a fallback.
10350         * defaults.h (JCR_SECTION_NAME): Define if we have named section
10351         and weak symbol support.
10352         * crtstuff.c (__JCR_LIST__): Define.
10353         (__JCR_END__): Define.
10354         (_Jv_RegiserClasses): Define weak symbol if possible.
10355         (__do_global_ctors_aux): Register classes for ELF targets with
10356         weak symbol support.
10357
10358 2001-08-08  Kazu Hirata  <kazu@hxi.com>
10359
10360         * dbxout.c: Fix comment formatting.
10361         * dependence.c: Likewise.
10362         * df.c: Likewise.
10363         * diagnostic.c: Likewise.
10364         * dominance.c: Likewise.
10365         * doprint.c: Likewise.
10366         * dwarf2out.c: Likewise.
10367         * dwarfout.c: Likewise.
10368         * emit-rtl.c: Likewise.
10369         * except.c: Likewise.
10370         * explow.c: Likewise.
10371         * expmed.c: Likewise.
10372         * expr.c: Likewise.
10373         * flow.c: Likewise.
10374         * fold-const.c: Likewise.
10375         * function.c: Likewise.
10376
10377 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10378
10379         * global.c (retry_global_alloc): Avoid shadowing allocno.
10380
10381 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
10382
10383         * except.c (remove_fixup_regions): Fix typo.
10384
10385 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
10386
10387         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
10388         unsigned HOST_WIDE_INT to avoid warning.
10389         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
10390         * flow.c (set_block_for_new_insns): Likewise.
10391
10392 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
10393
10394         * sibcall.c (return_value_pseudo): New static variable.
10395         (skip_copy_to_return_value): Handle return_value_pseudo.
10396         (call_ends_block_p): Ensure that return_value_pseudo is set.
10397         (optimize_sibling_and_tail_recursive_call): Discover the
10398         load of pseudo return value in alternate exit block.
10399
10400 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
10401
10402         * calls.c (ECF_ALWAYS_RETURN): New constant.
10403         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
10404         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
10405         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
10406         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
10407         * rtl.c (reg_note_name): New name.
10408         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
10409
10410 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
10411
10412         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
10413
10414 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
10415
10416         * alias.c (get_alias_set): Return a previously calculated
10417         alias set for a VAR_DECL.
10418         * function.c (gen_mem_addressof): Calculate the alias set before
10419         touching the RTL.
10420
10421 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
10422
10423         * predict.def: Set hitrates according our experimental run.
10424
10425 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
10426
10427         * i386.h (HARD_REGNO_RENAME_OK): New macro.
10428
10429 2001-08-08  H.J. Lu <hjl@gnu.org>
10430
10431         * config/mips/mips.c (mips_unique_section): New. Copied from
10432         config/mips/elf.h.
10433
10434         * config/mips/mips-protos.h (mips_unique_section): New
10435         prototype.
10436
10437         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
10438
10439         * config/mips/little.h: New. Generic little endian mips
10440         targets. Only mips*-*-linux* is converted to use it so far.
10441
10442         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
10443         (WCHAR_TYPE): Defined
10444         (WCHAR_TYPE_SIZE): Likewise.
10445         (INIT_SUBTARGET_OPTABS): Likewise.
10446         (BSS_SECTION_ASM_OP): Likewise.
10447         (SBSS_SECTION_ASM_OP): Likewise.
10448         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10449         (ASM_DECLARE_OBJECT_NAME): Likewise.
10450         (UNIQUE_SECTION): Likewise.
10451         (EXTRA_SECTIONS): Likewise.
10452         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
10453         (ASM_OUTPUT_DESTRUCTOR): Likewise.
10454         (ASM_OUTPUT_DEF): Likewise.
10455         (HANDLE_SYSV_PRAGMA): Removed.
10456         (NO_IMPLICIT_EXTERN_C): Likewise.
10457         (TARGET_MEM_FUNCTIONS): Likewise.
10458         (STARTFILE_SPEC): Likewise.
10459         (ENDFILE_SPEC): Likewise.
10460         (LIB_SPEC): Likewise.
10461         (INVOKE__main): Likewise.
10462         (CTOR_LIST_BEGIN): Likewise.
10463         (CTOR_LIST_END): Likewise.
10464         (DTOR_LIST_BEGIN): Likewise.
10465         (DTOR_LIST_END): Likewise.
10466         (SET_ASM_OP): Likewise.
10467         (ASM_OUTPUT_SOURCE_LINE): Likewise.
10468         (ASM_OUTPUT_DEF): Likewise.
10469         (ASM_OUTPUT_IDENT): Likewise.
10470
10471         * config/mips/mips.h (ASM_SPEC): Undefine before define.
10472         (CPLUSPLUS_CPP_SPEC): Likewise.
10473         (ASM_APP_ON) Redefine only if not defined.
10474         (ASM_APP_OFF): Likewise.
10475         (ASM_OUTPUT_SOURCE_LINE): Likewise.
10476         (ASM_OUTPUT_IDENT): Likewise.
10477
10478         * config.gcc: Update tm_file for Linux/mips.
10479
10480 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
10481
10482         * cselib.c (cselib_record_sets): If insn is predicated, turn
10483         sources into IF_THEN_ELSEs.
10484
10485         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
10486         Turn into define_insn_and_split.
10487
10488         * sched-deps.c: Include "cselib.h".
10489         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
10490         Use cselib to turn memory addresses into VALUEs.
10491         (sched_analyze): Call cselib_init/cselib_finish if necessary.
10492         * sched-int.h (struct sched_info): New member USE_CSELIB.
10493         * sched-ebb.c (ebb_sched_info): Initialize it.
10494         * sched-rgn.c (rgn_sched_info): Likewise.
10495         * Makefile.in (sched-deps.o): Update dependencies.
10496
10497         * cselib.h (cselib_subst_to_values): Declare.
10498         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
10499         that have no value and autoincs to be handled by generating a new
10500         dummy value.
10501
10502 2001-08-08  Graham Stott  <grahams@redhat.com>
10503
10504         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
10505         within fixed length SEQUENCE.
10506
10507 2001-08-08  Graham Stott  <grahams@redhat.com>
10508
10509         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
10510         (diagnostic_prefixing_rule): Likewise.
10511         (diagnostic_line_cutoff): Likewise.
10512         (diagnostic_kind_count): Likewise.
10513
10514 2001-08-08  Graham Stott  <grahams@redhat.com>
10515
10516         * alias.c (find_base_decl): Delete redundent assignment.
10517
10518 2001-08-08  Graham Stott  <grahams@redhat.com>
10519
10520         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
10521         (abs): Uppercase and paranthesize macro parameter.
10522         (MEM_DEPENDENCY): Add whitespace.
10523
10524 2001-08-08  Graham Stott  <grahams@redhat.com>
10525
10526         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
10527         failure check for CONST_INT
10528
10529 2001-08-08  Graham Stott  <grahams@redhat.com>
10530
10531         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
10532         (libcall_dead_p): Likewise.
10533
10534         (mark_used_regs): Constify fmt.
10535         (find_use_as_address): Likewise.
10536
10537 2001-08-08  Graham Stott  <grahams@redhat.com>
10538
10539         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
10540          parameter.
10541
10542 2001-08-08  Graham Stott  <grahams@redhat.com>
10543
10544         * combine.c (combine_simplify_rtx): Update comment and
10545         remove erroneous test.
10546
10547 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10548
10549         * cppinit.c (cpp_finish): Pop the final buffer without comment.
10550         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
10551         take care to avoid multiple no-newline at EOF warnings in that
10552         case.
10553
10554 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
10555
10556         * calls.c (expand_call): Do not emit INSN_SETJMP note.
10557         (emit_library_call_value_1): Likewise.
10558         (emit_call_1): Emit REG_SETJMP note.
10559         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
10560         of INSN_SETJMP
10561         * cselib.c (cselib_process_insn): Likewise.
10562         * flow.c (propagate_block): Likewise.
10563         * loop.c (find_and_verify_loops): Likewise.
10564         * reload.c (find_equiv_regs): Likewise.
10565         * reload1.c (reload): Likewise.
10566         * resource.c (mark_referenced_resources,
10567         mark_set_resources): Likewise.
10568         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
10569         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
10570         * haifa-sched.c (unlink_other_notes): Likewise.
10571         (reemit_notes): Likewise.
10572         * sched-ebb.c (sched_ebb): Likewise.
10573         * sched-rgc.c (sched_region): Likewise.
10574         * rtl.c (note_insn_name): Likewise.
10575         (reg_note_name): Add REG_SETJMP
10576         * rtl.h (reg_note): Add REG_SETJMP.
10577         (insn_note): Remove NOTE_INSN_SETJMP.
10578
10579         * profile.c (branch_prob): Add fake edges for setjmp.
10580
10581 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
10582
10583         * config.gcc: Quote target_cpu_default2 correctly for
10584         powerpc*-*-* targets.
10585
10586 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10587
10588         * cpplib.h, line-map.h: Update comments.
10589         * cppmain.c (printer_init): Move inline.
10590         (maybe_print_line, print_line): Take a map pointer.
10591         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
10592         (cb_file_change): Don't use prior value of print.map.
10593
10594 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
10595
10596         * doc/install.texi: Document fine-grained multilib configuration.
10597
10598 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
10599
10600         * rtlanal.c (find_first_parameter_load): Call note_stores
10601         only on the instructions.
10602
10603 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
10604
10605         * alias.c (nonlocal_mentioned_p):
10606         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
10607         * calls.c (emit_call_1): Likewise.
10608         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
10609         * cselib.c (cselib_process_insn): Likewise.
10610         * df.c (df_insns_modify): Likewise.
10611         * flow.c (need_fake_edge_p): Likewise.
10612         (propagate_one_insn): Likewise.
10613         * haifa-sched.c (reemit_notes): Likewise.
10614         * integrate.c (copy_insn_list): Likewise.
10615         * jump.c (delete_prior_computation): Likewise.
10616         * local-alloc.c (validate_equiv_mem): Likewise.
10617         * loop.c (scan_loop): Likewise.
10618         * predict.c (estimate_probability): Likewise.
10619         * reload.c (reload): Likewise.
10620         * sched-deps (sched_analyze): Likewise.
10621         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
10622         * gcse.c (compute_hash_table): Likewise.
10623         (mark_call): Likewise.
10624         (store_killed_in_insn): Likewise.
10625
10626 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
10627
10628         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
10629
10630 2001-08-06  Richard Henderson  <rth@redhat.com>
10631
10632         * varasm.c (assemble_gc_entry): Remove.
10633         * output.h: Likewise.
10634
10635 2001-08-06  Richard Henderson  <rth@redhat.com>
10636
10637         * varasm.c (assemble_constructor): Take a symbol_ref and a
10638         priority instead of a bare string.  Move priority handling
10639         here from cp/decl2.c.
10640         * output.h: Update decls.
10641
10642         * c-decl.c (c_expand_body): Update calls to assemble_constructor
10643         and assemble_destructor.
10644         * profile.c (output_func_start_profiler): Likewise.
10645         * objc/objc-act.c (finish_objc): Likewise.
10646         (build_module_descriptor): Return the symbol not the symbol name.
10647
10648 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
10649
10650         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
10651         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
10652         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
10653         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
10654         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
10655         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
10656
10657 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10658
10659         * cpperror.c (print_containing_files): Moved to line-map.c.
10660         (print_location): line-map.c handles re-listing or otherwise.
10661         * cpphash.h (struct lexer_state): Remove next_bol.
10662         (struct cpp_buffer): Remove include_stack_listed.
10663         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
10664         Remove faked buffer handling.
10665         (_cpp_do_file_change): Tweak.
10666         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
10667         * cppmain.c (struct printer): Remove filename.
10668         (print_line, cb_file_change): Update accordingly.
10669         * line-map.c: Include intl.h.
10670         (init_line_maps): Initialize last_listed.
10671         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
10672         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
10673         (print_containing_files): New.
10674         * line-map.h (struct line_maps): New member last_listed.
10675         (print_containing_files, INCLUDED_FROM): New.
10676         * Makefile.in: Update.
10677         * po/POTFILES.in: Add line-map.c.
10678
10679 2001-08-06  Richard Henderson  <rth@redhat.com>
10680
10681         * except.c (convert_from_eh_region_ranges_1): Never mark
10682         USE or CLOBBER insns as throwing.
10683
10684         * expr.c (store_constructor): Don't clobber memory targets.
10685
10686 2001-08-06  Andreas Jaeger  <aj@suse.de>
10687
10688         * profile.c (branch_prob): Remove unused variable insn.
10689
10690         * Makefile.in (local-alloc.o): Add dependency on except.h.
10691
10692         * local-alloc.c: Include except.h for can_throw_internal prototype.
10693
10694 2001-08-06  Richard Henderson  <rth@redhat.com>
10695
10696         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
10697         * function.c (expand_main_function): Implement it.
10698         * doc/tm.texi: Document it.
10699
10700 2001-08-06  Stan Shebs  <shebs@apple.com>
10701
10702         * doc/install.texi: Document powerpc-*-darwin* details.
10703
10704 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
10705
10706         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
10707         (ASM_CPU_SPEC): Move back to rs6000.h
10708         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
10709
10710         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
10711
10712         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
10713         readded.
10714
10715         * config/rs6000/linux64.h: Ditto.
10716
10717         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
10718         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
10719         nothing.
10720
10721         Remove accidently readded definitions of FUNCTION_PROLOGUE,
10722         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
10723
10724         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
10725         to rs6000.h
10726
10727 2001-08-05  Richard Henderson  <rth@redhat.com>
10728
10729         * local-alloc.c (update_equiv_regs): Do not move insns that
10730         can throw.
10731
10732 2001-08-05  Jan Hubicka  <jh@suse.cz>
10733
10734         * Makefile.in (reload1.o): Add dedendancy on except.h
10735         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
10736         prototypes.
10737         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
10738         indicating wehther edges has been cleaned up.
10739         * reload1.c: Inlucde except.h
10740         (fixup_abnormal_edges): Accept deleted insns.
10741         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
10742         after combine.
10743
10744 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10745
10746         * cpplib.c (do_line): Correct line number after pop_buffer.
10747
10748 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10749
10750         PR preprocessor/3824
10751         * line-map.c: Update comments.
10752         * line-map.h: Update comments.
10753         * tradcif.y: Don't consider large numbers unsigned.
10754
10755 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10756
10757         PR preprocessor/3081
10758         * c-lex.c (map): New.
10759         (cb_file_change): Update map and use it.
10760         (cb_def_pragma, cb_define, cb_undef): Use map and line.
10761         (c_lex): Update to use map.
10762         * cpperror.c (print_location): Move to using logical line numbers.
10763         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
10764         (cpp_make_system_header): Similarly.
10765         (_cpp_execute_include): Stop line numbering hacks.  Store the
10766         line we will return to.
10767         * cpphash.h (CPP_BUF_LINE): Remove.
10768         (struct cpp_buffer): Remove lineno and pseudo_newlines.
10769         Add map and return_to_line.
10770         (_cpp_do_file_change): Update.
10771         * cppinit.c (cpp_start_read): Update line kludge.
10772         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
10773         (trigraph_ok): Use logical line numbers for diagnostics.
10774         (skip_block_comment): Likewise.
10775         (skip_whitespace): Likewise.
10776         (skip_line_comment): Use pfile->line instead.
10777         (_cpp_lex_token): Update to use logical line numbering exclusively.
10778         Handle BOL locally.  Accept new lines in directives, but keep
10779         pfile->line decremented.  Diagnostics use logical lines.  Update
10780         directive handling.
10781         * cpplib.c (SEEN_EOL): New.
10782         (skip_rest_of_line, check_eol): Use it.
10783         (end_directive): Increase line number when accepting the newline
10784         at the end of a directive.
10785         (run_directive): Simplify.
10786         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
10787         (_cpp_do_file_change): Update to take buffer line number as an
10788         argument, and store the current map in the cpp_reader.  Remove
10789         line number kludges.
10790         (_cpp_do__Pragma): Restore output position after a _Pragma.
10791         (cpp_push_buffer): Don't set output line or lineno.
10792         (_cpp_pop_buffer): Transfer more info from a faked buffer.
10793         Remove line kludge.  Set output_line.
10794         * cppmacro.c (builtin_macro): Update handling of __LINE__.
10795         (parse_arg): Use logical lines.
10796         (save_lookahead_token): Save EOFs too now.
10797         * cppmain.c (struct printer): Fix comments.
10798         (printer_init): Simplify, let caller do errors.
10799         (scan_translation_unit, check_multiline_token, dump_macro): Update.
10800         (maybe_print_line): Simplify.
10801         (print_line): Don't print a linemarker if -P.
10802         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
10803         (cb_file_change): Simplify.
10804         * line-map.h (LAST_SOURCE_LINE): Fix.
10805         (CURRENT_LINE_MAP): New.
10806
10807 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
10808
10809         * doloop.c (doloop_modify_runtime): Properly compute number of
10810         iterations if loop was unrolled.
10811
10812         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
10813         if their CSELIB_VAL_PTRs are.
10814
10815         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
10816         (setup_spill_pointers): Initialize it.
10817         (spill_restore_mem): Set it.
10818         (do_spill, do_restore): Use it to add REG_INC note.
10819         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
10820
10821         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
10822         asms if other insns are available.
10823
10824         * config/ia64/ia64.c (condop_operator): New predicate.
10825         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
10826         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
10827         patterns.
10828
10829         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
10830         temporary register than directly using a MEM.
10831
10832 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
10833
10834         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
10835         parameter in last change.
10836
10837 2001-08-04  Zack Weinberg  <zackw@panix.com>
10838
10839         * sparc.md: Don't use #if inside C test expression.
10840
10841 2001-08-04  Richard Henderson  <rth@redhat.com>
10842
10843         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
10844
10845 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
10846
10847         * cpphash.h (struct cpp_reader): New member directive_line.
10848         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
10849         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
10850         do_pragma): Pass line to callbacks.
10851         (start_directive): Record line of directive.
10852         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
10853         cb_include): Similarly.
10854         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
10855         Similarly.
10856
10857 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
10858
10859         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
10860         comment.
10861
10862 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
10863
10864         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
10865
10866         * reload1.c (fixup_abnormal_edges): New static function.
10867         (reload): Use it.
10868
10869         * flow.c (need_fake_edge_p): New function.
10870         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
10871         avoid call insn to be very last insn in the insn stream.
10872
10873         * profile.c (branch_prob): Call flow_call_edges_add instead of
10874         doing that by hand; cleanup cfg to re-merge basic blocks once
10875         we are done.
10876
10877 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
10878
10879         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
10880         are also on line-map.h.
10881         * cppfiles.c (stack_include_file): Update.
10882         * cpphash.h (struct cpp_buffer): New member return_at_eof.
10883         (_cpp_pop_buffer): New.
10884         * cppinit.c (cpp_destroy, cpp_finish): Update.
10885         (do_includes): Mark each buffer to return at EOF.
10886         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
10887         return as requested.
10888         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
10889         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
10890         * cpplib.h (cpp_pop_buffer): Remove.
10891         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
10892         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
10893         buffers.
10894         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
10895         to pop buffers.
10896         (do_preprocessing): Update.
10897         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
10898         * c-parse.in (_yylex): Similarly.
10899         * scan-decls.c (scan_decls): Similarly.
10900         * line-map.h: Update comments.
10901
10902         * objc/Make-lang.in (objc-act.o): Update dependencies.
10903
10904 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10905
10906         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
10907         and soft register for operand 0.
10908         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
10909
10910 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
10911
10912         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
10913         register for operand 0.
10914         ("bitcmpqi_z_used"): Allow memory for operand 0.
10915         (split "bitcmpqi"): New split to handle address reg as operand 1.
10916
10917 2001-08-04  Andreas Jaeger  <aj@suse.de>
10918
10919         * gcse.c: Revert Daniel's last patch.
10920
10921 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
10922
10923         * sparc-protos.h: Add prototypes for fp_zero_operand and
10924         reg_or_0_operand.
10925         * sh-protos.h: Add prototype for fpul_operand.
10926
10927 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
10928
10929         * doc/extend.texi (Other Builtins): Fix typo in last change.
10930
10931 2001-08-03  Richard Henderson  <rth@redhat.com>
10932
10933         * target.h (gcc_target): Add asm_out.named_section,
10934         section_type_flags, have_named_sections.
10935         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
10936         (TARGET_HAVE_NAMED_SECTIONS): New.
10937         (TARGET_SECTION_TYPE_FLAGS): New.
10938
10939         * Makefile.in (toplev.o): Depend on TARGET_H.
10940         (varasm.o, dbxout.o): Likewise.
10941         * c-common.c (decl_attributes): Check targetm.have_named_sections
10942         instead of ifdef ASM_OUTPUT_SECTION_NAME.
10943         * dbxout.c (dbxout_function_decl): Likewise.
10944         (dbxout_function_end): Likewise.
10945         * toplev.c (compile_file): Likewise.
10946         * varasm.c (exception_section): Likewise.
10947         * cp/decl2.c (finish_objects): Likewise.
10948
10949         * defaults.h (EH_FRAME_SECTION): Remove.
10950         (EH_FRAME_SECTION_ASM_OP): Remove.
10951         (EH_FRAME_SECTION_NAME): New.
10952         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
10953         (UNIQUE_SECTION_P): Remove.
10954         * dwarf2out.c (SECTION_FORMAT): Remove.
10955         (ASM_OUTPUT_SECTION): Remove.
10956         (output_call_frame_info): Use named_section_flags.
10957         (output_comp_unit, dwarf2out_start_source_file): Likewise.
10958         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
10959         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
10960         * varasm.c (in_eh_frame, eh_frame_section): Remove.
10961         (named_section_flags): New.
10962         (named_section): Use it and targetm.section_type_flags.
10963         (resolve_unique_section): New.
10964         (assemble_start_function): Use it.
10965         (asm_emit_uninitialised, assemble_variable): Likewise.
10966         (default_section_type_flags): New.
10967         (default_no_named_section, default_elf_asm_named_section): New.
10968         (default_coff_asm_named_section, default_pe_asm_named_section): New.
10969         * output.h: Update varasm.c decls.
10970         (SECTION_*): New flags.
10971
10972         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
10973         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
10974
10975         * config/elfos.h (UNIQUE_SECTION_P): Remove.
10976         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
10977         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
10978         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
10979         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
10980         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
10981         * config/mips/elf.h, config/mips/elf64.h: Likewise.
10982         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
10983         * config/pa/pa64-hpux.h,
10984
10985         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
10986         (TARGET_ASM_NAMED_SECTION): New.
10987         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
10988         * config/alpha/vms.h, config/arm/coff.h: Likewise.
10989         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
10990         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
10991         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
10992         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
10993         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
10994         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
10995         * config/i386/sco5.h, config/i386/win32.h: Likewise.
10996         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
10997         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
10998         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
10999         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
11000         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
11001         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
11002         * config/sparc/sysv4.h: Likewise.
11003
11004         * config/nextstep.h: Error until named sections implemented.
11005
11006         * config/a29k/a29k.c (a29k_asm_named_section): New.
11007         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
11008         (vms_section_type_flags, vms_asm_named_section): New.
11009         * config/arm/arm.c (arm_elf_asm_named_section): New.
11010         * config/avr/avr.c (asm_output_section_name): Remove.
11011         * config/avr/avr-protos.h: Update.
11012         * config/c4x/c4x.c (c4x_asm_named_section): New.
11013         * config/h8300/h8300.c (h8300_asm_named_section): New.
11014         * config/i386/i386.c (sco_asm_named_section): New.
11015         * config/i386/winnt.c (SECTION_PE_SHARED): New.
11016         (i386_pe_section_type_flags): New.
11017         (i386_pe_asm_named_section): New.
11018         * config/i386/i386-protos.h: Update.
11019         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
11020         * config/mcore/mcore.c (mcore_asm_named_section): New.
11021         * config/mips/mips.c (iris6_asm_named_section): New.
11022         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
11023         instead of UNIQUE_SECTION_P.
11024         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
11025         (xcoff_asm_named_section): New.
11026         * config/sh/sh.c (sh_asm_named_section): New.
11027         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
11028
11029         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
11030         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
11031         (EH_FRAME_SECTION_NAME): New.
11032         (EXCEPTION_SECTION): New.
11033         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
11034         (DEBUG_*_SECTION): Remove.
11035         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
11036         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
11037         (EH_FRAME_SECTION_ASM_OP): Remove.
11038
11039         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
11040         (ASM_OUTPUT_SECTION_NAME): Remove.
11041         (TARGET_ASM_NAMED_SECTION): New.
11042         (TARGET_HAVE_NAMED_SECTIONS): New.
11043         (TARGET_SECTION_TYPE_FLAGS): New.
11044         (EH_FRAME_SECTION_ASM_OP): Remove.
11045         (EH_FRAME_SECTION_NAME): New.
11046
11047 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
11048
11049         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
11050         for complex expressions when cfun == 0.
11051         * doc/extend.texi: Document that __builtin_constant_p can be
11052         used in data initializers as well as functions.
11053
11054 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
11055
11056         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
11057         variable I locally, instead of expecting a declaration in the
11058         calling context.
11059
11060 2001-08-03  Richard Henderson  <rth@redhat.com>
11061
11062         * except.c (collect_one_action_chain): Add an explicit cleanup
11063         action if regions surrounding a catch were encoded entirely
11064         within the call-site entry.
11065
11066 2001-08-03  Richard Henderson  <rth@redhat.com>
11067
11068         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
11069         don't take REGNO of a non-register.
11070
11071 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11072
11073         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
11074         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
11075         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
11076         (__gthread_mutex_init_function): New function for mutex initialization.
11077
11078 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11079
11080         * Makefile.in: Revert screwed up commit.
11081
11082 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11083
11084         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
11085         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
11086         merged by linker script to get a final _exit().
11087         (__do_global_dtors): New for destructor handling in specific exit
11088         section.
11089         (__do_global_ctors): New for constructors in specific install section.
11090         (__map_data_section): Map data sections before running constructors.
11091         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
11092         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
11093         (DTORS_SECTION_ASM_OP): Likewise.
11094         (CTORS_SECTION_FUNCTION): Define to force a reference to
11095         __do_global_ctors.
11096         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
11097
11098 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11099
11100         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
11101
11102         * Makefile.in: Add df.h to gcse.c dependencies.
11103
11104 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11105
11106         * varasm.c (output_constant_def_contents): Use for the length of a
11107         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
11108         depending on which is larger.
11109
11110 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11111
11112         * gcse.c: Include df.h for use as a dataflow analyzer.
11113         Remove regvec.
11114         Declaration of reg_set_info: gone.
11115         New df_analyzer variable used by store motion.
11116         (reg_set_info): Deleted.
11117         (mark_mem_regs): New function, analyze regs used by a mem.
11118         (store_ops_ok): Use dataflow analyzer results to determine if
11119         necessary regs are changed in the block.
11120         (find_moveable_store): Remove check for symbol ref, we can handle
11121         much more complex expressions now.
11122         (compute_store_table): Remove most of the code, it's unnecessary
11123         now that the dataflow analyzer records the info for us.
11124         (store_killed_after): Add parameter to say whether to do the
11125         store_ops_okay test, used to speed up testing when we already know
11126         the answer, and just want to know if the store itself was killed.
11127         (build_store_vector): Largely rewritten to calculate the various
11128         vectors properly, and somewhat optimized.
11129         (store_motion): Init the df_analyzer, get REG_DEF chains.
11130         Also handle trapping expressions (since mems almost always trap)
11131         (simple_mem): Redefine what a simple mem is.
11132
11133 2001-08-03  DJ Delorie  <dj@redhat.com>
11134
11135         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
11136         set from a constant part of the condition.
11137
11138 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
11139
11140         * mkdeps.c (deps_add_default_target): Make local variable
11141         ``start'' a const char pointer.
11142         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
11143
11144 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11145
11146         * doc/install.texi (Configuration): Fix markup.
11147         (Specific, i?86-*-udk): Likewise.
11148         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
11149         --with-gnu-ld.
11150         Document --enable-threads and --enable-libgcj status.
11151         (Specific, mips-sgi-irix*): Canonicalize triples.
11152         (Specific, mips-sgi-irix5): Warn about problems with this config.
11153         Mention required GNU as patch.
11154         Native assembler problems are fixed.
11155         (Specific, mips-sgi-irix6): Update O32 ABI support status.
11156         Document --enable-threads and --enable-libgcj status.
11157
11158 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11159
11160         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
11161         of mkinstalldirs.
11162
11163 2001-08-03  Richard Henderson  <rth@redhat.com>
11164
11165         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
11166         constant data.
11167
11168 2001-08-03  Richard Henderson  <rth@redhat.com>
11169
11170         * rtlanal.c (find_first_parameter_load): Stop if we
11171         reach a CODE_LABEL at BOUNDARY.
11172
11173 2001-08-03  Richard Henderson  <rth@redhat.com>
11174
11175         * config/alpha/alpha.md (force_movdi): New insn.
11176         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
11177         Tweek FRP marking of VMS prologue insns.
11178         * config/alpha/vms.h (EPILOGUE_USES): New.
11179
11180 2001-08-02  Richard Henderson  <rth@redhat.com>
11181
11182         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
11183
11184 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
11185
11186         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
11187         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
11188         config/convex/convex.h, config/d30v/d30v.c,
11189         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11190         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
11191         config/mips/mips.h, config/mn10200/mn10200.h,
11192         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
11193         config/v850/v850.h, config/vax/openbsd.h,
11194         config/vax/openbsd1.h, config/vax/ultrix.h,
11195         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
11196         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
11197         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
11198         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
11199         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
11200         in comments and documentation.
11201
11202 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11203
11204         * line-map.c: New.
11205         * line-map.h: New.
11206         * Makefile.in (line-map.o): New.
11207         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
11208         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
11209         * cpperror.c (print_containing_files): Similarly.
11210         (print_location): Update.  Don't output a space before _Pragma.
11211         * cppfiles.c (stack_include_file): Set to line 1 immediately.
11212         (stack_include_filee, cpp_make_system_header): Update.
11213         (_cpp_execute_include): Get logical line number right for calling
11214         as-yet-unterminated #include.
11215         * cpphash.h (struct cpp_reader): Add line_maps.
11216         (_cpp_do_file_change): Update.
11217         * cppinit.c (cpp_create_reader): Initialize line maps.
11218         (cpp_destroy): Destroy line maps.
11219         (cpp_start_read): Get logical line number right.
11220         * cpplex.c (parse_string): Only warn once for multi-line strings.
11221         Use boolean variable for null warning.
11222         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
11223         already.
11224         (do_include_common): End the directive early.
11225         (do_line): Don't warn about out-of-range lines in preprocessed
11226         source.  Update.  Remove unused variables.
11227         (_cpp_do_file_change): Update for new line mapping.
11228         (pragma_cb): New typedef.
11229         (cpp_register_pragma): Stop looking ahead before calling the
11230         handler.  Clean up.
11231         (do_pragma_system_header): End directive early.
11232         (cpp_get_line_maps): New.
11233         (cpp_pop_buffer): Fudge logical line.  Update.
11234         * cpplib.h: Include line-map.h
11235         (enum cpp_fc_reason): Remove.
11236         (struct cpp_file_change): Update.
11237         (cpp_get_line_maps): New.
11238         * cppmain.c (struct_printer): New member map.
11239         (cb_file_change): Update for new mappings.
11240         * fix-header.c (cb_file_change): Similarly.
11241
11242 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11243
11244         * Makefile.in (libgcc.mk): Define mkinstalldirs.
11245         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
11246
11247 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
11248
11249         * config/vax/vax.c: include expr.h.
11250
11251 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11252
11253         * Makefile.in ($(srcdir)/configure): Only rebuild in
11254         maintainer mode.
11255         ($(srcdir)/config.in): Only define in maintainer mode.
11256         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
11257
11258 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
11259
11260         * doc/install.texi (Install GCC: Binaries): Update Bull info.
11261
11262 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11263
11264         * gcc.c (set_collect_gcc_options): New function, split out from
11265         main.
11266         Ignore elided switches.
11267         (do_spec_1): Invoke before executing command.
11268         (set_input): Export.
11269         Move declaration ...
11270         * gcc.h (set_input): ... here.
11271         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
11272         file.
11273
11274 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
11275
11276         Kill -fhonor-std.
11277         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
11278         interaction.
11279         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
11280
11281 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
11282
11283         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
11284         for the unnamed instructions it expands to.
11285
11286 2001-08-02  Richard Henderson  <rth@redhat.com>
11287
11288         * regclass.c (call_really_used_regs): Conditionally define.
11289         (init_reg_sets_1): Don't use it if not defined.
11290         (fix_register): Similarly, don't set it.
11291
11292 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11293
11294         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
11295         Correct comment that had been missed in the previous change.
11296
11297 2001-08-01  Stan Shebs  <shebs@apple.com>
11298
11299         * config/darwin.c (machopic_stub_name): Try matching by name.
11300         (update_stubs): New function.
11301         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
11302         unconditionally.
11303
11304 2001-08-01  Richard Henderson  <rth@redhat.com>
11305
11306         * except.c (output_function_exception_table): Use assemble_align.
11307         * varasm.c (assemble_eh_label): Remove.
11308         (assemble_eh_align, assemble_eh_integer): Remove.
11309
11310 2001-08-01  Robert Lipe  <robertl@caldera.com>
11311
11312         * dwarfout.c: Remove reference to README.DWARF.
11313
11314 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
11315
11316         * regclass.c (call_really_used_regs): New array for registers which
11317         are actually used by a call.
11318         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
11319         new array.
11320         (fix_register): Set call_really_used too.
11321         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
11322         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
11323
11324 2001-08-01  Richard Henderson  <rth@redhat.com>
11325
11326         * read-rtl.c (read_name): Consider \r whitespace.
11327
11328 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
11329
11330         * config.gcc: Recognize powerpc-*-netbsd*.
11331
11332         * doc/install.texi (Host/target specific installation notes for
11333         GCC): Mention powerpc-*-netbsd*.
11334
11335         * config/rs6000/netbsd.h: New file.
11336         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
11337         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
11338         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
11339         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
11340         (TARGET_VERSION): Redefine.
11341
11342         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
11343         mcall-netbsd as a match for mcall-sysv.
11344         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
11345         (ncrti.S, ncrtn.S): New targets.
11346         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
11347
11348         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
11349         "netbsd' as a V4 ABI.
11350         (ASM_SPEC): Check for -mcall-netbsd.
11351         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
11352         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
11353         (LIB_SPEC, ENDFILE_SPEC): Ditto.
11354         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
11355         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
11356         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
11357         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
11358
11359         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
11360         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
11361
11362 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
11363
11364         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
11365         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
11366         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
11367         including "unwind-pe.h".
11368
11369 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
11370
11371         * rs6000.md (define_splits): Kill unused constraints.
11372
11373 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
11374                               Jan Hubicka  <jh@suse.cz>
11375
11376         * function.c (thread_prologue_and_epilogue_insns): Kill code
11377         dealing with non-existent CFG.
11378
11379 2001-08-01  Kazu Hirata  <kazu@hxi.com>
11380
11381         * alias.c: Fix comment formatting.
11382         * bitmap.c: Likewise.
11383         * builtins.c: Likewise.
11384         * calls.c: Likewise.
11385         * c-common.c: Likewise.
11386         * c-decl.c: Likewise.
11387         * c-dump.c: Likewise.
11388         * c-lex.c: Likewise.
11389         * collect2.c: Likewise.
11390         * combine.c: Likewise.
11391         * conflict.c: Likewise.
11392         * cppfiles.c: Likewise.
11393         * cppinit.c: Likewise.
11394         * cpplex.c: Likewise.
11395         * cpplib.c: Likewise.
11396         * cppmacro.c: Likewise.
11397         * cppspec.c: Likewise.
11398         * c-pragma.c: Likewise.
11399         * crtstuff.c: Likewise.
11400         * cse.c: Likewise.
11401         * cselib.c: Likewise.
11402         * c-semantics.c: Likewise.
11403         * c-typeck.c: Likewise.
11404
11405 2001-08-01  H.J. Lu <hjl@gnu.org>
11406
11407         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
11408
11409 2001-08-01  H.J. Lu <hjl@gnu.org>
11410
11411         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
11412
11413 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
11414
11415         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
11416         contextualizing Objective-C class name lookup by the lexer.
11417         (typespec_reserved_nonattr): Disable ObjC class name lookup after
11418         seeing a TYPESPEC.
11419         (protocoldef): Add support for forward @protocol declarations.
11420         (yylexname): Suppress ObjC class name lookup in certain contexts;
11421         re-enable after lookup is complete.
11422         (_yylex): Re-enable ObjC class name lookup when certain
11423         punctuation marks are seen.
11424
11425         * objc/objc-act.c (check_protocol_recursively): New function used
11426         for finding circular dependencies in protocols.
11427         (objc_declare_protocols): New function for handling forward
11428         @protocol declarations.
11429         (receiver_is_class_object): Detect the case when 'self' is used
11430         inside of a class method.
11431         (build_message_expr): Issue a warning if class method is desired
11432         but instance method is found instead.
11433         (conforms_to_protocol): Streamline.
11434         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
11435         protocol Foo, even if 'Bar foo' does not.
11436         (check_protocols): Streamline.
11437         (start_protocol): Add checks for circular and duplicate protocol
11438         definitions.
11439         (encode_aggregate_within): For typedefs of structs, encode the
11440         underlying struct.
11441         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
11442         (objc_declare_protocols): New prototype.
11443
11444 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11445
11446         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
11447         * cpplex.c (handle_newline): Update prototype.  Maintain logical
11448         line number.
11449         (skip_escaped_newlines, skip_block_comment, parse_string):
11450         Update accordingly.
11451         (_cpp_lex_token): Update, and store token position within the token.
11452         * cpplib.h (struct cpp_token): Add line and column entries.
11453         * cppmacro.c (replace_args): Position stringified tokens correctly.
11454
11455 2001-08-01  Andreas Jaeger  <aj@suse.de>
11456
11457         * basic-block.h: Add prototype for last_loop_beg_note.
11458
11459 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
11460
11461         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
11462         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
11463         comment.
11464         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
11465         while handling WITH_CLEANUP_EXPR node. Use second operand calling
11466         expand_decl_cleanup.
11467         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
11468         the first RTX.
11469         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
11470         operand while calling simple_cst_equal.
11471         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
11472         operand is the cleanup expression, the third is the RTL_EXPR.
11473         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
11474
11475 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
11476
11477         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
11478
11479 2001-07-31  matthew green  <mrg@eterna.com.au>
11480
11481         * config.gcc (i386-*-netbsdelf): New description.
11482         * config/i386/netbsd-elf.h: New file.
11483
11484 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
11485
11486         * loop.c (check_dbra_loop): Use single_set to compute
11487         jump_label.
11488
11489 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
11490
11491         PowerPC reorg and support for powerpc64-*-linux*.
11492
11493         Also fixes emitting of constants on 32 bit and 64 bit
11494         platforms.
11495
11496         * config.gcc: powerpc64-*-linux* is a new target.
11497         Things that needed aix.h now also include xcoff.h
11498
11499         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
11500         xcoff.h.
11501         Move AIX specific stuff into aix.h.
11502         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
11503         with more than just XCOFF now.
11504         (SET_ASM_OP): Remove, now defined where needed.
11505         (FUNCTION_PROLOGUE): New macro definition.
11506         (FUNCTION_EPILOGUE): New macro definition.
11507         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
11508
11509         * config/rs6000/xcoff.h: New file.
11510
11511         * config/rs6000/linux64.h: New file.
11512
11513         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
11514
11515 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
11516
11517         * rs6000.c (print_operand_address): Handle ELF syntax.
11518         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
11519         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
11520         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
11521
11522 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
11523
11524         * rs6000.c (rs6000_override_options): Only disable
11525         flag_function_sections for XCOFF.
11526         (exact_log2_cint_operand): New predicate.
11527         (reg_or_{add,sub}_cint64_operand): New predicates.
11528         (add_operand): Compare CONST_INT with fewer function calls.
11529         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
11530         (print_operand, case 'p'): Ensure positive operand.
11531         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
11532         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
11533         (PREDICATE_CODES): Add new predicates.
11534         * rs6000.md (addsi3): Split 32-bit constants more correctly.
11535         (divsi3, modsi3): Ensure positive power-of-2.
11536         (adddi3): Use new predicate.  Split 32-bit constants more
11537         correctly.  Re-arrange splitter to handle any constant.
11538         (subdi3): Use new predicate.
11539         (divdi3, moddi3): Ensure positive power-of-2.
11540         (movdi): Use rs6000_emit_set_const.
11541         (load_toc_v4_pic_di): Delete.
11542
11543 2001-07-31  Graham Stott <grahams@redhat.com>
11544
11545         * function.c (pad_below): Revert 2001-07-26 patch.
11546
11547 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
11548
11549         * reg-stack (convert_regs_1): Fix best edge condition.
11550
11551 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
11552
11553         * jump.c (duplicate_loop_exit_test): Better test for jumps
11554         entering the loop; create loop pre_header.
11555
11556 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
11557
11558         * doc/install.texi: Add s390 and s390x as new targets.
11559         * doc/invoke.texi: Add documentation of S/390 and zSeries
11560         target options.
11561         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
11562
11563 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
11564
11565         * config/m68k/m68k.md: Replace all general_operand with
11566         nonimmediate_operand for all destinations.
11567         * config/m68k/m68k.c (not_sp_operand): Likewise.
11568
11569 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
11570
11571         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
11572
11573 2001-07-30  Richard Henderson  <rth@redhat.com>
11574
11575         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
11576         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
11577
11578 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
11579
11580         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
11581         Add missing doc strings
11582         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
11583         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
11584
11585 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
11586
11587         * i386.c (ix86_output_main_function_alignment_hack): New function.
11588         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
11589
11590         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
11591         edges by EDGE_DFS_BACK flag.
11592         (dump_edge_info): Add dfs_back flag.
11593         * basic-block.h (EDGE_DFS_BACK): New constant.
11594         (mark_dfs_back_edges): Declare.
11595         * alias.c (loop_p): Remove.
11596         (mark_constant_function): Use mark_dfs_back_edges.
11597
11598         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
11599         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
11600         (compensate_edge): Break out from ...
11601         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
11602         (convert_regs_2): Set block_done once block is really done;
11603         Do updating of the predecessors counts.
11604
11605         * toplev.c (rest_of_compilation): Recompute block_for_insn
11606         before post-reload cfg_cleanup.
11607         * function.c (thread_prologue_epilogue_insns):
11608         Call set_block_for_new_insns when emitting prologue directly.
11609
11610 2001-07-30  Andreas Jaeger  <aj@suse.de>
11611
11612         * jump.c: Add prototype for mark_modified_reg.
11613
11614         * cse.c (set_live_p): Add unused attribute.
11615
11616         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
11617         overflow.
11618         (scan_for_source_files): Use long for count to avoid overflow.
11619         (output_data): Likewise.
11620         (output_data): Don't use string concatatenation to silence gcc
11621         -traditional.
11622
11623         * predict.c: Fix typos and grammar.
11624
11625         * gcse.c (insert_insn_end_bb): Remove unused variables.
11626
11627 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
11628
11629         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
11630         (attempt_auto_inc): LIkewise.
11631         (mark_used_reg): Likewise.
11632         (try_pre_increment_1): Likewise.
11633         * regclass.c (regclass): Likewise.
11634         * global.c (allocno_compare): Update comment; change scaling factor.
11635         * local-alloc.c (QTY_CMP_PRI): Likewise.
11636         * regs.h (REG_FREQ_FROM_BB): New.
11637         (REG_FREQ_MAX): Likewise.
11638
11639 2001-07-30  H.J. Lu <hjl@gnu.org>
11640
11641         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
11642         -D_GNU_SOURCE.
11643
11644 2001-07-30  H.J. Lu  (hjl@gnu.org)
11645
11646         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
11647         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
11648         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
11649
11650 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
11651
11652         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
11653         as -mthumb-interwork when -mcpu=arm7 is specified.
11654
11655 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
11656
11657         * predict.def (noreturn, loop branch, loop exit): Mark as first
11658         match heuristics.
11659
11660 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
11661
11662         * combine.c (try_combine): Avoid barrier after noop jumps.
11663
11664 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11665
11666         * cpphash.h (struct cpp_reader): Remove import_warning.
11667         * cpplib.c (skip_rest_of_line): Don't bother turning off
11668         macro expansion.
11669         (parse_include): Move include handling to...
11670         (do_include_common): ... here.  Move import warning from...
11671         (do_import): ... here.
11672         (do_pragma_poison): Don't do a callback for poison identifiers.
11673         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
11674         * cppmain.c (setup_callbacks): Similarly.
11675
11676 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
11677
11678         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
11679         handle multiple sets.
11680         * except.c (sjlj_mark_call_sites): .... here.
11681         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
11682
11683 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
11684
11685         Suggested by Richard Henderson and Richard Kenner:
11686         * combine.c (recog_for_combine): Use the fake recog
11687         only if instruction does not match.
11688         * rtl.h (NOOP_MOVE_INSN_CODE): New.
11689         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
11690
11691         * combine.c (try_combine): Discover noop jump as direct jump.
11692
11693 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
11694
11695         * df.c (df_rd_global_compute): Add successors to worklist, not
11696         current item.
11697         (df_ru_global_compute): Ditto.
11698
11699 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
11700
11701         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
11702         increment REG_N_SETS.
11703
11704 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
11705
11706         * sbitmap.h: New prototype for sbitmap_a_xor_b.
11707
11708         * sbitmap.c (sbitmap_a_xor_b): New function.
11709         ifdef the basic block stuff on IN_GCC.
11710
11711 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11712
11713         * cppexp.c (parse_defined): Always record the macro name.
11714         (lex): Don't worry about identifiers, or special-case
11715         CPP_NOT here.
11716         (_cpp_parse_expr): Figure out at the end of the routine
11717         whether we saw a valid !defined() expression.
11718         * cppfiles.c (stack_include_file): Update for mi_valid.
11719         (_cpp_pop_file_buffer): Similarly.
11720         * cpplex.c (_cpp_lex_token): Similarly.
11721         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
11722         mi_if_not_defined, mi_lexed): Remove.
11723         (mi_valid): New.
11724         * cpplib.c (do_if): Simplify.
11725         (do_endif, push_conditional, _cpp_handle_directive): Update
11726         for renaming of mi_state to mi_valid.
11727 doc:
11728         * cpp.texi: Add index entries for digraphs, and add comment
11729         that C++ refers to them as alternative tokens.
11730
11731 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
11732
11733         * basic-block.h (CLEANUP_PRE_LOOP): New.
11734         * except.c (finish_eh_generation): Update call of cleanup_cfg.
11735         * sibcall.c (optimize_sibling_calls): Likewise.
11736         * toplev.c (rest_of_compilation): Likewise.
11737         * flow.c (try_forward_edges): Take argument MODE;
11738         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
11739         (try_optimize_cfg): Update call of try_forward_edges.
11740
11741 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
11742                                 Jan Hubicka  <jh@suse.cz>
11743
11744         * (validate_replace_rtx_1): Fix simplification of MINUS.
11745
11746 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11747
11748         PR preprocessor/3669
11749         * cppinit.c (init_dependency_output): Turn off dump requests
11750         if sending dependencies to stdout.
11751
11752 2001-07-28  Richard Henderson  <rth@redhat.com>
11753
11754         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
11755         not optimizing.
11756
11757 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
11758
11759         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
11760
11761 2001-07-28  Kazu Hirata  <kazu@hxi.com>
11762
11763         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
11764         is VAR_DECL first to prevent an ICE.
11765
11766 2001-07-28  Richard Henderson  <rth@redhat.com>
11767
11768         * varasm.c (immed_real_const_1): Don't elide special cases for
11769         nested functions.
11770         (clear_const_double_mem): Clear const_tiny_rtx too.
11771
11772 2001-07-28  Richard Henderson  <rth@redhat.com>
11773
11774         * dwarf2out.c (dw_val_class_offset): New.
11775         (struct dw_ranges_struct, dw_ranges_ref): New.
11776         (ranges_table, ranges_table_allocated): New.
11777         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
11778         (add_AT_offset, add_ranges, output_ranges): New.
11779         (print_die, output_die): Handle dw_val_class_offset.
11780         (attr_checksum, size_of_die, value_format): Likewise.
11781         (gen_lexical_block_die): Handle non-contiguous blocks.
11782         (gen_block_die): Likewise.
11783         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
11784         if needed.  Dump the ranges table.
11785         * final.c (final_start_function): Remove unnecessary notes and
11786         rebuild the block tree before numbering the blocks.
11787         * function.c (reorder_blocks_0): Walk the existing block tree
11788         to unmark all blocks.
11789         (reorder_blocks_1): Create block fragments when duplicate block
11790         notes are seen.
11791         (reorder_fix_fragments): New.
11792         (reorder_blocks): Call it.
11793         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
11794
11795 2001-07-28  Richard Henderson  <rth@redhat.com>
11796
11797         * emit-rtl.c (adjust_address): Make a copy of the memory address.
11798
11799 2001-07-28  Richard Henderson  <rth@redhat.com>
11800
11801         * flow.c (add_to_mem_set_list): New function.
11802         (init_propagate_block_info): Use it.
11803         (mark_set_1): Likewise.
11804         (insn_dead_p): Canonicalize memory address for dead store
11805         comparison.  Allow wider mode stores to kill narrower mode stores.
11806         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
11807         (invalidate_mems_from_set): Don't handle MEMs.
11808
11809 2001-07-28  Kazu Hirata  <kazu@hxi.com>
11810
11811         * config/h8300/h8300.h: Fix formatting.
11812
11813 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
11814
11815         * basic-block.h (EDGE_FREQUENCY): New macro.
11816         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
11817         for new BB/edges.
11818         * flow.c (find_sub_basic_blocks): Likewise.
11819         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
11820         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
11821
11822         * predict.c (DEF_PREDICTOR): New argument FLAGS.
11823         (HITRATE): New macro.
11824         (PRED_FLAG_FIRST_MATCH): New constant.
11825         (predictor_info): New field flgags.
11826         (combine_predictions_for_insn): Use DS theory to combine
11827         probabilities; set the edge probabilities when finished.
11828         (estimate_probability): Avoid duplicated matches
11829         of LOOP_BRANCH heuristics for nested loops; update comment.
11830         * predict.def: Add flags for each prediction, set probabilities
11831         according to B&L paper.
11832         * predict.h (DEF_PREDICTOR): New argument FLAGS.
11833
11834         * profile.c (compute_branch_probabilities):  Cleanup way the edge
11835         probabilities are computed and REG_BR_PROB notes are dropped; if
11836         values does not match, emit error.
11837         (init_branch_prob): Do error instead of warning when profile driven
11838         feedback is missing or corrupt.
11839
11840 2001-07-27  DJ Delorie  <dj@redhat.com>
11841
11842         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
11843         against a constant, try to adjust the compare to have the desired
11844         constant in it so that min/max optimizations happen more often.
11845
11846 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
11847
11848         * flow.c (last_loop_beg_note): New function.
11849         (redirect_edge_and_branch): Use it.
11850         (split_edge): Likewise.
11851
11852         * alias.c (loop_p): Avoid uninitialized memory access.
11853
11854         * flow.c (try_forward_edges): Avoid accessing freed memory.
11855
11856         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
11857         variable access.
11858
11859 2001-07-26  Andrew Haley  <aph@redhat.com>
11860         Joern Rennecke <amylaar@redhat.com>
11861
11862         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
11863         (SUBTARGET_CPP_ENDIAN_SPEC): New.
11864         (SUBTARGET_CPP_SPEC): New.
11865         (CPP_SPEC): Remove.
11866         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
11867         (SUBTARGET_CPP_PTR_SPEC): New.
11868         (CPP_DEFAULT_CPU_SPEC): New.
11869         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
11870         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
11871         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
11872         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
11873         (SUBTARGET_CPP_SPEC): Define as an empty string.
11874
11875 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11876
11877         * doc/install.texi (Configuration): Properly link the host
11878         specific instructions also when generating HTML.
11879
11880 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
11881
11882         * flow.c (redirect_edge_and_branch_force): Test
11883         target->global_live_at_start.
11884
11885 2001-07-26  Richard Henderson  <rth@redhat.com>
11886
11887         * simplify-rtx.c (avoid_constant_pool_reference): Export.
11888         * rtl.h (avoid_constant_pool_reference): Declare it.
11889         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
11890         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
11891
11892 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
11893
11894         * rtl.h (cleanup_barriers): Declare.
11895         * jump.c (cleanup_barriers): New function.
11896         * toplev.c (rest_of_compilation): Call cleanup_barriers
11897         before loop optimizer and after bb_reorder.
11898
11899         * flow.c (back_edge_of_syntactic_loop_p): New.
11900         (split_edge): Use it.
11901
11902 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11903
11904         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
11905
11906 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
11907
11908         * cse.c (cse_process_notes): Replace any registers if the address
11909         remains valid.
11910
11911 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
11912
11913         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
11914         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
11915         (propagate_block): Update prototype.
11916         * flow.c (update_life_info): Simplify the CFG and
11917         recalculate the global regs which are alive when
11918         removing dead code during a global update.
11919         (propagate_block): Return non-zero if an INSN is
11920         deleted.
11921
11922 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11923
11924         * Makefile.in (LIBICONV): Define.
11925
11926 2001-07-26  Catherine Moore  <clm@redhat.com>
11927
11928         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
11929         of conditional to avoid tree checking errors.
11930
11931 2001-07-26  Kazu Hirata  <kazu@hxi.com>
11932
11933         * regmove.c (regmove_optimize): Don't replace a reg with
11934         another reg of a different mode.
11935
11936 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
11937
11938         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
11939         limit length of dependency flush list.
11940         * params.h (MAX_PENDING_LIST_LENGTH): Define.
11941         * sched-int.h  (struct deps): Add pending_flush_length field.
11942         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
11943         has 1 element in it.
11944         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
11945         (sched_analyze): After a jump, if the pending memory flush list is too
11946         large, flush the pending lists.
11947         (init_deps): Initialize pending_flush_length to 0.
11948         * doc/invoke.texi (max_pending_list_length): Document parameter.
11949
11950 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
11951
11952         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
11953         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
11954         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
11955
11956 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11957
11958         * cpphash.h (struct_lexer_state): Delete was_skipping.
11959         Move skipping here from struct cpp_reader.
11960         * cpplex.c (parse_identifier): Update.
11961         (_cpp_lex_token): Don't skip tokens in a directive.
11962         * cpplib.c (struct if_stack): Update.
11963         (start_directive, end_directive): Don't change skipping state.
11964         (_cpp_handle_directive): Update.
11965         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
11966         (do_else, do_endif): Update; only check for excess tokens if not
11967         in a skipped conditional block.
11968         (push_conditional): Update for new struct if_stack.
11969
11970 2001-07-26  Graham Stott  <grahams@redhat.com>
11971
11972         * function.c (locate_and_pad_parm): Also pad initial offset
11973         so that the total argument size also includes the padding.
11974
11975 2001-07-26  Graham Stott <grahams@redhat.com>
11976
11977         * gensupport.c (alter_output_for_insn): Correct enable checking failure
11978         change XSTR to XTMPL.
11979
11980         (process_one_cond_exec): Likewise
11981
11982 2001-07-25  Richard Henderson  <rth@redhat.com>
11983
11984         * varasm.c (assemble_variable): Create DECL_RTL before setting
11985         TREE_ASM_WRITTEN.
11986
11987 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
11988
11989         * predict.c (estimate_probability): Avoid duplicated predictions.
11990
11991         * loop.c (find_and_verify_loops): Grok multiple barriers.
11992
11993 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11994
11995         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
11996
11997         * dbxout.c: Consistently use putc instead of fputc.
11998         (print_wide_int): New function; call instead of direct fprintf.
11999         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
12000         (dbxout_type_fields, dbxout_type_method_1): Likewise.
12001         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
12002         (print_int_cst_octal): Likewise.
12003         (print_octal): Show we wrote characters.
12004         (dbxout_type): Set have_used_extensions in more places.
12005
12006 2001-07-25  Catherine Moore  <clm@redhat.com>
12007
12008         * config/v850/v850.c (v850_va_arg):  Use addr
12009         instead of valist to build incr.
12010
12011 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
12012
12013         * flow.c (delete_dead_jumptables): New function.
12014         (life_analyzis): Call it.
12015         * bb-reorder.c (skip_insns_after_block): Handle contradictory
12016         sequences.
12017
12018 2001-07-25  Richard Henderson  <rth@redhat.com>
12019
12020         * except.c (reachable_handlers): Handle a region being removed
12021         out from under a RESX.
12022
12023 2001-07-25  Richard Henderson  <rth@redhat.com>
12024
12025         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
12026         swap GE/GT if it is an fp comparison.
12027
12028 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
12029
12030         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
12031         operands.
12032
12033 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
12034
12035         * ssa.c (rename_insn_1): Do not wrap an assignment to a
12036         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
12037         glitch.
12038
12039         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
12040         throw an exception.
12041         (visit_expression): When attempting to simplify an expression,
12042         retrieve any modes for arguments before they are simplified
12043         to constants.
12044
12045 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
12046             Janis Johnson  <janis@us.ibm.com>
12047
12048         * stmt.c (expand_goto): A nonlocal goto can be a call too.
12049         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
12050         pointer parameters to match documented usage of nonlocal_goto.
12051         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
12052         parameters to their correct order.
12053         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
12054         parameters to their correct order.
12055
12056 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
12057
12058         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
12059
12060 2001-07-25  Jan Hubicka  <jh@suse.cz>
12061             Richard Henderson  <rth@redhat.com>
12062
12063         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
12064         the sequence.
12065         (make_edges): New argument update_p; populate the edge cache if set.
12066         (find_basic_blocks): Update make_edges invocation.
12067
12068 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12069
12070         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
12071
12072 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12073
12074         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
12075         -Acpu and -Amachine.h.
12076         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
12077         Corrected header to say ELF not a.out.
12078         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
12079         when given -msoft-float.
12080
12081 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12082
12083         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
12084         extra multilib parts like arm-elf.
12085         (i960-*-coff*, i960-*-rtems): Should not use collect2.
12086         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
12087         crtfini.o as extra multilib parts.
12088
12089 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12090
12091         * configure.in: Add rtems as a supported thread model.
12092         * gthr-rtems.h: Add missing entry point __gthread_active_p.
12093         * configure: Rebuilt.
12094
12095 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
12096
12097         * stor-layout.c (get_mode_alignment): make it work when
12098         BITS_PER_UNIT is not a power of two.
12099         * builtins.c (get_pointer_alignment): Likewise.
12100
12101 2001-07-24  Richard Henderson  <rth@redhat.com>
12102
12103         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
12104         the retrieved constant into the expected mode.
12105
12106 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
12107
12108         * flow.c (try_simplify_condjump): Avoid duplicated edges.
12109         (verify_flow_info): Check for duplicated edges; clarify
12110         error reporting.
12111
12112         * flow.c (block_label): Update basic_block_for_insn.
12113         (commit_edge_insertions): Call compute_bb_for_insn.
12114
12115         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
12116         returns too.
12117
12118         * flow.c (redirect_edge_and_branch,
12119         try_optimize_cfg): Use redirect_edge_succ_nodup
12120         (redirect_edge_succ_nodup): New.
12121         * basic_block.h (redirect_edge_succ_nodup): Declare.
12122
12123         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
12124         after gcse.
12125
12126 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
12127
12128         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
12129         (try_crossjump_to_edge): Update commetns.
12130         (try_crossjump_bb): Likewise.
12131
12132 2001-07-24  Richard Henderson  <rth@redhat.com>
12133
12134         * combine.c (distribute_notes): Move set of need_refresh
12135         for noop_move_p down to catch all cases.
12136
12137 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
12138
12139         * recog.c (split_all_insns_noflow): New.
12140         * rtl.h (split_all_insns_noflow): Declare.
12141         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
12142         * m68hc11.c (m68hc11_reorg): Likewise.
12143         * sh.c (machine_dependent_reorg): Likewise.
12144         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
12145         call.
12146
12147 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
12148
12149         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
12150         (ashlsi3_n splitter): Likewise.
12151         (lshrsi3_n splitter): Likewise.
12152
12153         (GOTaddr2picreg): Make const SImode.
12154         (sym_label2reg): Likewise.
12155         (symGOT2reg): Likewise.
12156         (symGOTOFF2reg) Likewise.
12157
12158         (casesi_worker_0): Make unspec SImode.
12159
12160 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
12161
12162         * config/sh/sh.c (barrier_align): Check that an operand really is
12163         an insn before extracting its INSN_CODE.
12164
12165 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
12166
12167         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
12168         dangling else.
12169
12170         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
12171         for SImode to prevent overflow.
12172
12173 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12174
12175         * config/mips/irix6-libc-compat.c: New file.
12176         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
12177         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
12178         passing workaround.
12179
12180 2001-07-24  lars brinkhoff  <lars@nocrew.org>
12181
12182         * rtl.texi (REG_POINTER): Document.
12183         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
12184         QFmode, HFmode, TQFmode, QCmode, and HCmode.
12185
12186 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
12187
12188         * flow.c (delete_noop_moves): Do not confuse libcall regions.
12189
12190 2001-07-23  Richard Henderson  <rth@redhat.com>
12191
12192         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
12193
12194 2001-07-23  Kazu Hirata  <kazu@hxi.com>
12195
12196         * config/h8300/h8300-protos.h: Add a prototype for
12197         general_operand_dst_push.
12198         * config/h8300/h8300.c (general_operand_dst_push): New.
12199         * config/h8300/h8300.h (OK_FOR_T): New.
12200         (EXTRA_CONSTRAINT): Use it.
12201         * config/h8300/h8300.md (movqi_push): Remove and integrate into
12202         the existing movqi pattern.
12203         (movhi_push): Likewise.
12204
12205         * reload.c: Fix comment typos.
12206
12207 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
12208
12209         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
12210
12211 2001-07-23  H.J. Lu  (hjl@gnu.org)
12212
12213         * doc/extend.texi: Update __builtin_return_address and
12214         __builtin_frame_address.
12215
12216 2001-07-23  Richard Henderson  <rth@redhat.com>
12217
12218         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
12219         before CSE.
12220         * config/i386/i386.md: New setcc+movzbl peephole2.
12221
12222 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12223
12224         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
12225         * objc/objc-act.c: Include debug.h.
12226         (synth_module_prologue): Save and restore debug hooks too.
12227
12228 2001-07-23  lars brinkhoff  <lars@nocrew.org>
12229
12230         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
12231         and C4X_FLOAT_FORMAT.
12232         (BOOL_TYPE_SIZE): Document.
12233
12234 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
12235
12236         * unroll.c (loop_iterations): Fix miscalculation of initial
12237         giv offset.
12238
12239 2001-07-13  Andrew Haley  <aph@redhat.com>
12240
12241         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
12242         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
12243         * config/sh/sh.c (sh_can_redirect_branch): New function.
12244         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
12245         * reorg.c (steal_delay_list_from_target): Use
12246         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
12247
12248 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
12249
12250         * flow.c (try_simplify_condjump): Unlink insn chain on
12251         fallthru edge; use can_fallthru.
12252
12253 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
12254
12255         * basic-block.h (find_sub_basic_block): Declare.
12256         * flow.c (make_edges): New arguments MIN and MAX;
12257         (find_sub_basic_blocks): Revamp to use make_edges
12258         and purge_dead_edges.
12259         (find_basic_blocks): Update call of find_sub_basic_block.
12260
12261         * recog.c (split_all_insns): Always expect CFG to be consistent;
12262         call find_sub_basic_blocks in case something has changed.
12263         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
12264         has been built.
12265
12266         * basic-block.h (delete_noop_moves): Declare.
12267         * combine.c (combine_instructions): Call it.
12268         (recog_for_combine): Tolerate noop moves
12269         (distribute_notes): Force refresh when register dies at noop move.
12270         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
12271         too.
12272         (life_analysis): Update delete_noop_moves call.
12273         (set_noop_p): Move too ...
12274         * rtlanal.c (noop_move_p): ... here.
12275         * rtl.h (noop_move_p): Declare.
12276
12277         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
12278         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
12279         after combine.
12280         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
12281         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
12282
12283 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
12284
12285         * reload.c (push_reload): Fix typo in comment.
12286         (find_reloads_address): Ditto.
12287         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
12288
12289 2001-07-22  Richard Henderson  <rth@redhat.com>
12290
12291         * flow.c: Grammar check and clarify a lot of comments.
12292         (try_simplify_condjump): Rename variables to be clearer.
12293         (try_forward_edges): Skip complex and fallthru edges.
12294         Rearrange tests to avoid duplicate checks.
12295         (flow_find_cross_jump): Likewise.
12296         (outgoing_edges_match): Allow match if neither branch has
12297         probability data.  Loosen probability match to 5%.
12298         (try_crossjump_to_edge): Hoist repeated indirection into
12299         local variables.
12300         (try_crossjump_bb): Don't check complex edges.  Eliminate
12301         redundant crossjump tests.
12302         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
12303         checks before more expensive checks.
12304
12305 2001-07-22  Richard Henderson  <rth@redhat.com>
12306
12307         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
12308         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
12309         arguments.
12310
12311 2001-07-22  Richard Henderson  <rth@redhat.com>
12312
12313         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
12314         (const_sint32_operand): Likewise.
12315         * m68k.md (anon mulsi pattern): Use const_int_operand not
12316         const_sint32_operand.
12317         (umulsi3_highpart): Zero extend a constant input.
12318         (smulsi3_highpart): Don't bother checking SImode constant.
12319         (const_umulsi3_highpart): Give op3 DImode.
12320         (const_smulsi3_highpart): Likewise.
12321
12322 2001-07-22  Richard Henderson  <rth@redhat.com>
12323
12324         * flow.c (split_block): Make sure bb_note is included in the
12325         new block when splitting before a label.
12326
12327 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
12328
12329         * basic-block.h (redirect_edge_and_branch_force,
12330         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
12331         * flow.c (redirect_edge_and_branch_force,
12332         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
12333         (redirect_edge_and_branch_force): Fix copying of lifeness information.
12334         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
12335         * ifcvt.c (dead_or_predictable): Take BB as an new destination
12336         instead of label; update CFG after transformation.
12337         (find_if_case_1): Update call, use redirect_edge_and_branch_force
12338         for finishing the transformation; handle even case where ELSE
12339         does not follow THEN.
12340         (find_if_case_2): Update call of dead_or_predictable; simplify
12341         CFG update.
12342
12343         * emit-rtl.c (split_branch_probability): New global variable.
12344         (try_split): Take care to set split_branch_probability and
12345         create REG_BR_PROB note for new jump insns.
12346         * md.texi (define_split): Document new feature.
12347
12348         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
12349
12350 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12351
12352         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
12353         (asm_out_file): Remove redundant declaration.
12354         (assemble_asm): Remove old #if 0 block.
12355         (assemble_variable): Remove end of function; debug output is
12356         now handled with global_decl.  Remove old #if 0 block.  Update.
12357         Remove saved_in_section and associated no-op code.
12358         * Makefile.in (varasm.o): Correct dependencies.
12359
12360 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
12361
12362         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
12363         the definition in defaults.h.
12364
12365 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
12366
12367         * jump.c: Update comments.
12368         (delete_barrier_successors, delete_unreferenced_labels,
12369         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
12370         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
12371         jump_optimize, jump_optimize_minimal): Kill.
12372         (rebuild_jump_labels): Move code from jump_optimize_1.
12373         (purge_line_number_notes): Likewise.
12374         (copy_loop_headers): Likewise.
12375         * reg-stack.c: Update comment.
12376         * stmt.c: Likewise.
12377         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
12378         JUMP_AFTER_REGSCAN): Kill.
12379         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
12380         purge_line_number_notes and copy_loop_headers.
12381
12382 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
12383            Richard Henderson  <rth@redhat.com>
12384
12385         * dbxout.c (dbxout_global_decl): New.
12386         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
12387         * sdbout.c (sdbout_finish): New.
12388         (sdbout_debug_hooks): Use it, add comments.
12389         (sdbout_global_decl): Defer initialised public vars to
12390         sdbout_finish.
12391         * varasm.c (assemble_variable): Don't output debug information
12392         for file-scope variables.
12393
12394 2001-07-22  Richard Henderson  <rth@redhat.com>
12395
12396         * config/alpha/alpha.c (get_trap_mode_suffix): New.
12397         (get_round_mode_suffix): New.
12398         (print_operand): Use them for [/].  Remove support for [&'`()+].
12399         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
12400         * config/alpha/alpha.md (attr round_suffix): New.
12401         (attr trap_suffix): New.
12402         (all insns): Set them appropriately.  Use %/ instead of the
12403         myriad punctuators.
12404
12405 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12406
12407         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
12408
12409 2001-07-22  Richard Henderson  <rth@redhat.com>
12410
12411         * regrename.c (regrename_optimize): Compute nregs for each
12412         potential target register.
12413
12414 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
12415            Richard Henderson  <rth@redhat.com>
12416
12417         * dbxout.c (dbxout_global_decl): New.
12418         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
12419         * sdbout.c (sdbout_finish): New.
12420         (sdbout_debug_hooks): Use it, add comments.
12421         (sdbout_global_decl): Defer initialised public vars to
12422         sdbout_finish.
12423         * varasm.c (assemble_variable): Don't output debug information
12424         for file-scope variables.
12425
12426 2001-07-21  H.J. Lu  (hjl@gnu.org)
12427
12428         * config/mips/mips.c (mips_cpu): Moved into ...
12429         (override_options): Here.
12430
12431         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
12432         mips_tune.
12433         (mips_cpu): Removed.
12434
12435 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12436
12437         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
12438         ("iorqi3"): Likewise.
12439         ("xorqi3"): Likewise.
12440         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
12441         ("*subhi3_sp): Likewise.
12442         ("*subhi3"): Likewise.
12443         ("extendhisi2"): Accept D, X and Y as source operand to avoid
12444         reload problems.
12445
12446 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
12447
12448         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
12449         * config/freebsd.h: Likewise.
12450         * config/linux.h: Likewise.
12451         * config/openbsd.h: Likewise.
12452         * config/alpha/linux-elf.h: Likewise.
12453         * config/arm/linux-elf.h: Likewise.
12454         * config/d30v/d30v.h: Likewise.
12455         * config/fr30/fr30.h: Likewise.
12456         * config/ia64/aix.h: Likewise.
12457         * config/ia64/ia64.h: Likewise.
12458         * config/mips/linux.h: Likewise.
12459         * config/pj/pj.h: Likewise.
12460         * config/rs6000/linux.h: Likewise.
12461         * config/sparc/linux.h: Likewise.
12462         * config/sparc/linux64.h: Likewise.
12463
12464 2001-07-20  Bruce Korb  <bkorb@gnu.org>
12465
12466         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
12467         because getc() and char* may disagree on signedness.
12468
12469 2001-07-20  Richard Henderson  <rth@redhat.com>
12470
12471         * doc/rtl.texi (REG_DEAD): Update for current semantics.
12472
12473         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
12474         insns to delete in the presence of cc0 in a jump insn.
12475
12476 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
12477                                 Jan Hubicka  <jh@suse.cz>
12478
12479         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
12480         of doing the change by hand.
12481
12482 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
12483
12484         * rtlanal.c (set_noop_p): Return true for noop jumps.
12485
12486         * expr.c (emit_single_push_insn): Add call to push expander.
12487         * expr.h (optab_index): Add OTI_push
12488         (push_optab): New constant.
12489         * genopinit.c (optabs): Add push_optab.
12490         * optabs.c (init_optab): Init push optab.
12491         * md.texi (push??1): Document
12492
12493 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12494
12495         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
12496         expand to emit the pattern; put a REG_INC note for push/pop
12497         instructions.
12498         ("movdf", "movdf_internal"): Likewise.
12499         ("movsi", "movsi_internal"): Likewise.
12500         ("movsf", "movsf_internal"): Likewise.
12501         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
12502
12503 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12504
12505         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
12506         gen_highpart.
12507
12508 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
12509
12510         * params.def: Change default max inline insns to 100.
12511
12512 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
12513
12514         * combine.c (combine_simplify_rtx): Generate a new shift operation
12515         when simplifying the first operand of a (neg (ashift)) expression.
12516
12517 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
12518
12519         * regclass.c (N_REG_INTS): Use only 32 bits per element.
12520
12521 2001-07-20  Kelley Cook  <kelley.cook@home.com>
12522
12523         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
12524         information.   Move rest into ...
12525         (*-*-solaris): ... here.  Eliminate redundant information and
12526         reword necessary packages section.  Delete 4.x assembler bug info.
12527         (sparc-sun-*): Merge into ...
12528         (sparc-sun-sunos*): here.
12529
12530 2001-07-20  Catherine Moore  <clm@redhat.com>
12531
12532         * config/v850/v850.md (casesi): Generate LABEL_REF
12533         with Pmode.
12534
12535 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
12536
12537         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
12538         * i386.c (ix86_zero_extend_to_Pmode): Make global.
12539         * i386.md (strclrsi expander): Use it.
12540
12541 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
12542
12543         * integrate.c (copy_insn_list): handle
12544         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
12545         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
12546         identically as to CODE_LABEL.
12547
12548         * fold-const (fold): Convert A/B/C to A/(B*C) and
12549         A/(B/C) to (A/B)*C
12550
12551         * except.c (connect_post_landing_pads): Delete the RESX insns.
12552
12553 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
12554
12555         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
12556
12557         * config/mips/mips.md (nmadd/nmsub): Use macro.
12558
12559 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
12560
12561         * cppinit.c (remove_dup_dir): Make static.
12562         (remove_dup_dirs): Make static. Only warn about preempting a
12563         system directory with a non-system directory.
12564
12565 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
12566
12567         * ifcvt.c (noce_try_store_flag_constants): Correct order
12568         of parameters to trunc_int_for_mode.
12569
12570 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
12571
12572         * reorg.c (fill_simple_delay_slots): If an instruction might throw
12573         an exception that will be caught within this function, do not fill
12574         its delay slot with any subsequent instruction.
12575
12576 2001-07-19  Steve Ellcey <sje@cup.hp.com>
12577
12578         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
12579         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
12580         pointer extension instruction.
12581         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
12582         * simplify-rtx.c (simplify_unary_operation) Likewise.
12583         * explow.c (convert_memory_address) Check value of
12584         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
12585         less than zero.
12586         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
12587         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
12588         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
12589         Add Multilib Support.
12590         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
12591         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
12592         Add Multilib Support.
12593         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
12594         support.
12595         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
12596         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
12597         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
12598
12599 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
12600
12601         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
12602         old and new operands in `<', `3' and `b'.
12603
12604 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12605
12606         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
12607         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
12608         (toplev.o): Don't depend on xcoffout.h.
12609         * c-decl.c: Include debug.h
12610         (duplicate_decls): Use debug hook.
12611         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
12612         (dbx_debug_hooks, xcoff_debug_hooks): Update.
12613         (dbxout_types): Remove.
12614         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
12615         * debug.c (do_nothing_debug_hooks): Update.
12616         (debug_true_tree, debug_nothing_rtx): New.
12617         * debug.h (struct rtx_def): New.
12618         (struct gcc_debug_hooks): New hooks ignore_block,
12619         outlining_inline_function and label.
12620         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
12621         dwarf2out_frame_finish): New.
12622         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
12623         Make static, update prototype.
12624         (dwarf2_debug_hooks): Update.
12625         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
12626         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
12627         * dwarfout.c (dwarf_debug_hooks): Update.
12628         * emit-rtl.c: Include debug.h.
12629         (remove_unnecessary_notes): Use debug hook.
12630         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
12631         (final_scan_insn): Use debug hook.
12632         * integrate.c (output_inline_function): Use debug hook.
12633         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
12634         (sdb_debug_hooks): Update.
12635         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
12636         * toplev.c: Don't include xcoffout.h.
12637         (note_outlining_of_inline_function, debug_ignore_block): Remove.
12638         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
12639         Remove.
12640         * tree.h (dwarf2out_do_frame): Remove.
12641
12642 2001-07-19  Catherine Moore  <clm@cygnus.com>
12643
12644         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
12645
12646 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
12647
12648         * reload1.c (eliminate_regs_in_insn): When updating a set
12649         to the frame pointer to the hardware frame pointer, perform
12650         the update always not just when REPLACE is set.
12651
12652         * reload1.c (choose_reload_regs): Don't inherit a reload
12653         that crosses multiple registers if registers past the first
12654         don't fit in the desired class.
12655
12656         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
12657         when negating constants.
12658
12659 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
12660
12661         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
12662         * doc/tree.texi: Ditto.
12663
12664 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
12665             Jakub Jelinek  <jakub@redhat.com>
12666
12667         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
12668         (extract_cie_info): Handle "eh" augmentation properly,
12669         remember eh_ptr.
12670         (struct frame_state, __frame_state_for): New.
12671
12672 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12673
12674         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
12675         HANDLE_SYSV_PRAGMA): Define.
12676         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
12677         previous args.
12678         (copy_object): Caller changed.
12679
12680 2001-07-19  Andreas Schwab  <schwab@suse.de>
12681
12682         * configure.in (assembler dwarf2 debug_line support): Define nop
12683         insn for m68k.
12684         * configure: Regenerated.
12685
12686 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12687
12688         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
12689         dwarfout.h.
12690         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
12691         to conditionally compiled block.
12692         (dbx_debug_hooks, xcoff_debug_hooks): Update.
12693         * dbxout.h (dbxout_function): Remove.
12694         * debug.c (do_nothing_debug_hooks): Update.
12695         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
12696         global_decl, deferred_inline_function.
12697         * dwarf2out.c (dwarf2_debug_hooks): Update.
12698         (dwarf2out_global_decl): New.
12699         * dwarfout.c: Don't include dwarfout.h.
12700         (dwarfout_global_decl, dwarfout_function_decl,
12701         dwarfout_deferred_inline_function): New.
12702         (dwarf_debug_hooks): Update.
12703         * dwarfout.h: Remove.
12704         * final.c: Don't include dwarfout.h.
12705         * sdbout.c (sdbout_global_decl): New.
12706         (sdbout_debug_hooks): Update.
12707         * toplev.c: Don't include dwarfout.h.
12708         (check_global_declarations, rest_of_compilation): Use new debug hooks.
12709         (note_deferral_of_defined_inline_function): Remove.
12710         * toplev.h (note_deferral_of_defined_inline_function): Remove.
12711         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
12712         * ch/lex.c: Don't include dwarfout.h.
12713         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
12714         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
12715         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
12716         * cp/optimize.c: Include debug.h.
12717         (maybe_clone_body): Use debug hook.
12718         * cp/semantics.c: Include debug.h.
12719         (expand_body): Use debug hook.
12720         * po/POTFILES.in: Remove dwarfout.h.
12721
12722 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12723
12724         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
12725         * c-parse.in (yyerror, _yylex): Similarly.
12726         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
12727         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
12728         Update comments.
12729         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
12730         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
12731
12732 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
12733
12734         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
12735         in-class declaration at -g1.  Fixes c++/2814.
12736
12737 2001-07-18  Richard Henderson  <rth@redhat.com>
12738
12739         * doc/md.texi (reload_in/out): Document restrictions in predicates
12740         and constraints for these patterns.  Document empty string matching
12741         ALL_REGS.
12742
12743 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12744
12745         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
12746
12747 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
12748
12749         * cse.c: Undo my previous patch.
12750
12751 2001-07-18  Tom Tromey  <tromey@redhat.com>
12752
12753         For PR java/2812:
12754         * configure: Rebuilt.
12755         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
12756         instead.
12757         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
12758
12759 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
12760                                 Jan Hubicka  <jh@suse.cz>
12761
12762         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
12763         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
12764         * jump.c (mark_jump_label): Do not forward branches.
12765
12766 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
12767
12768         * cse.c (delete_trivially_dead_insns): Delete the libcall block
12769         when return value is unused.
12770
12771 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
12772
12773         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
12774
12775 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
12776
12777         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
12778         on error.  We can't blindly return the result of
12779         pthread_mutex_trylock because it returns a positive number on
12780         error, while we must return -1 on error.
12781         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
12782         fixes.
12783         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
12784
12785 2001-07-18  Andreas Jaeger  <aj@suse.de>
12786
12787         * integrate.c (output_inline_function): Correct type of debug_hooks.
12788
12789 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
12790
12791         * combine.c (combine_simplify_rtx): DIV can be treated
12792         associatively for floats if unsafe math optimisations are enabled.
12793
12794 2001-07-17  Richard Henderson  <rth@redhat.com>
12795
12796         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
12797
12798 2001-07-17  Richard Henderson  <rth@redhat.com>
12799
12800         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
12801         don't force the function address into a register.
12802         (expand_call, emit_library_call_value_1): Update callers.
12803         * builtins.c (expand_builtin_apply): Likewise.
12804         * expr.h (prepare_call_address): Update decl.
12805
12806 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
12807
12808         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
12809         config directory.
12810         * config/i386/chorus.h: Move up.
12811         * config/sparc/chorus.h: Likewise.
12812         * config/rs6000/chorus.h: Likewise.
12813         * config/chorus.h: Moved here.
12814
12815 2001-07-17  Andreas Schwab  <schwab@suse.de>
12816
12817         * configure.in  (assembler eh_frame optimization): Handle big
12818         endian.
12819         * configure: Regenerated.
12820
12821 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
12822
12823         * expr.c (epxand_expr): Convert divisions into multiplications by
12824         reciprocals if -ffast-math.
12825
12826 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
12827
12828         * dbxout.c (dbxout_really_begin_function): Rename to
12829         dbxout_begin_function.
12830         (dbx_debug_hooks, xcoff_debug_hooks): Update.
12831         (dbxout_begin_function): Remove.
12832         (dbxout_function): Update.
12833         (dbxout_source_line): Update prototype.
12834         * dbxout.h (dbxout_begin_function): Remove.
12835         * debug.c (do_nothing_debug_hooks): Update.
12836         (debug_nothing_tree): Update.
12837         (debug_nothing_charstar_rtx): Remove.
12838         * debug.h (union tree_node): Declare.
12839         (struct rtx_def): Remove.
12840         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
12841         begin_function.  Change source_line prototype.
12842         (debug_nothing_tree): New.
12843         (debug_nothing_charstar_rtx): Delete.
12844         (dwarf2out_begin_prologue): Moved from ...
12845         * tree.h: ... here.
12846         * dwarf2out.c (dwarf2_debug_hooks): Update.
12847         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
12848         debug info, call dwarf2out_source_line.
12849         (dwarf2out_souce_line): Update prototype.
12850         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
12851         Change prototype, make static.
12852         (dwarfout_source_line): Update prototype.
12853         (dwarf_debug_hooks): Update.
12854         * dwarfout.h (dwarfout_begin_function): Remove.
12855         * final.c (final_start_function, final_scan_insn): Use appropriate
12856         debug hooks, update to use notice_source_line.
12857         (output_source_line): Rename notice_source_line.  Don't call the
12858         source_line debug hook.
12859         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
12860         make static, update prototype.
12861         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
12862         prototype.
12863         (sdbout_end_prologue): New.
12864         (sdbout_source_line): Update prototype.
12865         (sdbout_debug_hooks): Update.
12866         (sdbout_symbol): Remove unused var.
12867         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
12868         Delete.
12869         * varasm.c: Include debug.h.
12870         (assemble_start_function): Use begin_function debug_hook.
12871         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
12872         update with prototype.
12873         (xcoffout_source_line): Update prototype.
12874         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
12875         update prototype.
12876         (xcoffout_source_line): Update prototype.
12877
12878 2001-07-17  Richard Henderson  <rth@redhat.com>
12879
12880         * c-typeck.c (build_binary_op): Do not shorten unsigned
12881         right shift after sign extension.
12882
12883 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
12884
12885         * combine.c (combine_simplify_rtx): Attempt to simplify
12886         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
12887
12888         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
12889         (simplify_binary_operation, simplify_unary_operation,
12890          simplify_relational_operation): Use it.
12891
12892         * combine.c (combine_simplify_rtx): Don't do associative law
12893         on divisions; allow associative law on floats.
12894
12895 2001-07-17  H.J. Lu <hjl@gnu.org>
12896             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12897
12898         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
12899         ASM_OUTPUT_WEAK_ALIAS are defined.
12900         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
12901         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
12902         Moved ...
12903         * config/mips/iris5.h: ... here.
12904         (HANDLE_SYSV_PRAGMA): Defined as 1.
12905         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
12906         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
12907         symbol.
12908
12909 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
12910
12911         * c-parse.in (all_prefix_attributes): New variable.
12912         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
12913         (maybe_resetattrs): New production.
12914         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
12915         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
12916         notype_initdcl, nested_function, notype_nested_function,
12917         component_decl, components, components_notype,
12918         component_declarator, component_notype_declarator,
12919         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
12920         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
12921         after a comma being applied to more than one declarator.
12922         * doc/extend.texi (Attribute Syntax): Update.  Remove
12923         documentation of bugs that are no longer present.
12924
12925 2001-07-13  Eric Christopher  <echristo@redhat.com>
12926
12927         * config/mips/mips.h: Change TUNE_MIPS* options to use
12928         mips_tune.
12929         (EXTRA_SPECS): Add cc1_cpu_spec.
12930         * config/mips/mips.md (muldf3): Fix typo.
12931
12932 2001-07-16  Richard Henderson  <rth@redhat.com>
12933
12934         * config/m68k/m68k.c: Include expr.h and reload.h.
12935         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
12936         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
12937
12938 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
12939             Richard Henderson  <rth@redhat.com>
12940
12941         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
12942         (insn_live_p): Fix fall off end of function.
12943         (dead_libcall_p): Remove COUNTS argument; update callers.
12944         (delete_trivially_dead_insns): Remove unused variables.
12945
12946 2001-07-17  Andreas Jaeger  <aj@suse.de>
12947
12948         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
12949         x86-64 pic support.
12950
12951         * lcm.c (optimize_mode_switching): Avoid warning for unused
12952         variable if !NORMAL_MODE.
12953
12954         * flow.c (try_crossjump_to_edge): Remove unused variable.
12955
12956 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12957
12958         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
12959         atexit declaration in stdlib.h.
12960
12961 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
12962
12963         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
12964
12965 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
12966
12967         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
12968         * except.c (finish_eh_generation): Update call of cleanup_cfg;
12969         do rebuild_jump_labels instead of jump_optimize
12970         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
12971         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
12972         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
12973
12974         * flow.c: Include timevar.h
12975         (find_basic_block): Push/pop timevar;
12976         (cleanup_cfg): Likewise.
12977         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
12978         * Makefile: Add dependencies on timevar.h
12979
12980         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
12981         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
12982
12983         * rtl.h (delete_trivially_dead_insns): Add new parameter.
12984         * toplev.c (rest_of_compilation): Update calls.
12985         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
12986         (delete_trivially_dead_insns): ... here; accept new argument
12987         preserve_basic_blocks; preserve basic blocks if set.
12988
12989         * reg-stack.c (stack_regs_mentioned): Return 0 if
12990         stack_regs_mentioned_data is not initialized.
12991         (reg_to_stack): Make stack_regs_mentioned survive after the
12992         reg-stack is completted; do not call cleanup_cfg.
12993         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
12994         make cleanup_cfg after bb-reorder to output to debug file.
12995
12996 2001-07-16  Richard Henderson  <rth@redhat.com>
12997
12998         * regclass.c (init_reg_sets): Use only 32 bits per initializer
12999         from int_reg_class_contents.
13000
13001 2001-07-16  Richard Henderson  <rth@redhat.com>
13002
13003         * hard-reg-set.h (regs_invalidated_by_call): Declare.
13004         * regclass.c (regs_invalidated_by_call): Move from cse.c.
13005         (init_reg_sets_1): Move initialization from cse_main.
13006         * cse.c (regs_invalidated_by_call): Move to regclass.c.
13007         (cse_main): Move its initialization also.
13008         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
13009         * flow.c (propagate_one_insn): Likewise.
13010         * gcse.c (compute_hash_table): Likewise.
13011         (compute_kill_rd, compute_store_table): Likewise.
13012         * sched-deps.c (sched_analyze_1): Likewise.
13013
13014 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
13015
13016         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
13017         gen_rtx_SET.
13018
13019 2001-07-16  Steve Ellcey <sje@cup.hp.com>
13020
13021         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
13022         in if statement so we don't access undefined memory.
13023
13024 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
13025
13026         * gcse.c: Update comment at top.
13027         Update comment on mem handling.
13028         mem_last_set, mem_first_set, mem_set_in_block: gone.
13029         Declaration of reg_set_info: gone.
13030         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
13031         pointless with load_killed_in_block_p (they are *more*
13032         conservative then it, not less, and less accurate).
13033         (oprs_not_set_p): Ditto.
13034         (alloc_gcse_mem): Don't allocate mem_set_in_block
13035         (free_gcse_mem): Don't free it, either.
13036         (record_last_mem_set_info): Update comment in front, remove
13037         mem_*set_* stuff. Note the reason we don't handle stores directly
13038         here.
13039         (compute_hash_table): Update comments to reflect reality. Remove
13040         mem_*set_* references.
13041         (reset_opr_set_tables): Remove mem_*set_* references.
13042         (mark_call): Ditto.
13043         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
13044         (mark_clobber): Ditto (on both parts, we double set here too).
13045         (expr_killed_p): Remove mem_set_in_block test.
13046         (compute_transp): Remove mem_set_in_block test.
13047
13048         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
13049         of edge, and removal of phi alternative to dump file.
13050         (ssa_ccp_substitute_constants): Add note about register now being
13051         constant, and which uses were replaced in what insns to dump file.
13052
13053 2001-07-16  Andreas Jaeger  <aj@suse.de>
13054
13055         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
13056         variables of type HOST_WIDEST_INT.
13057
13058         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
13059         (__bb_exit_func): Correct type of count_max to avoid overflow.
13060         (num_digits): Handle long long argument.
13061
13062         * combine.c (gen_lowpart_for_combine): Remove unused variable.
13063
13064 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13065
13066         * output.h (sdb_begin_function_line): Restore as an extern
13067         variable.
13068         * sdbout.c (sdb_begin_function_line): Make extern.
13069
13070 2001-07-15  Richard Henderson  <rth@redhat.com>
13071
13072         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
13073         * genrecog.c (maybe_both_true_mode): New.
13074         (maybe_both_true_2): Use it.
13075         (write_switch): Don't put Pmode in a switch.
13076         * rtl.c (mode arrays): Don't explicitly size them.
13077
13078 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
13079
13080         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
13081         handling; move unconditional splitting before mode switching.
13082
13083         * i386.md (type): Add fistp type.
13084         (i387, length_attr, scheduling definitions): Handle this type.
13085         (fix_trunc?f?i2): Revamp to use mode switching.
13086         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
13087         * i386.h (fp_cw_mode): New enum
13088         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
13089         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
13090
13091 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13092
13093         * Makefile.in (integrate.o): Add debug.h.
13094         * integrate.c (debug.h): Add.
13095         (output_inline_function): Save, reset, and restore debug_hooks.
13096
13097 2001-07-15  Richard Henderson  <rth@redhat.com>
13098
13099         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
13100         instead of COMPARE for the EQUIV expression.
13101
13102 2001-07-15  Richard Henderson  <rth@redhat.com>
13103
13104         * flow.c (redirect_edge_and_branch_force): Initialize
13105         global_live_at_start and global_live_at_end.
13106         (allocate_bb_life_data): Export.
13107         * basic-block.h (allocate_bb_life_data): Declare.
13108         * toplev.c (rest_of_compilation): Call it.
13109
13110 2001-07-15  Richard Henderson  <rth@redhat.com>
13111
13112         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
13113         (alpha_tablejump_best_label): New.
13114         * config/alpha/alpha-protos.h: Declare them.
13115         * config/alpha/alpha.md: Use braced strings for code blocks.
13116         (tablejump_osf): Break out add with r29.
13117         (tablejump_osf_internal): Remove.
13118         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
13119         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
13120
13121 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
13122
13123         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
13124         of the movable.
13125
13126         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
13127
13128         * i386-protos.h (ix86_split_fp_branch): Update prototype.
13129         (ix86_fp_jump_nontrivial_p): New.
13130         * i386.md (fp_jcc_?): Update call of split_fp_branch;
13131         use ix86_fp_jump_nontrivial_p.
13132         * i386.c (ix86_fp_jump_nontrivial_p): New.
13133         (ix86_split_fp_branch): Accept code instead of rtx.
13134         (ix86_expand_compare): Expand comparison early in case
13135         doing so is resonably cheap.
13136
13137 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
13138
13139         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
13140         not 'machine'.
13141         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
13142         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
13143
13144 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
13145
13146         * dbxout.c (dbxout_source_line): Make static, update prototype.
13147         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
13148         (dbxout_init, dbxout_finish, dbxout_source_line,
13149         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
13150         * dbxout.h (dbxout_source_line): Delete.
13151         * debug.c (debug_nothing_file, debug_nothing_file_int,
13152         debug_nothing_file_charstar_rtx): New.
13153         (do_nothing_debug_hooks): Update.
13154         (debug_nothing_void, debug_nothing_charstar_rtx,
13155         dwarf2out_end_epilogue): New.
13156         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13157         * debug.h (struct rtx_def): Declare.
13158         (gcc_debug_hooks): New hooks source_line, end_epilogue
13159         and end_function.
13160         (debug_nothing_void, debug_nothing_charstar_rtx,
13161         dwarf2out_end_epilogue): New.
13162         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13163         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
13164         (dwarf2_debug_hooks): Update.
13165         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
13166         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
13167         * dwarf2out.h (dwarf2out_source_line): Remove.
13168         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
13169         Make static, update prototype.
13170         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
13171         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
13172         (dwarf_debug_hooks): Update.
13173         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
13174         dwarfout_end_function): Remove.
13175         * final.c (profile_function): Use debug hooks for ending functions
13176         and epilogues.
13177         (output_source_line, final_end_function): Update prototype,
13178         use debug hooks.
13179         (final_start_function, final_scan_insn): Update.
13180         * output.h (sdb_begin_function_line): Remove.
13181         (final_end_function): Update prototype.
13182         * sdbout.c (sdb_begin_function_line): Make static.
13183         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
13184         (sdbout_source_line): New.
13185         (sdbout_end_epilogue, sdbout_end_function): Make static, update
13186         prototypes.
13187         (sdb_debug_hooks): Update.
13188         (sdbout_init, sdbout_source_line,
13189         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
13190         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
13191         * toplev.c (compile_file, rest_of_compilation): Update.
13192         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
13193         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
13194         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
13195         Update for prototype changes.
13196         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
13197         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
13198
13199 2001-07-15  Richard Henderson  <rth@redhat.com>
13200
13201         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
13202         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
13203         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
13204         * config/alpha/alpha.c: Likewise.
13205         * config/alpha/alpha.md: Likewise.
13206         * config/alpha/alpha32.h: Likewise.
13207         * config/alpha/vms.h: Likewise.
13208         (OPEN_VMS): Remove.
13209
13210 2001-07-14  Richard Henderson  <rth@redhat.com>
13211
13212         * config/alpha/alpha.md: Use define_constants for unspec values.
13213         Substitute throughout.
13214
13215 2001-07-14  Tim Josling  <tej@melbpc.org.au>
13216
13217         * tree.def (EXPON_EXPR) remove. Never supported anyway.
13218
13219 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13220
13221         * pa.md: Remove unused constraints from define_split's.
13222
13223 2001-04-14  Richard Henderson  <rth@redhat.com>
13224
13225         * ifcvt.c (find_cond_trap): Test for exit block.
13226
13227 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
13228
13229         Re-install recently reverted patch.
13230         * emit-rtl.c (try_split): Update mark_jump_label call.
13231         * flow.c (find_sub_basic_blocks): Likewise.
13232         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13233         jump_back_p): Kill.
13234         (mark_all_labels): Kill second parameter.
13235         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13236         (rebuild_jump_labels, jump_optimize_minimal): Update call
13237         of jump_optimize_1.
13238         (jump_optimize_1): Kill crossjumping code.
13239         (mark_jump_label): Kill cross_jump parameter.
13240         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13241         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13242         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13243          splitting.
13244         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13245         DFI_bpro.
13246         (dump_file_info): Likewise.
13247         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13248         reorganize passes to do reg-stack first, bb-reorder second.
13249         * invoke.texi (-d letters doc): Remove the jump2 pass.
13250
13251 2001-07-14  Richard Henderson  <rth@redhat.com>
13252
13253         * ifcvt.c (find_cond_trap): New.
13254         (find_if_header): Call it.
13255         (merge_if_block): Relax existing jump sanity check.
13256         * jump.c (jump_optimize_1): Remove conditional trap handling.
13257
13258 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
13259
13260         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
13261         millicode.
13262         (insn_refs_are_delayed): Correct comment.
13263         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
13264         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
13265         instead of r31.  Make associated insn !TARGET_64BIT, and
13266         provide an additional 64-bit insn that clobbers r2.
13267         (divsi3): Likewise.
13268         (udivsi3): Likewise.
13269         (modsi3): Likewise.
13270         (umodsi3): Likewise.
13271
13272 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
13273
13274         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
13275
13276         * flow.c (redirect_edge_and_branch_force, split_edge,
13277         try_crossjump_to_edge): Use set_block_for_new_insns.
13278         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
13279
13280 2001-07-13  H.J. Lu  (hjl@gnu.org)
13281
13282         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
13283         the correct patch.
13284
13285 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
13286
13287         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
13288
13289 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
13290
13291         * c-common.c (decl_attributes): Take a pointer to the node to
13292         which attributes are to be attached, and a flags argument.
13293         * c-common.h (enum attribute_flags): New.
13294         (decl_attributes): Update prototype.
13295         * c-decl.c (start_decl, push_parm_decl, finish_struct,
13296         finish_enum, start_function): Update calls to decl_attributes.
13297         * c-parse.in (component_declarator, component_notype_declarator,
13298         label): Update calls to decl_attributes.
13299
13300 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
13301
13302         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
13303         * config/avr/avr.c (legitimate_address_p): Return value changed
13304         from letter to register classes. For better debugging.
13305
13306 2001-07-13  Kazu Hirata  <kazu@hxi.com>
13307
13308         * jump.c (reversed_comparison_code_parts): Fix comment typos.
13309
13310 2001-07-13  H.J. Lu  (hjl@gnu.org)
13311
13312         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
13313
13314 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
13315
13316         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
13317         correctly for shared configurations.
13318         * config/t-libgcc-pic:  New.
13319         * config/{i386,m68k,sparc}/t-openbsd:  New.
13320         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
13321         Support -shared.  Support debugging libraries with -g.
13322         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
13323         frame information does not emit pointer diffs.
13324         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
13325         emit pointer diffs.
13326
13327 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
13328
13329         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
13330
13331 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
13332
13333         * combine.c (try_combine): Ensure const_int pow2 is positive.
13334
13335 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
13336
13337         * config.gcc: Add configuration for s/390.
13338         * config/s390/s390.c: New. Subroutines for code generation.
13339         * config/s390/s390.h: New. Definitions for s/390.
13340         * config/s390/s390-protos.h: New. Prototypes.
13341         * config/s390/linux.h: New. Definitions for linux for s/390.
13342         * config/s390/linux64.h: New. Definitions for linux for zSeries.
13343         * config/s390/t-linux: New. Makefile fragment.
13344         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
13345         * config/s390/fixdfdi.h: New. Fix L_fix*di.
13346
13347 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
13348
13349         * emit-rtl.c (try_split): Update mark_jump_label call.
13350         * flow.c (find_sub_basic_blocks): Likewise.
13351         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13352         jump_back_p): Kill.
13353         (mark_all_labels): Kill second parameter.
13354         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13355         (rebuild_jump_labels, jump_optimize_minimal): Update call
13356         of jump_optimize_1.
13357         (jump_optimize_1): Kill crossjumping code.
13358         (mark_jump_label): Kill cross_jump parameter.
13359         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13360         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13361         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13362          splitting.
13363         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13364         DFI_bpro.
13365         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13366         reorganize passes to do reg-stack first, bb-reorder second.
13367         * invoke.texi (-d letters doc): Remove the jump2 pass.
13368
13369 2001-07-12  Steve Ellcey <sje@cup.hp.com>
13370
13371         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
13372
13373 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13374
13375         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
13376         basic blocks.
13377         (verify_flow_info): Make diagnostics prettier.
13378
13379 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
13380
13381         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
13382
13383         * flow.c (outgoing_edges_match): Return early if condition reversal
13384         failed.
13385
13386 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
13387
13388         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
13389         (mips_move_2words): When splitting a move into two instructions,
13390         prefix the second address operand with '%D'.
13391
13392 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
13393
13394         * Makefile.in (final.o): Depend on debug.h.
13395         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
13396         (dbx_debug_hooks): Add new hooks.
13397         (xcoff_debug_hooks): New.
13398         * debug.c (debug_nothing_file_int_int): New.
13399         (do_nothing_debug_hooks): Update.
13400         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
13401         (debug_nothing_file_int_int): New.
13402         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
13403         static, update prototype.
13404         (dwarf2_debug_hooks): Update.
13405         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
13406         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
13407         static, update prototype.
13408         (dwarf_debug_hooks): Update.
13409         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
13410         * final.c: Include debug.h.
13411         (final_scan_insn): Use debug hooks when beginning and ending blocks.
13412         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
13413         static, update prototype.
13414         (sdb_debug_hooks): Update.
13415         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
13416         * toplev.c: Distinguish between xcoff and dbx.
13417
13418         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
13419         Call all debug hooks, not just dwarf ones.
13420
13421 2001-07-11  Timothy Wall  <twall@redhat.com>
13422
13423         * config.gcc: Add configuration for AIX5/IA64.
13424         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
13425         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
13426         support prefix/suffix code.
13427         * config/ia64/t-aix: New.  Makefile fragment.
13428         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
13429
13430 2001-07-11  Kazu Hirata  <kazu@hxi.com>
13431
13432         * recog.c (validate_change): Fix a comment typo.
13433
13434 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13435
13436         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
13437         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
13438         hooks directly.
13439         * dbxout.c (dbx_debug_hooks): Add new hooks.
13440         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
13441         make static.
13442         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
13443         make static.
13444         * dbxout.h (dbxout_start_new_source_file,
13445         dbxout_resume_previous_source_file): Delete.
13446         * debug.c (do_nothing_debug_hooks): Add new hooks.
13447         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
13448         (debug_nothing_int_charstar, debug_nothing_int): New.
13449         * debug.h (gcc_debug_hooks): New hooks define, undef,
13450         start_source_file and end_source_file.
13451         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
13452         (debug_nothing_int_charstar, debug_nothing_int): New.
13453         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
13454         the conditionally compiled section.
13455         (dwarf2out_start_source_file, dwarf2out_end_source_file,
13456         dwarf2out_define, dwarf2out_undef): Make static.
13457         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
13458         dwarf2out_define, dwarf2out_undef): Remove.
13459         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
13460         (dwarfout_start_source_file, dwarfout_end_source_file,
13461         dwarfout_define, dwarfout_undef): Make static.
13462         (dwarfout_start_source_file_check,
13463         dwarfout_end_source_file_check): New.
13464         (dwarfout_define, dwarfout_finish): Update.
13465         * dwarfout.h (dwarfout_start_new_source_file,
13466         dwarfout_resume_previous_source_file, dwarfout_define,
13467         dwarfout_undef): Remove.
13468         * sdbout.c (sdb_debug_hooks): Add new hooks.
13469         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
13470         make static.
13471         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
13472         make static, take an arg.
13473         * sdbout.h (sdbout_start_new_source_file,
13474         sdbout_resume_previous_source_file): Delete.
13475         * toplev.c (debug_start_source_file, debug_end_source_file,
13476         debug_define, debug_undef): Delete.
13477         * toplev.h (debug_start_source_file, debug_end_source_file,
13478         debug_define, debug_undef): Delete.
13479
13480         * java/jcf-parse.c: Include debug.h.
13481         (parse_class_file): Update to use debug hooks directly.
13482         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
13483
13484 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13485
13486         * alias.c (set_mem_alias_set): New function.
13487         * rtl.h (set_mem_alias_set): Declare it.
13488         * builtins.c (expand_builtin_return_addr): Call it instead of
13489         using MEM_ALIAS_SET accessor.
13490         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
13491         (get_memory_rtx, expand_builtin_va_arg): Likewise.
13492         (expand_builtin_va_copy):Likewise.
13493         * caller-save.c (setup_save_areas): Likewise.
13494         * calls.c (compute_argument_addresses): Likewise.
13495         * explow.c (set_mem_attributes): Likewise.
13496         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
13497         (expand_assignment, store_constructor_field, store_field): Likewise.
13498         (expand_expr_unaligned): Likewise.
13499         * function.c (assign_stack_temp_for_type): Likewise.
13500         (put_reg_into_stack, gen_mem_addressof): Likewise.
13501         * ifcvt.c (noce_try_cmove_arith): Likewise.
13502         * reload1.c (reload, alter_reg): Likewise.
13503         * config/alpha/alpha.c (get_aligned_mem): Likewise.
13504         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
13505         (alpha_expand_unaligned_store): Likewise
13506         (alpha_expand_unaligned_load_words): Likewise.
13507         (alpha_expand_unaligned_store_words): Likewise.
13508         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
13509         (alpha_expand_epilogue): Likewise.
13510         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
13511         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
13512         * config/i386/i386.c (legitimize_pic_address): Likewise.
13513         * config/i960/i960.c (setup_incoming_varargs): Likewise.
13514         * config/ia64/ia64.c (spill_restore_mem): Likewise.
13515         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13516         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
13517         * config/mips/mips.c (mips_va_arg): Likewise.
13518         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
13519         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
13520         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13521         (setup_incoming_varargs, rs6000_va_arg): Likewise.
13522         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
13523         (rs6000_emit_epilogue): Likewise.
13524         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
13525         * config/sparc/sparc.c (sparc_va_arg): Likewise.
13526         * config/v850/v850.c (v850_va_arg): Likewise.
13527
13528 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
13529
13530         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
13531         when fallthru edge is present.
13532         (mege_blocks): Handle case where creation of jump insn
13533         is required.
13534
13535         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
13536         CLEANUP_POST_REGSTACK): New constants.
13537         * except.c (finish_eh_generation): Update call of cleanup_cfg,
13538         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
13539         * output.h (cleanup_cfg): Update prototype.
13540         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
13541         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
13542         cleanup_cfg call; kill missleading comment.
13543         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
13544         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
13545         parameter; control optimizations performed using it.
13546         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
13547         try_crossjump_bb): New functions.
13548
13549 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13550
13551         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
13552         extern.
13553         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
13554         pa_output_function_prologue.
13555         * pa-protos.h (pa_output_function_prologue): New prototype.
13556
13557 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13558
13559         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
13560         and low to get correct sign extension in low+high test.
13561
13562 2001-07-11  Janis Johnson <janis@us.ibm.com>
13563
13564         * gcov.c (arcdata): Use gcov_type to fix branch percentage
13565         for large hit count.
13566
13567         * profile.c (branch_prob): Fix .bbg info for computed gotos
13568         and C++ EH code.
13569
13570 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
13571
13572         * stmt.c (parse_output_constraint): New function, split out
13573         from ...
13574         (expand_asm_operands): ... here.  Use parse_output_constraint.
13575         * tree.h (parse_output_constraint): Declare it.
13576
13577 2001-07-11  Richard Henderson  <rth@redhat.com>
13578
13579         * bitmap.c: Comment some functions; fiddle whitespace.
13580         (bitmap_free): Don't export.
13581         (bitmap_element_allocate): Use memset.
13582         * bitmap.h (bitmap_free): Don't declare.
13583
13584 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
13585
13586         * gcse.c, lcm.c, sched-deps.c:
13587         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
13588
13589         * flow.c (flow_loops_find): Free dom if we found no loops, since
13590         we aren't going to save it.
13591
13592         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
13593         done.
13594
13595 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
13596
13597         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
13598
13599 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13600
13601         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
13602         #ifndef DWARF2_DEBUGGING_INFO.
13603
13604 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
13605
13606         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
13607
13608 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
13609
13610         * config/mips/mips.c (gen_int_relational): Tell the caller not to
13611         reverse a branch if a NE comparison is implemented with GTU.
13612
13613 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
13614             H.J. Lu  <hjl@gnu.org>
13615
13616         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
13617         constant addresses.
13618         (call_internal2): Likewise.
13619         (call_value_internal1): Likewise.
13620         (call_value_internal2): Likewise.
13621         (call_value_multiple_internal1): Likewise.
13622         (call_value_multiple_internal2): Likewise.
13623
13624 2001-07-10  Kazu Hirata  <kazu@hxi.com>
13625
13626         * calls.c (emit_library_call_value_1): Fix a comment typo.
13627         * dwarf2out.c (mem_loc_descriptor): Likewise.
13628         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
13629
13630 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
13631
13632         * simplify-rtx.c (simplify_subreg): Fix typo in comment
13633
13634 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13635
13636         * recog.c (offsettable_address_p): Handle LO_SUM case.
13637         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
13638         instead of plus_constant.
13639
13640 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13641
13642         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
13643         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
13644
13645 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13646
13647         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
13648         adjust_address_nv instead of plus_constant.
13649
13650 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
13651
13652         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
13653         dwarf2out.o): Depend on debug.h, wrap long lines.
13654         * dbxout.c: Include debug.h.
13655         (dbx_debug_hooks): New.
13656         (dbxout_init): Make static, take just 2 args.
13657         (dbxout_finish): Make static.
13658         * dbxout.h (dbxout_init, dbxout_finish): Delete.
13659         * debug.c: New file.
13660         * debug.h: New file.
13661         * dwarf2out.c: Include debug.h.
13662         (dwarf2_debug_hooks): New.
13663         (dwarf2out_init): Make static.
13664         (dwarf2out_finish): Make static, take 2 args.
13665         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
13666         * dwarfout.c: Include debug.h.
13667         (dwarf_debug_hooks): New.
13668         (dwarfout_init): Make static.
13669         (dwarfout_finish): Make static, take 2 args.
13670         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
13671         * sdbout.c: Include debug.h.
13672         (sdb_debug_hooks): New.
13673         (sdbout_init): Make static, take 2 args.
13674         * sdbout.h (sdbout_init): Delete.
13675         * toplev.c: Include debug.h.
13676         (debug_hooks): New.
13677         (compile_file): Set deubg_hooks based on command line options.
13678         Use the hooks unconditionally rather than conditional compilation.
13679
13680 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
13681
13682         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
13683         first_insn_after_basic_block_note instead.
13684
13685         * df.c (df_bb_refs_unlink): #if 0 out for now.
13686
13687 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
13688
13689         * ssa.h: Add prototype for ssa_const_prop
13690         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
13691         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
13692         (ssa_fast_dce): Remove unused variable
13693
13694 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
13695
13696         * diagnostic.c (finish_diagnostic): Rename to
13697         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
13698         calls thourghout.
13699
13700 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
13701
13702         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
13703         .loc support.
13704
13705         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
13706         (dump_file): Only pad the demangled name with spaces if the
13707         mangled name was padded with spaces.
13708
13709 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
13710
13711         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
13712         edge detection.
13713
13714 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13715
13716         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
13717         extraction if no direct load if either EXPAND_CONST_ADDRESS or
13718         EXPAND_INITIALIZER.
13719
13720         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
13721         whether can put offset inside LO_SUM to check mode alignment, not size.
13722
13723 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
13724
13725         * doc/tm.texi (Misc): Fix thinko.
13726
13727 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
13728
13729         * regmove.c (replace_in_call_usage): Fix warnings.
13730         * sched-deps.c (add_dependence): Fix warnings.
13731         * simplify-rtx.c (simplify_subreg): Likewise.
13732         Return NULL_RTX instead of NULL.
13733
13734         * reg-stack.c (emit_swap_insn): Eliminate warnings.
13735         (subst_asm_stack_regs): Likewise.
13736
13737         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
13738         warnings.
13739
13740         * dwarf2out.c (output_call_frame_info): Declare i as int.
13741         (build_abbrev_table): Declare n_alloc as int.
13742         (dwarf2out_finish): Initialize die.
13743         * except.c: Declare sjlj_funcdef_number as unsigned.
13744         (connect_post_landing_pads): Declare j as unsigned.
13745         (convert_to_eh_region_ranges): Initialize call_site.
13746         (output_function_exception_table): Initialize tt_format_size.
13747         * expr.c (move_by_pieces_1): Initialize to1.
13748         (store_constructor): Initialize minelt and maxelt.
13749         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
13750         * function.c (instantiate_decls): Avoid signed/unsigned warning.
13751
13752         * c-decl.c (combine_parm_decls): Unused, remove.
13753         * c-tree.h: Remove prototype for combine_parm_decls.
13754
13755         * reload.c (push_reload): Fix warning.
13756         (regno_clobbered_p): Likewise.
13757         * reload1.c (replace_pseudos_in_call_usage): Likewise.
13758         (reload_combine): Likewise.
13759
13760         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
13761         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
13762         warnings.
13763         * bitmap.c (bitmap_operation): Change user.
13764         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
13765
13766 2001-07-10  Eric Christopher  <echristo@redhat.com>
13767
13768         * config/mips/mips.c (override_options): Fix typo.
13769
13770 2001-07-09  Stan Shebs  <shebs@apple.com>
13771
13772         * target.h (struct gcc_target): New fields init_builtins and
13773         expand_builtin.
13774         * target-def.h (TARGET_INIT_BUILTINS): New macro.
13775         (TARGET_EXPAND_BUILTIN): New macro.
13776         (TARGET_INITIALIZER): Add them.
13777         * builtins.c: Include target.h.
13778         (expand_builtin): Use targetm.expand_builtin.
13779         (default_init_builtins): New function.
13780         (default_expand_builtin): New function.
13781         * expr.h (default_init_builtins): Declare.
13782         (default_expand_builtin): Declare.
13783         * c-common.c (c_common_nodes_and_builtins): Use
13784         targetm.init_builtins.
13785         * defaults.h (MD_INIT_BUILTINS): Remove.
13786         * Makefile.in (builtins.o): Depend on target.h.
13787
13788         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
13789         (TARGET_EXPAND_BUILTIN): Define.
13790         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
13791         (MD_EXPAND_BUILTIN): Remove.
13792
13793         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
13794         (TARGET_EXPAND_BUILTIN): Define.
13795         (c4x_init_builtins): Make endlink arg a local.
13796         (c4x_print_operand): Fix typos in adjust_address usages.
13797         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
13798         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
13799         (MD_EXPAND_BUILTIN): Remove.
13800
13801         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
13802         (TARGET_EXPAND_BUILTIN): Define.
13803         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
13804         (ix86_init_builtins): Call new function only if TARGET_MMX.
13805         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
13806         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
13807         (MD_EXPAND_BUILTIN): Remove.
13808
13809         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
13810         (TARGET_EXPAND_BUILTIN): Define.
13811         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
13812         (MD_EXPAND_BUILTIN): Remove.
13813
13814         * doc/tm.texi: Document these changes.
13815
13816 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
13817
13818         * basic-block.h (tree_node): Forward declare if needed.
13819         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
13820         (BLOCK_HEAD_TREE): Define.
13821         (BLOCK_END_TREE): Define.
13822         (struct loops): Rename field 'tree' to 'tree_root'.
13823         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
13824         'end_tree'.
13825         (flow_loops_tree_build): Rename reference to field 'tree' to
13826         'tree_root'.
13827         (flow_loops_level_compute): Ditto.
13828         * predict.c (estimate_bb_frequencies): Ditto.
13829         * tree.h (struct tree_common): Add field 'aux'.
13830
13831 2001-07-09  Stan Shebs  <shebs@apple.com>
13832
13833         * config/darwin.c (darwin_encode_section_info): Don't mark any
13834         DECL_EXTERNAL node as defined.
13835
13836 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13837
13838         * pa.c (pa_init_machine_status, pa_mark_machine_status,
13839         pa_free_machine_status, hppa_init_pic_save): Delete.
13840         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
13841         (hppa_profile_hook): Use hppa_pic_save_rtx.
13842         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
13843         hppa_init_pic_save): Delete.
13844         (hppa_pic_save_rtx): Declare.
13845         * pa.md (call, call_value, sibcall, sibcall_value,
13846         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
13847
13848 2001-07-09  Kazu Hirata  <kazu@hxi.com>
13849
13850         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
13851         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
13852
13853 2001-07-09  Andreas Jaeger  <aj@suse.de>
13854
13855         * output.h: Add declaration of final_forward_branch_p.
13856
13857         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
13858
13859         * varray.c: Include errors.h for internal_error and trim_filename
13860         declarations.
13861
13862         * Makefile.in (varray.o): Add errors.h.
13863
13864 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
13865
13866         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
13867         * optabs.c (have_add2_insn): Check whether the add insn chosen
13868         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
13869         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
13870
13871 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
13872
13873         * Makefile.in (OBJS): Add ssa-ccp.o
13874         (ssa-ccp.o): Add dependencies.
13875         * toplev.c (DFI_ssa_ccp): New dump file enum.
13876         (dump_file): Add entry for dumping after SSA CCP.
13877         (flag_ssa_ccp): New flag variable.
13878         (f_options): Add -fssa-ccp.
13879         (rest_of_compilation): Run SSA CCP if requested.
13880         * timevar.def (TV_SSA_CCP): New timevar.
13881         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
13882         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
13883         Fix minor typo in SSA DCE documentation.
13884         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
13885         Add documentation for new dump option.  Renumber dump files
13886         appropriately.
13887
13888 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13889
13890         * emit-rtl.c (gen_highpart_mode): New.
13891         * rtl.h (gen_highpart_mode): Declare.
13892         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
13893         operand can be VOIDmode constant.
13894
13895 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
13896
13897         * flow.c (redirect_edge_and_branch_force): New.
13898         (can_fallthru): Ensure that basic blocks are succeeding.
13899         (try_optimize_cfg): Do not delete basic block if it is the last one.
13900
13901         * flow.c (try_redirect_by_replacing_jump): Do not remove
13902         jumps with side effects, unlink chain on fallthru edge;
13903         set block for new jump instruction; avoid basic block to
13904         over by line number note.
13905
13906         * flow.c (try_simplify_condjump): Verify that the condjump
13907         is not always falling through.
13908
13909         Re-install patch:
13910         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
13911
13912         * flow.c (forwarder_block_p): Fix for fallthru blocks.
13913         (try_redirect_by_replacing_jump): Update properly the count
13914         and frequency information.
13915
13916 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13917
13918         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
13919         address that is a LO_SUM specially.
13920         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
13921
13922         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
13923
13924         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
13925         (operand_subword): Use them.
13926         (change_address_1): Renamed from change_address; new arg VALIDATE.
13927         * expr.h: Reflect above changes; change_address now macro.
13928         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
13929         making MEM.
13930         * cselib.c (add_mem_for_addr): Likewise.
13931         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
13932         * regmove.c (try_apply_stack_adjustment): Likewise.
13933         * reload.c (push_reload, make_memloc): Likewise.
13934         * reload1.c (eliminate_regs): Likewise.
13935         * simplify-rtx.c (simplify_replace_rtx): Likewise.
13936         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
13937         adjust_addess.
13938         * combine.c (make_extraction, simplify_shift_const): Likewise.
13939         (gen_lowpart_for_combine): Likewise.
13940         * cse.c (gen_lowpart_if_possible): Likewise.
13941         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
13942         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
13943         * optabs.c (gen_move_insn): Likewise.
13944         * reload1.c (alter_reg): Likewise.
13945         * simplify-rtx.c (simplify_subreg): Likewise.
13946         * stmt.c (expand_anon_union_decl): Likewise.
13947         * recog.c (validate_replace_rtx_1): Likewise.
13948         (expr.h): Include.
13949         * Makefile.in (recog.o): Add $(EXPR_H).
13950         * explow.c (stabilize): Call replace_equiv_address.
13951         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
13952         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
13953
13954 2001-07-03  Andrew Haley  <aph@redhat.com>
13955
13956         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
13957         the mode of the memory location.
13958
13959 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
13960
13961         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
13962
13963 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
13964
13965         * final.c (output_addr_const): Use target opening and
13966         closing parentheses.
13967         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
13968         defaults, add to TARGET_ASM_OUT.
13969         * target.h (struct gcc_target): Add open_paren and close_paren.
13970         * doc/md.texi: Update.
13971         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
13972         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
13973         TARGET_ASM_CLOSE_PAREN.
13974         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
13975         Override.
13976         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
13977         Override.
13978         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
13979         * config/a29k/a29k.h: Similarly.
13980         * config/alpha/alpha.h: Similarly.
13981         * config/arc/arc.h: Similarly.
13982         * config/arm/aof.h: Similarly.
13983         * config/arm/aout.h: Similarly.
13984         * config/avr/avr.h: Similarly.
13985         * config/c4x/c4x.h: Similarly.
13986         * config/clipper/clipper.h: Similarly.
13987         * config/convex/convex.h: Similarly.
13988         * config/d30v/d30v.h: Similarly.
13989         * config/dsp16xx/dsp16xx.h: Similarly.
13990         * config/elxsi/elxsi.h: Similarly.
13991         * config/fr30/fr30.h: Similarly.
13992         * config/h8300/h8300.h: Similarly.
13993         * config/i370/i370.h: Similarly.
13994         * config/i386/i386.h: Similarly.
13995         * config/i860/i860.h: Similarly.
13996         * config/i960/i960.h: Similarly.
13997         * config/ia64/ia64.h: Similarly.
13998         * config/m32r/m32r.h: Similarly.
13999         * config/m68hc11/m68hc11.h: Similarly.
14000         * config/m68k/m68k.h: Similarly.
14001         * config/m88k/m88k.h: Similarly.
14002         * config/mcore/mcore.h: Similarly.
14003         * config/mips/mips.h: Similarly.
14004         * config/mn10200/mn10200.h: Similarly.
14005         * config/mn10300/mn10300.h: Similarly.
14006         * config/ns32k/ns32k.h: Similarly.
14007         * config/pa/pa.h: Similarly.
14008         * config/pdp11/pdp11.h: Similarly.
14009         * config/pj/pj.h: Similarly.
14010         * config/romp/romp.h: Similarly.
14011         * config/rs6000/rs6000.h: Similarly.
14012         * config/sh/sh.h: Similarly.
14013         * config/sparc/sparc.h: Similarly.
14014         * config/v850/v850.h: Similarly.
14015         * config/vax/vax.h: Similarly.
14016         * config/we32k/we32k.h: Similarly.
14017
14018 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
14019
14020         * doc/c-tree.texi: Document representation of attributes.
14021
14022 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14023
14024         * doc/tm.texi: Update some places for the rename of target to
14025         targetm.  Fix typo.
14026
14027 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14028
14029         * target.h (struct gcc_target): Add insert_attributes.
14030         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
14031         (TARGET_INITIALIZER): Update.
14032         * tree.c, tree.h (default_insert_attributes): New function.
14033         Update comments on other default functions to refer to targetm,
14034         not target.
14035         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
14036         TARGET_INSERT_ATTRIBUTES.
14037         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
14038         * c-common.c (decl_attributes): Use targetm.insert_attributes.
14039         Don't use PRAGMA_INSERT_ATTRIBUTES.
14040         * Makefile.in (c-common.o): Depend on $(TARGET_H).
14041         * c-decl.c (start_decl, start_function): Don't call
14042         SET_DEFAULT_DECL_ATTRIBUTES.
14043         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14044         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
14045         declare.
14046         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
14047         (c4x_check_attribute): Avoid modifying attribute list itself.
14048         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
14049         Make static.
14050         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
14051         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
14052         declare.
14053         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
14054         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
14055         Make static.
14056         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14057         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
14058         declare.
14059         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
14060         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
14061         Adjust parameters.  Make static.
14062
14063 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14064
14065         * c-common.c (decl_attributes): Only take a single attributes
14066         parameter.
14067         * c-common.h (decl_attributes): Update prototype.
14068         * c-decl.c (start_decl, start_function): Only take a single
14069         attributes parameter.  Update calls to decl_attributes.
14070         (finish_struct, finish_enum): Update calls to decl_attributes.
14071         (push_parm_decl): Expect unified list of attributes.  Update call
14072         to decl_attributes.
14073         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
14074         notype_nested_function, component_declarator,
14075         component_notype_declarator, label): Update calls to
14076         decl_attributes.
14077         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
14078         lists that are passed to push_parm_decl.
14079         * c-tree.h (start_function, start_decl): Update prototypes.
14080         * config/sh/sh-protos.h, config/sh/sh.c
14081         (sh_pragma_insert_attributes): Only take a single attributes
14082         parameter.
14083         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
14084         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
14085         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
14086         build_module_descriptor, generate_static_references,
14087         generate_strings, build_selector_translation_table,
14088         generate_descriptor_table, generate_protocols,
14089         generate_ivars_list, generate_dispatch_table,
14090         generate_protocol_list, generate_category,
14091         generate_shared_structures, really_start_method, add_objc_decls,
14092         generate_classref_translation_entry): Update calls to start_decl
14093         and start_function.
14094         (build_tmp_function_decl, start_method_def): Unify attribute lists
14095         that are passed to push_parm_decl.
14096
14097 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14098
14099         * final.c (no_asm_to_stream): New.
14100         (final_scan_insn): Use target structures for prologue ends
14101         and epilogue starts.
14102         * output.h (no_asm_to_stream): New.
14103         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
14104         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
14105         (TARGET_ASM_OUT): Update.
14106         * target.h (struct gcc_target): New members function_end_prologue
14107         and function_begin_epilogue.
14108         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
14109         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
14110         * config/alpha/alpha.c (output_end_prologue): Rename to
14111         alpha_output_function_end_prologue.  Use in target struct
14112         and make static.
14113         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
14114         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
14115         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
14116         ia64_output_function_end_prologue.  Use in target struct
14117         and make static.
14118         (ia64_function_prologue, ia64_funciton_epilogue): Rename
14119         mistyped prototypes.
14120         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
14121         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
14122         Delete.
14123         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
14124         an use in target struct, make static.
14125         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
14126         Delete.
14127
14128 2001-07-08  Richard Henderson  <rth@redhat.com>
14129
14130         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
14131
14132 2001-07-08  Richard Henderson  <rth@redhat.com>
14133
14134         * config/i386/i386.md: Remove constraints strings from define_split
14135         and define_peephole2 patterns.
14136         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
14137         (eh_return): Use them.
14138
14139 2001-07-08  Richard Henderson  <rth@redhat.com>
14140
14141         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
14142         Document MD_FALLBACK_FRAME_STATE_FOR.
14143
14144 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14145
14146         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
14147         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
14148         elimination.
14149         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
14150
14151 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
14152
14153         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
14154         of the label inside NAME as opposed to just the end of NAME.
14155
14156 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14157
14158         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
14159         * config/alpha/alpha.c (alpha_init_machine_status,
14160         alpha_mark_machine_status, alpha_free_machine_status): Delete.
14161         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
14162         (vms_valid_decl_attribute_p): Make static, conditionally compile.
14163         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
14164
14165 2001-07-06  Stan Shebs  <shebs@apple.com>
14166
14167         * target.h (targetm): Rename global from "target", so as not to
14168         conflict with local variables.
14169         * c-decl.c: Ditto.
14170         * c-typeck.c: Ditto.
14171         * final.c: Ditto.
14172         * tree.c: Ditto.
14173         * cp/decl.c: Ditto.
14174         * cp/decl2.c: Ditto.
14175         * cp/typeck.c: Ditto.
14176         * 1750a/1750a.c: Ditto.
14177         * a29k/a29k.c: Ditto.
14178         * arc/arc.c: Ditto.
14179         * arm/arm.c: Ditto.
14180         * avr/avr.c: Ditto.
14181         * clipper/clipper.c: Ditto.
14182         * convex/convex.c: Ditto.
14183         * d30v/d30v.c: Ditto.
14184         * dsp16xx/dsp16xx.c: Ditto.
14185         * elxsi/elxsi.c: Ditto.
14186         * fr30/fr30.c: Ditto.
14187         * h8300/h8300.c: Ditto.
14188         * i370/i370.c: Ditto.
14189         * i386/i386.c: Ditto.
14190         * i860/i860.c: Ditto.
14191         * i960/i960.c: Ditto.
14192         * ia64/ia64.c: Ditto.
14193         * m32r/m32r.c: Ditto.
14194         * m68hc11/m68hc11.c: Ditto.
14195         * m68k/m68k.c: Ditto.
14196         * m88k/m88k.c: Ditto.
14197         * mips/mips.c: Ditto.
14198         * ns32k/ns32k.c: Ditto.
14199         * pa/pa.c: Ditto.
14200         * pdp11/pdp11.c: Ditto.
14201         * romp/romp.c: Ditto.
14202         * rs6000/rs6000.c: Ditto.
14203         * sh/sh.c: Ditto.
14204         * sparc/sparc.c: Ditto.
14205         * vax/vax.c: Ditto.
14206         * we32k/we32k.c: Ditto.
14207         * doc/tm.texi: Update the manual to match.
14208
14209 2001-07-06  Richard Henderson  <rth@redhat.com>
14210
14211         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
14212         DWARF2_UNWIND_INFO not just whether it is defined.
14213
14214 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
14215
14216         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
14217         call to simplify_binary_operation returns a new pattern.
14218
14219 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
14220
14221         * glimits.h (__SHRT_MAX__): New.
14222         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
14223         (SHRT_MAX): Define in terms of __SHRT_MAX__.
14224
14225 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
14226
14227         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
14228         avoid warnings.
14229
14230 2001-07-06  Richard Henderson  <rth@redhat.com>
14231
14232         * bitmap.c (bitmap_release_memory): Move adjacent to the
14233         allocation functions.
14234         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
14235         the implementation.  Binary search for the set bit.
14236         (bitmap_union_of_diff): Allocate the temporary on the stack
14237         instead of using xmalloc.
14238
14239 2001-07-06  Richard Henderson  <rth@redhat.com>
14240
14241         * genrecog.c (validate_pattern): Warn for constraints in
14242         define_{expand,split,peephole2}.  Remove strict_low_part
14243         before looking up match_dup.
14244
14245 2001-07-06  DJ Delorie  <dj@redhat.com>
14246
14247         * doc/gcc.texi (Makefile): Rename to be a more general purpose
14248         chapter about various build hints and history.  Add section
14249         talking about the various types of native and cross builds.
14250
14251 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14252
14253         * Makefile.in (final.o): Depend on target.h.
14254         * final.c: Include target.h.
14255         (default_function_pro_epilogue): New.
14256         (final_start_function): Use target structure for function prologues.
14257         (final_end_function): Use target structure for function epilogues.
14258         * fold-const.c (real_hex_to_f): Constify s and p.
14259         * output.h (default_function_pro_epilogue): New.
14260         * real.h (real_hex_to_f): Update prototype.
14261         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
14262         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
14263         (TARGET_INITIALIZER): Update.
14264         * target.h (gcc_target): Add struct asm_out.
14265         * doc/tm.texi: Update.
14266
14267 config:
14268         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
14269         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
14270         in cpu/cpu.c, or rename old functions consistently.  Take
14271         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
14272         redundant macros and prototypes.  Make new functions static.
14273
14274         * 1750a/1750a.c: Similarly.
14275         * 1750a/1750a.h: Similarly.
14276         * a29k/a29k-protos.h: Similarly.
14277         * a29k/a29k.c: Similarly.
14278         * a29k/a29k.h: Similarly.
14279         * arc/arc-protos.h: Similarly.
14280         * arc/arc.c: Similarly.
14281         * arc/arc.h: Similarly.
14282         * arm/arm-protos.h: Similarly.
14283         * arm/arm.c: Similarly.
14284         * arm/arm.h: Similarly.
14285         * avr/avr-protos.h: Similarly.
14286         * avr/avr.c: Similarly.
14287         * avr/avr.h: Similarly.
14288         * clipper/clipper-protos.h: Similarly.
14289         * clipper/clipper.c: Similarly.
14290         * clipper/clipper.h: Similarly.
14291         * convex/convex.c: Similarly.
14292         * convex/convex.h: Similarly.
14293         * d30v/d30v-protos.h: Similarly.
14294         * d30v/d30v.c: Similarly.
14295         * d30v/d30v.h: Similarly.
14296         * d30v/d30v.md: Similarly.
14297         * dsp16xx/dsp16xx-protos.h: Similarly.
14298         * dsp16xx/dsp16xx.c: Similarly.
14299         * dsp16xx/dsp16xx.h: Similarly.
14300         * elxsi/elxsi.c: Similarly.
14301         * elxsi/elxsi.h: Similarly.
14302         * fr30/fr30.c: Similarly.
14303         * fr30/fr30.md: Similarly.
14304         * h8300/h8300-protos.h: Similarly.
14305         * h8300/h8300.c: Similarly.
14306         * h8300/h8300.h: Similarly.
14307         * i370/i370-protos.h: Similarly.
14308         * i370/i370.c: Similarly.
14309         * i370/i370.h: Similarly.
14310         * i386/i386.c: Similarly.
14311         * i386/osf1elf.h: Similarly.
14312         * i386/osfrose.h: Similarly.
14313         * i860/i860-protos.h: Similarly.
14314         * i860/i860.c: Similarly.
14315         * i860/i860.h: Similarly.
14316         * i960/i960-protos.h: Similarly.
14317         * i960/i960.c: Similarly.
14318         * i960/i960.h: Similarly.
14319         * ia64/ia64-protos.h: Similarly.
14320         * ia64/ia64.c: Similarly.
14321         * ia64/ia64.h: Similarly.
14322         * m32r/m32r-protos.h: Similarly.
14323         * m32r/m32r.c: Similarly.
14324         * m32r/m32r.h: Similarly.
14325         * m68hc11/m68hc11-protos.h: Similarly.
14326         * m68hc11/m68hc11.c: Similarly.
14327         * m68hc11/m68hc11.h: Similarly.
14328         * m68k/crds.h: Similarly.
14329         * m68k/dpx2.h: Similarly.
14330         * m68k/m68k-protos.h: Similarly.
14331         * m68k/m68k.c: Similarly.
14332         * m68k/m68k.h: Similarly.
14333         * m68k/news.h: Similarly.
14334         * m88k/m88k-protos.h: Similarly.
14335         * m88k/m88k.c: Similarly.
14336         * m88k/m88k.h: Similarly.
14337         * mips/mips-protos.h: Similarly.
14338         * mips/mips.c: Similarly.
14339         * mips/mips.h: Similarly.
14340         * ns32k/merlin.h: Similarly.
14341         * ns32k/ns32k.c: Similarly.
14342         * ns32k/ns32k.h: Similarly.
14343         * ns32k/tek6000.h: Similarly.
14344         * pa/pa-protos.h: Similarly.
14345         * pa/pa.c: Similarly.
14346         * pa/pa.h: Similarly.
14347         * pdp11/2bsd.h: Similarly.
14348         * pdp11/pdp11-protos.h: Similarly.
14349         * pdp11/pdp11.c: Similarly.
14350         * pdp11/pdp11.h: Similarly.
14351         * romp/romp-protos.h: Similarly.
14352         * romp/romp.c: Similarly.
14353         * romp/romp.h: Similarly.
14354         * rs6000/rs6000-protos.h: Similarly.
14355         * rs6000/rs6000.c: Similarly.
14356         * rs6000/rs6000.h: Similarly.
14357         * rs6000/sysv4.h: Similarly.
14358         * sh/sh-protos.h: Similarly.
14359         * sh/sh.c: Similarly.
14360         * sh/sh.h: Similarly.
14361         * sparc/sparc-protos.h: Similarly.
14362         * sparc/sparc.c: Similarly.
14363         * sparc/sparc.h: Similarly.
14364         * vax/vax.c: Similarly.
14365         * vax/vax.h: Similarly.
14366         * vax/vms.h: Similarly.
14367         * we32k/we32k.c: Similarly.
14368         * we32k/we32k.h: Similarly.
14369
14370 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
14371
14372         * basic-block.h (first_insn_after_basic_block_note): Declare.
14373         * flow.c (first_insn_after_basic_block_note): Define.  Moved
14374         from...
14375         * ssa.c (first_insn_after_basic_block_note): Remove.
14376         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
14377         necessary.
14378         (ssa_eliminate_dead_code): Properly update the CFG and PHI
14379         nodes when we find a dead conditional branch.  Insert BARRIERs
14380         after any blocks with no successors, but which do not have
14381         any BARRIERs.
14382
14383 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
14384
14385         * varray.c (varray_check_failed): Use internal_error.
14386
14387 2001-07-05  Andrew Haley  <aph@redhat.com>
14388
14389         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
14390         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
14391         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
14392
14393 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
14394
14395         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
14396         reference if the target constant is also a SYMBOL_REF.
14397
14398 2001-07-05  Eric Christopher  <echristo@redhat.com>
14399
14400         * config/mips/mips.h (MASK_MIPS3900): Remove.
14401         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
14402         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
14403         (TARGET_MIPS3900): Change to use mips_arch.
14404         (TARGET_MIPS4000): New.
14405         (TARGET_MIPS4100): New.
14406         (TARGET_MIPS4300): New.
14407         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
14408         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
14409         for -mipsX.
14410         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
14411         (ISA_HAS_BRANCHLIKELY): To here.
14412         (CC1_CPU_SPEC):  New.
14413         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
14414         (mips_arch_string): Declare.
14415         (mips_arch): Declare.
14416         (TARGET_OPTIONS): Add -march and -mtune.
14417
14418         * config/mips/mips.c (mips_arch_string): New.
14419         (mips_arch): New.
14420         (override_options): Handle -march for codegen and -mtune
14421         for scheduling. Use mips_arch. Move tx39 target default here.
14422         (mips_parse_cpu): Move error message to override_options.
14423
14424         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
14425
14426         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
14427
14428         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
14429         (MIPS Options): Ditto.  Change mcpu entry to historical text.
14430
14431 2001-07-05  H.J. Lu  (hjl@gnu.org)
14432
14433         * config/mips/mips.c (mips_parse_cpu): New function to parse
14434         -march=*/-mcpu=*.
14435
14436 2001-07-05  Jim Wilson  <wilson@redhat.com>
14437
14438         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
14439         * config/ia64/t-ia64: Likewise.
14440         (LIB1ASMFUNCS): Update comment.
14441
14442 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
14443
14444         * doc/install.texi (Install GCC: Binaries): Fix typo.
14445
14446 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14447
14448         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
14449         reference using the stack pointer, adjust it since we push Y
14450         temporarily.
14451         ("*ashrsi3"): Likewise.
14452         ("*lshrsi3"): Likewise.
14453
14454 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14455
14456         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
14457         when -fomit-frame-pointer is used.
14458
14459 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
14460
14461         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
14462         (try_redirect_by_replacing_jump): Reverse updating properly the
14463         count and frequency information.  Reverse removing cc0 setter.
14464         (forwarder_block_p): Reverse fixing for fallthru blocks.
14465
14466 2001-07-05  DJ Delorie  <dj@redhat.com>
14467
14468         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
14469         (translate_options): If the above is defined, use it to map
14470         given options to new options.
14471         * doc/tm.texi: Document it.
14472
14473 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
14474             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14475
14476         * doc/invoke.texi (Optimize Options): Document that -fgcse may
14477         cause programs using computed gotos to run more slowly.
14478
14479 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14480
14481         * doc/install.texi (Specific): Markup, spelling and typo fixes.
14482         Fixed sorting.
14483         Consistently require binutils 2.11.2, not prereleases.
14484         (Specific, decstation-*): Canonicalize as mips-dec-*.
14485         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
14486         always necessary.
14487         (Specific, m68k-altos): Removed reference to README.altos, deleted.
14488         (Specific, mips-*): Reword MIPS C compiler requirements.
14489         (Specific, powerpc*-*-*): New, mention --with-cpu once.
14490         (Specific, sunv5): Removed, obsolete.
14491
14492 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
14493
14494         * dwarf2out.c (output_loc_list): Use an all ones mask for
14495         .text asm output and don't rely on long long
14496         literals. Reformat some long lines.
14497
14498 2001-07-05  Andreas Jaeger  <aj@suse.de>
14499
14500         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
14501         section.
14502
14503 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
14504
14505         * dwarf2out.c (dwarf2out_define): Update comment.
14506         (dwarf2out_undef): Ditto.
14507         (dwarf2out_start_source_file): Ditto.
14508         (dwarf2out_end_source_file): Ditto.
14509         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
14510         since we never call the start/end debug hook for the primary file.
14511
14512 2001-07-04  Kazu Hirata  <kazu@hxi.com>
14513
14514         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
14515         from shll.
14516
14517 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
14518
14519         * cppinit.c (remove_dup_dirs): Inform if a system include
14520         directory is being reordered.
14521         * doc/invoke.texi (Directory Options): GCC warns if you hide a
14522         system include.
14523         * doc/cpp.texi (Search Paths): Likewise.
14524         * doc/gcc.texi (Interoperation): Remove information about
14525         -I/usr/include.
14526
14527 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
14528
14529         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
14530         (VARRAY_TOP_CHAR_PTR): Likewise.
14531
14532 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14533
14534         * gcc.c (process_command): Don't assign elements of a const char*.
14535
14536 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14537
14538         * emit-rtl.c (change_address): Don't abort if invalid address while
14539         reload is in progress.
14540
14541 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
14542
14543         * c-lex.c (cb_file_change): Pass line number to
14544         debug_start_source_file.
14545         (cb_undefine): Pass correct line number to debug_undef.
14546
14547         * toplev.c (debug_start_source_file): Add line number to
14548         parameters. Pass it along to dwarf2out_start_source_file.
14549         (decode_g_option): Stop resetting debug level back to normal when
14550         we change debug formats, unless the current level is
14551         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
14552         3).
14553
14554         * toplev.h (debug_start_source_file): Add line number to
14555         parameters.
14556
14557         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
14558         parameters.
14559
14560         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
14561         parameters.
14562         Output debug_macinfo data for starting file if requested.
14563         (dwarf2out_end_source_file): Output debug_macinfo data for ending
14564         file if requested.
14565         (dwarf2out_define): Output debug_macinfo data for defining a macro
14566         if requested.
14567         (dwarf2out_undef): Output debug_macinfo data for undefining a
14568         macro if requested.
14569         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
14570         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
14571         (macinfo_section_label): New. DWARF2 macro info section label.
14572         (dwarf2out_init): If we want macro info, output the start label
14573         for the section.
14574         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
14575         attribute to the compilation unit die pointing to the macro info.
14576
14577 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
14578
14579         * dwarf2out.c (new_loc_list): Move to inside #ifdef
14580         DWARF2_DEBUGGING_INFO.
14581         (add_loc_descr_to_loc_list): Ditto.
14582         (output_loc_list): Ditto.
14583         Also, fix thinko in curr not being initialized.
14584         (gen_internal_sym): Ditto.
14585
14586 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14587
14588         * emit-rtl.c (replace_equiv_address): New function.
14589         * expr.h (replace_equiv_address): New declaration.
14590         * explow.c (validize_mem): Call it instead of change_address and
14591         also call if -fforce-addr and address is constant.
14592         * expr.c: Replace more calls to change_address with adjust_address
14593         and/or replace_equiv_address or to validize_mem.
14594         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
14595         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
14596         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
14597         * config/i370/i370.md, config/i860/i860.md: Likewise.
14598         * config/i960/i960.md, config/mips/mips.c: Likewise.
14599         * config/mips/mips.md, config/pa/pa.md: Likewise.
14600         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
14601         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
14602
14603 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14604
14605         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
14606
14607         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
14608         function.
14609
14610 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
14611
14612         * doc/include: New directory.
14613         * doc/fdl.texi: Move to doc/include/fdl.texi.
14614         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
14615         * doc/include/funding.texi, doc/include/gpl.texi: New files.
14616         * doc/gcc.texi: Use funding.texi and gpl.texi.
14617         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
14618         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
14619         Update dependencies and use -I $(docdir)/include.
14620
14621 2001-07-04  Anthony Green  <green@redhat.com>
14622
14623         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
14624
14625 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14626
14627         * doc/install.texi (sparc64-*-*): Remove garbage.
14628
14629 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
14630
14631         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
14632         Fix typo in last change to use adjust_address.
14633
14634 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14635
14636         * doc/install.texi (Specific): Update information for *-*-solaris*.
14637
14638 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14639
14640         * explow.c (plus_constant_wide): Reinitialize Y for restart.
14641
14642 2001-07-03  Stan Shebs  <shebs@apple.com>
14643
14644         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
14645         case for flag_no_mach_text_sections.
14646         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
14647         * config/darwin.c (flag_no_mach_text_sections): Remove.
14648         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
14649
14650 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14651
14652         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
14653         and avoid checking for constant as first operand.
14654         * recog.c (find_constant_term_loc): No longer static.
14655         (adj_offettable_operand): Delete.
14656         * rtl.h (adj_offsettable_operand): Delete declaration.
14657         (find_constant_term): Add declaration.
14658         * caller-save.c: Replace calls to adj_offsettable_operand with calls
14659         to adjust_address.
14660         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
14661         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
14662         * config/i386/i386.c, config/i386/i386.md: Likewise.
14663         * config/i860/i860.c, config/i960/i960.c: Likewise.
14664         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
14665         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
14666         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
14667         * config/mips/mips.c, config/mips/mips.md: Likewise.
14668         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
14669         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
14670         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
14671         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
14672         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
14673         * config/ns32k/ns32k.md: Likewise.
14674
14675 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
14676
14677         * rtl.c (copy_rtx): Handle 'T' format letter.
14678         * gensupport.c (collect_insn_data): Likewise.
14679         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
14680
14681 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
14682
14683         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
14684         -B option.  Use 'dir' not 'foo' as example directory name.
14685
14686 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14687
14688         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14689         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
14690
14691 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
14692
14693         * doc/cppinternals.texi: Improve formatting and logical markup.
14694
14695 2001-07-03  Andreas Jaeger  <aj@suse.de>
14696
14697         * Makefile.in (insn-recog.o): Add dependency on reload.h.
14698
14699         * genrecog.c (write_header): Include reload.h for prototypes in
14700         insn-recog.c.
14701
14702 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14703
14704 config:
14705         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
14706         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
14707         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
14708         i386_pe_valid_type_attribute_p): Add.
14709         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
14710         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
14711
14712 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14713
14714         * explow.c (plus_constant_wide, case LO_SUM): New case.
14715         (plus_constant_for_output_wide): Delete.
14716         * rtl.h (plus_constant_for_output): Delete.
14717         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
14718         instead of plus_constant_for_output.
14719         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
14720         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
14721         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
14722         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
14723         * config/sparc/sparc.md: Likewise.
14724         Convert some change_address calls to adjust_address.
14725
14726 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
14727
14728         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
14729         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
14730         documentation of -std and -Wwrite-strings.
14731
14732 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
14733
14734         * cse.c (canon_hash): Don't register registers in very small
14735         register classes, as extending their lifetime might cause
14736         reload to fail.
14737
14738 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
14739
14740         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
14741
14742         * flow.c (forwarder_block_p): Fix for fallthru blocks.
14743         (try_redirect_by_replacing_jump): Update properly the count
14744         and frequency information.
14745
14746 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
14747
14748         * toplev.c (dump_file_index): Move SSA dumps just after first
14749         jump dump.
14750         (dump_file): Corresponding changes.
14751         (rest_of_compilation): Move SSA path to just after the first
14752         jump pass.
14753         * doc/gcc.texi (Passes): Update due to movement of SSA path.
14754         * doc/invoke.texi: Update dump file #s as they were completely
14755         out of date with reality.
14756
14757 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
14758
14759         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
14760
14761         * expr.c (emit_move_insn_1): Deal with non-default
14762         STACK_PUSH_CODE.
14763
14764         * expr.c (emit_single_push_insn): Fix warning.
14765
14766 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
14767
14768         * expr.c (emit_move_insn_1): Avoid modifying
14769         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
14770
14771 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14772
14773         * emit-rtl.c (adjust_address): New function.
14774         * expr.h (adjust_address): Add declaration.
14775         * builtins.c: Replace some calls to change_address with calls to it
14776         or to validize_mem.
14777         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
14778         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
14779         * config/arm/arm.c, config/convex/convex.c: Likewise.
14780         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
14781         * config/i386/i386.c, config/i386/i386.md: Likewise.
14782         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
14783         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
14784         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
14785         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
14786         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
14787
14788 2001-07-02  Jim Wilson  <wilson@redhat.com>
14789
14790         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
14791
14792 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
14793
14794         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
14795         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
14796
14797 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
14798
14799         * cppinit.c (lang_defaults): New table.
14800         (set_lang): Just read from lang_defaults into the live options
14801         structure.
14802
14803 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
14804
14805         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
14806         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
14807         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
14808
14809 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14810
14811         * doc/install.texi: Various spelling and markup fixes.
14812         (Installing GCC): Component specific installation instructions are
14813         gone.
14814         Fix reference.
14815         Warn about removing old install dir in the presence of shared libs.
14816         (Configuration): Invoke with options target to match configure
14817         --help.
14818         Consistently refer to gas, gld pathnames.
14819         Invert --enable-multilib documentation.
14820         Remove references to old compiler versions.
14821
14822 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14823
14824         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
14825
14826 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14827
14828         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
14829         section.
14830         (Specific, mips*-sgi-irix5): Note IDO download.
14831         Reworded MIPS C hints.
14832         Use GNU as instead of GAS.
14833         Markup fixes.
14834         Removed SGI Freeware reference, IRIX 6 only.
14835         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
14836         Note N64 library requirement/workaround.
14837         Update O32 hints.
14838         Complete list of structure passing bug victims.
14839
14840 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14841
14842         * doc/install.texi: Remove CVS Id.
14843
14844 2001-07-02  Andreas Jaeger  <aj@suse.de>
14845
14846         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
14847         (find_inherently_necessary): Remove unused variable.
14848
14849 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
14850
14851         * c-common.h (TDI_inlined): New ast dump phase.
14852         (dump_flag_name): New function.
14853         * c-dump.c (dump_files): Add inlined phase.
14854         (dump_flag_name): Define.
14855         * doc/invoke.texi (-fdump-ast-inlined): Document.
14856
14857 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14858
14859         * stor-layout.c (layout_decl): Revert change to handling of alignment
14860         in packed types.
14861
14862 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14863
14864         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
14865         for FIELD_DECL.
14866
14867 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
14868
14869         * doc/tm.texi (FUNCTION_ARG): Document that the last call
14870         is special.
14871
14872 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
14873
14874         * tlink.c (recompile_files): Remove COMPILER_PATH and
14875         LIBRARY_PATH from the environment.
14876
14877 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
14878
14879         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
14880         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
14881         enumerators.
14882         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
14883
14884         * c-parse.in (OBJC_STRING): Kill.
14885         (objc_string): Decompose to [objc_string] '@' STRING.
14886         (reswords): Take the leading '@' off all the Objective C keywords.
14887         (objc_rid_sans_at): Kill.
14888         (init_reswords): Don't initialize it.
14889         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
14890         (_yylex): Kill reconsider label.  Look ahead one token after
14891         an '@'; if we get an identifier, check whether it's an
14892         Objective C @-keyword.  If so, return the keyword.  Otherwise,
14893         put back the token and return the '@' as a terminal.
14894
14895         * cpplib.c (lex_macro_node): Remove unnecessary check for
14896         leading '@' on identifier.  Clarify control flow and commentary.
14897
14898 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14899
14900         * cse.c (new_label_ref): Variable deleted.
14901         (insert): Remove set of new_label_ref.
14902         (check_for_label_ref): New function.
14903         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
14904
14905 See ChangeLog.5 for earlier changes.