NetBSD/gnu/dist
kristerw 980f45b693 Place EH labels on the permanent obstack. Fixes PR 18314.
Background:
Originally, the EH labels were placed on the permanent obstack, which
could end up using a lot of memory (for heavy inlining) since inlined
labels also needed to be permanent as a result of this.

This was changed in

   Wed Dec  9 09:12:40 1998  Andrew MacLeod  <amacleod@cygnus.com>

	* except.h (struct handler_info): Add handler_number field.
	* except.c (gen_exception_label): EH labels no longer need to be
	on the permanent obstack.
	(get_new_handler): Set the label number field.
	(output_exception_table_entry): Regenerate handler label reference
	from the label number field.
	(init_eh): Remove a blank line.
	* integrate.c (get_label_from_map): Labels no longer need to be
	on the permanent obstack.

by using the label numbers instead of the label structures in most cases.
The operative word here is "most" cases. Addresses to the EH RTX was still
used in (at least) flow.c, that now used freed memory. Oops.

For this to happen, the freed address of the RTX representing a EH label
must be reused for a new label that is located in dead code. delete_block()
will then see that this RTX is mentioned in the EH table, and (incorrectly)
remove the exception handler.

This might be seen when, for example, compiling
src/gnu/dist/groff/src/roff/troff/node.cc for m68k.
2002-12-16 19:33:50 +00:00
..
autoconf
bc
cvs Better fix for the portability cast problem via Urban Boquist. 2002-11-28 22:04:46 +00:00
diffutils
gawk
gettext
grep
groff Fix lots of typos. Some spotted by Adrian Mrva. 2002-10-02 15:39:09 +00:00
map-mbone Avoid conflict with reserved identifier "log". 2002-12-06 16:01:14 +00:00
mrinfo Avoid conflict with reserved identifier "log". 2002-12-06 16:01:14 +00:00
mrouted Avoid conflict with reserved identifier "log". 2002-12-06 16:01:14 +00:00
mtrace Avoid conflict with reserved identifier "log". 2002-12-06 16:01:14 +00:00
postfix sync w/ 1.1.12. 2002-11-26 03:38:12 +00:00
sendmail more strict checking on command invocation. 2002-10-03 03:31:46 +00:00
tar Restore other symlink attributes. 2002-10-13 22:58:55 +00:00
texinfo
toolchain Place EH labels on the permanent obstack. Fixes PR 18314. 2002-12-16 19:33:50 +00:00
README.toolchain

README.toolchain

$NetBSD: README.toolchain,v 1.3 2001/10/15 18:28:28 bjh21 Exp $


HOW TO BUILD A CROSS COMPILER
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Section to be written.]

See also: http://www.netbsd.org/Documentation/cross/


IMPORTED VERSIONS
~~~~~~~~~~~~~~~~~
The following software is in gnusrc/gnu/dist/toolchain, in a unified build
structure:

    gcc-2.95.3
    binutils-2.11.2
    gdb-5.0


IMPORT STEPS
~~~~~~~~~~~~
1. All distributions were unpacked and all `.cvsignore' files were
   removed.

2. All files in gcc's `include' top level directory were removed from
   binutils's `include' top level directory (these are the libiberty
   include files).

   cd gcc-*/include; for f in *; do rm -f ../../binutils-*/include/$f; done

3. The gcc distribution was imported in one shot into
   gnusrc/gnu/dist/toolchain, including the recursive build structure.

4. The binutils distribution was stripped down to the following directories,
   with no files at the top level:

   bfd, binutils, gas, gprof, include, intl, ld, opcodes

5. Binutils was imported into gnusrc/gnu/dist/toolchain, which included
   only the subdirectories above.

6. The gdb distribution was stripped down to the following directories,
   with no files at the top level:

   gdb, mmalloc, readline, sim

7. Gdb was imported into gnusrc/gnu/dist/toolchain, which included only
   the subdirectories above.