Commit Graph

4172 Commits

Author SHA1 Message Date
skrll
3d4925b3cd Update binutils version and correct gnusrc/ 2003-03-05 08:42:49 +00:00
mrg
bcc7fbc456 regenerate all this files with correct man_MANS and TEXINFO, and 'generated
from' lines.  this should fix set lists problems with missing binutils man
pages and info manual.
2003-03-05 07:19:13 +00:00
matt
df4902d922 NetBSD doesn't support PS_REGNUM or anything >= MQ_REGNUM. 2003-03-04 21:12:32 +00:00
dogcow
dd911e8f5d Reworked the bfd accesses to use the documented interfaces.
Also, use the file offsets for direct reading/writing, rather
than going through poorly-documented bfd internal magic.
2003-03-04 12:16:41 +00:00
dogcow
12931a397c change bfd_close -> bfd_close_all_done, as to discard any changes libbfd
thinks may have been made to the object file during symbol groveling.
2003-03-04 08:32:58 +00:00
atatat
382b4984f3 Apply patch from sendmail.org to handle a new header overflow bug. 2003-03-03 21:20:50 +00:00
tsutsui
f2ff066472 print_insn_shl() in gnu/dist/toolchain/opcodes/sh-dis.c has been merged
into print_insn_sh(), and print_insn_sh() now checks info->endian
so set it accordingly.

Based on diff from the Sourceware gdb cvsweb:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/sh-tdep.c.diff?r1=1.59&r2=1.60&cvsroot=src
2003-03-03 16:58:17 +00:00
tsutsui
bc724094e3 Put back some lines removed on 2.13.2.1 merge.
(NetBSD/sh3 actually needs ENTRY=_start)
2003-03-03 16:46:16 +00:00
mrg
c8e7bd6d18 back out previous:
- didn't need to/mean to update libstdc++ yet

	- mknative generated bogus files that ended having libstc++ not install
	various required headers.

