Commit Graph

3796 Commits

Author SHA1 Message Date
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
lukem
ed401558f2 Implement MKDYNAMICROOT, which currently defaults to "no", but will
be changed in the future to "yes".

If MKDYNAMICROOT == "no", there is no change from existing behaviour
of a static /bin and /sbin (and a few programs in elsewhere).

If MKDYNAMICROOT == "yes", the following changes occur:
    in <bsd.own.mk>:
	SHLIBDIR?=     /lib
	SHLINKDIR?=	/lib
    in various Makefiles, the following entry is DISABLED.
	LDSTATIC?=-static
This results in all programs (except those "standalone" programs built
in sys/arch/*/stand) are linked dynamically, the shared linker is moved
from /usr/libexec to /lib (with a compat symlink), and the shared
libraries used by /bin and /sbin programs are moved from /usr/lib to
/lib (with compat symlinks).
2002-08-27 14:46:11 +00:00
matt
e38f37f289 Make sure mips targets build properly on 64bit hosts. 2002-08-24 16:50:10 +00:00
thorpej
97f9d76ce8 arm.c, arm.h:
* Declare arm_arch5 and arm_arch5e.  Set arm_arch5 for if -mcpu=arm10tdmi,
  -mcpu=arm1020t, -mcpu=xscale, -march=armv5, -march=armv5e, -march=armv5te.
  Set arm_arch5e for -mcpu=xscale, -march=armv5e, -march=armv5te.

arm.md:

* Define the "clz" insn for arm_arch5.
* Define an "ffssi2" expander for arm_arch5 which uses "clz".
2002-08-21 01:27:14 +00:00
thorpej
0414c14b05 Changes to better support XScale, round 1, back-ported from GCC 3.2.
The GCC ChangeLog does not have a complete description to quote here,
so:

arm.c:

* arm_override_options(): Set arm_is_scale according to the the
  -mcpu=xscale option.  Set arm_constant_limit to 2 if arm_is_xscale.
* arm_adjust_cost(): If arm_is_xscale, account for stalls that can
  occur due to shifted operands.
* arm_gen_load_multiple(): Account for the cost of ldm vs. ldr if
  arm_is_xscale.
* arm_gen_store_multiple(): Likewise for stm vs. str.

arm.h:

* CONSTANT_ALIGNMENT(): Use a constant alignment factor of 2 if
  arm_is_xscale.
* MOVE_RATIO: Set to 4 if arm_is_xscale.

arm.md:

* Add XScale scheduling parameters.
* Define a "shift" attribute (used by arm_adjust_cost()) and give it
  to the appropriate operands on andsi_not_shiftsi_si, *shiftsi3,
  *shiftsi3_compare0, *shiftsi3_compare0_scratch, *notsi_shiftsi,
  *notsi_shiftsi_compare0, *not_shiftsi_compare0_scratch,
  abssi2, *neg_abssi2, extendsidi2, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
  *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
  *arith_shiftsi_compare0_scratch, *sub_shiftsi, *sub_shiftsi_compare0,
  *sub_shiftsi_compare0_scratch, *if_shift_move, *if_move_shift,
  and *if_shift_shift.
2002-08-20 23:46:44 +00:00
wiz
c33e4efde0 Remove superfluous Ns. 2002-08-20 15:28:11 +00:00
lukem
16683a00df Explicitly move setting of NOxxx (et al) to the top of the Makefile
(before including <bsd.own.mk>)
2002-08-19 15:01:34 +00:00
lukem
8f96758140 Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../../some/path (etc).
(Reduces make output by ~ 20%)
2002-08-19 09:46:39 +00:00
thorpej
7dfd5a8bef 2002-08-16 Nick Clifton <nickc@redhat.com>
* gprof.c (main): Remove spurious test for __alpha__.
2002-08-17 03:03:53 +00:00
itojun
7bab20a582 bitmask operation audit (s/&&/&/). from openbsd 2002-08-08 15:12:09 +00:00
thorpej
e83b2dfbd8 Define __ARMEL__ if little-endian, as gcc 3.x does. 2002-08-07 03:35:51 +00:00
thorpej
7a6acd854a * Add -march=armv5, -march=armv5t, -march=armv5te, which are internally
treated like -march=armv4t, but which generate __ARM_ARCH_5__,
  __ARM_ARCH_5T__, and __ARM_ARCH_5TE__ defines, respecitively.
* Add -mcpu=xscale, which is internally treated like -mcpu=strongarm,
  but which generates __ARM_ARCH_5TE__ and __XSCALE__ defines.

These command-line options and definitions are consistent with gcc 3.x,
and allow NetBSD Makefiles to use them in a forward-compatible way, and
also give hand-tuned source code (e.g. assembly) a chance of tuning for
XScale.
2002-08-07 03:27:39 +00:00
mjl
7fc6ed7c11 Correct obviously wrong memset() args. OK'd by itojun. 2002-07-20 16:51:43 +00:00
mycroft
c5c651d529 If there is no PLT, do not output a DT_PLTGOT entry, as this causes the
dynamic linker to blast other things (like the second GOT entry).
2002-07-18 17:35:09 +00:00
itojun
ab94671147 parse T_AAAA responses. patch sent to wietse. 2002-07-17 21:23:04 +00:00
fredette
f53ba8285a Now build profiled libraries on m68000. 2002-07-17 18:46:12 +00:00
mycroft
e5b593969a Whack the atexit(_IO_cleanup), as per ../../libio/cleanup.c 1.2, for the same
reasons:
1) There is already a destructor that does this.  The atexit() is superfluous.
2) If libstdc++ is loaded dynamically by dlopen() and then is removed by
   dlclose(), the pointer is no longer valid and the program would core dump
   at exit() time.  (This caused xmms to core dump at exit when xmms-sid was
   installed, for example.)
2002-07-17 18:01:22 +00:00
itojun
5cfce202f7 wrong arg to memset. OpenBSD PR 2822 2002-07-16 23:08:04 +00:00
itojun
b3f9de2ade awrong memset() arg. OpenBSD PR 2822. 2002-07-16 23:07:33 +00:00
thorpej
b767b60c60 Add "(NetBSD nb3)" to the version string. 2002-07-15 15:44:53 +00:00
aymeric
1f11daa1ee Bump to nb3, following revision 1.2 of expr.c 2002-07-15 15:12:48 +00:00
aymeric
169b0eb038 Bring in diff from 1.144.4.10 to 1.144.4.11, from the gcc CVS repository.
This fixes (at least) broken compilation of xkbcomp with -O2 on powerpc.

ChangeLog entry:
2001-05-17  Bernd Schmidt  <bernds@redhat.com>

        * expr.c (protect_from_queue): Protect against subsequent calls to
        emit_queue.
        (expand_expr, case ADDR_EXPR): Prevent protect_from_queue from being
        too clever.

CVS log entry:
revision 1.144.4.11
date: 2001/05/17 17:01:06;  author: bernds;  state: Exp;  lines: +10 -3
Fix queueing-related bugs
2002-07-14 13:55:38 +00:00
wiz
7b9b4ac6f7 'environment', not 'enviroment' 2002-07-11 10:53:19 +00:00
wiz
4b20971f01 Spell acquire with a 'c'. 2002-07-10 23:16:32 +00:00
itohy
8f0b7653ca a.out prologue / epilogue (from in-tree egcs) 2002-07-06 13:20:08 +00:00
itohy
b2f2b1cb44 Correct section / alignment rule for a.out. From in-tree egcs. 2002-07-06 13:19:00 +00:00
itohy
bd6a4107d8 i386 uses _GLOBAL_OFFSET_TABLE_, not __GLOBAL_OFFSET_TABLE_, for GOT symbol
even if on a.out compiler.
Yes this is weird, but it is the traditional behavior.
2002-07-06 13:17:18 +00:00
itojun
27c67ca9bc save 1 byte for trailing dot append on dn_expand() call 2002-07-04 13:27:23 +00:00
nathanw
2b3894aa5d NetBSD/powerpc is not AIX, so #undef RS6000_TARGET.
In particular, we don't want AIX's shared-library relocation semantics.
2002-07-03 23:43:57 +00:00
itojun
05150f5b13 avoid possible overrun of dn_expand arg buffer.
not sure if it is the reason for 8.12.5, but anyway, be cautious.
2002-06-26 09:25:47 +00:00
itojun
e5370cdc4c accept domains with AAAA record only.
(when emails get relayed from IPv6-only machines via IPv4/v6 node,
we will see this symptom)
2002-06-26 07:55:19 +00:00
msaitoh
a53dc6ce7d remove old and unused files 2002-06-24 06:49:14 +00:00
itojun
519b2858bf backout previous commit. i'm still not sure how the name conflict should be
resolved.
2002-06-21 00:17:33 +00:00
itojun
18ef784f92 add some items to CLEANFILES 2002-06-19 16:10:48 +00:00
itojun
54c5e72f02 the file is generated on-demand, in both src/tool/toolchain and
src/gnu/lib/libbfd build.
2002-06-18 17:13:29 +00:00
itojun
59206db733 avoid name clash on full-feature bfd build 2002-06-18 09:20:51 +00:00
itojun
05e25409ab mistake in replacement for peXXigen.c 2002-06-18 08:48:29 +00:00
itojun
3b9f70e1fb avoid overwriting const string passed as arg. 2002-06-18 08:30:31 +00:00
itojun
dafaf1ab18 build tree for full-featured binutils. usually not visited.
(sysdump and srconv are omitted)
2002-06-18 08:21:58 +00:00
itojun
6d9d60e78d add rules needed for full-feature libbfd. usually not visited.
to build full-feature libbfd, do the following:
- add "--enable-targets=all --enable-64-bit-bfd" to
  src/tools/toolchain/Makefile configure arg
- invoke nbmake-<platform> native, to regenerate files under src/gnu
2002-06-18 08:19:04 +00:00
wiz
3d2f145dd1 Fix Xrefs to point to relevant files (non-groff versions), and remove one
we don't install at all.
2002-06-13 00:00:30 +00:00
wiz
f3fbf7696d Fix xref, it's aliases(5), not alias(5). 2002-06-12 21:58:45 +00:00
wiz
0dd9855753 Don't mention db types we don't have (and related bugs). 2002-06-12 21:56:29 +00:00
lukem
6f9558487e use ` | ${CAT} -l >> ${METALOG} ' to serialise writes to the metalog 2002-06-11 15:50:05 +00:00
itojun
5712a7ade2 sync w/ 1.1.11 2002-06-08 22:49:50 +00:00
itojun
4a4a5f0782 postfix 1.1.11
check following for list of changes:
ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-1.1.11.RELEASE_NOTES
2002-06-08 22:37:07 +00:00
itojun
d7d4214831 dd $NetBSD$ to conf files 2002-06-08 22:37:06 +00:00
itojun
d7d544aee7 postfix 1.1.11
check following for list of changes:
ftp://ftp.porcupine.org/mirrors/postfix-release/official/postfix-1.1.11.RELEASE_NOTES
2002-06-08 22:36:08 +00:00
kim
ab13a2b0d3 Provide a switch to turn off envelope recipient canonicalization.
Canonicalizing the recipient is usually undesirable for sites that
have local delivery distributed over multiple machines.
2002-06-01 22:55:04 +00:00
thorpej
0fc2511716 Make this work with an ISO C preprocessor. 2002-05-30 05:53:38 +00:00
thorpej
897fba04fe Add -Wno-format-zero-length to CWARNFLAGS; ulog() is a printf-like
function for which "" is a perfectly reasonable argument.
2002-05-30 05:46:16 +00:00
thorpej
d0a26f03be Add native toolchain bits for "armeb" (big-endian ARM). 2002-05-20 15:05:07 +00:00
thorpej
a2213fccd7 Add native toolchain bigs for "armeb" (big-endian ARM). 2002-05-20 15:03:38 +00:00
thorpej
2b3592c48e Add armelfb_nbsd linker emulation. 2002-05-20 14:53:54 +00:00
thorpej
5efacd42c4 Add an armeb-*-netbsdelf* target (big-endian ARM). 2002-05-20 14:24:22 +00:00
thorpej
cfbb24ed86 Add a -Wno-format-zero-length switch that does nothing, for forward
compatibility with GCC 3.2.
2002-05-18 18:53:44 +00:00
wiz
6f56aa4c96 Only comments after #endif. 2002-05-16 19:25:06 +00:00
thorpej
f4e45540c8 Change the sed expression that comments out NATDEPFILES to
also comment out continuation lines.  Fixes Linux->NetBSD
cross-gdb when built using NetBSD's make(1) (a'la build.sh -t).

toolchain/16713, Christian Limpach <chris@Pin.LU>.

Patch also submitted up-stream to GDB.
2002-05-10 22:01:06 +00:00
thorpej
7d5c79eb03 Don't include <sys/param.h> or <machine/vmparam.h>.
toolchain/16710, Christian Limpach <chris@Pin.LU>.
2002-05-10 21:24:51 +00:00
thorpej
0a7271465f Apply patch from binutils cvs:
2002-02-07  Daniel Jacobowitz  <drow@mvista.com>

        * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
        been included, not drag it in.
        * bfd-in2.h: Regenerate.

Fixes toolchain/16709, from Christian Limpach <chris@Pin.LU>.
2002-05-10 21:20:39 +00:00
thorpej
ecfc315cde Always build this if a HOSTPROG (MKBFD only affects native progs). 2002-05-09 17:12:36 +00:00
thorpej
44db3fb402 Allow gdb for sh*-*-netbsd*. 2002-05-09 17:07:16 +00:00
thorpej
92f04f0981 Fix a "comparison is always true" warning from gcc-current by passing
the int version of the chatacter to META_CHAR() (like other parts of
readline do).
2002-05-06 18:25:46 +00:00
thorpej
1cc7547139 Fix a "comparison always true" warning from gcc-current. 2002-05-06 18:22:11 +00:00
thorpej
bc975411fa Kill a "comparison always false" warning from gcc-current on LP64 platforms.
XXX Should discuss making the sh_name member of the Elf_Internal_Shdr
a bfd_size_type with the binutils folks.
2002-05-06 17:59:18 +00:00
simonb
4ae3a2264e Pull in (part of) rev 1.117 from gcc master sources:
(alpha_expand_unaligned_load, alpha_expand_unaligned_store):
	Cast switch operand of size to int.

Fixes one 32-bit host cross-compile problem, but still doesn't work...
2002-05-06 02:12:30 +00:00
thorpej
1556ff869b Mative GDB build glue for NetBSD/sh3. 2002-05-05 02:39:37 +00:00
thorpej
e2bb3bd9bb Basic (emphasis on basic) GDB support for NetBSD/sh3. 2002-05-05 02:37:33 +00:00
rearnsha
9c261eac77 Disable the following patterns: addsi3_compare_op1, addsi3_compare_op2,
compare_addsi2_op0 & compare_addsi2_op1.  From the comment I've just
inserted:
;; XXX RWE: The reload pass of GCC-2.95 makes a mess of these if one of the
;; arguments is, or is directly derived from, an eliminable register.  In
;; that case reload will substitue into the PLUS and then canonicalize it
;; without regard to the the match_dup parts.  Since these are rare, I've
;; disabled them for now, but they should be OK in 3.x (which manages the
;; substitution without canonicalization.
Fixes PRs port-arm/16424 and toolchain/16304.
2002-05-03 20:32:22 +00:00
thorpej
11066f6159 Add -D_LP64 to CPP_ARCH64_SPEC. (This will be done differently in gcc 3.x.) 2002-05-03 17:47:57 +00:00
thorpej
aa048fbf0d Add -D_LP64 to CPP_PREDEFINES. 2002-05-03 17:45:02 +00:00
rearnsha
6acc7fa8af Pull up from FSF sources:
Fri Mar  3 12:49:28 2000  J"orn Rennecke <amylaar@cygnus.co.uk>
	* reload1.c (reload_combine_note_use): Handle return register USEs.
	REG case: Handle multi-hard-register hard regs.

Fixes toolchain/16431
2002-05-03 17:33:01 +00:00
thorpej
690a4cfca8 * vax-dis.c (print_insn_arg): Pass the insn info to print_insn_mode.
(print_insn_mode): Print some basic info about floating point values.
2002-04-28 05:27:46 +00:00
thorpej
0be5820cdf Use the disassembler from libopcodes, not a private one. 2002-04-28 02:34:53 +00:00
mrg
5bd8d70795 bump version to nb2. 2002-04-27 04:31:16 +00:00
lukem
bb2f4a8f06 s/BSDSRCDIR/NETBSDSRCDIR/ 2002-04-26 15:54:41 +00:00
tv
126e6f1a62 Correctly obey $(EXEEXT) if set. (Bad automake. Bad, bad automake.) 2002-04-25 15:02:40 +00:00