Commit Graph

4540 Commits

Author SHA1 Message Date
mrg 7764cab06d merge the non-aout-shlib changes forward from gnu/dist/toolchain. 2003-11-27 09:45:33 +00:00
mrg f8f47744d8 disable rules that modify the source tree. 2003-11-27 09:40:38 +00:00
mrg ebf56cd11f re-add binutils 2.14 files. 2003-11-26 12:29:43 +00:00
mrg 1a898f987d initial import of binutils 2.14 into gnu/dist/binutils. 2003-11-26 11:33:51 +00:00
mrg 2e50f8ac41 initial import of binutils 2.14 into gnu/dist/binutils. 2003-11-26 11:31:11 +00:00
uwe 633913b2b3 Add ifdefed inits for TUI and if 0'ed _initialize_nbsd_thread (not yet). 2003-11-24 01:59:59 +00:00
uwe c9a82b254b DEFAULT_BFD_VEC should be little endian bfd_elf32_shlnbsd_vec. 2003-11-24 01:58:22 +00:00
uwe 10ff81335f Set ENTRY=__start to be consistent with other ELF ports. The produced
binaries are the same, as we provide both _start and __start symbols
for the entry point in crt0.

PR#22073 by Izumi Tsutsui.
Ok by Matthew Green <mrg@netbsd>.
2003-11-23 13:54:11 +00:00
nathanw d8637f542a Use $(build_exeext) in both the source and destination, like the other
rules.
2003-11-20 18:43:58 +00:00
nathanw 0dcab12a43 Add a missing $(build_exeext) 2003-11-19 23:45:25 +00:00
lukem b7b564a26d add fini.lo to CLEANFILES 2003-11-16 22:49:48 +00:00
lukem 263786182a support MAKEVERBOSE 2003-11-16 16:29:04 +00:00
lukem 59c9b264d0 Use .lo for host tool objects.
Use CPPFLAGS.file correctly (CPPFLAGS.foo.c _not_ CPPFLAGS.foo.o !)
Support MAKEVERBOSE.
Be consistent about make(1) variable use.
2003-11-16 16:24:48 +00:00
matt 4e90dd053f Add kcore and netbsd thread support. 2003-11-14 19:10:00 +00:00
matt 8056b67d49 Add kcore & netbsd thread support 2003-11-14 19:08:49 +00:00
briggs 5e0fd052da Fix from Ian Lance Taylor to allow building a cross-gdb with arm--netbsdelf
target.  Patch as seen on tech-toolchain@.
2003-11-14 15:06:15 +00:00
dbj be929a0a55 update to most recent versions 2003-11-13 03:06:40 +00:00
martin 4b0b317837 Remove unused variables. 2003-11-11 16:28:59 +00:00
martin 6354cf63d2 Fix register offset calculations. From Christian Limpach. 2003-11-11 16:24:23 +00:00
scw 9bf3f153c5 Apply a patch from Richard Earnshaw which fixes a half-word load/store
codegen bug on armeb.
2003-11-11 12:04:13 +00:00
matt 8c60671ca9 Add thread support. 2003-11-10 21:59:58 +00:00
matt 0ef98a7702 Make version 5.3nb1 2003-11-10 21:49:14 +00:00
matt e2bf0dc236 Enable nbsd-thread.
Make version 5.3nb1.
2003-11-10 21:48:48 +00:00
mrg 0bcb648614 set the arm breakpoint depending on the byte order. now armeb gdb works. 2003-11-09 02:52:07 +00:00
ragge 587d7055bd Set optimizing to -O0 for vax (was -O1 before), otherwise awk
gets internal errors when used.
2003-11-08 17:17:59 +00:00
mrg b6f7d4362f default armeb*netbsd* to ARM_FLAG_BIG_END 2003-11-08 06:57:26 +00:00
uwe af9cced758 The "pref @rN" instruction was introduced in sh3, not sh4, so correct
its sh_opcode_info entry accordingly.
2003-11-07 14:43:18 +00:00
mrg 57ddb40e82 be sure to default to bfd_elf32_bigarm_vec not bfd_elf32_littlearm_vec 2003-11-07 07:31:44 +00:00
mrg 68002eaa4a build ra-colorize.c with -O0 until the bug that causes it to have dozens
of undefined references to local symbols is fixed.
2003-11-05 00:05:48 +00:00
hannken 83bd54e877 Add "target kcore" to gdb53/sparc64.
Taken verbatim from the old gdb in src/gnu/dist/toolchain/gdb.

