summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2016-10-26 23:04:51 +0200
committerJoel Rosdahl <joel@rosdahl.net>2016-10-26 23:06:39 +0200
commitee69e824d7783e7671ec75db0217debfa7a840b9 (patch)
tree18d2b16d4440827c722199cd0a6f2abf4cb670b1
parent0d29ddf3a5db2edc9dbe2018b912e27ef850eae3 (diff)
downloadccache-ee69e824d7783e7671ec75db0217debfa7a840b9.tar.gz
Rename STATS_UNSUPPORTED to STATS_UNSUPPORTED_OPTION
-rw-r--r--ccache.c10
-rw-r--r--ccache.h2
-rw-r--r--stats.c2
-rw-r--r--test/test_argument_processing.c2
4 files changed, 8 insertions, 8 deletions
diff --git a/ccache.c b/ccache.c
index c4070ade..1ad4df95 100644
--- a/ccache.c
+++ b/ccache.c
@@ -2136,7 +2136,7 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
if (str_eq(argv[i], "-optf") || str_eq(argv[i], "--options-file")) {
if (i > argc) {
cc_log("Expected argument after -optf/--options-file");
- stats_update(STATS_UNSUPPORTED);
+ stats_update(STATS_UNSUPPORTED_OPTION);
result = false;
goto out;
}
@@ -2176,7 +2176,7 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
// These are always too hard.
if (compopt_too_hard(argv[i]) || str_startswith(argv[i], "-fdump-")) {
cc_log("Compiler option %s is unsupported", argv[i]);
- stats_update(STATS_UNSUPPORTED);
+ stats_update(STATS_UNSUPPORTED_OPTION);
result = false;
goto out;
}
@@ -2190,7 +2190,7 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
// -Xarch_* options are too hard.
if (str_startswith(argv[i], "-Xarch_")) {
cc_log("Unsupported compiler option :%s", argv[i]);
- stats_update(STATS_UNSUPPORTED);
+ stats_update(STATS_UNSUPPORTED_OPTION);
result = false;
goto out;
}
@@ -2200,7 +2200,7 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
if (arch_args_size == MAX_ARCH_ARGS - 1) {
cc_log("Too many -arch compiler options; ccache supports at most %d",
MAX_ARCH_ARGS);
- stats_update(STATS_UNSUPPORTED);
+ stats_update(STATS_UNSUPPORTED_OPTION);
result = false;
goto out;
}
@@ -2422,7 +2422,7 @@ cc_process_args(struct args *args, struct args **preprocessor_args,
// file from compiling the preprocessed file will not be equal to the
// object file produced when compiling without ccache.
cc_log("Too hard option -Wp,-P detected");
- stats_update(STATS_UNSUPPORTED);
+ stats_update(STATS_UNSUPPORTED_OPTION);
failed();
} else if (str_startswith(argv[i], "-Wp,-MD,")
&& !strchr(argv[i] + 8, ',')) {
diff --git a/ccache.h b/ccache.h
index 7b29bb8c..a79d1441 100644
--- a/ccache.h
+++ b/ccache.h
@@ -42,7 +42,7 @@ enum stats {
STATS_NOINPUT = 17,
STATS_MULTIPLE = 18,
STATS_CONFTEST = 19,
- STATS_UNSUPPORTED = 20,
+ STATS_UNSUPPORTED_OPTION = 20,
STATS_OUTSTDOUT = 21,
STATS_CACHEHIT_DIR = 22,
STATS_NOOUTPUT = 23,
diff --git a/stats.c b/stats.c
index d50182d4..ff352bc6 100644
--- a/stats.c
+++ b/stats.c
@@ -165,7 +165,7 @@ static struct {
0
},
{
- STATS_UNSUPPORTED,
+ STATS_UNSUPPORTED_OPTION,
"unsupported compiler option",
NULL,
0
diff --git a/test/test_argument_processing.c b/test/test_argument_processing.c
index f63c3af0..80f23db5 100644
--- a/test/test_argument_processing.c
+++ b/test/test_argument_processing.c
@@ -81,7 +81,7 @@ TEST(dash_M_should_be_unsupported)
create_file("foo.c", "");
CHECK(!cc_process_args(orig, &preprocessed, &compiler));
- CHECK_INT_EQ(1, stats_get_pending(STATS_UNSUPPORTED));
+ CHECK_INT_EQ(1, stats_get_pending(STATS_UNSUPPORTED_OPTION));
args_free(orig);
}