christos
9a046d1f16
old-style-definitions and no-format-zero-length are invalid for c++
2012-10-06 20:54:58 +00:00
abs
86aebb49c7
Switch -current vax back to gcc 4.1 to match netbsd-6 - until someone has
...
time to look at the gcc 4.5 codegen issues we should at least have a usable
-current for vax.
2012-06-22 20:32:34 +00:00
matt
47dd0a4489
Switch VAX to use GCC 4.5 and GDB 7.
...
Change VAX to use DBG=-O2 like most other ports.
2012-02-10 05:57:42 +00:00
chs
8c0bc12273
switch everything except vax to gcc 4.5.
...
switch m68k to -Os since -O2 produces much bigger code
with gcc 4.5 than it did with gcc 4.1.
2011-10-31 14:20:11 +00:00
joerg
00f0e17e85
Fully support per-target AFLAGS.
2011-05-20 14:27:48 +00:00
joerg
8f1068802c
Compute the build seed using :hash.
2011-04-07 01:40:32 +00:00
joerg
19b23810a0
Switch remaining platforms to modern CPP for assembler.
2011-01-21 15:59:04 +00:00
joerg
13d8b2b89c
Move SPARC and SPARC64 to modern CPP. Update UPDATING note for this and
...
Alpha.
2011-01-17 18:11:09 +00:00
joerg
66ef8e5b14
Alpha doesn't need -traditional-cpp for assembler.
2011-01-16 19:29:59 +00:00
joerg
d3a052c472
Allow use of traditional CPP to be set on a per platform base in sys.mk.
...
Honour this for dependency processing in bsd.dep.mk. Switch i386 and
amd64 assembly to use ISO C90 preprocessor concat and drop the
-traditional-cpp on this platform.
2011-01-12 23:12:10 +00:00
darran
61fb3737eb
DTrace: Add CTF generation to the make framework. Only enabled when
...
MKDTRACE=yes.
2010-03-02 20:49:18 +00:00
kent
9c8aa6615e
Remove -Wno-pointer-sign and -ffreestanding from CXXFLAGS. g++
...
doesn't support for them.
2008-09-07 15:54:52 +00:00
joerg
9259cd05bd
When compiling C++ sources and BUILDSEED is set, pass down
...
-frandom-seed with a reduced version of .ALLSRC and .TARGET
as argument. This allows bit-identical builds of C++ files.
2008-08-04 16:02:25 +00:00
uwe
5e2fa55b72
For sh3 set default DBG to "-Os -freorder-blocks" which is almost like -O2
...
but without -falign-* that is too zealous for low-memory sh3 machines.
2008-05-06 22:19:11 +00:00
tsutsui
34dd728d42
There is only one more file which requires HACKS for m68000,
...
so handle it in each Makefile rather than sys.mk.
These ICEs might be related with GCC Bugzilla Bug 32424
which is not resolved yet even in the upstream.
2008-05-04 15:37:19 +00:00
tsutsui
c007028e0b
Enable gcc optimization on m68000 (sun2) again with minimum hacks.
...
gcc -O0 generates a bit fat binaries.
2008-04-27 03:06:46 +00:00
mrg
ecc90aa046
make all sun2 use -O0 and move most of the hacks out into just 3 files.
2008-02-09 02:37:21 +00:00
simonb
d8de5b102b
Remove support for NetBSD/pc532.
2008-01-09 11:25:58 +00:00
matt
8655342068
-O1 on vax isn't quite enough, add -fgcse -fstrength-reduce -fgcse-after-reload
...
too. We can build again.
2007-04-15 22:53:08 +00:00
matt
286b959060
For now, make vax default to -O not -O2
2007-04-14 18:39:46 +00:00
scw
5764a76889
Remove support for NetBSD/{,evb}sh5.
2007-04-08 09:35:21 +00:00
christos
855c80dc29
delete "-std=gnu99" from c++ flags. From mrg.
2007-01-22 21:49:07 +00:00
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