From 7f2cb6afcd27eb805c1ce0a76f6c7dffaef4cbae Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 3 Sep 2010 17:12:49 -0700 Subject: [PATCH] Warn the user that synthesis is no longer maintained. Add code to print a warning if the user tries to use the -S flag. We need this warning since synthesis is not currently being actively maintained or supported in any branch after V0.8. --- driver/main.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/driver/main.c b/driver/main.c index 9d0abfb89..51a7c5e74 100644 --- a/driver/main.c +++ b/driver/main.c @@ -661,10 +661,10 @@ int process_generation(const char*name) else if (strcmp(name,"no-std-include") == 0) gen_std_include = 0; - + else if (strcmp(name,"relative-include") == 0) gen_relative_include = 1; - + else if (strcmp(name,"no-relative-include") == 0) gen_relative_include = 0; @@ -685,7 +685,7 @@ int process_generation(const char*name) else if (strcmp(name,"no-verilog-ams") == 0) gen_verilog_ams = "no-verilog-ams"; - + else { fprintf(stderr, "Unknown/Unsupported Language generation " "%s\n\n", name); @@ -988,10 +988,19 @@ int main(int argc, char **argv) if (version_flag || verbose_flag) { printf("Icarus Verilog version " VERSION " (" VERSION_TAG ")\n\n"); - printf("Copyright 1998-2009 Stephen Williams\n\n"); + printf("Copyright 1998-2010 Stephen Williams\n\n"); puts(NOTICE); } + if (synth_flag) { + fprintf(stderr, "Warning: Synthesis is not currently being " + "maintained and may not\n"); + fprintf(stderr, " function correctly. V0.8 was the " + "last release branch to\n"); + fprintf(stderr, " have active synthesis development " + "and support!\n"); + } + /* Make a common conf file path to reflect the target. */ snprintf(iconfig_common_path, sizeof iconfig_common_path, "%s%c%s%s.conf", base, sep, targ, synth_flag? "-s" : "");