Commit Graph

88 Commits

Author SHA1 Message Date
matt 02f1c8b0ef Make sure to compile things at -O2 for mips64e[bl] 2006-08-26 19:57:03 +00:00
lukem 9e21440fb1 Move LDFLAGS to the CC section instead of the LD section. 2006-06-25 15:04:31 +00:00
mrg 38ef023f65 like we do for -Wno-traditional, remove -Wstrict-prototypes and
-Wmissing-prototypes from C++ since those are always requird for C++.
2006-05-12 02:03:35 +00:00
perry 8ce6cbdcd6 add "S" to LINTFLAGS so that "inline" is accepted by lint 2005-12-25 18:34:23 +00:00
chs 44c95f81ec turn on -O2 for hppa. 2004-08-07 21:43:18 +00:00
lukem af85ccad70 Replace
:M-[IDU]*
with
	:C/-([IDU])[  ]*/-\1/Wg:M-[IDU]*
so that arguments with whitespace after them work correctly.
Resolves [toolchain/18248] from Andrew White at Motorola.

Be consisent in this syntax; previously we'd sometimes we'd just have :M-[ID]*
which would ignore -Ufoo ...

(This needs :C///W support in make(1) that Simon Gerraty added for me :)
2004-01-27 03:31:48 +00:00
christos e57d25d652 no-traditional is not a valid warning for c++ programs. 2003-12-26 17:27:01 +00:00
simonb b18e40ea85 Use -O2 for ns32k now. 2003-12-07 12:53:58 +00:00
lukem 1d6c9bac12 The order of items in .SUFFIXES is extremely important!
Revert part of previous and put `.s .S' before `.c' again.

(Fixes recent libkern lossage.)
2003-11-08 23:14:45 +00:00
lukem 3b34d70c1d Trim .SUFFIXES to only contain those used in this file.
Reorder some variables appropriately.

Add chmod a+x in .sh:, as per SUSv3.
2003-11-08 05:33:37 +00:00
martin 57b44eed3f Drop explicit medlow model and default to -O2 for sparc64. 2003-09-19 16:32:10 +00:00
uwe a82a596a31 Conditions for sh5 when setting DBG to be empty were deleted (moved)
in 1.72, but brought back accidentally in 1.73.  That was harmless,
anyway, as sh5 conditions in their new place get matched earlier.
2003-07-27 19:08:03 +00:00
lukem b7ebff3038 be consistent: use ${.TARGET} for $@ and ${.PREFIX} for $* 2003-07-27 09:35:47 +00:00
lukem 87610a53a9 whitespace cleanup 2003-07-18 04:04:03 +00:00
fvdl cfb43ff372 Default to -O2 for x86_64. 2003-05-04 12:05:50 +00:00
fvdl bb218b78eb gcc for x86_64 should be safe enough these days to enable -O by default. 2003-03-29 22:12:06 +00:00
scw 3402e518ba The sh5 toolchain works fine with -O2 now. 2003-01-21 09:19:01 +00:00
thorpej f176c534d2 The traditional C preprocessor is fixed in GCC 3.3 now, so no need
to skip -traditional-cpp for HAVE_GCC3.
2002-11-26 18:42:30 +00:00
scw 8debe49965 SH5 Makefile Magic. 2002-07-11 15:00:57 +00:00
fredette cb3f47b13c Like on x86_64, don't use -O at all with the hppa compiler. 2002-07-01 19:30:36 +00:00
thorpej a46ef4e6ab Don't use -traditional-cpp if HAVE_GCC3. 2002-06-04 21:14:59 +00:00
thorpej f7e9eefade Add case for armeb. 2002-06-04 21:13:21 +00:00
wiz 8237994500 No more arm32. 2002-04-08 12:25:22 +00:00
eeh 72feb11b6e Reserve %g4 for backwards compatibility with the old ABI. 2002-03-27 05:39:00 +00:00
bjh21 2d53252971 MACHINE_ARCH == "arm26" hasn't been valid for some time, so don't check
for it.
2002-03-24 22:32:00 +00:00
tv 26375a1710 Remove -Wa,-Av9a hack from <sys.mk> and relegate it to the places that need
it (kernel and libc).

The current version of the gas assembler in the tree (2.11.2) already
defaults to generating object files for "-Av9 -64", supporting V9
instructions in ELF64 object format.  "-Av9a" is only needed for specific
parts of the NetBSD base sources, and not for all third-party code.
2001-12-19 21:17:59 +00:00
mycroft 4a379469f5 Use -O2 on PowerPC. 2001-09-17 12:28:14 +00:00
matt a161d61e18 Make arm use -O2 2001-07-23 17:08:17 +00:00
eeh 3fa4c5f64b Tell the assembler to accept UltraSPARC extensions on sparc64. 2001-06-29 23:50:01 +00:00
fvdl 644b748282 Add some extra flags for the x86-64 port. Disable -O in sys.mk
(which is where all ports set it); there seem to be some lurking
optimization bugs for the x86-64.
2001-06-19 01:37:44 +00:00
bjh21 b5279973df Switch arm26 to -O2. Most of my kernels are compiled with this anyway,
and gcc's code generation should be the same as for arm32, so I think this
is safe.
2000-08-22 17:38:49 +00:00
sjg 44f0af2b1f Allow optimizer/debug flags to be changed on command line without
breaking everything.  Eg. use DBG="-O0 -g" when debugging something.
2000-05-02 03:44:36 +00:00
matt 999a010a4b VAX should use -O2. (why don't all ports?) 1999-11-15 06:14:23 +00:00
jdolecek 3ab0a83b70 merge build rules for files ending .cc and .C
add support for C++ source files ending .cpp and .cxx
1999-11-13 14:53:09 +00:00
mycroft 3064c4ddcd alpha seems to work with -O2... 1999-03-10 14:06:14 +00:00
drochner cf3c9d73cd add missing parts of the "mips"->"mipse?" transition 1999-02-24 14:42:36 +00:00
lukem 497d11782a * Add support for MKDOC MKLINKLIB MKLINT MKMAN MKNLS MKOBJ MKPIC MKPICINSTALL
MKPROFILE MKSHARE, which default to `yes' unless an equivalent NOxxx
  variable is defined.
* Add MKCATPAGES, which if "no" prevents catpages from being built or installed

Users should use "MKxxx=no" instead of "NOxxx=" in /etc/mk.conf, because
this allows easy override on the make(1) command line (e.g 'make MKSHARE=yes'
to override MKSHARE=no in /etc/mk.conf).
1999-02-12 01:10:06 +00:00
simonb 6a165c11d8 Back out previous backout of -O2 in mips. Bug in strtod.c fixed via
Niklas Hallqvist.
1999-02-06 02:07:55 +00:00
simonb f88a59dce9 _Don't_ use -O2 on mips, libc/stdlib/strtod.c breaks 1999-02-05 13:50:09 +00:00
mycroft af6912b12f Use -O2 on arm32. 1999-01-21 09:44:19 +00:00
christos 73a72701ab Add -F to LINTFLAGS so that the full pathname is printed. 1999-01-18 20:22:54 +00:00
simonb 73b06e25d1 Use -O2 on mips. 1999-01-12 05:06:17 +00:00
thorpej 269d52483b Use -O2 on m68k. 1998-12-12 20:48:53 +00:00
mycroft 0a7241355c Use -O2 on SPARC. 1998-11-26 23:06:09 +00:00
mycroft cdacaf156d Use -O2 on i386. 1998-11-22 13:48:34 +00:00
tv aefeb9110b Fix the .c.a brokenness with libbfd the "right" way - nuke everything but
*o from .ALLSRC.
1998-08-22 18:59:40 +00:00
tv bace91cb64 Apply same .c.a workaround from alpha to arm32 1998-05-22 13:52:52 +00:00
tv 3b468e7a9b The C++ compiler is "c++", not "g++"; that is more compatible with non-GCC
based C++ compilers.
1998-04-09 00:45:10 +00:00
tv 482063559a .y.c <sys.mk> rule fixes. Don't create a y.tab.h file unless asked for,
and use smarter creation of the header file.
1998-04-09 00:32:31 +00:00
tv 875f72aa79 Revert. This broke too much in the build tree, and a better solution
needs to be created.  (The existing situation breaks a lot too.)
1998-04-01 16:58:33 +00:00