* final.c: (insn_lengths): Make it an int *, so that large jump
[official-gcc.git] / gcc / ChangeLog
bloba3af9cc248b187dd29b57230e096a093c93f9006
1 2001-11-26  Alan Modra  <amodra@bigpond.net.au>
3         * final.c: (insn_lengths): Make it an int *, so that large jump
4         tables don't overflow.
6 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
8         * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
9         (format_types): Use it for scanf.
10         (dollar_arguments_pointer_p): New.
11         (init_dollar_format_checking): Store details of which arguments
12         are pointers.
13         (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
14         (finish_dollar_format_checking): Take extra parameter
15         pointer_gap_ok.  Treat unused arguments differently if
16         pointer_gap_ok and the unused arguments are pointers.
17         (check_format_info_main): Pass extra argument to
18         finish_dollar_format_checking.
19         * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
20         unused arguments are present between used arguments with operand
21         numbers.
23 2001-11-25  Daniel Berlin  <dan@cgsoftware.com>
25         * df.c: Add prototypes for hybrid_search_bitmap and
26         hybrid_search_sbitmap. 
27         (hybrid_search_bitmap): New function.
28         (hybrid_search_sbitmap): New function.
29         (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
30         (iterative_dataflow_bitmap): Ditto.
31         
32 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
34         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
35         address computations.
37 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
39         * config/m68hc11/m68hc11.c (d_register_operand): Must accept
40         register b (low part of d).
42 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
44         * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
45         passed to mcount.
47 Sun Nov 25 06:22:09 2001  Douglas B. Rupp  <rupp@gnat.com>
49         * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
50         * config/alpha/x-vms: New file, to compile the above.
51         * config.gcc (alpha*-dec-vms*): Add x-vms.
53 2001-11-24  Hans-Peter Nilsson  <hp@axis.com>
55         * genextract.c (main): Set ro_loc for peepholes.
57 Sat Nov 24 17:04:10 2001  Douglas B. Rupp  <rupp@gnat.com>
59         * fix-header.c (main): Move inf_buffer termination and inf_limit
60         calculation to after read.
62         * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
63         (__UNIX_FOPEN): Define.
65 Sat Nov 24 16:11:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
67         * function.c (assign_stack_temp_for_type): Clear alias set before
68         setting new one.
70 2001-11-23  David Edelsohn  <edelsohn@gnu.org>
72         * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
73         format.
74         * rs6000.md (cmptf): Fix typo.
76 2001-11-23  Richard Sandiford  <rsandifo@redhat.com>
78         * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
79         * varasm.c (output_constructor): Use assemble_integer rather
80         than ASM_OUTPUT_BYTE.
82 2001-11-23  Andreas Jaeger  <aj@suse.de>
84         * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
85         extension.
87 2001-11-23  Nick Clifton  <nickc@cambridge.redhat.com>
89         * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
90         default definition.
91         (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
92         (MULTILIB_DEFAULTS): Remove previous definition.
94 2001-11-23  Neil Booth  <neil@daikokuya.demon.co.uk>
96         * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
97         * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
99 2001-11-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
101         * cris.h: Revert thinko in last patch.
103 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
105         * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
106         FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
107         cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
108         dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
109         explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
110         sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
112         * predict.c, reg-stack.c: Fix spelling errors.
114 2001-10-09  Andrew Haley  <aph@redhat.com>
116         * calls.c (check_sibcall_argument_overlap): Use slot_offset for
117         start of stack slot.
119 2001-11-22  Graham Stott  <grahams@redhat.com>
121         * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
122         replacement jump after original jump.
124         (verify_flow_info): Remove redundent initialisation.
125         Handle reaching end of insn list before finding a BARRIER.
126         Only issue one missing barrier diagnostic.
128 2001-11-22  Graham Stott  <grahams@redhat.com>
130         * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
132 Thu Nov 22 06:49:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
134         * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
135         insn actually does.
137 2001-11-22  Nick Clifton  <nickc@cambridge.redhat.com>
139         * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
140         Fix typo -mm32rx=> -m32rx.
142         * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
143         targets.
145         * config.gcc (xscale-coff): Add necessary header files to
146         tm_file variable.
148 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
150         * rs6000.c (output_cbranch): Use $, not %$, in output template.
152 2001-11-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
154         * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
155         (lang_type_quals): Declare.
156         (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
157         retrieve language-specific qualifiers for a type node, instead of
158         C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
159         lang_dump_tree.
160         * tree-dump.h: Rename from c-dump.h.
161         * c-common.h (C_TYPE_QUALS): Removed.
162         Move declarations for tree-dump.c interface to...
163         * tree.h: ... here. Remove lang_dump_tree.
164         * langhooks.h (struct lang_hooks_for_tree_dump): New.
165         (struct lang_hooks): Add tree_dump hooks.
166         * langhooks.c (lhd_tree_dump_dump_tree): New function.
167         (lhd_tree_dump_type_quals): New function.
168         * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
169         Declare.
170         (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
171         * Makefile.in: Move tree-dump.o to language-independent back-end.
173 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
175         * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
176         * alpha.h (DBX_REGISTER_NUMBER): Likewise.
177         * arc.h (DBX_REGISTER_NUMBER): Likewise.
178         * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
179         * avr.h (DBX_REGISTER_NUMBER): Likewise.
180         * c4x.h (DBX_REGISTER_NUMBER): Likewise.
181         * clipper.h (DBX_REGISTER_NUMBER): Likewise.
182         * convex.h (DBX_REGISTER_NUMBER): Likewise.
183         * cris.h (DBX_REGISTER_NUMBER): Likewise.
184         * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
185         * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
186         * fr30.h (DBX_REGISTER_NUMBER): Likewise.
187         * h8300.h (DBX_REGISTER_NUMBER): Likewise.
188         * i370.h (DBX_REGISTER_NUMBER): Likewise.
189         * i860.h (DBX_REGISTER_NUMBER): Likewise.
190         * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
191         * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
192         * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
193         * m32r.h (DBX_REGISTER_NUMBER): Likewise.
194         * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
195         * m88k.h (DBX_REGISTER_NUMBER): Likewise.
196         * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
197         * mcore.h (DBX_REGISTER_NUMBER): Likewise.
198         * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
199         * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
200         * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
201         * romp.h (DBX_REGISTER_NUMBER): Likewise.
202         * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
203         * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
204         * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
205         * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
206         * v850.h (DBX_REGISTER_NUMBER): Likewise.
207         * vax.h (DBX_REGISTER_NUMBER): Likewise.
208         * we32k.h (DBX_REGISTER_NUMBER): Likewise.
210         * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
211         * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
213 2001-11-21  H.J. Lu <hjl@gnu.org>
215         * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
217 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
219         * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
220         emit_cmp_and_jump_insns.
222         * stormy16.c (xstormy16_expand_builtin_va_arg,
223         xstormy16_expand_casesi): Likewise.
225 Wed Nov 21 17:37:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
227         * function.c (keep_stack_depressed): Major rework.
228         (handle_epilogue_set, emit_equiv_load): New functions.
229         (thread_prologue_and_epilogue_insns): keep_stack_depressed now
230         has return value.
231         * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
232         * rtl.h (SET_IS_RETURN_P): New macro.
234         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
235         and also support TREE_ADDRESSABLE.
236         * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
238 2001-11-21  David Edelsohn  <edelsohn@gnu.org>
240         * rs6000.md (cmptf_internal1): Replace %$ with $.
242 Wed Nov 21 16:44:01 2001  Douglas B. Rupp  <rupp@gnat.com>
244         * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
245         (read_include_file): Use STAT_SIZE_TOO_BIG.
247         * cppinit.c (INO_T_COPY): Define.
248         (INO_T_EQ): Uppercase parameters.
249         (append_include_chain): Use INO_T_COPY.
251 2001-11-21  Richard Sandiford  <rsandifo@redhat.com>
253         * cfg.c: Fix typos and formatting in the introductory comment.
255 Wed Nov 21 12:38:37 CET 2001  Jan Hubicka
257         * profile.c (compute_branch_probabilites):  Compute probabilities
258         for entry/exit edges; estimate probabilities for zero counts.
260 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
262         * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
263         to emit_library_call.
264         * function.c (expand_main_function, expand_function_start,
265         expand_function_end): Likewise.
266         * profile.c (output_func_start_profiler): Likewise.
267         * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
268         second argument to emit_library_call.
269         * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
270         as second argument to emit_library_call.
271         * calls.c (emit_library_call): Update fn_type description.
273 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
275         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
276         if fndecl is still DECL_INLINE and has DECL_RESULT.
278 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
280         * clipper.c (clipper_movstr): Avoid uninitialized warning.
281         * i960.c (is_mask, legitimize_address): Likewise.
282         * m88k.c (m88k_expand_prologue): Likewise.
283         * m88k.md: Likewise.
284         * mcore.c (emit_new_cond_insn): Likewise.
285         * stormy16.c (xstormy16_emit_cbranch): Likewise.
287 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
289         * config.gcc: Delete powerpcle-*-solaris2* stanza.
290         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
291         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
292         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
293         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
294         config/rs6000/t-ppcos: Expunge all references to Solaris.
296         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
298         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
299         output templates.
300         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
301         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
303 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
305         * sh.md: Avoid uninitialized warnings.
306         * vax.c (vax_rtx_cost): Likewise.
308 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
310         * rs6000.c (direct_return): Check if we are saving altivec
311         registers.
312         (first_altivec_reg_to_save): New.
313         Updated stack frame layout comments.
314         (rs6000_stack_info): Calculate altivec register save size.
315         Save link register if we saved some altivec registers.
316         (rs6000_stack_info): Align save size to 16 if altivec abi or
317         abi_darwin.
318         (rs6000_stack_info): Calculate altivec register offsets.
319         (rs6000_stack_info): Add altivec info to save_size.
320         (debug_stack_info): Add altivec debug info.
321         (rs6000_emit_prologue): Save altivec registers and vrsave.
322         (compute_vrsave_mask): New.
323         (altivec_expand_builtin): Remove unused variables.
324         (rs6000_parse_abi_options): Add static qualifier.
325         (rs6000_expand_builtin): Remove unused parameters.
326         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
327         (altivec_init_builtins): Same.
328         (is_altivec_return_reg): New.
329         (vrsave_operation): New.
330         (ALTIVEC_REG_BIT): New.
331         (generate_set_vrsave): New.
333         * rs6000.md (get_vrsave): New.
334         (set_vrsave): New.
335         (*set_vrsave_internal): New.
337         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
338         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
339         altivec_padding_size, vrsave_mask.
340         (TOTAL_ALTIVEC_REGS): New.
341         (EPILOGUE_USES): Add VRSAVE_REGNO.
343 2001-11-20  Jeff Law <law@redhat.com>
345         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
346         exit label as necessary.
348 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
350         * reload1.c (elimination_effects): Use function_invariant_p
351         instead of CONSTANT_P when considering register equivalences.
353 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
355         * config.gcc: Add FreeBSD/PowerPC target.
356         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
357         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
358         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
359         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
360         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
361         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
362         freebsd-spec.h to tm_file.
363         (rs6000-*-lynxos*): Add lynx.h to tm_file.
364         * config/freebsd.h: Tidy up.
365         (USING_CONFIG_FREEBSD): Define.
366         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
367         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
368         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
369         (TARGET_HAS_F_SETLKW): Define.
370         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
371         * config/freebsd-spec.h: New file.
372         * config/rs6000/freebsd.h: New file.
373         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
374         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
375         USING_SVR4_H to know when to turn on ELF support.
376         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
377         define only if not already defined.
378         Add FreeBSD support.
379         * config/rs6000/aix.h (TARGET_VERSION): Define.
380         * config/rs6000/beos.h: Likewise.
381         * config/rs6000/darwin.h: Likewise.
382         * config/rs6000/mach.h: Likewise.
383         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
384         Don't include lynx.h directly.
386 2001-11-20  Graham Stott  <grahams@redhat.com>
388         * unwind-dw2-fde.c (__deregister_frame_info_bases):
389         Fix lossage in last change return OB.
391 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
393         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
394         Remove unneeded exit related macros.
396 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
398         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
400         * rs6000.c (rs6000_emit_move): Add TFmode case.
401         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
402         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
403         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
404         * rs6000.h: ... to here.
405         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
406         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
407         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
409 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
411         * emit-rtl.c (get_mem_attrs): Fix typo.
413 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
415         * c-lang.c (finish_file): Backout 2001-11-16
416         changes, instead set DECL_DEFER_OUTPUT for static inline functions
417         before calling c_expand_deferred_function.
419 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
421         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
422         Don't register empty .eh_frame sections.
423         (__deregister_frame_info_bases, __deregister_frame): Don't
424         unregister them either.
426 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
428         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
429         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
430         * configure: Regenerate.
431         * config.in: Add dummy definitions of new flags.
432         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
433         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
434         * gcc.c (ASM_DEBUG_SPEC): New macro.
435         (asm_debug): New static variable.
436         (default_compilers): Add asm_debug when assembling from
437         user input.
438         (static_specs): Add asm_debug.
440 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
442         * config.gcc (*-*-freebsd*): Remove configuration block.
444 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
446         bootstrap/4422
447         * configure.in: Setup ability to run ./stage[1234]/xgcc in
448         fixinc *as if* it were a proper lang subdirectory.
449         * configure: Rebuilt.
451 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
453         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
455 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
457         * 1750a.md: Don't use hex format for a const_int.
459 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
461         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
463 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
465         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
466         defined (prevents link errors when gettext isn't in the system
467         library).
469 2001-11-19  DJ Delorie  <dj@redhat.com>
471         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
472         (validate_const_int): New.
473         (read_rtx): Validate constant integers.
474         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
476 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
478         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
480 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
482         * toplev.c (DUMPFILE_FORMAT): Define default.
483         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
484         (close_dump_file, compile_file): Likewise.
485         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
486         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
488 2001-11-19  Jeff Law <law@redhat.com>
490         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
491         a nop-jump.
493 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
495         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
496         Don't fall off the base token run.
498 2001-11-19  Jason Wilkins <fenix@io.com>
500         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
502 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
504         * tree.def (VIEW_CONVERT_EXPR): New tree code.
505         * tree.h (handled_component_p): New declaration.
506         * alias.c (handled_component_p): Move function from here ...
507         * expr.c (handled_component_p): ... to here and non longer static.
508         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
509         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
510         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
511         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
512         (expand_expr, case VIEW_CONVERT_EXPR): New case.
513         (expand_expr, cse ADDR_EXPR): No need to copy if already
514         BIGGEST_ALIGNMENT.
515         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
516         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
517         (output_constant): Handle VIEW_CONVERT_EXPR.
518         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
519         Add new case for VIEW_CONVERT_EXPR.
521 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
523         * a29k/unix.h (ASM_FILE_START): Const-ify.
524         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
525         * i386/isc.h (ASM_FILE_START): Const-ify.
526         * i386/sun386.h (ASM_FILE_START): Likewise.
527         * m32r.md: Likewise.
528         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
529         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
530         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
531         * mn10200.md: Initialize variable.
533 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
535         * gcse.c (try_replace_reg): Copy RTX before creating note.
537         * df.h (df_ref_flags): New uenum.
538         (DF_REF_FLAGS): New macro.
539         (struct ref): Add field "flags".
540         * df.c (HANDLE_SUBREG): Remove.
541         (df_ref_create): Likewise; set flags field of ref.
542         (df_def_record_1): Strip down read_write subreg; remove
543         commented out code; set READ_WRITE flag.
544         (read_modify_subreg_p): New static function.
545         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
546         new argument "flags".
547         (df_insn_refs_record): Update call of df_uses_record.
548         (df_insn_modify): Avoid #if 0 around comment.
549         (df_dump): Dump the read/write flag.
551         * predict.c (propagate_freq): Make cyclic_probability and frequency
552         volatile
554         * i386.c (ix86_cc_mode): Accept USE.
556         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
557         jump is turned into simplejump.
559 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
561         * doc/fragments.texi, doc/trouble.texi: Remove links to old
562         installation chapter.
563         * doc/gcc.texi: Don't claim that this manual documents
564         installation.  Mark Installation menu entry as being out of date.
566 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
568         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
569         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
570         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
572 2001-11-19  Jason Merrill  <jason@redhat.com>
574         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
575         cur_token, not after.
577         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
578         Lose ASM_OUTPUT_CONSTRUCTOR.
579         * system.h: Poison it and INT_ASM_OP.
580         * c-lang.c (finish_file): Don't check for it.
581         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
583 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
585         * mmix.c (mmix_cc1_ignored_option): Const-ify.
586         (mmix_init_machine_status): Make static to match declaration.
587         (mmix_unique_section): Const-ify.
588         (mmix_output_quoted_string): Avoid automatic aggregate
589         initialization.
590         (mmix_output_register_setting): Likewise.
591         (mmix_output_shiftvalue_op_from_str): Likewise.
593         * mmix.h (mmix_cc1_ignored_option): Const-ify.
594         (ASM_OUTPUT_BYTE): Fix format specifier warning.
595         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
597 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
599         PR c/4448
600         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
601         name __objc_thread_exit_status so that it matches the
602         variable defined in objc/thr.h.
604 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
606         PR bootstrap/4020
607         * mklibgcc.in: Add missing semi-colons.
608         * Makefile.in: Same.
610 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
612         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
613         after re-laying out decl in incomplete case.
614         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
616 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
618         * doc/install-old.texi: Move some sections out to ...
619         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
620         ... here.  New files.  Make into chapters rather than sections.
621         * doc/gcc.texi: Include the new files and add menu entries for
622         them.
623         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
625 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
627         * tree.h (TYPE_ALIGN_OK): New flag.
628         * emit-rtl.c (set_mem_attributes): Handle it.
629         * expr.c (emit_single_push_insn): Only set to alias set 0 if
630         doing sibcall optimization.
631         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
632         when make temporary.
633         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
634         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
636         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
638 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
640         * c-decl.c (c_decode_option): Give deprecation warning for
641         -traditional.
642         * doc/invoke.texi (-traditional): Note that this option is
643         deprecated.
645 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
647         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
648         arg to HOST_WIDE_INT, not long.
650         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
651         (HAS_INIT_SECTION): Define.
652         (REAL_ARITHMETIC): Don't undefine.
654 2001-11-18  Egor Duda  <deo@logos-m.ru>
656         * config/i386/cygwin.h: Strip leading '*' from name, if any.
658 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
660         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
661         * c-common.c: Include diagnostic.h.
662         (c_common_finish): New.
663         * c-common.h (c_common_finish): New.
664         * c-lang.c (LANG_HOOKS_FINISH): Override.
665         * c-parse.in: Don't include diagnostic.h.
666         (finish_parse): Remove.
667         * langhooks.h: Update comments.
668         * toplev.c (lang_dependent_init): New prototype.
669         (finalize): New.
670         (compile_file): Split cleanup code out to finalize.
671         (lang_dependent_init): Stop if lang_hooks.init fails.
672         (toplev_main): Update.
673         * tree.h (finish_parse): Remove.
674 objc:
675         * objc-act.c (LANG_HOOKS_FINISH): Override.
677 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
679         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
680         * config/alpha/vms_tramp.asm: New file.
681         * config/alpha/vms-tramp.asm: Removed.
683 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
685         * c-common.c (struct disabled_builtin, disabled_builtins,
686         disable_builtin_function, builtin_function_disabled_p): New.
687         (builtin_function_2): Check for disabled built-in functions.
688         * c-common.h (disable_builtin_function): Declare.
689         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
690         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
691         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
693 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
695         PR target/4606
696         * config.gcc: Remove reference to va-clipper.h.
698 2001-11-17  Stan Shebs  <shebs@apple.com>
700         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
701         AltiVec-related bitfields.
703 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
705         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
706         (mark_eh_region, case ERT_UKNONW): New case.
708 2001-11-17  Christopher Faylor  <cgf@redhat.com>
709             Corinna Vinschen  <vinschen@redhat.com>
711         * config/i386/cygwin.h: Search target specific include directory for
712         w32api stuff, if appropriate.
714 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
716         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
718 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
720         * config/rs6000/rs6000.md: Change all ldvx to lvx.
722 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
724         * gensupport.c (process_rtx): Don't assume filename is the first
725         argument of any rtl.
727 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
729         * vax-protos.h (reg_was_0_p): New prototype.
730         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
731         * vax.c (follows_p, reg_was_0_p): New functions.
733 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
735         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
736         (casesi1): Likewise.  Define new pattern which arises by simplification
737         when operand 1 is a constant int.  Correct pattern which arises by
738         simplification when operand 1 is zero.
740 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
742         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
743         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
744         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
745         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
746         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
747         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
748         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
749         * config/arm/aof.h: Don't include arm.h.
750         * config/arm/aout.h: Likewise.
751         * config/arm/coff.h: Don't include semi.h and aout.h.
752         * config/arm/elf.h: Don't include aout.h.
753         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
754         (TARGET_VERSION): Undef before defining.
755         (ARM_OS_NAME): Likewise
756         (TARGET_DEFAULT): Likewise
757         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
758         * config/arm/pe.h: Don't include arm/coff.h.
759         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
760         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
761         * config/arm/riscix1-1.h: Likewise.
762         * config/arm/rix-gas.h: Don't include riscix.h.
763         (DBX_CONTIN_LENGTH): Undef before defining.
764         * config/arm/semi.h: Don't include aout.h.
765         * config/arm/semiaof.h: Don't include aof.h.
766         * config/arm/strongarm-coff.h: Don't include coff.h.
767         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
768         * config/arm/vxarm.h: Don't include arm/coff.h.
769         * config/arm/xscale-coff.h: Don't include coff.h.
771 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
773         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
774         emit_cmp_insn.
776 2001-11-16  Andreas Jaeger  <aj@suse.de>
778         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
779         to ....
780         (fixup_fallthru_exit_predecessor): ... this.
781         Change callers and prototype.
783 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
785         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
786         hand; don't use gen_setcc_2.
787         (ix86_expand_builtin): Fix pshufw.
788         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
789         case UNORDERED to emit the right assembler instruction.
790         (mmx_pshufw): Lose operand 2.
791         (cvtsi2ss): Fix representation.
792         From Graham Stott:
793         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
795 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
797         * doc/include/linux-and-gnu.texi: Remove.
798         * doc/gnu.texi: New.
799         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
800         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
802 2001-11-16  Kazu Hirata  <kazu@hxi.com>
804         * config/a29k/a29k.c: Fix comment formatting.
805         * config/a29k/a29k.h: Likewise.
806         * config/arc/arc.c: Likewise.
807         * config/arc/arc.h: Likewise.
808         * config/vax/vax.c: Likewise.
809         * config/vax/vax.h: Likewise.
810         * config/we32k/we32k.c: Likewise.
811         * config/we32k/we32k.h: Likewise.
813 2001-11-16  Jeff Law  <law@redhat.com>
815         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
816         creating a new jump insn.
818 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
820         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
821         copy misaligned data.
822         * varasm.c (assemble_variable): Set alignment into MEM when changed.
824 2001-11-16  Graham Stott  <grahams@redhat.com>
826         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
827         OPALIGN type.
829 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
831         * except.c: Support for catching a list of types with a single handler
832         (struct eh_region): Change type and filter to lists for catch regions.
833         (mark_eh_region): Mark the filter list for GC also.
834         (expand_start_catch): Always build a list if argument not NULL and
835         register each type of the list through add_type_for_runtime.
836         (duplicate_eh_region_1): Change type into type_list for catch regions.
837         (assign_filter_values): Assign a filter to each type associated with a
838         catch region. Assign filter for NULL types in a unique entry in the
839         filter list.
840         (build_post_landing_pads): Emit compare and jump for each filter of
841         the list associated with a catch region.
842         (reachable_next_level): When the type thrown is known, stop the search
843         as soon as one type within a catch list matches. Also, a handler is
844         potentially reachable only if at least one of the types it catches
845         has not been previously caught.
846         (collect_one_action_chain): Retrieve the filter for a NULL type list
847         from the first filter list entry. For non NULL type lists, add an
848         action record for every filter assigned.
849         * except.h: Reflect changes in comment before expand_start_catch.
851 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
853         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
854         BLKmode.
856 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
858         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
860 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
862         * c-lang.c (finish_file): Don't emit static inline functions if
863         they weren't referenced.
865 2001-11-15  Stan Shebs  <shebs@apple.com>
867         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
869 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
871         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
872         call.
873         * config/i386/i386.md: Likewise.
875 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
877         * timevar.c (rtl.h): Include so get fancy abort.
879 2001-11-15  Dale Johannesen  <dalej@apple.com>
881         * config/darwin.h (SELECT_RTX_SECTION):  Force address
882         initializers into 'const' section
883         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
884         if_then_else to match result, not operands
886 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
888         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
889         * emit-rtl.c (change_address): Fix typo in default alignment.
890         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
891         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
892         * rtl.h (REGNO_PTR_FRAME_P): New macro.
894         * expr.c (store_field): Pass tree instead of max size; callers changed.
895         Change handling of alignment.
896         Only copy to_rtx if is TARGET.
897         (expand_expr_unaligned): Delete; callers now use expand_expr.
898         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
899         (expand_assignment): Change handling of alignment.
900         Only copy to_rtx if was original.
901         (get_inner_reference): No longer return alginment; callers changed.
902         (expand_expr, case COMPONENT_REF): Change handling of alignment.
903         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
904         (compare_from_rtx): Delete ALIGN parm; all callers changed.
905         (do_compare_rtx_and_jump): Likewise.
906         * expr.h: Reflect above changes.
907         * tree.h: Likewise.
908         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
909         to get_inner_reference.
910         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
911         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
912         * optabs.c: Likewise.
913         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
914         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
915         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
916         compare_rtx_and_jump, and emit_cmp_jump_insns.
917         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
918         * function.c (assign_stack_temp_for_type): No longer static.
919         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
920         (prepare_cmp_insn): Delete declaration.
921         * rtl.h (assign_stack_temp_for_type): Add declaration.
922         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
923         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
924         * config/i386/i386.c,config/mips/mips.c: Likewise.
925         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
926         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
928 2001-11-15  Stan Shebs  <shebs@apple.com>
930         * config/rs6000/rs6000.h: Fix a comment typo.
931         (RTX_COSTS): Sort processor versions better.
933 2001-11-15  Kazu Hirata  <kazu@hxi.com>
935         * config/h8300/h8300.md: Fix insn length of bit insns.
937 2001-11-15  Jason Merrill  <jason@redhat.com>
939         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
940         DIEs if there were errors in the source.
942         * config/alpha/alpha-interix.h, config/alpha/elf.h,
943         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
944         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
945         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
946         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
947         config/elfos.h, config/lynx.h, config/netware.h,
948         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
949         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
950         uses to use ASM_LONG.
952 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
954         * gensupport.c  process_include : Change call to alloca to
955         xmalloc.
957 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
959         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
960         templates.
962 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
964         * final.c (alter_subreg): If simplify_subreg can't do anything,
965         handle REG ourselves and abort for others.
967 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
969         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
970         routines.
972 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
974         * fix-header.c (read_scan_file): Update.
976 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
978         * toplev.c (toplev_main): Don't start timing until after
979         command-line options are parsed.
981 2001-11-15  Andreas Schwab  <schwab@suse.de>
983         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
984         makefile frag, not host makefile frag.
985         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
986         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
987         used.
988         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
989         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
990         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
991         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
992         * config/i386/t-dgux (STMP_FIXPROTO): Define.
993         * config/x-interix: Don't define STMP_FIXPROTO and
994         FIXPROTO_DEFINES.
995         * config/t-interix: New file, define STMP_FIXPROTO.
996         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
997         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
998         * config/t-svr4 (FIXPROTO_DEFINES): Define.
999         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
1000         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
1001         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
1002         * config/m68k/t-hp3200: Renamed from x-hp3200.
1003         * config/i370/t-oe: Renamed from x-oe.
1004         * config/mips/t-iris: Renamed from x-iris.
1005         * config/pa/t-bsd: Renamed from x-pa.
1006         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
1007         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
1008         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
1009         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
1010         config/rs6000/x-cygwin: Remove files.
1012         * configure.in: Check for target objdump and use that in eh_frame
1013         optimization test.
1014         * configure: Regenerated.
1016 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
1018         * jump.c (squeeze_notes): Return true if no real insns were found.
1019         * rtl.h (squeeze_notes): Adjust prototype.
1020         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
1021         squeeze_notes finds no real instructions, abort.
1022         (merge_blocks_move_successor_nojumps): Likewise.
1023         * loop.c (find_and_verify_loops): Likewise.
1024         * stmt.c (expand_end_case): Likewise.
1025         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
1026         find any real instructions.
1028         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
1030         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
1031         conditional jump, request updating life into for the block
1032         containing it.  Fix a typo which prevented life info update.
1033         Clear blocks bitmap before using it.
1035 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1037         * c-common.c: Include c-lex.h.
1038         (c_common_lang_init): Change prototype.  Call init_c_lex and
1039         init_pragma from here.
1040         * c-common.h (c_common_lang_init): Change prototype.
1041         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
1042         * c-lang.c (c_init): Change prototype.  Update.
1043         (c_init_options): Update.
1044         * c-lex.c (cpp_filename): Remove.
1045         (init_c_lex): Update.  Read the main file, and get the original
1046         file name.
1047         (yyparse): Finish the command line options.
1048         * c-parse.in (c_parse_init): Call init_reswords here.
1049         (init_parse): Remove.
1050         * c-tree.h (c_init_decl_processing): New.
1051         * cpphash.c (_cpp_init_hashtable): After initializing the hash
1052         table, populate it.
1053         * cppinit.c (read_original_filename, cpp_finish_options): New.
1054         (cpp_create_reader): New prototype. Defer hash table initialization.
1055         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
1056         hash table.  Get the original filename.
1057         * cpplib.h (cpp_create_reader): Update.
1058         (cpp_start_read): Remove.
1059         (cpp_read_main_file, cpp_finish_options): New.
1060         * cppmain.c (main, do_preprocessing): Update.
1061         * langhooks.h (struct langhooks): Update init prototype.
1062         * toplev.c (general_init, parse_options_and_default_flags,
1063         process_options, lang_indpendent_init, lang_dependent_init,
1064         init_asm_output): New; perform the bulk of initialization.
1065         (compile_file): Move most of initialization to above functions.
1066         (debug_hooks): Initialize statically.
1067         (set_Wunused): Relocate.
1068         (toplev_main): Move most of initialization to other init functions.
1069         Have a clear logic flow.
1070         * tree.h (init_parse, init_decl_processing): Remove.
1071 objc:
1072         * objc-act.c (objc_init): Update prototype, combine with old
1073         init_parse.
1074         (objc_init_options): Update.
1077 2001-11-15  Andreas Jaeger  <aj@suse.de>
1079         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
1080         portability.
1081         * basic-block.h: Adjust prototype.
1083 2001-11-15  Kazu Hirata  <kazu@hxi.com>
1085         * config/rs6000/aix31.h: Fix comment formatting.
1086         * config/rs6000/beos.h: Likewise.
1087         * config/rs6000/darwin.h: Likewise.
1088         * config/rs6000/eabi.asm: Likewise.
1089         * config/rs6000/linux.h: Likewise.
1090         * config/rs6000/linux64.h: Likewise.
1091         * config/rs6000/lynx.h: Likewise.
1092         * config/rs6000/netbsd.h: Likewise.
1093         * config/rs6000/rs6000.c: Likewise.
1094         * config/rs6000/rs6000.h: Likewise.
1095         * config/rs6000/rs6000.md: Likewise.
1096         * config/rs6000/sol2.h: Likewise.
1097         * config/rs6000/tramp.asm: Likewise.
1098         * config/rs6000/xcoff.h: Likewise.
1099         * config/rs6000/xm-beos.h: Likewise.
1101 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
1103         * rtl.def (INCLUDE) : Define.
1104         * gensupport.c  (init_include_reader, process_include,
1105         save_string) :  New functions to implement an include facility
1106         in .md files.
1107         * gensupport.h : Add prototype for init_md_reader_args.
1108         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
1109         genextract.c genflags.c genopinit.c genoutput.c
1110         genpeep.c genrecog.c: Change call to init_md_reader to
1111         init_md_reader_args.
1112         * md.texi: Document (include "path") and -I directives for RTL
1113         generation tools.
1115 2001-11-14  DJ Delorie  <dj@redhat.com>
1117         * integrate.c (get_hard_reg_initial_reg): New.
1118         * integrate.h (get_hard_reg_initial_reg): Prototype.
1119         * local-alloc.c (block_alloc): Don't tie pseudos that
1120         represent call-saved hard regs' initial values.
1122 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1124         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
1125         recursion.
1127 2001-11-14  Roger Sayle <roger@eyesopen.com>
1129         * fold-const.c (fold): Optimize strlen comparisons against zero.
1131 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
1133         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
1134         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
1135         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
1136         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
1137         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
1138         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
1139         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
1140         Include various CPU headers via tm_file.  a.out based platforms now
1141         properly include sparc/aout.h.  sol2.h usage now implies including
1142         elfos.h, svr4.h, and sparc/sysv4.h.
1143         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
1144         Also define to '1'.
1145         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
1146         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
1147         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
1148         Remove.  They are a.out specific and belong in sparc/aout.h.
1149         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
1150         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
1151         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
1152         sparc/sparc.h.
1153         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
1154         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
1155         Moved here from sparc/sparc.h.
1156         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
1157         defining.
1158         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
1159         * config/sparc/lynx.h:  Don't include lynx.h.
1160         (SELECT_SECTION): Do not undef.
1161         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
1162         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
1163         and sparc/sysv4.h.
1164         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
1165         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
1166         sparc/aout.h now.
1167         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
1168         Don't undef, there is no need.
1169         * config/sparc/splet.h (CPP_PREDEFINES): Define.
1170         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
1171         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
1172         Don't include sparc/sparc.h.
1173         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
1174         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
1175         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
1176         elfos.h and svr4.h.
1177         (TARGET_VERSION): Define.
1178         * config/sparc/vxsim.h (TARGET_VERSION): Define.
1180 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
1182         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
1183         (cfg_layout_finalize): Use it.
1184         * bb-reorder.c (HAVE_epilogue): Remove.
1185         (make_reorder_chain): Do not care special placement of
1186         last basic block.
1188         * predict.c (expected_value_to_br_prob): Delete the note
1189         once transformed.
1191         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
1192         measure integration time separately.
1194 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1196         * function.c (struct temp_slot): ALIGN now unsigned.
1198 2001-11-14  Kazu Hirata  <kazu@hxi.com>
1200         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
1201         * config/dsp16xx/dsp16xx.h: Likewise.
1202         * config/dsp16xx/dsp16xx.md: Likewise.
1204 2001-11-14  Kazu Hirata  <kazu@hxi.com>
1206         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
1207         that deals with 7-bit shifts in HImode.
1209 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
1211         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
1212         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
1213         (final_scan_insn): Update call of alter_subreg.
1214         (cleanup_subreg_operands): Likewise.
1215         (alter_subreg): Rewrite using simplify_subreg.
1216         (output_address, output_operand): Update call of alter_subreg.
1217         * output.h (alter_subreg): Update prototype.
1218         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
1219         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
1220         * Makefile.in (final.o): Add dependency on expr.h
1222 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1224         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
1226 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
1228         * doc/install.texi (sparc-*-linux*): Mention requirements for
1229         binutils and glibc.
1231 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
1233         * Makefile.in (POD2MAN): Don't include --section=1.
1234         (manext): Rename to man1ext.  All users changed.
1235         (man7ext): New.
1236         (man7dir): New.
1237         (generated-manpages): Also depend on $(docdir)/gfdl.7,
1238         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
1239         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
1240         --section=1 in calls to $(POD2MAN).
1241         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
1242         (maintainer-clean, install, uninstall): Handle the new man pages.
1243         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
1244         (installdirs): Create man7dir.
1245         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
1246         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
1247         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
1248         the SEE ALSO man page section.
1249         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
1250         and fsf-funding(7) in the SEE ALSO man page section.
1251         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
1252         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
1253         * doc/include/fdl.texi, doc/include/funding.texi,
1254         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
1255         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
1257 2001-11-13  Richard Henderson  <rth@redhat.com>
1259         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
1260         as appropriate for the artificial decl.
1262 2001-11-13  Richard Henderson  <rth@redhat.com>
1264         * loop.c (combine_movables): Turn off combination until
1265         move_movables validation bugs are fixed.
1267 2001-11-13  DJ Delorie  <dj@redhat.com>
1269         * config.gcc (powerpc|rs6000): Set default cpp options based
1270         on --with-cpu settings.
1271         * config/rs6000/softfloat.h: New.
1273 2001-11-13  Kazu Hirata  <kazu@hxi.com>
1275         * config/h8300/h8300.c (shift_alg_si): Use special code for
1276         25-bit shifts on H8/S.
1277         (get_shift_alg): Generate special code for 25-bit shifts on
1278         H8/S.
1280 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
1282         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
1283         (adjust_automodify_address_1): New.
1284         * expr.h (adjust_address, adjust_address_nv): Adjust.
1285         (adjust_automodify_address, adjust_automodify_address_nv): Define.
1286         (adjust_address_1): Update prototype.
1287         (adjust_automodify_address_1): Add prototype.
1288         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
1289         (store_by_pieces_2): Likewise.
1291 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1293         * Makefile.in (explow.o): Now depends on ggc.h.
1294         * explow.c (ggc.h): Include.
1295         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
1297         * Makefile.in (expr.o): Depends on insn-attr.h.
1298         * expr.c (insn-attr.h): New include.
1299         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
1300         of MEM.
1301         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
1302         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
1303         clean up related usage in ADDR_EXPR.
1304         (expand_expr_unaligned): Likewise.
1306         * emit-rtl.c (change_address): Fix typo in alias setting.
1308 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1310         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
1312 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1314         PR bootstrap/3451
1315         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
1316         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
1318 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
1320         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
1321         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
1322         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
1323         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
1324         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
1325         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
1326         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
1327         sparc64-*-linux*):  Include various CPU headers via tm_file.
1328         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
1329         (SELECT_SECTION): Likewise.
1330         (SELECT_RTX_SECTION): Likewise.
1331         * config/sparc/sparc_bi.h: New file.
1332         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
1333         * config/sparc/linux-aout.h: Likewise.
1334         * config/sparc/linux.h: Don't include sparc/sysv4.h.
1335         * config/sparc/linux64.h: Likewise.
1336         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
1337         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
1338         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
1339         and dbxcoff.h
1340         (ASM_OUTPUT_IDENT): Do not #undef.
1341         (SELECT_SECTION): Likewise.
1342         (SELECT_RTX_SECTION): Likewise.
1343         * config/sparc/liteelf.h: Don't include gofast.h.
1344         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
1345         * config/sparc/lynx.h: Don't include sparc/sparc.h.
1346         * config/sparc/pbd.h: Likewise.
1347         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
1348         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
1349         * config/sparc/rtemself.h: Don't include rtems.h.
1350         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
1351         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
1352         sparc_bi.h instead.
1353         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
1354         * config/sparc/sol2.h: Include sparc/sparc.h directly.
1355         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
1356         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
1357         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
1358         * config/sparc/sp86x-elf.h: Don't include gofast.h.
1359         * config/sparc/splet.h: Don't include sparc/aout.h.
1360         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
1361         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
1362         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
1363         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
1364         * config/sparc/vxsparc64.h: Don't include gofast.h.
1365         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
1367 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
1369         * doc/standards.texi: Mention C99 TC1.
1371 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1373         * mips-protos.h (mips_output_conditional_branch): Const-ify.
1374         * mips.c (mips_output_conditional_branch): Likewise.
1376 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1378         * config/h8300/h8300.c (shift_alg_si): Use special code for
1379         15-bit logical shifts and 31-bit logical shifts.
1380         (get_shift_alg): Generate special code for 15-bit and 31-bit
1381         logical shifts.
1383 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1385         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
1386         doing 6-bit logical shifts on H8/S.
1387         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
1388         (get_shift_alg): Generate special code for 21-bit shifts on
1389         H8/S.
1391 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1393         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
1394         label.
1396 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1398         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
1399         if both size and offset known.
1401 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
1403         * config/ia64/freebsd.h: Fix misspelling.
1405 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
1407         * doc/gcc.texi: Move several chapters out to ...
1408         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
1409         doc/include/linux-and-gnu.texi, doc/interface.texi,
1410         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
1411         ... here.  New files.
1412         * doc/gcc.texi, doc/contrib.texi: Move section headings into
1413         contrib.texi.
1414         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1416 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1418         * config/alpha/alpha-interix.h: Fix comment formatting.
1419         * config/alpha/alpha.c: Likewise.
1420         * config/alpha/alpha.h: Likewise.
1421         * config/alpha/alpha32.h: Likewise.
1422         * config/alpha/freebsd.h: Likewise.
1423         * config/alpha/unicosmk.h: Likewise.
1424         * config/alpha/vms.h: Likewise.
1426 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1428         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
1430 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
1432         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
1433         numbers.
1435 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1437         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
1438         from type.
1439         (replace_equiv_address): Call update_temp_slot_address.
1441         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
1443         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
1445 2001-11-12  Kazu Hirata  <kazu@hxi.com>
1447         * config/h8300/h8300.c (shift_alg_qi): New.
1448         (shift_alg_hi): Likewise.
1449         (shift_alg_si): Likewise.
1450         (get_shift_alg): Change the type of count to unsigned int.
1451         Use the tables.
1453 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
1455         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
1456         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
1457         to decide whether to defer a function.
1458         (finish_function): Adjust.
1459         (c_expand_deferred_function): New function.
1460         * c-lang.c (deferred_fns): New variable.
1461         (c_init): Initialize it, and mark it as a root.
1462         (defer_fn): New function.
1463         (finish_file): Expand all deferred functions.
1464         * c-tree.h (defer_fn): Declare.
1465         (c_expand_deferred_function): Likewise.
1466         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
1467         * objc-act.c (deferred_fns): New variable.
1468         (objc_init): Initialize it, and mark it as a root.
1469         (defer_fn): New function.
1470         (finish_file): Expand all deferred functions.
1472 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1474         * alpha.c (unicosmk_special_name): Prototype.
1475         (unicosmk_ssib_name): Delete unused variable.
1476         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
1477         * alpha/vms.h (PREFIX): Undef before defining.
1478         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
1479         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
1480         controlling usage.  Const-ify.
1481         (alias_number): Delete unused variable.
1482         * m32r/m32r.c (m32r_sched_init): Add missing argument.
1483         (m32r_expand_block_move): Fix uninitialized warnings.
1484         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
1485         always true' warnings.
1486         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
1487         * sh/sh.c: Include "integrate.h".
1488         (output_far_jump): Fix uninitialized warning.
1489         * final.c (shorten_branches): Avoid automatic aggregate
1490         initialization.
1491         * integrate.c (subst_constants): Likewise.
1493 2001-11-11  Kazu Hirata  <kazu@hxi.com>
1495         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
1496         (get_shift_alg): Remove redundant code.
1498 2001-11-11  Kazu Hirata  <kazu@hxi.com>
1500         * config/pa/milli64.S: Fix comment formatting.
1501         * config/pa/pa-64.h: Likewise.
1502         * config/pa/pa-linux.h: Likewise.
1503         * config/pa/pa-protos.h: Likewise.
1504         * config/pa/pa.c: Likewise.
1505         * config/pa/pa.h: Likewise.
1506         * config/pa/pa32-linux.h: Likewise.
1507         * config/pa/pa32-regs.h: Likewise.
1508         * config/pa/pa64-hpux.h: Likewise.
1509         * config/pa/pa64-regs.h: Likewise.
1510         * config/pa/som.h: Likewise.
1512 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
1514         * doc/gcc.texi: Move several chapters out to ...
1515         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
1516         doc/service.texi, doc/standards.texi, doc/trouble.texi,
1517         doc/vms.texi: ... here.  New files.
1518         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1520 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
1522         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
1523         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
1524         collect2.c, combine.c, config.in, configure, configure.in,
1525         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
1526         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
1527         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
1528         spelling errors.
1530 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1532         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
1533         Adjust operand number in CONST_DOUBLE.
1535         * expmed.c (extract_bit_field): No longer pass in alignment.
1536         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
1537         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
1538         Likewise.
1539         * expr.c (store_constructor, store_constructor_field): Likewise.
1540         (store_field, emit_group_load, emit_group_store): Likewise.
1541         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
1542         (store_bit_field, extract_bit_field): Likewise.
1543         * calls.c, expr.c, function.c: Change calls to above functions.
1544         * ifcvt.c, stmt.c: Likewise.
1546         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
1547         constant and one is on frame.
1548         If know memref offset, adjust size from decl.
1550 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1552         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
1553         format specifier warning.
1554         * convex.h (ASM_OUTPUT_BYTE): Likewise.
1555         * elfos.h (ALIGN_ASM_OP): Undef before defining.
1556         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
1557         warning.
1558         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1559         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1560         * i386-interix.h (gen_stdcall_suffix): Prototype.
1561         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1562         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1563         ASM_OUTPUT_LONG_DOUBLE): Likewise.
1564         * i386/interix.c (gen_stdcall_suffix): Const-ify.
1565         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1566         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
1567         specifier warnings.
1568         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1569         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
1570         ASM_OUTPUT_LONG_DOUBLE): Likewise.
1571         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1572         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1573         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1574         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1575         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
1576         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
1577         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1578         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1579         Likewise.
1580         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
1581         Likewise.
1582         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
1583         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1584         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
1585         Likewise.
1586         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
1587         Likewise.
1588         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1589         Likewise.
1590         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
1591         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
1592         * m68k/news.h (PRINT_OPERAND): Likewise.
1593         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
1594         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
1595         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1596         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
1597         definition.
1598         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
1599         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
1600         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
1601         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
1602         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
1603         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
1604         PRINT_OPERAND): Likewise.
1605         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
1606         Likewise.
1607         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1608         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
1609         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
1610         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1611         * mips.c (mips_output_external_libcall): Mark parameter with
1612         ATTRIBUTE_UNUSED.
1613         (mips_asm_file_start): Move variable into the scope where it's
1614         used.
1615         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
1616         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1617         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
1618         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1619         * ns32k.c (print_operand): Likewise.
1620         * pa.c (print_operand, output_div_insn): Likewise.
1621         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
1622         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
1623         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
1624         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1625         specifier warnings.
1626         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1627         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1628         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
1629         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
1630         specifier warnings.
1631         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1633         * sdbout.c (sdbout_end_epilogue): Mark parameter with
1634         ATTRIBUTE_UNUSED.
1635         * varasm.c (assemble_global): Likewise.
1637 2001-11-11  H.J. Lu <hjl@gnu.org>
1639         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
1641 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
1643         * final.c (*_MAX_SKIP): Use *_max_skip variables.
1644         * flags.h (align_loops_max_skip, align_jumps_max_skip,
1645         align_labels_max_skip): New global variables.
1646         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
1647         align_labels_max_skip): New global variables.
1648         (toplev_main): Set new variables.
1649         * i386.c (override_options): Set max_skip values.
1651 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
1653         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
1654         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
1655         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
1656         don't print an @fptr for labels either.
1657         (xstormy16_output_addr_vec): Don't print @fptr here.
1658         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
1660 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
1662         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
1663         an ANSI/ISO definitino.
1664         (ssa_const_prop): Likewise.
1666 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
1668         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
1669         altivec registers.
1671 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1673         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
1674         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
1675         * cppmain.c (general_init): Call hex_init.
1676         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
1678         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
1680         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
1681         of dgux.c:output_file_start().
1683         * i386/dgux.c: Delete file.
1685 2001-11-09  Richard Henderson  <rth@redhat.com>
1687         * config/alpha/alpha.c (decl_in_text_section): New.
1688         (current_file_function_operand): Use it.
1689         (alpha_encode_section_info, alpha_end_function): Likewise.
1691 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
1693         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
1694         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
1695         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
1696         so OS specific files and use CPP_PREDEFINES for their needs.
1697         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
1698         target headers to tm_file.
1699         * config/ia64/aix.h (TARGET_VERSION): Likewise.
1700         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
1701         * config/ia64/linux.h (TARGET_VERSION): Likewise.
1702         (FUNCTION_PROFILER): Remove.
1703         * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
1704         version in config/ia64/linux.h.
1705         * config/ia64/freebsd.h: New file.
1706         * config/freebsd.h: Tidy up.
1707         (_USING_CONFIG_FREEBSD): Define.
1708         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
1709         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
1710         (FBSD_STARTFILE_SPEC): Likewise.
1711         (FBSD_ENDFILE_SPEC): Likewise.
1712         (FBSD_LIB_SPEC): Likewise.
1713         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
1714         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
1715         set an ELF-improper one.
1717 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1719         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
1720         constant can be loaded in a single instruction to a register.  When
1721         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
1722         depdi for insertion of most significant 32-bits on 64-bit hosts.
1723         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
1724         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
1725         * pa.md: New addmove pattern for adding constant_int to HImode
1726         register and moving result to HImode register.  Remove HImode HIGH
1727         and LO_SUM patterns.
1729 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1731         * Makefile.in: Update.
1732         * c-decl.c (print_lang_decl, print_lang_type): Remove.
1733         (print_lang_identifier): Rename c_print_identifier.
1734         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
1735         (print_lang_statistics, lang_print_xnode): Remove.
1736         * c-parse.in (set_yydebug): Rename c_set_yydebug.
1737         * c-tree.h (c_set_yydebug, c_print_identifier): New.
1738         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
1739         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
1740         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
1741         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
1742         (LANG_HOOKS_INITIALIZER): Update.
1743         * langhooks.h (struct lang_hooks): New members.
1744         (lang_print_tree_hook): New.
1745         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
1746         * print-tree.c: Include langhooks.h.
1747         (print_node): Update.
1748         * toplev.c (decode_d_option): Update.
1749         * tree.c: Include langhooks.h.
1750         (dump_tree_statistics): Update.
1751         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
1752         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
1753 objc:
1754         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
1755         LANG_HOOKS_SET_YYDEBUG): Override.
1756         (lang_print_xnode, print_lang_statistics): Remove.
1758 2001-11-09  Richard Henderson  <rth@redhat.com>
1760         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
1761         on the symbol string.
1763 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1765         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
1766         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
1767         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
1769         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
1771         * tlink.c (recompile_files): Copy strings passed to `putenv'.
1773 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
1775         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
1776         (TYPE_READONLY): Likewise.
1778         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
1780         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
1781         don't pass --gdwarf2 to the assembler if the compiler will also
1782         provide debug info.
1784         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
1785         Don't change INDEX.
1787 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1789         * alias.c (nonoverlapping_memrefs_p): New function.
1790         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
1792         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
1794 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
1796         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
1797         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
1798         generating altivec code.
1799         (FIXED_REGISTERS): VRSAVE is fixed.
1800         (CALL_USED_REGISTERS): VRSAVE is call used.
1802 2001-11-09  Jason Eckhardt  <jle@rice.edu>
1804         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
1805         code the branch target as ".+16/.+12", but rather use labels.
1807 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
1809         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
1810         to work around limitations of certain versions of GAS.
1812         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
1813         (muldi3): Update due to SUBREG_BYTE changes.
1814         (casesi): Similarly.
1816 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
1818         * doc/invoke.texi: Remove comment referring to -xf77-version.
1820 2001-11-09  Kazu Hirata  <kazu@hxi.com>
1822         * config/convex/convex.c: Fix comment formatting.
1823         * config/convex/convex.h: Likewise.
1825 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
1827         * Makefile.in (.po.pox): Look both in srcdir and builddir
1828         for $(PACKAGE).pot.
1829         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
1830         to the source directory.
1832 2001-11-09 Ben Elliston  <bje@redhat.com>
1833            Michael Meissner  <meissner@redhat.com>
1834            Andrew MacLeod  <amacleod@redhat.com>
1835            Richard Henderson  <rth@redhat.com>
1836            Nick Clifton  <nickc@redhat.com>
1837            Catherine Moore  <clm@redhat.com>
1839         * m32r.c: Add support for m32rx processor.
1840         * m32r.h: Ditto.
1841         * m32r.md: Ditto.
1842         * t-m32r: Ditto.
1843         * m32r-protos.h: Add prototypes for m32rx functions.
1844         * doc/invoke.texi: Document -m32rx option.
1846 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
1848         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
1849         or after reload.
1851 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1853         * doc/install.texi2html: Use $MAKEINFO --no-split.
1855 2001-11-09  Andreas Schwab  <schwab@suse.de>
1857         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
1858         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
1859         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
1860         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
1861         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
1863 2001-11-09  H.J. Lu <hjl@gnu.org>
1865         * config/mips/mips.c (mips_output_function_prologues): Cast
1866         `tsize' to long for output.
1868 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1870         * c-lang.c (LANG_HOOKS_NAME): New.
1871         (lang_hooks): Constify.
1872         (c_init_options): Update.
1873         (lang_identify): Remove.
1874         * c-parse.in (language_string): Remove.
1875         * dbxout.c: Include langhooks.h.
1876         (dbxout_symbol_location): Update.
1877         * dwarf2out.c: Include langhooks.h.
1878         (gen_compile_unit_die): Update.
1879         * dwarfout.c: Include langhooks.h.
1880         (prototyped_attribute, output_compile_unit_die): Update.
1881         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
1882         (LANG_HOOKS_INITIALIZER): Update.
1883         * langhooks.h (struct lang_hooks): New members.  Constify.
1884         * stringpool.c: Don't include toplev.h.
1885         (set_identifier_size): Remove.
1886         * toplev.c (toplev_main): Initialize identifier size.
1887         (print_version): Update.
1888         * tree.h (language_string, init_lex, lang_identify,
1889         set_identifier_size): Remove.
1890         * Makefile.in: Update dependencies.
1891         * config/darwin.c: Include langhooks.h.
1892         (func_name_maybe_scoped): Update.
1893         * config/darwin.h (ASM_END_FILE): Update.
1894         * config/nextstep.h (ASM_END_FILE): Update.
1895         * config/nextstep21.h (ASM_END_FILE): Update.
1896         * config/i386/sun386.h (ASM_END_FILE): Update.
1897         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
1898         (rs6000_output_function_epilogue): Update.
1899 objc:
1900         * objc-act.c (LANG_HOOKS_NAME): Override.
1901         (struct lang_hooks): Constify.
1902         (objc_init_options): Update.
1903         (lang_identify): Remove.
1905 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
1907         * fold-const.c (lshift_double): Honor PREC.
1908         (rshift_double): Likewise.
1910 2001-11-08  Kazu Hirata  <kazu@hxi.com>
1912         * config/1750a/1750a.c: Fix comment formatting.
1913         * config/1750a/1750a.h: Likewise.
1915 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
1917         * configure.in (--enable-languages): Be more permissive about
1918         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
1919         * configure: Regenerated.
1921 2001-11-08  Richard Henderson  <rth@redhat.com>
1923         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
1925 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
1927         * config.gcc: Rename stormy16 to xstormy16.
1928         * config/stormy16/stormy-abi: Likewise.
1929         * config/stormy16/stormy16-protos.h: Likewise.
1930         * config/stormy16/stormy16.c: Likewise.
1931         * config/stormy16/stormy16.h: Likewise.
1932         * config/stormy16/stormy16.md: Likewise.
1934 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
1936         * tree.h (TYPE_VOLATILE): Add enable-checking code.
1937         (TYPE_READONLY): Likewise.
1939 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1941         * reload1.c (reload): Don't delete equiv insn if can throw.
1943         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
1944         (clear_storage): Likewise, for OBJECT.
1946 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
1948         * pa.c (emit_move_sequence): Fix SUBREG expression to
1949         use proper byte offset when extending a constant from
1950         SImode to DImode.
1952 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
1954         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
1955         which cannot throw.
1957 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1959         * explow.c (convert_memory_address, case SUBREG): Only return
1960         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
1962 2001-11-08  Richard Henderson  <rth@redhat.com>
1964         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
1965         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
1966         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
1968 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
1970         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
1972 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
1974         * dwarf2out.c (debug_str_hash): New.
1975         (struct indirect_string_node): New.
1976         (struct dw_val_struct): Change type of val_str to it.
1977         (DEBUG_STR_SECTION_FLAGS): Define.
1978         (add_AT_string): Push string into hashtable, increment reference
1979         counter.
1980         (AT_string): Return string from ht_identifier.
1981         (AT_string_form): New.
1982         (free_AT): For dw_val_class_str, just decrement reference counter.
1983         (size_of_string): Remove.
1984         (size_of_die): Use AT_string_form to decide what size the string
1985         occupies in DIE.
1986         (size_of_pubnames): Use strlen instead of size_of_string.
1987         (value_format): Use AT_string_form for dw_val_class_str.
1988         (output_die): Output DW_FORM_strp strings using
1989         dw2_asm_output_offset.
1990         (indirect_string_alloc, output_indirect_string): New.
1991         (dwarf2out_finish): Emit .debug_str strings if there are any.
1993 2001-11-08  Andreas Franck  <afranck@gmx.de>
1995         * configure.in: Add AC_ARG_PROGRAM to support program name
1996         transformation with --program-prefix, --program-suffix and
1997         --program-transform-name.
1998         * configure: Regenerated.
1999         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
2000         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
2001         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
2002         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
2003         program_transform_name the way suggested by autoconf.
2004         (GCC_TARGET_INSTALL_NAME): Define.
2005         (install-driver): Use the transformed target alias name.
2007 2001-11-08  Richard Henderson  <rth@redhat.com>
2009         * config/mips/mips.c (save_restore_insns): Remove GP from the
2010         restore registers mask early instead of special casing it inside
2011         the loop.
2013 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2015         * cp/decl.c (shadow_warning): New function.
2016         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
2017         and an error when a block scope decl shadows a parameter.
2019 2001-11-08  Richard Henderson  <rth@redhat.com>
2021         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
2022         case as well.
2024 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2026         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
2027         to implement floating negation on processors prior to PA 2.0.
2029 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
2031         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
2032         (USE_LINKONCE_INDIRECT): Define.
2033         (dw2_output_indirect_constant_1): Try to output indirect constants
2034         into linkonce sections if possible.
2035         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
2036         (dw2_output_indirect_constants): Likewise.
2038 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
2040         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
2042 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2044         * c-decl.c (pushdecl): Remove file and line.
2045         * c-typeck.c (pop_init_level): Remove size.
2047 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
2049         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
2050         for rs6000.
2052         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
2053         (TARGET_ALTIVEC): New.
2054         (TARGET_SWITCHES): Add altivec.
2055         (FIRST_PSEUDO_REGISTER): Change to 109.
2056         (CALL_USED_REGISTERS): Same.
2057         (FIRST_ALTIVEC_REGNO): New.
2058         (LAST_ALTIVEC_REGNO): New.
2059         (ALTIVEC_REGNO_P): New.
2060         (UNITS_PER_ALTIVEC_WORD): New.
2061         (ALTIVEC_VECTOR_MODE): New.
2062         (FIXED_REGISTERS): Add altivec registers.
2063         (REG_ALLOC_ORDER): Same.
2064         (HARD_REGNO_NREGS): Adjust for altivec registers.
2065         (HARD_REGNO_MODE_OK): Same.
2066         (MODES_TIEABLE_P): Same.
2067         (REGISTER_MOVE_COST): Same.
2068         (REGNO_REG_CLASS): Same.
2069         (reg_class): Add ALTIVEC_REGS.
2070         (REG_CLASS_NAMES): Same.
2071         (REG_CLASS_CONTENTS): Same.
2072         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
2073         (ALTIVEC_ARG_RETURN): New.
2074         (FUNCTION_VALUE): Handle VECTOR_TYPE.
2075         (LIBCALL_VALUE): Handle altivec vector modes.
2076         (VECTOR_MODE_SUPPORTED_P): New.
2077         (ALTIVEC_ARG_MIN_REG): New.
2078         (ALTIVEC_ARG_MAX_REG): New.
2079         (ALTIVEC_ARG_NUM_REG): New.
2080         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
2081         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
2082         (REGISTER_NAMES): Add altivec regs.
2083         (DEBUG_REGISTER_NAMES): Same.
2084         (ADDITIONAL_REGISTER_NAMES): Same.
2085         (rs6000_builtins): New.
2086         (MD_EXPAND_BUILTIN): New.
2087         (MD_INIT_BUILTINS): New.
2088         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
2089         for AltiVec instructions.
2090         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
2091         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
2092         registers.
2093         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
2094         (TARGET_SWITCHES): Add no-altivec.
2095         (DATA_ALIGNMENT): Align vectors to 128 bits.
2096         (TARGET_OPTIONS): Add abi= option.
2097         Add rs6000_abi_string extern.
2098         (LOCAL_ALIGNMENT): New.
2099         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
2100         (MASK_ALTIVEC_ABI): New.
2101         (TARGET_ALTIVEC_ABI): New.
2102         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
2103         call-saved.
2104         (STACK_BOUNDARY): Adjust for altivec.
2105         (BIGGEST_ALIGNMENT): Same.
2106         (rs6000_args): Add vregno.
2107         (USE_ALTIVEC_FOR_ARG_P): New.
2108         (FIXED_REGISTERS): Add vrsave register.
2109         (CALL_USED_REGISTERS): Same.
2110         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
2111         (VRSAVE_REGNO): New.
2112         (reg_class): Add VRSAVE_REGS.
2113         (REG_CLASS_NAMES): Same.
2114         (REG_CLASS_CONTENTS): Same.
2115         (REGNO_REG_CLASS): Same.
2117         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
2118         (ABI_STACK_BOUNDARY): Same.
2119         (BIGGEST_ALIGNMENT): Same.
2120         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
2121         (ROUND_TYPE_ALIGN): Same.
2123         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2124         to 64.
2126         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2127         to 64.
2129         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
2130         to 64.
2132         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
2133         (altivec_expand_builtin): New.
2134         (altivec_init_builtins): New.
2135         (TARGET_EXPAND_BUILTIN): New.
2136         (TARGET_INIT_BUILTINS): New.
2137         (rs6000_init_builtins): New.
2138         (struct builtin_description): New.
2139         (bdesc_2arg): New.
2140         (rs6000_reg_names): Add altivec registers.
2141         (alt_reg_names): Same.
2142         (secondary_reload_class): Altivec regs can hold altivec regs and
2143         memory.
2144         (rs6000_emit_move): Force constants into memory for AltiVec moves.
2145         (print_operand): Add 'y' case for printing altivec memory
2146         operands.
2147         (rs6000_legitimize_address): Legitimize vector addresses into
2148         [REG+REG] or [REG].
2149         (altivec_expand_binop_builtin): New.
2150         New string rs6000_current_abi.
2151         (rs6000_override_options): Call rs6000_parse_abi_options.
2152         (rs6000_parse_abi_options): New.
2153         (function_arg_boundary): Vector arguments must be 16
2154         byte aligned.
2155         (function_arg_advance): Handle vector arguments.
2156         (function_arg_partial_nregs): Same.
2157         (init_cumulative_args): Same.
2158         (function_arg): Same.
2160         * config/rs6000/rs6000.md (altivec_lvx): New.
2161         (type): Add altivec attribute.
2162         (movv4si): New.
2163         (*movv4si_internal): New.
2164         (movv16qi): New.
2165         (*movv16qi_internal): New.
2166         (movv8hi): New.
2167         (*movv8hi_internal1): New.
2168         (movv4sf): New.
2169         (*movv4sf_internal1): New.
2170         (altivec_stvx): New.
2171         (vaddubm): New.
2172         (vadduhm): New.
2173         (vadduwm): New.
2174         (vaddfp): New.
2175         (vaddcuw): New.
2176         (vaddubs): New.
2177         (vaddsbs): New.
2178         (vadduhs): New.
2179         (vaddshs): New.
2180         (vadduws): New.
2181         (vaddsws): New.
2182         (vand): New.
2183         (vandc): New.
2184         (vavgub): New.
2185         (vavgsb): New.
2186         (vavguh): New.
2187         (vavgsh): New.
2188         (vavguw): New.
2189         (vavgsw): New.
2190         (vcmpbfp): New.
2191         (vcmpequb): New.
2192         (vcmpequh): New.
2193         (vcmpequw): New.
2194         (vcmpeqfp): New.
2195         (vcmpgefp): New.
2196         (vcmpgtub): New.
2197         (vcmpgtsb): New.
2198         (vcmpgtuh): New.
2199         (vcmpgtsh): New.
2200         (vcmpgtuw): New.
2201         (vcmpgtsw): New.
2202         (vcmpgtfp): New.
2203         (vcmpgefp): New.
2204         (vcmpgtub): New.
2205         (vcmpgtsb): New.
2206         (vcmpgtuh): New.
2207         (vcmpgtsh): New.
2208         (vcmpgtuw): New.
2209         (vcmpgtsw): New.
2210         (vcmpgtfp): New.
2211         (vmaxub): New.
2212         (vmaxsb): New.
2213         (vmaxuh): New.
2214         (vmaxsh): New.
2215         (vmaxuw): New.
2216         (vmaxsw): New.
2217         (vmaxfp): New.
2218         (vmrghb): New.
2219         (vmrghh): New.
2220         (vmrghw): New.
2221         (vmrglb): New.
2222         (vmrglh): New.
2223         (vmrglw): New.
2224         (vminub): New.
2225         (vminsb): New.
2226         (vminuh): New.
2227         (vminsh): New.
2228         (vminuw): New.
2229         (vminsw): New.
2230         (vminfp): New.
2231         (vmuleub): New.
2232         (vmulesb): New.
2233         (vmuleuh): New.
2234         (vmulesh): New.
2235         (vmuloub): New.
2236         (vmulosb): New.
2237         (vmulouh): New.
2238         (vmulosh): New.
2239         (vnor): New.
2240         (vor): New.
2241         (vpkuhum): New.
2242         (vpkuwum): New.
2243         (vpkpx): New.
2244         (vpkuhss): New.
2245         (vpkshss): New.
2246         (vpkuwss): New.
2247         (vpkswss): New.
2248         (vpkuhus): New.
2249         (vpkshus): New.
2250         (vpkuwus): New.
2251         (vpkswus): New.
2252         (vrlb): New.
2253         (vrlh): New.
2254         (vrlw): New.
2255         (vslb): New.
2256         (vslh): New.
2257         (vslw): New.
2258         (vsl): New.
2259         (vslo): New.
2260         (vsrb): New.
2261         (vrsh): New.
2262         (vrsw): New.
2263         (vsrab): New.
2264         (vsrah): New.
2265         (vsraw): New.
2266         (vsr): New.
2267         (vsro): New.
2268         (vsububm): New.
2269         (vsubuhm): New.
2270         (vsubuwm): New.
2271         (vsubfp): New.
2272         (vsubcuw): New.
2273         (vsububs): New.
2274         (vsubsbs): New.
2275         (vsubuhs): New.
2276         (vsubshs): New.
2277         (vsubuws): New.
2278         (vsubsws): New.
2279         (vsum4ubs): New.
2280         (vsum4sbs): New.
2281         (vsum4shs): New.
2282         (vsum2sws): New.
2283         (vsumsws): New.
2284         (vxor): New.
2286 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
2288         * Makefile.in (df.o): Add fibheap.h to dependencies.
2290         * df.h: Add prototypes for transfer functions, iterative_dataflow
2291         functions.
2292         (enum df_flow_dir): New enum.
2293         (enum df_confluence_op): New enum.
2294         (struct df): Add inverse_rts_map.
2296         * df.c: Add sbitmap.h to the list of includes.
2297         (df_rd_global_compute): Removed.
2298         (df_ru_global_compute): Removed.
2299         (df_lr_global_compute): Removed.
2300         (df_rd_transfer_function): New function.
2301         (df_ru_transfer_function): New function.
2302         (df_lr_transfer_function): New function.
2303         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
2304         Use iterative_dataflow_bitmap instead of df_*_global_compute.
2305         (iterative_dataflow_sbitmap): New function.
2306         (iterative_dataflow_bitmap): New function.
2308 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
2310         * doc/gcc.texi: Move terminology and spelling conventions to
2311         htdocs/codingconventions.html.
2313 2001-11-07  Graham Stott  <grahams@redhat.com>
2315         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
2317 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
2319         * expmed.c (expand_mult): Force operand to register before computing
2320         cost.
2321         * i386.c (x86_decompose_lea): New global vairable.
2322         * i386.h (x86_decompose_lea): Declare.
2323         (TARGET_DECOMPOSE_LEA): New macro.
2324         (RTX_COST): Handle leas properly.
2326 2001-11-06  Richard Henderson  <rth@redhat.com>
2328         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
2329         defined for a CONSTRUCTOR; don't check it.
2331 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
2333         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
2334         test for absolute pathnames.
2336 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
2338         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
2339         instructions up to the target pc inclusive.
2341 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
2343         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
2345 2001-11-06  Eric Christopher  <echristo@redhat.com>
2347         * config/mips/mips.md(movdf_internal2): Add constraints for float
2348         to general register move.
2349         * config/mips/elf64.h: Add default ABI.
2351 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2353         * alias.c:: Include langhooks.h.
2354         * emit-rtl.c: Similarly.
2355         * toplev.c: Similarly.
2356         * tree-inline.c: Similarly.
2357         * langhooks-def.h: New, the old langhooks.h.  Give the default
2358         hooks a common prefix.
2359         * langhooks.h: Contents extracted from toplev.h.
2360         * toplev.h: Move langhook stuff to langhooks.h.
2361         * langhooks.c: Give default hooks a common prefix.
2363         * c-lang.c: Include langhooks-def.h.
2364         * objc/objc-act.c: Similarly.
2365         * Makefile.in: Update.
2366         * objc/Make-lang.in: Update.
2368 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
2370         * doc/install.texi: Document that configure options not listed in
2371         this file are unsupported.  Document --with-system-zlib.
2373 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2375         * rtl.h (mem_for_const_double): New declaration.
2376         * varasm.c (mem_for_const_double): New function.
2377         * config/convex/convex.md (movdf): Use it.
2378         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
2379         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
2380         * config/m68k/m68kv4.h: Likewise.
2382         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
2383         of new GP reg classes.
2385         * expr.c (store_field): When making temp object for unaligned
2386         component, set it to alias set 0.
2388 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
2390         * c-common.c (c_expand_expr_stmt): Apply default conversions to
2391         non-lvalue arrays if C99.
2392         * c-typeck.c (default_conversion): Split out code handling
2393         array-to-pointer and function-to-pointer conversions into a
2394         separate default_function_array_conversion function.
2395         (default_function_array_conversion): New function.  Keep track of
2396         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
2397         arrays unchanged outside C99 mode instead of giving an error for
2398         them.
2399         (build_component_ref): Use pedantic_non_lvalue when handling
2400         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
2401         (convert_arguments): Use default_function_array_conversion.
2402         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
2403         non-lvalues are OK.
2404         (unary_complex_lvalue): Likewise.
2405         (internal_build_compound_expr): Use
2406         default_function_array_conversion.  Apply default conversions to
2407         function in compound expression.
2408         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
2409         Use default_function_array_conversion.
2410         * doc/extend.texi: Update documentation of subscripting non-lvalue
2411         arrays.
2412         Fixes PR c/461.
2414 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
2416         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
2417         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
2418         corresponding to the complete set of .po and .gmo files in
2419         the source directory's po subdir, modified by LINGUAS.  Don't
2420         look at ALL_LINGUAS.
2421         * configure.in: Don't set ALL_LINGUAS.
2422         * configure: Regenerate.
2424         * Makefile.in (.po.gmo): Don't move into source directory.
2425         (.po.pox): Clarify comments.
2426         (install-po): Look for .gmo files in both srcdir and objdir;
2427         don't fail if a file is totally missing.
2428         (distclean): rmdir ada subdirectory too.
2430 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
2432         * config/rs6000/rs6000.c (rs6000_select_section): Handle
2433         CONSTRUCTORs _correctly_.
2435 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2437         * c-decl.c (delete_block): Remove.
2438         * c-tree.h (delete_block): Remove.
2440 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2442         * cppexp.c (lex, parse_defined): Update warning about defined.
2444 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
2446         * config/rs6000/rs6000.c (rs6000_select_section): Handle
2447         CONSTRUCTORs too.
2449 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
2451         * config/arm/arm.c (arm_return_in_memory): Cope with
2452         int_size_in_bytes returning -1.
2454         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
2455         DECL being NULL.
2457 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
2459         * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
2460         remove unneeded dependencies;
2461         (cfglayout.o): New.
2462         * cfglayout.c, cfglayout.h: New files; break out from ...
2463         * bb-reorder.c: ... here; Remove unneeded includes;
2465 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
2467         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
2469 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
2471         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
2472         mode as well.  Do not explicitly create intermediate regs.
2474 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2476         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
2477         (common_section): Delete unused variable.
2478         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
2479         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
2480         * arm-protos.h (arm_poke_function_name, aof_add_import,
2481         aof_delete_import): Const-ify.
2482         * arm.c (legitimize_pic_address): Wrap variables in the macro
2483         controlling their usage.
2484         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
2485         (arm_poke_function_name, pic_chain, import, aof_add_import,
2486         aof_delete_import): Const-ify.
2487         * i386.c (ix86_osf_output_function_prologue): Const-ify.
2488         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2489         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
2490         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
2491         * i860/sysv3.h: Add missing comment closure.
2492         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
2493         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
2494         to symbolic_operand.
2496         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
2497         (i960-*-*): Set tmake_file.
2498         (sparc86x-*-elf*): Fix typo in header name.
2500         * sched-rgn.c (schedule_insns): Delete unused variable.
2502 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2504         PR c/2820
2505         * c-typeck.c (lookup_field): Rework to return a chain down to
2506         the looked-up field.
2507         (build_component_ref): Use the new lookup_field to handle
2508         nested anonymous entities correctly.
2510 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2512         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
2513         Change parameters to gen_rtx_CONST_DOUBLE.
2514         (GEN_INT64, sparc_emit_set_const64): Likewise.
2515         * config/sparc/sparc.md (movdf split): Likewise.
2517 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
2519         * unroll.c (calculate_giv_inc): Use find_last_value rather
2520         than just hoping the last instruction is the right SET.
2521         [Fixes 990604-1.c on stormy16.]
2523         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
2524         library at all if -T is used.
2526         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
2527         some uses of uninitialized variables in error cases.
2529         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
2530         look at 'temp' if we won't be using it.
2532         * config/stormy16/stormy16.h (CONST_COSTS): Define.
2533         (RTX_COSTS): Define.
2534         (ADDRESS_COST): Define.
2535         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
2537         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
2539         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
2540         stormy16_asm_output_mi_thunk.
2541         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
2542         function.
2543         * config/stormy16/stormy16-protos.h
2544         (stormy16_asm_output_mi_thunk): New prototype.
2546 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
2548         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
2549         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
2550         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
2551         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
2552         sched-int.h, toplev.c, config/alpha/alpha.c,
2553         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
2554         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
2555         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
2556         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
2557         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
2558         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
2559         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
2561 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2563         * Makefile.in (dbxout.o): Depend on function.h.
2564         * collect2.c (is_in_list): Hide unused function.
2565         * dbxout.c: Include function.h.
2566         (source_label_number, dbxout_source_line, dbxout_source_file,
2567         dbxout_function_end, dbxout_begin_function): Wrap/move inside
2568         macros controlling usage.
2569         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
2570         * output.h (exports_section): Prototype.
2572         * convex.c (convex_output_function_prologue): Fix format specifier
2573         warning.
2574         (asm_declare_function_name): Fix signed/unsigned warning.
2575         (print_operand): Fix format specifier warning.
2576         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
2577         * dsp16xx-protos.h (uns_comparison_operator,
2578         num_1600_core_shifts): Prototype.
2579         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
2580         (frame_size, frame_pointer_offset): Delete.
2581         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
2582         Make static.  Fix format specifier warnings.
2583         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
2584         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
2585         * dsp16xx.md: Add default case in switches.
2586         * fr30.h (IN_RANGE): Delete.
2587         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
2588         * mcore-protos.h (mcore_output_cmov): Const-ify.
2589         * mcore.c (mcore_output_cmov): Likewise.
2590         * mcore.h (switch_to_section): Make static and prototype.
2591         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
2592         unsigned>=0 warnings.
2593         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
2594         * rs6000-protos.h (read_only_data_section,
2595         read_only_private_data_section): Prototype.
2596         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2597         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
2598         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
2600 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2602         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
2603         ATTRIBUTE_UNUSED.
2604         * final.c (final_scan_insn): Add brackets around body of if-stmt.
2605         * gcc.c (convert_filename): Add static prototype.  Const-ify.
2606         Wrap variable in macros controlling its use.
2607         * output.h (sdata_section): Add prototype.
2609         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2610         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
2611         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
2612         (ASM_FILE_START): Const-ify.
2613         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
2614         specifier warning.
2615         * c4x.md: Don't use the 'U' integer suffix.
2616         * clipper.md (clipper_movstr): Delete declaration.
2617         * d30v-protos.h (d30v_move_2words): Const-ify.
2618         (debug_stack_info): Add prototype.
2619         * d30v.c: Include "integrate.h".
2620         (d30v_function_arg_boundary, d30v_function_arg,
2621         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
2622         signed/unsigned warnings.
2623         (d30v_print_operand_memory_reference, d30v_move_2words):
2624         Const-ify.
2625         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
2626         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
2627         * fr30.md: Const-ify.
2628         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2629         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
2630         (mvs_get_label_page): Hide unused static function.
2631         * i860.c (current_function_original_name): Const-ify.
2632         * i860/sysv3.h (current_function_original_name): Likewise.
2633         * i860/sysv4.h (current_function_original_name): Likewise.
2634         * i960.md: Add default case in switches.  Remove unused variable.
2635         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
2636         * m32r.md: Const-ify.
2637         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
2638         * m68hc11.c: Include "reload.h".
2639         (static_chain_reg, print_options, m68hc11_asm_file_start):
2640         Const-ify.
2641         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
2642         around & in comparison.
2643         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
2644         * mn10200.c (shift_mode): Remove trailing comma.
2645         * mn10300-protos.h (output_tst): Const-ify.
2646         * mn10300.c (output_tst): Likewise.
2647         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
2648         warnings.
2649         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
2650         * pa.c (output_ascii): Likewise.
2651         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
2652         * pdp11.md (expand_unop): Delete declarations.
2653         * pj-protos.h (pj_output_addsi3): Const-ify.
2654         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
2655         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
2656         unique_src_operand): Add prototypes.
2657         (pj_output_store_into_lval): Make definition static.
2658         (pj_function_incoming_arg): Don't use unary plus.
2659         (pj_output_addsi3): Const-ify.
2660         * romp.md (get_symref): Delete declarations.
2661         * v850-c.c (mark_current_function_as_interrupt): Don't return
2662         value from void function.
2663         * v850.c: Include "integrate.h".
2664         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
2665         * vax-protos.h (const_section): Add prototype.
2667 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
2669         * machmode.def: Add documentation for the seventh argument in
2670         vector modes.
2672 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
2674         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
2675         consistently.
2676         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
2677         <-melf>: Don't have markup for ELF acronym.
2679 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
2681         * config.gcc (mmix-*-*): New target.
2682         * doc/invoke.texi: Document MMIX options.
2683         * doc/contrib.texi: Add note about MMIX port to my entry.
2684         * config/mmix/t-mmix: New file.
2685         * config/mmix/mmix.h: New file.
2686         * config/mmix/mmix-protos.h: New file.
2687         * config/mmix/mmix.c: New file.
2688         * config/mmix/mmix.md: New file.
2689         * config/mmix/crti.asm: New file.
2690         * config/mmix/crtn.asm: New file.
2692 2001-11-03  Kazu Hirata  <kazu@hxi.com>
2694         * config/sparc/linux-aout.h: Fix comment formatting.
2695         * config/sparc/linux.h: Likewise.
2696         * config/sparc/linux64.h: Likewise.
2697         * config/sparc/lynx.h: Likewise.
2698         * config/sparc/pbd.h: Likewise.
2699         * config/sparc/sol2-sld-64.h: Likewise.
2700         * config/sparc/sol2.h: Likewise.
2701         * config/sparc/sparc.c: Likewise.
2702         * config/sparc/sparc.h: Likewise.
2703         * config/sparc/sparc.md: Likewise.
2704         * config/sparc/sunos4.h: Likewise.
2705         * config/sparc/vxsim.h: Likewise.
2706         * config/sparc/vxsparc.h: Likewise.
2707         * config/sparc/vxsparc64.h: Likewise.
2709 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2711         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
2712         reference to CONST_DOUBLE_MEM in comment.
2713         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
2714         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
2715         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
2716         * function.c (pop_function_context_from): Don't call
2717         restore_varasm_status.
2718         * function.h (restore_varasm_status): Delete declaration.
2719         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
2720         * rtl.c: Likewise.
2721         * rtl.def (CONST_DOUBLE): Update comment.
2722         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
2723         (CONST_DOUBLE_CHAIN): Likewise.
2724         (CONST_DOUBLE_MEM): Delete.
2725         (gen_rtx_CONST_DOUBLE): Update parameters.
2726         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
2727         Remove reference to CONST_DOUBLE_MEM.
2728         (const_alias_set): New variable.
2729         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
2730         (immed_real_const_1): Adjust tests for 0, 1, and 2.
2731         Don't set CONST_DOUBLE_MEM.
2732         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
2733         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
2734         Put constant in const_alias_set.
2735         (struct pool_constant): ALIGN now unsigned.
2736         OFFSET now HOST_WIDE_INT.
2737         Delete LABEL.
2738         (restore_varasm_status): Deleted.
2739         (mark_pool_constant): Mark desc->rtl.
2740         (force_const_mem): Rework to store rtl in hash table,
2741         not CONST_DOUBLE_MEM.
2742         Put constant in const_alias_set.
2743         (find_pool_constant): Check desc->rtl.
2744         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
2745         (init_varasm_once): Initialize const_alias_set.
2747         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
2748         force_const_mem.
2750         * reload.c (combine_reloads): Don't combine an output reload if there
2751         are other reloads around for part of the output.
2753         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
2754         constant expression.
2755         (set_mem_decl): New function.
2756         * expr.h (set_mem_decl): New declaration.
2757         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
2758         (output_asm_operand_names): Add tab.
2759         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
2761         * builtins.c (get_memory_rtx): Properly set MEM alias set and
2762         attributes.
2764 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
2766         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
2767         Use "invalid" instead of "illegal".  Use @r in comments in
2768         examples.
2770 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2772         * c-decl.c (pushdecl): Move block inside if conditional to remove
2773         possibility of a segfault.  Lookup block-level extern
2774         variables in enclosing scopes correctly.
2776         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
2778 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
2780         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
2781         SUBREG so we avoid SUBREGing memory.
2783         * expmed.c (store_bit_field): Same.
2785 2001-11-02  DJ Delorie  <dj@redhat.com>
2787         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
2788         using FP registers for DImode mem-mem moves is acceptable.
2790 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
2792         * builtins.c (apply_args_size): Handle vector arguments.
2793         (apply_result_size): Same.
2795         * machmode.def: Set WIDER mode field for all vector entries.
2797 2001-11-02  Graham Stott  <grahams@redhat.com>
2799         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
2801 2001-11-01  Eric Christopher  <echristo@redhat.com>
2803         * config.gcc: Revert part of earlier patch.
2804         * config/mips/linux.h: Ditto.
2805         * df.c: Include tm_p.h to avoid warnings.
2806         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
2807         #if/#endif.
2808         * config/mips/mips.c: Define mips_abi regardless.
2809         (mips_output_function_prologues): Add long casts for .frame
2810         output.
2811         (override_options): Allow use of ABI_32.
2813 2001-11-01  Kazu Hirata  <kazu@hxi.com>
2815         * config/m68hc11/m68hc11.c: Fix comment formatting.
2816         * config/m68hc11/m68hc11.h: Likewise.
2817         * config/m68hc11/m68hc11.md: Likewise.
2819 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
2821         * c-typeck.c (default_conversion): Retain the original expression
2822         codes.
2823         * gcc.dg/Wparentheses.c: New tests.
2825 2001-11-01  David S. Miller  <davem@redhat.com>
2827         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
2828         64-bit Sparc description more in line with reality.
2830 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
2832         * Makefile.in (GCOV_OBJS): Add version.o.
2833         * gcov.c: Include "version.h" and <getopt.h>.
2834         (gcov_version_string): Remove.
2835         (print_usage): Take a parameter to determine whether this is a
2836         call from --help or an error message.  Give fuller output that
2837         follows the GNU Coding Standards for --help.
2838         (print_version): New function.
2839         (options): New.
2840         (process_args): Use getopt_long.  Support long options.  Follow
2841         GNU Coding Standards for --help and --version.
2842         * doc/gcov.texi: Document long options.
2843         Addresses part of PR other/704.
2845 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2847         * pa.c (output_move_double): Fix typo in double load.
2849 2001-11-01  Kazu Hirata  <kazu@hxi.com>
2851         * config/h8300/h8300.c (h8300_encode_label): Compute a string
2852         before passing it to ggc_alloc_string.
2854 2001-11-01  Kazu Hirata  <kazu@hxi.com>
2856         * config/m68k/3b1.h: Fix comment formatting.
2857         * config/m68k/3b1g.h: Likewise.
2858         * config/m68k/a-ux.h: Likewise.
2859         * config/m68k/amix.h: Likewise.
2860         * config/m68k/apollo68.h: Likewise.
2861         * config/m68k/atari.h: Likewise.
2862         * config/m68k/aux-exit.c: Likewise.
2863         * config/m68k/ccur-GAS.h: Likewise.
2864         * config/m68k/crds.h: Likewise.
2865         * config/m68k/dpx2.h: Likewise.
2866         * config/m68k/dpx2g.h: Likewise.
2867         * config/m68k/hp310.h: Likewise.
2868         * config/m68k/hp320.h: Likewise.
2869         * config/m68k/isi.h: Likewise.
2870         * config/m68k/linux.h: Likewise.
2871         * config/m68k/lynx.h: Likewise.
2872         * config/m68k/m68k-psos.h: Likewise.
2873         * config/m68k/m68k.c: Likewise.
2874         * config/m68k/m68k.h: Likewise.
2875         * config/m68k/m68k.md: Likewise.
2876         * config/m68k/m68kelf.h: Likewise.
2877         * config/m68k/m68kv4.h: Likewise.
2878         * config/m68k/mot3300.h: Likewise.
2879         * config/m68k/news.h: Likewise.
2880         * config/m68k/next.h: Likewise.
2881         * config/m68k/pbb.h: Likewise.
2882         * config/m68k/plexus.h: Likewise.
2883         * config/m68k/sgs.h: Likewise.
2884         * config/m68k/sun3.h: Likewise.
2885         * config/m68k/tower.h: Likewise.
2886         * config/m68k/vxm68k.h: Likewise.
2888 2001-10-31  DJ Delorie  <dj@redhat.com>
2890         * config/mips/mips.h (mips_cache_flush_func): Prototype.
2891         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
2892         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
2893         * config/mips/mips.c (mips_cache_flush_func): New.
2894         * doc/invoke.texi: Document the new options.
2896 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
2898         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
2899         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
2901         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
2903         * config/cris/cris.c: Include output.h after tree.h but before
2904         target.h.
2906 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
2908         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
2909         (INTL_SUBDIRS): Just intl.
2910         (.SUFFIXES): Add .gmo .po .pox.
2911         (native): Also depend on build-@POSUB@.
2912         (intl.all, intl.install): Depend on config.h and things it includes.
2913         (po-generated): New target; depend on c-parse.c and tradcif.c.
2914         (install-normal): Also depend on install-@POSUB@.
2915         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
2916         (build-, install-, build-po, update-po, install-po,
2917         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
2919         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
2920         * configure.in: Don't munge XGETTEXT.  Don't generate
2921         po/Makefile.in.
2922         * configure: Regenerate.
2924         * exgettext: Delete.
2925         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
2926         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
2928 2001-10-31  Kazu Hirata  <kazu@hxi.com>
2930         * config/h8300/h8300.md (two anonymous patterns): New.
2932 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
2934         * tree.h (tree_index): Add support for V16QI and V8HI.
2935         (V8HI_type_node): New.
2936         (V16QI_type_node): New.
2938         * tree.c (build_common_tree_nodes_2): Same.
2940         * c-common.c (type_for_mode): Same.
2942 2001-10-31  Kazu Hirata  <kazu@hxi.com>
2944         * config/i386/att.h: Fix comment formatting.
2945         * config/i386/beos-elf.h: Likewise.
2946         * config/i386/bsd.h: Likewise.
2947         * config/i386/bsd386.h: Likewise.
2948         * config/i386/crtdll.h: Likewise.
2949         * config/i386/cygwin.asm: Likewise.
2950         * config/i386/cygwin.h: Likewise.
2951         * config/i386/djgpp.h: Likewise.
2952         * config/i386/freebsd-aout.h: Likewise.
2953         * config/i386/freebsd.h: Likewise.
2954         * config/i386/gas.h: Likewise.
2955         * config/i386/i386-interix.h: Likewise.
2956         * config/i386/i386-protos.h: Likewise.
2957         * config/i386/i386.c: Likewise.
2958         * config/i386/i386.h: Likewise.
2959         * config/i386/i386.md: Likewise.
2960         * config/i386/i386elf.h: Likewise.
2961         * config/i386/interix.c: Likewise.
2962         * config/i386/isc.h: Likewise.
2963         * config/i386/isccoff.h: Likewise.
2964         * config/i386/iscdbx.h: Likewise.
2965         * config/i386/linux.h: Likewise.
2966         * config/i386/lynx.h: Likewise.
2967         * config/i386/mingw32.h: Likewise.
2968         * config/i386/netbsd-elf.h: Likewise.
2969         * config/i386/next.h: Likewise.
2970         * config/i386/osf1elf.h: Likewise.
2971         * config/i386/osfrose.h: Likewise.
2972         * config/i386/sco5.h: Likewise.
2973         * config/i386/seq-gas.h: Likewise.
2974         * config/i386/seq-sysv3.h: Likewise.
2975         * config/i386/sequent.h: Likewise.
2976         * config/i386/sol2.h: Likewise.
2977         * config/i386/sun386.h: Likewise.
2978         * config/i386/uwin.asm: Likewise.
2979         * config/i386/uwin.h: Likewise.
2980         * config/i386/vxi386.h: Likewise.
2981         * config/i386/win32.h: Likewise.
2982         * config/i386/winnt.c: Likewise.
2983         * config/i386/xm-cygwin.h: Likewise.
2984         * config/i386/xm-mingw32.h: Likewise.
2986 2001-10-31  Kazu Hirata  <kazu@hxi.com>
2988         * builtins.def: Fix comment typos.
2989         * config/alpha.c: Likewise.
2990         * config/arm/arm.c: Likewise.
2991         * config/avr/avr.h: Likewise.
2992         * config/d30v/d30v.c: Likewise.
2993         * config/d30v/d30v.h: Likewise.
2994         * config/d30v/d30v.md: Likewise.
2995         * config/dsp16xx/dsp16xx.c: Likewise.
2996         * config/fr30/fr30.c: Likewise.
2997         * config/fr30/fr30.md: Likewise.
2998         * config/i386/i386.c: Likewise.
2999         * config/i860/i860.c: Likewise.
3000         * config/i960/i960.c: Likewise.
3001         * config/ia64/ia64.c: Likewise.
3002         * config/mips/mips.c: Likewise.
3003         * config/pa/pa.c: Likewise.
3004         * config/rs6000/rs6000.c: Likewise.
3005         * config/s390/s390.c: Likewise.
3006         * config/sparc/sparc.c: Likewise.
3008 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3010         * config/mips/elf.h: Fix comment formatting.
3011         * config/mips/elf64.h: Likewise.
3012         * config/mips/iris5.h: Likewise.
3013         * config/mips/iris5gas.h: Likewise.
3014         * config/mips/iris6.h: Likewise.
3015         * config/mips/isa3264.h: Likewise.
3016         * config/mips/linux.h: Likewise.
3017         * config/mips/mips.c: Likewise.
3018         * config/mips/mips.h: Likewise.
3019         * config/mips/mips.md: Likewise.
3020         * config/mips/mips16.S: Likewise.
3021         * config/mips/netbsd.h: Likewise.
3022         * config/mips/osfrose.h: Likewise.
3023         * config/mips/r3900.h: Likewise.
3024         * config/mips/sni-svr4.h: Likewise.
3025         * config/mips/svr4-t.h: Likewise.
3026         * config/mips/ultrix.h: Likewise.
3028 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
3030         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
3031         when we update head->current.
3033 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
3035         * tree.c (id_string_size): Remove.
3036         (dump_tree_statistics): Update.
3037         * toplev.c (compile_file): If dumping stats, dump tree stats too.
3039 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
3041         * sched-rgn.c (schedule_insns): Fix comment.
3043 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
3045         * configure.in: Correct previous change: don't assume that
3046         gas's version number _isn't_ the last thing on the line, or
3047         isn't the only number on the line, either.
3048         * configure: Regenerate.
3050 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3052         * cfgcleanup.c: Fix a comment typo.
3054 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3056         * alias.c: Fix comment formatting.
3057         * recog.c: Likewise.
3058         * config/cris/cris.c: Likewise.
3059         * config/cris/cris.h: Likewise.
3060         * config/i960/i960.c: Likewise.
3061         * config/i960/i960.h: Likewise.
3063 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3065         * config/arm/arm.c: Fix a comment typo.
3066         * config/arm/arm.h: Likewise.
3067         * config/ia64/ia64.c: Likewise.
3069 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
3071         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
3072         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
3073         * rtl.h (set_unique_reg_note): Change return value.
3074         * gcse.c (try_replace_reg): Use set_unique_reg_note.
3075         * cse.c (cse_insn): Likewise.
3076         * expr.c (emit_move_insn): Likewise.
3077         * explow.c (force_reg): Likewise.
3078         * local-alloc (update_equiv_regs): Likewise.
3079         * loop.c (move_moveables, load_mems): Likewise.
3080         * reload (find_reloads): Likewise.
3082 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
3084         Localization fixes.
3085         * c-decl.c (parmlist_tags_warning, start_struct,
3086         check_for_loop_decls): Separate messages for struct, union and
3087         enum cases to allow for languages in which they have different
3088         genders.
3089         * c-format.c (scanf_flag_specs): Separate short and long name of
3090         the assignment suppression feature.
3091         (check_format_types): Localize "pointer" and "different types"
3092         strings.
3093         * c-lex.c (lex_number): Localize "an unsigned long int" and
3094         related strings.
3095         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
3096         warning message.
3097         * c-typeck.c (build_unary_up): Separate messages for increment and
3098         decrement cases to allow for languages in which they use different
3099         articles.  Localize the strings "increment" and "decrement" in one
3100         case.
3102 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
3104         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
3105         when no changes has been made.
3107         * gcse.c (reg_set_bitmap): Turn into reg_set.
3108         (modify_mem_list_set, canon_modify_mem_list_set)
3109         (clear_modify_mem_tables, free_modify_mem_tables): New.
3110         (gcse_main); Use free_modify_mem_tables.
3111         (free_gcse_mem): Likewise; free the bitmaps.
3112         (alloc_gcse_main): Initialize the bitmaps.
3113         (canon_list_insert): Set canon_modify_mem_list_set.
3114         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
3115         (compute_hash_table): Use clear_modify_mem_tables.
3116         (reset_opr_set_tables): Likewise.
3117         (oprs_not_set_p): reg_set_bitmap is regset.
3118         (mark_set, mark_clobber): Likewise.
3120         * df.h (DF_EQUIV_NOTES): New constant.
3121         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
3122         when asked for.
3124         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
3125         (init_regions, schedule_insns): Conditionalize the checking
3126         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
3128 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
3130         * i386.md (movti_rex64 splitter): Fix condition.
3132 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
3134         * configure.in: Do not assume that gas's version number is the
3135         last thing on the first line of as --version output.
3136         * configure: Regenerate.
3138         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
3139         MT_WARNING, MT_ERROR, MT_FATAL.
3140         (main): Call gcc_init_libintl.
3141         (v_message): Call gettext on msgid and "warning: "
3142         * tradcif.y: Include intl.h.
3143         (yyerror): Make parameter definition consistent with
3144         prototype.  Call gettext on msgid argument.
3146 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3148         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
3149         warnings.
3151         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
3153 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3155         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
3156         before referencing it.
3158 2001-10-26  DJ Delorie  <dj@redhat.com>
3160         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
3161         override -G, and force -G0.
3163 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3165         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
3166         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
3167         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
3168         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
3170         * loop.h (struct induction): Rename ext_dependant to
3171         ext_dependent.
3172         * loop.c: Change all uses.
3173         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
3174         All callers changed.
3175         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
3177 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
3179         * c-parse.in (expr_no_commas, primary), c-typeck.c
3180         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
3182 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
3184         Undo assemble_name change in earlier patch.
3186 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
3188         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
3189         determining the type of the receiver, do not check that TREE_CODE
3190         of receiver is CALL_EXPR before calling receiver_is_class_object().
3191         (receiver_is_class_object): For the GNU runtime: recognize
3192         the case that the receiver is self in a class method context.
3193         Check that TREE_CODE of receiver is CALL_EXPR when checking that
3194         the receiver is a call to objc_get_class.
3196 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3198         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
3200 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3202         * Makefile.in (OBJS): Put all files in alphabetical order.
3204         * dwarf2out.c (add_const_value_attribute): Fix error in last
3205         change.
3207 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
3209         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
3210         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
3211         fix warning.
3212         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
3213         (life_analysis): call purge_all_dead_edges after deleting noops.
3214         (delete_noop_move): Do not purge CFG.
3215         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
3217 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
3219         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
3220         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
3221         (ASM_GLOBALIZE_LABEL): Use assemble_name.
3222         (ASM_OUTPUT_COMMON): Likewise.
3223         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
3224         (rs6000_output_function_epilogue): Likewise.
3225         (output_mi_thunk): Fix typo.
3226         (rs6000_output_symbol_ref): Use assemble_name.
3227         (output_toc): Likewise.
3228         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
3229         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
3230         assemble_name calls STRIP_NAME_ENCODING.
3231         (ASM_OUTPUT_LABEL): Use assemble_name.
3232         (ASM_GLOBALIZE_LABEL): Likewise.
3233         (ASM_DECLARE_FUNCTION_NAME): Likewise.
3234         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
3235         (ASM_OUTPUT_LOCAL): Likewise.
3237 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3239         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
3240         (expand_builtin_apply, expand_builtin_return): Likewise.
3241         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
3243 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
3245         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3246         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
3247         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
3248         configure, configure.in, except.c, except.h, flow.c, function.c,
3249         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
3250         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
3251         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
3252         unroll.c: Fix spelling errors.
3254         * doc/extend.texi, doc/invoke.texi: Fix spelling.
3256         * doc/gcc.texi: Document use of "dependent" and American spelling.
3258 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
3260         * expr.c (emit_group_load): Support CONCATs by storing them to memory
3261         and reloading.
3263 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3265         * expr.c (store_constructor_field): Only call adjust_address on MEM.
3267 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
3269         * genrecog.c (write_switch):  Output if before switch for
3270         DT_elt_zero_wide_safe.
3272 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3274         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
3275         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
3276         (FUNCTION_PROFILER): Const-ify.
3277         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
3278         (eliminate_constant_term, assemble_name, output_addr_const):
3279         Remove declarations.
3280         (ptr_half_pic_address_p, half_pic_hash): Prototype.
3281         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
3282         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
3283         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
3284         (half_pic_declare, half_pic_external): Const-ify.
3285         * toplev.c: Include "halfpic.h".
3287 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
3289         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
3290         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
3291         config/i386/i386.c, config/i386/i386-interix.h,
3292         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
3293         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
3294         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
3295         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
3296         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
3297         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
3298         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
3299         spelling errors.
3301         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
3302         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
3303         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
3304         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
3305         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
3306         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
3307         system.h, toplev.c: Fix spelling errors.
3309 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3311         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
3313         * dwarf2out.c (reg_number): Abort if pseudo.
3314         (reg_loc_descriptor): Return 0 if pseudo.
3315         (is_based_loc): Return 0 if pseudo.
3316         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
3317         recursive calls.
3318         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
3319         (loc_descriptor): Return 0 if can't find location and handle 0
3320         return from recursive calls.
3321         (loc_descriptor_from_tree): Likewise.
3322         Fix handling of indirect.
3323         Also return 0 for PLACEHOLDER_EXPR.
3324         Clean up COMPONENT_REF cases.
3325         (add_AT_location_descriptor): Simplify, but handle 0 return from
3326         loc_descriptor.
3327         (add_const_value_attribute): Avoid shift count warning.
3328         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
3329         Set comp_unit_die as context if not in function.
3331         * config/mips/mips-protos.h: Break up long lines.
3332         Remove needless #ifdef/#endif blocks.
3333         Don't declare functions declared in file made by genpreds or recog.h.
3334         * config/mips/mips.c (mips_output_function_prologue): TSIZE
3335         is now HOST_WIDE_INT; delete unneeded casts.
3336         * config/mips/mips.h: Don't use #elif.
3338         * expr.c (stor_constructor_field): Always call adjust_address.
3339         Copy TARGET before changing its alias set.
3340         (store_field): Likewise, for TO_RTX.
3341         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
3342         replacement.
3343         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
3344         (find_placeholder): Return 0 if can't find object.
3345         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
3346         returns 0.
3348 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
3350         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
3352 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
3354         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
3355         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
3356         (merge_blocks): Properly udpate life after making edge nonfallthru.
3357         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
3359 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3361         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
3363 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3365         * c-typeck.c (convert_arguments): When comparing for enumeral
3366         type equality, use TYPE_MAIN_VARIANT.
3367         * gcc.dg/Wconversion.c: New tests.
3369 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3371         * s390/s390.c: Fix comment typos.
3372         * s390/s390.h: Likewise.
3373         * s390/s390.md: Likewise.
3375 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3377         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
3378         (walk_tree): Use it for tail calls where appropriate.
3380 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3382         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
3383         non-local label_refs.
3385 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3387         * config/h8300/h8300.md (4 anonymous patterns): New.
3389 2001-10-26  Kazu Hirata  <kazu@hxi.com>
3391         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
3392         algorithm through the shift_info structure.
3393         (emit_a_shift): Update the use of get_shift_alg.
3395 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
3397         * sched-rgn.c: Remove bitset typedef.
3398         Change bitset to sbitmap in prototypes / variable types.
3399         Remove bbset_size.
3400         Remove edgeset_bits.
3401         Remove edgeset_size.
3402         s/BITSET_ADD/SET_BIT/g
3403         s/BITSET_INVERT/sbitmap_ones/g
3404         s/BITSET_INTER/sbitmap_a_and_b/g
3405         s/BITSET_UNION/sbitmap_a_or_b/g
3406         s/BITSET_DIFFER/sbitmap_difference/g
3407         s/bitset_member/TEST_BIT/g
3408         (BITSET_*): Removed.
3409         (bitset_member): Removed.
3410         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
3411         EXECUTE_IF_SET_IN_SBITMAP.
3412         (split_edges): Rewrite, use sbitmap functions instead of bitset
3413         operations.
3414         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
3416 2001-10-26  Andreas Schwab  <schwab@suse.de>
3418         * reload1.c (emit_input_reload_insns): Fix parens in last
3419         (undocumented) change that was supposed to change only whitespace.
3421 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3423         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
3425         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
3426         ASM_OPERANDS.
3428 2001-10-26  Andreas Jaeger  <aj@suse.de>
3430         * flow.c (clear_log_links): Remove unused variable.
3431         * cfgcleanup.c (cleanup_cfg): Likewise.
3433 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
3435         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
3436         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
3438 2001-10-26  Richard Henderson  <rth@redhat.com>
3440         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
3441         rename PV_REG to R27_REG.
3442         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
3443         (REG_CLASS_FROM_LETTER): Update.
3444         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
3445         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
3446         (udivsi3, modsi3, umodsi3): Likewise.
3447         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
3449 2001-10-26  Richard Henderson  <rth@redhat.com>
3451         * cfg.c (clear_aux_for_blocks): Split out of ...
3452         (free_aux_for_blocks): here.
3453         (clear_aux_for_edges): Split from ...
3454         (free_aux_for_edges): here.
3455         * basic-block.h: Declare them.
3456         * lcm.c (compute_antinout_edge): Use them.
3457         (compute_laterin, compute_available, compute_nearerout): Likewise.
3458         (optimize_mode_switching): Likewise.
3460 2001-10-26  Richard Henderson  <rth@redhat.com>
3462         * Makefile.in (unstage*): Remove as, ld, collect-ld before
3463         moving everything back to the main build directory.
3465 2001-10-26  Christopher Faylor  <cgf@redhat.com>
3467         * config/i386/cygwin.h: Search target specific include directory, if
3468         appropriate.
3470 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3472         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
3473         of macro guards. Fix #endif comment.
3475         * output.h (default_exception_section, default_eh_frame_section):
3476         Move prototypes outside of macro guard.
3478         * crtstuff.c: Fix #endif comment.
3480 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
3482         * doc/md.texi (movMM): Clarify semantics of storing into a
3483         non-paradoxical SUBREG.
3485 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
3487         * langhooks.c (lang_hook_default_clear_binding_stack): New.
3488         (lang_hook_default_get_alias_set): Move next to other alias
3489         hooks.
3490         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
3491         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
3492         (LANG_HOOKS_INITIALIZER): Add it.
3493         * toplev.h (struct lang_hooks): Add clear_binding_stack.
3494         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
3495         instead of a loop calling poplevel.
3497 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
3499         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
3500         occurrences of #elif with #if...#endif.
3502 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3504         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
3506 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3508         * alias.c (can_address_p): No longer static.
3509         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
3510         Return 0 if all parameters are default values.
3511         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
3512         (adjust_address_1): Try harder to compute a size.
3513         * expr.c (expand_assignment, store_constructor): If can't address,
3514         set MEM_KEEP_ALIAS_SET_P.
3515         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
3516         (store_field): Likewise.
3517         (store_constructor): Simplify call to store_constructor_field.
3518         * expr.h (can_address_p): New declaration.
3519         * gensupport.c (gen_rtx_CONST_INT): New function.
3520         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
3521         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
3522         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
3524         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
3526 2001-10-24  Christopher Faylor  <cgf@redhat.com>
3528         * config/i386/cygwin.h: Use proper path for mingw crt files when
3529         -mno-cygwin.
3531 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3533         * dwarf2out.c (file_info_cmp): Always return consistent results.
3535 2001-10-24  Roger Sayle <roger@eyesopen.com>
3537         * stmt.c (expand_end_case): Index jumptables from zero for
3538         suitably small values of minval.
3540 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
3542         * stor-layout.c (place_union_field): If any field was aligned with
3543         attribute aligned, set record type's TYPE_USER_ALIGN.
3544         (place_field): Likewise.
3545         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
3546         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
3548 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
3550         * c-common.h (struct c_common_identifier): Remove rid_code field.
3551         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
3553         * c-typeck.c (constructor_designated): New local flag.
3554         (struct constructor_stack): Add "designated" field to match.
3555         (start_init): Clear it.
3556         (really_start_incremental_init, push_init_level): Push and
3557         clear it.
3558         (pop_init_level): Pop it.
3559         (set_designator): Set it.
3561         (pop_init_level): Suppress "missing initializer" warnings if
3562         constructor_designated is true.
3563         (process_init_element): Suppress warning about union
3564         initialization under traditional C, if constructor_designated
3565         is true.
3567 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3569         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
3570         change.
3572 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
3574         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
3576 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
3578         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
3579         the node was already a set to a constant.
3581 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3583         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
3584         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
3586 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3588         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
3589         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
3590         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
3591         * s390.c (s390_final_chunkify): Don't use string concatenation.
3592         (s390_function_prologue, s390_function_epilogue): Const-ify.
3593         * s390.h (FUNCTION_PROFILER): Remove unused variable.
3595 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
3597         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
3598         prototypes.
3600 2001-10-23  Stan Shebs  <shebs@apple.com>
3602         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
3603         -traditional-cpp in first-stage compilation.
3605 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3607         * gensupport.c (target_flags): Add.
3609 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
3611         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
3612         if needed.
3613         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
3614         * except.c (expand_builtin_frob_return_addr): Likewise.
3615         (expand_builtin_eh_return): Likewise.
3616         * stmt.c (expand_computed_goto): Likewise.
3617         * explow.c (memory_address): Likewise.
3618         (allocate_dynamic_stack_space): Clean up predicate testing.
3619         (probe_stack_range): Convert SIZE to Pmode.
3620         * calls.c (rtx_for_function_call): Only call convert_memory_address
3621         if needed.
3622         Pass function call operand as ptr_mode, not Pmode.
3623         * expr.c (expand_assignment): Clean up calls to convert_memory
3624         address by only doing so when needed and making offsets Pmode.
3625         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
3626         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
3627         is in Pmode, not ptr_mode.
3629 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3631         * darwin-protos.h (constructor_section, destructor_section,
3632         mod_init_section, mod_term_section): Prototype.
3633         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
3634         Const-ify.
3635         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
3636         Likewise.
3637         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
3638         objc_section_init declaration.
3639         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
3640         (objc_section_init, try_section_alias): Make static.
3641         (alias_section): Make static and hide unused function.
3642         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
3644 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3646         * alias.c (can_address_p): Compnonents are not addressable if
3647         the containing type has alias set 0.
3648         (get_alias_set): Rework to use STRIP_NOPS.
3649         Only call front-end routine on object, type, or object with
3650         NOPs stripped, not inner values.
3651         Use language hook to call front-end routine.
3652         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
3653         (expand_builtin_apply): Call set_mem_align on MEMs we make.
3654         Don't pass alignment to emit_block_move.
3655         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
3656         (expand_builtin_memset): Likewise, but for clear_storage.
3657         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
3658         and remove C++ specific parts.
3659         * c-common.h (c_common_get_alias_set): Add declaration.
3660         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
3661         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
3662         (save_fixed_argument_area): Call set_mem_align.
3663         Remove alignment in call to emit_block_move.
3664         (emit_library_call_value_1, store_one_arg): Likewise.
3665         (target_for_arg): Remove; disabled long ago.
3666         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
3667         once and similar cleanups.
3668         (offset_address): Use proper introductory comment.
3669         * expr.c (emit_block_move): Use alignment from that of MEM args, not
3670         from explicit operand; all callers changed.
3671         (clear_storage): Likewise.
3672         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
3673         (store_field): Remove kludge on alias set used for to_rtx.
3674         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
3675         (expand_expr_unaligned): Call set_mem_attributes instead of
3676         set_mem_alias_set.
3677         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
3678         * function.c (assign_stack_temp_for_type): Set MEM alignment.
3679         (expand_function_end): Track MEM attributes of trampolines.
3680         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
3681         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
3682         attributes from original.
3683         * langhooks.c (lang_hook_default_get_alias_set): New function.
3684         (hook_get_alias_set_0): New function.
3685         * langhooks.h (hook_get_alias_set_0): New declaration.
3686         (lang_hook_default_get_alias_set): Likewise.
3687         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
3688         * reload1.c (alter_reg): Use adjust_address_nv.
3689         * rtl.c (get_mode_alignment): Moved to here.
3690         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
3691         change default if unknown from 1 to BITS_PER_UNIT.
3692         * stor-layout.c (get_mode_alignment): Remove from here.
3693         * toplev.h (struct lang_hoks): Add get_alias_set field.
3694         * tree.h (lang_get_alias_set): Delete declaration.
3695         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
3696         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
3697         (ix86_va_arg): Likewise.
3698         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
3699         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3700         * config/sparc/sparc.c (sparc_va_arg): Likewise.
3701         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
3702         (expand_block_move_mem): Remove dead code.
3704 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3706         * c-common.c (warn_div_by_zero): New.
3707         * c-common.h (warn_div_by_zero): New.
3708         * c-decl.c (c_decode_option): Take it on the command line.
3709         * c-typeck.c (build_binary_op): Warn about division by zero.
3710         * doc/invoke.texi: Document the new command line option, fix
3711         documentation of -Wmultichar.
3712         * testsuite/gcc.dg/divbyzero.c: New tests.
3713         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
3715 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
3717         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
3719         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
3720         to avoid update_life_info call.
3721         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
3722         * cfgcleanup.c (bb_flags): New enum.
3723         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
3724         (notice_new_block, update_forwarder_flag): New functions.
3725         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
3726         (try_forward_edges): Likewise; update flags.
3727         (merge_blocks): Likewise.
3728         (outgoing_edges_match): Likewise.
3729         (try_crossjump_to_edge): Likewise.
3730         (try_optimize_cfg): Likewise; initialize and clear the flags;
3731         recompute life info if needed.
3732         (cleanup_cfg): No need to clear aux pointers.
3734 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
3736         * config/i386/i386.c (override_options): Default to minimum
3737         stack alignment when optimizing for code size.
3738         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
3739         change.
3741         * config/i386/i386.c (override_options): Set upper limit of
3742         -mpreferred-stack-boundary to 12.
3744 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
3746         * recog.c (peephole2_optimize): Add default case to switch.
3748 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
3750         * doc/gcc.texi (Sending Patches): Remove.
3752 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
3754         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
3755         fields when comparing.
3757 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3759         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
3760         * arm.c (HOST_INT, HOST_UINT): Likewise.
3762 2001-10-22  Stan Shebs  <shebs@apple.com>
3764         * config/darwin-protos.h (darwin_exception_section): Declare.
3765         (darwin_eh_frame_section): Declare.
3767 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
3769         * i386.md (movti_rex64): Fix mode.
3771 2001-10-22  Stan Shebs  <shebs@apple.com>
3773         * target.h (struct gcc_target): Add asm_out.exception_section,
3774         asm_out.eh_frame_section.
3775         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
3776         (TARGET_ASM_EH_FRAME_SECTION): New.
3777         (TARGET_INITIALIZER): Update.
3778         * output.h (default_exception_section): Declare.
3779         (default_eh_frame_section): Declare.
3780         * dwarf2out.c: Include target.h.
3781         (output_call_frame_info): Call target hook for eh frames.
3782         (default_eh_frame_section): New function.
3783         * except.c: Include target.h.
3784         (output_function_exception_table): Call target hook for exception
3785         section.
3786         * varasm.c (default_exception_section): Rename from
3787         exception_section, remove EXCEPTION_SECTION macro.
3789         * config/darwin.h (darwin_eh_frame_section): New function.
3790         (EXCEPTION_SECTION): Remove.
3791         (TARGET_ASM_EXCEPTION_SECTION): Define.
3792         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
3793         (nextstep_exception_section): New function.
3794         (nextstep_eh_frame_section): New function.
3795         (TARGET_ASM_EXCEPTION_SECTION): Define.
3796         (TARGET_ASM_EH_FRAME_SECTION): Define.
3798         * config/pa/som.h (EXCEPTION_SECTION): Remove.
3799         (TARGET_ASM_EXCEPTION_SECTION): Define.
3800         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
3801         (EXCEPTION_SECTION): Remove.
3802         (TARGET_ASM_EXCEPTION_SECTION): Define.
3803         * config/stormy16/stormy16.h: Remove comments referencing
3804         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
3806         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
3807         TARGET_ASM_EH_FRAME_SECTION.
3809 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
3811         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
3812         terms.
3814         * c-format.c: Fix spelling typo in comment.
3816         * sched-int.h: Fix typo in GCC preamble.
3818 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3820         PR debug/4252
3821         * doc/invoke.texi: Remove references to -fdump-translation-unit.
3823 2001-10-22  Richard Henderson  <rth@redhat.com>
3825         * config/i386/i386.c (ix86_expand_clear): New.
3826         * config/i386/i386-protos.h: Declare it.
3827         * config/i386/i386.md (setcc peep2s): Use it.
3828         (movsi_xor): Unexport.
3830 2001-10-22  Richard Henderson  <rth@redhat.com>
3832         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
3833         free_EXPR_LIST_list for LOG_LINKS.
3835 2001-10-21  Robert Lipe  <robertlipe@usa.net>
3837         * config/i386/i386.c (sco_asm_named_section): Delete.
3838         (sco_asm_out_constructor): Delete.
3839         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
3840         (ASM_OUTPUT_DOUBLE_INT): Likewise.
3841         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
3842         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
3843         (EXCEPTION_SECTION): Delete EH scn renaming hack.
3845 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3847         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
3848         and/or fold extra calls into fewer ones.
3849         * collect2.c (dump_file): Likewise.
3850         * cppexp.c (parse_number): Likewise.
3851         * cpplex.c (_cpp_lex_direct): Likewise.
3852         * final.c (output_asm_insn, asm_fprintf): Likewise.
3853         * fix-header.c (inf_scan_ident, main): Likewise.
3854         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
3855         Likewise.
3856         * fold-const.c (real_hex_to_f): Likewise.
3857         * gen-protos.c (parse_fn_proto): Likewise.
3858         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
3859         * genrecog.c (change_state, write_action): Likewise.
3860         * gensupport.c (shift_output_template): Likewise.
3861         * local-alloc.c (requires_inout): Likewise.
3862         * mips-tfile.c (IS_ASM_IDENT): Likewise.
3863         * protoize.c (is_id_char, main): Likewise.
3864         * real.c (asctoeg): Likewise.
3865         * recog.c (asm_operand_ok): Likewise.
3866         * reload.c (find_reloads): Likewise.
3867         * scan.c (scan_identget_token): Likewise.
3868         * sched-vis.c (print_value): Likewise.
3869         * stringpool.c (ggc_alloc_string): Likewise.
3870         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
3871         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
3872         * tradcpp.c (rescan): Likewise.
3873         * tree.c (clean_symbol_name): Likewise.
3874         * varasm.c (decode_reg_name): Likewise.
3876         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
3877         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
3878         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
3879         * m88k.c (output_ascii): Likewise.
3880         * m88k.h (OVERRIDE_OPTIONS): Likewise.
3881         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
3882         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
3883         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
3885 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3887         * langhooks.c (lang_hook_default_do_nothing,
3888         lang_hook_default_decode_option): New defaults.
3889         * langhooks.h: Make hooks unconditional and non-NULL.
3890         * toplev.c (compile_file, toplev_main): Update.
3891         * toplev.h: Update comments.
3892         * objc/objc-act.c (lang_hooks): Update to new paradigm.
3894 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3896         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
3898         * system.h (IN_RANGE): New macro.
3900 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
3902         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
3903         INTLDEPS variable, which does not include $LIBICONV.
3904         * Makefile.in: Use INTLDEPS in LIBDEPS.
3905         * configure: Regenerate.
3907 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3909         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
3910         * cpplex.c (lex_percent, lex_dot): Remove.
3911         (get_effective_char, skip_block_comment, skip_line_comment,
3912         parse_identifier_slow, parse_number, parse_string, save_comment,
3913         _cpp_lex_direct): Update to do lookback freely.
3914         (IF_NEXT_IS, BACKUP): New macros.
3915         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
3916         * cppmacro.c (paste_tokens): Update.
3918 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
3920         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
3922 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
3924         * reload1.c (reload): Check CONSTANT_P before calling
3925         LEGITIMATE_PIC_OPERAND_P.
3926         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
3927         workaround of 2001-10-13.
3929 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
3931         * i386.c (split_di): Handle splitting of DFmode.
3933 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3935         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
3936         (adjust_address_1, offset_address): Likewise.
3938         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
3939         (output_asm_insn): Call it for each line output.
3940         Don't record an operand more than once.
3942         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
3943         * main.c: Include config.h and system.h, but not ansidecl.h.
3944         * Makefile.in (main.o): Update accordingly.
3946 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
3948         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
3950 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
3952         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
3953         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
3954         Break out from ...
3955         (find_sub_basic_blocks): ... here;
3956         (find_many_sub_basic_blocks): New.
3957         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
3959         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
3961         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
3963         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
3965         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
3966         * flow.c (update_life_info): Measure time.
3967         * c-decl.c: Include timevar.h
3968         (c_expand_body): Measure time.
3969         * toplev.c (rest_of_compilation): Measure time of mode switching
3970         separately.
3971         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
3973         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
3974         (lang_independent_options): Add asynchronous-unwind-tables
3975         (toplev_main): flag_asynchronous_unwind_tables implies
3976         flag_unwind_tables.
3977         * flags.h (flag_asynchronous_unwind_tables): Declare.
3978         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
3979         flag_asynchronous_unwind_tables.
3980         (output_call_frame_info): Likewise.
3981         * invoke.texi (-fasynchronous-unwind-tables): Document.
3982         * i386.c (optimization_options): Enable
3983         flag_asynchronous_unwind_tables.
3985         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
3986         * i386.md (s* expanders): Destination is QImode.
3988         * toplev.c (rest_of_compilation): Do not call clear_log_links.
3989         * rtl.h (clear_log_links): Kill.
3990         * flow.c (clear_log_links): Make static; accept blocks parameter;
3991         do no clear life info.
3992         (update_life_info): Call clear_log_links.
3994         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
3996 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3998         * cpplex.c (handle_newline, skip_escaped_newlines,
3999         get_effective_char, skip_block_comment, skip_line_comment,
4000         parse_identifier_slow, parse_number, parse_string,
4001         _cpp_lex_direct): Update to do more stepping back.
4002         (trigraph_ok): Similarly.  Rename trigraph_p.
4003         (SAVE_STATE, RESTORE_STATE): Remove.
4004         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
4006         * cpplib.c (destringize): Rename destringize_and_run, and
4007         call run_directive directly.
4008         (_cpp_do__Pragma): Simplify.
4010 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4012         * pe.c (arm_pe_unique_section): Const-ify.
4013         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
4014         (switch_to_section): Add static prototype.
4016         * output.h (drectve_section): Prototype.
4018 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4020         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
4021         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
4022         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
4023         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
4024         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4025         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
4026         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
4027         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
4028         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
4029         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
4030         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
4031         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
4032         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
4033         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
4034         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
4035         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
4036         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
4037         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
4038         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
4039         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
4040         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
4041         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
4042         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
4043         cris-*-none, cris-*-linux*: Update ${tmfile} list.
4044         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
4045         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
4046         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
4047         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
4048         v850-*-*): Delete superflous ${cpu_type} setting.
4049         * config/linux.h: Delete svr4.h include.
4050         (SET_ASM_OP): Delete.
4051         * config/netware.h (INT_ASM_OP): Undef before define.
4052         * config/ptx4.h: Delete elfos.h include.
4053         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
4054         * config/svr4.h: Delete elfos.h include. Update commentary.
4055         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
4056         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
4057         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
4058         config/v850/v850.h: Delete svr4.h include.
4059         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
4060         config/m68k/m68kv4.h, config/m88k/sysv4.h,
4061         config/sparc/sysv4.h: Update includes.
4062         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
4063         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
4064         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
4065         config/m88k/dguxbcs.h: Delete includes.
4066         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
4067         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
4068         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
4069         it.
4070         * config/m88k/dgux.h: Delete include.
4071         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
4072         defining it.
4073         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
4074         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
4075         * config/sh/elf.h: Update include.
4076         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
4077         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
4079 2001-10-19  Catherine Moore  <clm@redhat.com>
4081         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
4082         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
4083         base and count fields.
4084         (stormy16_expand_builtin_va_start):  last_reg_count changed to
4085         size_of_reg_args.  Use count + size in first comparison.
4087 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4089         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
4090         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
4091         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
4092         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
4093         Set alignment from type if INDIRECT_REF.
4094         (adjust_address_1, offset_address): Simplify alignment compuitation.
4095         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
4096         here; done by set_mem_attributes.
4098 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4100         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
4101         * arm-protos.h (rdata_section, zero_init_section, common_section):
4102         Prototype.
4103         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
4104         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
4105         traditional mode stringification.
4106         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
4107         in macros controling its use.
4108         * rtlanal.c: Include tm_p.h.
4109         * varasm.c (asm_output_aligned_bss): Mark parameter with
4110         ATTRIBUTE_UNUSED.
4111         (assemble_constant_align, assemble_start_function, assemble_align,
4112         assemble_variable, assemble_trampoline_template,
4113         output_constant_def_contents): Wrap potentially empty if-stmt body
4114         in brackets.
4116 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4118         * a29k-protos.h (literal_section): Prototype.
4119         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
4120         * a29k.md: Ensure function pointers are prototyped.
4121         * genattrtab.c (write_eligible_delay): Mark parameter with
4122         ATTRIBUTE_UNUSED.
4124 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4126         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
4127         * 1750a.c (print_operand): Fix format specifier warning.
4128         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
4129         * 1750a.md: Likewise.
4130         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
4131         * genemit.c (output_add_clobbers): Mark parameter with
4132         ATTRIBUTE_UNUSED.
4133         * genrecog.c (write_subroutine): Likewise.
4134         * integrate.c (expand_inline_function): Delete unused variable.
4135         * varasm.c (remove_from_pending_weak_list): Wrap with
4136         ASM_WEAKEN_LABEL.
4138 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
4140         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
4141         field is different to previous argument's neg field.
4143         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
4145 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4147         * final.c (get_decl_from_op): New function.
4148         (output_asm_insn): Call it; write "*" when item with decl is address.
4150 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
4152         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
4153         about 64-bit support from the 3.0_branch version.
4155 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
4157         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
4158         USE_INCLUDED_LIBINTL when appropriate.
4159         * configure, config.in: Regenerate.
4160         * Makefile.in (datadir): Set to @datadir@.
4161         (intl.o): Also depend on $(CONFIG_H) and system.h.
4163         * intl.c: Factor out common gettext initialization sequence.
4164         (gcc_init_libintl):  New function.
4165         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
4166         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
4167         off NLS.  Add multiple include guard.  No need to #ifdef-guard
4168         an #undef.  Prototype gcc_init_libintl here.
4170         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
4171         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
4172         Use gcc_init_libintl.
4174 2001-10-19  Catherine Moore  <clm@redhat.com>
4176         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
4178         * config/stormy16/stormy16.c (stormy16_split_move):  Make
4179         sure that REG_INC notes are present for auto_inc operands.
4181 2001-10-19  Andreas Jaeger  <aj@suse.de>
4183         * configure: Regenerated.
4184         * configure.in: Add x86_64 to switch statements.
4186 2001-10-18  Richard Henderson  <rth@redhat.com>
4188         * config/alpha/alpha.md (sibcall_osf_1): Load destination
4189         address into $27 explicitly.
4190         (sibcall_value_osf_1): Likewise.
4192 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4194         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
4195         (offset_address): New function.
4196         (free_emit_status): Free regno_decl.
4197         (init_emit): Pass proper number of elements to xcalloc.
4198         Allocate regno_decl.
4199         (mark_emit_status): Mark regno_decl values.
4200         * expr.c (highest_pow2_factor): New function.
4201         (expand_assigment): Use it and offset_address.
4202         Properly handle ptr_mode vs. Pmode in offset calculation.
4203         (store_constructor, expand_expr_unaligned): Likewise.
4204         (expand_expr, case COMPONENT_EXPR): Likewise.
4205         * expr.h (offset_address): New decl.
4206         * function.h (struct emit_status): Add regno_decl.
4207         (REGNO_DECL): New macro.
4208         * final.c (output_asm_name): Move in file and don't conditionalize
4209         on flag_print_asm_name.
4210         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
4211         Output names of operands, if known.
4212         * function.c (assign_parms): Set REGNO_DECL.
4213         * integrate.c (integrate_decl_tree): Likewise.
4214         * stmt.c (expand_decl): Likewise.
4215         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
4217 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
4219         * attribs.c (handle_noinline_attribute): New function.
4220         (handle_used_attribute): Likewise.
4221         (c_common_attribute_table): Added noinline and used.
4222         * doc/extend.texi (Function Attributes): Document them.
4223         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
4224         Warn when merging inline with attribute noinline.
4225         (start_decl, start_function): Warn if inline and attribute
4226         noinline appear in the same declaration.
4228 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
4230         * config.gcc: Update c4x and i370 for C front end-specific
4231         dependencies.
4232         * config/c4x/c4x-c.c: New.
4233         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
4234         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
4235         New declarations.
4236         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
4237         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
4238         Make extern.
4239         (c4x_init_pragma): Remove.
4240         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
4241         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
4242         c4x_pr_ignored): Move to c4x-c.c.
4243         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
4244         * config/c4x/t-c4x: Update.
4245         * config/i370/i370-c.c: New.
4246         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
4247         (i370_pr_map): Move to i370-c.c.
4248         * config/i370/t-i370: New.
4250         * doc/tm.texi: Update.
4252 2001-10-17  Stan Shebs  <shebs@apple.com>
4254         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
4255         typo fixes throughout.
4256         (machopic_output_stub): Remove some dead code.
4258 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
4260         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
4261         leak.
4263 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4265         * Makefile.in (print-rtl.o): Depend on TREE_H.
4266         * alias.c (get_alias_set): Make two passes over objects to first
4267         see if inner object is access via restricted pointer.
4268         Defer allocating alias set for restricted pointer until here.
4269         Call find_placeholder with second arg nonzero.
4270         Minor cleanups.
4271         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
4272         set for restricted pointer types.
4273         * emit-rtl.c (set_mem_attributes): Set more attributes.
4274         (set_mem_align, change_address, adjust_address_1): New functions.
4275         (change_address_1): Now static.
4276         (adjust_address, adjust_address_nv): Deleted.
4277         (replace_equiv_address): Call change_address_1.
4278         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
4279         (find_placeholder): Get starting point from PLIST arg.
4280         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
4281         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
4282         (adjust_address, adjust_address_nv): New macros.
4283         * print-rtl.c (tree.h): New include.
4284         (print_rtx, case MEM): Print all memory attributes.
4286 2001-10-17  Richard Henderson  <rth@redhat.com>
4288         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
4290 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
4292         * c-tree.texi: Eliminate duplicated word.
4293         * cpp.texi: Likewise.
4294         * install.texi: Likewise.
4295         * invoke.texi: Likewise.
4296         * tm.texi: Likewise.
4298 2001-10-17  Michael Collison  <collison@isisinc.net>
4300         * dsp16xx.c: Fix comment formatting to match GNU standards.
4301         (dsp16xx_output_function_prologue): Change type of 'size'
4302         parameter from 'int' to HOST_WIDE_INT.
4303         (dsp16xx_output_function_epilogue): Change type of 'size'
4304         parameter from 'int' to HOST_WIDE_INT.
4306 2001-10-16  Richard Henderson  <rth@redhat.com>
4308         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
4309         * configure, config.in: Rebuild.
4311         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
4312         (ix86_output_addr_diff_elt): New.
4313         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
4314         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4315         (JUMP_TABLES_IN_TEXT_SECTION): New.
4316         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
4317         * config/i386/i386-protos.h: Update.
4319         * config/i386/386bsd.h, config/i386/beos-elf.h,
4320         config/i386/freebsd-aout.h, config/i386/freebsd.h,
4321         config/i386/i386-interix.h, config/i386/i386elf.h,
4322         config/i386/linux.h, config/i386/netbsd-elf.h,
4323         config/i386/netbsd.h, config/i386/openbsd.h,
4324         config/i386/ptx4-i.h, config/i386/rtemself.h,
4325         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
4326         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
4328 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
4330         * stmt.c (expand_asm_operands): Update commentary.
4332 2001-10-16  Stan Shebs  <shebs@apple.com>
4334         * config/darwin.h (GCC_NAME): Remove, no longer used.
4335         (NO_MATH_LIBRARY): Ditto.
4336         (MATH_LIBRARY): Define to emptiness.
4337         (DWARF2_DEBUGGING_INFO): Define.
4338         (PREFERRED_DEBUGGING_TYPE): Define.
4339         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
4340         (EXCEPTION_SECTION): Define.
4341         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4342         * config/darwin.c (darwin_encode_section_info): Handle case of
4343         DECL_INITIAL being error_mark_node.
4345 2001-10-16  Richard Henderson  <rth@redhat.com>
4347         * alpha.c (current_file_function_operand): Don't fail for profiling.
4348         (direct_call_operand): New.
4349         * alpha-protos.h: Declare it.
4350         * alpha.h (EXTRA_CONSTRAINT): Use it.
4351         (PREDICATE_CODES): Add it.
4352         (ASM_OUTPUT_MI_THUNK): Remove.
4353         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
4354         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
4356 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
4358         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
4359         (JUMP_TABLES_IN_TEXT_SECTION): Define.
4361 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
4363         * cfg.c (free_edge): Break out from ....
4364         (remove_edge): ... here.
4365         (clear_edges): Use free_edge.
4367         * att.h (ASM_QUAD): Add comment.
4368         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
4370 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
4372         * i386.c (split_ti): New function.
4373         (ix86_split_to_parts): Support TImodes.
4374         * i386.h (VALID_INT_MODE_P): Add TImode.
4375         * i386.md (movdi splitter): Fix.
4376         (movti): Support 64bit integer registers.
4377         (movti_rex64): New function and splitter.
4379         * i386.c (*_cost): Add movsx/movzx cost.
4380         * i386.h (struct processor_costs): Add movsx/movzx fields.
4381         (RTX_COSTS): Handle zero/sign extend + avoid believing that
4382         64bit operations require split on 64bit machine.
4383         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
4385         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
4386         (ix86_expand_move): Avoid pushes of memory if size does not match;
4387         move long constants to register.
4388         (x86_initialize_trampoline): Fix mode.
4389         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
4390         Use ASM_QUAD on 64bit.
4391         * i386.md (test pattern): Disallow impossible constants.
4392         (tablejump PIC expander): Fix emitting of sum.
4393         (movdicc_rex64): Rename to movdicc.
4394         * linux64.h (LINK_SPEC): Add missing '%'.
4396 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
4398         * tree-inline.c (inlinable_function_p): Leave it up to the
4399         front-end to turn -finline-functions into DECL_INLINE set for all
4400         functions.
4402 2001-10-16  Stan Shebs  <shebs@apple.com>
4404         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
4406 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
4408         * recog.c: Formatting and comment typo fixes.
4410         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
4411         version in single tree build.
4412         * configure: Regenerate.
4414 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
4416         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
4417         MODE arguments to gen_rtx and compare operand with const0_rtx.
4419 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4421         * system.h: Poison old unused target macros.
4422         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
4423         * config/stormy16/stormy16.c: Update references to obsolete macros.
4424         * config/stormy16/stormy16.h: Similarly.
4425         * config/stormy16/stormy16.md: Similarly.
4426         * config/cris/cris.h: Similarly.
4428 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
4430         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
4431         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
4432         cpp_register_pragma): Update accordingly.
4434 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
4436         * c-pragma.h (cpp_register_pragma_space): Remove.
4437         * cpplib.h (cpp_register_pragma_space): Remove.
4438         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
4439         (cpp_register_pragma_space): Remove.
4440         (cpp_register_pragma): Simplify using lookup_pragma_entry,
4441         add sanity checks.
4442         (do_pragma): Similarly.
4443         (_cpp_init_internal_pragmas): Don't register namespaces.
4445         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
4446         Don't register namespaces.
4447         * cp/lex.c (init_cp_pragma): Similarly.
4448         * doc/tm.texi: Update.
4450 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4452         PR c/4157
4453         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
4455 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
4457         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
4458         add scheduling support.
4459         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
4460         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
4461         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
4464 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
4466         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
4467         missing CONSTANT_P test in core GCC.
4469 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
4471         * cppmain.c (struct printer): New member source.
4472         (scan_translation_unit): Fix spacing at start of lines.
4473         (cb_line_change): Update.
4475         * gcc.dg/cpp/spacing2.c: New test.
4477 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
4479         * config/cris/arit.c: Use __builtin_labs, not abs.
4481         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
4483         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
4484         misplaced sprintf and fprintf argument.
4486 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
4488         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
4489         * configure.in, Makefile.in: Take out obsolete check-po logic.
4490         * configure, config.in: Regenerate.
4492 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
4494         * objc/objc-act.c (finish_objc): Correct precondition for emitting
4495         symtab declarations.
4497 2001-10-12  Stan Shebs  <shebs@apple.com>
4499         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
4500         declarations of arguments and local variables.
4502 2001-10-12  Christopher Faylor  <cgf@redhat.com>
4504         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
4505         ENDFILE_SPEC definition.
4507 2001-10-12  Kazu Hirata  <kazu@hxi.com>
4509         * gthr-dce.h: Fix comment formatting.
4510         * gthr-posix.h: Likewise.
4511         * gthr-single.h: Likewise.
4512         * gthr-solaris.h: Likewise.
4513         * gthr-vxworks.h: Likewise.
4514         * gthr-win32.h: Likewise.
4516 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
4518         * final.c (output_asm_insn): Make sure assembly dialects are
4519         terminated, not nested.  Output `|' and `}' characters if they
4520         don't appear inside assembly dialect selection.
4521         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
4522         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
4523         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
4524         strsetsi_rex_1): Add {} braces.
4526 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
4528         * toplev.c (compile_file): Ignore return value from yyparse.
4529         Always pop any nested binding levels after yyparse returns.
4531 2001-10-11  Richard Henderson  <rth@redhat.com>
4533         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
4535 2001-10-11  Richard Henderson  <rth@redhat.com>
4537         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
4538         fall back to add_AT_long_long for large CONST_INT.
4540 2001-10-11  Richard Henderson  <rth@redhat.com>
4542         * config/i386/i386.md (setcc splitters): Add four splitters to
4543         simplify compound compares that simplify_comparison can't handle.
4545 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
4547         * cpplex.c (digraph_spellings, token_spellings): Make static.
4549 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4551         * unroll.c (loop_iterations): Fixup last patch.
4553 2001-10-11  Richard Henderson  <rth@redhat.com>
4555         * rtl.h (REG_VTABLE_REF): New.
4556         * rtl.c (reg_note_name): Add it.
4557         * combine.c (distribute_notes): Handle it.
4558         * final.c (final_scan_insn): Handle it.
4559         * tree.def (VTABLE_REF): New.
4560         * expr.c (expand_expr): Handle it.
4561         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
4562         * output.h: Declare them.
4564 2001-10-11  Richard Henderson  <rth@redhat.com>
4566         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
4567         for a DECL_INITIAL.
4569 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
4571         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
4572         available in 64-bit mode.
4574 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
4576         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
4577         cris-*-linux* cases.
4578         * config/cris/cris-protos.h: New file.
4579         * config/cris/cris.c: New file.
4580         * config/cris/cris.h: New file.
4581         * config/cris/cris.md: New file.
4582         * config/cris/linux.h: New file.
4583         * config/cris/aout.h: New file.
4584         * config/cris/arit.c: New file.
4585         * config/cris/cris_abi_symbol.c: New file.
4586         * config/cris/mulsi3.asm: New file.
4587         * config/cris/t-aout: New file.
4588         * config/cris/t-cris: New file.
4589         * config/cris/t-elfmulti: New file.
4590         * config/cris/t-linux: New file.
4591         * doc/invoke.texi: Add CRIS options.
4592         * doc/install.texi (Specific): Add blurb for CRIS.
4594 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
4596         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
4597         before using it.
4598         * config/float/i32.h: Likewise.
4599         * config/float-i386.h: Likewise.
4600         * config/float-i64.h: Likewise.
4601         * config/float-m68k.h: Likewise.
4602         * config/float-sh.h: Likewise.
4603         * config/float-sparc.h: Likewise.
4605 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
4607         * doc/contrib.texi: Add note about CRIS port to my entry.
4609 2001-10-11  Kazu Hirata  <kazu@hxi.com>
4611         * basic-block.h: Fix formatting.
4612         * bitmap.h: Likewise.
4613         * cpplib.h: Likewise.
4614         * c-tree.h: Likewise.
4615         * diagnostic.h: Likewise.
4616         * flags.h: Likewise.
4617         * ggc.h: Likewise.
4618         * longlong.h: Likewise.
4619         * real.h: Likewise.
4620         * reload.h: Likewise.
4621         * rtl.h: Likewise.
4622         * tree.h: Likewise.
4624 2001-10-10  Richard Henderson  <rth@redhat.com>
4626         * c-parse.in (asm_operand): Allow named operands.
4627         * genconfig.c (max_recog_operands): Set to 29.
4628         * local-alloc.c (requires_inout): Skip multiple digits.
4629         * recog.c (asm_operand_ok): Likewise.
4630         (preprocess_constraints): Use strtoul for matching constraints.
4631         (constrain_operands): Likewise.
4632         * regmove.c (find_matches): Likewise.
4633         * reload.c (find_reloads): Likewise.
4634         * stmt.c (parse_output_constraint): Don't reject in-out
4635         constraint on operands > 9.  Reject '[' in constraint.
4636         (expand_asm_operands): Handle named operands.  Use strtoul
4637         for matching constraints.
4638         (check_operand_nalternatives): Split out from expand_asm_operands.
4639         (check_unique_operand_names): New.
4640         (resolve_operand_names, resolve_operand_name_1): New.
4642         * doc/extend.texi (Extended Asm): Document named operands.
4643         * doc/md.texi (Simple Constraints): Document matching constraints
4644         on operands > 9.
4646 2001-10-10  Richard Henderson  <rth@redhat.com>
4648         * combine.c (try_combine): Handle a SEQUENCE of one insn.
4650         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
4651         (jcc splitters): Add two splitters to simplify compound compares
4652         that simplify_comparison can't handle.
4654 2001-10-10  Richard Henderson  <rth@redhat.com>
4656         * langhooks.c: Include langhooks.h.
4657         * Makefile.in (langhooks.o): Depend on it.
4659 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
4661         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
4662         should not be considered as a no-op.
4663         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
4665 2001-10-10  Stan Shebs  <shebs@apple.com>
4667         * alias.c: Remove uses of "register" specifier in declarations
4668         of arguments and local variables.
4669         * c-common.c: Ditto.
4670         * c-convert.c: Ditto.
4671         * c-decl.c: Ditto.
4672         * c-format.c: Ditto.
4673         * c-semantics.c: Ditto.
4674         * c-typeck.c: Ditto.
4675         * caller-save.c: Ditto.
4676         * calls.c: Ditto.
4677         * cfg.c: Ditto.
4678         * cfgbuild.c: Ditto.
4679         * cfgrtl.c: Ditto.
4680         * collect2.c: Ditto.
4681         * combine.c: Ditto.
4682         * convert.c: Ditto.
4683         * cppexp.c: Ditto.
4684         * cppfiles.c: Ditto.
4685         * cse.c: Ditto.
4686         * dbxout.c: Ditto.
4687         * defaults.h: Ditto.
4688         * df.c: Ditto.
4689         * dwarf2out.c: Ditto.
4690         * dwarfout.c: Ditto.
4691         * emit-rtl.c: Ditto.
4692         * explow.c: Ditto.
4693         * expmed.c: Ditto.
4694         * expr.c: Ditto.
4695         * final.c: Ditto.
4696         * fix-header.c: Ditto.
4697         * floatlib.c: Ditto.
4698         * flow.c: Ditto.
4699         * fold-const.c: Ditto.
4700         * function.c: Ditto.
4701         * gcc.c: Ditto.
4702         * gcse.c: Ditto.
4703         * gen-protos.c: Ditto.
4704         * genattrtab.c: Ditto.
4705         * gencheck.c: Ditto.
4706         * genconfig.c: Ditto.
4707         * genemit.c: Ditto.
4708         * genextract.c: Ditto.
4709         * genflags.c: Ditto.
4710         * gengenrtl.c: Ditto.
4711         * genoutput.c: Ditto.
4712         * genpeep.c: Ditto.
4713         * genrecog.c: Ditto.
4714         * gensupport.c: Ditto.
4715         * global.c: Ditto.
4716         * gmon.c: Ditto.
4717         * graph.c: Ditto.
4718         * haifa-sched.c: Ditto.
4719         * hard-reg-set.h: Ditto.
4720         * hash.c: Ditto.
4721         * integrate.c: Ditto.
4722         * jump.c: Ditto.
4723         * lists.c: Ditto.
4724         * local-alloc.c: Ditto.
4725         * loop.c: Ditto.
4726         * mips-tdump.c: Ditto.
4727         * mips-tfile.c: Ditto.
4728         * optabs.c: Ditto.
4729         * prefix.c: Ditto.
4730         * print-rtl.c: Ditto.
4731         * read-rtl.c: Ditto.
4732         * real.c: Ditto.
4733         * recog.c: Ditto.
4734         * reg-stack.c: Ditto.
4735         * regclass.c: Ditto.
4736         * regmove.c: Ditto.
4737         * reload.c: Ditto.
4738         * reload1.c: Ditto.
4739         * reorg.c: Ditto.
4740         * resource.c: Ditto.
4741         * rtl.c: Ditto.
4742         * rtlanal.c: Ditto.
4743         * scan.c: Ditto.
4744         * sched-deps.c: Ditto.
4745         * sched-rgn.c: Ditto.
4746         * sdbout.c: Ditto.
4747         * simplify-rtx.c: Ditto.
4748         * stmt.c: Ditto.
4749         * stor-layout.c: Ditto.
4750         * toplev.c: Ditto.
4751         * tradcif.y: Ditto.
4752         * tradcpp.c: Ditto.
4753         * tree.c: Ditto.
4754         * unroll.c: Ditto.
4755         * varasm.c: Ditto.
4756         * xcoffout.c: Ditto.
4758 2001-10-10  Richard Henderson  <rth@redhat.com>
4760         * rtl.h (can_reverse_comparison_p): Remove.
4762 2001-10-10  Christopher Faylor <cgf@redhat.com>
4764         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
4765         used.
4767 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4769         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
4770         (Thanks to Chris Faylor for suggesting macro name).
4771         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
4772         WIN32 defines.
4773         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
4774         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
4775         (MATH_LIBRARY): Undef before definition.
4776         (OUTPUT_QUOTED_STRING): Likewise.
4777         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
4779 2001-10-10  Richard Henderson  <rth@redhat.com>
4781         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
4782         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
4783         a tristate comparison value.
4784         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
4786 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4788         PR c++/4512
4789         * unroll.c (loop_iterations): Ignore insns generated by loop
4790         unrolling.
4792         * config.gcc (mips*-*-gnu*): Delete support.
4793         * config/mips/gnu.h: Remove.
4795 2001-10-10  Kazu Hirata  <kazu@hxi.com>
4797         * calls.c: Fix formatting.
4798         * c-decl.c: Likewise.
4799         * cfgcleanup.c: Likewise.
4800         * combine.c: Likewise.
4801         * cppfiles.c: Likewise.
4802         * cpplib.c: Likewise.
4803         * cppmacro.c: Likewise.
4804         * crtstuff.c: Likewise.
4805         * cse.c: Likewise.
4806         * dwarf2out.c: Likewise.
4807         * expmed.c: Likewise.
4808         * expr.c: Likewise.
4809         * fold-const.c: Likewise.
4810         * function.c: Likewise.
4811         * gcse.c: Likewise.
4812         * genattrtab.c: Likewise.
4813         * ggc-page.c: Likewise.
4814         * integrate.c: Likewise.
4815         * libgcc2.c: Likewise.
4816         * loop.c: Likewise.
4817         * optabs.c: Likewise.
4818         * profile.c: Likewise.
4819         * protoize.c: Likewise.
4820         * real.c: Likewise.
4821         * recog.c: Likewise.
4822         * reload1.c: Likewise.
4823         * reload.c: Likewise.
4824         * reorg.c: Likewise.
4825         * resource.c: Likewise.
4826         * sched-rgn.c: Likewise.
4827         * sdbout.c: Likewise.
4828         * stmt.c: Likewise.
4829         * toplev.c: Likewise.
4830         * varasm.c: Likewise.
4832 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
4834         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
4835         * Makefile.in (langhooks.o): Add dependencies.
4837 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
4839         * rs6000.c (rs6000_emit_load_toc_table): Don't
4840         strdup the toc label.
4841         (create_TOC_reference): Likewise.
4843 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4845         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
4846         version default.
4848 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
4850         * config/i386/i386.c (ix86_attribute_table): Correct
4851         min_len, max_len fields for dllimport, dllexport and shared.
4853 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
4855         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
4856         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
4857         Consistently use "nonzero" instead of "non-zero".
4859 2001-10-09  Kazu Hirata  <kazu@hxi.com>
4861         * acconfig.h: Fix comment formatting.
4862         * c-dump.h: Likewise.
4863         * c-tree.h: Likewise.
4864         * conditions.h: Likewise.
4865         * expr.h: Likewise.
4866         * function.h: Likewise.
4867         * gthr.h: Likewise.
4868         * hwint.h: Likewise.
4869         * integrate.h: Likewise.
4870         * intl.h: Likewise.
4871         * loop.h: Likewise.
4872         * optabs.h: Likewise.
4874 2001-10-09  Kazu Hirata  <kazu@hxi.com>
4876         * c-common.h: Fix comment formatting.
4877         * c-dump.c: Likewise.
4878         * cfg.c: Likewise.
4879         * diagnostic.h: Likewise.
4880         * except.c: Likewise.
4881         * gcc.h: Likewise.
4882         * gcov-io.h: Likewise.
4883         * genattrtab.c: Likewise.
4884         * output.h: Likewise.
4885         * predict.h: Likewise.
4886         * reload1.c: Likewise.
4887         * reload.h: Likewise.
4888         * resource.h: Likewise.
4889         * scan.h: Likewise.
4890         * system.h: Likewise.
4891         * tree.h: Likewise.
4892         * tree-inline.c: Likewise.
4893         * tsystem.h: Likewise.
4894         * varasm.c: Likewise.
4895         * xcoffout.h: Likewise.
4897 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
4899         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
4901 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
4903         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
4904         config/i386/i386elf.h, config/i386/netbsd-elf.h,
4905         config/i386/netware.h, config/mcore/gfloat.h,
4906         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
4907         config/netware.h, gccbug.in: Update FSF address.
4909 2001-10-09  Kazu Hirata  <kazu@hxi.com>
4911         * c-common.c: Fix comment typos.
4912         * cfgrtl.c: Likewise.
4913         * collect2.c: Likewise.
4914         * cpplex.c: Likewise.
4915         * doloop.c: Likewise.
4916         * dwarf2out.c: Likewise.
4917         * dwarfout.c: Likewise.
4918         * expr.c: Likewise.
4919         * fold-const.c: Likewise.
4920         * gcc.c: Likewise.
4921         * gcov.c: Likewise.
4922         * gcse.c: Likewise.
4923         * global.c: Likewise.
4924         * ifcvt.c: Likewise.
4925         * loop.c: Likewise.
4926         * optabs.c: Likewise.
4927         * protoize.c: Likewise.
4928         * regclass.c: Likewise.
4929         * reorg.c: Likewise.
4930         * rtl.h: Likewise.
4931         * stmt.c: Likewise.
4932         * tree.h: Likewise.
4933         * doc/cpp.texi: Likewise.
4934         * doc/c-tree.texi: Likewise.
4935         * doc/extend.texi: Likewise.
4936         * doc/invoke.texi: Likewise.
4937         * doc/objc.texi: Likewise.
4938         * doc/tm.texi: Likewise.
4940 2001-10-08  Richard Henderson  <rth@redhat.com>
4942         * varasm.c (set_named_section_flags): Initialize "declared".
4944 2001-10-08  Robert Lipe  <robertlipe@usa.net>
4946         * varasm.c (struct in_named_entry): Add declared.
4947         (named_section_first_declaration): New function.
4948         (default_elf_asm_named_section): Use it.
4949         * output.h (named_section_first_declaration): New.
4951 2001-10-08  Richard Henderson  <rth@redhat.com>
4953         * i386.md (movsi_xor): Export.
4954         (setcc peep2): Use it when available; add an alternative to
4955         match zero_extendhisi2_and.
4957 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4959         * romp-protos.h (romp_initialize_trampoline): New function.
4960         * romp.c (romp_initialize_trampoline): Likewise.
4961         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
4962         romp_initialize_trampoline.
4964 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4966         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
4967         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4968         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4969         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
4971 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4973         * unroll.c (loop_iterations): Extend check for multiple back edges.
4975 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
4977         * langhooks.h: New file.
4978         * Makefile.in (OBJS): Added langhooks.o.
4979         (c-lang.o): Depend on langhooks.h.
4980         (c-common.o): Don't depend on tree-inline.h.
4981         (tree-inline.o): Depend on toplev.h.
4982         (langhooks.o): New rule.
4983         * c-common.c: Don't include tree-inline.h.
4984         (c_mark_lang_decl): Mark argument c as unused.
4985         (c_common_lang_init): Don't initialize hooks here.
4986         * c-lang.c: Include langhooks.h, then override some macros.
4987         (lang_hooks): Initialize with macros in langhooks.h.
4988         (c_init): Don't initialize hooks here.
4989         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
4990         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
4991         * tree-inline.c: Include toplev.h.  Don't define hook variables.
4992         * tree-inline.h: Don't define hook types nor declare hook
4993         variables.  Move macros to...
4994         * langhooks.c: ... new file, as functions.  Adjust all callers.
4996 2001-10-08  Jeffrey A Law  <law@cygnus.com>
4998         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
4999         purge_mem_unchanging_flag on all instructions, not just on those
5000         before NOTE_INSN_FUNCTION_BEG.
5002 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5004         * cppmacro.c (_cpp_create_definition): Leave comments off.
5006         * doc/cpp.texi: Update.
5008 2001-10-08  DJ Delorie  <dj@redhat.com>
5010         * c-decl.c (grokfield): Make sure the only unnamed fields
5011         we're allowing are either structs or unions.
5012         * doc/extend.texi: Add documentation for the unnamed field
5013         extension.
5015 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
5017         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
5018         * configure.in: Use it.
5019         * configure: Regenerated.
5020         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
5021         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
5023 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5025         * cppfiles.c (open_file): Don't mark zero-length files
5026         never-reread here.  Don't output diagnostics here either.
5027         (stack_include_file): Mark them never-reread here.
5028         (_cpp_read_file): Update.
5030 2001-10-08  Richard Henderson  <rth@redhat.com>
5032         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
5034 2001-10-08  Richard Henderson  <rth@redhat.com>
5036         * expr.c (store_expr): When converting a CONST_INT for storage
5037         in a SUBREG, convert it to both SUBREG modes before stripping
5038         the SUBREG.
5040 2001-10-08  Richard Henderson  <rth@redhat.com>
5042         * varasm.c (restore_varasm_status): New.
5043         * function.h: Declare it.
5044         * function.c (pop_function_context_from): Call it.
5046 2001-10-08  Richard Henderson  <rth@redhat.com>
5048         * c-common.h (struct c_lang_decl): Add declared_inline.
5049         * c-tree.h (DECL_DECLARED_INLINE_P): New.
5050         * c-lang.c (c_disregard_inline_limits): Use it.
5051         * c-decl.c (duplicate_decls): Likewise.
5052         (pushdecl, redeclaration_error_message): Likewise.
5053         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
5054         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
5055         Set DECL_INLINE if -finline-functions.
5056         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
5058 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5060         * cppmacro.c (funlike_invocation_p): Move some logic to caller
5061         in enter_macro_context.  Create a padding token in its own context
5062         if necessary when the search for '(' fails.
5063         (enter_macro_context): Update.
5065 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5067         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
5068         genmultilib, toplev.c: Fix spelling errors of "separate" as
5069         "seperate", and corresponding spelling errors of related words.
5071 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5073         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
5074         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
5075         Likewise.
5076         * c-dump.c (dump_option_value_info): Likewise.
5077         * c-format.c (format_length_info, format_char_info,
5078         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
5079         * collect2.c (names): Likewise.
5080         * cppdefault.h (default_include): Likewise.
5081         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
5082         * flow.c (life_analysis): Likewise.
5083         * gcc.c (dir_separator_str, modify_target, option_map,
5084         target_option_translations, spec_list_1, extra_specs_1,
5085         init_spec): Likewise.
5086         * gcov.c (gcov_version_string): Likewise.
5087         * genattr.c (write_units): Likewise.
5088         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
5089         * gengenrtl.c (rtx_definition, defs): Likewise.
5090         * genrecog.c (pred_table): Likewise.
5091         * global.c (global_alloc): Likewise.
5092         * lcm.c (optimize_mode_switching): Likewise.
5093         * local-alloc.c (find_free_reg): Likewise.
5094         * params.h (param_info): Likewise.
5095         * predict.c (predictor_info): Likewise.
5096         * protoize.c (unexpansion_struct): Likewise.
5097         * real.c (bmask): Likewise.
5098         * recog.h (insn_operand_data, insn_data): Likewise.
5099         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
5100         * stmt.c (expand_nl_goto_receiver): Likewise.
5101         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
5102         target_switches, target_options): Likewise.
5103         * tradcif.y (token, tokentab2, yylex): Likewise.
5104         * tree.h (attribute_spec): Likewise.
5106         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
5107         Likewise.
5108         * arc.c (arc_output_function_epilogue): Likewise.
5109         * arm.c (processors, all_cores, all_architectures,
5110         arm_override_options, isr_attribute_arg, isr_attribute_args,
5111         arm_isr_value): Likewise.
5112         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
5113         Likewise.
5114         * c4x.c (c4x_int_reglist): Likewise.
5115         * d30v.c (override_options): Likewise.
5116         * h8300.c (shift_insn): Likewise.
5117         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
5118         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
5119         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
5120         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
5121         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
5122         * i386.h (processor_costs, ix86_cost): Likewise.
5123         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
5124         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
5125         * m68k.c (codes_68881, codes_FPA): Likewise.
5126         * m88k.c (mode_from_align, max_from_align, all_from_align,
5127         best_from_align, m_options): Likewise.
5128         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
5129         * mcore.c (mode_from_align): Likewise.
5130         * mips/elf64.h (UNIQUE_SECTION): Likewise.
5131         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
5132         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
5133         * mips.h (mips_regno_to_class): Likewise.
5134         * ns32k.c (scales): Likewise.
5135         * pa.c (import_string, magic_milli): Likewise.
5136         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
5137         * sparc.c (leaf_reg_remap, sparc_override_options,
5138         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
5139         Likewise.
5140         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
5142 2001-10-07  Dale Johannesen  <dalej@apple.com>
5144         * reload1.c (reload_reg_free_p): Teach register interference
5145         checking that multiple output reloads are emitted in
5146         reverse order.
5147         reload1.c (reload_reg_reaches_end_p):  Ditto.
5148         reload1.c (reloads_conflict):  Ditto.
5150 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5152         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
5153         NULL_TREE inside @code.
5155 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5157         * doc/gcc.texi: Document consistent style of "32-bit",
5158         "Objective-C", and "@code{NULL}".
5160 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
5162         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
5163         (cpp_token_len, cpp_spell_token, cpp_output_token,
5164         _cpp_equiv_tokens): Handle it.
5165         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
5166         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
5167         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
5168         error messages.
5170 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5172         * gcc.c (default_compilers): Remove .ada.
5174 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
5176         * doc/cppinternals.texi: Update.
5178 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
5180         * gcc.c (main): Set this_file_error if the appropriate
5181         compiler for a language has not been installed.
5183 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
5185         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
5187 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
5189         * gccbug.in (CATEGORIES): Add ada.
5191 2001-10-05  Catherine Moore  <clm@redhat.com>
5193         * config/stormy16/stormy-abi:  Document abi changes.
5194         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
5195         (ICALL_REGS): New register class.
5196         (NUM_ARGUMENT_REGISTERS): Now 6.
5197         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
5198         in registers.
5199         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
5200         * config/stormy16.md (call_internal, call_value_internal,
5201         indirect_jump): Use new 'z' constraint.
5203 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
5205         * doc/cppinternals.texi: Update.
5207 2001-10-05  Richard Henderson  <rth@redhat.com>
5209         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
5210         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
5211         the gas section-name-as-label feature.
5213 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
5215         * doc/cppinternals.texi: Update.
5217 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5219         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
5220         to ensure valid SImode constants.
5222 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
5224         * Makefile.in (c-decl.o): Depend on tree-inline.h.
5225         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
5226         * c-decl.c: Include tree-inline.h.
5227         (c_expand_body): Call optimize_inline_calls. Determine whether
5228         a function is inlinable upfront, and only clear
5229         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
5230         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
5231         (c_disregard_inline_limits): New function.
5232         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
5233         (c_post_options): Enable tree inlining if inlining is enabled.
5234         Don't inline trees when instrumenting functions.
5235         (c_init): Initialize lang_disregard_inline_limits and
5236         lang_cannot_inline_tree_fn.
5237         * tree-inline.c (initialize_inlined_parameters): Handle calls
5238         with fewer arguments than declared parameters, and fewer
5239         parameters than passed arguments.  Don't assume value is a
5240         DECL.
5241         (declare_return_variable): Convert return value back to the
5242         original type, if it was promoted.
5243         (tree_inlinable_function_p): New function.
5244         (inlinable_function_p): Don't look at DECL_INLINE if we're
5245         inlining all functions.  Make it work with a NULL id.
5246         Re-check DECL_UNINLINABLE after language-specific checks.
5247         * tree-inline.h (tree_inlinable_function_p): Declare it.
5248         * integrate.c (save_for_inline): Don't bother to prepare argvec
5249         when not inlining.
5250         * cse.c (check_for_label_ref): Don't check deleted labels.
5252         * Makefile.in (tree-inline.o): Depend on newly-included headers.
5253         * tree-inline.c: Include headers needed for the functions moved in.
5254         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
5255         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
5256         (copy_body, initialize_inlined_parameters): Likewise.
5257         (declare_return_variable, inlinable_function_p): Likewise.
5258         (expand_call_inline, expand_calls_inline): Likewise.
5259         (optimize_inline_calls, clone_body): Likewise.
5260         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
5261         (copy_tree_r, remap_save_expr): Likewise.
5263 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
5265         * Makefile.in (OBJS): Added tree-inline.o.
5266         (c-common.o): Depend on tree-inline.h.
5267         (tree-inline.o): New target.
5268         * c-common.c: Include tree-inline.h.
5269         (c_mark_lang_decl): Don't mark saved_tree.
5270         (c_common_lang_init): Set lang_anon_aggr_type_p.
5271         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
5272         (struct c_lang_decl): Moved saved_tree to tree_decl.
5273         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
5274         * integrate.h (function_attribute_inlinable_p): Declare it.
5275         * integrate.c (function_attribute_inlinable_p): Export it.
5276         * tree-inline.c: New file.  Define variables declared in...
5277         * tree-inline.h: New file.  Declare functions to be moved to
5278         tree-inline.c.  Define macros and declare types and hooks for
5279         language-specific tree inlining.
5280         (flag_inline_trees): Moved definition from cp/decl2.c.
5281         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
5282         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
5283         (struct tree_decl): Moved saved_tree from c_lang_decl and
5284         inlined_fns from C++'s lang_decl.
5286 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
5288         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
5289         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
5291 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
5293         * doc/cppinternals.texi: Update.
5295 2001-10-04  Eric Christopher  <echristo@redhat.com>
5297         * config/mips/mips.c (init_cumulative_args): Remember to set
5298         cum->prototype.
5299         * config.gcc: Redo linux configuration. Add target_cpu_default
5300         of soft-float to all mipsisa32 combinations and tx39.
5301         * config/mips/linux.h: Remove include of mips.h.
5303 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
5305         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
5306         HOST_LDFLAGS and HOST_CPPFLAGS.
5308 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
5310         * c-parse.in (objc_inherit_code, objc_pq_context,
5311         objc_public_flag): Make static.
5312         (objc_interface_context, objc_implementation_context,
5313         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
5314         global tree array in objc/objc-act.[ch].
5315         (methoddef): Remove unnecessary code.
5317         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
5318         Hoist struct definitions to objc-act.h.
5319         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
5320         cat_count): Place declaration in objc-act.h.
5321         (objc_tree_index): Move enumeration to objc-act.h.
5322         (objc_global_trees): Place declaration and macro accessors in
5323         objc-act.h.
5324         (implementation_context): Remove duplicate; use
5325         objc_implementation_context instead:
5326         (method_context): Remove duplicate; use objc_method_context
5327         instead.
5328         (objc_ellipsis_node, objc_method_prototype_template,
5329         implemented_classes, function_type): Move global vars to
5330         objc_global_trees.
5331         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
5332         (build_message_expr): Move actual construction of ObjC message
5333         send nodes to finish_message_expr.
5334         (finish_message_expr): New routine, contains code formerly in
5335         build_message_expr.
5336         * objc/objc-act.h (finish_message_expr): New prototype.
5337         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
5338         declarations; these vars are now part of objc_global_trees.
5339         (objc_tree_index, objc_global_trees): Move definitions from
5340         objc-act.c.
5341         * objc/objc-tree.def: Update copyright info.
5343 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
5345         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
5346         op is NULL.
5347         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
5348         only if TARGET_ARCH64.
5350 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
5352         * doc/extend.texi: Fix some problems with previous checkin.
5353         * doc/invoke.texi: Likewise.
5355 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
5357         * cpphash.h: Update comments.
5358         (cpp_context): Update.
5359         (spec_nodes): Remove n__Pragma.
5360         * cppinit.c (cpp_create_reader): Update.
5361         (builtin_array): Add _Pragma.
5362         * cpplib.h: Update comments.
5363         (NODE_DISABLED, BT_PRAGMA): New.
5364         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
5365         * cppmacro.c (struct cpp_macro): Remove disabled.
5366         (builtin_macro): Return int, handle _Pragma, push the new token
5367         on the context stack.
5368         (funlike_invocation_p): Unconstify, update.
5369         (enter_macro_context): Handle builtins here.
5370         (replace_args, push_token_context, push_ptoken_context):
5371         Update for prototype changes.
5372         (_cpp_pop_context): Update.
5373         (cpp_get_token): Don't handle buitins, nor _Pragma here.
5374         (cpp_sys_macro_p): Update.
5375         (_cpp_free_definition): Clear disabled flag.
5376         (_cpp_create_definition): Upate.
5377         * cppmain.c: Update comments.
5379 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
5380                                 Andreas Jaeger <aj@suse.de>,
5381                                 Jan Hubicka    <jh@suse.cz>
5383         * doc/invoke.texi (i386 Options): Document x86-64 options.
5384         (i386 and x86-64 Options): Rename i386 options section.
5386         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
5387         (TARGET_SWITCHES): Add -munwind-info.
5388         (MASK_NO_UNWIND_INFO): New.
5389         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
5390         biarch compilation.
5391         (ASM_OUTPUT_DOUBLE_INT): New.
5393         * config/i386/linux64.h: New spec file for Linux x86-64 support.
5394         * config.gcc: Fix tm_file settings for x86-64.
5395         * config/i386/x86-64.h: New file with OS independent x86-64
5396         definitions.
5397         * config/i386/biarch64.h: New file used to configure compiler
5398         to biarch/64bit compilation.
5400         * config/i386/i386.c: (override_options): Set flags default
5401         for 64bit compilation.
5403 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
5405         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
5406         (ix86_expand_int_movcc): Optimize DImode conditional moves with
5407         constants on x86_64.
5408         (ix86_attr_length_immediate_default): Support MODE_DI.
5409         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
5410         condition.
5411         (indirect_jump, tablejump): Turn into expander.
5413 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5415         * c-common.c (c_format_attribute_table): Make format and
5416         format_arg attributes apply to function types rather than to
5417         decls.
5418         (is_valid_printf_arglist): Construct an attribute list and pass
5419         that to check_function_format rather than a name.
5420         * c-common.h (check_function_format): Adjust prototype.
5421         * c-decl.c (duplicate_decls): Preserve attributes from type of
5422         built-in decl when allowing for harmless conflict in types.
5423         * c-format.c (record_function_format,
5424         record_international_format, function_format_list,
5425         international_format_info, international_format_list): Remove.
5426         (function_format_info): Remove next, name and assembler_name.
5427         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
5428         (decode_format_attr): New.
5429         (handle_format_attribute): Handle receiving a type rather than a
5430         decl.  Call decode_format_attr.  Store format information in a
5431         function_format_info.
5432         (handle_format_arg_attribute): Correct comment.  Handle receiving
5433         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
5434         arg_num.
5435         (check_format_info_recurse, check_format_info_main): Take argument
5436         numbers as unsigned HOST_WIDE_INT.
5437         (check_function_format): Take a list of attributes from the
5438         function type rather than a name or assembler name.  Check for
5439         format attributes in that list and the attributes on the type of
5440         the current function rather than looking through
5441         function_format_list.
5442         (check_format_info): Use unsigned HOST_WIDE_INT for argument
5443         numbers.
5444         (check_format_info_recurse): Take format_arg attributes from the
5445         type of the function calls rather than using
5446         international_format_list.  Allow for multiple format_arg
5447         attributes.
5448         * c-typeck.c (build_function_call): Pass type attributes to
5449         check_function_format rather than name or assembler name.  Don't
5450         require there to be a name or assembler name to check formats.
5452 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5454         * attribs.c (decl_attributes): Possibly call
5455         insert_default_attributes to insert default attributes on
5456         functions in a lazy manner.
5457         * builtin-attrs.def: New file; define the default format and
5458         format_arg attributes.
5459         * c-common.c (c_format_attribute_table): Move to earlier in the
5460         file.
5461         (c_common_nodes_and_builtins): Initialize format_attribute_table.
5462         (enum built_in_attribute, built_in_attributes,
5463         c_attrs_initialized, c_init_attributes,
5464         c_common_insert_default_attributes): New.
5465         (c_common_lang_init): Don't initialize format_attribute_table.  Do
5466         call c_init_attributes.
5467         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
5468         * c-common.h (init_function_format_info): Don't declare.
5469         (c_common_insert_default_attributes): Declare.
5470         * c-decl.c (implicitly_declare, builtin_function): Call
5471         decl_attributes.
5472         (init_decl_processing): Don't call init_function_format_info.
5473         (insert_default_attributes): New.
5474         * c-format.c (handle_format_attribute,
5475         handle_format_arg_attribute): Be quiet about inappropriate
5476         declaration when applying default attributes.
5477         (init_function_format_info): Remove.
5478         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
5479         (insert_default_attributes): Declare.
5481 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
5483         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
5485 2001-10-01  Jim Wilson  <wilson@redhat.com>
5487         * sched-deps.c (add_dependence): When elide conditional dependence,
5488         check that insn doesn't modify cond2.
5490 2001-10-01  Dale Johannesen  <dalej@apple.com>
5492         * config/rs6000/rs6000.h (enum processor_type): Add support
5493         for 7400 (G4) and 7450.
5494         (RTX_COSTS): Ditto.
5495         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
5496         (rs6000_issue_rate): Ditto.
5497         (rs6000_adjust_cost): Fix cycle counts for compares.
5498         (debug_stack_info):  Fix an obvious typo.
5499         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
5500         * doc/invoke.texi: Document.
5501         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
5502         for Darwin.
5503         (PROCESSOR_DEFAULT): Ditto.
5505 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
5507         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
5508         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
5509         later recursive make invocation.
5511 2001-10-01  Hans Boehm  <boehm@acm.org>
5513         * optabs.c (emit_libcall_block): When using non-call exceptions,
5514         don't add REG_LIBCALL reg notes to trapping calls.
5516 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
5518         * flow.c (propagate_block_delete_libcall): Remove unused first arg
5519         (propagate_one_insn):  Update for above change
5521 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
5523         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
5524         _Unwind_GetTextRelBase): Argument is unused.
5526 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5528         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
5529         Loop through NOPs, placeholders, and components.
5530         Don't go through NOPs if change mode.
5531         (record_alias_subset): Do nothing if SUBSET and SET are the same.
5532         * emit-rtl.c (set_mem_alias_set): Enable check.
5533         * expr.c (find_placeholder): New function.
5534         (expand_expr, case PLACEHOLDER_EXPR): Use it.
5535         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
5536         to modify it and avoid unneeded copies.
5537         * expr.h (expand_expr): Always define.
5538         (find_placeholder): New declaration.
5540 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5542         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
5543         operand 2 is the stack pointer.
5544         ("addr-peephole"): Fix address computation peephole when operand 2
5545         is the stack pointer.
5547 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5549         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
5550         (ix86_setup_incoming_varargs): Likewise.
5552 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
5554         * stor-layout.c (layout_type): Don't complain about too-large
5555         array here.
5557 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5559         * function.c (keep_stack_depressed): Don't use delete_insn.
5561         * expr.h (set_mem_alias_set): Move decl to here.
5562         * rtl.h (mem_attrs): New typedef and struct.
5563         (union rtunion_def): Add field for mem_attrs.
5564         (X0MEMATTR, MEM_ATTRS): New macros.
5565         (MEM_ALIAS_SET): Use MEM_ATTRS.
5566         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
5567         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
5568         (set_mem_alias_set): Delete decl from here.
5570         * alias.c (set_mem_alias_set): Delete from here.
5571         * emit-rtl.c (mem_attrs_htab): New variable.
5572         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
5573         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
5574         (mem_attrs_mark, get_mem_attrs): Likewise.
5575         (gen_rtx_MEM): Clear MEM_ATTRS.
5576         (set_mem_attributes): Move to here.
5577         (set_mem_alias_set): Likewise, and call get_mem_attrs.
5578         (init_emit_once): const_int_htab now deletable htab.
5579         Initialize mem_attrs_htab.
5580         * explow.c (set_mem_attributes): Delete from here.
5581         * function.c (put_var_into_stack): Clear MEM_ATTRS.
5582         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
5583         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
5584         * reload1.c (reload): Rework changing REG to MEM.
5586 2001-09-30  H.J. Lu <hjl@gnu.org>
5588         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
5589         * config.in: Rebuild.
5591 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5593         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
5594         ("tsthi_1"): Avoid allocation in register y.
5595         ("*movqi_68hc12"): Reorganize and fix constraints.
5596         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
5597         ("addqi3"): Likewise.
5598         ("addhi3"): Fix constraints.
5599         ("*logicalhi3_zexthi"): Disparage soft registers.
5601 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5603         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
5604         to tmp reg.
5606 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
5608         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
5609         that we use setjmp/longjmp exceptions.
5611 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
5613         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
5614         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
5615         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5616         _cpp_pool_alloc, _cpp_next_chunk): Remove.
5617         (_cpp_extend_buff, BUFF_ROOM): Update.
5618         (_cpp_append_extend_buff): New.
5619         (struct cpp_reader): Remove macro_pool, add a_buff.
5620         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
5621         macro_pool.
5622         (cpp_destroy): Free a_buff instead of macro_pool.
5623         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
5624         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
5625         _cpp_pool_alloc, ): Remove.
5626         (parse_number, parse_string): Update use of _cpp_extend_buff.
5627         (_cpp_extend_buff): Update.
5628         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
5629         * cpplib.c (glue_header_name, parse_answer):
5630         Update use of _cpp_extend_buff.
5631         (cpp_register_pragma, cpp_register_pragma_space): Use
5632         _cpp_aligned_alloc.
5633         (do_assert, do_unassert): Check for EOL, update.
5634         * cppmacro.c (stringify_arg, collect_args): Update to use
5635         _cpp_extend_buff and _cpp_append_extend_buff.
5636         (save_parameter, parse_params, alloc_expansion_token,
5637         _cpp_create_definition): Rework memory management.
5639 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
5641         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
5642         update md_exec_prefix.
5643         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
5644         to string constant.
5646 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
5648         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
5649         (SELECT_CC_MODE): Use s390_select_ccmode.
5650         * config/s390/s390-protos.h (s390_select_ccmode): Add.
5651         * config/s390/s390.c (s390_select_ccmode): New.
5652         (s390_match_ccmode): Add CCLmode.
5653         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
5654         (output_branch_condition, output_inverse_branch_condition): Removed.
5655         (print_operand): Use s390_branch_condition_mnemonic.
5656         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
5657         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
5658         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
5660         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
5661         when converting conditional branches to far branches.
5662         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
5663         cmpint_di): Use CCSmode instead of CCUmode.
5665         * config/s390/s390.c (legitimate_la_operand_p): New.
5666         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
5667         * config/s390/s390.md (movsi): Convert load address patterns to
5668         arithmetic operations when necessary.
5669         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
5670         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
5671         (*do_la_reg_0): Don't use before reload.
5673         * config/s390/s390.c (legitimize_address): Make more efficient
5674         use of two-register addressing mode.
5676         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
5677         with -mno-backchain in some corner cases.
5679         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
5681 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
5683         * reload.c (find_reloads): Mark new USE insns with QImode.
5684         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
5685         find_reloads_subreg_address): Likewise.
5686         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
5687         encountered.
5688         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
5689         CLOBBERs.
5690         (reload): Make sure there are no USEs with mode other than
5691         VOIDmode.  At the end, remove those marked with QImode.
5693 2001-09-29  Per Bothner  <per@bothner.com>
5695         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
5696         * Makefile.in (includedir):  Rename to local_includedir.
5697         (includedir):  Define as $(prefix)/include.
5698         * config.in (PREFIX_INCLUDE_DIR):  New variable.
5699         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
5701 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
5703         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
5704         storehps builtins.
5705         * doc/extend.texi (Vector Extensions): New node.
5706         * doc/invoke.texi (Machine Dependent Options): Add documentation for
5707         i386 -mmmx, -msse, -m3dnow.
5709 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
5711         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
5713 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
5715         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
5717         * doc/invoke.texi (Optimize Options): Delete spurious @table.
5719 2001-09-28  Richard Henderson  <rth@redhat.com>
5721         * varasm.c (assemble_integer): Bound alignment check by
5722         BIGGEST_ALIGNMENT.
5724         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
5726 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5728         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
5730 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
5732         Mostly from Graham Stott  <grahams@redhat.com>
5733         * c-common.c (type_for_mode): Add support for V2SFmode.
5734         * tree.c (build_common_tree_nodes_2): Likewise.
5735         * tree.h (enum tree_index, global_trees): Likewise.
5736         * config/i386/i386.c (x86_3dnow_a): New variable.
5737         (override_options): Support 3Dnow extensions.
5738         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
5739         Athlon's version of 3Dnow.
5740         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
5741         (ix86_expand_builtin): Handle them.
5742         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
5743         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
5744         TARGET_3DNOW_A): New macros.
5745         (TARGET_SWITCHES): Add 3Dnow switches.
5746         (VALID_MMX_REG_MODE_3DNOW): New macro.
5747         (VECTOR_MODE_SUPPORTED_P): Use it.
5748         (enum ix86_builtins): Add entries for 3Dnow builtins.
5749         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
5750         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
5751         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
5752         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
5753         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
5754         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
5755         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
5756         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
5757         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
5758         sfence_insn, prefetch): Make these available if TARGET_SSE or
5759         TARGET_3DNOW_A.
5761 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
5763         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
5764         ix86_va_start, ix86_build_va_list): Declare.
5765         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
5766         ix86_va_start, ix86_build_va_list): New global functions.
5767         * i386.md (sse_prologue_save_insn): New insn.
5768         (sse_prologue_save): New expander.
5769         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
5770         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
5772 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5774         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
5775         Use size_t everywhere, make definitions consistent with
5776         prototypes.
5778 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
5780         * gcse.c (replace_store_insn): Use delete_insn.
5781         * loop.c (move_movables): Likewise; avoid delete_insn
5782         from clobbering notes moved elsewhere.
5783         (check_dbra_loop): Use delete_insn.
5784         * ssa.c (convert_from_ssa): Likewise.
5785         * cse.c (cse_insn): Use delete_insn.
5787 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5789         * cpphash.h (struct cpp_buff): Make unsigned.
5790         (_cpp_get_buff): Take length of size_t.
5791         (_cpp_unaligned_alloc): New.
5792         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
5793         (struct cpp_reader): Remove ident_pool.  Add u_buff.
5794         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
5795         (cpp_destroy): Destroy u_buff, not ident_pool.
5796         * cpplex.c (parse_number, parse_string, save_comment,
5797         cpp_token_as_text): Update to use the unaligned buffer.
5798         (new_buff): Make unsigned.
5799         (_cpp_unaligned_alloc): New.
5800         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
5801         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
5802         Similarly.
5803         (collect_args): Make unsigned.
5805 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
5807         * cpplex.c (cpp_output_token): Use a putc loop for
5808         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
5810         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
5811         * configure, config.in: Regenerate.
5812         * system.h: Replace fwrite and fprintf with their unlocked
5813         variants if available.
5815 2001-09-27  Richard Henderson  <rth@redhat.com>
5817         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
5818         in favour of .eh_frame.
5820 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
5822         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
5823         to macros.
5824         (LIBCALL_VALUE): Likewise.
5826 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5828         * cpphash.h: Update comment.
5829         * cpplex.c: Update comments.
5830         (_cpp_can_paste): Remove.
5831         * cpplib.h (_cpp_can_paste): Remove.
5832         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
5833         lexer rather than _cpp_can_paste.
5835 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5837         * doc/cppinternals.texi: Update.
5839 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5841         * cpphash.h (struct cpp_pool): Remove locks and locked.
5842         (struct cpp_context): Add member buff.
5843         (struct cpp_reader): Remove member argument_pool.
5844         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
5845         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
5846         * cpplex.c (chunk_suitable): Remove pool argument.
5847         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
5848         (new_buff, _cpp_extend_buff): Update.
5849         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
5850         which buffer is returned.
5851         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
5852         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
5853         * cppmacro.c (lock_pools, unlock_pools): Remove.
5854         (push_ptoken_context): Take a _cpp_buff.
5855         (enter_macro_context): Pool locking removed.
5856         (replace_args): Use a _cpp_buff for the replacement list with
5857         arguments replaced.
5858         (push_token_context): Clear buff.
5859         (expand_arg): Use _cpp_pop_context.
5860         (_cpp_pop_context): Free a context's buffer, if any.
5862 2001-09-26  DJ Delorie  <dj@redhat.com>
5864         * c-typeck.c (digest_init): Check for sizeless arrays.
5866 2001-09-26  Richard Henderson  <rth@redhat.com>
5868         * optabs.c (init_one_libfunc): Create a dummy function type
5869         instead of using error_mark_node.
5871 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5873         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
5874         _cpp_extend_buff, _cpp_free_buff): New.
5875         (struct cpp_reader): New member free_buffs.
5876         * cppinit.c (cpp_destroy): Free buffers.
5877         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
5878         _cpp_extend_buff, _cpp_free_buff): New.
5879         * cpplib.h (struct cpp_options): Remove unused member.
5880         * cppmacro.c (collect_args): New.  Combines the old parse_arg
5881         and parse_args.  Use _cpp_buff for memory allocation.
5882         (funlike_invocation_p, replace_args): Update.
5884 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
5886         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
5888 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
5890         * except.c (sjlj_mark_call_sites): Change address inside sequence.
5892 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
5894         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
5895         glibc.
5897 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
5898             Jim Wilson  <wilson@redhat.com>
5900         * doc/install.texi (Specific, ia64-*-linux): Document.
5902 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
5904         * Makefile.in (cfgrtl.o): Add.
5905         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
5906         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
5907         free_aux_for_edge): Declare.
5908         * cfg.c
5909         (HAVE_return): Undefine.
5910         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
5911         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
5912         free_aux_for_edge): New global functions.
5913         (first_delete_block): New static variable.
5914         (init_flow): Clear first_delete_block.
5915         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
5916          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
5917          try_redirect_by_replacing_jump, last_loop_beg_note,
5918          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
5919          delete_insn, delete_insn_chain, create_basic_block_structure,
5920          create_basic_block, flow_delete_block, compute_bb_for_insn,
5921          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
5922          set_block_for_new_insns, split_block, merge_blocks_nomove,
5923          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
5924          redirect_edge_and_branch, force_nonfallthru_and_redirect,
5925          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
5926          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
5927          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
5928          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
5929          purge_all_dead_edges): Move to ....
5930         * cfgrtl.c: New file; .... Here.
5932         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
5933         (reroder_basic_block): Use alloc_aux_for_blocks.
5934         * predict.c (estimate_bb_frequencies): Likewise; use
5935         alloc_aux_for_edges.
5936         * profile.c (compute_branch_probabilities): Likewise.
5937         (branch_prob): Likewise.
5938         * reg-stack.c (reg_to_stack): Likewise.
5940         * emit-rtl.c (emit_insns_after): Never return NULL.
5942         * basic-block.h (set_block_for_new_insns): Delete.
5943         * cfgrtl.c (set_block_for_new_insns): Delete.
5945         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
5946         calls when crossjumping.
5948         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
5949         * unroll.c (copy_loop_body): Use delete_insn.
5951         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
5952         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
5953         keep_stack_depressed): Likewise.
5954         * gcse.c (cprop_cc0_jump): Likewise.
5955         * local-alloc.c (update_equiv_regs): Likewise.
5956         * loop.c (scan_loop, loop_delete_insns): Likewise.
5957         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
5958         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
5959         delete_output_reload, delete_address_reloads_1,
5960         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
5961         Likewise.
5962         * sibcall.c (replace_call_placeholder): Likewise.
5963         * cse.c (cse_insn): Likewise.
5965 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
5967         From Graham Stott  <grahams@redhat.com>
5968         (def_builtin): Only define builtins appropriate for target_flags.  All
5969         callers changed.
5970         (builtin_decsription): Add new field mask which is used to determine
5971         when to define the builtin via the macro def_builtin.
5973         (bdesc_comi): Initialise new mask fields.
5974         (bdesc_2srg): Likewise.
5975         (bdesc_1arg): Likewise.
5977         * config/i386/i386.c (ix86_init_builtins): Correct return type
5978         building v4hi_ftype_v4hi_int_int tree node.
5979         (ix86_expand_sse_comi): Fix typo swapping operands.
5980         Don't swap comparision condition, it is already swapped.
5981         (ix86_expand_sse_compare): Before swapping operands
5982         move operand 1 into new rtx and not the target rtx.
5983         Don't swap comparison condition, it is already swapped.
5984         Always check whether we need to create a new TARGET.
5986         * config/i386/i386.md: (sse_comi) Fix typos.
5987         (sse_ucomi): Likewise.
5988         (cvtss2si): Fix operand 0 contraint.
5989         (cvttss2si): Likewise.
5990         (sse_unpckhps): Fix mode for operand 2.
5991         (sse_unpcklps): Likewise.
5993 2001-09-25  Graham Stott  <grahams@redhat.com>
5995         * sibcall.c (skip_copy_to_return_value): Tighten return value
5996         copy check.
5998 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
6000         * rs6000.c (lwa_operand): Address must be word aligned.
6002 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6004         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
6005         number has been set.
6006         (type_hash_mark): Mark type itself.
6008 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6010         * c-lex.c (cb_def_pragma): Update.
6011         (c_lex): Update, and skip padding.
6012         * cppexp.c (lex, parse_defined): Update, remove unused variable.
6013         * cpphash.h (struct toklist): Delete.
6014         (union utoken): New.
6015         (struct cpp_context): Update.
6016         (struct cpp_reader): New members eof, avoid_paste.
6017         (_cpp_temp_token): New.
6018         * cppinit.c (cpp_create_reader): Update.
6019         * cpplex.c (_cpp_temp_token): New.
6020         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
6021         (cpp_output_token): Don't print leading whitespace.
6022         (cpp_output_line): Update.
6023         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
6024         do_include_common, do_line, do_ident, do_pragma,
6025         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
6026         parse_assertion): Update.
6027         (get_token_no_padding): New.
6028         * cpplib.h (CPP_PADDING): New.
6029         (AVOID_LPASTE): Delete.
6030         (struct cpp_token): New union member source.
6031         (cpp_get_token): Update.
6032         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
6033         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
6034         replace_args, quote_string, stringify_arg, parse_arg, next_context,
6035         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
6036         _cpp_backup_tokens, _cpp_create_definition): Update.
6037         (push_arg_context): Delete.
6038         (padding_token, push_token_context, push_ptoken_context): New.
6039         (make_string_token, make_number_token): Update, rename.
6040         (cpp_get_token): Update to handle tokens as pointers to const,
6041         and insert padding appropriately.
6042         * cppmain.c (struct printer): New member prev.
6043         (check_multiline_token): Constify.
6044         (do_preprocessing, cb_line_change): Update.
6045         (scan_translation_unit): Update to handle spacing.
6046         * scan-decls.c (get_a_token): New.
6047         (skip_to_closing_brace, scan_decls): Update.
6048         * fix-header.c (read_scan_file): Update.
6050         * doc/cpp.texi: Update.
6052 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6054         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
6055         leak by passing malloc'ed pointer to reconcat, not concat.
6057 2001-09-24  DJ Delorie  <dj@redhat.com>
6059         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
6061 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
6063         * flow.c (delete_dead_jumptables): Delete jumptable if the only
6064         reference is from the literal pool.
6066 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
6068         * doc/install.texi (Final install): Request additional information
6069         in mail about successful builds.
6071 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6073         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
6074         initial value of return pointer register instead of value in frame-20.
6075         Revise comments.
6077 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6079         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
6080         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
6081         the libcall if there isn't a referenced identifier for the symbol.
6083 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6085         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
6086         non 64-bit machines.  Use these as a plabel for the trampoline.
6087         (TRAMPOLINE_SIZE): Adjust size for new words.
6088         (INITIALIZE_TRAMPOLINE): Initialize new words.
6089         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
6090         pointer to the plabel in the trampoline.
6092 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6094         * pa.c (function_arg): Pass floating arguments in both general and
6095         floating registers in indirect (dynamic) calls when generating code
6096         for the 32 bit ABI and the HP assembler.
6098 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6100         * doc/install.texi: Markup fixes.
6101         Use Solaris 2, SunOS 4 as appropriate.
6102         (Specific, *-*-solaris2*): Explain this.
6103         Unconditionally warn against /usr/ucb tools.
6104         Remove Sun as warning, obsolete.
6105         Move X11 header bug workaround here, update patches.
6106         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
6107         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
6109 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
6111         * errors.h (warning, error, fatal, internal_error): Don't mark
6112         with ATTRIBUTE_PRINTF_n.
6113         * toplev.h (internal_error, fatal_io_error, warning, error,
6114         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
6115         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
6116         Likewise.
6118 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6120         * function.c (pop_function_context_from): var_refs_queue
6121         and temp slots now in GC memory.
6122         (mark_function_status, free_after_compilation): Likewise;
6123         also struct function now in GC memory.
6124         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
6125         (combine_temp_slots): Likewise.
6126         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
6127         (prepare_function_start): Use GC memory for struct function.
6128         (mark_temp_slot): Deleted.
6129         (gcc_mark_struct_function): struct function now in GC memory.
6131         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
6132         code for division, not modulus.
6134         * rtl.def (MEM): Remove obsolete part of comment.
6136 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
6138         * c-format.c (init_function_format_info): Check __builtin_printf
6139         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
6140         in gnu89 mode.
6142 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6144         * c-common.c (format_attribute_table): Remove decl.
6145         * tree.h (format_attribute_table, lang_attribute_table): New decls.
6146         (lang_attribute_common): Likewise.
6148         * function.c (fix_lexical_address): Use set_mem_alias_set.
6149         (expand_function_start): Likewise.
6150         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
6152         * varasm.c (output_constant): Fix unused variable warning.
6154         * attribs.c: New file, from c-common.c.
6155         (attribute_tables): Now four elements.
6156         (format_attribute_table, lang_attribute_common): New variables.
6157         (init_attributes): Reflect above changes.
6158         (handle_mode_attribute): Delete check for wider than uintmax.
6159         * c-common.c: Delete parts moved to attribs.c.
6160         (enum attrs): Deleted; unused.
6161         (c_format_attribute_table): New variable.
6162         (c_common_lang_init): Initialize format_attribute_table with it.
6163         * c-common.h (decl_attributes): Remove decl.
6164         * tree.h (decl_attribute): Move it to here.
6165         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
6166         (attribs.o): New rule.
6168 2001-09-22  Andreas Jaeger  <aj@suse.de>
6170         * builtins.c (c_getstr): Remove unused variable.
6172 2001-09-21  Richard Henderson  <rth@redhat.com>
6174         * reload1.c (reload): Use delete_insn instead of splatting
6175         NOTE_INSN_DELETED.
6177 2001-09-21  Richard Henderson  <rth@redhat.com>
6179         * reload.c (push_secondary_reload): Don't check for "=" in output
6180         constraint after ""->ALL_REGS check.
6182 2001-09-21  Richard Henderson  <rth@redhat.com>
6184         * predict.c (expected_value_to_br_prob): Use pc_set.
6186         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
6187         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
6189 2001-09-21  Richard Henderson  <rth@redhat.com>
6191         * rtl.h (LCT_RETURNS_TWICE): New.
6192         * calls.c (emit_call_1): Set current_function_calls_setjmp for
6193         ECF_RETURNS_TWICE.
6194         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
6195         to ECF_RETURNS_TWICE.
6196         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
6197         call to setjmp.
6199         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
6201         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
6202         (JMP_BUF_SIZE): New.
6204 2001-09-21  Richard Henderson  <rth@redhat.com>
6206         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
6207         to R8_REGS.
6209 2001-09-21  Richard Henderson  <rth@redhat.com>
6211         * tree.def (FDESC_EXPR): New.
6212         * expr.c (expand_expr): Handle it.
6213         * varasm.c (initializer_constant_valid_p): Likewise.
6214         (output_constant): Likewise.
6215         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
6216         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
6217         (ASM_OUTPUT_FDESC): New.
6218         * doc/tm.texi: Document the new macros.
6220 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
6222         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
6223         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
6224         once merging is complete.
6226 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6228         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
6230 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
6232         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
6233         that would be invalid after a merge.
6235 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
6237         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
6238         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
6239         remove some labels.
6240         (flow_delete_insn): This one.
6241         (delete_insn_chain): Rename from ...; do not care labels.
6242         (flow_delete_insn_chain): ... this one.
6243         (flow_delete_block): Remove the insns one BB has been expunged.
6244         (merge_blocks_nomove): Likewise.
6245         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
6246         updating BB boundaries.
6247         (tidy_fallthru_edge): Likewise.
6248         (commit_one_edge_insertion): Likewise.
6249         * cfgbuild.c (find_basic_block): Likewise.
6250         (find_basic_blocks_1): Likewise.
6251         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
6252         (try_crossjump_to_edge): Likewise.
6253         (try_optimize_cfg): Likewise.
6254         * cse.c (delete_trivially_dead_insns): Likewise.
6255         * df.c (df_insn_delete): Likewise.
6256         * doloop.c (doloop_modify): Use delete_related_insns.
6257         * emit-rtl.c (try_split): Likewise.
6258         (remove_insn): Update BB boundaries.
6259         * expect.c (connect_post_landing_pads): Use delete_related_insns.
6260         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
6261         updating BB boundaries.
6262         (propagate_block_delete_insn): Likewise.
6263         (propagate_block_delete_libcall): Likewise.
6264         * function.c (delete_handlers): Use delete_related_insns.
6265         (thread_prologue_and_epilogue_insns): Likewise.
6266         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
6267         * genpeep.c (gen_peephole): Use delete_related_insns.
6268         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
6269         BB boundaries.
6270         (find_cond_trap): Likewise.
6271         * integrate.c (save_for_inline): Use delete_related_insns.
6272         (copy_insn_list): Likewise.
6273         * jump.c (pruge_linie_number_notes): Likewise.
6274         (duplicate_loop_exit_test): Likewise.
6275         (delete_computation): Likewise.
6276         (delete_related_insn): Rename from ...; use delete_insn
6277         (delete_insn): ... this one.
6278         (redirect_jump): Use delete_related_insns.
6279         * loop.c (scan_loop): Likewise.
6280         (move_movables): Likewise.
6281         (find_and_verify_loops): Likewise.
6282         (check_dbra_loop): Likewise.
6283         * recog.c (peephole2_optimize): Likewise.
6284         * reg-stack.c (delete_insn_for_stacker): Remove.
6285         (move_for_stack_reg): Use delete_insn.
6286         * regmove.c (combine_stack_adjustments_for_block): Likewise.
6287         * reload1.c (delete_address_reloads): Use delete_related_insns.
6288         (fixup_abnormal_edges): Use delete_insn.
6289         * recog.c (emit_delay_sequence): Use delete_related_insns.
6290         (delete_from-delay_slot): Likewise.
6291         (delete_scheduled_jump): likewise.
6292         (optimize_skip): Likewise.
6293         (try_merge_delay_insns): Likewise.
6294         (full_simple_delay_slots): Likewise.
6295         (fill_slots_from_thread): Likewise.
6296         (relax_delay_slots): Likewise.
6297         (make_return_insns): Likewise.
6298         (dbr_schedule): Likewise.
6299         * rtl.h (delete_insn): Rename to delete_related_insns.
6300         (delete_insn, delete_insn_chain): New prototypes.
6301         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
6302         by df_insn_delete already.
6303         * ssa-dce.c (delete_insn_bb): Use delete_insn.
6304         * ssa.c (convert_from_ssa): Use delete_related_insns.
6305         * unroll.c (unroll_loop): Likewise.
6306         (calculate_giv_inc): Likewise.
6307         (copy_loop_body): Likewise.
6309         * i386-protos.h (ix86_libcall_value, ix86_function_value,
6310         ix86_function_arg_regno_p, ix86_function_arg_boundary,
6311         ix86_return_in_memory, ix86_function_value): Declare.
6312         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
6313         new static valurables.
6314         (x86_64_reg_class): New enum
6315         (x86_64_reg_class_name): New array.
6316         (classify_argument, examine_argument, construct_container,
6317          merge_classes): New static functions.
6318         (optimization_options): Enable flag_omit_frame_pointer and disable
6319         flag_pcc_struct_return on 64bit.
6320         (ix86_libcall_value, ix86_function_value,
6321         ix86_function_arg_regno_p, ix86_function_arg_boundary,
6322         ix86_return_in_memory, ix86_function_value): New global functions.
6323         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
6324         (function_arg_advance): Handle x86_64 passing conventions.
6325         (function_arg): Likewise.
6326         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
6327         (RETURN_IN_MEMORY): Move offline.
6328         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
6329         (FUNCTION_VALUE_REGNO_P): New macro.
6330         (FUNCTION_ARG_REGNO_P): Move offline.
6331         (struct ix86_args): Add maybe_vaarg.
6332         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
6333         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
6335 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
6337         * s390.md: Changed attributes for scheduling.
6338         * s390.c: (s390_adjust_cost, s390_adjust_priority)
6339         Changed scheduling
6341 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
6343         Table-driven attributes.
6344         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
6345         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
6346         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
6347         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
6348         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
6349         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
6350         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
6351         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
6352         * tree.h (struct tree_decl): Change machine_attributes to
6353         attributes.
6354         * doc/c-tree.texi: Document that all attributes are now attached
6355         to decls and types.
6356         * c-common.c (add_attribute, attrtab, attrtab_idx,
6357         default_valid_lang_attribute, valid_lang_attribute): Remove.
6358         (attribute_tables, attributes_initialized,
6359         c_common_attribute_table, default_lang_attribute_table): New
6360         variables.
6361         (handle_packed_attribute, handle_nocommon_attribute,
6362         handle_common_attribute, handle_noreturn_attribute,
6363         handle_unused_attribute, handle_const_attribute,
6364         handle_transparent_union_attribute, handle_constructor_attribute,
6365         handle_destructor_attribute, handle_mode_attribute,
6366         handle_section_attribute, handle_aligned_attribute,
6367         handle_weak_attribute, handle_alias_attribute,
6368         handle_no_instrument_function_attribute,
6369         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
6370         handle_no_limit_stack_attribute, handle_pure_attribute): New
6371         functions.
6372         (init_attributes, decl_attributes): Rewrite to implement
6373         table-driven attributes.
6374         * c-common.h (enum attribute_flags): Move to tree.h.
6375         * c-format.c (decl_handle_format_attribute,
6376         decl_handle_format_arg_attribute): Rename to
6377         handle_format_attribute and handle_format_arg_attribute.  Update
6378         for table-driven attributes.
6379         * c-common.h (decl_handle_format_attribute,
6380         decl_handle_format_arg_attribute): Remove prototypes.
6381         (handle_format_attribute, handle_format_arg_attribute): Add
6382         prototypes.
6383         * c-decl.c (grokdeclarator): Handle attributes nested inside
6384         declarators.
6385         * c-parse.in (setattrs, maybe_setattrs): Remove.
6386         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
6387         Update to handle nested attributes properly.
6388         (maybe_resetattrs, after_type_declarator,
6389         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
6390         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
6391         properly.
6392         (make_pointer_declarator): Update to handle nested attributes
6393         properly.
6394         * doc/extend.texi: Update documentation of limits of attributes
6395         syntax.  Warn about problems with attribute semantics in C++.
6396         * target.h (struct target): Remove valid_decl_attribute and
6397         valid_type_attribute.  Add attribute_table and
6398         function_attribute_inlinable_p.
6399         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
6400         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
6401         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
6402         Add.
6403         (TARGET_INITIALIZER): Update.
6404         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
6405         definition.
6406         (function_attribute_inlinable_p): New function.  Check for the
6407         presence of any machine attributes before using
6408         targetm.function_attribute_inlinable_p.
6409         (function_cannot_inline_p): Update.
6410         * Makefile.in (integrate.o): Update dependencies.
6411         * doc/tm.texi: Update documentation of target attributes and
6412         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
6413         * tree.c (default_valid_attribute_p, valid_machine_attribute):
6414         Remove.
6415         (default_target_attribute_table,
6416         default_function_attribute_inlinable_p): New.
6417         (lookup_attribute): Update comment to clarify handling of multiple
6418         attributes with the same name.
6419         (merge_attributes, attribute_list_contained): Allow multiple
6420         attributes with the same name but different arguments to appear in
6421         the same attribute list.
6422         * tree.h (default_valid_attribute_p): Remove prototype.
6423         (struct attribute_spec): New.
6424         (default_target_attribute_table): Declare.
6425         (enum attribute_flags): Move from c-common.h.  Add
6426         ATTR_FLAG_TYPE_IN_PLACE.
6427         (default_function_attribute_inlinable_p): Declare.
6428         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
6429         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6430         (TARGET_ATTRIBUTE_TABLE): Define.
6431         (vms_attribute_table): New.
6432         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
6433         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6434         (TARGET_ATTRIBUTE_TABLE): Define.
6435         (arc_attribute_table, arc_handle_interrupt_attribute): New.
6436         * config/arm/arm.c (arm_valid_type_attribute_p,
6437         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
6438         Remove.
6439         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6440         define.
6441         (TARGET_ATTRIBUTE_TABLE): Define.
6442         (arm_attribute_table, arm_handle_fndecl_attribute,
6443         arm_handle_isr_attribute): New.
6444         * config/avr/avr.c (avr_valid_type_attribute,
6445         avr_valid_decl_attribute): Remove.
6446         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
6447         define.
6448         (TARGET_ATTRIBUTE_TABLE): Define.
6449         (avr_attribute_table, avr_handle_progmem_attribute,
6450         avr_handle_fndecl_attribute): New.
6451         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
6452         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6453         (TARGET_ATTRIBUTE_TABLE): Define.
6454         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
6455         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
6456         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6457         (TARGET_ATTRIBUTE_TABLE): Define.
6458         (h8300_attribute_table, h8300_handle_fndecl_attribute,
6459         h8300_handle_eightbit_data_attribute,
6460         h8300_handle_tiny_data_attribute): New.
6461         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
6462         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
6463         Remove prototypes.
6464         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
6465         declarations.
6466         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
6467         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
6468         define.
6469         (TARGET_ATTRIBUTE_TABLE): Define.
6470         (ix86_attribute_table, ix86_handle_cdecl_attribute,
6471         ix86_handle_regparm_attribute): New.
6472         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
6473         i386_pe_valid_type_attribute_p): Remove.
6474         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
6475         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
6476         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6477         (TARGET_ATTRIBUTE_TABLE): Define.
6478         (ia64_attribute_table): New.
6479         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
6480         interrupt_ident2, model_ident1, model_ident2): Remove.
6481         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6482         (TARGET_ATTRIBUTE_TABLE): Define.
6483         (init_idents): Update.
6484         (m32r_attribute_table, m32r_handle_model_attribute): New.
6485         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
6486         Remove.
6487         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6488         (TARGET_ATTRIBUTE_TABLE): Define.
6489         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
6490         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
6491         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6492         (TARGET_ATTRIBUTE_TABLE): Define.
6493         (mcore_attribute_table, mcore_handle_naked_attribute): New.
6494         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
6495         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6496         (TARGET_ATTRIBUTE_TABLE): Define.
6497         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
6498         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
6499         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
6500         (TARGET_ATTRIBUTE_TABLE): Define.
6501         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
6502         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
6503         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6504         (TARGET_ATTRIBUTE_TABLE): Define.
6505         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
6506         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
6507         New.
6508         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
6509         Remove.
6510         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
6511         (TARGET_ATTRIBUTE_TABLE): Define.
6512         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
6513         New.
6514         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
6515         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
6516         (TARGET_ATTRIBUTE_TABLE): Define.
6517         (v850_attribute_table, v850_handle_interrupt_attribute,
6518         v850_handle_data_area_attribute): New.
6519         * config/v850/v850-c.c (mark_current_function_as_interrupt):
6520         Return void.  Call decl_attributes instead of
6521         valid_machine_attribute.
6523 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
6525         * sh-protos.h (sh_pr_n_sets): Declare.
6526         * sh.c (calc_live_regs): If the initial value for PR has been copied,
6527         look at the copy to determine if PR needs to be saved.
6528         sh_pr_n_sets: New function.
6529         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
6530         (ALLOCATE_INITIAL_VALUE): Define.
6532         * sh.c (initial_elimination_offset):
6533         Fix RETURN_ADDRESS_POINTER_REGNUM case.
6535 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
6537         * integrate.c (allocate_initial_values): New function.
6538         * integrate.h (allocate_initial_values): Declare.
6539         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
6540         here...
6541         * reload1.c (reload): And initialization of reg_equiv_memory_loc
6542         from here...
6543         * toplev.c (rest_of_compilation): To here.
6544         Call allocate_initial_values.
6545         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
6547 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6549         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
6551 2001-09-20  DJ Delorie  <dj@redhat.com>
6553         * c-typeck.c (really_start_incremental_init): Discriminate
6554         between zero-length arrays and flexible arrays.
6555         (push_init_level): Detect zero-length arrays and handle them
6556         like fixed-sized arrays.
6557         * expr.c (store_constructor): Handle zero-length arrays and
6558         flexible arrays correctly.
6559         * doc/extend.texi: Update zero-length array notes.
6561 2001-09-20  Jim Wilson  <wilson@redhat.com>
6563         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
6564         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
6565         for issue port conflicts.
6566         (cycle_end_fill_slots): TYPE_L instructions take two slots.
6568 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
6570         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
6571         on ia64.
6573 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6575         * fold-const.c (hashtab.h): Include.
6576         (int_const_binop): Remove FORSIZE arg and compute from type; all
6577         callers changed.
6578         Call size_int_type_wide for all single-word constants.
6579         (size_htab_hash, size_htab_eq): New functions.
6580         (size_int_type_wide): Rework to use hash table.
6581         * ggc-common.c (hashtab.h): Include.
6582         (struct d_htab_root): New struct.
6583         (d_htab_roots): New variable.
6584         (ggc_add_deletable_htab, ggc_htab_delete): New functions
6585         (ggc_mark_roots): Handle deletable htabs.
6586         * ggc-page.c (ggc_marked_p): New function.
6587         * ggc-simple.c (ggc_marked_p): Likewise.
6588         * ggc.h: Reformatting throughout.
6589         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
6590         * tree.c (init_obstacks): Make type_hash_table a deletable root.
6591         (type_hash_add): Allocate struct type_hash from GC memory.
6592         (mark_hash_entry, mark_type_hash): Deleted.
6593         (type_hash_marked_p, type_hash_mark): New functions.
6594         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
6596 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
6598         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
6599         than SImode.
6601 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6603         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
6604         array-too-large test for signed sizetype.
6606 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
6608         * i386.md (indirect_jump): Allow Pmode operand.
6609         (tablejump): LIkewise; perform expansion to 64bit mode.
6610         * i386.c (symbolic_operand): Allow 64bit PIC references.
6611         (pic_symbolic_operand): Likewise.
6612         (ix86_find_base_term): Strip the 64bit PIC references.
6613         (legitimate_pic_address_disp_p): Handle 64bit PIC.
6614         (legitimize_pic_address): Likewise.
6615         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
6616         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
6618 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
6620         * stringpool.c (get_identifier_with_length): New function.
6621         * tree.h (get_identifier_with_length): New prototype.
6623 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
6624             David Edelsohn  <edelsohn@gnu.org>
6626         Revert:
6627         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
6628         already sign-extended.
6630         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
6631         * config/rs6000/rs6000.c (logical_operand): Always compare op as
6632         HOST_WIDE_INT.
6633         (rs6000_emit_set_long_const): Avoid unnecessary shift.
6634         (output_profile_hook): Declare label_name const.
6635         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
6636         to match constraints.
6638 2001-09-19  Stan Shebs  <shebs@apple.com>
6640         * alias.c: Fix typos in comments.
6641         * sched-rgn.c (init_ready_list): Ditto.
6642         * unwind-dw2.c (uw_frame_state_for): Ditto.
6643         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
6644         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
6645         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
6647 2001-09-19  Richard Henderson  <rth@redhat.com>
6649         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
6650         to the exit block.
6651         * Makefile.in (cfg.o): Depend on TM_P_H.
6653 2001-09-19  Richard Henderson  <rth@redhat.com>
6655         * config/alpha/alpha.c (local_symbol_p): Split out from ...
6656         (local_symbolic_operand): ... here.
6657         (small_symbolic_operand): Check mode.
6658         (global_symbolic_operand): New.
6659         (input_operand): Reject symbolics if explicit relocs.
6660         (call_operand): Tidy.
6661         (alpha_legitimize_address): Use movdi_er_high_g.
6662         (alpha_expand_mov): Likewise.
6663         * config/alpha/alpha-protos.h: Update.
6664         * config/alpha/alpha.h (PREDICATE_CODES): Update.
6665         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
6666         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
6667         (UNSPECV_LDGP2): Remove.
6668         (all call patterns): Use 's' not 'i' for symbolic constraint.
6669         (call_osf call_value_osf): Use call_operand.
6670         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
6671         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
6672         (prologue_ldgp_1_er): Remove.
6673         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
6674         (builtin_setjmp_receiver_er patterns): Use them.
6675         (exception_receiver_er): Likewise.
6677 2001-09-19  Richard Henderson  <rth@redhat.com>
6679         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
6681         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
6682         and NON_LOCAL_GOTO notes.
6683         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
6684         copy over CALL_INSN_FUNCTION_USAGE.
6686 2001-09-18  Catherine Moore  <clm@redhat.com>
6688         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
6689         Define as 0.
6691 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
6693         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
6694         new-style tm_file specification.  Specify correct tm_p_file,
6695         md_file, and out_file for s390x.
6697         * config/s390/linux.h, linux64.h:  Don't include other target
6698         macro header files.  Now handled via tm_file.
6700         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
6701         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
6702         are defined before use.
6704 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
6706         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
6707         code generation only for Gnu assembler.
6709 2001-09-18  Catherine Moore  <clm@redhat.com>
6711         * config/stormy16 (LIB_SPEC): Remove -lnosys.
6713 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
6715         * config/mips/mips.c (mips_frame_set): New.
6716         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
6717         a parallel frame-related expression with a set for each register.
6719 2001-09-18  Philip Blundell  <philb@gnu.org>
6721         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
6722         header files.
6724 2001-09-17  Dale Johannesen  <dalej@apple.com>
6726         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
6727         * config/rs6000/aix.h (FIXED_R2): Define.
6728         * config/rs6000/darwin.h (FIXED_R2): Define.
6729         * config/rs6000/sysv4.h (FIXED_R2): Define.
6731 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
6733         * except.c (dw2_build_landing_pads): New local
6734         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
6735         barrier after clobbers.  Fixes c++/4012.
6737 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6739         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
6741 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
6743         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
6744         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
6746 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6748         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
6749         alloca/strcpy.
6751 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
6753         * cpphash.h (_cpp_lex_direct): New.
6754         * cpplex.c (_cpp_lex_token): Update.
6755         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
6756         and increment that pointer.
6757         * cppmacro.c (alloc_expansion_token): New.
6758         (lex_expansion_token): Lex macro expansion directly into
6759         macro storage.
6761 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
6763         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
6765 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
6767         * basic-block.h (free_bb_for_insn): Declare.
6768         * bb-reorder.c (label_for_bb): Use block_label.
6769         (emit_jump_to_block_after): Remove.
6770         (insert_intra_1): Do not update block_for_insn.
6771         (insert_inter_bb_scope_notes): Likewise; update bb->end
6772         * cfg.c (free_bb_for_insn): New.
6773         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
6774         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
6775         (commit_one_edge_insertion): Likewise.
6776         (commit_one_edge_insertion): Do not update BB boundary.
6777         (commit_edge_insertions): Do not call compute_bb_for_insn.
6778         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
6779         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
6780         (merge_blocks_move_successor_nojumps): Likewise.
6781         (try_crossjump_to_edge): Do not update block_for_insn.
6782         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
6783         * df.c (df_pattern_emit_later): Do not update BB boundary.
6784         (df_jump_pattern_emit_after): Likewise.
6785         (df_insn_move_before): Use emit_insn_before.
6786         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
6787          properly.
6788         (add_insn_after, add_insn_before, emit_insns_after): Update BB
6789         boundaries and basic_block_for_insn.
6790         (reorder_insns_nobb): Rename from reorder_insns.
6791         (reorder_insns): New.
6792         (emit_block_insn_before, emit_block_insn_after): Kill.
6793         * flow.c (check_function_return_warnings): Do not call
6794         compute_bb_for_insn; Do not free basic_block_for_insn.
6795         (attempt_auto_inc): Do not update basic_block_for_insn.
6796         * function.c (emit_return_into_block): Likewise;
6797         do not update BB boundaries.
6798         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
6799         (insert_insn_end_bb): Use emit_insn_before; Likewise.
6800         (pre_insert_copy_insn): Likewise.
6801         (update_ld_motion_notes): Likewise.
6802         (insert_insn_start_bb): Likewise.
6803         (replace_store_insn): Likewise.
6804         * ifcvt.c (noce_process_if_block): Likewise.
6805         (if_convert): Do not call compute_bb_for_insn.
6806         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
6807         Use emit_insn_before and emit_insn_after.
6808         * recog.c (split_all_insns): Do not update BB boundaries;
6809         Do not call compute_bb_for_insn.
6810         (peephole2_optimize): Do not update BB boundaries.
6811         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
6812         emit_insn_before.
6813         (emit_swap_insn): Likewise.
6814         (convert_regs_1): Likewise.
6815         * reload1.c (reload): Call compute_bb_for_insn.
6816         * rtl.h (reorder_insns_nobb): Declare.
6817         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
6818         * toplev.c (rest_of_compilation): Call free_bb_for_insn
6819         at places CFG is invalidated; do not call compute_bb_for_insn.
6821         * cfg.c (expunge_block): Invalidate BB structure.
6823         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
6824         array.
6826         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
6828 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6830         * cpphash.h (_cpp_lex_token): Update prototype.
6831         * cpplex.c (_cpp_lex_token): New prototype.
6832         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
6833         lex_macro_node, read_flag, do_pragma_poison): Update.
6834         * cppmacro.c (cpp_get_token, parse_params,
6835         lex_expansion_token): Update.
6837 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
6839         * cppmain.c (scan_translation_unit): Don't worry about
6840         putting a space after hashes.
6841         * cpplib.c (directive_diagnostics): New.
6842         (_cpp_handle_directive): Update to use directive_diagnostics.
6843         (run_directive): Don't toggle prevent_expansion.
6844         (do_line): Backup in case of the line extension.
6845         * cpplib.h (cpp_lexer_pos): Remove.
6846         * cppmacro.c (_cpp_create_definition): Precede a leading #
6847         with whitespace.
6849 2001-09-15  Richard Henderson  <rth@redhat.com>
6851         * c-typeck.c (comptypes): Handle zero-length arrays properly.
6853 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6855         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
6857 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6859         PR preprocessor/3571
6860         * tradcpp.c (handle_directive): Skip non-vertical space.
6862 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6864         * cppmain.c (setup_callbacks): Set line callback only
6865         if outputting preprocessed source.
6867 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6869         * collect2.c (main): Const-ification.
6870         * gcc.c (translate_options, process_command): Use xstrdup in
6871         lieu of xmalloc/strcpy.
6872         (main): Use concat in lieu of xmalloc/strcpy/strcat.
6874 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
6876         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
6877         example.
6879 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6881         * scan-decls.c (scan_decls): Fix typo.
6883 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
6885         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
6886         Split mlstring_pos into mls_line and mls_col.
6887         * cppinit.c (cpp_create_reader): Initialize line to 1.
6888         (cpp_destroy): Free tokenruns.
6889         (push_include): Don't update lexer_pos.
6890         * cpplex.c (unterminated, parse_string): Update.
6891         (lex_token): Don't update lexer_pos, update.
6892         * cpplib.c (if_stack): Save line instead of line + col.
6893         (start_directive, _cpp_do__Pragma, do_else, do_elif,
6894         push_conditional, _cpp_pop_buffer): Update.
6895         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
6896         (_cpp_create_definition): Update.
6898 2001-09-15  Eric Christopher  <echristo@redhat.com>
6900         * config/mips/abi64.h: Add support for MEABI.
6902 2001-09-15  Eric Christopher  <echristo@redhat.com>
6904         * config/mips/mips.md: Add unspec #2.
6905         (reload_indi): Use.
6906         (reload_outdi): Ditto.
6907         (reload_outsi): Ditto.
6908         (HILO_delay): New.
6910 2001-09-15  Eric Christopher  <echristo@redhat.com>
6911             Jason Eckhardt  <jle@redhat.com>
6913         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
6914         * config/mips/isa32-linux.h: New file.
6915         * config/mips/isa3264.h: Ditto.
6916         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
6917         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
6918         (output_block_mode): Support MEABI.
6919         (function_arg): Ditto. Fix floating point arg passing.
6920         (mips_va_start): Ditto.
6921         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
6922         processors.
6923         (mips_asm_file_start): Add new section to pass abi to gdb.
6924         (function_arg_pass_by_reference): Support MEABI.
6925         (mips_parse_cpu): Support mips32 and mips64 processors.
6926         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
6927         TARGET_MIPS5KC.  Support isa32 and isa64.
6928         (processor_type): Add r4kc, r5kc, r20kc.
6929         (GENERATE_MULT3_SI): New.
6930         (GENERATE_MULT3_DI): Ditto.
6931         (GENERATE_MULT3): Remove.
6932         (ISA_HAS_64BIT_REGS): Add isa == 64.
6933         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
6934         (ISA_HAS_MADD_MSUB): New.
6935         (ISA_HAS_CLZ_CLO): Ditto.
6936         (ISA_HAS_DCLZ_DCLO): Ditto.
6937         (ABI_GAS_ASM_SPEC): New.
6938         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
6939         (ASM_SPEC): Ditto.
6940         (LINK_SPEC): Ditto.
6941         (SUBTARGET_CC1_SPEC): Ditto.
6942         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
6943         (PAD_VARARGS_DOWN): Support MEABI.
6944         (HARD_REGNO_NREGS): Move to mips.c.
6945         (ASM_OUTPUT_IDENT): Add #undef.
6946         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
6947         (mulsi3): Use GENERATE_MULT3_SI.
6948         (mulsi3_mult3): Ditto.  Support mips32, mips64.
6949         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
6950         (mul_sub_si): New pattern.
6951         (unnamed splitters): New.
6952         (muldi3): Use GENERATE_MULT3_DI.
6953         (muldi3_internal2): Ditto.
6954         (movdicc): Support mips32.
6955         * config/mips/t-isa3264: New file.
6957 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
6959         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
6960         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
6961         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
6963         * reorg.c (fill_slots_from_thread): After call to
6964         steal_delay_list_from_target, update own_thread as new_thread may
6965         have branched.
6967 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6969         * cpperror.c (print_location): Take line and column, for
6970         default positioning use the previously lexed token.
6971         (_cpp_begin_message): Take line and column.
6972         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
6973         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
6974         * cpphash.h (_cpp_begin_message): Update prototype.
6975         * cppinit.c (push_include): Don't set output line.
6976         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
6977         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
6978         (do_pragma): Kludge for front ends.  Don't expand macros at all.
6979         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
6980         (struct cpp_token): Remove output_line.
6981         (struct cpp_callbacks): New member line_change.
6982         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
6983         cpp_get_token): Preserve BOL flag.
6984         (cpp_get_line): Remove.
6985         (_cpp_backup_tokens): Remove useless abort().
6986         * cppmain.c (cb_line_change): New.
6987         (scan_translation_unit): Don't worry about starting new lines here.
6988         * scan-decls.c (scan_decls): Update.
6989         * c-lex.c (c_lex, init_c_lex): Update.
6990         (cb_line_change, src_lineno): New.
6992 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
6994         * tree.c (append_random_chars): Generate the random
6995         characters in a reproducable fashion.
6997 2001-09-14  Richard Henderson  <rth@redhat.com>
6999         * config/i386/i386.c (internal_label_prefix): New.
7000         (internal_label_prefix_len): New.
7001         (override_options): Set them.
7002         (local_symbolic_operand): New.
7003         (legitimate_pic_address_disp_p): Use it.
7004         (legitimize_pic_address): Likewise.
7006 2001-09-14  Marc Espie <espie@openbsd.org>
7008         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
7009         correctly.
7011 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7013         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
7014         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
7016 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
7018         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
7019         invocation of SUBREG_REGNO_OFFSET.
7021         * haifa-sched.c: Fix typo in FSF copyright statement.
7022         * sched-deps.c: Fix typo in FSF copyright statement.
7023         * sched-ebb.c: Fix typo in FSF copyright statement.
7024         * sched-rgn.c: Fix typo in FSF copyright statement.
7025         * sched-vis.c: Fix typo in FSF copyright statement.
7027         * config.gcc: Move inclusion of arm elf specific header files
7028         from the files themselves into the tm_file variable.  Make
7029         sure that elfos.h is included before target specific elf
7030         headers.
7031         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
7032         already defined.
7033         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
7034         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
7035         ASM_OUTPUT_CASE_LABEL): Protect definition.
7036         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
7037         not already defined.
7038         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
7039         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
7040         Remove duplicate definition.
7041         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
7042         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
7043         (RDATA_SECTION_FUNCTION): Remove redundant definition.
7044         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
7045         Remove inclusion of arm/elf.h.
7046         * config/arm/unknown-elf.h: as for conix-elf.h.
7047         (STARTFILE_SPEC): Include crti.o and crtn.o.
7048         * config/arm/linux-elf.h: as for conix-elf.h.
7049         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
7050         * config/arm/strongarm-elf.h: Remove inclusion of
7051         unknown-elf.h.
7052         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
7053         * config/arm/unknown-elf-oabi.h: Remove inclusion of
7054         unknown-elf.h and elf.h.
7055         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
7056         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
7057         ASM_WEAKEN_LABEL): Remove redundant definition.
7058         * config/arm/elf.h: Test for inclusion of elfos.h
7059         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
7060         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
7061         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
7062         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
7063         redundant definition.
7064         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
7065         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
7066         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
7067         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
7068         Add rules to build crti.o and crtn.o
7069         * crti.asm: New file.
7070         * crtn.asm: New file.
7072 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7074         * c-parse.in (_yylex): Use _cpp_backup_tokens.
7075         * cpphash.h (struct tokenrun): Add prev.
7076         (struct lexer_state): Remove bol.
7077         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
7078         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
7079         : Remove.
7080         * cppinit.c (cpp_create_reader): Don't set bol.
7081         (cpp_destroy): Don't free lookaheads.
7082         * cpplex.c (lex_directive): Remove.
7083         (next_tokenrun): Update.
7084         (_cpp_lex_token): Clean up logic.
7085         (lex_token): Update to return a pointer to lexed token, since it
7086         can move to the start of the buffer.  Simpify newline handling.
7087         * cpplib.c (SEEN_EOL): Update.
7088         (skip_rest_of_line): Remove lookahead stuff.
7089         (end_directive): Line numbers are already incremented.  Revert
7090         to start of lexed token buffer if we can.
7091         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
7092         parse_answer): Use _cpp_backup_tokens.
7093         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
7094         instead.  Don't check for EOL.
7095         (do_include_common, do_line, do_pragma_system_header): Use
7096         skip_rest_of_line.
7097         * cpplib.h (BOL, _cpp_backup_tokens): New.
7098         * cppmacro.c (save_lookahead_token, take_lookahead_token,
7099         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
7100         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
7101         (builtin_macro): Don't use cpp_get_line.
7102         (cpp_get_line): Short term kludge.
7103         (parse_arg): Handle directives in arguments here.  Back up when
7104         appropriate.  Store EOF at end of argument list.
7105         (funlike_invocation_p): Use _cpp_backup_tokens.
7106         (push_arg_context): Account for EOF at end of list.
7107         (cpp_get_token): Remove lookahead stuff.  Update.
7109 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7111         * c-parse.in (yyerror): Const-ification and/or static-ization.
7112         * c-typeck.c (push_member_name): Likewise.
7113         * collect2.c (main): Likewise.
7114         * dbxout.c (dbxout_parms): Likewise.
7115         * diagnostic.c (format_with_decl): Likewise.
7116         * dwarf2out.c (output_ranges): Likewise.
7117         * dwarfout.c (fundamental_type_code): Likewise.
7118         * except.c (dw2_output_call_site_table): Likewise.
7119         * gcc.c (do_spec_1): Likewise.
7120         * genopinit.c (optabs): Likewise.
7121         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
7122         gen_declaration_1, handle_impent): Likewise.
7123         * protoize.c (default_include, in_system_include_dir, abspath):
7124         Likewise.
7125         * sched-vis.c (visualize_stall_cycles): Likewise.
7126         * sdbout.c (plain_type_1, sdbout_end_function,
7127         sdbout_end_epilogue): Likewise.
7128         * varasm.c (decode_reg_name): Likewise.
7130         * 1750a.c (mod_regno_adjust): Likewise.
7131         * alpha.c (alpha_write_one_linkage,
7132         unicosmk_output_default_externs): Likewise.
7133         * arm.c (arm_condition_codes): Likewise.
7134         * arm.h (arm_condition_codes): Likewise.
7135         * avr.c (output_movsisf, encode_section_info): Likewise.
7136         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
7137         Likewise.
7138         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7139         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
7140         * m88k.c (output_function_profiler): Likewise.
7141         * mips.c (mips_output_conditional_branch): Likewise.
7142         * ns32k.c (ns32k_out_reg_names): Likewise.
7143         * ns32k.h (ns32k_out_reg_names): Likewise.
7144         * pj.c (pj_output_rval): Likewise.
7145         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
7146         * sparc.c (sparc_flat_function_prologue,
7147         sparc_flat_function_epilogue): Likewise.
7149 2001-09-13  Markus Werle <numerical.simulation@web.de>
7150             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7152         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
7153         Aachen University of Technology".
7155 2001-09-13  Andreas Schwab  <schwab@suse.de>
7157         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
7158         C99.
7160 2001-09-13  Richard Henderson  <rth@redhat.com>
7162         * config/alpha/alpha.c (small_symbolic_operand): New.
7163         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
7164         (some_operand, input_operand): Don't handle HIGH.
7165         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
7166         (alpha_expand_mov): Likewise.
7167         (print_operand) [H]: Just print HIGH symbol.
7168         (print_operand_address): Handle small data.
7169         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
7170         (TARGET_SWITCHES): Add -msmall-data/large-data.
7171         (PIC_OFFSET_TABLE_REGNUM): New.
7172         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
7173         (PREDICATE_COES): Update.
7174         * config/alpha/alpha.md (adddi_er_high): New.
7175         (adddi_er_low): Handle small data.
7176         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
7177         prefer .sdata to .rodata.
7178         (SELECT_RTX_SECTION): Likewise.
7180 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
7182         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
7183         defining __size_t and leaving size_t undefined.
7185 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
7187         * basic-block.h (expunge_block): Declare.
7188         * cfg.c (expunge_block): Remove static declaration.
7190 2001-09-12  Richard Henderson  <rth@redhat.com>
7192         * integrate.c (copy_insn_list): Copy label name from
7193         NOTE_INSN_DELETED_LABEL.
7195 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7197         * c-common.c (c_tree_code_name): Const-ification.
7198         * c-decl.c (c_decode_option): Likewise.
7199         * c-typeck.c (warn_for_assignment): Likewise.
7200         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
7201         Likewise.
7202         * cppinit.c (output_deps): Likewise.
7203         * dependence.c (dependence_string, direction_string): Likewise.
7204         * dwarf2out.c (output_ranges): Likewise.
7205         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
7206         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
7207         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
7208         standard_startfile_prefix, standard_startfile_prefix_1,
7209         standard_startfile_prefix_2, tooldir_base_prefix,
7210         standard_bindir_prefix, find_a_file): Likewise.
7211         * genattrtab.c (make_length_attrs): Likewise.
7212         * gencheck.c (tree_codes): Likewise.
7213         * genemit.c (gen_split): Likewise.
7214         * genrecog.c (special_mode_pred_table): Likewise.
7215         * graph.c (graph_ext): Likewise.
7216         * protoize (default_include): Likewise.
7217         * reload.c (reload_when_needed_name): Likewise.
7218         * sched-vis.c (visualize_stall_cycles): Likewise.
7219         * tlink.c (recompile_files): Likewise.
7220         * toplev.c (decode_g_option): Likewise.
7221         * tradcpp.c (output_deps): Likewise.
7222         * varasm.c (decode_reg_name): Likewise.
7224         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
7225         Const-ification.
7226         * arm.md: Likewise.
7227         * avr.c (avr_regnames, encode_section_info): Likewise.
7228         * c4x.c (float_reg_names): Likewise.
7229         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
7230         * elfos.h (const_section): Likewise.
7231         * i386.c (ix86_comp_type_attributes): Likewise.
7232         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
7233         * ia64/aix.h (UNIQUE_SECTION): Likewise.
7234         * ia64.c (type_names): Likewise.
7235         * m68hc11.c (reg_class_names): Likewise.
7236         * m88k.c (m_options): Likewise.
7237         * mips.c (mips_output_conditional_branch, mips_unique_section):
7238         Likewise.
7239         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7240         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
7241         ultra_code_names): Likewise.
7242         * sparc.h (OVERRIDE_OPTIONS): Likewise.
7244 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
7246         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
7247         Use --fatal-warnings option for gas.
7248         * configure: Rebuilt.
7250 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7252         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
7254 2001-09-11  Jim Wilson  <wilson@redhat.com>
7256         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
7258 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7260         * builtins.c (c_strlen): Treat an offset too large for a
7261         HOST_WIDE_INT as out of range.
7263 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
7265         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
7266         (EDGE_CRITICAL_P): New predicate.
7267         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
7268         handling.
7269         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
7270         (dump_edge_info): Remove "crit".
7271         * cfganal.c (mark_critical_edges): Kill.
7272         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
7273         * cfgcleanup.c (cleanup_cfg): Likewise.
7274         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
7275         (find_spanning_tree): Likewise.
7276         * reg-stack.c (convert_regs_1): Likewise.
7277         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
7279         * basic-block.h (create_basic_block_structure): New.
7280         (create_basic_block): Update prototype.
7281         (force_nonfallthru): New.
7282         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
7283         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
7284         handle updating of block_for_insn, creating of empty BBs and BBs at
7285         the end of INSN chain.
7286         (create_basic_block): New function.
7287         (split_block): Use create_basic_block.
7288         (force_nonfallthru_and_redirect): Break out from ...; cleanup
7289         (redirect_edge_and_branch_force): ... here.
7290         (force_nonfallthru): New.
7291         (split_edge): Rewrite to use force_nonfallthru and create_block.
7292         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
7293         (find_basic_blocks): Free basic_block_for_insn.
7294         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
7296         * cfg.c: Fix formating.
7297         * cfgcleanup.c: Fix formating.
7298         (merge_blocks, tail_recursion_label_p): Return bool.
7299         (merge_blocks_move_predecessor_nojumps,
7300          merge_blocks_move_successor_nojumps): Return void.
7302 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
7304         * configure.in: Check whether assembler supports section merging.
7305         * config.in: Rebuilt.
7306         * configure: Rebuilt.
7307         * varasm.c (variable_section, output_constant_pool): Pass alignment
7308         to SELECT_SECTION and SELECT_RTX_SECTION.
7309         (mergeable_string_section): New.
7310         (mergeable_constant_section): New.
7311         (default_elf_asm_named_section): Output SECTION_MERGE and
7312         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7313         * output.h (mergeable_string_section): New.
7314         (mergeable_constant_section): New.
7315         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
7316         * toplev.c (flag_merge_constants): New.
7317         (f_options): Add -fmerge-constants and -fmerge-all-constants
7318         options.
7319         (toplev_main): Default to -fno-merge-constants if not optimizing.
7320         * flags.h (flag_merge_constants): Add extern.
7321         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
7322         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
7323         argument.
7324         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
7325         Define if assembler has working .subsection -1 support.
7326         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
7327         Put constant into special SHF_MERGE sections if the linker should
7328         attempt to merge duplicates.
7329         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
7330         macro argument.
7331         Put constant into special SHF_MERGE sections if the linker should
7332         attempt to merge duplicates.
7333         * config/alpha/elf.h: Likewise.
7334         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
7335         has working .subsection -1 support.
7336         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
7337         SELECT_SECTION.
7338         * config/svr3.h: Likewise.
7339         * config/darwin.h: Likewise.
7340         * config/arm/aof.h: Likewise.
7341         * config/arm/linux-elf.h: Likewise.
7342         * config/avr/avr.h: Likewise.
7343         * config/c4x/c4x.h: Likewise.
7344         * config/d30v/d30v.h: Likewise.
7345         * config/i386/dgux.h: Likewise.
7346         * config/i386/osfrose.h: Likewise.
7347         * config/i386/sco5.h: Likewise.
7348         * config/i386/svr3gas.h: Likewise.
7349         * config/ia64/aix.h: Likewise.
7350         * config/m32r/m32r.h: Likewise.
7351         * config/m68k/m68k.h: Likewise.
7352         * config/m88k/dgux.h: Likewise.
7353         * config/m88k/m88k.h: Likewise.
7354         * config/mcore/mcore-pe.h: Likewise.
7355         * config/mips/mips.h: Likewise.
7356         * config/pa/pa.h: Likewise.
7357         * config/pa/pa-linux.h: Likewise.
7358         * config/romp/romp.h: Likewise.
7359         * config/rs6000/sysv4.h: Likewise.
7360         * config/rs6000/xcoff.h: Likewise.
7361         * config/s390/linux.h: Likewise.
7362         * config/sparc/sparc.h: Likewise.
7363         * config/sparc/sysv4.h: Likewise.
7364         * config/stormy16/stormy16.h: Likewise.
7365         * config/v850/v850.h: Likewise.
7366         * config/vax/vms.h: Likewise.
7367         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
7368         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
7369         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
7370         default_elf_asm_named_section for SHF_MERGE sections.
7372 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
7374         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
7375         is OK.
7377 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
7379         * c-common.c (split_specs_attrs): Allow for empty attributes with
7380         empty TREE_PURPOSE.  Fixes PR c/4294.
7382 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
7384         * basic-block.h (cached_make_edge, make_single_succ): New.
7385         (make_edge): Remove first parameter.
7386         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
7387         * cfg.c (cached_make_edge): Rename from make_edge; return newly
7388         created edge; use obstack allocation.
7389         (make_edge, make_single_succ_edge): New.
7390         (first_removed_edge): New static variable.
7391         (init_flow): Initialize first_removed_edge and n_edges.
7392         (clear_edges): Use remove_edge.
7393         (flow_delete_block): Likewise.
7394         (remove_edge): Add removed edges to the removed edges list.
7395         (split_block, redirect_edge_and_branch_force, split_edge):
7396         Use make_edge.
7397         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
7398         (add_noreturn_fake_exit_edges): Likewise.
7399         (connect_infinite_loops_to_exit): Liekwise.
7400         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
7401         Use cached_make_edge.
7402         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
7403         * profile.c (branch_prob): Update make_edge call.
7404         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7406 2001-09-11  Richard Henderson  <rth@redhat.com>
7408         * config/alpha/alpha.c: Tidy formatting.
7409         (local_symbolic_operand): Verify mode.
7410         (alpha_sa_mask): Ignore unicos for eh_return.
7411         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
7412         * config/alpha/alpha.md (umk divsi patterns): Remove.
7413         (extendsfdf2): Remove unicos check.
7414         (tablejump): Merge vms and unicos code; always use direct set
7415         plus label_ref use.
7417 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7419         * config.gcc (alpha*-*-unicosmk*): New target.
7421         * config/alpha/alpha-protos.h (symbolic_operand,
7422         unicosmk_add_call_info_word, unicosmk_add_extern,
7423         unicosmk_defer_case_vector, unicosmk_unique_section,
7424         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
7425         unicosmk_asm_file_start, unicosmk_asm_file_end,
7426         unicosmk_output_common): Declare.
7428         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
7429         direct_return, function_arg, alpha_va_start, alpha_va_arg,
7430         alpha_does_function_need_gp, alpha_end_function): Support Cray
7431         Unicos/Mk.
7432         (alpha_init_machine_status, alpha_mark_machine_status,
7433         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
7434         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
7435         unicosmk_asm_named_section, unicosmk_insert_attributes,
7436         unicosmk_section_type_flags, symbolic_operand,
7437         unicosmk_output_module_name, unicosmk_output_default_externs,
7438         unicosmk_output_dex, unicosmk_output_externs,
7439         unicosmk_output_addr_vec, unicosmk_ssib_name,
7440         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
7441         unicosmk_asm_file_end, unicosmk_output_common,
7442         unicosmk_section_type_flags, unicosmk_unique_section,
7443         unicosmk_add_call_info_word, unicosmk_text_section,
7444         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
7445         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
7446         unicosmk_dex_count, unicosmk_special_name): New.
7447         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
7448         TARGET_ABI_UNICOSMK.
7449         (get_aligned_mem, alpha_expand_unaligned_load,
7450         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
7451         alpha_expand_unaligned_store_words): Support big-endian mode.
7452         (print_operand): Likewise. New format specifier 't'. Use
7453         TARGET_AS_SLASH_BEFORE_SUFFIX.
7454         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
7455         (alpha_pv_save_size): Update with above change.
7456         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
7457         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
7458         Unicos/Mk.
7460         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
7461         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
7462         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
7463         (EXTRA_CONSTRAINT): New constraint 'U'.
7464         (PREDICATE_CODES): Add symbolic_operand.
7466         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
7467         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
7468         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
7469         (integer division and modulus patterns): Split in default and
7470         Unicos/Mk versions.
7471         (*divmodsi_internal, *divmoddi_internal): Disable for
7472         TARGET_ABI_UNICOSMK.
7473         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
7474         little-endian and big-endian versions.
7475         (ext, ins, msk): Likewise.
7476         (extv, extzv, insv): Support big-endian mode.
7477         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
7478         (call_umk, call_value_umk, *call_umk, tablejump_umk,
7479         *tablejump_umk_internal, *call_value_umk): New.
7480         (*movdi_nofix): Add pattern for loading an address into a register on
7481         TARGET_ABI_UNICOSMK.
7482         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
7483         (umk_mismatch_args, arg_home_umk): New.
7484         (various insns): Don't use mov, fmov, nop, fnop and unop.
7485         (realign): Support TARGET_ABI_UNICOSMK.
7487         * config/alpha/unicosmk.h: New file.
7488         * config/alpha/t-unicosmk: New file.
7490         * fixinc/inclhack.def (unicosmk_restrict): New.
7491         * fixinc/fixincl.x: Regenerate.
7493         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
7494         (wchar_t): Check for and define __WCHAR_T__.
7496 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
7498         * combine.c (simplify_shift_const): Treat shifts by the mode
7499         size as undefined.
7501 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7503         * cpphash.h (struct tokenrun): New.
7504         (struct cpp_context): New member bol.
7505         (struct cpp_reader): New members.
7506         (_cpp_init_tokenrun): New.
7507         * cppinit.c (cpp_create_reader): Set up the token runs.
7508         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
7509         (lex_token): New internalised version of _cpp_lex_token.  Don't
7510         handle directives or the multiple include optimization here any
7511         more.  Simply lex a token.
7512         * cpplib.c (run_directive): Clear bol.
7513         (_cpp_pop_buffer): Set bol.
7514         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
7515         arguments.
7517 2001-09-11  Michael Meissner  <meissner@redhat.com>
7519         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
7520         give an error if the user uses -mfp32.
7521         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
7522         default options.
7523         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
7524         floating point register size.
7525         (EXTRA_SPECS): Add CPP_FPR_SPEC.
7527         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
7528         HOST_WIDE_INT_PRINT_DEC to properly print the result of
7529         int_size_in_bytes.
7530         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7531         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
7533 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
7535         * dbxout.c (dbxout_parms): Fix typo in comment.
7536         * unroll.c (loop_find_equiv_value): Ditto.
7537         * toplev.c (rest_of_compilation): Ditto.
7538         * loop.c (scan_loop): Ditto.
7539         * dwarf2out.c (struct dw_fde_struct): Ditto.
7541 2001-09-10  Zack Weinberg  <zackw@panix.com>
7543         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
7544         copying identifier when we're just going to throw it away.
7545         (parse_identifier_slow): New routine to handle abnormal cases.
7546         (_cpp_lex_token): Update call site.
7548         * hashtable.c (ht_lookup): Don't assume that the string we've
7549         been given is NUL-terminated.
7550         * system.h: #define __builtin_expect(a, b) to (a) if not
7551         GCC >=3.0.
7553 2001-09-10  Michael Meissner  <meissner@redhat.com>
7555         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
7556         binutils, gdb.
7558 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
7560         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
7562 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7564         * builtins.c (c_getstr): Correct thinko in last change and further
7565         cleanup.
7567 2001-09-10  Tim Freeman <tim@fungibole.com>
7569         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
7570         into varray's and register them as roots with the garbage
7571         collector so they are not collected too soon.
7573 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
7575         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
7576         New.
7577         * basic-block.h (flow_obstack, label_value_list,
7578         tail_recursion_label_list): Declare
7579         (tidy_fallthru_edges): Declare.
7580         (expunge_block, last_loop_beg_note): Delete.
7581         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
7582         * cfg.c: New file
7583         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
7584         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
7585         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
7586         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
7587         expunge_block, flow_delete_block, compute_bb_for_insn,
7588         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
7589         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
7590         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
7591         try_redirect_by_replacing_jump, last_loop_beg_note,
7592         redirect_edge_and_branch, redirect_edge_and_branch_force,
7593         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
7594         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
7595         commit_edge_insertions, dump_flow_info, debug_flow_info,
7596         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
7597         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
7598         Move here from flow.c
7599         * cfganal.c: New file.
7600         (forwarder_block_p, can_fallthru, mark_critical_edges,
7601          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
7602          find_unreachable_blocks, create_edge_list, free_edge_list,
7603          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
7604          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
7605          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
7606          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
7607          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
7608          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
7609         Move here from flow.c
7610         * cfgbuild.c: New file
7611         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
7612          make_edges, find_basic_blocks_1, find_basic_blocks,
7613          find_sub_basic_blocks): Move here from flow.c
7614         * cfgcleanup.c: New file.
7615         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
7616          merge_blocks_move_predecessor_nojumps,
7617          merge_blocks_move_successor_nojumps, merge_blocks,
7618          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
7619          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
7620         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
7621         if succeeded.
7622         * cfgloop.c: New file
7623         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
7624          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
7625          flow_loop_exit_edges_find, flow_loop_nodes_find,
7626          flow_loop_pre_header_scan, flow_loop_pre_header_find,
7627          flow_loop_tree_node_add, flow_loops_tree_build,
7628          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
7629          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
7630         Move here from flow.c
7631         * flow.c: Remove everything moved elsewhere
7632         * output.h (cleanup_cfg): Return bool.
7634         * bb-reorder.c (reorder_block_def): Remove 'index'.
7635         (insert_intra_1): Add argument BB, set block for new note.
7636         (make_reorder_chain): Do not depdent on BB indexes.
7637         (make_reorder_chain_1): Do not use BB indexes.
7638         (label_for_bb): Likewise; set BB for new insn.
7639         (emit_jump_to_block_after): Likewise.
7640         (fixup_reorder_chain): Sanity check that all basic blocks
7641         are chained; verify newly created insn chain; remove
7642         undocnitional jump simplifying; Do not use BB indexes;
7643         properly initialize count and frequency information;
7644         dump reordered sequence.
7645         (insert_intra_bb_scope_notes): update call of insert_intra_1.
7646         (insert_inter_bb_scope_notes): Set block for new insn.
7647         (reorder_basic_blocks): Dump flow info before reoredering.
7649 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7651         * alias.c (clear_reg_alias_info): Use K&R format definition.
7652         Avoid unsigned warning.
7653         * builtins.c: Use "unsigned int", not "unsigned".
7654         (target_char_cast): Use host_integerp and tree_low_cst.
7655         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
7656         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
7657         (c_getstr): Likewise.
7658         (std_expand_builtin_va_arg): Use int_size_in_bytes.
7659         (builtin_memcpy_read_str): Avoid unsigned warning.
7660         (expand_builtin_memcpy): Alignments are unsigned.
7661         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
7662         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
7663         * predict.c (expensive_function_p): LIMIT now unsigned.
7664         * resource.c (mark_target_live_regs): Make some vars unsigned.
7665         * sdbout.c: Use "unsigned int", not "unsigned".
7666         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
7667         (sdbout_source_line): Likewise.
7668         (sdbout_record_type_name): Remove "const" for NAME declaration.
7669         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
7671 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
7673         * calls.c (store_one_arg): Expand comment.
7675 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7677         * calls.c (store_one_arg): Make sure that the entire argument is
7678         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
7680 2001-09-09  Richard Henderson  <rth@redhat.com>
7682         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
7684 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
7686         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
7688 2001-09-09  Richard Henderson  <rth@redhat.com>
7690         * config/alpha/alpha.c (alpha_next_sequence_number): New.
7691         (alpha_this_literal_sequence_number): New.
7692         (alpha_this_gpdisp_sequence_number): New.
7693         (some_operand, input_operand): Add HIGH.
7694         (local_symbolic_operand): New.
7695         (alpha_encode_section_info): New.
7696         (alpha_legitimate_address_p): Allow LO_SUM.
7697         (alpha_legitimize_address): Generate HIGH+LO_SUM.
7698         (alpha_expand_mov): Likewise.
7699         (secondary_reload_class): Check memory_operand not general_operand
7700         for FP_REGS test.
7701         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
7702         (alpha_expand_unaligned_store): Likewise.
7703         (alpha_expand_unaligned_load_words): Likewise.
7704         (alpha_expand_unaligned_store_words): Likewise.
7705         (alpha_expand_block_clear): Likewise.
7706         (print_operand): Handle %#, %*, %H.
7707         (print_operand_address): Handle LO_SUM.
7708         (find_lo_sum): New.
7709         (alpha_does_function_need_gp): Use it.
7710         (alpha_expand_block_move): Fix signed compare warnings.
7711         (alpha_sa_mask, alpha_align_insns): Likewise.
7712         * config/alpha/alpha-protos.h: Update.
7713         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
7714         (MASK_EXPLICIT_RELOCS): New.
7715         (TARGET_SWITCHES): Add -mexplicit-relocs.
7716         (EXTRA_CONSTRAINT): Add 'T'.
7717         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
7718         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
7719         (ENCODE_SECTION_INFO): Out line.
7720         (REDO_SECTION_INFO_P): New.
7721         (STRIP_NAME_ENCODING): New.
7722         (ASM_OUTPUT_LABELREF): New.
7723         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
7724         (PREDICATE_CODES): Update.
7725         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
7726         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
7727         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
7728         builtin_setjmp_receiver_er, exception_receiver_1_er,
7729         call_value_osf_1_er): New patterns.
7730         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
7731         (movqi, movhi, movsi): Add explicit $31 base register to lda.
7732         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
7733         (FINAL_PRESCAN_INSN): New.
7735 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
7737         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
7739 2001-09-08  Andreas Jaeger  <aj@suse.de>
7741         * i386.h (TARGET_SWITCHES): Fix description.
7743 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
7745         * rs6000.c (num_insns_constant): Compute number of instructions
7746         more accurately.
7748         * doc/install.texi: Explain AIX exception handling work-around.
7749         Update URL for AIX fixes.
7751 2001-09-07  Jim Wilson  <wilson@redhat.com>
7753         * alias.c (clear_reg_alias_info): New.
7754         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
7755         * rtl.h (clear_reg_alias_info): Declare.
7757 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7759         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
7760         available.
7761         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
7762         (m16m,edivm,emulm): Change declaration to match definition.
7764 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
7766         * reload.c (push_reload): Check for subreg_lowpart_p instead of
7767         SUBREG_BYTE being 0 when determining if the inner part of a subreg
7768         can be reloaded.
7770 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7772         * c-common.c (signed_or_unsigned_type): Handle machine mode types
7773         which have no corresponding C type.
7774         * fold_const.c (target_isinf,target_isnan,target_negative): Update
7775         the representation of 64-bit doubles to work with 64-bit ints.
7777 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
7779         * config/mips/mips.c (override_options): Do not override ISA when ABI
7780         specified if MIPS_CPU_STRING_DEFAULT was specified.
7782 2001-09-07  Richard Henderson  <rth@redhat.com>
7784         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
7785         (express_from_1): Wrap lines.
7786         * rtlanal.c (commutative_operand_precedence): Rename from
7787         operand_preference; export.
7788         * rtl.h: Declare it.
7789         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
7790         (simplify_binary_operation): Invoke simplify_plus_minus on
7791         (CONST (PLUS ...)) as well.
7792         (struct simplify_plus_minus_op_data): New.
7793         (simplify_plus_minus_op_data_cmp): New.
7794         (simplify_plus_minus): Use them.  Avoid infinite recursion with
7795         simplify_binary_operation wrt CONST.
7797 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
7799         * h8300-protos.h (general_operand_dst_push): Remove.
7800         * h8300.c (general_operand_dst_push): Likewise.
7801         * h8300.h (OK_FOR_T): Likewise.
7802         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
7803         * h8300.md (pushqi_h8300): New.
7804         (pushqi_h8300hs): Likewise.
7805         (pushqi): Likewise.
7806         (pushhi_h8300): Likewise.
7807         (pushhi_h8300hs): Likewise.
7808         (pushhi): Likewise.
7810 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7812         * genattrtab.c (attr_printf): First arg is unsigned.
7813         Clean up formatting of callers.
7815 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
7817         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
7818         registers.
7820 2001-09-07  Andreas Jaeger  <aj@suse.de>
7822         * i386.h (TARGET_SWITCHES): Fix descriptions.
7824 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
7826         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
7828 2001-09-06  Ira Ruben  <ira@apple.com>
7830         Remove OP_IDENTIFIER.
7831         * tree.def (OP_IDENTIFIER): Remove.
7832         * tree.c (tree_node_kind enum): Remove op_id_kind.
7833         (tree_node_kind_names): Remove "op_identifiers".
7834         (make_node): Remove OP_IDENTIFIER test.
7835         (build_op_identifier): Removed because it isn't being used.
7836         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
7837         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
7839 2001-09-06  Richard Henderson  <rth@redhat.com>
7841         * simplify-rtx.c (simplify_binary_operation): Revert last change.
7843 2001-09-06  Richard Henderson  <rth@redhat.com>
7845         * simplify-rtx.c (simplify_binary_operation): Simplify contents
7846         of CONST.
7848 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7850         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
7851         number used for CR register.
7853 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
7854                           Joern Rennecke (amylaar@cygnus.com)
7856         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
7857         * h8300.c (initial_offset): Handle offset between RP and FP.
7858         (h8300_return_addr_rtx): New function.
7859         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
7860         return register.
7861         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
7862         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
7863         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
7864         (CAN_ELIMINATE, REGISTER_NAMES):
7865         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
7867 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
7869         Remove TYPE_NONCOPIED_PARTS.
7870         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
7871         (struct tree_type): Remove noncopied_parts.
7872         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
7873         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
7874         (fixed_type_p): Remove.
7875         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
7876         (expand_expr, MODIFY_EXPR): Likewise.
7877         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
7878         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
7880 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
7882         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
7883         compiler warnings.
7884         (mask64_operand): Likewise.
7885         (includes_rldic_lshift_p): Likewise.
7886         (includes_rldicr_lshift_p): Likewise.
7888 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
7890         * objc/objc-act.c (build_message_expr): If a class method cannot
7891         be found, do not issue a warning if a corresponding instance
7892         method exists in the root class.
7894 2001-09-05  Richard Henderson  <rth@redhat.com>
7896         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
7898 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
7900         * function.c (ggc_mark_struct_function): Mark f->outer.
7901         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
7902         * integrate.c (output_inline_function): ... not here.
7904 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
7906         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
7908         * i386.c (size_cost): New static variable.
7909         (override_function): Use size_cost when -Os is specified.
7911         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
7912         properly;  Use current_function_calls_eh_return.
7913         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
7914         use leave to avoid dependency chain.
7916         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
7917         get BB loop_depth instead of computing it from LOOP notes.
7919         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
7921 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7923         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7924         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
7925         UNALIGNED_DOUBLE_INT_ASM_OP): Define
7927 2001-09-05  Jeffrey A Law  (law@cygnus.com)
7928             Jason Merrill (jason@redhat.com)
7930         * stor-layout.c (layout_type): Complain if an array's size can
7931         not be represented in a size_t.
7933         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
7935 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
7937         * gcc.c: (process_command) Add parentheses around assignment
7938         used as truth value.
7940 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
7942         * config/mips/mips.c (save_restore_insns): Don't mark any register
7943         save slots as unchanging if current_function_calls_eh_return.
7945 2001-09-05  Richard Henderson  <rth@redhat.com>
7947         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
7948         * config/alpha/alpha-protos.h: Declare it.
7949         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
7950         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
7951         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
7952         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
7953         (REG_OK_FOR_BASE_P): Select one of the above.
7955 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
7957         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
7958         (crti.o): Prefix name of object file with $(T).
7959         (crtn.o): Likewise.
7961 2001-09-05  David S. Miller  <davem@redhat.com>
7963         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
7964         * config/sparc/linux64.h: Likewise.
7966 2001-09-05  Andreas Jaeger  <aj@suse.de>
7968         * doc/invoke.texi (i386 Options): -mwide-multiply is not
7969         available anymore, remove the documentation.
7970         (i386 Options): Fix typo, cleanup index entries.
7972         * prefix.c (concat): Remove, we can use the version from liberty.
7974 2001-09-05  Richard Henderson  <rth@redhat.com>
7976         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
7977         New functions split out of md file expanders.
7978         * config/alpha/alpha-protos.h: Declare them.
7979         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
7981 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7983         * cppmacro.c (funlike_invocation_p): No need to restore context.
7985 2001-09-04  Richard Henderson  <rth@redhat.com>
7987         * reload.c (push_reload): Export.
7988         * reload.h (push_reload): Declare it.
7990         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
7991         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
7992         * config/alpha/alpha.c (alpha_legitimize_address): New.
7993         (alpha_legitimize_reload_address): Likewise.
7994         * config/alpha/alpha-protos.h: Declare them.
7996 2001-09-04  Stan Shebs  <shebs@apple.com>
7998         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
7999         * config/darwin.c (machopic_stub_name): Account for internally
8000         generated lib calls such as memcpy.
8002 2001-09-04  Richard Henderson  <rth@redhat.com>
8004         * unwind.h (_UA_END_OF_STACK): New flag.
8005         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
8007 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
8009         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
8011 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
8013         * config/mips/mips.c (save_restore_insns): Change base_offset to
8014         fp_offset in second call to mips_emit_frame_related_store.
8016 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
8018         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
8019         sometimes be represented as a NOTE of type
8020         NOTE_INSN_DELETED_LABEL.
8021         (Insns): Document NOTE_INSN_DELETED_LABEL.
8023 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
8025         * c-common.h (tree_dump_index): Add more comments.
8026         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
8027         (dump_option_value_info): New struct.
8028         (dump_options): New array.
8029         (dump_switch_p): Parse switch options symbolically.
8030         * doc/invoke.texi (-fdump-ast): Rename to ...
8031         (-fdump-tree): ... here. Document that options are symbolic, and
8032         not all are applicable.
8034 2001-09-04  David S. Miller  <davem@redhat.com>
8036         * config/sparc/sparc.md (define_splits): Kill constraints.
8038         Cleanup redundant and unused insn attributes.
8039         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
8040         binary, and move.  Mark ialu as default.
8041         (commented out define_function_unit "alu"): Kill.
8042         (define_attr "use_clobbered"): Kill.
8043         (whole file): Kill address insn type references.  Replace
8044         all unary/binary/move references with ialu.
8045         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
8046         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
8047         TYPE_IALU.
8049         Simplify length insn attribute and make more judicious use
8050         of insn attribute defaulting.
8051         * config/sparc/sparc.md (all insns with length > one): Mark as
8052         insn type multi if real instructions, else use default if
8053         it is a forced splitter.
8054         (all insns with length == one): Use default insn length.
8055         (all insns of type ialu): Use default insn type.
8057         Fix erroneous insn attribute settings.
8058         (addx): Set insn type to misc.
8059         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
8060         const_umulsidi3_sp64): Set insn type to imul.
8062         Track SFmode vs DFmode insns according to UltraSPARC
8063         scheduling rules.
8064         * config/sparc/sparc.md ("fptype"): New attribute, default
8065         to "single".
8066         (all DFmode single insns): Mark as fptype "double".
8068 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
8070         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
8072 2001-09-03  Richard Henderson  <rth@redhat.com>
8074         * function.h (struct function): Add arg_pointer_save_area_init.
8075         * function.c (expand_function_end): Init arg_pointer_save_area.
8076         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
8077         when called from a nested function.
8079 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
8081         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
8082         is enabled.
8084 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
8086         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
8088 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
8090         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
8091         (emit_push_insn): Use specified padding direction when
8092         STACK_PUSH_CODE is POST_INC.
8094         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
8096 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8098         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
8100 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8102         * cppinit.c (cpp_start_read): Free the imacros list as we
8103         traverse it.  Don't free the chains before returning.
8104         (_cpp_push_next_buffer): Only try pushing buffers if we've
8105         completed -imacros handling.
8107 2001-08-31  Eric Christopher  <echristo@redhat.com>
8109         * gcc.c (handle_braces): Add explaination for abort.
8111 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
8113         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
8114         move adjustment of bitpos instead.
8116 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
8118         * function.c: Remove all_functions.  Make outer_function_chain
8119         static.
8120         (init_function_start): Don't add new function structure to
8121         all_functions.
8122         (find_function_data, push_function_context_to,
8123         pop_function_context_from, put_var_into_stack,
8124         trampoline_address): Update for changed structure element names.
8125         (push_function_context_to): Disentangle.
8126         (free_after_compilation): Also free F.
8127         (expand_dummy_function_end): Don't free cfun here.
8128         (put_var_into_stack): Comment why we can't use find_function_data here.
8129         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
8130         (mark_function_chain): Split into maybe_mark_struct_function and
8131         ggc_mark_struct_function.  Export the latter.
8132         (init_function_once): Mark from cfun and outer_function_chain;
8133         not all_functions.
8135         * function.h (struct function): Kill next_global.  Rename next
8136         to outer.  All users updated to match.
8137         (all_functions, outer_function_chain): Don't declare.
8139         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
8140         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
8141         don't touch f->inlinable, after calling rest_of_compilation.
8143         * tree.h: Forward-declare struct function.  Prototype
8144         ggc_mark_struct_function.
8146 2001-08-31  Kazu Hirata  <kazu@hxi.com>
8148         * config/h8300/h8300.md (*andorhi3): Fix typos.
8150 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8152         * calls.c (emit_library_call_value): Don't use a fixed
8153         argument after VA_CLOSE, i.e. out of scope in traditional C.
8155         * emit-rtl.c (gen_rtvec): Likewise.
8157 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8159         * Makefile.in (c-pragma.o): Depend on output.h.
8160         (reorg.o): Depend on except.h.
8162         * c-pragma.c: Include output.h.
8164         * reorg.c: Include except.h.
8166         * unwind-dw2.c: Call __builtin_alloca, not alloca.
8168 2001-08-31  Richard Henderson  <rth@redhat.com>
8170         * sched-deps.c (add_dependence): Don't elide dependency if the
8171         conditional used by insn is modified in elem.
8173 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
8175         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
8177 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
8179         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
8180         dump_switch_p.
8182 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
8184         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
8185         function.
8186         (stormy16_asm_out_constructor): New function.
8187         (TARGET_ASM_CONSTRUCTOR): Define.
8188         (TARGET_ASM_DESTRUCTOR): Define.
8190 2001-08-31  Andreas Jaeger  <aj@suse.de>
8192         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
8193         * loop.c (add_label_notes): Likewise.
8194         * reload.c (find_reloads): Likewise.
8195         * config/sh/sh.c (machine_dependent_reorg): Likewise.
8197 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
8199         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
8200         code here.  Take _Unwind_{W,Sw}ord*.
8201         (read_encoded_value_with_base): Use them.
8202         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
8203         words.
8204         (extract_cie_info): Simplify read_?leb128 handling.
8205         (execute_stack_op, execute_cfa_program): Likewise.
8206         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
8208 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
8210         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
8211         the frame pointer to pop the stack if convenient.
8213         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
8214         Don't use post-increment before combine.
8215         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
8216         a call-saved register.
8218 2001-08-31  Andreas Jaeger  <aj@suse.de>
8220         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
8221         code was correct.
8223 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
8225         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
8226         not DIV/MOD, of course.
8228 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
8230         * rtl.def: Undo my patch commited 2001-08-27.
8232         * genattrtab.c: Ditto.
8234         * rtl.h: Ditto.
8236         * sched-int.h: Ditto.
8238         * target-def.h: Ditto.
8240         * target.h: Ditto.
8242         * haifa-sched.c: Ditto.
8244         * sched-rgn.c: Ditto.
8246         * sched-vis.c: Ditto.
8248         * Makefile.in: Ditto.
8250         * doc/md.texi: Ditto.
8252         * doc/tm.texi: Ditto.
8254         * doc/contrib.texi: Ditto.
8256         * doc/gcc.texi: Ditto.
8258         * genattrtab.h: Remove it.
8260         * genautomata.c: Remove it.
8262         * genattr.c: Undo my patch and Richard Henderson's patch commited
8263         2001-08-27.
8265 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
8267         * config.gcc (h8300-*-elf*): New case.
8268         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
8269         (SUBTARGET_CPP_SPEC): Define.
8270         (EXTRA_SPECS): Define.
8271         (SUBTARGET_EXTRA_SPECS): Define.
8272         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
8273         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
8275 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
8277         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
8278         (LIB2FUNCS_EXTRA): Define.
8279         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
8280         config/h8300/fixunssfsi.c: New file.
8282 2001-08-30  Kazu Hirata  <kazu@hxi.com>
8284         * config/h8300/h8300.md (zero_extendqihi2): Changes to
8285         define_expand to accommodate target-specific attributes.
8286         (anonymous zero_extendqihi2 patterns): New.
8288 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
8290         * h8300.md (*andorhi3): New pattern.
8292 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
8294         * h8300.c (dosize): Fix test for "sub".
8296 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
8298         * c-typeck.c (pointer_diff): Try to eliminate common term before
8299         doing conversions.
8301 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
8303         * config/arm/arm.c (arm_compute_initial_elimination_offset):
8304         Account for the saves of the FP registers.
8306         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
8307         (TEXT_SECTION_ASM_OP): Define.
8308         (INIT_SECTION_ASM_OP): Define.
8309         (FINI_SECTION_ASM_OP): Define.
8310         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
8311         (RDATA_SECTION_FUNCITON): Provide prototype.
8313 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
8315         * reload1.c (move2add_note_store): Correct typo checking for
8316         argument pushes.
8318 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
8320         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
8321         note should not be considered outside the libcall block.
8323 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8325         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
8327 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8329         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
8331 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8333         * config/h8300/h8300-protos.h: Add a prototype for
8334         emit_logical_op.
8335         * config/h8300/h8300.c (emit_logical_op): New.
8336         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
8337         (andsi3): Likewise.
8338         (iorhi3): Likewise.
8339         (iorsi3): Likewise.
8340         (xorhi3): Likewise.
8341         (xorsi3): Likewise.
8343 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8345         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
8346         comparison with rtx INTVAL.
8347         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
8348         expression.
8349         * pa.h (FUNCTION_ARG_SIZE): Likewise.
8351 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8353         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
8354         comment typos.
8356 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8358         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
8359         (reg n) to (mem (pre_dec (reg n))
8360         (anonymous movsi pattern): Likewise.
8362 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8364         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
8366 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8368         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
8369         several special constants.
8371 2001-08-29  Kazu Hirata  <kazu@hxi.com>
8373         * config/h8300/lib1funcs.asm: Fix comment typos.
8375 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8377         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
8378         Fix format specifier warnings.
8380         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
8381         inet_makeaddr, semctl): Prototype.
8383         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
8384         (save_restore_insns): Use base_offset, not gp_offset.
8386         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
8387         (ASM_OUTPUT_BYTE): Fix format specifier warning.
8389 2001-08-29  Richard Henderson  <rth@redhat.com>
8391         * bb-reorder.c (function_tail_eff_head): New.
8392         (record_effective_endpoints): Set it.
8393         (fixup_reorder_chain): Use it.
8395 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8397         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
8399 2001-08-28  Dale Johannesen  <dalej@apple.com>
8401         * config/darwin.c (machopic_function_base_name): Add const
8402         qualifier to a string.
8403         (darwin_encode_section_info): Ditto.
8405 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8407         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
8408         function definition.
8410 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
8412         * df.h (struct df): Add rts_order variable.
8414         * df.c (df_visit_next_rts): New function.
8415         (df_visit_next): Renamed to df_visit_next_rc
8416         (df_analyse_1): Allocate/compute/free rts_order as well.
8417         (df_rd_global_compute): Use df_visit_next_rc instead of
8418         df_visit_next.
8419         (df_ru_global_compute): Use df_visit_next_rts instead of
8420         df_visit_next.
8422         * flow.c (flow_reverse_top_sort_order_compute): New function.
8424         * basic-block.h: Add prototype.
8426 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
8428         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
8429         blocks, the BB_REACHABLE is now set, rather than aux being
8430         non-NULL. Update the test to reflect this.
8432 2001-08-28  Eric Christopher  <echristo@redhat.com>
8434         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
8435         config/mips/crti.asm: Ditto.
8437 2001-08-28  Eric Christopher <echristo@redhat.com>
8438             Richard Henderson <rth@redhat.com>
8440         * c-pragma.h (add_weak): Move prototype from here...
8441         * output.h (add_weak): ... to here.
8442         * varasm.c (add_weak): Fix typo.
8443         * config/mips/crti.asm: New file.
8444         * config/mips/crtn.asm: Ditto.
8445         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
8446         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
8447         (INVOKE__main): Ditto.
8448         (INIT_SECTION_ASM_OP): New.
8449         (FINI_SECTION_ASM_OP): Ditto.
8450         (STARTFILE_SPEC): Add crti.
8451         (ENDFILE_SPEC): Add crtn.
8452         * config/mips/elf64.h: Same.
8453         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
8454         Remove.
8455         * config/mips/vxworks.h: Ditto.
8456         * config/mips/t-elf: Support crti and crtn.
8458 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
8460         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
8461         INSN_LIST.
8463 2001-08-28  Richard Henderson  <rth@redhat.com>
8465         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
8466         (one_cmplbi2 splitter): Remove redundant test.
8468 2001-08-28  Dale Johannesen  <dalej@apple.com>
8470         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
8472 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
8474         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
8476 2001-08-28  Stan Shebs  <shebs@apple.com>
8478         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
8479         (UNALIGNED_SHORT_ASM_OP): Define.
8480         (UNALIGNED_INT_ASM_OP): Define.
8482 2001-08-28  Will Cohen  <wcohen@redhat.com>
8484         * config/rs6000/rs6000.md (store_multiple): Correct RTL
8485         generation for first set.
8487 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
8489         * flow.c (redirect_edge_succ_nodup): Return new edge.
8490         (try_simplify_condjump): Use new edge.
8491         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
8493         * cse.c (cse_basic_block): Skip note instructions.
8495 2001-08-27  Richard Henderson  <rth@redhat.com>
8497         * combine.c (combine_simplify_rtx): Don't reverse condition
8498         if there is no reverse for the condition.
8499         (simplify_comparison): Don't simplify subregs from INT to FP.
8501         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
8502         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
8503         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
8504         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
8505         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
8506         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
8508 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
8510         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
8511         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
8512         (pushqi1): New.
8513         (adddi_dilshr32, adddi_dishl32): Only data register can be
8514         source for mem destination.
8516         * expmed.c (store_bit_field): Ignore adjustment to bitpos
8517         and use bitnum to decide about register move.
8519 2001-08-27  Richard Henderson  <rth@redhat.com>
8521         * genattr.c (main): Emit state_t even when not doing scheduling.
8523 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
8524             Richard Henderson  <rth@redhat.com>
8526         * gcse.c (reg_first_set, reg_last_set): Replace with ...
8527         (reg_avail_info, current_bb): ... these.
8528         (oprs_unchanged_p, record_last_reg_set_info): Use them.
8529         (compute_hash_table): Likewise.
8531 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
8533         * flow.c (verify_flow_info): Use checksums to verify edges.
8535 2001-08-27  Richard Henderson  <rth@redhat.com>
8537         * genautomata.c (expand_automata): Always create a description.
8539 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
8541         * optabs.c (expand_binop): Correctly handle the carry in multiword
8542         add/subtract operations.
8544 2001-08-27  Fred Fish  <fnf@be.com>
8546         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
8547         __SIZE_TYPE__.
8549 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
8551         * reload.c (find_reloads_toplev): Back out this change:
8553         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
8555         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
8556         mem if the address is a mode_dependent_address_p.
8558 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
8560         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
8561         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
8562         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
8563         RTL constructions.
8565         * genattr.c (main): New variable num_insn_reservations.  Increase
8566         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
8567         pipeline hazard recognizer interface.
8569         * genattrtab.h: New file.
8571         * genattrtab.c: Include genattrtab.h.
8572         (attr_printf, check_attr_test, make_internal_attr,
8573         make_numeric_value): Move protypes into genattrtab.h.  Define them
8574         as external.
8575         (num_dfa_decls): New global variable.
8576         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
8577         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
8578         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
8579         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
8581         * genautomata.c: New file.
8583         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
8585         * sched-int.h: (curr_state): Add the external definition for
8586         automaton pipeline interface.
8587         (haifa_insn_data): Add comments for members blockage and units.
8589         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8590         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8591         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8592         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8593         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8594         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8595         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
8596         macros.
8597         (TARGET_SCHED): Use the new macros.
8599         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
8600         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
8601         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
8602         dfa_bubble): New members in gcc_target.sched.
8604         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
8605         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
8606         (insn_queue): Redefine it as pointer to array.
8607         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
8608         INSN_QUEUE_SIZE.
8609         (max_insn_queue_index_macro_value): New variable.
8610         (curr_state, dfa_state_size, ready_try): New varaibles for
8611         automaton interface.
8612         (ready_element, ready_remove, max_issue): New function prototypes
8613         for automaton interface.
8614         (choose_ready): New function prototype.
8615         (insn_unit, blockage_range): Add comments.
8616         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
8617         FUNCTION_UNITS_SIZE == 0.
8618         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
8619         actual_hazard, potential_hazard): Add comments.
8620         (insn_cost): Use cost -1 as undefined value.  Remove
8621         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
8622         pipeline interface.
8623         (ready_element, ready_remove): New functions for automaton
8624         interface.
8625         (schedule_insn): Add new code for automaton pipeline interface.
8626         (queue_to_ready): Add new code for automaton pipeline interface.
8627         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
8628         (debug_ready_list): Print newline when the queue is empty.
8629         (max_issue): New function for automaton pipeline interface.
8630         (choose_ready): New function.
8631         (schedule_block): Add new code for automaton pipeline interface.
8632         Print ready list before scheduling each insn.
8633         (sched_init): Add new code for automaton pipeline interface.
8634         Initiate insn cost by -1.
8635         (sched_finish): Free the current automaton state and finalize
8636         automaton pipeline interface.
8638         * sched-rgn.c: Include target.h.
8639         (init_ready_list, new_ready, debug_dependencies): Add new code for
8640         automaton pipeline interface.
8642         * sched-vis.c: Include target.h.
8643         (get_visual_tbl_length): Add code for automaton interface.
8644         (target_units, print_block_visualization):  Add comments.
8646         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
8647         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
8648         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
8649         (getruntime.o, genautomata.o): New entries.
8650         (genattrtab.o): Add new dependency file genattrtab.h.
8651         (genattrtab): Add new dependencies.  Link it with `libm.a'.
8652         (getruntime.o, hashtab.o): New entries for canadian cross.
8654         * doc/md.texi: Description of automaton based model.
8656         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
8657         Add comments.
8658         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
8659         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
8660         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
8661         TARGET_SCHED_DFA_POST_CYCLE_INSN,
8662         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
8663         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
8664         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
8665         hook descriptions.
8666         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
8667         MAX_DFA_ISSUE_RATE): New macro descriptions.
8669         * doc/contrib.texi: Add dfa based scheduler contribution.
8671         * doc/gcc.texi: Add more information about genattrtab.
8673 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
8675         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
8676         an RTL basic block.
8678 2001-08-27  Richard Henderson  <rth@redhat.com>
8680         * function.c (expand_function_end): Don't init arg_pointer_save_area.
8681         (get_arg_pointer_save_area): New.  Create an init it here.
8682         (fix_lexical_addr): Use it.
8683         * function.h: Declare it.
8684         * builtins.c (expand_builtin_setjmp_receiver): Use it.
8685         * stmt.c (expand_nl_goto_receiver): Use it.
8687 2001-08-27  Richard Henderson  <rth@redhat.com>
8689         * final.c (final_scan_insn): Don't enter APP_ON mode for
8690         empty asm strings.
8692         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
8693         alignment for assemble_integer for DW_EH_PE_aligned.
8694         * except.c (output_function_exception_table): Likewise.
8696 2001-08-26  Andreas Jaeger  <aj@suse.de>
8698         * c-tree.h: Add prototyp for c_sizeof_nowarn.
8700 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
8702         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
8704 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
8706         * config/rs6000/rs6000.c (mask_operand): Rewrite without
8707         bit-shifting loop.
8708         (mask64_operand): Likewise.
8709         (rldic_operand): Delete.
8710         (includes_lshift64_p): Delete.
8711         (includes_rldic_lshift_p): New function.
8712         (includes_rldicr_lshift_p): New function.
8713         (print_operand): Don't call rldic_operand in case 'W'.
8714         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
8715         (includes_lshift64_p): Remove.
8716         (includes_rldic_lshift_p): Declare.
8717         (includes_rldicr_lshift_p): Declare.
8718         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
8719         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
8720         Replace match_operand rldic_operand predicate with
8721         const_int_operand.  Replace includes_lshift64_p condition with
8722         includes_rldic_lshift_p.
8723         <ashldi3_internal 64 bit rldicr patterns>: New.
8725 2001-08-27  Andreas Jaeger  <aj@suse.de>
8727         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
8728         * errors.c: Likewise.
8729         * final.c: Likewise.
8730         * dwarf2asm.c: Likewise.
8731         * doprint.c (checkit): Likewise.
8732         * diagnostic.c: Likewise.
8733         * collect2.c: Likewise.
8734         * calls.c: Likewise.
8735         * c-semantics.c (build_stmt): Likewise.
8736         * c-format.c (status_warning): Likewise.
8737         * c-errors.c (pedwarn_c99): Likewise.
8738         * builtins.c (validate_arglist): Likewise.
8739         * config/pj/pj.c (pj_printf): Likewise.
8740         * fix-header.c: Likewise.
8741         * gcc.c: Likewise.
8742         * gcov.c (fnotice): Likewise.
8743         * gensupport.c (message_with_line): Likewise.
8744         * mips-tfile.c: Likewise.
8745         * protoize.c (notice): Likewise.
8746         * read-rtl.c (fatal_with_file_and_line): Likewise.
8747         * rtl-error.c: Likewise.
8748         * tradcpp.c: Likewise.
8749         * tree.c: Likewise.
8750         * cp/tree.c (build_min_nt): Likewise.
8751         (build_min): Likewise.
8752         * cp/lex.c: Likewise.
8753         * cp/errfn.c: Likewise.
8754         * cp/rtti.c (create_pseudo_type_info): Likewise.
8756 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
8758         * df.c (df_uses_record): Return after recording all uses
8759         in ASM_OPERANDS.
8761 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
8763         * df.c (df_insn_modify): Realloc the INSN table here, if
8764         necessary, here, too.
8766 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
8768         * config/mips/mips.c (mips_function_value): Handle complex return
8769         values.
8771 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
8773         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
8774         unshared.
8775         * reload.c (make_memloc): Copy result if it is still
8776         reg_equiv_memory_loc[regno] on return.
8777         (subst_reloads) [ENABLE_CHECKING]: Check that none of
8778         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
8779         reg_equiv_mem are modified by the substitutions.
8781 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
8783         * predict.c (expensive_function_p): New.
8784         * rtl.h (expensive_function_p): Declare.
8785         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
8786         (use_fast_prologue_epilogue): New static variable.
8787         (expand_prologue): Set it; emit short prologues if unset.
8788         (expand_epilogue): Likewise.
8790 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
8792         * config.gcc: Add stormy16-*-elf case.
8793         * config/stormy16/stormy-abi: New file.
8794         * config/stormy16/stormy16-lib2.c: New file.
8795         * config/stormy16/stormy16-protos.h: New file.
8796         * config/stormy16/stormy16.c: New file.
8797         * config/stormy16/stormy16.h: New file.
8798         * config/stormy16/stormy16.md: New file.
8799         * config/stormy16/t-stormy16: New file.
8801 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
8803         * i386.h (no-accumulate-outgoing-args): Use proper mask.
8805 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
8807         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
8808         descriptor members are pointer size, not constant 4.
8809         * config/rs6000/rs6000.md (define_splits): Remove more unused
8810         constraints.
8812 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8814         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
8816 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
8818         * cp/rtti.c (VPARAMS): Fix parameter.
8820 2001-08-24  Zack Weinberg  <zackw@panix.com>
8822         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
8823         to zero.
8824         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
8825         to switch.
8826         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
8827         in if controlling use of insv.
8828         (extract_bit_field): Likewise, for extv and extzv.
8830 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
8832         * i386.md (movcc peep2): Fix load of 0.
8834 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8836         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
8837         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
8839 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
8841         * c-pragma.h: Move weak_syms and weak_decls...
8842         * varasm.c: ...here.  Now static.
8843         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
8844         depend on HANDLE_PRAGMA_WEAK.
8846         * c-common.c (c_alignof, c_alignof_expr): Move here...
8847         * c-typeck.c: ...from here.
8848         * c-tree.h, c-common.h: Adjust.
8850 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
8852         * config/ia64/ia64.c (rws_update): If !pred, set write_count
8853         instead of incrementing it.
8855         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
8856         asm ready, don't try to move them all into the same array element.
8858 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
8860         * function.c (thread_prologue_and_epilogue_insns): Avoid
8861         fallthru flag on edge to exit.
8863         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
8865         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
8866         dead edges.
8868 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
8870         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
8871         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
8872         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
8873         Remove prototype.
8875 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
8877         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
8878         replace "GNU CC" with "GCC".
8880 2001-08-23  Richard Henderson  <rth@redhat.com>
8882         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
8883         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
8884         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
8885         Need GR between FR and not GR_AND_FR.
8886         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
8887         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
8888         AR regs before GR regs.
8889         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
8890         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
8891         (REGISTER_MOVE_COST): Update.
8892         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
8894 2001-08-23  Richard Henderson  <rth@redhat.com>
8896         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
8897         a register class.
8899 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
8901         * reload1.c (emit_reload_insns): Don't look for notes
8902         on a NULL store_insn.
8904 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8906         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
8907         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
8908         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
8909         format specifier warnings.
8910         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
8912 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
8914         * config/i386/i386-protos.h: Correct declaration of
8915         i386_pe_asm_named_section.
8917 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8919         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
8920         variable i.
8921         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
8923 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8925         * cpperror.c (print_location): Don't show _Pragma.
8926         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
8927         and file change callback generation here.
8928         (stack_include_file): Update use of cpp_push_buffer.
8929         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
8930         (struct cpp_buffer): Remove type, pfile members.
8931         * cppinit.c (cpp_handle_option): Use free_chain.
8932         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
8933         (skip_escaped_newlines, get_effective_char, lex_percent): Take
8934         a cpp_reader rather than a cpp_buffer.
8935         (skip_escaped_newlines, get_effective_char, skip_block_comment,
8936         skip_line_comment, parse_string, lex_percent, lex_dot,
8937         _cpp_lex_token): Update accordingly.
8938         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
8939         generation here.
8940         (cpp_push_buffer): Update prototype.
8941         (run_directive): Update use of cpp_push_buffer.
8942         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
8943         handle_assertion): Update use of run_directive.
8944         * cpplib.h (enum cpp_buffer_type): Remove.
8945         (cpp_push_buffer): Update prototype.
8946         * fix-header.c (read_scan_file): Update.
8948 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8950         * gcc.c (struct prefix_list): Change prefix to const char *.
8952 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8954         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
8956 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
8958         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
8959         from a new MEM.
8961         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
8962         a squeezable note.
8963         * rtl.h: Adjust.
8964         * ifcvt.c (dead_or_predicable): Adjust.
8965         * loop.c (find_and_verify_loops): Adjust.
8966         * stmt.c (expand_end_case): Adjust.
8967         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
8968         head and end insn pointers in the basic block, not just local copies.
8969         (merge_blocks_move_predecessor_nojumps): Likewise.
8971 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
8973         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
8974         bitmap.h, builtin-types.def, builtins.c, builtins.def,
8975         c-aux-info.c, c-common.c, c-common.def, c-common.h,
8976         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
8977         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
8978         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
8979         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
8980         conditions.h, config.gcc, configure.frag, configure.in,
8981         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
8982         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
8983         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
8984         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
8985         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
8986         emit-rtl.c, errors.c, errors.h, except.c, except.h,
8987         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
8988         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
8989         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
8990         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
8991         gencheck.c, gencodes.c, genconfig.c, genemit.c,
8992         genextract.c, genflags.c, gengenrtl.c, genmultilib,
8993         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
8994         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
8995         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
8996         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
8997         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
8998         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
8999         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
9000         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
9001         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
9002         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
9003         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
9004         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
9005         params.h, predict.c, predict.def, predict.h, prefix.c,
9006         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
9007         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
9008         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
9009         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
9010         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
9011         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
9012         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
9013         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
9014         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
9015         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
9016         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
9017         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
9018         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
9019         xcoffout.h: replace "GNU CC" with "GCC".
9021 2001-08-21  Richard Henderson  <rth@redhat.com>
9023         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
9024         (final_scan_insn): Consider jump tables data even if we have no
9025         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
9026         ADDR_VEC_ALIGN.
9027         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
9028         (ASM_OUTPUT_CASE_END): Remove.
9029         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
9030         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
9031         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
9033 2001-08-21  Richard Henderson  <rth@redhat.com>
9035         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
9036         at barrier insns.  Emit stop bits before barriers.
9038         * flow.c (flow_find_cross_jump): Don't consider unconditional
9039         return insns for commoning.
9041         * final.c (compute_alignments): Fix typo.
9043         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
9044         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
9045         (store_bit_field): Use mode_for_extraction more places.
9046         (extract_bit_field): Likewise.
9048 2001-08-21  Zack Weinberg  <zackw@panix.com>
9050         * caller-save.c: Don't include insn-codes.h.
9051         (reg_save_code, reg_restore_code): Make arrays of int.
9052         All uses updated to match.
9053         (insert_save, insert_restore): No need to initialize "code"
9054         variable upon declaration.
9055         * Makefile.in: update dependencies; fix typo in clean rule.
9057 2001-08-21  Richard Henderson  <rth@redhat.com>
9059         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
9060         (merge_if_block): Handle fallout from same.
9062 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9064         * builtins.c (type_to_class): Fix typo in last change.
9066 2001-08-21  Richard Henderson  <rth@redhat.com>
9068         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
9069         ia64_asm_output_label.
9071         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
9072         copy of gp while the real gp register contains garbage.
9074 2001-08-21  Zack Weinberg  <zackw@panix.com>
9076         * expmed.c (mode_for_extraction): New function.
9077         (store_bit_field, extract_bit_field): Use it.
9078         * expr.h: Prototype it and provide an enum for its first argument.
9080         * combine.c, function.c, recog.c: Don't include insn-codes.h.
9081         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
9082         and digging through the insn_data tables.
9083         * Makefile.in: Update dependencies.
9085 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9087         * cppfiles.c (stack_include_file): line-map.c now handles include
9088         depth.
9089         (handle_missing_handler): Similarly.
9090         (_cpp_execute_include): Similarly.
9091         (_cpp_pop_file_buffer): Similarly.
9092         * cpphash.h (struct cpp_reader): Remove system_include_depth,
9093         buffer_stack_depth and include_depth.
9094         * cpplib.c (do_include_common): line-map.c now handles include depth.
9095         (cpp_push_buffer): Similarly.
9096         (_cpp_pop_buffer): Similarly.
9097         * cppmacro.c (builtin_macro): Update.
9098         * line-map.c (init_line_maps): Set depth.
9099         (add_line_map): Increment "used" earlier.  Update and use the
9100         include depth.
9101         (trace_include): Use the include depth.
9102         * line-map.h (struct line_maps): New member depth.
9104 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9106         * cppfiles.c (stack_include_file): Don't handle -H here.
9107         * cppinit.c (cpp_start_read): Set include tracing after
9108         cpp_post_options and after stacking the main file.
9109         * line-map.c (trace_include): New.
9110         (init_line_maps, add_line_map): Update.
9111         * line-map.h (struct line_maps): New member trace_includes.
9113 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9115         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
9116         * cppfiles.c (stack_include_file): Only stack a file if there
9117         is something to do.  Return a boolean indicating whether a
9118         buffer was stacked or not.
9119         (_cpp_execute_include): Similarly.
9120         (_cpp_read_file): Similarly.
9121         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
9123 2001-08-21  Sam Steingold  <sds@gnu.org>
9125         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
9126         (RECACHE): keep obufp_before_macroname up to date
9128 2001-08-21  Zack Weinberg  <zackw@panix.com>
9130         * stmt.c: Don't include insn-codes.h.
9131         (expand_end_case): Machine specific logic moved to expr.c.
9132         No need to worry about __builtin_classify_type.
9133         (check_for_full_enumeration_handling, emit_case_nodes):
9134         Kill #if 0 blocks.
9136         * builtins.o (expand_builtin_classify_type): Split up so code
9137         can be shared with fold_builtin_classify_type.
9138         (type_to_class, fold_builtin_classify_type): New functions.
9139         (fold_builtins): Handle __builtin_classify_type.
9141         * expr.c (do_tablejump): Now static.
9142         (case_values_threshold, try_casesi, try_tablejump): New;
9143         code mostly from stmt.c (expand_end_case).
9144         (expr.h): Update prototypes.
9146         * Makefile.in (stmt.o): Update dependencies.
9148 2001-08-21  Will Cohen  <wcohen@redhat.com>
9150         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
9151         declaration of variable i.
9152         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
9153         declaration of variable i.
9155 2001-08-21  Richard Henderson  <rth@redhat.com>
9157         * crtstuff.c: Fix thinko last change.  Move list tails to start
9158         of CRT_END section.  Tidy ifdefs.
9159         (__EH_FRAME_BEGIN__): Always static for ELF.
9160         (__do_global_ctors_1): Rename from __frame_dummy.
9161         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
9162         name change; don't hide __EH_FRAME_BEGIN__.
9164 2001-08-21  Richard Henderson  <rth@redhat.com>
9166         * gdbinit.in: Move break on exit after break on fancy_abort.
9168         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
9169         sized types.
9171 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9173         * cpphash.h (_cpp_push_next_buffer): New.
9174         * cppinit.c (do_includes): Remove.
9175         (push_include, free_chain, _cpp_push_next_buffer): New.
9176         (cpp_start_read): Use them to rework command line option handling.
9177         (cpp_handle_option): Combine handling of -include and -imacros.
9178         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
9179         appropriate.  Always insert missing \n at EOF.
9180         * cpplib.c (start_directive): Get the directive position right.
9181         * cppmain.c (cb_file_change): Always print the first line, unless
9182         preprocessed.
9184 2001-08-20  Andreas Jaeger  <aj@suse.de>
9186         * profile.c (compute_branch_probabilities): Remove extra new-line
9187         in error message.
9188         * flow.c (verify_flow_info): Likewise.
9190 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
9192         * basic-block.h (basic_block): Add new field 'flags'.
9193         (BB_REACHABLE): Define.
9194         (expunge_block): Declare.
9195         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
9196         (EXIT_BLOCK_PTR): Ditto.
9197         (expunge_block): Remove static declaration.
9198         (cleanup_cfg): Clear bb->aux on every basic block.
9199         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
9200         computing reachability.
9201         (delete_unreachable_blocks): Delete block b if b->flags has
9202         BB_REACHABLE unset.
9204 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
9206         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
9208 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9210         * sparc.c (sparc_variable_issue): Fix typo in last change.
9212 2001-08-20  Richard Henderson  <rth@redhat.com>
9214         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
9216 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9218         * pa.h (RETURN_IN_MEMORY): Improve comment.
9220 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
9222         * doc/invoke.texi (Profiling options): Clarify the interactions
9223         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
9225 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
9227         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
9228         command.
9230 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9232         * gcc.c (make_relative_prefix): Allocate a sufficiently large
9233         buffer.
9235 2001-08-20  Richard Henderson  <rth@redhat.com>
9237         * final.c (end_final): Fix typo last change.
9239 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9241         * cppinit.c (init_standard_includes): The returned buffer
9242         is already malloc-ed.
9243         * gcc.c (add_prefix): Similarly.
9244         * prefix.c (translate_name): Update to support clear buffer
9245         ownership rules.
9246         (update_path): Similarly.  Be sure to free any newly allocated
9247         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
9248         (tr): New function.
9249         * prefix.h (update_path): Update prototype and document.
9250         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
9251         up and update to new buffer ownership rules.
9252         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
9254 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
9256         * final.c (compute_alignments): New function.
9257         (init_insn_lengths): Do not care label_align.
9258         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
9259         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
9260         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
9261         (shorted_branches): Realloc label_align array; do
9262         not call init_insn_lengths; Do not care about loop alignments.
9263         * output.h (compute_alignments): Declare.
9264         * toplev.c (rest_of_compilation): Call compute_alignments.
9265         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
9267         * predict.c (block_info_def): Add npredecesors, remove nvisited;
9268         change visited to tovisit.
9269         (propagate_freq): Use faster traversing algorithm.
9270         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
9271         to tovisit; reverse meaning.
9273         * predict.c (struct block_info_def): Remove nvisited.
9274         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
9275         (estimate_bb_frequencies): Call mark_dfs_back_edges.
9277 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
9279         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
9280         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
9281         (TARGET_FUSED_MADD): New.
9282         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
9283         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
9284         the multiply-add instructions.
9286 2001-08-19  Richard Henderson  <rth@redhat.com>
9288         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
9289         is aligned to pointer size.
9291 2001-08-19  Richard Henderson  <rth@redhat.com>
9293         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
9294         display markers during final schedule.
9296 2001-08-19  Richard Henderson  <rth@redhat.com>
9298         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
9300 2001-08-19  Richard Henderson  <rth@redhat.com>
9302         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
9303         in the same string.
9304         (ASM_NAME_TO_STRING): Remove.
9305         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
9306         in the same string.  Remove support for expressions.
9308 2001-08-19  Richard Henderson  <rth@redhat.com>
9310         * config/i386/i386.md (tablejump): Make an expander; handle
9311         pic relative addressing here.
9312         (tablejump_1): Rename from tablejump_pic.
9313         (casesi): Remove.
9315 2001-08-19  Richard Henderson  <rth@redhat.com>
9317         * regclass.c (fix_register): Fix typo.
9319 2001-08-18  Richard Henderson  <rth@redhat.com>
9321         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
9322         (struct _Unwind_Context): Expand br_loc to hold it.
9323         (uw_frame_state_for): Handle leaf functions better.
9324         (uw_update_reg_address): Update for br_loc change.
9326 2001-08-18  Richard Henderson  <rth@redhat.com>
9328         * crtstuff.c: Move list heads before code that uses them.
9329         (__JCR_LIST__): Remove initial null.
9330         (frame_dummy, __frame_dummy): Do java registration here ...
9331         (__do_global_ctors_aux): ... not here.
9333         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
9334         (__do_global_dtors_aux): Update to match.
9335         (__JCR_LIST__, __do_jv_register_classes): New.
9336         (.init): Call it.
9337         * config/ia64/crtend.asm (__JCR_END__): New.
9338         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
9339         instead of an indirect LTOFF22 reloc.
9341 2001-08-18  Richard Henderson  <rth@redhat.com>
9343         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
9344         * regclass.c (init_reg_sets_1): Fix typo.
9345         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
9346         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
9347         (ia64_compute_frame_size): Make ar.unat live when in use.
9348         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
9349         for ar.pfs; remove ar.unat handling.
9350         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
9351         call-saved.
9352         (PREDICATE_CODES): Add ar_pfs_reg_operand.
9353         * config/ia64/ia64-protos.h: Update decls.
9354         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
9355         (sibcall_pic): Likewise.
9357 2001-08-18  Richard Henderson  <rth@redhat.com>
9359         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
9360         pred_rel_mutex when searching for insn_group_barrier.
9361         * config/ia64/ia64.md (cycle_display): Combine the expander
9362         and insn patterns.
9364         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
9365         bit before asm as needed.
9367 2001-08-18  Richard Henderson  <rth@redhat.com>
9369         * timevar.def (TV_MACH_DEP): New.
9370         * toplev.c (rest_of_compilation): Use it.
9371         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
9373 2001-08-18  Zack Weinberg  <zackw@panix.com>
9375         * unwind-dw2.c (execute_stack_op): Add default aborts to
9376         the inner switches to prevent warnings.
9378 2001-08-18  Richard Henderson  <rth@redhat.com>
9380         * timevar.h (struct timevar_time_def): Change element type to float.
9381         (ticks_to_msec, clocks_to_msec): Likewise.
9382         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
9383         (get_time): Likewise.
9384         (timevar_print): Adjust zero check and printing to match.
9386 2001-08-18  Zack Weinberg  <zackw@panix.com>
9388         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
9389         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
9390         Eliminate overfull or underfull hboxes.
9392 2001-08-18  Zack Weinberg  <zackw@panix.com>
9394         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9396 2001-08-18  Zack Weinberg  <zackw@panix.com>
9398         * haifa-sched.c: Convert to target hooks.  Macros replaced
9399         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
9400         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
9401         MD_SCHED_FINISH, and HAVE_cycle_display.
9402         * target-def.h (TARGET_SCHED_ADJUST_COST,
9403         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
9404         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
9405         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
9406         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
9407         New hook #defines to be overridden.
9408         (TARGET_SCHED): Bring them all together.
9409         (TARGET_INITIALIZER): Update.
9410         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
9411         instead of 'struct rtx_def *' throughout.
9412         (struct sched): New set of hooks for the scheduler.
9413         * Makefile.in (haifa-sched.o): Depend on target.h.
9414         * doc/tm.texi: Document the new scheduler hooks, together in
9415         their own section, instead of scattered around.
9416         Fix a bunch of underfull/overfull hboxes.
9418         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
9419         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
9420         sparc.h: Don't define any of the old scheduler macros.
9422         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
9423         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
9424         sparc.c: Create hook functions from code extracted from
9425         corresponding target header, or make existing hooks static, as
9426         appropriate.  Set the appropriate entries in targetm.
9428         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
9429         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
9430         rs6000-protos.h, s390-protos.h, sparc-protos.h:
9431         Remove prototypes for functions which are now static.
9433         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
9434         related gunk; the Haifa scheduler is now the only choice.
9436 2001-08-18  Zack Weinberg  <zackw@panix.com>
9438         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
9439         * genopinit.c: Put floating point divide insns in sdiv_optab.
9440         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
9441         * config/gofast.h, config/c4x/c4x.h,
9442         config/ia64/hpux_longdouble.h, config/mips/mips.h,
9443         config/pa/long_double.h, config/rs6000/sysv4.h,
9444         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
9445         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
9446         (init_optabs): Use init_optabv for overflow-trapping optabs.
9447         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
9448         cmp_optab RTX codes so have_insn_for can find them.
9450         * optabs.c (expand_simple_binop, expand_simple_unop,
9451         have_insn_for, gen_sub3_insn): New interfaces.
9452         * expr.h: Prototype new functions.
9453         (enum optab_methods): Move here from optabs.h.
9455         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
9456         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
9457         Use new functions instead of working directly with optabs.
9458         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
9459         unroll.c: Don't include optabs.h.
9460         * caller-save.c, combine.c, function.c, stmt.c: Just include
9461         insn-codes.h, not optabs.h.
9462         * Makefile.in: Update dependencies.
9464         * combine.c (make_compound_operation, simplify_comparison):
9465         Fix typos testing for this or that instruction.
9467 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
9469         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
9470         generating libgcc.a.
9472 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9474         * except.c (TYPE_HASH): Delete.
9476         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
9477         HOST_WIDE_INT.
9479         * tree.c (TYPE_HASH): Delete.
9481         * tree.h (TYPE_HASH): Define.
9483 2001-08-18  Graham Stott  <grahams@redhat.com>
9485         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
9486         define_split.
9487         (adddi3_internal_2+2): Likewise.
9488         (eh_set_lr_di+1): Likewise.
9490 2001-08-17  Richard Henderson  <rth@redhat.com>
9492         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9493         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
9494         * dwarf2asm.c: ... here.
9495         * dwarfout.c: Remove them.
9497         * varasm.c (assemble_integer): Add align parameter.
9498         (assemble_real, output_constant, output_constructor): Likewise.
9499         * output.h: Update decls.
9500         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
9501         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
9502         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
9503         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
9504         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
9505         Update all callers.
9507         * final.c (end_final): Abort profile block generation if we
9508         haven't layed it out properly.
9509         * output.h (assemble_eh_integer): Remove stale decl.
9510         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
9511         (min_align): New.
9512         (assemble_integer): Handle unaligned data.
9513         (assemble_real): Abort on unaligned data.
9514         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
9515         anything useful.
9516         (default_dtor_section_asm_out_destructor): Use assemble_align.
9517         (default_named_section_asm_out_constructor): Likewise.
9518         (default_ctor_section_asm_out_constructor): Likewise.
9519         * config/darwin.c (machopic_asm_out_constructor): Likewise.
9520         (machopic_asm_out_destructor): Likewise.
9521         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
9522         (nextstep_asm_out_destructor): Likewise.
9523         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
9524         (vms_asm_out_destructor): Likewise.
9526 2001-08-17  Richard Henderson  <rth@redhat.com>
9528         * config/mips/iris6.h (TARGET_IRIX6): New.
9529         (current_section_name, current_section_flags): New.
9530         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
9531         (MAX_OFILE_ALIGNMENT): New.
9532         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
9533         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
9534         (copy_file_data): Split out from
9535         (mips_asm_file_end): ... here.
9536         (mips_asm_file_start): Remove extra .section directive.  Use
9537         tmpfile instead of mips_make_temp_file.
9538         (mips_unique_section): Use const char * as needed for warnings.
9539         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
9540         re-add align parameter.
9541         (iris6_asm_named_section): New.
9542         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
9543         (iris6_asm_output_align, iris6_section_align_1): New.
9544         (iris6_asm_file_start, iris6_asm_file_end): New.
9545         * config/mips/mips-protos.h: Update decls.
9547 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
9549         * doc/install.texi (Install GCC): Add links to build status pages.
9550         (Specific): Ditto.
9551         (Final install): Ditto; request updates for specific info
9553 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9555         * cpperror.c (print_location):  Don't take a file name; use the
9556         line map instead.
9557         (_cpp_begin_message): Similarly.
9558         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
9559         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
9560         (cpp_pedwarn_with_file_and_line): Remove.
9561         * cppfiles.c (stack_include_file): Update; set filename to stdin
9562         here when appropriate.
9563         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
9564         (_cpp_begin_message): Don't take a file name.
9565         * cppinit.c: Add comment.
9566         * cpplex.c: Fix end-of-directive indicator.
9567         * cpplib.c: Don't include intl.h.
9568         (run_directive, do_diagnostic): Update.
9569         (do_line): Update to not use nominal_fname.
9570         (cpp_push_buffer): Don't take a filename.
9571         * cpplib.h (struct ht): Remove.
9572         (cpp_push_buffer): Don't take a filename.
9573         (cpp_pedwarn_with_file_and_line): Remove.
9574         * cppmacro.c (struct cpp_macro): Remove file.
9575         (builtin_macro): Update.
9576         (_cpp_create_definition): Update.
9577         * cppmain.c: Correct comment.
9578         * fix-header.c (read_scan_file): Update.
9580 2001-08-17  Kazu Hirata  <kazu@hxi.com>
9582         * sbitmap.c: Fix comment formatting.
9583         * sched-deps.c: Likewise.
9584         * sibcall.c: Likewise.
9585         * simplify-rtx.c: Likewise.
9586         * ssa.c: Likewise.
9587         * ssa-ccp.c: Likewise.
9588         * stor-layout.c: Likewise.
9589         * timevar.c: Likewise.
9590         * toplev.c: Likewise.
9591         * unwind-dw2.c: Likewise.
9592         * unwind-dw2-fde.c: Likewise.
9593         * varasm.c: Likewise.
9595 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9597         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
9598         or larger than an integer in memory.
9600 2001-08-17  Zack Weinberg  <zackw@panix.com>
9602         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
9603         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
9604         * rtl.h: Don't forward-declare union tree_node here.  Don't
9605         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
9606         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9607         and tree respectively.
9608         * tree.h: Don't forward-declare struct rtx_def here.  Don't
9609         typedef tree here.  Change all uses of struct rtx_def *,
9610         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
9611         and tree respectively.
9613 2001-08-17  Richard Henderson  <rth@redhat.com>
9615         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
9616         config/mips/openbsd.h: Fix typos last change.
9618 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9620         * doc/invoke.texi (Optimize Options): The default for
9621         -finline-limit is 600.
9623 2001-08-17  Richard Henderson  <rth@redhat.com>
9625         * varasm.c (text_section): Allow TEXT_SECTION to override the
9626         printing of TEXT_SECTION_ASM_OP.
9627         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
9628         (DATA_SECTION, BSS_SECTION): Remove.
9629         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
9630         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
9631         Rename from s/_NAME//.
9632         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
9633         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
9634         (TEXT_SECTION): ... here.  New.
9635         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
9636         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
9637         * config/mips/openbsd.h: Likewise.
9638         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
9639         (mips_asm_file_end): Likewise test.
9640         (mips_output_function_epilogue): Likewise.  Switch back to data
9641         section after emitting the function.
9643         * doc/tm.texi (Sections): Document TEXT_SECTION.
9645 2001-08-17  Richard Henderson  <rth@redhat.com>
9647         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
9648         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
9650 2001-08-17  Richard Henderson  <rth@redhat.com>
9652         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
9653         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
9654         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
9655         Add aligned attribute.
9657 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
9659         * config/sh/sh.md: Add modes to unspecs in first insn to match
9660         those in the second.
9662         * Makefile.in: Fix collect2 copy for Cygwin.
9664 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
9666         Install the proper patch.
9667         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
9668         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
9669         (expand_function_start): Likewise.
9670         * stmt.c (expand_decl): Likewise.
9671         * varasm.c (make_decl_rtx): Likewise.
9673 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9675         * final.c: Undo my previous accidental checkin.
9676         * output.h: Likewise.
9677         * tm.texi: Likewise.
9679 2001-08-16  Richard Henderson  <rth@redhat.com>
9681         * varasm.c (named_section_flags): Remove align parameter.
9682         * varasm.c, dwarf2out.c: Update all callers.
9683         * output.h: Update prototypes.
9685         * target.h (target.asm_out.named_section): Remove align parameter.
9686         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
9687         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
9688         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
9689         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
9690         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
9692         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
9693         (get_named_section_flags, set_named_section_flags): New.
9694         (named_section_flags): Use them.
9695         (named_section): Do decl vs section flags check here...
9696         (default_section_type_flags): ... not here.
9697         (init_varasm_once): Create in_named_htab.
9698         (resolve_unique_section): Mark reloc unused.
9700 2001-08-16  Richard Henderson  <rth@redhat.com>
9702         * varasm.c (force_const_mem): Keep pool alignment in bits.
9703         (output_constant_pool): Use assemble_align.
9705 2001-08-16  Zack Weinberg  <zackw@panix.com>
9707         * doc/tm.texi: Remove extra @table command.
9709 2001-08-16  Zack Weinberg  <zackw@panix.com>
9711         * final.c (shorten_branches): Clear the end of the label_align
9712         array only if we made it larger.  Break up messy expressions
9713         for clarity.
9715         * diagnostic.c (internal_error): Check for error recursion
9716         before doing ICE suppression.
9718         * timevar.c: Timing variables now count in milliseconds.
9719         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
9720         (get_time): Not here.
9721         (timevar_print): Don't print any timer whose user, cpu, and
9722         wall times are all zero as displayed.
9723         * timevar.h: Update comment aboout units.  Make timevar
9724         counters unsigned.
9726 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
9728         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
9729         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
9730         (expand_function_start): Likewise.
9731         * stmt.c (expand_decl): Likewise.
9732         * varasm.c (make_decl_rtx): Likewise.
9734 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
9736         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
9737         (finalize_record_size): Don't set TYPE_USER_ALIGN.
9739 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9741         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
9742         variables.
9744 2001-08-16  Andreas Jaeger  <aj@suse.de>
9746         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
9747         prototype.
9749 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
9751         * rtl.h (only_sets_cc0_p): New prototype.
9752         * jump.c (sets_cc0_p): Handle INSN.
9753         (only_sets_cc0_p): New function.
9754         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
9755         (tidy_fallthru_edge): Likewise.
9756         * integrate.c (copy_insn_list): Likewise.
9757         * unroll.c (unroll_loop): Likewise.
9758         (copy_loop_body): Likewise.
9760 2001-08-15  Jason Eckhardt  <jle@redhat.com>
9762         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
9764 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
9766         * predict.c (struct block_info_def): Remove nvisited.
9767         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
9768         (estimate_bb_frequencies): Call mark_dfs_back_edges.
9770         * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
9771         (ix86_adjust_cost): Teach scheduler that latency to load operand can
9772         be masked.
9774 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
9776         * predict.def: Update hitrates.
9778 2001-08-15  Richard Henderson  <rth@redhat.com>
9780         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
9782 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
9784         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
9785         note from its associated jump.
9787 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
9789         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
9790         also on 64-bit s390x targets.
9792 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
9794         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
9795         function.
9796         (arm_expand_prologue): Handled nested functions which take a
9797         variable argument list.
9798         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
9799         macro with an invocation of
9800         arm_compute_initial_elimination_offset.
9801         * config/arm/arm-protos.h: Prototype
9802         arm_compute_initial_elimination_offset.
9804 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9806         * doc/install.texi (Specific, avr): Fix markup.
9807         (Specific, c4x): Ditto.
9809 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9811         * predict.c (dump_prediction): Change `bool' parameter to `int'.
9813 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
9815         * Makefile.in (OBJS): Add rtl-error.o
9816         (rtl-error.o): New rule.
9817         (diagnostic.o): Adjust dependency.
9818         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
9819         error_for_asm, _fatal_insn, _fatal_insn_not_found,
9820         warning_for_asm): Move to...
9821         rtl-error.c: ...here.  New file.
9823 2001-08-14  Richard Henderson  <rth@redhat.com>
9825         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
9826         if USING_SJLJ_EXCEPTIONS.
9828 2001-08-14  Steve Ellcey <sje@cup.hp.com>
9830         * tlink.c (scan_linker_output): Check string for unsatisfied in
9831         addition to undefined and unresolved.
9833 2001-08-14  Graham Stott  <grahams@redhat.com>
9835         * libgcc2.c (*): Replace EH_FRAME_SECTION with
9836         EH_FRAME_SECTION_NAME.
9838 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
9840         * genattrtab.c (simplify_test_exp_in_temp): New function.
9841         (simplify_test_exp): Avoid explicit use of temporary obstack.
9842         (simplify_cond, insert_right_side, evaluate_eq_attr,
9843         simplify_and_tree, simplify_or_tree, eliminate_known_true):
9844         Use simplify_test_exp_in_temp.
9845         (optimize_attrs): Iterate until expression stabilizes.
9847 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
9849         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
9850         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
9852 2001-08-13  Richard Henderson  <rth@redhat.com>
9854         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
9855         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
9856         * config/arm/conix-elf.h: Likewise.
9858 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
9860         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
9861         in gcc.c.
9862         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
9864         * gcse.c (hash_scan_set): Expressions that are set as part of
9865         jump instructions are not available.
9867 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
9869         * config/s390/s390.c (print_operand, s390_function_prologue,
9870         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
9872 2001-08-13  Richard Henderson  <rth@redhat.com>
9874         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
9875         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
9876         * doc/tm.texi (Exception Region Output): Document it.
9878 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
9880         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
9881         DWARF2 instead of stabs by default.
9883 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
9885         * config/rs6000/rs6000.c: Include optabs.h.
9887 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
9889         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
9890         save/restore routines.
9891         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
9893 2001-08-13  Andreas Jaeger  <aj@suse.de>
9895         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
9896         the english is correct.
9898 2001-08-13  Zack Weinberg  <zackw@panix.com>
9900         * expr.h: Split out optab- and libfunc-related code to...
9901         * optabs.h, libfuncs.h: ... these new headers.
9903         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
9904         (OPTABS_H): New.
9905         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
9906         dependencies.
9907         * mkconfig.sh: Don't include insn-codes.h from config.h.
9909         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
9910         enum insn_code is available.  Move reload_in_optab and
9911         reload_out_optab array declarations to optabs.h.
9912         * regmove.c (gen_add3_insn): Move to optabs.c, export from
9913         there, prototype in expr.h.
9914         * gencodes.c: Cleanup: zap global variables, don't use
9915         printf where puts will do, don't bother defining MAX_INSN_CODE
9916         which nothing uses, let CODE_FOR_nothing get its value implicitly.
9918         * genemit.c, genopinit.c: Include optabs.h in generated file.
9919         * genoutput.c: Include insn-codes.h in generated file.
9920         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
9921         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
9922         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
9923         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
9924         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
9925         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
9926         Include optabs.h.
9927         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
9928         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
9929         config/m88k/m88k.c, config/sparc/sparc.c:
9930         Include libfuncs.h.
9931         * reload.c: Include expr.h and optabs.h before reload.h.
9932         * config/alpha/alpha.c: Include tree.h before reload.h.
9933         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
9934         and reload.h in that order.
9935         * config/sparc/sparc.c: Include debug.h.
9936         * recog.c: Include insn-codes.h.
9938 2001-08-13  Andreas Jaeger  <aj@suse.de>
9940         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
9941         s390*linux.
9943 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
9945         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
9946         * gcc.c (init_spec): Fix typo in comment.
9947         * varasm.c (data_section): Fix typo in comment.
9949 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
9951         * predict.c (dump_prediction): New argument "USED".
9952         (combine_predictions_for_insn): Determine the used heuristics,
9953         output the case no heuristic applied.
9954         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
9956 2001-08-13  Andreas Jaeger  <aj@suse.de>
9958         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
9959         register %rip.
9961 2001-08-13  Kazu Hirata  <kazu@hxi.com>
9963         * jump.c: Fix formatting.
9965 2001-08-13  Kazu Hirata  <kazu@hxi.com>
9967         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
9968         length.
9970 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
9972         * loop.c (check_dbra_loop): Use condjump_label to compute
9973         jump_label.
9975         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
9976         to better document the files they're in.
9978 2001-08-12  Zack Weinberg  <zackw@panix.com>
9980         * recog.h (struct insn_operand_data): Shrink 'mode' field
9981         to 16 bits.
9983 2001-08-12  Kazu Hirata  <kazu@hxi.com>
9985         * gcc.c: Fix comment formatting.
9986         * gccspec.c: Likewise.
9987         * gcov.c: Likewise.
9988         * gcse.c: Likewise.
9989         * genemit.c: Likewise.
9990         * gengenrtl.c: Likewise.
9991         * genrecog.c: Likewise.
9992         * gensupport.c: Likewise.
9993         * ggc-page.c: Likewise.
9994         * global.c: Likewise.
9995         * graph.c: Likewise.
9996         * ifcvt.c: Likewise.
9997         * integrate.c: Likewise.
9998         * lcm.c: Likewise.
9999         * libgcc2.c: Likewise.
10000         * loop.c: Likewise.
10001         * mbchar.c: Likewise.
10002         * optabs.c: Likewise.
10003         * predict.c: Likewise.
10004         * prefix.c: Likewise.
10005         * profile.c: Likewise.
10006         * protoize.c: Likewise.
10007         * real.c: Likewise.
10008         * recog.c: Likewise.
10009         * regclass.c: Likewise.
10010         * regmove.c: Likewise.
10011         * reg-stack.c: Likewise.
10012         * reload1.c: Likewise.
10013         * resource.c: Likewise.
10014         * rtlanal.c: Likewise.
10015         * rtl.c: Likewise.
10017 2001-08-12  Kazu Hirata  <kazu@hxi.com>
10019         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
10020         a tree representing a constant is passed to the macro.
10022 2001-08-12  Richard Henderson  <rth@redhat.com>
10024         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
10025         (rs6000_elf_asm_out_destructor): New.
10026         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
10027         (DTORS_SECTION_ASM_OP): Remove.
10028         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10029         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
10031 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
10033         Revert:
10034         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10035         * gcc.c (set_collect_gcc_options): New function, split out from
10036         main.
10037         Ignore elided switches.
10038         (do_spec_1): Invoke before executing command.
10039         (set_input): Export.
10040         Move declaration ...
10041         * gcc.h (set_input): ... here.
10042         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
10043         file.
10045 2001-08-12  Richard Henderson  <rth@redhat.com>
10047         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
10048         thinko wrt TARGET_RELOCATABLE.
10050 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10052         * fix-header.c (cb_file_change): Update prototype.
10054 2001-08-11  Zack Weinberg  <zackw@panix.com>
10056         * toplev.c (set_float_handler): Make static.
10057         * toplev.h: Don't prototype set_float_handler.
10059         * simplify-rtx.c: Don't include setjmp.h.
10060         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
10061         New functions.
10062         (simplify_unary_operation, simplify_binary_operation): Use them,
10063         via do_float_handler.
10065         * fold-const.c: Don't include setjmp.h.
10066         (exact_real_inverse_1): New function.
10067         (exact_real_inverse): Use it, via do_float_handler.
10069         * varasm.c: Don't include setjmp.h.
10070         (assemble_real_1): New function.
10071         (assemble_real): Use it, via do_float_handler.
10072         Call internal_error if we get a trap here.
10074         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
10075         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
10077 2001-08-11  Zack Weinberg  <zackw@panix.com>
10079         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
10080         STACK_BOUNDARY if not already defined.
10082         * calls.c, function.c, reload1.c, explow.c: Don't default
10083         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
10084         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
10086         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
10087         to run-time test.
10089         * doc/tm.texi: Document that STACK_BOUNDARY is required;
10090         clarify difference between it and PREFERRED_STACK_BOUNDARY.
10092 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10094         * cppmacro.c (enter_macro_context): Push macro expansions even
10095         if empty.
10097 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10099         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
10100         (rs6000_elf_section_type_flags): Actually return a value.
10102 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
10104         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
10105         Clean up code: add missing comments and prototypes, fix warnings,
10106         remove obsolete code, fix spacing to conform to coding style.
10108 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
10110         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
10111         and TARGET_ASM_CLOSE_PAREN.
10112         (regclass_map): CC register belongs to class NO_REGS.
10113         (legitimize_pic_address): Don't generate unnecessary moves
10114         (to avoid confusing loop optimization).
10115         (check_and_change_labels): Replace jump_long by indirect_jump.
10116         (s390_final_chunkify): Don't start a new literal pool on section
10117         switch in 64-bit code.
10118         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
10120         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
10121         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
10122         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
10123         modes correctly.
10124         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
10125         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
10126         (CONST_COSTS): Fixed incorrect costs.
10128         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
10129         Use emit_jump instead of emit_jump_insn (gen_jump).
10130         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
10131         (to avoid confusing flow analysis).
10132         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
10133         (casesi, casesi_jump): New.
10134         (jump_long): Removed.  Functionality merged into indirect_jump.
10135         (indirect_jump): Accept address_operand, not just register_operand.
10136         (cjump_long, icjump_long): Use same logic as indirect_jump.
10137         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
10138         Fixed broken setjmp/longjmp handling.
10139         (do_builtin_setjmp_setup): Removed.
10141         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
10142         broken GNU as versions that don't accept .quad with large
10143         negative values.  Use hexadecimal output instead.
10144         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
10145         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
10146         FUNCTION_EPILOGUE): Removed.  Now in targetm.
10148         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
10150         * config/s390/fixdfdi.h: Add missing copyright statement.
10151         Fix type conflicts on 64-bit.  Add missing SFmode routines.
10153         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
10154         email address.
10156 2001-08-11  Richard Henderson  <rth@redhat.com>
10158         * rtl.h (REG_EH_RETHROW): Remove.
10159         * rtl.c (reg_note_name): Update.
10160         * combine.c (distribute_notes): Don't check for it.
10162 2001-08-11  Richard Henderson  <rth@redhat.com>
10164         * combine.c (distribute_notes): Place REG_SETJMP.
10166 2001-08-11  Richard Henderson  <rth@redhat.com>
10168         * doc/extend.texi (Arrays and pointers implementation): Discourage
10169         relying on sign-extension of pointers.
10171 2001-08-11  H.J. Lu <hjl@gnu.org>
10173         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
10174         in_dtors.
10175         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
10176         RDATA_SECTION_ASM_OP.
10178 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10180         * doc/install.texi (Specific, c4x): Fix cross-reference to the
10181         main manual to work both for info and HTML versions.
10183 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10184             Matt Kraai <kraai@alumni.carnegiemellon.edu>
10186         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
10187         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
10188         (struct cpp_pool): New member first.
10189         * cppinit.c (append_include_chain): Plug memory leaks.
10190         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
10191         Allocate pragma structures from the (aligned) macro pool to
10192         avoid leaking memory.
10193         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
10194         so we don't leak memory.
10195         * hashtable.c (ht_destroy): New.
10196         * hashtable.h (ht_destroy): New.
10198 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10199             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10201         * c-lex.c (map): Make const.
10202         (cb_file_change): Update for callback passing a line map.
10203         Don't assume we have a previous map.  Remove sanity check
10204         about popping too many files.
10205         * cpperror.c (print_location): Make map const.
10206         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
10207         (cpp_make_system_header): Similarly.
10208         (search_from): Similarly.
10209         (_cpp_execute_include): Don't remember where we came from.
10210         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
10211         (struct cpp_reader): Make map const.
10212         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
10213         * cpplib.c (do_line): Update; line maps now hold sysp.
10214         (cpp_push_buffer): Similarly.
10215         (_cpp_do_file_change): Similarly; callback with map instead.
10216         (cpp_get_line_maps): Constify return value.
10217         (_cpp_pop_buffer): Update.
10218         * cpplib.h (struct cpp_file_change): Remove.
10219         (struct cpp_callbacks): Update.
10220         (cpp_get_line_maps): Constify return value.
10221         * cppmacro.c (_cpp_create_definition): Update.
10222         * cppmain.c (struct printer): Constify map.
10223         (maybe_print_line): Similarly.
10224         (print_line): Similarly.  Deduce flags 1 and 2 here.
10225         (cb_file_change): Update.
10226         * line-map.c (free_line_maps): Warn regardless.
10227         (add_line_map): Return pointer to const.  When passed NULL to_file
10228         with LC_LEAVE, use the obvious values for the return point so the
10229         caller doesn't have to figure them out.
10230         (lookup_line): Return pointer to const.
10231         (print_containing_files): Take pointer to const.
10232         * line-map.h (struct line_map): New members reason, sysp.
10233         (add_line_map): Return pointer to const.
10234         (lookup_line): Similarly.
10235         (print_containing_files): Take pointer to const.
10237 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
10238             Richard Henderson  <rth@redhat.com>
10240         * regmove.c (regmove_optimize): Avoid setting a register twice in
10241         a parallel set.
10243 2001-08-10  Richard Henderson  <rth@redhat.com>
10245         * doc/extend.texi (Arrays and pointers implementation): Document
10246         behavior of pointer/integer conversion.
10248 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
10250         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
10252 2001-08-10  Richard Henderson  <rth@redhat.com>
10254         * doc/extend.texi (C Implementation): New chapter.
10255         * doc/gcc.texi (Top): Link it in.
10257 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
10259         * doc/install.texi (Specific): Fix CVS merge botch.
10261 2001-08-10  Richard Henderson  <rth@redhat.com>
10263         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
10264         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
10266 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
10268         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
10269         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
10270         this macro is now required.
10272         * cselib.c (cselib_process_insn), flow.c (propagate_block),
10273         loop.c (find_and_verify_loops), reload.c (reload): Check
10274         for rtx code of CALL_INSN, not CALL, when deciding if we
10275         need to check for REG_SETJMP note.
10277         * gcse.c (compute_hash_table, compute_store_table): Update
10278         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
10279         logic.
10281         * config/avr/avr.c: Fix typo.
10282         * config/convex/convex.c (expand_movstr): Use adjust_address.
10283         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
10284         variable.
10285         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
10286         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
10287         Fix typo.
10288         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
10289         Do define STACK_BOUNDARY.
10290         * config/i370/i370.c: Include expr.h.
10291         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
10292         config/pa/som.h, config/v850/v850.h: Take in_ctors and
10293         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
10294         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
10295         * config/m88k/m88k.c: Include c-tree.h after expr.h.
10296         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
10297         * config/romp/romp.c: Include expr.h after tree.h.
10298         Include toplev.h.
10299         (output_fpop): Use xmalloc, not oballoc.
10300         * config/we32k/we32k.c: Include expr.h.
10302 2001-08-10  Kazu Hirata  <kazu@hxi.com>
10304         * config/h8300/h8300.h: Fix formatting.
10306 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
10308         * c-common.h (RETURN_NULLIFIED_P): Lose.
10309         * c-semantics.c (genrtl_return_stmt): Don't check it.
10311 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10313         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
10314         (mips_annotate_frame_insn): New function.
10315         (mips_emit_frame_related_store): New function.
10316         (save_restore_insns): Don't mark instructions that set up the base
10317         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
10318         the store instructions instead.
10319         (mips_expand_prologue): If the stack size is moved into a temporary
10320         register, do not mark that move as frame-related.  Add a
10321         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
10323 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10325         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
10326         stack slot as unchanging if current_function_calls_eh_return.
10328 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
10330         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
10331         access the second half of the TFmode scratch operand.
10333 2001-08-10  Anthony Green  <green@redhat.com>
10335         * java/class.c (emit_register_classes): Conditionalize code on
10336         JCR_SECTION_NAME.
10338 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10340         * doc/install.texi (Specific, avr): Fix cross-reference to the
10341         main manual to work both for info and HTML versions.
10343 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10345         * stmt.c (expand_null_return_1): Remove code to generate simple returns
10346         and "use_goto" argument.
10347         (expand_null_return, expand_value_return): Update all callers.
10348         * function.c (expand_function_end): Remove code to generate simple
10349         return.
10350         * config/vax/vax.md (epilogue): New expander for function return.
10351         * doc/md.texi (epilogue): Remove "if defined".
10353 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
10355         * Makefile.in: Partially revert my previous change:
10356         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
10357         of the hashtab.o and safe-ctype.o rules.
10359 2001-08-09  Richard Henderson  <rth@redhat.com>
10361         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
10362         (USE_COLLECT2): Remove duplicate definition.
10363         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
10364         (use_collect2): Remove dead code.
10365         * configure.in (use_collect2): Remove will_use_collect2 and
10366         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
10367         * configure: Rebuild.
10369         * target.h (targetm.asm_out.constructor): New.
10370         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
10371         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
10372         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
10373         * varasm.c (in_ctors, in_dtors): New.
10374         (assemble_constructor, assemble_destructor): Remove.
10375         (default_stabs_asm_out_destructor): New.
10376         (default_named_section_asm_out_destructor): New.
10377         (dtors_section, default_dtor_section_asm_out_destructor): New.
10378         (default_stabs_asm_out_constructor): New.
10379         (default_named_section_asm_out_constructor): New.
10380         (ctors_section, default_ctor_section_asm_out_constructor): New.
10381         * output.h: Update declarations.
10382         * c-decl.c (c_expand_body): Use target hooks instead of
10383         assemble_constructor and assemble_destructor.
10384         * profile.c (output_func_start_profiler): Likewise.
10385         * objc/objc-act.c (finish_objc): Likewise.
10386         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
10387         for the constructor.
10388         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
10390         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
10391         (DTORS_SECTION_ASM_OP): Likewise.
10392         (__CTOR_LIST__): Use attribute section when possible.
10393         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
10395         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
10396         ASM_OUTPUT_CONSTRUCTOR.
10398         * config/darwin.c (machopic_asm_out_constructor): New.
10399         (machopic_asm_out_destructor): New.
10400         * config/darwin-protos.h: Update declarations.
10401         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10402         (ASM_OUTPUT_DESTRUCTOR): Remove.
10403         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10404         * config/nextstep.c (nextstep_asm_out_constructor): New.
10405         (nextstep_asm_out_destructor): New.
10406         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10407         (ASM_OUTPUT_DESTRUCTOR): Remove.
10408         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10409         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
10410         ASM_OUTPUT_*STRUCTOR.
10411         * config/i386/aix386ng.h: Likewise.
10413         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
10414         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
10415         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10416         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10417         * config/lynx.h: Likewise.
10418         * config/netware.h: Likewise.
10419         * config/psos.h: Likewise.
10420         * config/alpha/alpha-interix.h: Likewise.
10421         * config/alpha/elf.h: Likewise.
10422         * config/arc/arc.h: Likewise.
10423         * config/arm/aof.h: Likewise.
10424         * config/arm/coff.h: Likewise.
10425         * config/arm/elf.h: Likewise.
10426         * config/c4x/c4x.h: Likewise.
10427         * config/h8300/h8300.h: Likewise.
10428         * config/i386/cygwin.h: Likewise.
10429         * config/i386/djgpp.h: Likewise.
10430         * config/i386/i386-coff.h: Likewise.
10431         * config/i386/i386-interix.h: Likewise.
10432         * config/i386/sco5.h: Likewise.
10433         * config/i386/vsta.h: Likewise.
10434         * config/i386/win32.h: Likewise.
10435         * config/i960/i960-coff.h: Likewise.
10436         * config/ia64/sysv4.h: Likewise.
10437         * config/m68hc11/m68hc11.h: Likewise.
10438         * config/m68k/coff.h: Likewise.
10439         * config/m68k/mot3300.h: Likewise.
10440         * config/m88k/m88k.h: Likewise.
10441         * config/mcore/mcore-pe.h: Likewise.
10442         * config/mcore/mcore.h: Likewise.
10443         * config/mips/elf.h: Likewise.
10444         * config/mips/elf64.h: Likewise.
10445         * config/mips/iris6.h: Likewise.
10446         * config/pa/pa64-hpux.h: Likewise.
10447         * config/rs6000/sysv4.h: Likewise.
10448         * config/sh/sh.h: Likewise.
10449         * config/sparc/litecoff.h: Likewise.
10451         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
10452         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
10453         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10454         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10455         (ASM_OUTPUT_DESTRUCTOR): Remove.
10456         * config/a29k/a29k.c: Move include of tree.h.
10457         * config/a29k/udi.h: Delete file.
10458         * config/alpha/alpha.c (vms_asm_out_constructor): New.
10459         (vms_asm_out_destructor): New.
10460         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
10461         (EXTRA_SECTION_FUNCTIONS): Likewise.
10462         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10463         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10464         * config/c4x/c4x.c: Move include of tree.h.
10465         * config/clipper/clipper.c (clix_asm_out_constructor): New.
10466         (clix_asm_out_destructor): New.
10467         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10468         (ASM_OUTPUT_DESTRUCTOR): Remove.
10469         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10470         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10471         (TARGET_ASM_CONSTRUCTOR): New.
10472         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
10473         (sco_asm_out_constructor): New.
10474         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
10475         * config/i386/svr3gas.h: Remove stack grows up code.
10476         Remove code duplicated from i386/sysv3.h.
10477         (TARGET_ASM_CONSTRUCTOR): New.
10478         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
10479         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
10480         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10481         (TARGET_ASM_CONSTRUCTOR): New.
10482         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
10483         (m68hc11_asm_out_destructor): New.
10484         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
10485         (TARGET_ASM_DESTRUCTOR): New.
10486         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
10487         * config/m68k/dpx2.h: Properly undef all the bits inherited from
10488         config/svr3.h pertaining to section manipulation.
10489         * config/m68k/dpx2g.h: Remove #if 0 code.
10490         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
10491         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
10492         (ASM_OUTPUT_CONSTRUCTOR): Remove.
10493         (TARGET_ASM_CONSTRUCTOR): New.
10494         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
10495         (m88k_svr3_asm_out_constructor): New.
10496         (m88k_svr3_asm_out_destructor): New.
10497         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10498         (ASM_OUTPUT_DESTRUCTOR): Remove.
10499         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10500         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
10501         * config/rs6000/aix.h: Likewise.
10502         * config/mips/rtems64.h: Don't undef removed constructor related bits.
10503         * config/mips/vxworks.h: Likewise.
10504         * config/rs6000/lynx.h: Likewise.
10505         * config/sh/elf.h: Likewise.
10506         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
10507         (DTORS_SECTION_ASM_OP): New.
10508         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10509         (ASM_OUTPUT_DESTRUCTOR): Remove.
10510         * config/sparc/sol2-sld-64.h: Likewise.
10511         * config/vax/vax.c (vms_asm_out_constructor): New.
10512         (vms_asm_out_destructor): New.
10513         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
10514         (ASM_OUTPUT_DESTRUCTOR): Remove.
10515         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10517         * doc/tm.texi (@node Initialization): Update.
10519 2001-08-09  Richard Henderson  <rth@redhat.com>
10521         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
10522         (__do_global_dtors_aux): Use gp-relative static data to avoid
10523         one dynamic relocation.
10524         (__do_frame_setup): Register Java classes.
10525         * config/alpha/crtend.asm (__JCR_END__): New.
10527 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
10529         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
10530         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
10531         (GEN, STAGESTUFF): Add new files.
10532         (insn-constants.h, s-constants, tm-preds.h, s-preds,
10533         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
10534         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
10535         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
10536         as well as insn-codes.h and insn-flags.h in config.h; and no
10537         extra headers in tconfig.h and hconfig.h.
10539         * gencodes.c: Eliminate code to generate predicate declarations
10540         or #defines for md-file constants.
10541         * genconstants.c, genpreds.c: New files.
10543         * i386.md: Re-order guard expressions such that TARGET_64BIT
10544         comes first, when this permits better optimization.  Add
10545         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
10546         why this is desirable.
10548 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
10550         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
10551         (find_fde_for_dso): Remove.
10552         (_Unwind_IteratePhdrCallback): New.
10553         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
10554         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
10556 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10558         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
10559         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
10561 2001-08-09  Graham Stott  <grahams@redhat.com>
10563         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
10564         (vis_no_unit): Use it.
10565         (visualize_no_unit): Add the insn only if room exists.
10567 2001-08-09  Graham Stott  <grahams@redhat.com>
10569         * predict.c (estimate_probability): Replace magic numbers with
10570         appropriate enumeration.
10572 2001-08-09  Graham Stott  <grahams@redhat.com>
10574         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
10575         parameter.
10576         (EXTRACT_FLAGS): Likewise.
10578 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
10580         * config/mips/mips.c    (mips_legitimate_address_p): Check for
10581         CONST_INT in last patch.
10583 2001-08-08  Anthony Green  <green@redhat.com>
10585         * java/class.c (emit_register_classes): Use assemble_jcr if
10586         possible.  Keep the original mechanism as a fallback.
10587         * defaults.h (JCR_SECTION_NAME): Define if we have named section
10588         and weak symbol support.
10589         * crtstuff.c (__JCR_LIST__): Define.
10590         (__JCR_END__): Define.
10591         (_Jv_RegiserClasses): Define weak symbol if possible.
10592         (__do_global_ctors_aux): Register classes for ELF targets with
10593         weak symbol support.
10595 2001-08-08  Kazu Hirata  <kazu@hxi.com>
10597         * dbxout.c: Fix comment formatting.
10598         * dependence.c: Likewise.
10599         * df.c: Likewise.
10600         * diagnostic.c: Likewise.
10601         * dominance.c: Likewise.
10602         * doprint.c: Likewise.
10603         * dwarf2out.c: Likewise.
10604         * dwarfout.c: Likewise.
10605         * emit-rtl.c: Likewise.
10606         * except.c: Likewise.
10607         * explow.c: Likewise.
10608         * expmed.c: Likewise.
10609         * expr.c: Likewise.
10610         * flow.c: Likewise.
10611         * fold-const.c: Likewise.
10612         * function.c: Likewise.
10614 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
10616         * global.c (retry_global_alloc): Avoid shadowing allocno.
10618 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
10620         * except.c (remove_fixup_regions): Fix typo.
10622 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
10624         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
10625         unsigned HOST_WIDE_INT to avoid warning.
10626         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
10627         * flow.c (set_block_for_new_insns): Likewise.
10629 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
10631         * sibcall.c (return_value_pseudo): New static variable.
10632         (skip_copy_to_return_value): Handle return_value_pseudo.
10633         (call_ends_block_p): Ensure that return_value_pseudo is set.
10634         (optimize_sibling_and_tail_recursive_call): Discover the
10635         load of pseudo return value in alternate exit block.
10637 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
10639         * calls.c (ECF_ALWAYS_RETURN): New constant.
10640         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
10641         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
10642         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
10643         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
10644         * rtl.c (reg_note_name): New name.
10645         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
10647 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
10649         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
10651 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
10653         * alias.c (get_alias_set): Return a previously calculated
10654         alias set for a VAR_DECL.
10655         * function.c (gen_mem_addressof): Calculate the alias set before
10656         touching the RTL.
10658 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
10660         * predict.def: Set hitrates according our experimental run.
10662 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
10664         * i386.h (HARD_REGNO_RENAME_OK): New macro.
10666 2001-08-08  H.J. Lu <hjl@gnu.org>
10668         * config/mips/mips.c (mips_unique_section): New. Copied from
10669         config/mips/elf.h.
10671         * config/mips/mips-protos.h (mips_unique_section): New
10672         prototype.
10674         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
10676         * config/mips/little.h: New. Generic little endian mips
10677         targets. Only mips*-*-linux* is converted to use it so far.
10679         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
10680         (WCHAR_TYPE): Defined
10681         (WCHAR_TYPE_SIZE): Likewise.
10682         (INIT_SUBTARGET_OPTABS): Likewise.
10683         (BSS_SECTION_ASM_OP): Likewise.
10684         (SBSS_SECTION_ASM_OP): Likewise.
10685         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
10686         (ASM_DECLARE_OBJECT_NAME): Likewise.
10687         (UNIQUE_SECTION): Likewise.
10688         (EXTRA_SECTIONS): Likewise.
10689         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
10690         (ASM_OUTPUT_DESTRUCTOR): Likewise.
10691         (ASM_OUTPUT_DEF): Likewise.
10692         (HANDLE_SYSV_PRAGMA): Removed.
10693         (NO_IMPLICIT_EXTERN_C): Likewise.
10694         (TARGET_MEM_FUNCTIONS): Likewise.
10695         (STARTFILE_SPEC): Likewise.
10696         (ENDFILE_SPEC): Likewise.
10697         (LIB_SPEC): Likewise.
10698         (INVOKE__main): Likewise.
10699         (CTOR_LIST_BEGIN): Likewise.
10700         (CTOR_LIST_END): Likewise.
10701         (DTOR_LIST_BEGIN): Likewise.
10702         (DTOR_LIST_END): Likewise.
10703         (SET_ASM_OP): Likewise.
10704         (ASM_OUTPUT_SOURCE_LINE): Likewise.
10705         (ASM_OUTPUT_DEF): Likewise.
10706         (ASM_OUTPUT_IDENT): Likewise.
10708         * config/mips/mips.h (ASM_SPEC): Undefine before define.
10709         (CPLUSPLUS_CPP_SPEC): Likewise.
10710         (ASM_APP_ON) Redefine only if not defined.
10711         (ASM_APP_OFF): Likewise.
10712         (ASM_OUTPUT_SOURCE_LINE): Likewise.
10713         (ASM_OUTPUT_IDENT): Likewise.
10715         * config.gcc: Update tm_file for Linux/mips.
10717 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
10719         * cselib.c (cselib_record_sets): If insn is predicated, turn
10720         sources into IF_THEN_ELSEs.
10722         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
10723         Turn into define_insn_and_split.
10725         * sched-deps.c: Include "cselib.h".
10726         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
10727         Use cselib to turn memory addresses into VALUEs.
10728         (sched_analyze): Call cselib_init/cselib_finish if necessary.
10729         * sched-int.h (struct sched_info): New member USE_CSELIB.
10730         * sched-ebb.c (ebb_sched_info): Initialize it.
10731         * sched-rgn.c (rgn_sched_info): Likewise.
10732         * Makefile.in (sched-deps.o): Update dependencies.
10734         * cselib.h (cselib_subst_to_values): Declare.
10735         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
10736         that have no value and autoincs to be handled by generating a new
10737         dummy value.
10739 2001-08-08  Graham Stott  <grahams@redhat.com>
10741         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
10742         within fixed length SEQUENCE.
10744 2001-08-08  Graham Stott  <grahams@redhat.com>
10746         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
10747         (diagnostic_prefixing_rule): Likewise.
10748         (diagnostic_line_cutoff): Likewise.
10749         (diagnostic_kind_count): Likewise.
10751 2001-08-08  Graham Stott  <grahams@redhat.com>
10753         * alias.c (find_base_decl): Delete redundent assignment.
10755 2001-08-08  Graham Stott  <grahams@redhat.com>
10757         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
10758         (abs): Uppercase and paranthesize macro parameter.
10759         (MEM_DEPENDENCY): Add whitespace.
10761 2001-08-08  Graham Stott  <grahams@redhat.com>
10763         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
10764         failure check for CONST_INT
10766 2001-08-08  Graham Stott  <grahams@redhat.com>
10768         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
10769         (libcall_dead_p): Likewise.
10771         (mark_used_regs): Constify fmt.
10772         (find_use_as_address): Likewise.
10774 2001-08-08  Graham Stott  <grahams@redhat.com>
10776         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
10777          parameter.
10779 2001-08-08  Graham Stott  <grahams@redhat.com>
10781         * combine.c (combine_simplify_rtx): Update comment and
10782         remove erroneous test.
10784 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10786         * cppinit.c (cpp_finish): Pop the final buffer without comment.
10787         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
10788         take care to avoid multiple no-newline at EOF warnings in that
10789         case.
10791 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
10793         * calls.c (expand_call): Do not emit INSN_SETJMP note.
10794         (emit_library_call_value_1): Likewise.
10795         (emit_call_1): Emit REG_SETJMP note.
10796         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
10797         of INSN_SETJMP
10798         * cselib.c (cselib_process_insn): Likewise.
10799         * flow.c (propagate_block): Likewise.
10800         * loop.c (find_and_verify_loops): Likewise.
10801         * reload.c (find_equiv_regs): Likewise.
10802         * reload1.c (reload): Likewise.
10803         * resource.c (mark_referenced_resources,
10804         mark_set_resources): Likewise.
10805         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
10806         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
10807         * haifa-sched.c (unlink_other_notes): Likewise.
10808         (reemit_notes): Likewise.
10809         * sched-ebb.c (sched_ebb): Likewise.
10810         * sched-rgc.c (sched_region): Likewise.
10811         * rtl.c (note_insn_name): Likewise.
10812         (reg_note_name): Add REG_SETJMP
10813         * rtl.h (reg_note): Add REG_SETJMP.
10814         (insn_note): Remove NOTE_INSN_SETJMP.
10816         * profile.c (branch_prob): Add fake edges for setjmp.
10818 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
10820         * config.gcc: Quote target_cpu_default2 correctly for
10821         powerpc*-*-* targets.
10823 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
10825         * cpplib.h, line-map.h: Update comments.
10826         * cppmain.c (printer_init): Move inline.
10827         (maybe_print_line, print_line): Take a map pointer.
10828         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
10829         (cb_file_change): Don't use prior value of print.map.
10831 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
10833         * doc/install.texi: Document fine-grained multilib configuration.
10835 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
10837         * rtlanal.c (find_first_parameter_load): Call note_stores
10838         only on the instructions.
10840 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
10842         * alias.c (nonlocal_mentioned_p):
10843         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
10844         * calls.c (emit_call_1): Likewise.
10845         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
10846         * cselib.c (cselib_process_insn): Likewise.
10847         * df.c (df_insns_modify): Likewise.
10848         * flow.c (need_fake_edge_p): Likewise.
10849         (propagate_one_insn): Likewise.
10850         * haifa-sched.c (reemit_notes): Likewise.
10851         * integrate.c (copy_insn_list): Likewise.
10852         * jump.c (delete_prior_computation): Likewise.
10853         * local-alloc.c (validate_equiv_mem): Likewise.
10854         * loop.c (scan_loop): Likewise.
10855         * predict.c (estimate_probability): Likewise.
10856         * reload.c (reload): Likewise.
10857         * sched-deps (sched_analyze): Likewise.
10858         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
10859         * gcse.c (compute_hash_table): Likewise.
10860         (mark_call): Likewise.
10861         (store_killed_in_insn): Likewise.
10863 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
10865         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
10867 2001-08-06  Richard Henderson  <rth@redhat.com>
10869         * varasm.c (assemble_gc_entry): Remove.
10870         * output.h: Likewise.
10872 2001-08-06  Richard Henderson  <rth@redhat.com>
10874         * varasm.c (assemble_constructor): Take a symbol_ref and a
10875         priority instead of a bare string.  Move priority handling
10876         here from cp/decl2.c.
10877         * output.h: Update decls.
10879         * c-decl.c (c_expand_body): Update calls to assemble_constructor
10880         and assemble_destructor.
10881         * profile.c (output_func_start_profiler): Likewise.
10882         * objc/objc-act.c (finish_objc): Likewise.
10883         (build_module_descriptor): Return the symbol not the symbol name.
10885 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
10887         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
10888         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
10889         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
10890         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
10891         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
10892         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
10894 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10896         * cpperror.c (print_containing_files): Moved to line-map.c.
10897         (print_location): line-map.c handles re-listing or otherwise.
10898         * cpphash.h (struct lexer_state): Remove next_bol.
10899         (struct cpp_buffer): Remove include_stack_listed.
10900         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
10901         Remove faked buffer handling.
10902         (_cpp_do_file_change): Tweak.
10903         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
10904         * cppmain.c (struct printer): Remove filename.
10905         (print_line, cb_file_change): Update accordingly.
10906         * line-map.c: Include intl.h.
10907         (init_line_maps): Initialize last_listed.
10908         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
10909         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
10910         (print_containing_files): New.
10911         * line-map.h (struct line_maps): New member last_listed.
10912         (print_containing_files, INCLUDED_FROM): New.
10913         * Makefile.in: Update.
10914         * po/POTFILES.in: Add line-map.c.
10916 2001-08-06  Richard Henderson  <rth@redhat.com>
10918         * except.c (convert_from_eh_region_ranges_1): Never mark
10919         USE or CLOBBER insns as throwing.
10921         * expr.c (store_constructor): Don't clobber memory targets.
10923 2001-08-06  Andreas Jaeger  <aj@suse.de>
10925         * profile.c (branch_prob): Remove unused variable insn.
10927         * Makefile.in (local-alloc.o): Add dependency on except.h.
10929         * local-alloc.c: Include except.h for can_throw_internal prototype.
10931 2001-08-06  Richard Henderson  <rth@redhat.com>
10933         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
10934         * function.c (expand_main_function): Implement it.
10935         * doc/tm.texi: Document it.
10937 2001-08-06  Stan Shebs  <shebs@apple.com>
10939         * doc/install.texi: Document powerpc-*-darwin* details.
10941 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
10943         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
10944         (ASM_CPU_SPEC): Move back to rs6000.h
10945         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
10947         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
10949         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
10950         readded.
10952         * config/rs6000/linux64.h: Ditto.
10954         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
10955         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
10956         nothing.
10958         Remove accidently readded definitions of FUNCTION_PROLOGUE,
10959         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
10961         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
10962         to rs6000.h
10964 2001-08-05  Richard Henderson  <rth@redhat.com>
10966         * local-alloc.c (update_equiv_regs): Do not move insns that
10967         can throw.
10969 2001-08-05  Jan Hubicka  <jh@suse.cz>
10971         * Makefile.in (reload1.o): Add dedendancy on except.h
10972         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
10973         prototypes.
10974         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
10975         indicating wehther edges has been cleaned up.
10976         * reload1.c: Inlucde except.h
10977         (fixup_abnormal_edges): Accept deleted insns.
10978         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
10979         after combine.
10981 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
10983         * cpplib.c (do_line): Correct line number after pop_buffer.
10985 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10987         PR preprocessor/3824
10988         * line-map.c: Update comments.
10989         * line-map.h: Update comments.
10990         * tradcif.y: Don't consider large numbers unsigned.
10992 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
10994         PR preprocessor/3081
10995         * c-lex.c (map): New.
10996         (cb_file_change): Update map and use it.
10997         (cb_def_pragma, cb_define, cb_undef): Use map and line.
10998         (c_lex): Update to use map.
10999         * cpperror.c (print_location): Move to using logical line numbers.
11000         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
11001         (cpp_make_system_header): Similarly.
11002         (_cpp_execute_include): Stop line numbering hacks.  Store the
11003         line we will return to.
11004         * cpphash.h (CPP_BUF_LINE): Remove.
11005         (struct cpp_buffer): Remove lineno and pseudo_newlines.
11006         Add map and return_to_line.
11007         (_cpp_do_file_change): Update.
11008         * cppinit.c (cpp_start_read): Update line kludge.
11009         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
11010         (trigraph_ok): Use logical line numbers for diagnostics.
11011         (skip_block_comment): Likewise.
11012         (skip_whitespace): Likewise.
11013         (skip_line_comment): Use pfile->line instead.
11014         (_cpp_lex_token): Update to use logical line numbering exclusively.
11015         Handle BOL locally.  Accept new lines in directives, but keep
11016         pfile->line decremented.  Diagnostics use logical lines.  Update
11017         directive handling.
11018         * cpplib.c (SEEN_EOL): New.
11019         (skip_rest_of_line, check_eol): Use it.
11020         (end_directive): Increase line number when accepting the newline
11021         at the end of a directive.
11022         (run_directive): Simplify.
11023         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
11024         (_cpp_do_file_change): Update to take buffer line number as an
11025         argument, and store the current map in the cpp_reader.  Remove
11026         line number kludges.
11027         (_cpp_do__Pragma): Restore output position after a _Pragma.
11028         (cpp_push_buffer): Don't set output line or lineno.
11029         (_cpp_pop_buffer): Transfer more info from a faked buffer.
11030         Remove line kludge.  Set output_line.
11031         * cppmacro.c (builtin_macro): Update handling of __LINE__.
11032         (parse_arg): Use logical lines.
11033         (save_lookahead_token): Save EOFs too now.
11034         * cppmain.c (struct printer): Fix comments.
11035         (printer_init): Simplify, let caller do errors.
11036         (scan_translation_unit, check_multiline_token, dump_macro): Update.
11037         (maybe_print_line): Simplify.
11038         (print_line): Don't print a linemarker if -P.
11039         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
11040         (cb_file_change): Simplify.
11041         * line-map.h (LAST_SOURCE_LINE): Fix.
11042         (CURRENT_LINE_MAP): New.
11044 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
11046         * doloop.c (doloop_modify_runtime): Properly compute number of
11047         iterations if loop was unrolled.
11049         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
11050         if their CSELIB_VAL_PTRs are.
11052         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
11053         (setup_spill_pointers): Initialize it.
11054         (spill_restore_mem): Set it.
11055         (do_spill, do_restore): Use it to add REG_INC note.
11056         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
11058         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
11059         asms if other insns are available.
11061         * config/ia64/ia64.c (condop_operator): New predicate.
11062         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
11063         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
11064         patterns.
11066         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
11067         temporary register than directly using a MEM.
11069 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
11071         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
11072         parameter in last change.
11074 2001-08-04  Zack Weinberg  <zackw@panix.com>
11076         * sparc.md: Don't use #if inside C test expression.
11078 2001-08-04  Richard Henderson  <rth@redhat.com>
11080         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
11082 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
11084         * cpphash.h (struct cpp_reader): New member directive_line.
11085         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
11086         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
11087         do_pragma): Pass line to callbacks.
11088         (start_directive): Record line of directive.
11089         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
11090         cb_include): Similarly.
11091         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
11092         Similarly.
11094 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
11096         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
11097         comment.
11099 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
11101         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
11103         * reload1.c (fixup_abnormal_edges): New static function.
11104         (reload): Use it.
11106         * flow.c (need_fake_edge_p): New function.
11107         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
11108         avoid call insn to be very last insn in the insn stream.
11110         * profile.c (branch_prob): Call flow_call_edges_add instead of
11111         doing that by hand; cleanup cfg to re-merge basic blocks once
11112         we are done.
11114 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11116         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
11117         are also on line-map.h.
11118         * cppfiles.c (stack_include_file): Update.
11119         * cpphash.h (struct cpp_buffer): New member return_at_eof.
11120         (_cpp_pop_buffer): New.
11121         * cppinit.c (cpp_destroy, cpp_finish): Update.
11122         (do_includes): Mark each buffer to return at EOF.
11123         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
11124         return as requested.
11125         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
11126         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
11127         * cpplib.h (cpp_pop_buffer): Remove.
11128         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
11129         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
11130         buffers.
11131         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
11132         to pop buffers.
11133         (do_preprocessing): Update.
11134         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
11135         * c-parse.in (_yylex): Similarly.
11136         * scan-decls.c (scan_decls): Similarly.
11137         * line-map.h: Update comments.
11139         * objc/Make-lang.in (objc-act.o): Update dependencies.
11141 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11143         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
11144         and soft register for operand 0.
11145         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
11147 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11149         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
11150         register for operand 0.
11151         ("bitcmpqi_z_used"): Allow memory for operand 0.
11152         (split "bitcmpqi"): New split to handle address reg as operand 1.
11154 2001-08-04  Andreas Jaeger  <aj@suse.de>
11156         * gcse.c: Revert Daniel's last patch.
11158 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
11160         * sparc-protos.h: Add prototypes for fp_zero_operand and
11161         reg_or_0_operand.
11162         * sh-protos.h: Add prototype for fpul_operand.
11164 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
11166         * doc/extend.texi (Other Builtins): Fix typo in last change.
11168 2001-08-03  Richard Henderson  <rth@redhat.com>
11170         * target.h (gcc_target): Add asm_out.named_section,
11171         section_type_flags, have_named_sections.
11172         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
11173         (TARGET_HAVE_NAMED_SECTIONS): New.
11174         (TARGET_SECTION_TYPE_FLAGS): New.
11176         * Makefile.in (toplev.o): Depend on TARGET_H.
11177         (varasm.o, dbxout.o): Likewise.
11178         * c-common.c (decl_attributes): Check targetm.have_named_sections
11179         instead of ifdef ASM_OUTPUT_SECTION_NAME.
11180         * dbxout.c (dbxout_function_decl): Likewise.
11181         (dbxout_function_end): Likewise.
11182         * toplev.c (compile_file): Likewise.
11183         * varasm.c (exception_section): Likewise.
11184         * cp/decl2.c (finish_objects): Likewise.
11186         * defaults.h (EH_FRAME_SECTION): Remove.
11187         (EH_FRAME_SECTION_ASM_OP): Remove.
11188         (EH_FRAME_SECTION_NAME): New.
11189         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
11190         (UNIQUE_SECTION_P): Remove.
11191         * dwarf2out.c (SECTION_FORMAT): Remove.
11192         (ASM_OUTPUT_SECTION): Remove.
11193         (output_call_frame_info): Use named_section_flags.
11194         (output_comp_unit, dwarf2out_start_source_file): Likewise.
11195         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
11196         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
11197         * varasm.c (in_eh_frame, eh_frame_section): Remove.
11198         (named_section_flags): New.
11199         (named_section): Use it and targetm.section_type_flags.
11200         (resolve_unique_section): New.
11201         (assemble_start_function): Use it.
11202         (asm_emit_uninitialised, assemble_variable): Likewise.
11203         (default_section_type_flags): New.
11204         (default_no_named_section, default_elf_asm_named_section): New.
11205         (default_coff_asm_named_section, default_pe_asm_named_section): New.
11206         * output.h: Update varasm.c decls.
11207         (SECTION_*): New flags.
11209         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
11210         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
11212         * config/elfos.h (UNIQUE_SECTION_P): Remove.
11213         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
11214         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
11215         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
11216         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
11217         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
11218         * config/mips/elf.h, config/mips/elf64.h: Likewise.
11219         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
11220         * config/pa/pa64-hpux.h,
11222         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
11223         (TARGET_ASM_NAMED_SECTION): New.
11224         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
11225         * config/alpha/vms.h, config/arm/coff.h: Likewise.
11226         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
11227         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
11228         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
11229         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
11230         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
11231         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
11232         * config/i386/sco5.h, config/i386/win32.h: Likewise.
11233         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
11234         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
11235         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
11236         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
11237         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
11238         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
11239         * config/sparc/sysv4.h: Likewise.
11241         * config/nextstep.h: Error until named sections implemented.
11243         * config/a29k/a29k.c (a29k_asm_named_section): New.
11244         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
11245         (vms_section_type_flags, vms_asm_named_section): New.
11246         * config/arm/arm.c (arm_elf_asm_named_section): New.
11247         * config/avr/avr.c (asm_output_section_name): Remove.
11248         * config/avr/avr-protos.h: Update.
11249         * config/c4x/c4x.c (c4x_asm_named_section): New.
11250         * config/h8300/h8300.c (h8300_asm_named_section): New.
11251         * config/i386/i386.c (sco_asm_named_section): New.
11252         * config/i386/winnt.c (SECTION_PE_SHARED): New.
11253         (i386_pe_section_type_flags): New.
11254         (i386_pe_asm_named_section): New.
11255         * config/i386/i386-protos.h: Update.
11256         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
11257         * config/mcore/mcore.c (mcore_asm_named_section): New.
11258         * config/mips/mips.c (iris6_asm_named_section): New.
11259         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
11260         instead of UNIQUE_SECTION_P.
11261         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
11262         (xcoff_asm_named_section): New.
11263         * config/sh/sh.c (sh_asm_named_section): New.
11264         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
11266         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
11267         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
11268         (EH_FRAME_SECTION_NAME): New.
11269         (EXCEPTION_SECTION): New.
11270         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
11271         (DEBUG_*_SECTION): Remove.
11272         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
11273         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
11274         (EH_FRAME_SECTION_ASM_OP): Remove.
11276         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
11277         (ASM_OUTPUT_SECTION_NAME): Remove.
11278         (TARGET_ASM_NAMED_SECTION): New.
11279         (TARGET_HAVE_NAMED_SECTIONS): New.
11280         (TARGET_SECTION_TYPE_FLAGS): New.
11281         (EH_FRAME_SECTION_ASM_OP): Remove.
11282         (EH_FRAME_SECTION_NAME): New.
11284 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
11286         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
11287         for complex expressions when cfun == 0.
11288         * doc/extend.texi: Document that __builtin_constant_p can be
11289         used in data initializers as well as functions.
11291 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
11293         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
11294         variable I locally, instead of expecting a declaration in the
11295         calling context.
11297 2001-08-03  Richard Henderson  <rth@redhat.com>
11299         * except.c (collect_one_action_chain): Add an explicit cleanup
11300         action if regions surrounding a catch were encoded entirely
11301         within the call-site entry.
11303 2001-08-03  Richard Henderson  <rth@redhat.com>
11305         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
11306         don't take REGNO of a non-register.
11308 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11310         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
11311         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
11312         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
11313         (__gthread_mutex_init_function): New function for mutex initialization.
11315 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11317         * Makefile.in: Revert screwed up commit.
11319 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
11321         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
11322         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
11323         merged by linker script to get a final _exit().
11324         (__do_global_dtors): New for destructor handling in specific exit
11325         section.
11326         (__do_global_ctors): New for constructors in specific install section.
11327         (__map_data_section): Map data sections before running constructors.
11328         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
11329         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
11330         (DTORS_SECTION_ASM_OP): Likewise.
11331         (CTORS_SECTION_FUNCTION): Define to force a reference to
11332         __do_global_ctors.
11333         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
11335 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11337         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
11339         * Makefile.in: Add df.h to gcse.c dependencies.
11341 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11343         * varasm.c (output_constant_def_contents): Use for the length of a
11344         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
11345         depending on which is larger.
11347 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
11349         * gcse.c: Include df.h for use as a dataflow analyzer.
11350         Remove regvec.
11351         Declaration of reg_set_info: gone.
11352         New df_analyzer variable used by store motion.
11353         (reg_set_info): Deleted.
11354         (mark_mem_regs): New function, analyze regs used by a mem.
11355         (store_ops_ok): Use dataflow analyzer results to determine if
11356         necessary regs are changed in the block.
11357         (find_moveable_store): Remove check for symbol ref, we can handle
11358         much more complex expressions now.
11359         (compute_store_table): Remove most of the code, it's unnecessary
11360         now that the dataflow analyzer records the info for us.
11361         (store_killed_after): Add parameter to say whether to do the
11362         store_ops_okay test, used to speed up testing when we already know
11363         the answer, and just want to know if the store itself was killed.
11364         (build_store_vector): Largely rewritten to calculate the various
11365         vectors properly, and somewhat optimized.
11366         (store_motion): Init the df_analyzer, get REG_DEF chains.
11367         Also handle trapping expressions (since mems almost always trap)
11368         (simple_mem): Redefine what a simple mem is.
11370 2001-08-03  DJ Delorie  <dj@redhat.com>
11372         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
11373         set from a constant part of the condition.
11375 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
11377         * mkdeps.c (deps_add_default_target): Make local variable
11378         ``start'' a const char pointer.
11379         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
11381 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11383         * doc/install.texi (Configuration): Fix markup.
11384         (Specific, i?86-*-udk): Likewise.
11385         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
11386         --with-gnu-ld.
11387         Document --enable-threads and --enable-libgcj status.
11388         (Specific, mips-sgi-irix*): Canonicalize triples.
11389         (Specific, mips-sgi-irix5): Warn about problems with this config.
11390         Mention required GNU as patch.
11391         Native assembler problems are fixed.
11392         (Specific, mips-sgi-irix6): Update O32 ABI support status.
11393         Document --enable-threads and --enable-libgcj status.
11395 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11397         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
11398         of mkinstalldirs.
11400 2001-08-03  Richard Henderson  <rth@redhat.com>
11402         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
11403         constant data.
11405 2001-08-03  Richard Henderson  <rth@redhat.com>
11407         * rtlanal.c (find_first_parameter_load): Stop if we
11408         reach a CODE_LABEL at BOUNDARY.
11410 2001-08-03  Richard Henderson  <rth@redhat.com>
11412         * config/alpha/alpha.md (force_movdi): New insn.
11413         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
11414         Tweek FRP marking of VMS prologue insns.
11415         * config/alpha/vms.h (EPILOGUE_USES): New.
11417 2001-08-02  Richard Henderson  <rth@redhat.com>
11419         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
11421 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
11423         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
11424         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
11425         config/convex/convex.h, config/d30v/d30v.c,
11426         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
11427         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
11428         config/mips/mips.h, config/mn10200/mn10200.h,
11429         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
11430         config/v850/v850.h, config/vax/openbsd.h,
11431         config/vax/openbsd1.h, config/vax/ultrix.h,
11432         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
11433         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
11434         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
11435         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
11436         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
11437         in comments and documentation.
11439 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11441         * line-map.c: New.
11442         * line-map.h: New.
11443         * Makefile.in (line-map.o): New.
11444         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
11445         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
11446         * cpperror.c (print_containing_files): Similarly.
11447         (print_location): Update.  Don't output a space before _Pragma.
11448         * cppfiles.c (stack_include_file): Set to line 1 immediately.
11449         (stack_include_filee, cpp_make_system_header): Update.
11450         (_cpp_execute_include): Get logical line number right for calling
11451         as-yet-unterminated #include.
11452         * cpphash.h (struct cpp_reader): Add line_maps.
11453         (_cpp_do_file_change): Update.
11454         * cppinit.c (cpp_create_reader): Initialize line maps.
11455         (cpp_destroy): Destroy line maps.
11456         (cpp_start_read): Get logical line number right.
11457         * cpplex.c (parse_string): Only warn once for multi-line strings.
11458         Use boolean variable for null warning.
11459         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
11460         already.
11461         (do_include_common): End the directive early.
11462         (do_line): Don't warn about out-of-range lines in preprocessed
11463         source.  Update.  Remove unused variables.
11464         (_cpp_do_file_change): Update for new line mapping.
11465         (pragma_cb): New typedef.
11466         (cpp_register_pragma): Stop looking ahead before calling the
11467         handler.  Clean up.
11468         (do_pragma_system_header): End directive early.
11469         (cpp_get_line_maps): New.
11470         (cpp_pop_buffer): Fudge logical line.  Update.
11471         * cpplib.h: Include line-map.h
11472         (enum cpp_fc_reason): Remove.
11473         (struct cpp_file_change): Update.
11474         (cpp_get_line_maps): New.
11475         * cppmain.c (struct_printer): New member map.
11476         (cb_file_change): Update for new mappings.
11477         * fix-header.c (cb_file_change): Similarly.
11479 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11481         * Makefile.in (libgcc.mk): Define mkinstalldirs.
11482         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
11484 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
11486         * config/vax/vax.c: include expr.h.
11488 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
11490         * Makefile.in ($(srcdir)/configure): Only rebuild in
11491         maintainer mode.
11492         ($(srcdir)/config.in): Only define in maintainer mode.
11493         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
11495 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
11497         * doc/install.texi (Install GCC: Binaries): Update Bull info.
11499 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11501         * gcc.c (set_collect_gcc_options): New function, split out from
11502         main.
11503         Ignore elided switches.
11504         (do_spec_1): Invoke before executing command.
11505         (set_input): Export.
11506         Move declaration ...
11507         * gcc.h (set_input): ... here.
11508         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
11509         file.
11511 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
11513         Kill -fhonor-std.
11514         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
11515         interaction.
11516         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
11518 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
11520         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
11521         for the unnamed instructions it expands to.
11523 2001-08-02  Richard Henderson  <rth@redhat.com>
11525         * regclass.c (call_really_used_regs): Conditionally define.
11526         (init_reg_sets_1): Don't use it if not defined.
11527         (fix_register): Similarly, don't set it.
11529 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11531         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
11532         Correct comment that had been missed in the previous change.
11534 2001-08-01  Stan Shebs  <shebs@apple.com>
11536         * config/darwin.c (machopic_stub_name): Try matching by name.
11537         (update_stubs): New function.
11538         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
11539         unconditionally.
11541 2001-08-01  Richard Henderson  <rth@redhat.com>
11543         * except.c (output_function_exception_table): Use assemble_align.
11544         * varasm.c (assemble_eh_label): Remove.
11545         (assemble_eh_align, assemble_eh_integer): Remove.
11547 2001-08-01  Robert Lipe  <robertl@caldera.com>
11549         * dwarfout.c: Remove reference to README.DWARF.
11551 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
11553         * regclass.c (call_really_used_regs): New array for registers which
11554         are actually used by a call.
11555         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
11556         new array.
11557         (fix_register): Set call_really_used too.
11558         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
11559         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
11561 2001-08-01  Richard Henderson  <rth@redhat.com>
11563         * read-rtl.c (read_name): Consider \r whitespace.
11565 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
11567         * config.gcc: Recognize powerpc-*-netbsd*.
11569         * doc/install.texi (Host/target specific installation notes for
11570         GCC): Mention powerpc-*-netbsd*.
11572         * config/rs6000/netbsd.h: New file.
11573         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
11574         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
11575         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
11576         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
11577         (TARGET_VERSION): Redefine.
11579         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
11580         mcall-netbsd as a match for mcall-sysv.
11581         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
11582         (ncrti.S, ncrtn.S): New targets.
11583         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
11585         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
11586         "netbsd' as a V4 ABI.
11587         (ASM_SPEC): Check for -mcall-netbsd.
11588         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
11589         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
11590         (LIB_SPEC, ENDFILE_SPEC): Ditto.
11591         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
11592         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
11593         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
11594         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
11596         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
11597         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
11599 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
11601         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
11602         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
11603         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
11604         including "unwind-pe.h".
11606 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
11608         * rs6000.md (define_splits): Kill unused constraints.
11610 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
11611                               Jan Hubicka  <jh@suse.cz>
11613         * function.c (thread_prologue_and_epilogue_insns): Kill code
11614         dealing with non-existent CFG.
11616 2001-08-01  Kazu Hirata  <kazu@hxi.com>
11618         * alias.c: Fix comment formatting.
11619         * bitmap.c: Likewise.
11620         * builtins.c: Likewise.
11621         * calls.c: Likewise.
11622         * c-common.c: Likewise.
11623         * c-decl.c: Likewise.
11624         * c-dump.c: Likewise.
11625         * c-lex.c: Likewise.
11626         * collect2.c: Likewise.
11627         * combine.c: Likewise.
11628         * conflict.c: Likewise.
11629         * cppfiles.c: Likewise.
11630         * cppinit.c: Likewise.
11631         * cpplex.c: Likewise.
11632         * cpplib.c: Likewise.
11633         * cppmacro.c: Likewise.
11634         * cppspec.c: Likewise.
11635         * c-pragma.c: Likewise.
11636         * crtstuff.c: Likewise.
11637         * cse.c: Likewise.
11638         * cselib.c: Likewise.
11639         * c-semantics.c: Likewise.
11640         * c-typeck.c: Likewise.
11642 2001-08-01  H.J. Lu <hjl@gnu.org>
11644         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
11646 2001-08-01  H.J. Lu <hjl@gnu.org>
11648         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
11650 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
11652         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
11653         contextualizing Objective-C class name lookup by the lexer.
11654         (typespec_reserved_nonattr): Disable ObjC class name lookup after
11655         seeing a TYPESPEC.
11656         (protocoldef): Add support for forward @protocol declarations.
11657         (yylexname): Suppress ObjC class name lookup in certain contexts;
11658         re-enable after lookup is complete.
11659         (_yylex): Re-enable ObjC class name lookup when certain
11660         punctuation marks are seen.
11662         * objc/objc-act.c (check_protocol_recursively): New function used
11663         for finding circular dependencies in protocols.
11664         (objc_declare_protocols): New function for handling forward
11665         @protocol declarations.
11666         (receiver_is_class_object): Detect the case when 'self' is used
11667         inside of a class method.
11668         (build_message_expr): Issue a warning if class method is desired
11669         but instance method is found instead.
11670         (conforms_to_protocol): Streamline.
11671         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
11672         protocol Foo, even if 'Bar foo' does not.
11673         (check_protocols): Streamline.
11674         (start_protocol): Add checks for circular and duplicate protocol
11675         definitions.
11676         (encode_aggregate_within): For typedefs of structs, encode the
11677         underlying struct.
11678         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
11679         (objc_declare_protocols): New prototype.
11681 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11683         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
11684         * cpplex.c (handle_newline): Update prototype.  Maintain logical
11685         line number.
11686         (skip_escaped_newlines, skip_block_comment, parse_string):
11687         Update accordingly.
11688         (_cpp_lex_token): Update, and store token position within the token.
11689         * cpplib.h (struct cpp_token): Add line and column entries.
11690         * cppmacro.c (replace_args): Position stringified tokens correctly.
11692 2001-08-01  Andreas Jaeger  <aj@suse.de>
11694         * basic-block.h: Add prototype for last_loop_beg_note.
11696 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
11698         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
11699         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
11700         comment.
11701         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
11702         while handling WITH_CLEANUP_EXPR node. Use second operand calling
11703         expand_decl_cleanup.
11704         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
11705         the first RTX.
11706         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
11707         operand while calling simple_cst_equal.
11708         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
11709         operand is the cleanup expression, the third is the RTL_EXPR.
11710         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
11712 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
11714         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
11716 2001-07-31  matthew green  <mrg@eterna.com.au>
11718         * config.gcc (i386-*-netbsdelf): New description.
11719         * config/i386/netbsd-elf.h: New file.
11721 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
11723         * loop.c (check_dbra_loop): Use single_set to compute
11724         jump_label.
11726 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
11728         PowerPC reorg and support for powerpc64-*-linux*.
11730         Also fixes emitting of constants on 32 bit and 64 bit
11731         platforms.
11733         * config.gcc: powerpc64-*-linux* is a new target.
11734         Things that needed aix.h now also include xcoff.h
11736         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
11737         xcoff.h.
11738         Move AIX specific stuff into aix.h.
11739         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
11740         with more than just XCOFF now.
11741         (SET_ASM_OP): Remove, now defined where needed.
11742         (FUNCTION_PROLOGUE): New macro definition.
11743         (FUNCTION_EPILOGUE): New macro definition.
11744         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
11746         * config/rs6000/xcoff.h: New file.
11748         * config/rs6000/linux64.h: New file.
11750         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
11752 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
11754         * rs6000.c (print_operand_address): Handle ELF syntax.
11755         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
11756         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
11757         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
11759 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
11761         * rs6000.c (rs6000_override_options): Only disable
11762         flag_function_sections for XCOFF.
11763         (exact_log2_cint_operand): New predicate.
11764         (reg_or_{add,sub}_cint64_operand): New predicates.
11765         (add_operand): Compare CONST_INT with fewer function calls.
11766         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
11767         (print_operand, case 'p'): Ensure positive operand.
11768         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
11769         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
11770         (PREDICATE_CODES): Add new predicates.
11771         * rs6000.md (addsi3): Split 32-bit constants more correctly.
11772         (divsi3, modsi3): Ensure positive power-of-2.
11773         (adddi3): Use new predicate.  Split 32-bit constants more
11774         correctly.  Re-arrange splitter to handle any constant.
11775         (subdi3): Use new predicate.
11776         (divdi3, moddi3): Ensure positive power-of-2.
11777         (movdi): Use rs6000_emit_set_const.
11778         (load_toc_v4_pic_di): Delete.
11780 2001-07-31  Graham Stott <grahams@redhat.com>
11782         * function.c (pad_below): Revert 2001-07-26 patch.
11784 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
11786         * reg-stack (convert_regs_1): Fix best edge condition.
11788 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
11790         * jump.c (duplicate_loop_exit_test): Better test for jumps
11791         entering the loop; create loop pre_header.
11793 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
11795         * doc/install.texi: Add s390 and s390x as new targets.
11796         * doc/invoke.texi: Add documentation of S/390 and zSeries
11797         target options.
11798         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
11800 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
11802         * config/m68k/m68k.md: Replace all general_operand with
11803         nonimmediate_operand for all destinations.
11804         * config/m68k/m68k.c (not_sp_operand): Likewise.
11806 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
11808         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
11810 2001-07-30  Richard Henderson  <rth@redhat.com>
11812         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
11813         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
11815 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
11817         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
11818         Add missing doc strings
11819         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
11820         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
11822 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
11824         * i386.c (ix86_output_main_function_alignment_hack): New function.
11825         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
11827         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
11828         edges by EDGE_DFS_BACK flag.
11829         (dump_edge_info): Add dfs_back flag.
11830         * basic-block.h (EDGE_DFS_BACK): New constant.
11831         (mark_dfs_back_edges): Declare.
11832         * alias.c (loop_p): Remove.
11833         (mark_constant_function): Use mark_dfs_back_edges.
11835         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
11836         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
11837         (compensate_edge): Break out from ...
11838         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
11839         (convert_regs_2): Set block_done once block is really done;
11840         Do updating of the predecessors counts.
11842         * toplev.c (rest_of_compilation): Recompute block_for_insn
11843         before post-reload cfg_cleanup.
11844         * function.c (thread_prologue_epilogue_insns):
11845         Call set_block_for_new_insns when emitting prologue directly.
11847 2001-07-30  Andreas Jaeger  <aj@suse.de>
11849         * jump.c: Add prototype for mark_modified_reg.
11851         * cse.c (set_live_p): Add unused attribute.
11853         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
11854         overflow.
11855         (scan_for_source_files): Use long for count to avoid overflow.
11856         (output_data): Likewise.
11857         (output_data): Don't use string concatatenation to silence gcc
11858         -traditional.
11860         * predict.c: Fix typos and grammar.
11862         * gcse.c (insert_insn_end_bb): Remove unused variables.
11864 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
11866         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
11867         (attempt_auto_inc): LIkewise.
11868         (mark_used_reg): Likewise.
11869         (try_pre_increment_1): Likewise.
11870         * regclass.c (regclass): Likewise.
11871         * global.c (allocno_compare): Update comment; change scaling factor.
11872         * local-alloc.c (QTY_CMP_PRI): Likewise.
11873         * regs.h (REG_FREQ_FROM_BB): New.
11874         (REG_FREQ_MAX): Likewise.
11876 2001-07-30  H.J. Lu <hjl@gnu.org>
11878         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
11879         -D_GNU_SOURCE.
11881 2001-07-30  H.J. Lu  (hjl@gnu.org)
11883         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
11884         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
11885         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
11887 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
11889         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
11890         as -mthumb-interwork when -mcpu=arm7 is specified.
11892 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
11894         * predict.def (noreturn, loop branch, loop exit): Mark as first
11895         match heuristics.
11897 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
11899         * combine.c (try_combine): Avoid barrier after noop jumps.
11901 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11903         * cpphash.h (struct cpp_reader): Remove import_warning.
11904         * cpplib.c (skip_rest_of_line): Don't bother turning off
11905         macro expansion.
11906         (parse_include): Move include handling to...
11907         (do_include_common): ... here.  Move import warning from...
11908         (do_import): ... here.
11909         (do_pragma_poison): Don't do a callback for poison identifiers.
11910         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
11911         * cppmain.c (setup_callbacks): Similarly.
11913 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
11915         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
11916         handle multiple sets.
11917         * except.c (sjlj_mark_call_sites): .... here.
11918         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
11920 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
11922         Suggested by Richard Henderson and Richard Kenner:
11923         * combine.c (recog_for_combine): Use the fake recog
11924         only if instruction does not match.
11925         * rtl.h (NOOP_MOVE_INSN_CODE): New.
11926         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
11928         * combine.c (try_combine): Discover noop jump as direct jump.
11930 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
11932         * df.c (df_rd_global_compute): Add successors to worklist, not
11933         current item.
11934         (df_ru_global_compute): Ditto.
11936 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
11938         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
11939         increment REG_N_SETS.
11941 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
11943         * sbitmap.h: New prototype for sbitmap_a_xor_b.
11945         * sbitmap.c (sbitmap_a_xor_b): New function.
11946         ifdef the basic block stuff on IN_GCC.
11948 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
11950         * cppexp.c (parse_defined): Always record the macro name.
11951         (lex): Don't worry about identifiers, or special-case
11952         CPP_NOT here.
11953         (_cpp_parse_expr): Figure out at the end of the routine
11954         whether we saw a valid !defined() expression.
11955         * cppfiles.c (stack_include_file): Update for mi_valid.
11956         (_cpp_pop_file_buffer): Similarly.
11957         * cpplex.c (_cpp_lex_token): Similarly.
11958         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
11959         mi_if_not_defined, mi_lexed): Remove.
11960         (mi_valid): New.
11961         * cpplib.c (do_if): Simplify.
11962         (do_endif, push_conditional, _cpp_handle_directive): Update
11963         for renaming of mi_state to mi_valid.
11964 doc:
11965         * cpp.texi: Add index entries for digraphs, and add comment
11966         that C++ refers to them as alternative tokens.
11968 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
11970         * basic-block.h (CLEANUP_PRE_LOOP): New.
11971         * except.c (finish_eh_generation): Update call of cleanup_cfg.
11972         * sibcall.c (optimize_sibling_calls): Likewise.
11973         * toplev.c (rest_of_compilation): Likewise.
11974         * flow.c (try_forward_edges): Take argument MODE;
11975         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
11976         (try_optimize_cfg): Update call of try_forward_edges.
11978 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
11979                                 Jan Hubicka  <jh@suse.cz>
11981         * (validate_replace_rtx_1): Fix simplification of MINUS.
11983 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11985         PR preprocessor/3669
11986         * cppinit.c (init_dependency_output): Turn off dump requests
11987         if sending dependencies to stdout.
11989 2001-07-28  Richard Henderson  <rth@redhat.com>
11991         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
11992         not optimizing.
11994 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
11996         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
11998 2001-07-28  Kazu Hirata  <kazu@hxi.com>
12000         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
12001         is VAR_DECL first to prevent an ICE.
12003 2001-07-28  Richard Henderson  <rth@redhat.com>
12005         * varasm.c (immed_real_const_1): Don't elide special cases for
12006         nested functions.
12007         (clear_const_double_mem): Clear const_tiny_rtx too.
12009 2001-07-28  Richard Henderson  <rth@redhat.com>
12011         * dwarf2out.c (dw_val_class_offset): New.
12012         (struct dw_ranges_struct, dw_ranges_ref): New.
12013         (ranges_table, ranges_table_allocated): New.
12014         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
12015         (add_AT_offset, add_ranges, output_ranges): New.
12016         (print_die, output_die): Handle dw_val_class_offset.
12017         (attr_checksum, size_of_die, value_format): Likewise.
12018         (gen_lexical_block_die): Handle non-contiguous blocks.
12019         (gen_block_die): Likewise.
12020         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
12021         if needed.  Dump the ranges table.
12022         * final.c (final_start_function): Remove unnecessary notes and
12023         rebuild the block tree before numbering the blocks.
12024         * function.c (reorder_blocks_0): Walk the existing block tree
12025         to unmark all blocks.
12026         (reorder_blocks_1): Create block fragments when duplicate block
12027         notes are seen.
12028         (reorder_fix_fragments): New.
12029         (reorder_blocks): Call it.
12030         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
12032 2001-07-28  Richard Henderson  <rth@redhat.com>
12034         * emit-rtl.c (adjust_address): Make a copy of the memory address.
12036 2001-07-28  Richard Henderson  <rth@redhat.com>
12038         * flow.c (add_to_mem_set_list): New function.
12039         (init_propagate_block_info): Use it.
12040         (mark_set_1): Likewise.
12041         (insn_dead_p): Canonicalize memory address for dead store
12042         comparison.  Allow wider mode stores to kill narrower mode stores.
12043         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
12044         (invalidate_mems_from_set): Don't handle MEMs.
12046 2001-07-28  Kazu Hirata  <kazu@hxi.com>
12048         * config/h8300/h8300.h: Fix formatting.
12050 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
12052         * basic-block.h (EDGE_FREQUENCY): New macro.
12053         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
12054         for new BB/edges.
12055         * flow.c (find_sub_basic_blocks): Likewise.
12056         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
12057         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
12059         * predict.c (DEF_PREDICTOR): New argument FLAGS.
12060         (HITRATE): New macro.
12061         (PRED_FLAG_FIRST_MATCH): New constant.
12062         (predictor_info): New field flgags.
12063         (combine_predictions_for_insn): Use DS theory to combine
12064         probabilities; set the edge probabilities when finished.
12065         (estimate_probability): Avoid duplicated matches
12066         of LOOP_BRANCH heuristics for nested loops; update comment.
12067         * predict.def: Add flags for each prediction, set probabilities
12068         according to B&L paper.
12069         * predict.h (DEF_PREDICTOR): New argument FLAGS.
12071         * profile.c (compute_branch_probabilities):  Cleanup way the edge
12072         probabilities are computed and REG_BR_PROB notes are dropped; if
12073         values does not match, emit error.
12074         (init_branch_prob): Do error instead of warning when profile driven
12075         feedback is missing or corrupt.
12077 2001-07-27  DJ Delorie  <dj@redhat.com>
12079         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
12080         against a constant, try to adjust the compare to have the desired
12081         constant in it so that min/max optimizations happen more often.
12083 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
12085         * flow.c (last_loop_beg_note): New function.
12086         (redirect_edge_and_branch): Use it.
12087         (split_edge): Likewise.
12089         * alias.c (loop_p): Avoid uninitialized memory access.
12091         * flow.c (try_forward_edges): Avoid accessing freed memory.
12093         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
12094         variable access.
12096 2001-07-26  Andrew Haley  <aph@redhat.com>
12097         Joern Rennecke <amylaar@redhat.com>
12099         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
12100         (SUBTARGET_CPP_ENDIAN_SPEC): New.
12101         (SUBTARGET_CPP_SPEC): New.
12102         (CPP_SPEC): Remove.
12103         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
12104         (SUBTARGET_CPP_PTR_SPEC): New.
12105         (CPP_DEFAULT_CPU_SPEC): New.
12106         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
12107         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12108         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
12109         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
12110         (SUBTARGET_CPP_SPEC): Define as an empty string.
12112 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12114         * doc/install.texi (Configuration): Properly link the host
12115         specific instructions also when generating HTML.
12117 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
12119         * flow.c (redirect_edge_and_branch_force): Test
12120         target->global_live_at_start.
12122 2001-07-26  Richard Henderson  <rth@redhat.com>
12124         * simplify-rtx.c (avoid_constant_pool_reference): Export.
12125         * rtl.h (avoid_constant_pool_reference): Declare it.
12126         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
12127         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
12129 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
12131         * rtl.h (cleanup_barriers): Declare.
12132         * jump.c (cleanup_barriers): New function.
12133         * toplev.c (rest_of_compilation): Call cleanup_barriers
12134         before loop optimizer and after bb_reorder.
12136         * flow.c (back_edge_of_syntactic_loop_p): New.
12137         (split_edge): Use it.
12139 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12141         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
12143 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
12145         * cse.c (cse_process_notes): Replace any registers if the address
12146         remains valid.
12148 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
12150         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
12151         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
12152         (propagate_block): Update prototype.
12153         * flow.c (update_life_info): Simplify the CFG and
12154         recalculate the global regs which are alive when
12155         removing dead code during a global update.
12156         (propagate_block): Return non-zero if an INSN is
12157         deleted.
12159 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12161         * Makefile.in (LIBICONV): Define.
12163 2001-07-26  Catherine Moore  <clm@redhat.com>
12165         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
12166         of conditional to avoid tree checking errors.
12168 2001-07-26  Kazu Hirata  <kazu@hxi.com>
12170         * regmove.c (regmove_optimize): Don't replace a reg with
12171         another reg of a different mode.
12173 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
12175         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
12176         limit length of dependency flush list.
12177         * params.h (MAX_PENDING_LIST_LENGTH): Define.
12178         * sched-int.h  (struct deps): Add pending_flush_length field.
12179         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
12180         has 1 element in it.
12181         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
12182         (sched_analyze): After a jump, if the pending memory flush list is too
12183         large, flush the pending lists.
12184         (init_deps): Initialize pending_flush_length to 0.
12185         * doc/invoke.texi (max_pending_list_length): Document parameter.
12187 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
12189         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
12190         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
12191         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
12193 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12195         * cpphash.h (struct_lexer_state): Delete was_skipping.
12196         Move skipping here from struct cpp_reader.
12197         * cpplex.c (parse_identifier): Update.
12198         (_cpp_lex_token): Don't skip tokens in a directive.
12199         * cpplib.c (struct if_stack): Update.
12200         (start_directive, end_directive): Don't change skipping state.
12201         (_cpp_handle_directive): Update.
12202         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
12203         (do_else, do_endif): Update; only check for excess tokens if not
12204         in a skipped conditional block.
12205         (push_conditional): Update for new struct if_stack.
12207 2001-07-26  Graham Stott  <grahams@redhat.com>
12209         * function.c (locate_and_pad_parm): Also pad initial offset
12210         so that the total argument size also includes the padding.
12212 2001-07-26  Graham Stott <grahams@redhat.com>
12214         * gensupport.c (alter_output_for_insn): Correct enable checking failure
12215         change XSTR to XTMPL.
12217         (process_one_cond_exec): Likewise
12219 2001-07-25  Richard Henderson  <rth@redhat.com>
12221         * varasm.c (assemble_variable): Create DECL_RTL before setting
12222         TREE_ASM_WRITTEN.
12224 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
12226         * predict.c (estimate_probability): Avoid duplicated predictions.
12228         * loop.c (find_and_verify_loops): Grok multiple barriers.
12230 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12232         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
12234         * dbxout.c: Consistently use putc instead of fputc.
12235         (print_wide_int): New function; call instead of direct fprintf.
12236         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
12237         (dbxout_type_fields, dbxout_type_method_1): Likewise.
12238         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
12239         (print_int_cst_octal): Likewise.
12240         (print_octal): Show we wrote characters.
12241         (dbxout_type): Set have_used_extensions in more places.
12243 2001-07-25  Catherine Moore  <clm@redhat.com>
12245         * config/v850/v850.c (v850_va_arg):  Use addr
12246         instead of valist to build incr.
12248 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
12250         * flow.c (delete_dead_jumptables): New function.
12251         (life_analyzis): Call it.
12252         * bb-reorder.c (skip_insns_after_block): Handle contradictory
12253         sequences.
12255 2001-07-25  Richard Henderson  <rth@redhat.com>
12257         * except.c (reachable_handlers): Handle a region being removed
12258         out from under a RESX.
12260 2001-07-25  Richard Henderson  <rth@redhat.com>
12262         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
12263         swap GE/GT if it is an fp comparison.
12265 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
12267         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
12268         operands.
12270 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
12272         * ssa.c (rename_insn_1): Do not wrap an assignment to a
12273         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
12274         glitch.
12276         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
12277         throw an exception.
12278         (visit_expression): When attempting to simplify an expression,
12279         retrieve any modes for arguments before they are simplified
12280         to constants.
12282 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
12283             Janis Johnson  <janis@us.ibm.com>
12285         * stmt.c (expand_goto): A nonlocal goto can be a call too.
12286         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
12287         pointer parameters to match documented usage of nonlocal_goto.
12288         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
12289         parameters to their correct order.
12290         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
12291         parameters to their correct order.
12293 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
12295         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
12297 2001-07-25  Jan Hubicka  <jh@suse.cz>
12298             Richard Henderson  <rth@redhat.com>
12300         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
12301         the sequence.
12302         (make_edges): New argument update_p; populate the edge cache if set.
12303         (find_basic_blocks): Update make_edges invocation.
12305 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12307         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
12309 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12311         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
12312         -Acpu and -Amachine.h.
12313         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
12314         Corrected header to say ELF not a.out.
12315         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
12316         when given -msoft-float.
12318 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12320         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
12321         extra multilib parts like arm-elf.
12322         (i960-*-coff*, i960-*-rtems): Should not use collect2.
12323         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
12324         crtfini.o as extra multilib parts.
12326 2001-07-24  Joel Sherrill <joel@OARcorp.com>
12328         * configure.in: Add rtems as a supported thread model.
12329         * gthr-rtems.h: Add missing entry point __gthread_active_p.
12330         * configure: Rebuilt.
12332 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
12334         * stor-layout.c (get_mode_alignment): make it work when
12335         BITS_PER_UNIT is not a power of two.
12336         * builtins.c (get_pointer_alignment): Likewise.
12338 2001-07-24  Richard Henderson  <rth@redhat.com>
12340         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
12341         the retrieved constant into the expected mode.
12343 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
12345         * flow.c (try_simplify_condjump): Avoid duplicated edges.
12346         (verify_flow_info): Check for duplicated edges; clarify
12347         error reporting.
12349         * flow.c (block_label): Update basic_block_for_insn.
12350         (commit_edge_insertions): Call compute_bb_for_insn.
12352         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
12353         returns too.
12355         * flow.c (redirect_edge_and_branch,
12356         try_optimize_cfg): Use redirect_edge_succ_nodup
12357         (redirect_edge_succ_nodup): New.
12358         * basic_block.h (redirect_edge_succ_nodup): Declare.
12360         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
12361         after gcse.
12363 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
12365         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
12366         (try_crossjump_to_edge): Update commetns.
12367         (try_crossjump_bb): Likewise.
12369 2001-07-24  Richard Henderson  <rth@redhat.com>
12371         * combine.c (distribute_notes): Move set of need_refresh
12372         for noop_move_p down to catch all cases.
12374 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
12376         * recog.c (split_all_insns_noflow): New.
12377         * rtl.h (split_all_insns_noflow): Declare.
12378         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
12379         * m68hc11.c (m68hc11_reorg): Likewise.
12380         * sh.c (machine_dependent_reorg): Likewise.
12381         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
12382         call.
12384 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
12386         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
12387         (ashlsi3_n splitter): Likewise.
12388         (lshrsi3_n splitter): Likewise.
12390         (GOTaddr2picreg): Make const SImode.
12391         (sym_label2reg): Likewise.
12392         (symGOT2reg): Likewise.
12393         (symGOTOFF2reg) Likewise.
12395         (casesi_worker_0): Make unspec SImode.
12397 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
12399         * config/sh/sh.c (barrier_align): Check that an operand really is
12400         an insn before extracting its INSN_CODE.
12402 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
12404         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
12405         dangling else.
12407         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
12408         for SImode to prevent overflow.
12410 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12412         * config/mips/irix6-libc-compat.c: New file.
12413         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
12414         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
12415         passing workaround.
12417 2001-07-24  lars brinkhoff  <lars@nocrew.org>
12419         * rtl.texi (REG_POINTER): Document.
12420         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
12421         QFmode, HFmode, TQFmode, QCmode, and HCmode.
12423 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
12425         * flow.c (delete_noop_moves): Do not confuse libcall regions.
12427 2001-07-23  Richard Henderson  <rth@redhat.com>
12429         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
12431 2001-07-23  Kazu Hirata  <kazu@hxi.com>
12433         * config/h8300/h8300-protos.h: Add a prototype for
12434         general_operand_dst_push.
12435         * config/h8300/h8300.c (general_operand_dst_push): New.
12436         * config/h8300/h8300.h (OK_FOR_T): New.
12437         (EXTRA_CONSTRAINT): Use it.
12438         * config/h8300/h8300.md (movqi_push): Remove and integrate into
12439         the existing movqi pattern.
12440         (movhi_push): Likewise.
12442         * reload.c: Fix comment typos.
12444 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
12446         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
12448 2001-07-23  H.J. Lu  (hjl@gnu.org)
12450         * doc/extend.texi: Update __builtin_return_address and
12451         __builtin_frame_address.
12453 2001-07-23  Richard Henderson  <rth@redhat.com>
12455         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
12456         before CSE.
12457         * config/i386/i386.md: New setcc+movzbl peephole2.
12459 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12461         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
12462         * objc/objc-act.c: Include debug.h.
12463         (synth_module_prologue): Save and restore debug hooks too.
12465 2001-07-23  lars brinkhoff  <lars@nocrew.org>
12467         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
12468         and C4X_FLOAT_FORMAT.
12469         (BOOL_TYPE_SIZE): Document.
12471 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
12473         * unroll.c (loop_iterations): Fix miscalculation of initial
12474         giv offset.
12476 2001-07-13  Andrew Haley  <aph@redhat.com>
12478         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
12479         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
12480         * config/sh/sh.c (sh_can_redirect_branch): New function.
12481         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
12482         * reorg.c (steal_delay_list_from_target): Use
12483         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
12485 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
12487         * flow.c (try_simplify_condjump): Unlink insn chain on
12488         fallthru edge; use can_fallthru.
12490 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
12492         * basic-block.h (find_sub_basic_block): Declare.
12493         * flow.c (make_edges): New arguments MIN and MAX;
12494         (find_sub_basic_blocks): Revamp to use make_edges
12495         and purge_dead_edges.
12496         (find_basic_blocks): Update call of find_sub_basic_block.
12498         * recog.c (split_all_insns): Always expect CFG to be consistent;
12499         call find_sub_basic_blocks in case something has changed.
12500         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
12501         has been built.
12503         * basic-block.h (delete_noop_moves): Declare.
12504         * combine.c (combine_instructions): Call it.
12505         (recog_for_combine): Tolerate noop moves
12506         (distribute_notes): Force refresh when register dies at noop move.
12507         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
12508         too.
12509         (life_analysis): Update delete_noop_moves call.
12510         (set_noop_p): Move too ...
12511         * rtlanal.c (noop_move_p): ... here.
12512         * rtl.h (noop_move_p): Declare.
12514         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
12515         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
12516         after combine.
12517         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
12518         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
12520 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
12522         * reload.c (push_reload): Fix typo in comment.
12523         (find_reloads_address): Ditto.
12524         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
12526 2001-07-22  Richard Henderson  <rth@redhat.com>
12528         * flow.c: Grammar check and clarify a lot of comments.
12529         (try_simplify_condjump): Rename variables to be clearer.
12530         (try_forward_edges): Skip complex and fallthru edges.
12531         Rearrange tests to avoid duplicate checks.
12532         (flow_find_cross_jump): Likewise.
12533         (outgoing_edges_match): Allow match if neither branch has
12534         probability data.  Loosen probability match to 5%.
12535         (try_crossjump_to_edge): Hoist repeated indirection into
12536         local variables.
12537         (try_crossjump_bb): Don't check complex edges.  Eliminate
12538         redundant crossjump tests.
12539         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
12540         checks before more expensive checks.
12542 2001-07-22  Richard Henderson  <rth@redhat.com>
12544         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
12545         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
12546         arguments.
12548 2001-07-22  Richard Henderson  <rth@redhat.com>
12550         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
12551         (const_sint32_operand): Likewise.
12552         * m68k.md (anon mulsi pattern): Use const_int_operand not
12553         const_sint32_operand.
12554         (umulsi3_highpart): Zero extend a constant input.
12555         (smulsi3_highpart): Don't bother checking SImode constant.
12556         (const_umulsi3_highpart): Give op3 DImode.
12557         (const_smulsi3_highpart): Likewise.
12559 2001-07-22  Richard Henderson  <rth@redhat.com>
12561         * flow.c (split_block): Make sure bb_note is included in the
12562         new block when splitting before a label.
12564 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
12566         * basic-block.h (redirect_edge_and_branch_force,
12567         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
12568         * flow.c (redirect_edge_and_branch_force,
12569         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
12570         (redirect_edge_and_branch_force): Fix copying of lifeness information.
12571         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
12572         * ifcvt.c (dead_or_predictable): Take BB as an new destination
12573         instead of label; update CFG after transformation.
12574         (find_if_case_1): Update call, use redirect_edge_and_branch_force
12575         for finishing the transformation; handle even case where ELSE
12576         does not follow THEN.
12577         (find_if_case_2): Update call of dead_or_predictable; simplify
12578         CFG update.
12580         * emit-rtl.c (split_branch_probability): New global variable.
12581         (try_split): Take care to set split_branch_probability and
12582         create REG_BR_PROB note for new jump insns.
12583         * md.texi (define_split): Document new feature.
12585         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
12587 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12589         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
12590         (asm_out_file): Remove redundant declaration.
12591         (assemble_asm): Remove old #if 0 block.
12592         (assemble_variable): Remove end of function; debug output is
12593         now handled with global_decl.  Remove old #if 0 block.  Update.
12594         Remove saved_in_section and associated no-op code.
12595         * Makefile.in (varasm.o): Correct dependencies.
12597 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
12599         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
12600         the definition in defaults.h.
12602 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
12604         * jump.c: Update comments.
12605         (delete_barrier_successors, delete_unreferenced_labels,
12606         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
12607         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
12608         jump_optimize, jump_optimize_minimal): Kill.
12609         (rebuild_jump_labels): Move code from jump_optimize_1.
12610         (purge_line_number_notes): Likewise.
12611         (copy_loop_headers): Likewise.
12612         * reg-stack.c: Update comment.
12613         * stmt.c: Likewise.
12614         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
12615         JUMP_AFTER_REGSCAN): Kill.
12616         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
12617         purge_line_number_notes and copy_loop_headers.
12619 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
12620            Richard Henderson  <rth@redhat.com>
12622         * dbxout.c (dbxout_global_decl): New.
12623         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
12624         * sdbout.c (sdbout_finish): New.
12625         (sdbout_debug_hooks): Use it, add comments.
12626         (sdbout_global_decl): Defer initialised public vars to
12627         sdbout_finish.
12628         * varasm.c (assemble_variable): Don't output debug information
12629         for file-scope variables.
12631 2001-07-22  Richard Henderson  <rth@redhat.com>
12633         * config/alpha/alpha.c (get_trap_mode_suffix): New.
12634         (get_round_mode_suffix): New.
12635         (print_operand): Use them for [/].  Remove support for [&'`()+].
12636         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
12637         * config/alpha/alpha.md (attr round_suffix): New.
12638         (attr trap_suffix): New.
12639         (all insns): Set them appropriately.  Use %/ instead of the
12640         myriad punctuators.
12642 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12644         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
12646 2001-07-22  Richard Henderson  <rth@redhat.com>
12648         * regrename.c (regrename_optimize): Compute nregs for each
12649         potential target register.
12651 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
12652            Richard Henderson  <rth@redhat.com>
12654         * dbxout.c (dbxout_global_decl): New.
12655         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
12656         * sdbout.c (sdbout_finish): New.
12657         (sdbout_debug_hooks): Use it, add comments.
12658         (sdbout_global_decl): Defer initialised public vars to
12659         sdbout_finish.
12660         * varasm.c (assemble_variable): Don't output debug information
12661         for file-scope variables.
12663 2001-07-21  H.J. Lu  (hjl@gnu.org)
12665         * config/mips/mips.c (mips_cpu): Moved into ...
12666         (override_options): Here.
12668         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
12669         mips_tune.
12670         (mips_cpu): Removed.
12672 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12674         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
12675         ("iorqi3"): Likewise.
12676         ("xorqi3"): Likewise.
12677         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
12678         ("*subhi3_sp): Likewise.
12679         ("*subhi3"): Likewise.
12680         ("extendhisi2"): Accept D, X and Y as source operand to avoid
12681         reload problems.
12683 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
12685         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
12686         * config/freebsd.h: Likewise.
12687         * config/linux.h: Likewise.
12688         * config/openbsd.h: Likewise.
12689         * config/alpha/linux-elf.h: Likewise.
12690         * config/arm/linux-elf.h: Likewise.
12691         * config/d30v/d30v.h: Likewise.
12692         * config/fr30/fr30.h: Likewise.
12693         * config/ia64/aix.h: Likewise.
12694         * config/ia64/ia64.h: Likewise.
12695         * config/mips/linux.h: Likewise.
12696         * config/pj/pj.h: Likewise.
12697         * config/rs6000/linux.h: Likewise.
12698         * config/sparc/linux.h: Likewise.
12699         * config/sparc/linux64.h: Likewise.
12701 2001-07-20  Bruce Korb  <bkorb@gnu.org>
12703         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
12704         because getc() and char* may disagree on signedness.
12706 2001-07-20  Richard Henderson  <rth@redhat.com>
12708         * doc/rtl.texi (REG_DEAD): Update for current semantics.
12710         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
12711         insns to delete in the presence of cc0 in a jump insn.
12713 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
12714                                 Jan Hubicka  <jh@suse.cz>
12716         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
12717         of doing the change by hand.
12719 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
12721         * rtlanal.c (set_noop_p): Return true for noop jumps.
12723         * expr.c (emit_single_push_insn): Add call to push expander.
12724         * expr.h (optab_index): Add OTI_push
12725         (push_optab): New constant.
12726         * genopinit.c (optabs): Add push_optab.
12727         * optabs.c (init_optab): Init push optab.
12728         * md.texi (push??1): Document
12730 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12732         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
12733         expand to emit the pattern; put a REG_INC note for push/pop
12734         instructions.
12735         ("movdf", "movdf_internal"): Likewise.
12736         ("movsi", "movsi_internal"): Likewise.
12737         ("movsf", "movsf_internal"): Likewise.
12738         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
12740 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12742         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
12743         gen_highpart.
12745 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
12747         * params.def: Change default max inline insns to 100.
12749 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
12751         * combine.c (combine_simplify_rtx): Generate a new shift operation
12752         when simplifying the first operand of a (neg (ashift)) expression.
12754 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
12756         * regclass.c (N_REG_INTS): Use only 32 bits per element.
12758 2001-07-20  Kelley Cook  <kelley.cook@home.com>
12760         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
12761         information.   Move rest into ...
12762         (*-*-solaris): ... here.  Eliminate redundant information and
12763         reword necessary packages section.  Delete 4.x assembler bug info.
12764         (sparc-sun-*): Merge into ...
12765         (sparc-sun-sunos*): here.
12767 2001-07-20  Catherine Moore  <clm@redhat.com>
12769         * config/v850/v850.md (casesi): Generate LABEL_REF
12770         with Pmode.
12772 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
12774         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
12775         * i386.c (ix86_zero_extend_to_Pmode): Make global.
12776         * i386.md (strclrsi expander): Use it.
12778 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
12780         * integrate.c (copy_insn_list): handle
12781         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
12782         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
12783         identically as to CODE_LABEL.
12785         * fold-const (fold): Convert A/B/C to A/(B*C) and
12786         A/(B/C) to (A/B)*C
12788         * except.c (connect_post_landing_pads): Delete the RESX insns.
12790 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
12792         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
12794         * config/mips/mips.md (nmadd/nmsub): Use macro.
12796 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
12798         * cppinit.c (remove_dup_dir): Make static.
12799         (remove_dup_dirs): Make static. Only warn about preempting a
12800         system directory with a non-system directory.
12802 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
12804         * ifcvt.c (noce_try_store_flag_constants): Correct order
12805         of parameters to trunc_int_for_mode.
12807 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
12809         * reorg.c (fill_simple_delay_slots): If an instruction might throw
12810         an exception that will be caught within this function, do not fill
12811         its delay slot with any subsequent instruction.
12813 2001-07-19  Steve Ellcey <sje@cup.hp.com>
12815         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
12816         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
12817         pointer extension instruction.
12818         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
12819         * simplify-rtx.c (simplify_unary_operation) Likewise.
12820         * explow.c (convert_memory_address) Check value of
12821         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
12822         less than zero.
12823         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
12824         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
12825         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
12826         Add Multilib Support.
12827         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
12828         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
12829         Add Multilib Support.
12830         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
12831         support.
12832         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
12833         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
12834         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
12836 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
12838         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
12839         old and new operands in `<', `3' and `b'.
12841 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12843         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
12844         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
12845         (toplev.o): Don't depend on xcoffout.h.
12846         * c-decl.c: Include debug.h
12847         (duplicate_decls): Use debug hook.
12848         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
12849         (dbx_debug_hooks, xcoff_debug_hooks): Update.
12850         (dbxout_types): Remove.
12851         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
12852         * debug.c (do_nothing_debug_hooks): Update.
12853         (debug_true_tree, debug_nothing_rtx): New.
12854         * debug.h (struct rtx_def): New.
12855         (struct gcc_debug_hooks): New hooks ignore_block,
12856         outlining_inline_function and label.
12857         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
12858         dwarf2out_frame_finish): New.
12859         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
12860         Make static, update prototype.
12861         (dwarf2_debug_hooks): Update.
12862         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
12863         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
12864         * dwarfout.c (dwarf_debug_hooks): Update.
12865         * emit-rtl.c: Include debug.h.
12866         (remove_unnecessary_notes): Use debug hook.
12867         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
12868         (final_scan_insn): Use debug hook.
12869         * integrate.c (output_inline_function): Use debug hook.
12870         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
12871         (sdb_debug_hooks): Update.
12872         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
12873         * toplev.c: Don't include xcoffout.h.
12874         (note_outlining_of_inline_function, debug_ignore_block): Remove.
12875         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
12876         Remove.
12877         * tree.h (dwarf2out_do_frame): Remove.
12879 2001-07-19  Catherine Moore  <clm@cygnus.com>
12881         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
12883 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
12885         * reload1.c (eliminate_regs_in_insn): When updating a set
12886         to the frame pointer to the hardware frame pointer, perform
12887         the update always not just when REPLACE is set.
12889         * reload1.c (choose_reload_regs): Don't inherit a reload
12890         that crosses multiple registers if registers past the first
12891         don't fit in the desired class.
12893         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
12894         when negating constants.
12896 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
12898         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
12899         * doc/tree.texi: Ditto.
12901 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
12902             Jakub Jelinek  <jakub@redhat.com>
12904         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
12905         (extract_cie_info): Handle "eh" augmentation properly,
12906         remember eh_ptr.
12907         (struct frame_state, __frame_state_for): New.
12909 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12911         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
12912         HANDLE_SYSV_PRAGMA): Define.
12913         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
12914         previous args.
12915         (copy_object): Caller changed.
12917 2001-07-19  Andreas Schwab  <schwab@suse.de>
12919         * configure.in (assembler dwarf2 debug_line support): Define nop
12920         insn for m68k.
12921         * configure: Regenerated.
12923 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12925         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
12926         dwarfout.h.
12927         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
12928         to conditionally compiled block.
12929         (dbx_debug_hooks, xcoff_debug_hooks): Update.
12930         * dbxout.h (dbxout_function): Remove.
12931         * debug.c (do_nothing_debug_hooks): Update.
12932         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
12933         global_decl, deferred_inline_function.
12934         * dwarf2out.c (dwarf2_debug_hooks): Update.
12935         (dwarf2out_global_decl): New.
12936         * dwarfout.c: Don't include dwarfout.h.
12937         (dwarfout_global_decl, dwarfout_function_decl,
12938         dwarfout_deferred_inline_function): New.
12939         (dwarf_debug_hooks): Update.
12940         * dwarfout.h: Remove.
12941         * final.c: Don't include dwarfout.h.
12942         * sdbout.c (sdbout_global_decl): New.
12943         (sdbout_debug_hooks): Update.
12944         * toplev.c: Don't include dwarfout.h.
12945         (check_global_declarations, rest_of_compilation): Use new debug hooks.
12946         (note_deferral_of_defined_inline_function): Remove.
12947         * toplev.h (note_deferral_of_defined_inline_function): Remove.
12948         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
12949         * ch/lex.c: Don't include dwarfout.h.
12950         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
12951         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
12952         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
12953         * cp/optimize.c: Include debug.h.
12954         (maybe_clone_body): Use debug hook.
12955         * cp/semantics.c: Include debug.h.
12956         (expand_body): Use debug hook.
12957         * po/POTFILES.in: Remove dwarfout.h.
12959 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12961         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
12962         * c-parse.in (yyerror, _yylex): Similarly.
12963         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
12964         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
12965         Update comments.
12966         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
12967         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
12969 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
12971         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
12972         in-class declaration at -g1.  Fixes c++/2814.
12974 2001-07-18  Richard Henderson  <rth@redhat.com>
12976         * doc/md.texi (reload_in/out): Document restrictions in predicates
12977         and constraints for these patterns.  Document empty string matching
12978         ALL_REGS.
12980 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12982         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
12984 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
12986         * cse.c: Undo my previous patch.
12988 2001-07-18  Tom Tromey  <tromey@redhat.com>
12990         For PR java/2812:
12991         * configure: Rebuilt.
12992         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
12993         instead.
12994         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
12996 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
12997                                 Jan Hubicka  <jh@suse.cz>
12999         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
13000         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
13001         * jump.c (mark_jump_label): Do not forward branches.
13003 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
13005         * cse.c (delete_trivially_dead_insns): Delete the libcall block
13006         when return value is unused.
13008 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13010         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
13012 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
13014         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
13015         on error.  We can't blindly return the result of
13016         pthread_mutex_trylock because it returns a positive number on
13017         error, while we must return -1 on error.
13018         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
13019         fixes.
13020         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
13022 2001-07-18  Andreas Jaeger  <aj@suse.de>
13024         * integrate.c (output_inline_function): Correct type of debug_hooks.
13026 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
13028         * combine.c (combine_simplify_rtx): DIV can be treated
13029         associatively for floats if unsafe math optimisations are enabled.
13031 2001-07-17  Richard Henderson  <rth@redhat.com>
13033         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
13035 2001-07-17  Richard Henderson  <rth@redhat.com>
13037         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
13038         don't force the function address into a register.
13039         (expand_call, emit_library_call_value_1): Update callers.
13040         * builtins.c (expand_builtin_apply): Likewise.
13041         * expr.h (prepare_call_address): Update decl.
13043 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
13045         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
13046         config directory.
13047         * config/i386/chorus.h: Move up.
13048         * config/sparc/chorus.h: Likewise.
13049         * config/rs6000/chorus.h: Likewise.
13050         * config/chorus.h: Moved here.
13052 2001-07-17  Andreas Schwab  <schwab@suse.de>
13054         * configure.in  (assembler eh_frame optimization): Handle big
13055         endian.
13056         * configure: Regenerated.
13058 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
13060         * expr.c (epxand_expr): Convert divisions into multiplications by
13061         reciprocals if -ffast-math.
13063 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13065         * dbxout.c (dbxout_really_begin_function): Rename to
13066         dbxout_begin_function.
13067         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13068         (dbxout_begin_function): Remove.
13069         (dbxout_function): Update.
13070         (dbxout_source_line): Update prototype.
13071         * dbxout.h (dbxout_begin_function): Remove.
13072         * debug.c (do_nothing_debug_hooks): Update.
13073         (debug_nothing_tree): Update.
13074         (debug_nothing_charstar_rtx): Remove.
13075         * debug.h (union tree_node): Declare.
13076         (struct rtx_def): Remove.
13077         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
13078         begin_function.  Change source_line prototype.
13079         (debug_nothing_tree): New.
13080         (debug_nothing_charstar_rtx): Delete.
13081         (dwarf2out_begin_prologue): Moved from ...
13082         * tree.h: ... here.
13083         * dwarf2out.c (dwarf2_debug_hooks): Update.
13084         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
13085         debug info, call dwarf2out_source_line.
13086         (dwarf2out_souce_line): Update prototype.
13087         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
13088         Change prototype, make static.
13089         (dwarfout_source_line): Update prototype.
13090         (dwarf_debug_hooks): Update.
13091         * dwarfout.h (dwarfout_begin_function): Remove.
13092         * final.c (final_start_function, final_scan_insn): Use appropriate
13093         debug hooks, update to use notice_source_line.
13094         (output_source_line): Rename notice_source_line.  Don't call the
13095         source_line debug hook.
13096         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
13097         make static, update prototype.
13098         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
13099         prototype.
13100         (sdbout_end_prologue): New.
13101         (sdbout_source_line): Update prototype.
13102         (sdbout_debug_hooks): Update.
13103         (sdbout_symbol): Remove unused var.
13104         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
13105         Delete.
13106         * varasm.c: Include debug.h.
13107         (assemble_start_function): Use begin_function debug_hook.
13108         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13109         update with prototype.
13110         (xcoffout_source_line): Update prototype.
13111         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
13112         update prototype.
13113         (xcoffout_source_line): Update prototype.
13115 2001-07-17  Richard Henderson  <rth@redhat.com>
13117         * c-typeck.c (build_binary_op): Do not shorten unsigned
13118         right shift after sign extension.
13120 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
13122         * combine.c (combine_simplify_rtx): Attempt to simplify
13123         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
13125         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
13126         (simplify_binary_operation, simplify_unary_operation,
13127          simplify_relational_operation): Use it.
13129         * combine.c (combine_simplify_rtx): Don't do associative law
13130         on divisions; allow associative law on floats.
13132 2001-07-17  H.J. Lu <hjl@gnu.org>
13133             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13135         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
13136         ASM_OUTPUT_WEAK_ALIAS are defined.
13137         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
13138         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
13139         Moved ...
13140         * config/mips/iris5.h: ... here.
13141         (HANDLE_SYSV_PRAGMA): Defined as 1.
13142         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
13143         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
13144         symbol.
13146 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
13148         * c-parse.in (all_prefix_attributes): New variable.
13149         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
13150         (maybe_resetattrs): New production.
13151         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
13152         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
13153         notype_initdcl, nested_function, notype_nested_function,
13154         component_decl, components, components_notype,
13155         component_declarator, component_notype_declarator,
13156         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
13157         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
13158         after a comma being applied to more than one declarator.
13159         * doc/extend.texi (Attribute Syntax): Update.  Remove
13160         documentation of bugs that are no longer present.
13162 2001-07-13  Eric Christopher  <echristo@redhat.com>
13164         * config/mips/mips.h: Change TUNE_MIPS* options to use
13165         mips_tune.
13166         (EXTRA_SPECS): Add cc1_cpu_spec.
13167         * config/mips/mips.md (muldf3): Fix typo.
13169 2001-07-16  Richard Henderson  <rth@redhat.com>
13171         * config/m68k/m68k.c: Include expr.h and reload.h.
13172         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
13173         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
13175 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
13176             Richard Henderson  <rth@redhat.com>
13178         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
13179         (insn_live_p): Fix fall off end of function.
13180         (dead_libcall_p): Remove COUNTS argument; update callers.
13181         (delete_trivially_dead_insns): Remove unused variables.
13183 2001-07-17  Andreas Jaeger  <aj@suse.de>
13185         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
13186         x86-64 pic support.
13188         * lcm.c (optimize_mode_switching): Avoid warning for unused
13189         variable if !NORMAL_MODE.
13191         * flow.c (try_crossjump_to_edge): Remove unused variable.
13193 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13195         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
13196         atexit declaration in stdlib.h.
13198 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
13200         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
13202 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13204         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
13205         * except.c (finish_eh_generation): Update call of cleanup_cfg;
13206         do rebuild_jump_labels instead of jump_optimize
13207         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
13208         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
13209         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
13211         * flow.c: Include timevar.h
13212         (find_basic_block): Push/pop timevar;
13213         (cleanup_cfg): Likewise.
13214         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
13215         * Makefile: Add dependencies on timevar.h
13217         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
13218         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
13220         * rtl.h (delete_trivially_dead_insns): Add new parameter.
13221         * toplev.c (rest_of_compilation): Update calls.
13222         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
13223         (delete_trivially_dead_insns): ... here; accept new argument
13224         preserve_basic_blocks; preserve basic blocks if set.
13226         * reg-stack.c (stack_regs_mentioned): Return 0 if
13227         stack_regs_mentioned_data is not initialized.
13228         (reg_to_stack): Make stack_regs_mentioned survive after the
13229         reg-stack is completted; do not call cleanup_cfg.
13230         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
13231         make cleanup_cfg after bb-reorder to output to debug file.
13233 2001-07-16  Richard Henderson  <rth@redhat.com>
13235         * regclass.c (init_reg_sets): Use only 32 bits per initializer
13236         from int_reg_class_contents.
13238 2001-07-16  Richard Henderson  <rth@redhat.com>
13240         * hard-reg-set.h (regs_invalidated_by_call): Declare.
13241         * regclass.c (regs_invalidated_by_call): Move from cse.c.
13242         (init_reg_sets_1): Move initialization from cse_main.
13243         * cse.c (regs_invalidated_by_call): Move to regclass.c.
13244         (cse_main): Move its initialization also.
13245         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
13246         * flow.c (propagate_one_insn): Likewise.
13247         * gcse.c (compute_hash_table): Likewise.
13248         (compute_kill_rd, compute_store_table): Likewise.
13249         * sched-deps.c (sched_analyze_1): Likewise.
13251 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
13253         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
13254         gen_rtx_SET.
13256 2001-07-16  Steve Ellcey <sje@cup.hp.com>
13258         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
13259         in if statement so we don't access undefined memory.
13261 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
13263         * gcse.c: Update comment at top.
13264         Update comment on mem handling.
13265         mem_last_set, mem_first_set, mem_set_in_block: gone.
13266         Declaration of reg_set_info: gone.
13267         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
13268         pointless with load_killed_in_block_p (they are *more*
13269         conservative then it, not less, and less accurate).
13270         (oprs_not_set_p): Ditto.
13271         (alloc_gcse_mem): Don't allocate mem_set_in_block
13272         (free_gcse_mem): Don't free it, either.
13273         (record_last_mem_set_info): Update comment in front, remove
13274         mem_*set_* stuff. Note the reason we don't handle stores directly
13275         here.
13276         (compute_hash_table): Update comments to reflect reality. Remove
13277         mem_*set_* references.
13278         (reset_opr_set_tables): Remove mem_*set_* references.
13279         (mark_call): Ditto.
13280         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
13281         (mark_clobber): Ditto (on both parts, we double set here too).
13282         (expr_killed_p): Remove mem_set_in_block test.
13283         (compute_transp): Remove mem_set_in_block test.
13285         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
13286         of edge, and removal of phi alternative to dump file.
13287         (ssa_ccp_substitute_constants): Add note about register now being
13288         constant, and which uses were replaced in what insns to dump file.
13290 2001-07-16  Andreas Jaeger  <aj@suse.de>
13292         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
13293         variables of type HOST_WIDEST_INT.
13295         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
13296         (__bb_exit_func): Correct type of count_max to avoid overflow.
13297         (num_digits): Handle long long argument.
13299         * combine.c (gen_lowpart_for_combine): Remove unused variable.
13301 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13303         * output.h (sdb_begin_function_line): Restore as an extern
13304         variable.
13305         * sdbout.c (sdb_begin_function_line): Make extern.
13307 2001-07-15  Richard Henderson  <rth@redhat.com>
13309         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
13310         * genrecog.c (maybe_both_true_mode): New.
13311         (maybe_both_true_2): Use it.
13312         (write_switch): Don't put Pmode in a switch.
13313         * rtl.c (mode arrays): Don't explicitly size them.
13315 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
13317         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
13318         handling; move unconditional splitting before mode switching.
13320         * i386.md (type): Add fistp type.
13321         (i387, length_attr, scheduling definitions): Handle this type.
13322         (fix_trunc?f?i2): Revamp to use mode switching.
13323         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
13324         * i386.h (fp_cw_mode): New enum
13325         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
13326         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
13328 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13330         * Makefile.in (integrate.o): Add debug.h.
13331         * integrate.c (debug.h): Add.
13332         (output_inline_function): Save, reset, and restore debug_hooks.
13334 2001-07-15  Richard Henderson  <rth@redhat.com>
13336         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
13337         instead of COMPARE for the EQUIV expression.
13339 2001-07-15  Richard Henderson  <rth@redhat.com>
13341         * flow.c (redirect_edge_and_branch_force): Initialize
13342         global_live_at_start and global_live_at_end.
13343         (allocate_bb_life_data): Export.
13344         * basic-block.h (allocate_bb_life_data): Declare.
13345         * toplev.c (rest_of_compilation): Call it.
13347 2001-07-15  Richard Henderson  <rth@redhat.com>
13349         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
13350         (alpha_tablejump_best_label): New.
13351         * config/alpha/alpha-protos.h: Declare them.
13352         * config/alpha/alpha.md: Use braced strings for code blocks.
13353         (tablejump_osf): Break out add with r29.
13354         (tablejump_osf_internal): Remove.
13355         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
13356         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
13358 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
13360         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
13361         of the movable.
13363         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
13365         * i386-protos.h (ix86_split_fp_branch): Update prototype.
13366         (ix86_fp_jump_nontrivial_p): New.
13367         * i386.md (fp_jcc_?): Update call of split_fp_branch;
13368         use ix86_fp_jump_nontrivial_p.
13369         * i386.c (ix86_fp_jump_nontrivial_p): New.
13370         (ix86_split_fp_branch): Accept code instead of rtx.
13371         (ix86_expand_compare): Expand comparison early in case
13372         doing so is resonably cheap.
13374 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
13376         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
13377         not 'machine'.
13378         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
13379         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
13381 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
13383         * dbxout.c (dbxout_source_line): Make static, update prototype.
13384         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
13385         (dbxout_init, dbxout_finish, dbxout_source_line,
13386         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
13387         * dbxout.h (dbxout_source_line): Delete.
13388         * debug.c (debug_nothing_file, debug_nothing_file_int,
13389         debug_nothing_file_charstar_rtx): New.
13390         (do_nothing_debug_hooks): Update.
13391         (debug_nothing_void, debug_nothing_charstar_rtx,
13392         dwarf2out_end_epilogue): New.
13393         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13394         * debug.h (struct rtx_def): Declare.
13395         (gcc_debug_hooks): New hooks source_line, end_epilogue
13396         and end_function.
13397         (debug_nothing_void, debug_nothing_charstar_rtx,
13398         dwarf2out_end_epilogue): New.
13399         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
13400         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
13401         (dwarf2_debug_hooks): Update.
13402         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
13403         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
13404         * dwarf2out.h (dwarf2out_source_line): Remove.
13405         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
13406         Make static, update prototype.
13407         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
13408         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
13409         (dwarf_debug_hooks): Update.
13410         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
13411         dwarfout_end_function): Remove.
13412         * final.c (profile_function): Use debug hooks for ending functions
13413         and epilogues.
13414         (output_source_line, final_end_function): Update prototype,
13415         use debug hooks.
13416         (final_start_function, final_scan_insn): Update.
13417         * output.h (sdb_begin_function_line): Remove.
13418         (final_end_function): Update prototype.
13419         * sdbout.c (sdb_begin_function_line): Make static.
13420         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
13421         (sdbout_source_line): New.
13422         (sdbout_end_epilogue, sdbout_end_function): Make static, update
13423         prototypes.
13424         (sdb_debug_hooks): Update.
13425         (sdbout_init, sdbout_source_line,
13426         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
13427         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
13428         * toplev.c (compile_file, rest_of_compilation): Update.
13429         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
13430         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
13431         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
13432         Update for prototype changes.
13433         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
13434         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
13436 2001-07-15  Richard Henderson  <rth@redhat.com>
13438         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
13439         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
13440         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
13441         * config/alpha/alpha.c: Likewise.
13442         * config/alpha/alpha.md: Likewise.
13443         * config/alpha/alpha32.h: Likewise.
13444         * config/alpha/vms.h: Likewise.
13445         (OPEN_VMS): Remove.
13447 2001-07-14  Richard Henderson  <rth@redhat.com>
13449         * config/alpha/alpha.md: Use define_constants for unspec values.
13450         Substitute throughout.
13452 2001-07-14  Tim Josling  <tej@melbpc.org.au>
13454         * tree.def (EXPON_EXPR) remove. Never supported anyway.
13456 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13458         * pa.md: Remove unused constraints from define_split's.
13460 2001-04-14  Richard Henderson  <rth@redhat.com>
13462         * ifcvt.c (find_cond_trap): Test for exit block.
13464 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
13466         Re-install recently reverted patch.
13467         * emit-rtl.c (try_split): Update mark_jump_label call.
13468         * flow.c (find_sub_basic_blocks): Likewise.
13469         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13470         jump_back_p): Kill.
13471         (mark_all_labels): Kill second parameter.
13472         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13473         (rebuild_jump_labels, jump_optimize_minimal): Update call
13474         of jump_optimize_1.
13475         (jump_optimize_1): Kill crossjumping code.
13476         (mark_jump_label): Kill cross_jump parameter.
13477         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13478         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13479         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13480          splitting.
13481         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13482         DFI_bpro.
13483         (dump_file_info): Likewise.
13484         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13485         reorganize passes to do reg-stack first, bb-reorder second.
13486         * invoke.texi (-d letters doc): Remove the jump2 pass.
13488 2001-07-14  Richard Henderson  <rth@redhat.com>
13490         * ifcvt.c (find_cond_trap): New.
13491         (find_if_header): Call it.
13492         (merge_if_block): Relax existing jump sanity check.
13493         * jump.c (jump_optimize_1): Remove conditional trap handling.
13495 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
13497         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
13498         millicode.
13499         (insn_refs_are_delayed): Correct comment.
13500         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
13501         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
13502         instead of r31.  Make associated insn !TARGET_64BIT, and
13503         provide an additional 64-bit insn that clobbers r2.
13504         (divsi3): Likewise.
13505         (udivsi3): Likewise.
13506         (modsi3): Likewise.
13507         (umodsi3): Likewise.
13509 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
13511         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
13513         * flow.c (redirect_edge_and_branch_force, split_edge,
13514         try_crossjump_to_edge): Use set_block_for_new_insns.
13515         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
13517 2001-07-13  H.J. Lu  (hjl@gnu.org)
13519         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
13520         the correct patch.
13522 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
13524         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
13526 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
13528         * c-common.c (decl_attributes): Take a pointer to the node to
13529         which attributes are to be attached, and a flags argument.
13530         * c-common.h (enum attribute_flags): New.
13531         (decl_attributes): Update prototype.
13532         * c-decl.c (start_decl, push_parm_decl, finish_struct,
13533         finish_enum, start_function): Update calls to decl_attributes.
13534         * c-parse.in (component_declarator, component_notype_declarator,
13535         label): Update calls to decl_attributes.
13537 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
13539         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
13540         * config/avr/avr.c (legitimate_address_p): Return value changed
13541         from letter to register classes. For better debugging.
13543 2001-07-13  Kazu Hirata  <kazu@hxi.com>
13545         * jump.c (reversed_comparison_code_parts): Fix comment typos.
13547 2001-07-13  H.J. Lu  (hjl@gnu.org)
13549         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
13551 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
13553         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
13554         correctly for shared configurations.
13555         * config/t-libgcc-pic:  New.
13556         * config/{i386,m68k,sparc}/t-openbsd:  New.
13557         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
13558         Support -shared.  Support debugging libraries with -g.
13559         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
13560         frame information does not emit pointer diffs.
13561         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
13562         emit pointer diffs.
13564 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
13566         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
13568 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
13570         * combine.c (try_combine): Ensure const_int pow2 is positive.
13572 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
13574         * config.gcc: Add configuration for s/390.
13575         * config/s390/s390.c: New. Subroutines for code generation.
13576         * config/s390/s390.h: New. Definitions for s/390.
13577         * config/s390/s390-protos.h: New. Prototypes.
13578         * config/s390/linux.h: New. Definitions for linux for s/390.
13579         * config/s390/linux64.h: New. Definitions for linux for zSeries.
13580         * config/s390/t-linux: New. Makefile fragment.
13581         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
13582         * config/s390/fixdfdi.h: New. Fix L_fix*di.
13584 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
13586         * emit-rtl.c (try_split): Update mark_jump_label call.
13587         * flow.c (find_sub_basic_blocks): Likewise.
13588         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
13589         jump_back_p): Kill.
13590         (mark_all_labels): Kill second parameter.
13591         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
13592         (rebuild_jump_labels, jump_optimize_minimal): Update call
13593         of jump_optimize_1.
13594         (jump_optimize_1): Kill crossjumping code.
13595         (mark_jump_label): Kill cross_jump parameter.
13596         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
13597         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
13598         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
13599          splitting.
13600         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
13601         DFI_bpro.
13602         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
13603         reorganize passes to do reg-stack first, bb-reorder second.
13604         * invoke.texi (-d letters doc): Remove the jump2 pass.
13606 2001-07-12  Steve Ellcey <sje@cup.hp.com>
13608         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
13610 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13612         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
13613         basic blocks.
13614         (verify_flow_info): Make diagnostics prettier.
13616 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
13618         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
13620         * flow.c (outgoing_edges_match): Return early if condition reversal
13621         failed.
13623 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
13625         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
13626         (mips_move_2words): When splitting a move into two instructions,
13627         prefix the second address operand with '%D'.
13629 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
13631         * Makefile.in (final.o): Depend on debug.h.
13632         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
13633         (dbx_debug_hooks): Add new hooks.
13634         (xcoff_debug_hooks): New.
13635         * debug.c (debug_nothing_file_int_int): New.
13636         (do_nothing_debug_hooks): Update.
13637         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
13638         (debug_nothing_file_int_int): New.
13639         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
13640         static, update prototype.
13641         (dwarf2_debug_hooks): Update.
13642         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
13643         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
13644         static, update prototype.
13645         (dwarf_debug_hooks): Update.
13646         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
13647         * final.c: Include debug.h.
13648         (final_scan_insn): Use debug hooks when beginning and ending blocks.
13649         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
13650         static, update prototype.
13651         (sdb_debug_hooks): Update.
13652         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
13653         * toplev.c: Distinguish between xcoff and dbx.
13655         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
13656         Call all debug hooks, not just dwarf ones.
13658 2001-07-11  Timothy Wall  <twall@redhat.com>
13660         * config.gcc: Add configuration for AIX5/IA64.
13661         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
13662         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
13663         support prefix/suffix code.
13664         * config/ia64/t-aix: New.  Makefile fragment.
13665         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
13667 2001-07-11  Kazu Hirata  <kazu@hxi.com>
13669         * recog.c (validate_change): Fix a comment typo.
13671 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
13673         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
13674         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
13675         hooks directly.
13676         * dbxout.c (dbx_debug_hooks): Add new hooks.
13677         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
13678         make static.
13679         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
13680         make static.
13681         * dbxout.h (dbxout_start_new_source_file,
13682         dbxout_resume_previous_source_file): Delete.
13683         * debug.c (do_nothing_debug_hooks): Add new hooks.
13684         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
13685         (debug_nothing_int_charstar, debug_nothing_int): New.
13686         * debug.h (gcc_debug_hooks): New hooks define, undef,
13687         start_source_file and end_source_file.
13688         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
13689         (debug_nothing_int_charstar, debug_nothing_int): New.
13690         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
13691         the conditionally compiled section.
13692         (dwarf2out_start_source_file, dwarf2out_end_source_file,
13693         dwarf2out_define, dwarf2out_undef): Make static.
13694         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
13695         dwarf2out_define, dwarf2out_undef): Remove.
13696         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
13697         (dwarfout_start_source_file, dwarfout_end_source_file,
13698         dwarfout_define, dwarfout_undef): Make static.
13699         (dwarfout_start_source_file_check,
13700         dwarfout_end_source_file_check): New.
13701         (dwarfout_define, dwarfout_finish): Update.
13702         * dwarfout.h (dwarfout_start_new_source_file,
13703         dwarfout_resume_previous_source_file, dwarfout_define,
13704         dwarfout_undef): Remove.
13705         * sdbout.c (sdb_debug_hooks): Add new hooks.
13706         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
13707         make static.
13708         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
13709         make static, take an arg.
13710         * sdbout.h (sdbout_start_new_source_file,
13711         sdbout_resume_previous_source_file): Delete.
13712         * toplev.c (debug_start_source_file, debug_end_source_file,
13713         debug_define, debug_undef): Delete.
13714         * toplev.h (debug_start_source_file, debug_end_source_file,
13715         debug_define, debug_undef): Delete.
13717         * java/jcf-parse.c: Include debug.h.
13718         (parse_class_file): Update to use debug hooks directly.
13719         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
13721 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13723         * alias.c (set_mem_alias_set): New function.
13724         * rtl.h (set_mem_alias_set): Declare it.
13725         * builtins.c (expand_builtin_return_addr): Call it instead of
13726         using MEM_ALIAS_SET accessor.
13727         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
13728         (get_memory_rtx, expand_builtin_va_arg): Likewise.
13729         (expand_builtin_va_copy):Likewise.
13730         * caller-save.c (setup_save_areas): Likewise.
13731         * calls.c (compute_argument_addresses): Likewise.
13732         * explow.c (set_mem_attributes): Likewise.
13733         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
13734         (expand_assignment, store_constructor_field, store_field): Likewise.
13735         (expand_expr_unaligned): Likewise.
13736         * function.c (assign_stack_temp_for_type): Likewise.
13737         (put_reg_into_stack, gen_mem_addressof): Likewise.
13738         * ifcvt.c (noce_try_cmove_arith): Likewise.
13739         * reload1.c (reload, alter_reg): Likewise.
13740         * config/alpha/alpha.c (get_aligned_mem): Likewise.
13741         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
13742         (alpha_expand_unaligned_store): Likewise
13743         (alpha_expand_unaligned_load_words): Likewise.
13744         (alpha_expand_unaligned_store_words): Likewise.
13745         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
13746         (alpha_expand_epilogue): Likewise.
13747         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
13748         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
13749         * config/i386/i386.c (legitimize_pic_address): Likewise.
13750         * config/i960/i960.c (setup_incoming_varargs): Likewise.
13751         * config/ia64/ia64.c (spill_restore_mem): Likewise.
13752         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13753         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
13754         * config/mips/mips.c (mips_va_arg): Likewise.
13755         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
13756         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
13757         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
13758         (setup_incoming_varargs, rs6000_va_arg): Likewise.
13759         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
13760         (rs6000_emit_epilogue): Likewise.
13761         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
13762         * config/sparc/sparc.c (sparc_va_arg): Likewise.
13763         * config/v850/v850.c (v850_va_arg): Likewise.
13765 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
13767         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
13768         when fallthru edge is present.
13769         (mege_blocks): Handle case where creation of jump insn
13770         is required.
13772         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
13773         CLEANUP_POST_REGSTACK): New constants.
13774         * except.c (finish_eh_generation): Update call of cleanup_cfg,
13775         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
13776         * output.h (cleanup_cfg): Update prototype.
13777         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
13778         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
13779         cleanup_cfg call; kill missleading comment.
13780         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
13781         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
13782         parameter; control optimizations performed using it.
13783         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
13784         try_crossjump_bb): New functions.
13786 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13788         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
13789         extern.
13790         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
13791         pa_output_function_prologue.
13792         * pa-protos.h (pa_output_function_prologue): New prototype.
13794 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13796         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
13797         and low to get correct sign extension in low+high test.
13799 2001-07-11  Janis Johnson <janis@us.ibm.com>
13801         * gcov.c (arcdata): Use gcov_type to fix branch percentage
13802         for large hit count.
13804         * profile.c (branch_prob): Fix .bbg info for computed gotos
13805         and C++ EH code.
13807 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
13809         * stmt.c (parse_output_constraint): New function, split out
13810         from ...
13811         (expand_asm_operands): ... here.  Use parse_output_constraint.
13812         * tree.h (parse_output_constraint): Declare it.
13814 2001-07-11  Richard Henderson  <rth@redhat.com>
13816         * bitmap.c: Comment some functions; fiddle whitespace.
13817         (bitmap_free): Don't export.
13818         (bitmap_element_allocate): Use memset.
13819         * bitmap.h (bitmap_free): Don't declare.
13821 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
13823         * gcse.c, lcm.c, sched-deps.c:
13824         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
13826         * flow.c (flow_loops_find): Free dom if we found no loops, since
13827         we aren't going to save it.
13829         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
13830         done.
13832 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
13834         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
13836 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13838         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
13839         #ifndef DWARF2_DEBUGGING_INFO.
13841 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
13843         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
13845 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
13847         * config/mips/mips.c (gen_int_relational): Tell the caller not to
13848         reverse a branch if a NE comparison is implemented with GTU.
13850 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
13851             H.J. Lu  <hjl@gnu.org>
13853         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
13854         constant addresses.
13855         (call_internal2): Likewise.
13856         (call_value_internal1): Likewise.
13857         (call_value_internal2): Likewise.
13858         (call_value_multiple_internal1): Likewise.
13859         (call_value_multiple_internal2): Likewise.
13861 2001-07-10  Kazu Hirata  <kazu@hxi.com>
13863         * calls.c (emit_library_call_value_1): Fix a comment typo.
13864         * dwarf2out.c (mem_loc_descriptor): Likewise.
13865         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
13867 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
13869         * simplify-rtx.c (simplify_subreg): Fix typo in comment
13871 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13873         * recog.c (offsettable_address_p): Handle LO_SUM case.
13874         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
13875         instead of plus_constant.
13877 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13879         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
13880         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
13882 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13884         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
13885         adjust_address_nv instead of plus_constant.
13887 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
13889         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
13890         dwarf2out.o): Depend on debug.h, wrap long lines.
13891         * dbxout.c: Include debug.h.
13892         (dbx_debug_hooks): New.
13893         (dbxout_init): Make static, take just 2 args.
13894         (dbxout_finish): Make static.
13895         * dbxout.h (dbxout_init, dbxout_finish): Delete.
13896         * debug.c: New file.
13897         * debug.h: New file.
13898         * dwarf2out.c: Include debug.h.
13899         (dwarf2_debug_hooks): New.
13900         (dwarf2out_init): Make static.
13901         (dwarf2out_finish): Make static, take 2 args.
13902         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
13903         * dwarfout.c: Include debug.h.
13904         (dwarf_debug_hooks): New.
13905         (dwarfout_init): Make static.
13906         (dwarfout_finish): Make static, take 2 args.
13907         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
13908         * sdbout.c: Include debug.h.
13909         (sdb_debug_hooks): New.
13910         (sdbout_init): Make static, take 2 args.
13911         * sdbout.h (sdbout_init): Delete.
13912         * toplev.c: Include debug.h.
13913         (debug_hooks): New.
13914         (compile_file): Set deubg_hooks based on command line options.
13915         Use the hooks unconditionally rather than conditional compilation.
13917 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
13919         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
13920         first_insn_after_basic_block_note instead.
13922         * df.c (df_bb_refs_unlink): #if 0 out for now.
13924 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
13926         * ssa.h: Add prototype for ssa_const_prop
13927         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
13928         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
13929         (ssa_fast_dce): Remove unused variable
13931 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
13933         * diagnostic.c (finish_diagnostic): Rename to
13934         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
13935         calls thourghout.
13937 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
13939         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
13940         .loc support.
13942         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
13943         (dump_file): Only pad the demangled name with spaces if the
13944         mangled name was padded with spaces.
13946 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
13948         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
13949         edge detection.
13951 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13953         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
13954         extraction if no direct load if either EXPAND_CONST_ADDRESS or
13955         EXPAND_INITIALIZER.
13957         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
13958         whether can put offset inside LO_SUM to check mode alignment, not size.
13960 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
13962         * doc/tm.texi (Misc): Fix thinko.
13964 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
13966         * regmove.c (replace_in_call_usage): Fix warnings.
13967         * sched-deps.c (add_dependence): Fix warnings.
13968         * simplify-rtx.c (simplify_subreg): Likewise.
13969         Return NULL_RTX instead of NULL.
13971         * reg-stack.c (emit_swap_insn): Eliminate warnings.
13972         (subst_asm_stack_regs): Likewise.
13974         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
13975         warnings.
13977         * dwarf2out.c (output_call_frame_info): Declare i as int.
13978         (build_abbrev_table): Declare n_alloc as int.
13979         (dwarf2out_finish): Initialize die.
13980         * except.c: Declare sjlj_funcdef_number as unsigned.
13981         (connect_post_landing_pads): Declare j as unsigned.
13982         (convert_to_eh_region_ranges): Initialize call_site.
13983         (output_function_exception_table): Initialize tt_format_size.
13984         * expr.c (move_by_pieces_1): Initialize to1.
13985         (store_constructor): Initialize minelt and maxelt.
13986         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
13987         * function.c (instantiate_decls): Avoid signed/unsigned warning.
13989         * c-decl.c (combine_parm_decls): Unused, remove.
13990         * c-tree.h: Remove prototype for combine_parm_decls.
13992         * reload.c (push_reload): Fix warning.
13993         (regno_clobbered_p): Likewise.
13994         * reload1.c (replace_pseudos_in_call_usage): Likewise.
13995         (reload_combine): Likewise.
13997         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
13998         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
13999         warnings.
14000         * bitmap.c (bitmap_operation): Change user.
14001         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
14003 2001-07-10  Eric Christopher  <echristo@redhat.com>
14005         * config/mips/mips.c (override_options): Fix typo.
14007 2001-07-09  Stan Shebs  <shebs@apple.com>
14009         * target.h (struct gcc_target): New fields init_builtins and
14010         expand_builtin.
14011         * target-def.h (TARGET_INIT_BUILTINS): New macro.
14012         (TARGET_EXPAND_BUILTIN): New macro.
14013         (TARGET_INITIALIZER): Add them.
14014         * builtins.c: Include target.h.
14015         (expand_builtin): Use targetm.expand_builtin.
14016         (default_init_builtins): New function.
14017         (default_expand_builtin): New function.
14018         * expr.h (default_init_builtins): Declare.
14019         (default_expand_builtin): Declare.
14020         * c-common.c (c_common_nodes_and_builtins): Use
14021         targetm.init_builtins.
14022         * defaults.h (MD_INIT_BUILTINS): Remove.
14023         * Makefile.in (builtins.o): Depend on target.h.
14025         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
14026         (TARGET_EXPAND_BUILTIN): Define.
14027         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
14028         (MD_EXPAND_BUILTIN): Remove.
14030         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
14031         (TARGET_EXPAND_BUILTIN): Define.
14032         (c4x_init_builtins): Make endlink arg a local.
14033         (c4x_print_operand): Fix typos in adjust_address usages.
14034         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
14035         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
14036         (MD_EXPAND_BUILTIN): Remove.
14038         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
14039         (TARGET_EXPAND_BUILTIN): Define.
14040         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
14041         (ix86_init_builtins): Call new function only if TARGET_MMX.
14042         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
14043         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
14044         (MD_EXPAND_BUILTIN): Remove.
14046         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
14047         (TARGET_EXPAND_BUILTIN): Define.
14048         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
14049         (MD_EXPAND_BUILTIN): Remove.
14051         * doc/tm.texi: Document these changes.
14053 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
14055         * basic-block.h (tree_node): Forward declare if needed.
14056         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
14057         (BLOCK_HEAD_TREE): Define.
14058         (BLOCK_END_TREE): Define.
14059         (struct loops): Rename field 'tree' to 'tree_root'.
14060         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
14061         'end_tree'.
14062         (flow_loops_tree_build): Rename reference to field 'tree' to
14063         'tree_root'.
14064         (flow_loops_level_compute): Ditto.
14065         * predict.c (estimate_bb_frequencies): Ditto.
14066         * tree.h (struct tree_common): Add field 'aux'.
14068 2001-07-09  Stan Shebs  <shebs@apple.com>
14070         * config/darwin.c (darwin_encode_section_info): Don't mark any
14071         DECL_EXTERNAL node as defined.
14073 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14075         * pa.c (pa_init_machine_status, pa_mark_machine_status,
14076         pa_free_machine_status, hppa_init_pic_save): Delete.
14077         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
14078         (hppa_profile_hook): Use hppa_pic_save_rtx.
14079         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
14080         hppa_init_pic_save): Delete.
14081         (hppa_pic_save_rtx): Declare.
14082         * pa.md (call, call_value, sibcall, sibcall_value,
14083         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
14085 2001-07-09  Kazu Hirata  <kazu@hxi.com>
14087         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
14088         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
14090 2001-07-09  Andreas Jaeger  <aj@suse.de>
14092         * output.h: Add declaration of final_forward_branch_p.
14094         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
14096         * varray.c: Include errors.h for internal_error and trim_filename
14097         declarations.
14099         * Makefile.in (varray.o): Add errors.h.
14101 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
14103         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
14104         * optabs.c (have_add2_insn): Check whether the add insn chosen
14105         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
14106         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
14108 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
14110         * Makefile.in (OBJS): Add ssa-ccp.o
14111         (ssa-ccp.o): Add dependencies.
14112         * toplev.c (DFI_ssa_ccp): New dump file enum.
14113         (dump_file): Add entry for dumping after SSA CCP.
14114         (flag_ssa_ccp): New flag variable.
14115         (f_options): Add -fssa-ccp.
14116         (rest_of_compilation): Run SSA CCP if requested.
14117         * timevar.def (TV_SSA_CCP): New timevar.
14118         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
14119         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
14120         Fix minor typo in SSA DCE documentation.
14121         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
14122         Add documentation for new dump option.  Renumber dump files
14123         appropriately.
14125 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
14127         * emit-rtl.c (gen_highpart_mode): New.
14128         * rtl.h (gen_highpart_mode): Declare.
14129         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
14130         operand can be VOIDmode constant.
14132 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
14134         * flow.c (redirect_edge_and_branch_force): New.
14135         (can_fallthru): Ensure that basic blocks are succeeding.
14136         (try_optimize_cfg): Do not delete basic block if it is the last one.
14138         * flow.c (try_redirect_by_replacing_jump): Do not remove
14139         jumps with side effects, unlink chain on fallthru edge;
14140         set block for new jump instruction; avoid basic block to
14141         over by line number note.
14143         * flow.c (try_simplify_condjump): Verify that the condjump
14144         is not always falling through.
14146         Re-install patch:
14147         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
14149         * flow.c (forwarder_block_p): Fix for fallthru blocks.
14150         (try_redirect_by_replacing_jump): Update properly the count
14151         and frequency information.
14153 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14155         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
14156         address that is a LO_SUM specially.
14157         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
14159         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
14161         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
14162         (operand_subword): Use them.
14163         (change_address_1): Renamed from change_address; new arg VALIDATE.
14164         * expr.h: Reflect above changes; change_address now macro.
14165         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
14166         making MEM.
14167         * cselib.c (add_mem_for_addr): Likewise.
14168         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
14169         * regmove.c (try_apply_stack_adjustment): Likewise.
14170         * reload.c (push_reload, make_memloc): Likewise.
14171         * reload1.c (eliminate_regs): Likewise.
14172         * simplify-rtx.c (simplify_replace_rtx): Likewise.
14173         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
14174         adjust_addess.
14175         * combine.c (make_extraction, simplify_shift_const): Likewise.
14176         (gen_lowpart_for_combine): Likewise.
14177         * cse.c (gen_lowpart_if_possible): Likewise.
14178         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
14179         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
14180         * optabs.c (gen_move_insn): Likewise.
14181         * reload1.c (alter_reg): Likewise.
14182         * simplify-rtx.c (simplify_subreg): Likewise.
14183         * stmt.c (expand_anon_union_decl): Likewise.
14184         * recog.c (validate_replace_rtx_1): Likewise.
14185         (expr.h): Include.
14186         * Makefile.in (recog.o): Add $(EXPR_H).
14187         * explow.c (stabilize): Call replace_equiv_address.
14188         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
14189         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
14191 2001-07-03  Andrew Haley  <aph@redhat.com>
14193         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
14194         the mode of the memory location.
14196 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
14198         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
14200 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14202         * final.c (output_addr_const): Use target opening and
14203         closing parentheses.
14204         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
14205         defaults, add to TARGET_ASM_OUT.
14206         * target.h (struct gcc_target): Add open_paren and close_paren.
14207         * doc/md.texi: Update.
14208         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
14209         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
14210         TARGET_ASM_CLOSE_PAREN.
14211         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
14212         Override.
14213         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
14214         Override.
14215         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
14216         * config/a29k/a29k.h: Similarly.
14217         * config/alpha/alpha.h: Similarly.
14218         * config/arc/arc.h: Similarly.
14219         * config/arm/aof.h: Similarly.
14220         * config/arm/aout.h: Similarly.
14221         * config/avr/avr.h: Similarly.
14222         * config/c4x/c4x.h: Similarly.
14223         * config/clipper/clipper.h: Similarly.
14224         * config/convex/convex.h: Similarly.
14225         * config/d30v/d30v.h: Similarly.
14226         * config/dsp16xx/dsp16xx.h: Similarly.
14227         * config/elxsi/elxsi.h: Similarly.
14228         * config/fr30/fr30.h: Similarly.
14229         * config/h8300/h8300.h: Similarly.
14230         * config/i370/i370.h: Similarly.
14231         * config/i386/i386.h: Similarly.
14232         * config/i860/i860.h: Similarly.
14233         * config/i960/i960.h: Similarly.
14234         * config/ia64/ia64.h: Similarly.
14235         * config/m32r/m32r.h: Similarly.
14236         * config/m68hc11/m68hc11.h: Similarly.
14237         * config/m68k/m68k.h: Similarly.
14238         * config/m88k/m88k.h: Similarly.
14239         * config/mcore/mcore.h: Similarly.
14240         * config/mips/mips.h: Similarly.
14241         * config/mn10200/mn10200.h: Similarly.
14242         * config/mn10300/mn10300.h: Similarly.
14243         * config/ns32k/ns32k.h: Similarly.
14244         * config/pa/pa.h: Similarly.
14245         * config/pdp11/pdp11.h: Similarly.
14246         * config/pj/pj.h: Similarly.
14247         * config/romp/romp.h: Similarly.
14248         * config/rs6000/rs6000.h: Similarly.
14249         * config/sh/sh.h: Similarly.
14250         * config/sparc/sparc.h: Similarly.
14251         * config/v850/v850.h: Similarly.
14252         * config/vax/vax.h: Similarly.
14253         * config/we32k/we32k.h: Similarly.
14255 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
14257         * doc/c-tree.texi: Document representation of attributes.
14259 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14261         * doc/tm.texi: Update some places for the rename of target to
14262         targetm.  Fix typo.
14264 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14266         * target.h (struct gcc_target): Add insert_attributes.
14267         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
14268         (TARGET_INITIALIZER): Update.
14269         * tree.c, tree.h (default_insert_attributes): New function.
14270         Update comments on other default functions to refer to targetm,
14271         not target.
14272         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
14273         TARGET_INSERT_ATTRIBUTES.
14274         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
14275         * c-common.c (decl_attributes): Use targetm.insert_attributes.
14276         Don't use PRAGMA_INSERT_ATTRIBUTES.
14277         * Makefile.in (c-common.o): Depend on $(TARGET_H).
14278         * c-decl.c (start_decl, start_function): Don't call
14279         SET_DEFAULT_DECL_ATTRIBUTES.
14280         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14281         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
14282         declare.
14283         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
14284         (c4x_check_attribute): Avoid modifying attribute list itself.
14285         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
14286         Make static.
14287         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
14288         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
14289         declare.
14290         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
14291         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
14292         Make static.
14293         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
14294         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
14295         declare.
14296         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
14297         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
14298         Adjust parameters.  Make static.
14300 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
14302         * c-common.c (decl_attributes): Only take a single attributes
14303         parameter.
14304         * c-common.h (decl_attributes): Update prototype.
14305         * c-decl.c (start_decl, start_function): Only take a single
14306         attributes parameter.  Update calls to decl_attributes.
14307         (finish_struct, finish_enum): Update calls to decl_attributes.
14308         (push_parm_decl): Expect unified list of attributes.  Update call
14309         to decl_attributes.
14310         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
14311         notype_nested_function, component_declarator,
14312         component_notype_declarator, label): Update calls to
14313         decl_attributes.
14314         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
14315         lists that are passed to push_parm_decl.
14316         * c-tree.h (start_function, start_decl): Update prototypes.
14317         * config/sh/sh-protos.h, config/sh/sh.c
14318         (sh_pragma_insert_attributes): Only take a single attributes
14319         parameter.
14320         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
14321         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
14322         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
14323         build_module_descriptor, generate_static_references,
14324         generate_strings, build_selector_translation_table,
14325         generate_descriptor_table, generate_protocols,
14326         generate_ivars_list, generate_dispatch_table,
14327         generate_protocol_list, generate_category,
14328         generate_shared_structures, really_start_method, add_objc_decls,
14329         generate_classref_translation_entry): Update calls to start_decl
14330         and start_function.
14331         (build_tmp_function_decl, start_method_def): Unify attribute lists
14332         that are passed to push_parm_decl.
14334 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14336         * final.c (no_asm_to_stream): New.
14337         (final_scan_insn): Use target structures for prologue ends
14338         and epilogue starts.
14339         * output.h (no_asm_to_stream): New.
14340         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
14341         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
14342         (TARGET_ASM_OUT): Update.
14343         * target.h (struct gcc_target): New members function_end_prologue
14344         and function_begin_epilogue.
14345         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
14346         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
14347         * config/alpha/alpha.c (output_end_prologue): Rename to
14348         alpha_output_function_end_prologue.  Use in target struct
14349         and make static.
14350         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
14351         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
14352         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
14353         ia64_output_function_end_prologue.  Use in target struct
14354         and make static.
14355         (ia64_function_prologue, ia64_funciton_epilogue): Rename
14356         mistyped prototypes.
14357         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
14358         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
14359         Delete.
14360         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
14361         an use in target struct, make static.
14362         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
14363         Delete.
14365 2001-07-08  Richard Henderson  <rth@redhat.com>
14367         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
14369 2001-07-08  Richard Henderson  <rth@redhat.com>
14371         * config/i386/i386.md: Remove constraints strings from define_split
14372         and define_peephole2 patterns.
14373         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
14374         (eh_return): Use them.
14376 2001-07-08  Richard Henderson  <rth@redhat.com>
14378         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
14379         Document MD_FALLBACK_FRAME_STATE_FOR.
14381 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14383         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
14384         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
14385         elimination.
14386         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
14388 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
14390         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
14391         of the label inside NAME as opposed to just the end of NAME.
14393 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14395         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
14396         * config/alpha/alpha.c (alpha_init_machine_status,
14397         alpha_mark_machine_status, alpha_free_machine_status): Delete.
14398         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
14399         (vms_valid_decl_attribute_p): Make static, conditionally compile.
14400         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
14402 2001-07-06  Stan Shebs  <shebs@apple.com>
14404         * target.h (targetm): Rename global from "target", so as not to
14405         conflict with local variables.
14406         * c-decl.c: Ditto.
14407         * c-typeck.c: Ditto.
14408         * final.c: Ditto.
14409         * tree.c: Ditto.
14410         * cp/decl.c: Ditto.
14411         * cp/decl2.c: Ditto.
14412         * cp/typeck.c: Ditto.
14413         * 1750a/1750a.c: Ditto.
14414         * a29k/a29k.c: Ditto.
14415         * arc/arc.c: Ditto.
14416         * arm/arm.c: Ditto.
14417         * avr/avr.c: Ditto.
14418         * clipper/clipper.c: Ditto.
14419         * convex/convex.c: Ditto.
14420         * d30v/d30v.c: Ditto.
14421         * dsp16xx/dsp16xx.c: Ditto.
14422         * elxsi/elxsi.c: Ditto.
14423         * fr30/fr30.c: Ditto.
14424         * h8300/h8300.c: Ditto.
14425         * i370/i370.c: Ditto.
14426         * i386/i386.c: Ditto.
14427         * i860/i860.c: Ditto.
14428         * i960/i960.c: Ditto.
14429         * ia64/ia64.c: Ditto.
14430         * m32r/m32r.c: Ditto.
14431         * m68hc11/m68hc11.c: Ditto.
14432         * m68k/m68k.c: Ditto.
14433         * m88k/m88k.c: Ditto.
14434         * mips/mips.c: Ditto.
14435         * ns32k/ns32k.c: Ditto.
14436         * pa/pa.c: Ditto.
14437         * pdp11/pdp11.c: Ditto.
14438         * romp/romp.c: Ditto.
14439         * rs6000/rs6000.c: Ditto.
14440         * sh/sh.c: Ditto.
14441         * sparc/sparc.c: Ditto.
14442         * vax/vax.c: Ditto.
14443         * we32k/we32k.c: Ditto.
14444         * doc/tm.texi: Update the manual to match.
14446 2001-07-06  Richard Henderson  <rth@redhat.com>
14448         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
14449         DWARF2_UNWIND_INFO not just whether it is defined.
14451 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
14453         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
14454         call to simplify_binary_operation returns a new pattern.
14456 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
14458         * glimits.h (__SHRT_MAX__): New.
14459         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
14460         (SHRT_MAX): Define in terms of __SHRT_MAX__.
14462 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
14464         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
14465         avoid warnings.
14467 2001-07-06  Richard Henderson  <rth@redhat.com>
14469         * bitmap.c (bitmap_release_memory): Move adjacent to the
14470         allocation functions.
14471         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
14472         the implementation.  Binary search for the set bit.
14473         (bitmap_union_of_diff): Allocate the temporary on the stack
14474         instead of using xmalloc.
14476 2001-07-06  Richard Henderson  <rth@redhat.com>
14478         * genrecog.c (validate_pattern): Warn for constraints in
14479         define_{expand,split,peephole2}.  Remove strict_low_part
14480         before looking up match_dup.
14482 2001-07-06  DJ Delorie  <dj@redhat.com>
14484         * doc/gcc.texi (Makefile): Rename to be a more general purpose
14485         chapter about various build hints and history.  Add section
14486         talking about the various types of native and cross builds.
14488 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14490         * Makefile.in (final.o): Depend on target.h.
14491         * final.c: Include target.h.
14492         (default_function_pro_epilogue): New.
14493         (final_start_function): Use target structure for function prologues.
14494         (final_end_function): Use target structure for function epilogues.
14495         * fold-const.c (real_hex_to_f): Constify s and p.
14496         * output.h (default_function_pro_epilogue): New.
14497         * real.h (real_hex_to_f): Update prototype.
14498         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
14499         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
14500         (TARGET_INITIALIZER): Update.
14501         * target.h (gcc_target): Add struct asm_out.
14502         * doc/tm.texi: Update.
14504 config:
14505         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
14506         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
14507         in cpu/cpu.c, or rename old functions consistently.  Take
14508         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
14509         redundant macros and prototypes.  Make new functions static.
14511         * 1750a/1750a.c: Similarly.
14512         * 1750a/1750a.h: Similarly.
14513         * a29k/a29k-protos.h: Similarly.
14514         * a29k/a29k.c: Similarly.
14515         * a29k/a29k.h: Similarly.
14516         * arc/arc-protos.h: Similarly.
14517         * arc/arc.c: Similarly.
14518         * arc/arc.h: Similarly.
14519         * arm/arm-protos.h: Similarly.
14520         * arm/arm.c: Similarly.
14521         * arm/arm.h: Similarly.
14522         * avr/avr-protos.h: Similarly.
14523         * avr/avr.c: Similarly.
14524         * avr/avr.h: Similarly.
14525         * clipper/clipper-protos.h: Similarly.
14526         * clipper/clipper.c: Similarly.
14527         * clipper/clipper.h: Similarly.
14528         * convex/convex.c: Similarly.
14529         * convex/convex.h: Similarly.
14530         * d30v/d30v-protos.h: Similarly.
14531         * d30v/d30v.c: Similarly.
14532         * d30v/d30v.h: Similarly.
14533         * d30v/d30v.md: Similarly.
14534         * dsp16xx/dsp16xx-protos.h: Similarly.
14535         * dsp16xx/dsp16xx.c: Similarly.
14536         * dsp16xx/dsp16xx.h: Similarly.
14537         * elxsi/elxsi.c: Similarly.
14538         * elxsi/elxsi.h: Similarly.
14539         * fr30/fr30.c: Similarly.
14540         * fr30/fr30.md: Similarly.
14541         * h8300/h8300-protos.h: Similarly.
14542         * h8300/h8300.c: Similarly.
14543         * h8300/h8300.h: Similarly.
14544         * i370/i370-protos.h: Similarly.
14545         * i370/i370.c: Similarly.
14546         * i370/i370.h: Similarly.
14547         * i386/i386.c: Similarly.
14548         * i386/osf1elf.h: Similarly.
14549         * i386/osfrose.h: Similarly.
14550         * i860/i860-protos.h: Similarly.
14551         * i860/i860.c: Similarly.
14552         * i860/i860.h: Similarly.
14553         * i960/i960-protos.h: Similarly.
14554         * i960/i960.c: Similarly.
14555         * i960/i960.h: Similarly.
14556         * ia64/ia64-protos.h: Similarly.
14557         * ia64/ia64.c: Similarly.
14558         * ia64/ia64.h: Similarly.
14559         * m32r/m32r-protos.h: Similarly.
14560         * m32r/m32r.c: Similarly.
14561         * m32r/m32r.h: Similarly.
14562         * m68hc11/m68hc11-protos.h: Similarly.
14563         * m68hc11/m68hc11.c: Similarly.
14564         * m68hc11/m68hc11.h: Similarly.
14565         * m68k/crds.h: Similarly.
14566         * m68k/dpx2.h: Similarly.
14567         * m68k/m68k-protos.h: Similarly.
14568         * m68k/m68k.c: Similarly.
14569         * m68k/m68k.h: Similarly.
14570         * m68k/news.h: Similarly.
14571         * m88k/m88k-protos.h: Similarly.
14572         * m88k/m88k.c: Similarly.
14573         * m88k/m88k.h: Similarly.
14574         * mips/mips-protos.h: Similarly.
14575         * mips/mips.c: Similarly.
14576         * mips/mips.h: Similarly.
14577         * ns32k/merlin.h: Similarly.
14578         * ns32k/ns32k.c: Similarly.
14579         * ns32k/ns32k.h: Similarly.
14580         * ns32k/tek6000.h: Similarly.
14581         * pa/pa-protos.h: Similarly.
14582         * pa/pa.c: Similarly.
14583         * pa/pa.h: Similarly.
14584         * pdp11/2bsd.h: Similarly.
14585         * pdp11/pdp11-protos.h: Similarly.
14586         * pdp11/pdp11.c: Similarly.
14587         * pdp11/pdp11.h: Similarly.
14588         * romp/romp-protos.h: Similarly.
14589         * romp/romp.c: Similarly.
14590         * romp/romp.h: Similarly.
14591         * rs6000/rs6000-protos.h: Similarly.
14592         * rs6000/rs6000.c: Similarly.
14593         * rs6000/rs6000.h: Similarly.
14594         * rs6000/sysv4.h: Similarly.
14595         * sh/sh-protos.h: Similarly.
14596         * sh/sh.c: Similarly.
14597         * sh/sh.h: Similarly.
14598         * sparc/sparc-protos.h: Similarly.
14599         * sparc/sparc.c: Similarly.
14600         * sparc/sparc.h: Similarly.
14601         * vax/vax.c: Similarly.
14602         * vax/vax.h: Similarly.
14603         * vax/vms.h: Similarly.
14604         * we32k/we32k.c: Similarly.
14605         * we32k/we32k.h: Similarly.
14607 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
14609         * basic-block.h (first_insn_after_basic_block_note): Declare.
14610         * flow.c (first_insn_after_basic_block_note): Define.  Moved
14611         from...
14612         * ssa.c (first_insn_after_basic_block_note): Remove.
14613         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
14614         necessary.
14615         (ssa_eliminate_dead_code): Properly update the CFG and PHI
14616         nodes when we find a dead conditional branch.  Insert BARRIERs
14617         after any blocks with no successors, but which do not have
14618         any BARRIERs.
14620 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
14622         * varray.c (varray_check_failed): Use internal_error.
14624 2001-07-05  Andrew Haley  <aph@redhat.com>
14626         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
14627         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
14628         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
14630 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
14632         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
14633         reference if the target constant is also a SYMBOL_REF.
14635 2001-07-05  Eric Christopher  <echristo@redhat.com>
14637         * config/mips/mips.h (MASK_MIPS3900): Remove.
14638         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
14639         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
14640         (TARGET_MIPS3900): Change to use mips_arch.
14641         (TARGET_MIPS4000): New.
14642         (TARGET_MIPS4100): New.
14643         (TARGET_MIPS4300): New.
14644         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
14645         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
14646         for -mipsX.
14647         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
14648         (ISA_HAS_BRANCHLIKELY): To here.
14649         (CC1_CPU_SPEC):  New.
14650         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
14651         (mips_arch_string): Declare.
14652         (mips_arch): Declare.
14653         (TARGET_OPTIONS): Add -march and -mtune.
14655         * config/mips/mips.c (mips_arch_string): New.
14656         (mips_arch): New.
14657         (override_options): Handle -march for codegen and -mtune
14658         for scheduling. Use mips_arch. Move tx39 target default here.
14659         (mips_parse_cpu): Move error message to override_options.
14661         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
14663         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
14665         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
14666         (MIPS Options): Ditto.  Change mcpu entry to historical text.
14668 2001-07-05  H.J. Lu  (hjl@gnu.org)
14670         * config/mips/mips.c (mips_parse_cpu): New function to parse
14671         -march=*/-mcpu=*.
14673 2001-07-05  Jim Wilson  <wilson@redhat.com>
14675         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
14676         * config/ia64/t-ia64: Likewise.
14677         (LIB1ASMFUNCS): Update comment.
14679 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
14681         * doc/install.texi (Install GCC: Binaries): Fix typo.
14683 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14685         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
14686         reference using the stack pointer, adjust it since we push Y
14687         temporarily.
14688         ("*ashrsi3"): Likewise.
14689         ("*lshrsi3"): Likewise.
14691 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14693         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
14694         when -fomit-frame-pointer is used.
14696 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
14698         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
14699         (try_redirect_by_replacing_jump): Reverse updating properly the
14700         count and frequency information.  Reverse removing cc0 setter.
14701         (forwarder_block_p): Reverse fixing for fallthru blocks.
14703 2001-07-05  DJ Delorie  <dj@redhat.com>
14705         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
14706         (translate_options): If the above is defined, use it to map
14707         given options to new options.
14708         * doc/tm.texi: Document it.
14710 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
14711             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14713         * doc/invoke.texi (Optimize Options): Document that -fgcse may
14714         cause programs using computed gotos to run more slowly.
14716 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14718         * doc/install.texi (Specific): Markup, spelling and typo fixes.
14719         Fixed sorting.
14720         Consistently require binutils 2.11.2, not prereleases.
14721         (Specific, decstation-*): Canonicalize as mips-dec-*.
14722         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
14723         always necessary.
14724         (Specific, m68k-altos): Removed reference to README.altos, deleted.
14725         (Specific, mips-*): Reword MIPS C compiler requirements.
14726         (Specific, powerpc*-*-*): New, mention --with-cpu once.
14727         (Specific, sunv5): Removed, obsolete.
14729 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
14731         * dwarf2out.c (output_loc_list): Use an all ones mask for
14732         .text asm output and don't rely on long long
14733         literals. Reformat some long lines.
14735 2001-07-05  Andreas Jaeger  <aj@suse.de>
14737         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
14738         section.
14740 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
14742         * dwarf2out.c (dwarf2out_define): Update comment.
14743         (dwarf2out_undef): Ditto.
14744         (dwarf2out_start_source_file): Ditto.
14745         (dwarf2out_end_source_file): Ditto.
14746         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
14747         since we never call the start/end debug hook for the primary file.
14749 2001-07-04  Kazu Hirata  <kazu@hxi.com>
14751         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
14752         from shll.
14754 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
14756         * cppinit.c (remove_dup_dirs): Inform if a system include
14757         directory is being reordered.
14758         * doc/invoke.texi (Directory Options): GCC warns if you hide a
14759         system include.
14760         * doc/cpp.texi (Search Paths): Likewise.
14761         * doc/gcc.texi (Interoperation): Remove information about
14762         -I/usr/include.
14764 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
14766         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
14767         (VARRAY_TOP_CHAR_PTR): Likewise.
14769 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14771         * gcc.c (process_command): Don't assign elements of a const char*.
14773 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14775         * emit-rtl.c (change_address): Don't abort if invalid address while
14776         reload is in progress.
14778 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
14780         * c-lex.c (cb_file_change): Pass line number to
14781         debug_start_source_file.
14782         (cb_undefine): Pass correct line number to debug_undef.
14784         * toplev.c (debug_start_source_file): Add line number to
14785         parameters. Pass it along to dwarf2out_start_source_file.
14786         (decode_g_option): Stop resetting debug level back to normal when
14787         we change debug formats, unless the current level is
14788         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
14789         3).
14791         * toplev.h (debug_start_source_file): Add line number to
14792         parameters.
14794         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
14795         parameters.
14797         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
14798         parameters.
14799         Output debug_macinfo data for starting file if requested.
14800         (dwarf2out_end_source_file): Output debug_macinfo data for ending
14801         file if requested.
14802         (dwarf2out_define): Output debug_macinfo data for defining a macro
14803         if requested.
14804         (dwarf2out_undef): Output debug_macinfo data for undefining a
14805         macro if requested.
14806         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
14807         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
14808         (macinfo_section_label): New. DWARF2 macro info section label.
14809         (dwarf2out_init): If we want macro info, output the start label
14810         for the section.
14811         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
14812         attribute to the compilation unit die pointing to the macro info.
14814 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
14816         * dwarf2out.c (new_loc_list): Move to inside #ifdef
14817         DWARF2_DEBUGGING_INFO.
14818         (add_loc_descr_to_loc_list): Ditto.
14819         (output_loc_list): Ditto.
14820         Also, fix thinko in curr not being initialized.
14821         (gen_internal_sym): Ditto.
14823 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14825         * emit-rtl.c (replace_equiv_address): New function.
14826         * expr.h (replace_equiv_address): New declaration.
14827         * explow.c (validize_mem): Call it instead of change_address and
14828         also call if -fforce-addr and address is constant.
14829         * expr.c: Replace more calls to change_address with adjust_address
14830         and/or replace_equiv_address or to validize_mem.
14831         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
14832         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
14833         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
14834         * config/i370/i370.md, config/i860/i860.md: Likewise.
14835         * config/i960/i960.md, config/mips/mips.c: Likewise.
14836         * config/mips/mips.md, config/pa/pa.md: Likewise.
14837         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
14838         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
14840 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14842         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
14844         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
14845         function.
14847 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
14849         * doc/include: New directory.
14850         * doc/fdl.texi: Move to doc/include/fdl.texi.
14851         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
14852         * doc/include/funding.texi, doc/include/gpl.texi: New files.
14853         * doc/gcc.texi: Use funding.texi and gpl.texi.
14854         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
14855         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
14856         Update dependencies and use -I $(docdir)/include.
14858 2001-07-04  Anthony Green  <green@redhat.com>
14860         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
14862 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14864         * doc/install.texi (sparc64-*-*): Remove garbage.
14866 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
14868         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
14869         Fix typo in last change to use adjust_address.
14871 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14873         * doc/install.texi (Specific): Update information for *-*-solaris*.
14875 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14877         * explow.c (plus_constant_wide): Reinitialize Y for restart.
14879 2001-07-03  Stan Shebs  <shebs@apple.com>
14881         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
14882         case for flag_no_mach_text_sections.
14883         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
14884         * config/darwin.c (flag_no_mach_text_sections): Remove.
14885         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
14887 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14889         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
14890         and avoid checking for constant as first operand.
14891         * recog.c (find_constant_term_loc): No longer static.
14892         (adj_offettable_operand): Delete.
14893         * rtl.h (adj_offsettable_operand): Delete declaration.
14894         (find_constant_term): Add declaration.
14895         * caller-save.c: Replace calls to adj_offsettable_operand with calls
14896         to adjust_address.
14897         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
14898         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
14899         * config/i386/i386.c, config/i386/i386.md: Likewise.
14900         * config/i860/i860.c, config/i960/i960.c: Likewise.
14901         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
14902         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
14903         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
14904         * config/mips/mips.c, config/mips/mips.md: Likewise.
14905         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
14906         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
14907         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
14908         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
14909         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
14910         * config/ns32k/ns32k.md: Likewise.
14912 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
14914         * rtl.c (copy_rtx): Handle 'T' format letter.
14915         * gensupport.c (collect_insn_data): Likewise.
14916         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
14918 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
14920         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
14921         -B option.  Use 'dir' not 'foo' as example directory name.
14923 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14925         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
14926         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
14928 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
14930         * doc/cppinternals.texi: Improve formatting and logical markup.
14932 2001-07-03  Andreas Jaeger  <aj@suse.de>
14934         * Makefile.in (insn-recog.o): Add dependency on reload.h.
14936         * genrecog.c (write_header): Include reload.h for prototypes in
14937         insn-recog.c.
14939 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14941 config:
14942         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
14943         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
14944         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
14945         i386_pe_valid_type_attribute_p): Add.
14946         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
14947         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
14949 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14951         * explow.c (plus_constant_wide, case LO_SUM): New case.
14952         (plus_constant_for_output_wide): Delete.
14953         * rtl.h (plus_constant_for_output): Delete.
14954         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
14955         instead of plus_constant_for_output.
14956         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
14957         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
14958         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
14959         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
14960         * config/sparc/sparc.md: Likewise.
14961         Convert some change_address calls to adjust_address.
14963 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
14965         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
14966         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
14967         documentation of -std and -Wwrite-strings.
14969 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
14971         * cse.c (canon_hash): Don't register registers in very small
14972         register classes, as extending their lifetime might cause
14973         reload to fail.
14975 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
14977         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
14979         * flow.c (forwarder_block_p): Fix for fallthru blocks.
14980         (try_redirect_by_replacing_jump): Update properly the count
14981         and frequency information.
14983 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
14985         * toplev.c (dump_file_index): Move SSA dumps just after first
14986         jump dump.
14987         (dump_file): Corresponding changes.
14988         (rest_of_compilation): Move SSA path to just after the first
14989         jump pass.
14990         * doc/gcc.texi (Passes): Update due to movement of SSA path.
14991         * doc/invoke.texi: Update dump file #s as they were completely
14992         out of date with reality.
14994 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
14996         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
14998         * expr.c (emit_move_insn_1): Deal with non-default
14999         STACK_PUSH_CODE.
15001         * expr.c (emit_single_push_insn): Fix warning.
15003 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
15005         * expr.c (emit_move_insn_1): Avoid modifying
15006         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
15008 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15010         * emit-rtl.c (adjust_address): New function.
15011         * expr.h (adjust_address): Add declaration.
15012         * builtins.c: Replace some calls to change_address with calls to it
15013         or to validize_mem.
15014         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
15015         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
15016         * config/arm/arm.c, config/convex/convex.c: Likewise.
15017         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15018         * config/i386/i386.c, config/i386/i386.md: Likewise.
15019         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
15020         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
15021         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
15022         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
15023         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
15025 2001-07-02  Jim Wilson  <wilson@redhat.com>
15027         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
15029 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
15031         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
15032         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
15034 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
15036         * cppinit.c (lang_defaults): New table.
15037         (set_lang): Just read from lang_defaults into the live options
15038         structure.
15040 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
15042         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
15043         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
15044         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
15046 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15048         * doc/install.texi: Various spelling and markup fixes.
15049         (Installing GCC): Component specific installation instructions are
15050         gone.
15051         Fix reference.
15052         Warn about removing old install dir in the presence of shared libs.
15053         (Configuration): Invoke with options target to match configure
15054         --help.
15055         Consistently refer to gas, gld pathnames.
15056         Invert --enable-multilib documentation.
15057         Remove references to old compiler versions.
15059 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15061         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
15063 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15065         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
15066         section.
15067         (Specific, mips*-sgi-irix5): Note IDO download.
15068         Reworded MIPS C hints.
15069         Use GNU as instead of GAS.
15070         Markup fixes.
15071         Removed SGI Freeware reference, IRIX 6 only.
15072         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
15073         Note N64 library requirement/workaround.
15074         Update O32 hints.
15075         Complete list of structure passing bug victims.
15077 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15079         * doc/install.texi: Remove CVS Id.
15081 2001-07-02  Andreas Jaeger  <aj@suse.de>
15083         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
15084         (find_inherently_necessary): Remove unused variable.
15086 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
15088         * c-common.h (TDI_inlined): New ast dump phase.
15089         (dump_flag_name): New function.
15090         * c-dump.c (dump_files): Add inlined phase.
15091         (dump_flag_name): Define.
15092         * doc/invoke.texi (-fdump-ast-inlined): Document.
15094 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15096         * stor-layout.c (layout_decl): Revert change to handling of alignment
15097         in packed types.
15099 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15101         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
15102         for FIELD_DECL.
15104 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
15106         * doc/tm.texi (FUNCTION_ARG): Document that the last call
15107         is special.
15109 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
15111         * tlink.c (recompile_files): Remove COMPILER_PATH and
15112         LIBRARY_PATH from the environment.
15114 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
15116         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
15117         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
15118         enumerators.
15119         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
15121         * c-parse.in (OBJC_STRING): Kill.
15122         (objc_string): Decompose to [objc_string] '@' STRING.
15123         (reswords): Take the leading '@' off all the Objective C keywords.
15124         (objc_rid_sans_at): Kill.
15125         (init_reswords): Don't initialize it.
15126         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
15127         (_yylex): Kill reconsider label.  Look ahead one token after
15128         an '@'; if we get an identifier, check whether it's an
15129         Objective C @-keyword.  If so, return the keyword.  Otherwise,
15130         put back the token and return the '@' as a terminal.
15132         * cpplib.c (lex_macro_node): Remove unnecessary check for
15133         leading '@' on identifier.  Clarify control flow and commentary.
15135 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15137         * cse.c (new_label_ref): Variable deleted.
15138         (insert): Remove set of new_label_ref.
15139         (check_for_label_ref): New function.
15140         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
15142 See ChangeLog.5 for earlier changes.