1. 26 Sep, 2001 8 commits
    • simonpj's avatar
      [project @ 2001-09-26 15:11:50 by simonpj] · 5cd3527d
      simonpj authored
      	Code generation and SRT hygiene
      This is a big tidy up commit.  I don't think it breaks anything,
      but it certainly makes the code clearer (to me).
      I'm not certain that you can use it without sucking in my other
      big commit... they come from the same tree.
      Core-to-STG, live variables and Static Reference Tables (SRTs)
      I did a big tidy-up of the live-variable computation in CoreToStg.
      The key idea is that the live variables consist of two parts:
      	dynamic live vars
      	static live vars (CAFs)
      These two always travel round together, but they were always
      treated separately by the code until now. Now it's a new data type:
      type LiveInfo = (StgLiveVars, 	-- Dynamic live variables;
      				-- i.e. ones with a nested (non-top-level) binding
      		 CafSet)	-- Static live variables;
      				-- i.e. top-level variables that are CAFs or refer to them
      There's lots of documentation in CoreToStg.
      Code generation
      Arising from this, I found that SRT labels were stored in
      a LambdaFormInfo during code generation, whereas they *ought*
      to be in the ClosureInfo (which in turn contains a LambdaFormInfo).
      This led to lots of changes in ClosureInfo, and I took the opportunity
      to make it into a labelled record.
      Similarly, I made the data type in AbstractC a bit more explicit:
        -- C_SRT is what StgSyn.SRT gets translated to...
        -- we add a label for the table, and expect only the 'offset/length' form
      data C_SRT = NoC_SRT
      	   | C_SRT CLabel !Int{-offset-} !Int{-length-}
      (Previously there were bottoms lying around.)
    • chak's avatar
      [project @ 2001-09-26 13:42:50 by chak] · 03aa2ef6
      chak authored
      - split documentation off into a separate package
      - adapt to new docbook setup in RH7.1
    • rrt's avatar
      [project @ 2001-09-26 11:44:30 by rrt] · a355da9a
      rrt authored
      Make the print stylesheet generate a TOC for sets (so the PDF manual
      has a front TOC indicating that it contains both the user's guide and
      libraries guide).
      A simple question with a simple answer; how refreshing.
    • simonmar's avatar
      [project @ 2001-09-26 10:38:02 by simonmar] · e8ec5846
      simonmar authored
      ENODEV should really be an UnsupportedOperation, not NoSuchThing.
    • simonmar's avatar
      [project @ 2001-09-26 10:35:41 by simonmar] · 0ea9ecaf
      simonmar authored
      A failure while trying to set O_NONBLOCK on a file descriptor should
      be a non-fatal error.  It turns out that on FreeBSD it is an error
      (ENODEV) to try to set O_NONBLOCK on /dev/null.
    • simonmar's avatar
      [project @ 2001-09-26 09:41:26 by simonmar] · 2c910672
      simonmar authored
      Let's try that last commit again, and get it right this time...
    • simonmar's avatar
      [project @ 2001-09-26 09:16:00 by simonmar] · 6e554967
      simonmar authored
      When skipping a nested comment, keep track of the source location of
      the comment opener, so that we can report it in an error message
      rather than reporting the line at the end of the file.
      Also noticed a couple of ineficiencies in the nested comment code, so
      fixed those too.
    • simonmar's avatar
      [project @ 2001-09-26 08:59:42 by simonmar] · 159b1202
      simonmar authored
      Add the text about ForeignPtr vs. Ptr
  2. 25 Sep, 2001 6 commits
  3. 24 Sep, 2001 10 commits
  4. 23 Sep, 2001 4 commits
    • ken's avatar
      [project @ 2001-09-23 21:29:35 by ken] · a5840900
      ken authored
      We need to pass the -w flag to gcc when compilng *_stub.c files
      in addition to when compilng *.hc files.
    • ken's avatar
      [project @ 2001-09-23 20:46:46 by ken] · 6705e0ed
      ken authored
      CLEAN_FILES += PrelPrimopWrappers.hs # MERGE TO STABLE
    • ken's avatar
      [project @ 2001-09-23 20:45:55 by ken] · 4078bb33
      ken authored
      Disable debugging message.  (Only affects Alpha.)  MERGE TO STABLE
    • ken's avatar
      [project @ 2001-09-23 20:45:24 by ken] · 9d3bc150
      ken authored
      Fix the "find" commands we use to build a source distribution.
      Previously, it said things like "-exec path/{}", which doesn't work
      on many find's ({} really should only appear by itself in an argument).
      Now we pipe the output of find -print to sed and then to sh.  I hope
      the piping to sh doesn't break source distribution creation on Win32.
  5. 22 Sep, 2001 5 commits
  6. 21 Sep, 2001 6 commits
  7. 20 Sep, 2001 1 commit
    • rje's avatar
      [project @ 2001-09-20 16:01:53 by rje] · 3ff55536
      rje authored
      Now has better handling of comments.
      Not a big deal, but means we don't get as many false definitions caused
      by parsing comments.