Commit Graph

2011 Commits

Author SHA1 Message Date
joerg 9b296e99bc Decouple clang and gcc handling a bit. Add -Wmissing-noreturn for clang
builds. GCC complains about about non-void functions not returning,
which is quite a bit more bogus, so don't enable it for that.
2011-09-20 09:11:06 +00:00
mbalmer d3aee14626 Move SYSCTL_USE_DESCR to a better place. 2011-09-11 18:38:02 +00:00
mbalmer fc1f4a87c4 Install new shiny bsd.clean.mk 2011-09-11 16:03:49 +00:00
apb 87213f7215 Don't automatically load ".depend" files during "make clean"
or "make cleandir".
2011-09-10 19:25:10 +00:00
apb 386a389aab Move all "clean" and "cleandir" processing to a new bsd.clean.mk
file, as proposed in tech-toolchain.
2011-09-10 16:57:35 +00:00
apb f6a28000e5 Document the FILESBUILD variable, which was added in
bsd.files.mk revision 1.41 dated 2010-02-03.
2011-09-09 10:08:14 +00:00
plunky fa3d1b9a20 pcc cpp(1) does not understand the '-undef' and '-traditional' long form
arguments, use $(CC) -E instead of $(CPP) for these
2011-09-01 16:41:48 +00:00
joerg 03242f8218 Simplify, --analyze gives the same settings as default 2011-09-01 12:25:10 +00:00
joerg ba5a5a1119 Add new "analyze" command to run clang's static analyzer in a directory
on all C/C++ files.
2011-08-27 18:35:19 +00:00
uwe d4eba6a9b8 Switch sh3 to GCC 4.5. Tested on landisk (including doing build.sh on it). 2011-08-25 00:01:25 +00:00
christos 875018bf8a add -Wformat=2 2011-08-23 05:22:25 +00:00
mrg 8188255310 switch sparc to GCC 4.5.3. 2011-08-17 09:18:37 +00:00
mrg f2baad49fd switch x86 to GCC 4.5. 2011-08-07 08:15:02 +00:00
plunky 67e53d37bc NOPATH the lib we are making, rather than HOSTPROG which is irrelevant 2011-08-05 09:36:28 +00:00
matt c3bb2a6aa0 Switch mips and powerpc to GCC 4.5 2011-08-05 00:24:12 +00:00
mrg 7941c10dff switch sparc64 to GCC 4.5.3. 2011-08-04 00:52:49 +00:00
mrg e740c47eb7 updates for xorg-server 1.10.3 2011-08-02 07:44:39 +00:00
mrg d4bb67a86f update to xorg-server 1.9.5 2011-07-24 01:40:40 +00:00
mrg 4cdc33f137 updates for freetype 2.4.5 2011-07-24 00:33:38 +00:00
tsutsui ce89d25111 Add definitions for elf2aout tools. 2011-07-16 23:42:42 +00:00
matt dff840eccd VAX kernel modules need to be built with -fno-pic 2011-07-14 18:12:35 +00:00
matt 573c9331e5 Add more links for evbmips
Add ${MACHINE} link
2011-07-10 23:50:24 +00:00
tsutsui 0684fd552b Add OBJCOPY_ELF2AOUT_FLAGS for some arm ports to create a.out binaries
using objcopy(1) for old firmware, shared among src/distrib and
src/sys/arch/${MACHIHNE}/conf/Makefile.${MACHINE}.inc.

Discussed with mrg@ and matt@ on source-changes-d@.
2011-07-10 04:36:13 +00:00
uwe cc65ce8e22 Augment previous. Use -Wno-uninitialized for sh3 in general, not just
dreamcast.  The problem is not sh3 per-se, but the fact that for sh3
we use -Os by default.  That causes false positives since gcc doesn't
detect that e.g. a variable is set and used under the same condition
in different "if" statements.

XXX: This should probably check for optimization level instead,
though, for all I know, phase of moon might be a contributing cause
too.

