[pkg-d-commits] [ldc] 102/149: LDMD: Warn about unsupported -multiobj switch
Matthias Klumpp
mak at moszumanska.debian.org
Sun Apr 23 22:37:02 UTC 2017
This is an automated email from the git hooks/post-receive script.
mak pushed a commit to annotated tag v1.2.0
in repository ldc.
commit 00efa74e30b934932159cebf7c28ccbed5fd2e1f
Author: Martin <noone at nowhere.com>
Date: Sun Feb 12 19:32:42 2017 +0100
LDMD: Warn about unsupported -multiobj switch
---
driver/ldmd.cpp | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/driver/ldmd.cpp b/driver/ldmd.cpp
index a4c83b3..863c8cf 100644
--- a/driver/ldmd.cpp
+++ b/driver/ldmd.cpp
@@ -393,9 +393,9 @@ void translateArgs(size_t originalArgc, char **originalArgv,
} else if (strcmp(p + 1, "fPIC") == 0) {
ldcArgs.push_back("-relocation-model=pic");
} else if (strcmp(p + 1, "map") == 0) {
- warning("command-line option '-map' not yet supported by LDC.");
+ goto Lnot_in_ldc;
} else if (strcmp(p + 1, "multiobj") == 0) {
- // TODO
+ goto Lnot_in_ldc;
}
/* -g
* -gc
@@ -403,7 +403,7 @@ void translateArgs(size_t originalArgc, char **originalArgv,
else if (strcmp(p + 1, "gs") == 0) {
ldcArgs.push_back("-disable-fp-elim");
} else if (strcmp(p + 1, "gx") == 0) {
- warning("command-line option '-gx' not yet supported by LDC.");
+ goto Lnot_in_ldc;
} else if (strcmp(p + 1, "gt") == 0) {
error("use -profile instead of -gt\n");
}
@@ -413,7 +413,7 @@ void translateArgs(size_t originalArgc, char **originalArgv,
else if (strcmp(p + 1, "m32mscoff") == 0) {
ldcArgs.push_back("-m32");
} else if (strcmp(p + 1, "profile") == 0) {
- warning("command-line option '-profile' not yet supported by LDC.");
+ goto Lnot_in_ldc;
}
/* -v
*/
@@ -481,7 +481,7 @@ void translateArgs(size_t originalArgc, char **originalArgv,
ldcArgs.push_back("-oq");
ldcArgs.push_back("-cleanup-obj");
} else if (strcmp(p + 1, "nofloat") == 0) {
- warning("command-line option '-nofloat' not yet supported by LDC.");
+ goto Lnot_in_ldc;
} else if (strcmp(p + 1, "quiet") == 0) {
// ignore
}
@@ -568,6 +568,11 @@ void translateArgs(size_t originalArgc, char **originalArgv,
} else {
Lerror:
ldcArgs.push_back(p);
+ continue;
+
+ Lnot_in_ldc:
+ warning("command-line option '%s' not yet supported by LDC.", p);
+ continue;
}
} else {
const auto ext = ls::path::extension(p);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git
More information about the pkg-d-commits
mailing list