Approved by: Christos Zoulas <christos@netbsd.org>
2003-11-04 19:33:39 +00:00
scw 437384a077 Regen for TARGET_ENDIAN_DEFAULT=ARM_FLAG_BIG_END fix in config.gcc. 2003-11-04 14:46:59 +00:00
scw 2a38410f5e Need to add TARGET_ENDIAN_DEFAULT=ARM_FLAG_BIG_END to tm_defines if
configuring for armeb.
2003-11-04 14:45:16 +00:00
wiz 9678ca7caa Install grohtml(1). 2003-11-03 17:05:28 +00:00
skrll c1946cebd4 Index fpregsetp->fpr correctly. 2003-11-03 15:59:11 +00:00
ragge 3a99ca5371 Set USER_LABEL_PREFIX to "", otherwise native compilation of some GNU
utilities (like texinfo) fails.
2003-11-03 10:07:34 +00:00
hannken 3f72313b8e Add "target kcore" to gdb53/sparc.
Taken verbatim from the old gdb in src/gnu/dist/toolchain/gdb.

Approved by: Christos Zoulas <zoulas@netbsd.org>
2003-11-02 20:59:28 +00:00
uwe 1d729d7bc4 First cut at implementing software single stepping for sh3. We need
it because sh3 ports don't provide PT_STEP.  It is finally possible to
run programs under gdb now, though there are still issues to be
resolved.  It was deemed useful enough to commit early, while the work
is still in progress.  Tested on hpcsh.

Blessed by christos@.
2003-10-31 00:11:27 +00:00
mycroft b9c785bd44 As seen on tech-toolchain:
So the problem is thus:

* The {u,}mulsidi3 generate two parallel sets which modify the upper and lower
halves of the target register.

* life_analysis() does not track subregister modifications -- if you don't
modify the whole register with a single set, it considers the register
unused.

The simple, if klugy, solution to this is to stick an explicit clobber in.  It
seems to work.

While doing this, I noticed that constant folding was not happening for
32x32->64 multiplies.  This is because the parallel set generated by
{u,}mulsidi3 cannot be folded at all.  To solve this, I first expand to a
normal multiply, and then use a define_insn_and_split to convert it to the
parallel set after CSE and constant folding.

This patch has also been submitted to GCC bugzilla, but who knows if I'll get
a reply to that.
2003-10-29 21:25:03 +00:00
matt f22eb2930b From gcc-patches:
* real.c (encode_ieee_single): Ensure proper promotion.
Back out change to i386.c
2003-10-28 19:08:12 +00:00
mrg 00b48119d0 XXX: build mdsetimage.c / installboot/ffs.c with -O0 on sun2 as GCC3
barfs on these for now.
2003-10-28 08:21:26 +00:00
lukem b43426c867 Move the rule to disable .cc -> NULL transforms, so it works again. 2003-10-28 08:13:39 +00:00
lukem b947f38eae don't need .cc->NULL rule here 2003-10-28 08:12:32 +00:00
lukem 5966f94e07 Move the rule to disable .cc -> NULL transforms, so it works again.
Fixes "includes" when exception.cc is newer than inc/exception.
Noted in private mail by Havard Eidnes.
2003-10-28 07:38:57 +00:00
lukem ad700b72aa replace $(SHELL) with ${HOST_SH} 2003-10-28 02:51:56 +00:00
uwe 375b04dc77 Default to the little-endian bfd_elf32_shlnbsd_vec. 2003-10-28 01:58:23 +00:00
mrg 45e224e8d4 fix a typo in previous pointed out by lukem 2003-10-28 01:25:33 +00:00
mrg e2c8806fcf compile (but not run-time) tested sh3eb-netbsdelf-gdb support. 2003-10-28 01:21:37 +00:00
uwe 398db2f8fd Item 1 - mention that you can configure and build in a scratch
directory, thus saving the trouble of doing distclean and cvs update.

Item 4 - it's defs.mk, not defs.h.

