From: Alex Smith Date: Wed, 7 May 2008 15:41:20 +0000 (-0400) Subject: nooptwithg X-Git-Tag: 0.29~238 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=402b96498777dde8f6367b75efab9fe523925150;p=intercal.git nooptwithg --- diff --git a/NEWS.txt b/NEWS.txt index 021e3dd..dac18a2 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -50,23 +50,26 @@ Changes by Joris Huizer 9. Fixed unary operators applied to constants (AIS: it seems that my patch to solve this issue earlier was itself buggy). +10. The -g option now causes optimisation of the output compiled C to be + turned off. + Changes by Alex Smith -10. convickt can now produce its output as INTERCAL initialisation of a tail +11. convickt can now produce its output as INTERCAL initialisation of a tail array. (This doesn't auto-offset between the different characters; it is therefore mostly useful for producing Baudot arrays for CLC-INTERCAL-style IO.) -11. The function clock_gettime is now supported by the yuk profiler as an +12. The function clock_gettime is now supported by the yuk profiler as an alternative method of getting a high-resolution clock for profiling (it is available on at least Linux). -12. Upgraded the autoconfiguration to a substantially newer version of +13. Upgraded the autoconfiguration to a substantially newer version of autoconf. Hopefully the same script works on all operating systems now, because I've removed the one that configures for DOS (which was previously separate). -13. Added support for computed CREATE (the computation is done at create-time, +14. 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 computed NEXT, thus making the example expansion library compunex (which I @@ -78,10 +81,10 @@ Changes by Alex Smith features of NEXT, anyway, rather than the small subset COMPUNEX could manage.) -14. Plugged a couple of small memory leaks; however, there are still several +15. Plugged a couple of small memory leaks; however, there are still several much bigger memory leaks that could do with being fixed. -15. About the version number: this release is mostly bugfixing, but does add a +16. About the version number: this release is mostly bugfixing, but does add a few new features, so I wasn't sure whether to increment the major or the minor version number. In the end, I used the old INTERCAL maxim 'when in doubt, do both'. diff --git a/src/perpet.c b/src/perpet.c index 70f2f6d..2ff0edc 100644 --- a/src/perpet.c +++ b/src/perpet.c @@ -817,7 +817,8 @@ int main(int argc, char *argv[]) buf, yukdebug||yukprofile?" -lyuk ":" ", #endif includedir, path, path, libdir, path, path, - coopt?'3':'2', /* AIS: If coopting, optimize as much as possible */ + cdebug?'0':coopt?'3':'2', /* AIS: If coopting, optimize as much as possible + JH: [d]on't optimise when compiling with debugger support */ argv[optind], multithread?"mt":"", cdebug?" -g":""); /* AIS: Possibly link in the debugger yuk and/or libickmt.a here. */ /* AIS: Added -g support. */