From 1046c86c8491919c2e2626b599ad883f2086a4c0 Mon Sep 17 00:00:00 2001 From: steve Date: Thu, 9 Nov 2000 21:58:00 +0000 Subject: [PATCH] Remember to include the -S condition. --- driver/Makefile.in | 4 ++-- driver/globals.h | 8 +++++++- driver/parse.y | 6 +++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/driver/Makefile.in b/driver/Makefile.in index c880a7e6a..f9e9b424e 100644 --- a/driver/Makefile.in +++ b/driver/Makefile.in @@ -18,7 +18,7 @@ # 59 Temple Place - Suite 330 # Boston, MA 02111-1307, USA # -#ident "$Id: Makefile.in,v 1.1 2000/10/08 22:36:56 steve Exp $" +#ident "$Id: Makefile.in,v 1.2 2000/11/09 21:58:00 steve Exp $" # # SHELL = /bin/sh @@ -71,7 +71,7 @@ main.o: main.c globals.h build_string.o: build_string.c globals.h lexor.o: lexor.c parse.h globals.h -parse.o: parse.c +parse.o: parse.c globals.h install: all installdirs $(bindir)/iverilog@EXEEXT@ $(mandir)/man1/iverilog.1 diff --git a/driver/globals.h b/driver/globals.h index 9e29bfb43..ed0afb6fd 100644 --- a/driver/globals.h +++ b/driver/globals.h @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: globals.h,v 1.2 2000/10/28 03:45:47 steve Exp $" +#ident "$Id: globals.h,v 1.3 2000/11/09 21:58:00 steve Exp $" #endif # include @@ -45,6 +45,9 @@ extern const char*opath; /* This pointer is set if there was a -s parameter. */ extern const char*start; + /* This flag is true if the -S flag was used on the command line. */ +extern int synth_flag; + /* This is the name of the selected target. */ extern const char*targ; @@ -56,6 +59,9 @@ extern int build_string(char*out, size_t olen, const char*pattern); /* * $Log: globals.h,v $ + * Revision 1.3 2000/11/09 21:58:00 steve + * Remember to include the -S condition. + * * Revision 1.2 2000/10/28 03:45:47 steve * Use the conf file to generate the vvm ivl string. * diff --git a/driver/parse.y b/driver/parse.y index 7a8b9e9a6..96dc71dbc 100644 --- a/driver/parse.y +++ b/driver/parse.y @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #if !defined(WINNT) && !defined(macintosh) -#ident "$Id: parse.y,v 1.1 2000/10/08 22:36:56 steve Exp $" +#ident "$Id: parse.y,v 1.2 2000/11/09 21:58:00 steve Exp $" #endif # include @@ -94,6 +94,10 @@ const char*lookup_pattern(const char*key) for (cc = cur->cond ; cc ; cc = cc->next) { switch (cc->code) { + case CODE_S: + if (synth_flag) + continue; + break; case CODE_t: if (strcmp(targ, cc->text) == 0) continue;