New bullet - in defs.mk set G_BFD_CPPFLAGS from `tdefaults' variable
of the generated bfd/Makefile.
2003-10-28 01:12:11 +00:00
mrg d103a27279 compile-tested sun2 support for GDB 5.3. 2003-10-27 23:56:55 +00:00
mrg 1b3f9cdd10 revert previous 2003-10-27 23:56:14 +00:00
mrg f8fa4ee590 sun2 lib*3 for GCC3. 2003-10-27 17:19:58 +00:00
mrg 42f41e65c7 mostly working configuration updates for sun2.
XXX - gcc3/backend/ra-colorize.c gets built wrong and the backend programs
XXX   fail to link.
XXX - mdsetimage & installboot/ffs.c get an unrecogised instruction ICE.
2003-10-27 16:55:32 +00:00
mrg a4697adcfc change "cc -dumpversion" back to "3.3.2", as per old behaviour.
should fix PR#23280.
2003-10-27 16:43:29 +00:00
mrg 2a50c63fdf change the "long" version from "3.3.2-nb1" to "3.3.2 (NetBSD nb1 20031026)"
which is more inline with what we used previously.
2003-10-27 16:42:33 +00:00
mrg 2f6aa47ade compile (but not runtime) tested support for armeb-netbsdelf-gdb 5.3 2003-10-27 16:36:19 +00:00
thorpej 75516c03f7 When running mkfixinc.sh, explicltly export SHELL, as well, since on
some platforms (e.g. OS X), we disable exporting make(1) variables in
the environment due to ARG_MAX limitations.
2003-10-27 16:20:04 +00:00
hannken 0165bf4148 Make it compile again. Blind copy-and-paste from sparc64nbsd-nat.c.
Approved by: Christos Zoulas <christos@netbsd.org>
2003-10-27 14:10:54 +00:00
mrg 8d8c032590 add armeb-netbsdelf GCC3 support. (not tested) 2003-10-27 01:37:08 +00:00
wiz 51677832e7 Close parentheses. 2003-10-27 00:57:04 +00:00
cl 44f9690b65 g/c unused variables 2003-10-27 00:41:09 +00:00
lukem 171d653219 Overhaul how `build.sh tools' are used:
*	Rename "config.h" to "nbtool_config.h" and
	HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
	This makes in more obvious in the source when we're using
	tools/compat/config.h versus "standard autoconf" config.h

    *	Consistently move the inclusion of nbtool_config.h to before
    	<sys/cdefs.h> so that the former can provide __RCSID() (et al),
    	and there's no need to protect those macros any more.

These changes should make it easier to "tool-ify" a program by adding:
	#if HAVE_NBTOOL_CONFIG_H
	#include "nbtool_config.h"
	#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
christos 94920a3392 Add the declarations in init.c too (mentioned by Christian Limpach) 2003-10-26 17:49:24 +00:00
christos 34e2db4a3c Make this link and work again (from Christian Limpach) 2003-10-26 17:45:13 +00:00
christos f9f34b91b1 Add a guide on how to add new NetBSD platform support to gdb. Requested by
mrg.
2003-10-26 17:18:04 +00:00
mrg ce063d020a fix a bad merge: s/ifdef/ifndef/. fixes PR#23275 2003-10-26 09:45:44 +00:00
lukem f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
lukem 857ab1bdd0 use ${HOST_SH} instead of /bin/sh 2003-10-26 03:50:07 +00:00
lukem 414f1003f0 don't need to set SHELL=/bin/sh 2003-10-26 03:49:39 +00:00
matt 1bafa7eae6 Fix LP64 bug. 2003-10-26 01:32:22 +00:00
chs 9bbee945e7 fix cross-building from linux. this is rev. 1.23 from groff CVS
(with the definition of SHELL added back).
2003-10-26 00:39:23 +00:00
simonb 969d07f64f * mips-tdep.c (mips_addr_bits_remove): Don't shift by 32
From Ian Taylor.
2003-10-26 00:08:23 +00:00
matt 4be480cd15 Fix 64LPism. Use 1L instead of 1 so that sign extension doesn't happen on
bit 31.
2003-10-25 21:55:37 +00:00
matt 6e23d936ae More fixes. 2003-10-25 19:02:07 +00:00
matt 91f24c5034 Try dealing with sigtramps better. 2003-10-25 19:01:45 +00:00
matt 7819efde3c GDB 5.3 support for VAX 2003-10-25 18:26:07 +00:00
matt 17aa9b0c9b Use gregset_t/fpregset_t since that's what is really wanted. 2003-10-25 18:25:42 +00:00
matt 1b7561a047 Add VAX GDB 5.3 support. 2003-10-25 18:24:58 +00:00
matt 3e45a9f0c7 Fix library order so that -static will work. 2003-10-25 18:24:23 +00:00
cl 54641460eb make m68k/gdb53 compile as a crossgdb
- catch up tm-nbsd.h with gnu/usr.bin/gdb53/arch/m68k/tm.h
- only use nbsd-thread.o in m68k nbsd-host case
2003-10-25 16:20:58 +00:00
dmcmahill a2cc19e091 avoid trying to do "for f in ; do ..." which breaks while crosscompiling
on certain non-netbsd host.  Approved by Matthew Green, mrg at netbsd.
2003-10-25 02:42:00 +00:00
he 31cd1c23b7 More fallout from the NULL change:
If we HAVE_STRING_H, include it to bring strchr() prototype in scope.
2003-10-23 16:12:45 +00:00
seb e8b3aed4d7 Update version reported by gcc -dumpversion: it is now `3.3.2-nb1'
not `3.3.1' as before and neither `3.3.2'.

