From 7c4d07bda631711a6b3bb3e68be1bf5227ed9d6a Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 3 Sep 2010 17:24:46 -0700 Subject: [PATCH] V0.9: 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 ac3cf9c9b..6e1e62692 100644 --- a/driver/main.c +++ b/driver/main.c @@ -645,10 +645,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; @@ -669,7 +669,7 @@ int process_generation(const char*name) else if (strcmp(name,"no-verilog-ams") == 0) gen_verilog_ams = "no-verilog-ams"; - + else if (strcmp(name,"system-verilog") == 0) gen_system_verilog = "system-verilog"; @@ -936,10 +936,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" : "");