[llvm-commits] CVS: llvm-test/MultiSource/Benchmarks/Prolangs-C/bison/Makefile files.c

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 5 11:37:58 PDT 2004



Changes in directory llvm-test/MultiSource/Benchmarks/Prolangs-C/bison:

Makefile updated: 1.1 -> 1.2
files.c updated: 1.1 -> 1.2
---
Log message:

Make it run


---
Diffs of the changes:  (+11 -9)

Index: llvm-test/MultiSource/Benchmarks/Prolangs-C/bison/Makefile
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C/bison/Makefile:1.1 llvm-test/MultiSource/Benchmarks/Prolangs-C/bison/Makefile:1.2
--- llvm-test/MultiSource/Benchmarks/Prolangs-C/bison/Makefile:1.1	Tue Oct  5 13:31:49 2004
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C/bison/Makefile	Tue Oct  5 13:37:45 2004
@@ -1,5 +1,6 @@
 LEVEL = ../../../..
 
 PROG = mybison
+RUN_OPTIONS = $(BUILD_SRC_DIR)/parse.y.in -v
 include $(LEVEL)/MultiSource/Makefile.multisrc
 


Index: llvm-test/MultiSource/Benchmarks/Prolangs-C/bison/files.c
diff -u llvm-test/MultiSource/Benchmarks/Prolangs-C/bison/files.c:1.1 llvm-test/MultiSource/Benchmarks/Prolangs-C/bison/files.c:1.2
--- llvm-test/MultiSource/Benchmarks/Prolangs-C/bison/files.c:1.1	Tue Oct  5 13:31:50 2004
+++ llvm-test/MultiSource/Benchmarks/Prolangs-C/bison/files.c	Tue Oct  5 13:37:45 2004
@@ -162,26 +162,26 @@
   if (verboseflag)
     {
       outfile = stringappend(name_base, short_base_length, ".output");
-      foutput = tryopen(outfile, "w");
+      foutput = stdout; /*tryopen(outfile, "w");*/
     }
 
   if (definesflag)
     {
       defsfile = stringappend(name_base, base_length, ".h");
-      fdefines = tryopen(defsfile, "w");
+      fdefines = stdout; /*tryopen(defsfile, "w");*/
     }
 
   actfile = mktemp(stringappend(tmp_base, tmp_len, "act.XXXXXX"));
-  faction = tryopen(actfile, "w+");
-  unlink(actfile);
+  faction = stdout; /*tryopen(actfile, "w+");
+  unlink(actfile);*/
 
   tmpattrsfile = mktemp(stringappend(tmp_base, tmp_len, "attrs.XXXXXX"));
-  fattrs = tryopen(tmpattrsfile,"w+");
-  unlink(tmpattrsfile);
+  fattrs = stdout; /*tryopen(tmpattrsfile,"w+");
+  unlink(tmpattrsfile);*/
 
   tmptabfile = mktemp(stringappend(tmp_base, tmp_len, "tab.XXXXXX"));
-  ftable = tryopen(tmptabfile, "w+");
-  unlink(tmptabfile);
+  ftable = stdout; /*tryopen(tmptabfile, "w+");
+  unlink(tmptabfile);*/
 
 	/* These are opened by `done' or `open_extra_files', if at all */
   if (spec_outfile)
@@ -218,7 +218,7 @@
   rewind(fattrs);
   while((c=getc(fattrs))!=EOF)	/* Thank god for buffering */
     putc(c,ftmp);
-  fclose(fattrs);
+  /*fclose(fattrs);*/
   fattrs=ftmp;
 
   fguard = tryopen(guardfile, "w");
@@ -243,6 +243,7 @@
 
 void done(int k)
 {
+  return;
   if (faction)
     fclose(faction);
 






More information about the llvm-commits mailing list