Approved by mrg@.
2003-10-23 09:59:25 +00:00
matt b8b1ccbdfd If host is x86-*-netbsd*, don't descend into gcc, gdb, and rcs 2003-10-23 02:58:49 +00:00
skrll 899032e619 Consistent naming. 2003-10-22 20:43:12 +00:00
lukem 5f259b477b add MAKEVERBOSE messages 2003-10-22 06:04:03 +00:00
lukem f6ed8b6422 add MAKEVERBOSE message 2003-10-22 05:58:31 +00:00
skrll a69cb4cc55 ARM thread support.
- add or expose {supply,fill}_{fp,g}regset functions
	- add lwpid to ptrace calls
2003-10-21 19:07:36 +00:00
skrll ee632a37d0 more NULL fallout. 2003-10-21 10:47:48 +00:00
lukem 130ab7336b Rework how MAKEVERBOSE operates:
*	Don't bother prefixing commands with a line of  ${_MKCMD}\
	and instead rely upon "make -s".  This is less intrusive on
	all the Makefiles than the former.  Idea from David Laight.

    *	Rename the variables use to print messages.  The scheme now is:
	    _MKMSG_FOO		Run  _MKMSG 'foo'
	    _MKTARGET_FOO	Run  _MKMSG_FOO ${.TARGET}
	From discussion with Alistair Crooks.
2003-10-21 10:01:19 +00:00
wiz c8a5e4585e Enable HAVE_MKTIME manually; the configure script fails since it
checks a weird corner case.
Should fix building platforms without shared libs.
Requested by Chuck Silvers.
2003-10-20 17:07:38 +00:00
lukem 0aa1a4cb76 revert previous; the items are in tmac.local 2003-10-20 05:26:20 +00:00
lukem 3fc127cd66 Support MAKEVERBOSE
Use ${HOST_SH}
Use BUILDSYMLINKS
2003-10-20 01:15:03 +00:00
lukem 46948f220d * Support MAKEVERBOSE
* Implement GROFFYSRCS, which contain a list of .y files to convert into
  .cpp and _tab.h.  Simplifies .y -> .cpp (et al) .
* Use "realall" target instead of "dependall"/"install" to ensure that
  various files are created correctly.
2003-10-20 00:54:36 +00:00
lukem 9d55f70359 support MAKEVERBOSE 2003-10-20 00:40:53 +00:00
cl b56d9ca137 add {supply,fill}_{fp,g}regset functions
remove nbsd_{fp,}reg_to_internal and nbsd_internal_to_{fp,}reg functions
add lwpid to ptrace calls
2003-10-19 20:11:22 +00:00
jdolecek 47740ad0ef make crc16_table[] static const 2003-10-19 19:30:08 +00:00
lukem d4a55392c2 Support MAKEVERBOSE.
Use BUILDSYMLINKS instead of home-grown equivalents.
2003-10-19 14:52:03 +00:00
wiz 5e43ad3add Add 1.4.1 and 1.6.2. 2003-10-19 08:58:52 +00:00
wiz ec09eb497f New sentence, new line. 2003-10-19 08:54:20 +00:00
wiz 8034863446 Add RCS Id. 2003-10-19 08:54:13 +00:00