should fix the "can't find iostream.h" lossage in src/regress.
2003-03-03 13:58:24 +00:00
jdolecek
d3e0e12a79 move gawk to separate line, so that it's easier to comment the entry out 2003-03-02 18:22:01 +00:00
lukem
c2d985356e Consistently comment out rules which attempt to rebuild .info from .texinfo,
(and associated targets for .dvi et al), as well as man pages from .pod,
using a prefix of `#  '.

This prevents a variety of build issues caused by situations such as
cvs checkouts which result in the .texinfo file being slightly newer
than the .info file, and the build process trying to unnecessarily
regenerate them, which will fail in a variety of circumstances
(build tools not available, read-only source, etc ...)

Once a better solution is found, we can switch to it.
For now, this improves things greatly and should reduce a lot of
support requests that would undoubtably appear otherwise...
2003-03-02 13:11:04 +00:00
mrg
2920dd6064 oops; re-enable the asconfig.texi rule. 2003-03-02 08:16:09 +00:00
mrg
5de74f4030 add the prototype for lbasename here where it belongs. 2003-03-01 15:31:34 +00:00
mrg
1fdd6e4cde build libopcodes separately from libbfd as in binutils 2.13 they have
separate CFLAGS name spaces, and the old combined method no longer works.
2003-03-01 13:18:28 +00:00
mrg
1c50b08c03 disable rules that try to rebuild files in the source tree (only affects
MKMAINTAINER=yes builds.)
2003-03-01 13:14:17 +00:00
mrg
331f9d9c1a update / regenerate for binutils 2.13.2.1 2003-03-01 13:09:11 +00:00
mrg
866f7891df update / regenerate for binutils 2.13.2.1 2003-03-01 13:09:09 +00:00
mrg
f2f9754b55 update / regenerate for binutils 2.13.2.1 2003-03-01 13:08:42 +00:00
mrg
bc8fc1085d merge binutils 2.13.2.1 2003-03-01 12:25:55 +00:00
mrg
f84a38cd2d binutils 2.13.2.1 import 2003-03-01 11:28:30 +00:00
mrg
ee06049914 import of (most of) binutils 2.13.2.1. no top level, and cut down include/
libiberty.  (gcc update later can update libiberty properly.)
2003-03-01 10:06:40 +00:00
thorpej
5bfc4a9390 Define _REENTRANT as well as _PTHREADS if -pthread is specified on the
command line.
2003-02-28 17:30:12 +00:00
matt
0f7a451b3f Chnage data offset so that is aligned to the next 64KB boundary after text. 2003-02-27 09:38:20 +00:00
nathanw
da54f07b88 Print thread name, if any. 2003-02-27 00:55:43 +00:00
wiz
990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
jmc
db7162553c Make sure a few instances of mkinstalldirs is run via $SHELL so it's not
counting on exec permissions from the checked out source
2003-02-22 10:06:52 +00:00
nathanw
99922845b9 Include both application threads and "raw" LWPs in GDB's list of
threads. This is useful for a variety of things, including examing the
internal state of the thread library when things are going wrong
there.

Currently only works on core files; both ptrace and gdb will need a
bit more work before this will be useful on live processes.

Inspired by the similar behavior of the Solaris thread module.
2003-02-17 20:32:04 +00:00
martin
28067ee7b9 Fix an unitialized variable (from binutils 2.13).
Fixes PR toolchain/20377.
2003-02-17 09:33:03 +00:00
rearnsha
66b1593cdb * arm.c (arm_reload_in_hi): Ensure that the scratch register does
not overlap our final result register.

Fixes problem that causes Metafont in teTeX to crash.* arm.c (arm_reload_in_hi): Ensure that the scratch register does
not overlap our final result register.

Fixes problem that causes Metafont in teTeX to crash.
2003-02-15 10:07:16 +00:00
lukem
dc45690a3d Terminate (with extreme prejudice) any rules which detect if files
such as Makefile.in are ``out of date'' and ``helpfully'' attempt to
update them with autoconf, autoheader, or automake.
Fixes some toolchain PRs, and my sanity.
2003-02-15 02:25:56 +00:00
wiz
cd2db110c5 Add IDIST variable to avoid having to duplicate paths. 2003-02-14 08:25:36 +00:00
wiz
e759cc834f Update for 4.5. 2003-02-13 09:01:13 +00:00
wiz
38b57061a5 Merge 4.5. 2003-02-13 08:57:26 +00:00
wiz
6285cf0f68 Import of texinfo-4.5.
Major changes since 4.3:
* Language:
  . The ' (ASCII apostrophe/right quote) character is finally allowed in
    node and anchor names.  Thus, after installing this texinfo.tex,
    existing .aux files will cause errors!  Remove them and rerun TeX to
    generate good ones.
  . @value constructs are now expanded in the filename arguments to
    @include and @verbatiminclude.
* texinfo.tex:
  . @smallexample and the like now output in a smaller font (9pt) in all
    paper formats, not just @smallbook and @afourpaper.
  . new translation txi-tr.tex.
* info:
  . CTRL-H is treated like DEL in incremental search.
  . arrow keys once again work in isearch contexts under Solaris.
* infokey:
  . use .info key bindings before defaults.
  . allow prefix keys to be disabled.
Bug fixes all around.
2003-02-13 08:50:20 +00:00
wiz
fd87da38ec Removed by grep2netbsd script (do we want them in regress?). 2003-02-13 08:04:16 +00:00
wiz
5ae0afcbb2 Make diff to 2.5.1 smaller. 2003-02-13 08:01:46 +00:00
wiz
657e871433 Update for grep-2.5.1. 2003-02-13 07:55:08 +00:00
wiz
7f2c625432 regen 2003-02-13 07:49:08 +00:00
wiz
8e9c96bbc4 Merge changes from 2.5.1 import. 2003-02-13 07:48:11 +00:00
wiz
930075e3a9 Import of grep-2.5.1 (bugfix release). 2003-02-13 07:43:07 +00:00
tsutsui
c10cb12be7 Pull up changes from binutils master sources
<http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/?cvsroot=src>
to fix relocation problem on linking startup routines for sh3:

src/bfd/elf32-sh.c revision 1.36:
> * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
> partial_inplace, matching assembler output.  Set src_mask to
> all ones.
> (sh_elf_relocate_section): Delete misplaced comment.
> For relocatable linking against section symbol, call
> _bfd_relocate_contents for partial_inplace relocs and adjust
> rel->r_addend for others.
> <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
> bfd_get_32, not at rel->r_addend.

src/gas/config/tc-sh.c revision 1.43:
> * config/tc-sh.c (md_pcrel_from_section): Transformed from
> md_pcrel_from.  Handle pc-relativeness against link-time
> symbol.  Handle relativeness to elsewhere than the fixup.

src/gas/config/tc-sh.h revision 1.14:
> * config/tc-sh.h (MD_PCREL_FROM_SECTION): Define.
> (md_pcrel_from_section): Prototype.

Thanks to Kaz Kojima and Jason R Thorpe for their comments.
2003-02-08 17:09:35 +00:00
lukem
cde74ef45d Remove dependencies on .y files as well.
Per request from Jason "Mr. Toolchain" Thorpe.
2003-02-08 08:43:02 +00:00
lukem
0de4f7b5d2 Remove dependency of $(srcdir)/c-gperf.h on c-parse.gperf, because we
don't have gperf in the base system, and differences in timestamps in
these files due to a cvs checkout can cause lossage.
2003-02-07 04:14:27 +00:00
perry
8a49ec08e4 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 23:07:28 +00:00
martin
855375b3f6 Don't try to look back in the instruction stream beyound it's start
if an object file starts with a branch/call/jump instruction creating
a branch delay slot at offset < 8.
2003-02-02 01:15:42 +00:00
simonb
0fd8c49338 Add a --redefine-syms-file option from Chris Demetriou's proposed patch
in http://sources.redhat.com/ml/binutils/2002-09/msg00505.html.
2003-01-29 10:26:22 +00:00
thorpej
e5cd4ce42c Bump version to nb4 to reflect the -pthread option. (Thanks for the
reminder, Klaus..)
2003-01-28 18:36:04 +00:00
jdolecek
ceb43cbb02 do not install libioP.h nor iostreamP.h 2003-01-28 14:40:59 +00:00
jdolecek
a725c77213 do NOT force definition of _POSIX_SOURCE, at least not on NetBSD,
especially when you follow using non-POSIX vfork()

defining _POSIX_SOURCE means "POSIX clean environment", which means
(besides other things) that we won't get proper definition of e.g.
vfork() and end up with the compatibility stub
2003-01-28 14:37:21 +00:00
mrg
fe5e3928eb include <stdlib.h> for alloca() prototype. 2003-01-28 01:43:34 +00:00
wiz
024a7d26ca Build and install gzip.info. 2003-01-27 09:07:13 +00:00
wiz
42ca888796 Add gzip.texi and gpl.texinfo from gzip-1.2.4a [needed for building
gzip.info].
2003-01-27 09:06:55 +00:00
wiz
bbaec56433 Sync with gzip-1.2.4a (typo fixes and email address changes). 2003-01-27 00:44:14 +00:00
wiz
64afb4c530 Add grep2netbsd pre-import conversion script. 2003-01-27 00:11:18 +00:00
wiz
d89d70fc8b Get patches from pkgsrc to make it build. 2003-01-26 23:55:52 +00:00
wiz
2a76369fee Build structure update for grep-2.5. 2003-01-26 23:53:44 +00:00
wiz
22e6e71f2f Add pre-generated .gmo files. 2003-01-26 23:50:50 +00:00
wiz
91d3eacedf Re-add some files lost through .cvsignore files during grep-2-5 import. 2003-01-26 23:41:38 +00:00
wiz
4939cd34f0 Remove traces of old -o. 2003-01-26 23:38:50 +00:00
wiz
cb30a4458a Remove some unneeded files. 2003-01-26 23:32:21 +00:00
wiz
7b437baca2 Merge with 2-5-0. 2003-01-26 23:30:44 +00:00
wiz
aa93e07d05 Reimport grep-2.5 with tag grep-2-5-0 with .cvsignore files removed
beforehand (grrrr, no need for them in a tarball...).
2003-01-26 23:27:23 +00:00
wiz
6d37ad7d79 Merge with grep-2.5, part one. 2003-01-26 23:21:46 +00:00
wiz
49af49c40e Import grep-2.5.
Warning: -o is now a valid GNU grep option (--only-matching (-o)), so we
will not be supporting the 4.4BSD -o any longer -- use -H instead.
2003-01-26 23:15:08 +00:00
elric
f344b59521 Point to an existing dist dir. 2003-01-26 06:51:04 +00:00
wiz
337a8f0a56 Re-add. 2003-01-26 01:53:40 +00:00
wiz
68e059531a Remove old diffutils-2.7 build structure. 2003-01-26 00:53:28 +00:00
wiz
c7edc51686 Add diffutils2netbsd pre-import script. 2003-01-26 00:50:50 +00:00
wiz
6b9deacc5d Descend into diffutils instead of diff, diff3, and sdiff (for new
diffutils-2.8.1 build structure).
2003-01-26 00:49:51 +00:00
wiz
d38d5e887e Merge diffutils-2.8.1. 2003-01-26 00:47:42 +00:00
wiz
b8ffffc7d9 Import of diffutils-2.8.1 (converted with to-be-committed
diffutils2netbsd script).
2003-01-26 00:43:02 +00:00
wiz
488efef5d4 Import build structure for diffutils-2.8.1. Reviewed by christos. 2003-01-26 00:40:40 +00:00
tsutsui
2d9f30d305 Since sh--netbsdelf doesn't have leading underscore,
don't define __USER_LABEL_PREFIX__ as "_" in cpp.
Ok'ed by thorpej.
2003-01-25 17:35:53 +00:00
thorpej
fbea162b87 * Use gthr-posix.h if --enable-threads.
* If -pthread is specified, add -lpthread and -D_PTHREADS.

More thread support to come; this is just a start (sigh, it's
handled so much nicer in 3.3...).
2003-01-24 22:40:02 +00:00
wiz
c46e8627bc Sync a bit more with default output -- these do not need to be defined (no change in build):
HAVE_LOGIN, HAVE_LOGOUT (will only add #defines if cvs's login/logout conflict)
HAVE_SELECT, HAVE_USLEEP (only used if nanosleep() is not found).
2003-01-23 21:06:50 +00:00
wiz
b9537c9578 Update strings for 1.11.5, noted by rafal. 2003-01-23 20:41:01 +00:00
is
cc76c3867a Use a neutral error message - the details have been printed already, and
the older message is plain wrong under some circumstances. See PR 5398,
which is fixed.
2003-01-21 22:47:20 +00:00
wiz
786c896ca5 Merge 1.11.5. 2003-01-21 09:43:36 +00:00
wiz
3cf515684c Initial import of cvs-1.11.5 (security fix was already in-tree). 2003-01-21 09:36:52 +00:00
thorpej
c50dc4c8fc Add port-sh5, port-evbsh5, port-x86_64, port-hppa, and port-hp700. 2003-01-20 17:48:59 +00:00
simonb
276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
martin
8124b6df6c Link and initialize thread support for alpha and arm. 2003-01-19 18:50:21 +00:00
martin
01313c857c Thread support for sparc and sparc64. 2003-01-19 18:33:25 +00:00
martin
d05cc42d06 Thread support for sparc and sparc64, not yet complete. 2003-01-19 18:32:39 +00:00
lukem
8c51a2ac71 When creating a "stamp" file with cp(1), explicitly provide the target
file name rather than relying upon "$@", since the latter might be the
path to an older version of the "stamp" file located in (possibly read-only)
source.
Fixes an annoying-to-debug build problem I hit in tools/texinfo...
2003-01-19 04:57:20 +00:00
christos
18d9e78838 merge nathanw_sa 2003-01-18 21:59:41 +00:00
christos
83ddcbcf97 merge nathanw_sa 2003-01-18 21:42:07 +00:00
christos
fe59493187 merge nathanw_sa 2003-01-18 21:36:47 +00:00
thorpej
456af78ad8 Merge the nathanw_sa branch. 2003-01-18 21:13:03 +00:00
grant
82c28ff066 fix some Unix -> UNIX, Posix -> POSIX and some typos.
From Igor Sobrado in PR pkg/19666.
2003-01-18 18:54:10 +00:00
wiz
db3fba8dd0 Remove GNU cpio and GNU tar, replaced by pax frontends. 2003-01-18 01:11:23 +00:00
wiz
c73b0887c0 Add ${IDIST}/makeinfo to .PATH for texinfo.dtd and texinfo.xsl. 2003-01-17 21:52:10 +00:00
wiz
a3d77729f3 Add infokey utility; install more locales and texinfo.dtd and texinfo.xsl. 2003-01-17 16:04:15 +00:00
wiz
3b8d5a75ff Add texinfo2netbsd script for import preparation. 2003-01-17 15:41:05 +00:00
wiz
15a719d303 Preliminary update for 4.3.
Define IDIST and use it instead of ${DIST}/texinfo.
2003-01-17 15:32:23 +00:00
wiz
f4370a0607 Handle conflicts after 4.3 import. 2003-01-17 15:25:44 +00:00
wiz
546d89be5d Import of texinfo-4.3. 2003-01-17 14:54:14 +00:00
christos
4fc750a8e7 PR/19762: Urban Boquist: Make gssapi work again. 2003-01-16 13:42:49 +00:00
wiz
97cbe2b2be Not needed (will be automatically generated from getdate.y). 2003-01-16 12:22:33 +00:00
wiz
7db7049e69 More diff reduction vs 1.11.4 (actually a merge error...). 2003-01-16 03:15:55 +00:00
wiz
250491c9af More syncing with cvs-1.11.4. 2003-01-16 03:06:43 +00:00
wiz
730bdec1d2 Remove Dollar signs around another Id tag. 2003-01-16 03:00:37 +00:00
wiz
1da4d8f87c Minimize diffs with 1.11.4. 2003-01-16 02:57:47 +00:00
wiz
75b23fb832 Unused. 2003-01-16 02:51:20 +00:00
wiz
f099694510 Replaced by cvsbug.in. 2003-01-16 02:50:12 +00:00
wiz
1ae8b014e0 Unneeded. 2003-01-16 02:49:27 +00:00
wiz
a1c160fcab Replaced by cvs.spec.in for some time now. 2003-01-16 02:45:57 +00:00
wiz
bc095c7c0b Renamed to *.in for some time now. 2003-01-16 02:45:06 +00:00
wiz
680c69437a Changes to build 1.11.4. 2003-01-16 02:37:00 +00:00
wiz
f4d12e1051 Fix import instructions -- gnusrc is gone. 2003-01-16 02:35:17 +00:00
wiz
6aa895a2be Fix conflicts, merge to 1.11.4. 2003-01-16 02:33:08 +00:00
wiz
0cd0661e77 Import cvs-1.11.4. 2003-01-16 02:15:31 +00:00
matt
6fdfb50787 sim depends on bfd so make it is in front of bfd in the library list. 2003-01-13 07:09:53 +00:00
christos
264aa571b8 Fixes from Stefan Esser
- Avoid double free in dir_name
- Disable checkin-prog and update-prog
2003-01-13 00:09:17 +00:00
mrg
b83a08e1ff allow NO_SENDMAIL to equal "no" 2003-01-09 16:57:45 +00:00
wiz
1035faff1d writable, not writeable. 2003-01-06 20:30:28 +00:00
wiz
5e442fbbdd specified, not specifed. 2003-01-06 12:38:47 +00:00
pooka
732f4c9fa5 Add ${MACROS} to ${ROFF} usage to make output readable
from jbernard@mines.edu in misc/19685
2003-01-05 12:24:22 +00:00
wiz
7157d2da1c ouput -> output, from Igor Sobrado in PR 19667. 2003-01-04 11:05:22 +00:00
wiz
06eb662ff9 Repetition, not repitition. 2003-01-03 12:11:49 +00:00
jschauma
82f3464942 Fix typos pointed out by Igor Sobrado in PR misc/19645 (some of these
have already been fixed by others):

groff(7)        - repition (repetition), 2-characer (2-character),
		lenght (length), ident (indent)
groff_man(7)    - supressed (suppressed)
groff_markup(7) - SYNPOSIS (SYNOPSIS) (is it the "SYNOPSIS" section?)
groff_mm(7)     - wich, defualt (default), centerered (centered),
		behavies (behaves), argmuent (argument),
		with a automatically (with an automatically),
		Varable (Variable???), captial (capital),
		argumenent (argument), specifed (specified),
		excibits (is that word ok?), digitsized (digit-sized?),
		lable (label)
troff(1)        - environents (environments)
grohtml(1)      - supress (suppress)
groff_font(5)   - intepreted (interpreted)
groff_tmac(5)   - constitue (constitute???)

(Changes also sent to gnu.org)
2003-01-03 04:02:06 +00:00
tron
55ccbca240 Fix an incorrect assert() which was triggered when the RCS buffer was
empty at the entry to rcsbuf_getkey().
2003-01-02 15:19:49 +00:00
jschauma
432d470724 Fix typos pointed out by Igor Sobrado in PR misc/19621. 2003-01-02 00:22:29 +00:00
tsutsui
3191c1ad08 Mention -b and -v flags which were added when dbsym(8) was BFD'fied. 2002-12-28 21:47:02 +00:00
wiz
cf6ded352c Let the commit message contain an empty line by default.
[Not in 1.11.2; was in 1.11 and earlier.]
2002-12-25 23:29:19 +00:00
lukem
ab7ffcee5e remove ${DESTDIR} from symlink target 2002-12-25 07:45:35 +00:00
perry
cc42061ca2 add rcsids 2002-12-24 21:37:43 +00:00
perry
d12135aa79 resort, add html, clean up 2002-12-24 21:21:03 +00:00
perry
df21694424 some of these are links 2002-12-24 21:20:09 +00:00
perry
e48601bf9e add RELEASE_NOTES 2002-12-24 21:07:49 +00:00
perry
4e499dab3c update. 2002-12-24 20:56:12 +00:00
perry
cad21f274d resolve conflicts 2002-12-24 20:38:22 +00:00
perry
7857417570 resolve conflicts 2002-12-24 20:26:59 +00:00
perry
18338a662b update for postfix 2.0.0.1 2002-12-24 19:47:47 +00:00
perry
56fd167ac6 Add Makefile for the postfix html docs 2002-12-24 19:45:36 +00:00
perry
b721296743 import postfix 2.0.0.1 2002-12-24 19:39:42 +00:00
lukem
144b55005f Rework METALOG manipulation:
- add '-D ${DESTDIR}' to INSTPRIV, so install(8) removes the leading
  ${DESTDIR} from the metalogged path
- provide ${METADB.add} variable (for "${CAT} -l >> ${METALOG}"), to make
  it easier to replace manual metalog manipulation in the future.
- with manual metalog additions, don't add the leading ${DESTDIR} in the path
- in maketars, use "mtree -C ..." instead of
  "mtree -D ... | sed -e 's,\(.*\) \(\..*\),\2 \1,";

Benefits:
- maketars "Parsing METALOG" step speeds up from 29 seconds to 1.2 seconds
  on a P3-600.
  (This also benefits "make installworld" at the top level.)
- ${DESTDIR}/METALOG is easier to read without the leading "${DESTDIR}"
  on all the pathnames, and it's smaller as well.
2002-12-23 06:52:48 +00:00
wiz
c8afb6fe49 therefore, not therfore. From Adrian Mrva. 2002-12-21 13:12:33 +00:00
wiz
e9bf1ab238 compatibility, not compatability. From Adrian Mrva. 2002-12-21 13:10:54 +00:00
wiz
d4bb2d1451 specifying, not specifing. From Adrian Mrva. 2002-12-21 13:08:41 +00:00
wiz
574adf7715 environment, not environent. From Adrian Mrva. 2002-12-21 13:07:48 +00:00
wiz
1c682d9b0f administrator with two is, from Adrian Mrva. 2002-12-21 12:23:33 +00:00
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
thorpej
807b74c49c Skip sys_errlist for __APPLE__. 2002-12-16 06:35:48 +00:00
tron
6c9c8b753c Fix toolchain build problem. 2002-12-13 15:37:10 +00:00
imp
d1f4286bb5 FreeBSD needs the same special hacks for sys_errlist and sys_siglist during
cross building.
2002-12-10 17:39:52 +00:00
thorpej
8ddcb88aa5 Avoid conflict with reserved identifier "log". 2002-12-06 16:01:14 +00:00
scw
f88b19a600 Avoid strict-alias warnings. 2002-12-06 09:57:58 +00:00
christos
a5eb73d466 Better fix for the portability cast problem via Urban Boquist. 2002-11-28 22:04:46 +00:00
christos
a65d983bd0 this is not used anymore. 2002-11-28 22:03:41 +00:00
christos
71a5c52102 we have mkstemp 2002-11-28 22:03:11 +00:00
itojun
8d1263a490 deal with systems with sizeof(void *) != sizeof(int) 2002-11-28 10:00:17 +00:00
itojun
935a2e30db fix pointer-to-int cast problem 2002-11-28 09:57:16 +00:00
christos
c4b90ab8cd resolve conflicts. I have not tested ipv6 or gssapi. 2002-11-28 05:59:06 +00:00
christos
6040caeaed add annotate.c and remove rtag.c for 1.11.2 2002-11-28 05:57:55 +00:00
christos
56783dd727 import cvs-1.11.2 2002-11-28 04:53:41 +00:00
itojun
9b18994fd3 sync w/ 1.1.12. 2002-11-26 03:38:12 +00:00
itojun
fd0368cb1f postfix 1.1.12 2002-11-26 03:29:46 +00:00
thorpej
3ff9eb92d3 Make it possible for the a.out BFD back-end to merge read-only
sections with .text if the following 3 conditions are true:

1. Section has file contents and is read-only.
2. The VMA of the section is after the end of .text and before
   the start of .data.
3. The image is demand-pageable (otherwise, a_text in the header
   will not reflect the gap between .text and .data).

Fixes PR 19164.
2002-11-25 23:15:15 +00:00
thorpej
9022b5f984 In ASM_SPEC:
* If -mhard-float is passed to the compiler, pass -mfpa10 to the assembler.
* If -msoft-float is passed to the compiler, pass -mfpu=softvfp to the
  assembler.
* If neither -mhard-float nor -msoft-float are passed to the compiler,
  pass -mfpu=softvfp to the assembler.

These changes properly mark objects as using soft-VFP, as is the default
code generation for NetBSD ARM ELF.
2002-11-21 17:57:35 +00:00
thorpej
aedbc29a82 Various changes to support soft-vfp:
* FPU_MEMMULTI -- only include the FPU_FPA10 bit.
* FPU_ARCH_VFP -- define, meaning "uses VFP-format layout".
* FPU_FPA -- define short-hand for (FPU_CORE|FPU_FPA10).
* FPU_DEFAULT -- FPU_ALL -> FPU_FPA.
* Floating point instructions -- FPU_ALL -> FPU_FPA.
* Also set F_SOFT_FLOAT if FPU_ARCH_VFP.
* Set F_VFP_FLOAT if FPU_ARCH_VFP.
* md_atof: lay out bytes properly if using VFP.
* Accept -mfpu=softvfp.
* For -mall, set the FPU part of cpu_variant to FPU_FPA, instead of
  FPU_ALL.
2002-11-21 06:32:20 +00:00
thorpej
fafe44f640 From bintuils-current:
In elf32_arm_merge_private_bfd_data(), if the input-bfd and output-bfd
do not have matching VFP indication, report an error.
2002-11-21 06:27:33 +00:00
thorpej
efce487d2d Define the header bit indicating VFP-format floating point. 2002-11-21 06:25:57 +00:00
thorpej
bdf3ddd15f Regenerate (unfortuantely, with a much later version of bison). 2002-11-20 06:57:01 +00:00
thorpej
accdd8107f Fix a problem with placing orphaned sections (like the ones with
C-referenceable names, i.e. "link sets") that happens with explicit
LMAs in the linker script:

	* As orphans are sorted after sections, the effective
	  size of the section is changed.  Record a size ajustment
	  for each orphan that is sorted after the section.

...and for sections which have an explicit load address expression:

	* The first time an orphan is sorted after a section,
	  copy the load_base expression to the orphan, adding
	  the _unadjusted_ size of the parent section.  We need
	  to use the unadjusted size because by the time the
	  expression can be folded, all of the orphan size
	  adjustments will have accumulated, resulting in misplacing
	  the orphan.

	* For each subsequent orphan sorted after a section,
	  set the load_base of the orphan to the load address
	  of the previous orphan plus the size of the previous
	  orphan (actually, the unadjusted size, but for orphans,
	  size and unadjusted size are always equal).
2002-11-20 06:51:07 +00:00
thorpej
ee325b474f Back-port "spec functions" from GCC 3.3. Use if "if-exists()" spec
function to include crti.o/crtn.o in the STARTFILE and ENDFILE
specs, respectively.

Corresponding GCC ChangeLog entry:

2002-11-19  Jason Thorpe  <thorpej@wasabisystems.com>

        * gcc.c (The Specs Language): Document spec functions.
        (static_spec_functions, lookup_spec_function)
        (eval_spec_function, handle_spec_function)
        (if_exists_spec_function, alloc_args): New.
        (execute): Abort if processing_spec_function is true.
        (do_spec_1): Hand off spec to handle_spec_function if %:
        is encountered.  If processing_spec_function is true,
        end any pending argument when the end of the string is reached.
        (main): Use alloc_args to allocate the initial argument vector.
        * gcc.h (struct spec_function): New.
        (lang_specific_spec_functions): New extern.

        * config/netbsd-elf.h (STARTFILE_SPEC): Add if-exists(crti%O%s).
        (ENDFILE_SPEC): Add if-exists(crtn%O%s).
        * config/alpha/netbsd.h (ENDFILE_SPEC): Likewise.
2002-11-19 04:46:12 +00:00
thorpej
260b39b0f5 Put const data in .rodata (cut-and-pasted from linux-elf.h). Pass -matpcs
to the assembler.
2002-11-17 06:03:07 +00:00
thorpej
6cdb340cbc Define __ABICALLS__ if -mno-abicalls is not specified. 2002-11-10 18:01:50 +00:00
thorpej
79a6015e7e Fix PIC handling logic in ASM_SPEC: always pass -KPIC to the assembler
unless one of the following flags are passed to the compiler:

	-mno-abicalls
	-fno-pic
	-fno-PIC

Based on the following change in gcc-current:

2002-09-22  Jason Thorpe  <thorpej@wasabisystems.com>

        * config/mips/netbsd.h (SUBTARGET_ASM_SPEC): Always pass -KPIC
        unless -fno-pic or -fno-PIC is specified.

The -mno-abicalls handling is new to this patch, and will be checked
into gcc-current shortly.
2002-11-09 08:09:21 +00:00
heinz
30a9e0125d Correct list of options for 'commit': '-F file', as mentioned in the
explanation of 'commit'.

Minor nit.
2002-11-06 22:26:47 +00:00
thorpej
8fa28a286c Bring in the following change from Binutils-current:
2002-09-28  Matt Thomas  <matt@3am-software.com>
            Jason Thorpe  <thorpej@wasabisystems.com>

        * config/tc-vax.c (md_estimate_size_before_relax): Only try to
        convert undefined references to GOT32/PLT32 if PIC code is
        requested.  Fix comment.
2002-11-05 14:33:35 +00:00
thorpej
b4f17138b9 * Tidy up CC1_SPEC. Remove the -mno-pic flag, which didn't actually
work properly.
* Add a new -mno-asm-pic flag which tells the assembler to assemble
  the code non-PIC even if it was compiled PIC.
2002-11-05 14:31:58 +00:00
thorpej
64a5da6461 Revise previous to xstrdup the basename earlier; an intervening call to
basename() was occurring.

Pointed out by Matthias Drochner.
2002-11-01 16:07:37 +00:00
thorpej
f8b18efd0c xstrdup the return value of basename() before recording it in the bfd
with bfd_elf_set_dt_needed_soname().  Fixes the "NEEDED crtend.o"
problem reported on tech-toolchain/current-users.

Problem spotted by Ryo HAYASAKA <ryoh@jaist.ac.jp>.
2002-10-31 23:21:17 +00:00
wiz
30d6695239 Comment out cross-references to man pages that don't exist.
Closes PR 18862 by rtr at wasabisystems com.
2002-10-31 02:51:06 +00:00
rafal
2fdb31c4e3 Fix a bug with list handling that caused this to abort with a "extraneous
<string>" message if the stars were aligned incorrectly due to fast-and-
loose list handling.

The list handling code didn't discriminate between list nodes and list
heads, resulting in string comparisons using memory in the "list heads
by length" array as the target of the comparison; if the string being
handled was short enough and the pointers present in the list heads
array were just the right form the tool would get spurious matches and
exit with the above message.

PR toolchain/18858
2002-10-30 18:14:37 +00:00
thorpej
1268b2dbc5 Add an x86_initialize_trampoline() function, similar to GCC 3.3,
change INITIALIZE_TRAMPOLINE() to use it, and apply the following
patch to it (which I have already submitted to GCC 3.3):

	* config/i386/i386.c (x86_initialize_trampoline): Emit a call
	to __enable_execute_stack with the address of the trampoline
	if TRANSFER_FROM_TRAMPOLINE is defined.

Define a TRANSFER_FROM_TRAMPOLINE suitable for NetBSD targets, to enable
stack execution on target machines which can separate exec permissions for
a region:

	* config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Define.
	* config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Define
	as NETBSD_ENABLE_EXECUTE_STACK.
	* config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
	* config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
	* config/sparc/netbsd-elf-common.h (TRANSFER_FROM_TRAMPOLINE): Ditto.
	* config/sparc/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Ditto.

(A similar patch will be submitted to GCC 3.3.)
2002-10-18 16:23:47 +00:00
thorpej
00b192ce18 Bring in the following fix from gcc-current:
2002-10-17  Jason Thorpe  <thorpej@wasabisystems.com>

        * config/alpha/alpha.c (alpha_initialize_trampoline): Use
        tramp, not addr, to pass the trampoline address to
        __enable_execute_stack.

Otherwise, incorrect behavior would result if the trampoline happend
to stradle a page boundary.
2002-10-17 21:01:03 +00:00
itojun
f1215ef8af add missnig -I to gnu/dist/mrouted, which is needed by gcc 3.2
(somehow 2.95 automagically includes it into -I path)
2002-10-17 12:50:00 +00:00
christos
706c1ce906 Flip the pax switch 2002-10-16 15:23:59 +00:00
enami
9fdb1e7ba1 Restore other symlink attributes. 2002-10-13 22:58:55 +00:00
martin
14cde9f60d Add a few dependencies to make sure libtar/fnmatch.h is generated before
anything includes <fnmatch.h>. Using our native /usr/include/fnmatch.h is
no good idea, they are incompatible.

XXX - why is tar using it's own implementation?

I'm not sure this is the right way to handle the problem, but it made
a "make cleandir && make" here possible again.
2002-10-13 18:41:48 +00:00
agc
84c3d85401 If we're going to rely on a pre-generated getdate.c, we might as well rely
on one generated with the correct functionality inside it.
2002-10-11 08:58:44 +00:00
drochner
3dd7978358 add a dummy pattern rule to avoid yacc invocation
(which fails with r/o src tree)
2002-10-10 13:03:19 +00:00
itojun
4384c54c01 switch to GNU tar 1.13.25 with security fixes. 2002-10-10 08:22:22 +00:00
itojun
e076df538c seemingly more correct ".." patch by Solar Designer <solar@openwall.com>,
from bugtraq posting
2002-10-09 19:58:35 +00:00
itojun
9ad5cf147a sort 2002-10-09 19:54:05 +00:00
itojun
05b137baea allow --unbzip2 for backward compat
-y is not allowed as -y is reserved by GNU tar camp, it seems.
2002-10-09 19:53:25 +00:00
itojun
1130454b1c bring in --fast-read code from freebsd. 2002-10-09 19:28:14 +00:00
itojun
34c781b6f4 sync with latest --help output. 2002-10-09 17:01:34 +00:00
itojun
caaeaa46d8 patch from redhat rpm - check st_mode earlier 2002-10-09 16:40:21 +00:00
itojun
99ba27c717 vide --fast-read (no-op) 2002-10-09 16:23:27 +00:00
itojun
b8621000a9 correct LDADD/DPADD 2002-10-09 16:17:45 +00:00
itojun
b33ebc5522 no file in .CURDIR 2002-10-09 16:14:55 +00:00
itojun
d9bffe1f20 split internal library build into subdir. 2002-10-09 16:13:07 +00:00
itojun
6dee53867d --norecurse and --unlink for backward compat 2002-10-09 12:01:29 +00:00
itojun
c873f2dfba dot-dot security fix, from redhat tar-1.13.25-1.6.src.rpm 2002-10-09 12:01:11 +00:00
itojun
d67562c763 new GNU tar based on gnu/dist/tar. (to replace gnu/usr.bin/tar in the
near future - hopefully)
2002-10-09 11:55:02 +00:00
itojun
fab68d14ac GNU tar 1.13.25 from alpha.gnu.org 2002-10-09 10:09:12 +00:00
itojun
29ef0d0d98 more strict checking on command invocation.
http://www.sendmail.org/smrsh.adv.txt, NetBSD PR 18516
2002-10-03 03:31:46 +00:00
wiz
12d694f3c4 Fix lots of typos. Some spotted by Adrian Mrva. 2002-10-02 15:39:09 +00:00
wiz
0cddcd9152 interpreted instead of intepreted. By Adrian Mrva. 2002-10-02 11:12:41 +00:00
wiz
659da00975 hve -> have. 2002-10-02 10:00:53 +00:00
thorpej
cde0a5d6aa __mcount uses jsb linkage, so there is no need to skip the (non-existent)
register save mask.  Profiling now works.

Also, use asm_fprintf() in FUNCTION_PROFILER.
2002-10-02 00:50:24 +00:00
itojun
c3cbda0efb move mbone tools out of basesrc, as they use part of mrouted 2002-10-01 03:50:07 +00:00
itojun
d0a9c54d7d latest license terms, via openbsd 2002-10-01 03:41:13 +00:00
itojun
9bbfbbb676 move mrouted out of basesrc, as it carries non-BSD license.
agreed w/ core.
2002-10-01 03:30:50 +00:00
grant
2f722d4d84 Include DOMAIN(generic) so that various standard configuration items are
included, notably enabling the use of /etc/mail/local-host-names.
2002-09-30 01:27:05 +00:00
thorpej
e870e0c546 Pick up the following change from binutils-current:
2002-09-28  Jason Thorpe  <thorpej@wasabisystems.com>

        * elf32-vax.c (elf_vax_size_dynamic_section): Don't strip
        .got sections.
2002-09-28 23:19:01 +00:00
wiz
398c2e6b26 Change argument handling to be like in groff-1.18, thus avoiding
a possible buffer overflow.
2002-09-27 15:05:11 +00:00
wiz
dcc8010de1 ANSIfy, de-__P, complete sync of usage with man page. 2002-09-27 07:28:18 +00:00
wiz
9e9685df35 Sync usage with man page. 2002-09-27 07:25:17 +00:00
wiz
fefd5e68e0 Bump date for -x addition. Sort options in usage. 2002-09-27 07:25:07 +00:00
mycroft
b06a300a8a Fix a bug WRT -vomit-frame-pointer -- use_return_insn() must return false if
we saved the GOT pointer register.
Note: This is already fixed in the GCC 3 sources, but GCC 3 uses a different
condition to determine whether to save and restore the register, so the patch
cannot be the same.
2002-09-26 14:21:39 +00:00
dbj
2cbb8bc3bf add the -x option to extract the filesystem image from the kernel 2002-09-26 10:40:59 +00:00
mycroft
2468728dc8 Add missing parens that caused PLT slots >=32768 to jump to the wrong place. 2002-09-25 20:05:14 +00:00
wiz
3a300f71f9 Re-add, it is still used, but one only sees it in a full build, not a tools
build.
2002-09-22 13:06:44 +00:00
wiz
e751d90149 Now that the old toolchain is gone, rename gdb.new to gdb, as requested
in a comment in gdb.new's Makefile. Remove that comment.
2002-09-22 12:58:23 +00:00
wiz
ed5d7e73eb Remove some survivors of the old-toolchain removal. 2002-09-22 10:31:16 +00:00
wiz
625e362cc2 Remove completely outdated maintenance history, and add proper NetBSD RCS tag. 2002-09-22 09:47:56 +00:00
thorpej
914a9c522b -D__STRONGARM__ for -mcpu=strongarm* 2002-09-21 00:26:47 +00:00
thorpej
0604df808f Do -D__XSCALE__ -D__ARM_ARCH_5TE__ for -march=xscale, as well, as
GCC 3.x does.
2002-09-21 00:19:30 +00:00
rearnsha
efc53cb5f7 Pull up the following patch from FSF GCC (fixes aborts when compiling
large functions for ARMv4):
Fri Nov 12 13:31:54 1999  Bernd Schmidt  <bernds@cygnus.co.uk>
* config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Treat QImode
addresses the same way GO_IF_LEGITIMATE_INDEX does.
2002-09-19 21:52:29 +00:00
lukem
0ac69ffac4 - use NETBSDSRCDIR as appropriate
- makefile lint (moving NOxx to top of file,
  include <bsd.own.mk> as necessary, ...)
2002-09-19 03:09:31 +00:00
lukem
1addf6d6b3 makefile delint and reorg 2002-09-19 01:58:06 +00:00
thorpej
1dd1ce77c1 Remove more old toolchain bits. 2002-09-17 23:24:52 +00:00
thorpej
3b08abd277 * Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

  TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
  no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

  EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
  an external toolchain (e.g. /usr/local/gnu).  This enables the cross-build
  framework even for TOOLCHAIN_MISSING platforms.

  If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
  unconditionally set to "no", since the bits are not there to build.

  If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
  since the external toolchain's compiler is not in-sync with the
  in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
  that file can use it.
2002-09-17 23:18:25 +00:00
toshii
0a4b948848 Make sure to write back correct FP state. Fixes port-i386/17927. 2002-09-17 07:05:09 +00:00
thorpej
263d19930b Remove binutils 2.9. 2002-09-16 19:23:29 +00:00
thorpej
0f9c63ed39 Remove binutils 2.9. 2002-09-16 18:41:54 +00:00
thorpej
39c9c4310b Delete bintuils 2.9. 2002-09-16 18:13:05 +00:00
thorpej
e795439f84 Delete bintuils 2.9. 2002-09-16 17:59:12 +00:00
thorpej
2a57f8214b Remove gdb-4.17. 2002-09-16 17:42:22 +00:00
thorpej
e2ba73e2b5 Remove gdb-4.17. 2002-09-16 17:32:21 +00:00
thorpej
c07fb42b05 Remove gdb-4.17. 2002-09-16 17:22:20 +00:00
thorpej
f408d84a70 Remove the old egcs compiler. 2002-09-16 17:12:08 +00:00
thorpej
1bdb20e71b Remove the old egcs compiler. 2002-09-16 16:53:47 +00:00
thorpej
0b58bd1716 Remove the old egcs compiler. 2002-09-16 16:50:59 +00:00
thorpej
88edc7e11d Remove the old egcs compiler. 2002-09-16 16:40:58 +00:00
thorpej
f6abb51010 Remove the old egcs compiler. 2002-09-16 16:39:52 +00:00
thorpej
089852526d Remove files used by the egcs/bintutils 2.9 toolchain. 2002-09-16 16:36:51 +00:00
thorpej
4ae80dbd09 Delete the egcs/binutils 2.9 toolchain. Remove USE_NEW_TOOLCHAIN
conditionals.
2002-09-16 16:22:15 +00:00
thorpej
4b7235a207 bfd_vms is not a pointer type, so use 0 instead of NULL. 2002-09-13 15:29:08 +00:00
thorpej
68a6263e36 * Pull in config.h if building as a host tool.
* bfd_vma is not a pointer type, so use 0 instead of NULL.
2002-09-13 15:28:44 +00:00
matt
25c3b57cd5 Don't emit R_VAX_GLOB_DAT for symbolic links. Eliminate all
local_got_offset cruft that's was still there.  Change the way
got_entries were assigned.  Now do it in elf_vax_size_dynamic_sections.
Add a routine elf_vax_instantiate_got_entries which assigns space in
the GOT or changes to normal PC32 references for static or symbolic links.
2002-09-12 17:51:33 +00:00
lukem
5d2cdf0811 Add missing "echo", as pointed out by Havard Eidnes <he@netbsd.org>
in PR [bin/18155].  (Whilst this fix needs to be fed back to Wietse Venema,
there's no reason not to fix it locally...)
2002-09-06 05:36:14 +00:00
thorpej
4c30492b6c * Rename ARM_FLAG_ATPCS_STACK_ALIGN to ARM_FLAG_ATPCS.
* Rename TARGET_ATPCS_STACK_ALIGN to TARGET_ATPCS.
* Move APTCS aggregate return rules to arm_return_in_memory(), conditional
  on TARGET_ATPCS, and make it also return true for variable-sized aggregates.
2002-08-28 17:33:54 +00:00
mycroft
c38b03a8c7 Fix SELECT_SECTION() so that C++ run-time type info constructors do not go in
.rodata on PIC systems, which was causing text relocations (and associated
performance loss).
2002-08-28 14:05:58 +00:00
nathanw
a7a8c9a009 Not for the trunk yet. 2002-08-28 00:00:57 +00:00
nathanw
0e972f7cec Support for debugging threaded programs, with libpthread and libpthread_dbg. 2002-08-27 23:56:43 +00:00