Commit Graph

1669 Commits

Author SHA1 Message Date
bde
653fa61329 Fixed missing dependencies. The critical missing one was of bi-lexer.o
on bi-parser.h.  Not having it sometimes (only with `make -j') triggered
a bug suite that led to ordinary cpp output being put in .depend files.
Various bugs (the main one only with `make -j') prevented timely detection
of failure to build and install gnu/usr.bin/cc.  Eventually the missing
${WORLDTMP}/usr/libexec/cpp caused ${WORLDTMP}/usr/bin/cpp to be invoked
by cc, and this version of cpp is not suitable for such invocation.
Ordinary cpp output was put in .depend files when cpp terminated options
processing before seeing the -M flag.

Cleaned up.
1998-04-23 16:30:51 +00:00
eivind
fb823368ea Add an ".ifmake regress" to avoid warning during 'make world'.
Noticed by:	bde
1998-04-19 14:27:45 +00:00
bde
f2eb5898a6 Never generate neqn at install time (the previous fix for this was
incomplete).
1998-04-19 13:25:54 +00:00
jdp
e3551837c7 Fix the assembler so that it produces object files with the correct
magic number byte ordering for FreeBSD.  This makes "file" describe
our object files as "FreeBSD/i386 object" instead of as NetBSD
object files.  In case this seems drastic and risky, Bruce points
out that the "ld -r -x" step that is done on every object file when
building libraries fixes the byte ordering in the same way.  I have
been running with this patch for over a month and have seen no
problems.
1998-04-10 01:20:40 +00:00
jdp
8bd8fe03f1 Fix a bug which clobbered linker set symbols that had forward references.
With -O3, egcs generates such forward references.

PR:		gnu/6055
Reviewed by:	jdp
Submitted by:	Dmitrij Tejblum <tejblum@arc.hq.cti.ru> in slightly different form
1998-04-07 17:10:01 +00:00
charnier
279976e0ae Use .An/.Aq. 1998-04-01 06:29:16 +00:00
charnier
dfb7ad7bad .Use .An. 1998-04-01 06:26:40 +00:00
charnier
75fd82bc71 Use .An/.Aq. 1998-04-01 06:22:28 +00:00
charnier
356b5642c1 Use .An/.Aq.PR: 1998-03-31 06:52:28 +00:00
jdp
4719e802ae Give up on a.out support in binutils. It has too many problems to
be worth much effort.  Install all i386 binutils programs in
"/usr/libexec/elf".  Disable a.out support in libbfd.  It's too
dangerous to leave it in.  Some of the utilities think they can
handle a.out, but they generate bad object files.
1998-03-30 02:21:27 +00:00
jdp
864a637ca2 Add c++filt. 1998-03-30 02:19:09 +00:00
jdp
b2a8915ff0 Add support for the AT&T style "fildll" and "fistpll" mnemonics.
These are equivalent to "fildq" and "fistpq" respectively.  This
fixes the bad floating point object code that resulted after recent
changes in the compiler.

Test driven by:	"Mike Burgett" <mburgett@awen.com>,
		Amancio Hasty <hasty@rah.star-gate.com>
1998-03-29 01:38:39 +00:00
eivind
4be7a3d820 Activate CVS regression test. 1998-03-28 19:06:21 +00:00
dima
6fcc7e1ae3 Don't build sperl if you don't want to. 1998-03-26 06:06:22 +00:00
bde
f291ac2d4d Support building of libgcc.a without building all of gcc. This is
useful for bootstrapping.  Compatible versions of gcc and cc1 should
should be installed before using this feature.
1998-03-23 12:23:13 +00:00
bde
fdb190e183 Honour -static in LDLAGS. ld without -Bstatic is happy to choose
static libraries if there are no shared libraries in the search path,
but gcc without -static blindly attempts to link crt0.o.
1998-03-23 11:50:38 +00:00
bde
8f04cb6a75 Generate files at build time, not at install time. This should be the
last fix of this type.  Installing from a read-only object tree should
work now.

Install files using a single install command where this is easy; don't
use shell loops.

Don't use MANDEPEND to complicate things.
1998-03-21 12:12:55 +00:00
bde
5b605c6bc0 Don't use beforedepend to complicate and break things. The usual
fix of putting generated source files in SRCS breaks many special
cases (many dependencies had to be incomplete for ${.ALLSRC}
not to give .h files that would break compiling with c++ -c).
Reduce these special cases to the general case so that SRCS works
normally and bsd.lib.mk handles most of the complications.  Now
we only have to duplicate rules from bsd.lib.mk to add special
CFLAGS in some cases.
1998-03-20 15:10:59 +00:00
bde
a49cc476c2 Don't use beforedepend to complicate and break things. Just put
generated source files in SRCS.
1998-03-20 12:13:10 +00:00
bde
5a71334c65 Put generated source files in SRCS. This fixes races generating
the source files.  E.g., the stale version of locate.cc in the
source directory was sometimes used.  We didn't even use beforedepend.

Added temporary files to CLEANFILES.

Fixed some style bugs.
1998-03-20 12:05:50 +00:00
bde
b05eb6bff2 Don't use beforedepend to complicate and break things. Just put
generated source files in SRCS.

Don't use MANDEPEND to complicate things.  Just put the generated
man page in CLEANFILES.

Partly fixed yacc header brokenness, as in ../eqn/Makefile.

Added temporary files to CLEANFILES.

Fixed some style bugs.
1998-03-20 12:04:59 +00:00
bde
9a8bd5ce8d Don't use beforedepend to complicate and break things. Just put
generated source files in SRCS.

Don't use MANDEPEND to complicate things.  Just set MAN1 and put
generated man pages in CLEANFILES.

Added temporary files to CLEANFILES.

Partly fixed a potentially fatal bug involving the yacc header.
We generate eqn.cc (even if there is a version of it in the source
directory older than eqn.y) and a matching eqn.tab.h, but only use
the possibly-non-matching eqn.tab.h in the source directory.  This
works because Cygnus's yacc happened to generate a y.tab.h identical
to the current generated one.  The correct version will be used
when the wrong version is deleted from the source tree.  Kludge to
get the header generated early enough.  Yacc headers are mishandled
everywhere they are renamed (and used).

Generate neqn at build time, not at install time.

Fixed some style bugs.
1998-03-20 12:03:53 +00:00
bde
d050384644 Removed bogus -I path. The correct path is in all subdir Makefiles
where it matters.
1998-03-20 11:08:52 +00:00
bde
e04214d4ef Removed vestiges of use of beforedepend target. 1998-03-19 15:21:19 +00:00
obrien
f25718d167 I goofed on the `LINKS' syntax.
Submitted by:	Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1998-03-18 12:28:09 +00:00
hoek
d555200a6e This is uulog.1, not uuname.1.
PR:		docs/5980
1998-03-16 15:07:50 +00:00
jdp
3faa4c248d Make the binutils strip ELF-only for now. It isn't quite right for a.out. 1998-03-15 02:08:04 +00:00
jdp
a82c785c1f Disable support for the a.out-i386-bsd target. Everything it can do
seems to be supported in the a.out-i386-freebsd target.  When both
are present, there are sometimes complaints of "ambiguous file
format."
1998-03-14 01:40:31 +00:00
jb
40631c1b01 Add binutils if BINFORMAT is elf. This is needed for alpha, and it
works on i386, but is still disabled until you set BINFORMAT.
1998-03-13 19:34:40 +00:00
bde
aa5b691e26 Put sources in SRCS and don't depend on them in beforedepend. IIRC,
this is to fix `make -j50' where `make -j18' worked.  The race may
just have been more likely to be lost for -j50.
1998-03-12 13:03:06 +00:00
jb
d7785ecc91 Configure alpha to disassemble both alpha and i386 opcodes. 1998-03-12 13:02:46 +00:00
bde
cfd76e19bd Fixed `make -jN depend' (N >= 2) by removing the beforedepend
target.  .ORDER doesn't work right, but is used for things related
to the depend target.  It "works" for the depend target by skipping
the build of .depend when N >= 2 and there is a non-default
beforedepend target with no rules.  Recent fixes made almost all
the beforedepend targets in the tree a no-op except for this bug.

Removed vestiges of elf and aout targets.
1998-03-12 12:52:24 +00:00
jb
e36c68ea00 Configure bfd for elf64, elf32, and aout. Yes alpha can handle i386
formats. No i386 can't handle alpha formats. 8-)
1998-03-12 12:29:20 +00:00
jb
3bda5008ec Define the target type for alpha. 1998-03-12 08:00:03 +00:00
jb
e625dba821 Add the alpha makefile.
Move tc-i386.c from Makefile to Makefile.i386 'cause alpha doesn't
like trying to swallow it. Indigestion, I think.
1998-03-12 06:51:48 +00:00
jb
442edc88f5 Change the include path for bfd.h to libbfd/${MACHINE_ARCH} since
I moved the location of that architecture specific file.
1998-03-12 05:59:22 +00:00
jb
97655cf34a This file was generated on i386, so it has been moved to the i386
sub-directory. It differs from the alpha version.
1998-03-12 05:31:34 +00:00
jb
6bb9456964 This file was generated on i386 by the update.sh script in
src/gnu/usr.bin/binutils.
1998-03-12 05:29:44 +00:00
jb
7bd0540058 These files were generated on alpha by the update.sh script in
src/gnu/usr.bin/binutils.
1998-03-12 05:26:30 +00:00
jdp
50d3710f6f Replace empty install targets with definitions of INTERNALLIB and
INTERNALSTATICLIB to suppress installation of internal libraries.
1998-03-12 05:14:19 +00:00
jb
8167eafab3 Change script to get the machine type from `uname -m' and make
the binutils headers for (machine)-unknown-freebsdelf.

Also copy the bfd.h header to an architecture specific directory
because there are two fundamental lines that differ (32-bit vs 64-bit)
between i386 and alpha.

The config.h for libbinutils generates the same on alpha as i386,
so I didn't change that (though I was tempted!).
1998-03-12 04:54:42 +00:00
jdp
9fc1bbbc87 Restructure the binutils hierarchy somewhat in order to better
support building it for variant architectures.  It was already
becoming clear that the former structure was too rigid and didn't
scale well.

The usual sort of makefile magic arranges to .include an architecture
specific makefile "Makefile.${MACHINE_ARCH}" in each directory
where it exists.  Also, sources will be found in each subdirectory
"${MACHINE_ARCH}" that exists.  This is all taken care of automatically
by the top level "Makefile.inc0".

This all seems to work right for the i386 now.  I have also converted
those alpha pieces already present to the new schema as best I
could.

Also: change the BINDIR on the i386 to /usr/libexec/elf for "ar"
and "ranlib".  They are not object format independent enough to
put into /usr/bin.
1998-03-12 02:55:43 +00:00
guido
6b4da9c835 mktemp -> mkstemp as pointed out on bugtraq
Obtained from: Theo de Raadt
1998-03-10 19:43:27 +00:00
peter
6516ee639e indicate ability to support the PerservePermissions stuff 1998-03-10 14:12:09 +00:00
peter
dcd62774c6 add new file (hardlink.c) into sources 1998-03-10 14:00:59 +00:00
jkh
fd926f9fec Eliminate duplicated lines.
PR:		5956
Submitted by:	Kazuo Horikawa <k-horik@yk.rim.or.j>
1998-03-09 11:13:17 +00:00
jb
2c4ce4bfef We want ld in /usr/bin, not some weird and wonderful hiding place
that might be inspired by some creation from Intel. Doh.
1998-03-09 06:07:27 +00:00
jb
125facd7a9 This commit was generated by cvs2svn to compensate for changes in r34336,
which included commits to RCS files with non-trunk default branches.
1998-03-09 00:33:28 +00:00
jb
14511b916b Import of alpha specific bits to configure binutils for FreeBSD/Alpha.
Other changes that affect the i386-elf work are on hold to avoid
stuffing up other work in progress.
1998-03-09 00:33:28 +00:00
peter
3f6e19e69b Use cc -E rather than cpp when looking for __ELF__ 1998-03-08 17:25:10 +00:00