]> thyrsus.com Git - intercal.git/commitdiff
Fix the profiler
authorAlex Smith <ais523@bham.ac.uk>
Mon, 30 Mar 2009 04:33:07 +0000 (00:33 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 26 Aug 2010 00:35:36 +0000 (20:35 -0400)
BUGS
NEWS
buildaux/Makefile.am
src/perpet.c

diff --git a/BUGS b/BUGS
index 68f6e791ae315537fe2b072c6948327ff1b0fcbf..c03c79c814ec9d555589ea13f6831a62fd8042bf 100644 (file)
--- a/BUGS
+++ b/BUGS
@@ -60,9 +60,6 @@ AIS = Alex Smith
    to pass command-line arguments like -x and -E to it), and fails
    when mixed with come-from-gerund and next-from-gerund.
 
-7) (AIS) Something is seriously wrong with the profiler. Figure out
-   what it is.
-
                        TO DO
 
 1. (ESR) Add more optimization templates, esp. idioms for +, -, *, /.
diff --git a/NEWS b/NEWS
index 3ac14ea3dde498d53c04c32663b45b1a0389202c..80392a79a3604b8f7d291c25e8af724a28f82a82 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -83,7 +83,7 @@ Changes reported by the Debian autobuilders and Joey Hess
     been removed, as this method works better; likewise, the optimiser
     optimisation now works again.)
 
-Changes patched by Alex Smith
+Changes by Alex Smith
 
 19. The build system has been completely redone, again; it now uses automake
     as well as a much newer version of autoconf. This means that there is now
@@ -112,6 +112,10 @@ Changes patched by Alex Smith
     alternative method of getting a high-resolution clock for profiling (it
     is available on at least Linux).
 
+23. The profiler now autodetects the same profiling mechanism at compile
+    time and at run time. (It was getting confused as to what mechanism it was
+    using, causing some really weird bugs.)
+
 23. Added support for computed CREATE (the computation is done at create-time,
     rather than when the unknown statement is encountered); partly because
     this was rather easy, but mostly because it can be used to simulate a
index 9c654cff41e7d2b1f8a4ea6702fcc25ae526039a..0e18bd99c6fa1a6c107a1fee18460ebc1e770770 100644 (file)
@@ -68,6 +68,7 @@ latin1.o: bin2c$(EXEEXT_FOR_BUILD) src/latin1.bin
 
 ickinclude_HEADERS = src/ick_ec.h src/fiddle.h src/abcess.h src/ick_lose.h \
                      src/yuk.h
+nodist_ickinclude_HEADERS = config.h
 dist_ickdata_DATA = src/atari.bin src/baudot.bin src/ebcdic.bin src/latin1.bin \
                     src/ick-wrap.c src/pickwrap.c COPYING
 # These necessary pit files are in nodist_ here because they're in EXTRA_DIST
index 02607d6e4198e7d6bb19173fbfb32941d2721e10..0cb35dfa509b0cc1c243dd4529828fea38e1b97e 100644 (file)
@@ -1272,6 +1272,7 @@ static void generate_code(FILE *ifp, FILE *ofp,
         case 'K':       /* AIS: yuk information (or not) */
           if(yukdebug||yukprofile)
           {
+            (void) fprintf(ofp, "#include \"config.h\"\n\n");
             (void) fprintf(ofp, "#include \"yuk.h\"\n\n");
             (void) fprintf(ofp, "char* textlines[] = {\n");
             emittextlines(ofp); /* from feh.c */