XXX2: MACHINE_CPU is set in bsd.own.mk and is not available here, so
we have to spell the test in terms of MACHINE_ARCH.
2011-07-08 20:59:53 +00:00
mrg 5f311ecb4a # XXX GCC 4.5 for dreamcast is extra noisy for cases it should be better with
workaround via: CFLAGS+=      -Wno-uninitialized
2011-07-08 03:29:52 +00:00
dholland 5d43254f4a Fix the value of "appdefaultdir" that ends up in native X .pc files.
(It should be "app-defaults" but was "app-default", probably because
of a typo; it's been wrong ever since this logic was put in two and a
half years ago, and as app-defaults files are a legacy mechanism it
took this long for anyone to notice.) Should be pulled up to -5.
2011-07-03 22:59:46 +00:00
matt 9233f8063e Switch powerpc to USE_COMPILERCRTSTUFF=no 2011-07-02 20:21:16 +00:00
matt dd0507a9a5 Replace gzip with ${TOOL_GZIP} in manual compression.
Modify the description of USE_PIGZGZIP.
2011-06-30 18:13:51 +00:00
matt 65fe75b53f After making sure USE_PIGZGZIP is defined, add a TOOL_GZIP which will be
gzip or ${TOOL_PIGZ}.  Use of gzip can be replaced with ${TOOL_GZIP} and
automatically get to use pigz if USE_PIGZGZIP is defined as "yes".  This
avoid having to special case each of gzip.
2011-06-30 18:09:54 +00:00
mrg f53e78abc3 XXX: for now, disable fatal linker warnings for GCC 4.5. 2011-06-29 08:10:05 +00:00
mrg 75e42fa7da remove most of the remaining HAVE_GCC tests that are always true in
the modern world.
2011-06-20 07:43:56 +00:00
mrg 8f161cd6d3 remove all the code that supported HAVE_GCC=3. mostly from chuq. 2011-06-20 06:52:36 +00:00
mrg a2c4975d63 build evbppc modules in 3 different flavours:
- oea (default)
	- ibm4xx
	- booke

this, together with earlier machine_module[] work, should allow evbppc
platforms to use modules.
2011-06-15 09:45:58 +00:00
christos 7e3e66b16b add libgcc_pic dependency. 2011-06-05 23:09:15 +00:00
joerg 78ec0254df Reorder CWARNFLAGS and -Werror in CFLAGS to allow CWARNFLAGS and by
extension CWARNFLAGS.${SOURCE} to override it selectively.
2011-05-30 13:56:34 +00:00
joerg 70e887f5ec Add an alternative to NOGCCERROR for clang. 2011-05-30 13:47:01 +00:00
drochner 53cdf0b54e make the "tags" target non-.PHONY because it reflects a real file,
and remove some nonsense in libc Makefile which caused that
a "tags" file was written in my source tree
2011-05-27 17:06:54 +00:00
joerg a216da57a6 Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.
2011-05-26 12:56:24 +00:00
joerg 7e217e1f53 Restrict -Wno-non-template-friend and -Wno-pmf-conversions to GCC. 2011-05-25 15:02:25 +00:00
joerg 175c50ac7e Add support for compiler specific warning flags with
CWARNFLAGS.${COMPILER}
2011-05-25 15:01:08 +00:00
joerg 0cd1e39abe Disable Clang's array boundary checker for now (hits e.g. in GCC and BDB) 2011-05-23 14:32:05 +00:00
joerg 1742cf8828 Simplify a bit 2011-05-22 20:52:12 +00:00
joerg 7cfd64c6f6 Split SSP parameters on a per-compiler base 2011-05-22 20:49:16 +00:00
joerg e7d3de7e55 No -Wno-traditional for clang. 2011-05-22 20:24:46 +00:00
plunky 762c58f13a simplify PCC inclusion; MKPCCDMDS is not really required 2011-05-20 16:02:21 +00:00
joerg 00f0e17e85 Fully support per-target AFLAGS. 2011-05-20 14:27:48 +00:00
joerg 1fe45e28aa Add fine-grained compiler selection, including clang support. 2011-05-19 14:29:27 +00:00
adam dde94184d6 Reverting last change; joerg has a better approach 2011-05-19 06:09:36 +00:00
adam 84862a28ce Add support for LLVM/Clang 2011-05-18 13:08:14 +00:00
christos 6bbebf8328 Enable c99 mode by default.
This has the side effect of complaining for missing prototypes
implicit type declarations and missing return statements.

NB:	I've only ran a build on amd64, so other platforms MI code might break.
	If you can't wait for me to fix them, revert this commit.
2011-05-17 01:12:34 +00:00