summaryrefslogtreecommitdiff
path: root/mk/compiler
diff options
context:
space:
mode:
authorrillig <rillig>2007-03-07 01:37:18 +0000
committerrillig <rillig>2007-03-07 01:37:18 +0000
commita661bca20f0fc9d6912c175b1cc72c2ad5af0861 (patch)
tree933f0b719b15cb4a30f390c13b95ee88f1f4d324 /mk/compiler
parentdbd9028d571c29da385874baf833267d09e68c99 (diff)
downloadpkgsrc-a661bca20f0fc9d6912c175b1cc72c2ad5af0861.tar.gz
Make the #error directive an error with MIPSpro.
Diffstat (limited to 'mk/compiler')
-rw-r--r--mk/compiler/mipspro.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/compiler/mipspro.mk b/mk/compiler/mipspro.mk
index eb4b142a5a6..fae9327d0b0 100644
--- a/mk/compiler/mipspro.mk
+++ b/mk/compiler/mipspro.mk
@@ -1,4 +1,4 @@
-# $NetBSD: mipspro.mk,v 1.37 2006/12/15 12:46:24 martti Exp $
+# $NetBSD: mipspro.mk,v 1.38 2007/03/07 01:37:18 rillig Exp $
#
# This is the compiler definition for the MIPSpro C compiler.
#
@@ -75,6 +75,11 @@ _LANGUAGES.mipspro+= ${LANGUAGES.mipspro:M${_lang_}}
_WRAP_EXTRA_ARGS.CC+= -c99
.endif
+# Normally, the #error directive only results in a warning (which is
+# explicitly allowed in ISO C99), but we want it to be an error.
+_WRAP_EXTRA_ARGS.CC+= -diag_error 1035
+_WRAP_EXTRA_ARGS.CXX+= -diag_error 1035
+
# Prepend the path to the compiler to the PATH.
.if !empty(_LANGUAGES.mipspro)
PREPEND_PATH+= ${_MIPSPRO_DIR}/bin