1. 18 Aug, 2001 2 commits
  2. 17 Aug, 2001 16 commits
    • sof's avatar
      [project @ 2001-08-17 22:29:06 by sof] · 9db4c813
      sof authored
      Add -I$(GHC_INCLUDE_DIR) to SRC_MKDEPENDHS_OPTS; ghc-4.0x
      needs this since 'mkdependHS' also chases #includes.
      
      Not an issue with ghc-5.xx's dep-generator, since it invokes
      CPP prior to gathering up the imports.
      
      This should bring ghc-4.08-based nightly builds back to life.
      9db4c813
    • apt's avatar
      [project @ 2001-08-17 17:18:51 by apt] · 1dfaee31
      apt authored
      How I spent my summer vacation.
      
      Primops
      -------
      
      The format of the primops.txt.pp file has been enhanced to allow
      (latex-style) primop descriptions to be included.  There is a new flag
      to genprimopcode that generates documentation including these
      descriptions. A first cut at descriptions of the more interesting
      primops has been made, and the file has been reordered a bit.
      
      31-bit words
      ------------
      
      The front end now can cope with the possibility of 31-bit (or even 30-bit)
      Int# and Word# types.  The only current use of this is to generate
      external .core files that can be translated into OCAML source files
      (OCAML uses a one-bit tag to distinguish integers from pointers).
      The only way to get this right now is by hand-defining the preprocessor
      symbol WORD_SIZE_IN_BITS, which is normally set automatically from
      the familiar WORD_SIZE_IN_BYTES.
      
      Just in case 31-bit words are used, we now have Int32# and Word32# primitive types
      and an associated family of operators, paralleling the existing 64-bit
      stuff.  Of course, none of the operators actually need to be implemented
      in the absence of a 31-bit backend.
      There has also been some minor re-jigging of the 32 vs. 64 bit stuff.
      See the description at the top of primops.txt.pp file for more details.
      Note that, for the first time, the *type* of a primop can now depend
      on the target word size.
      
      Also, the family of primops intToInt8#, intToInt16#, etc.
      have been renamed narrow8Int#, narrow16Int#, etc., to emphasize
      that they work on Int#'s and don't actually convert between types.
      
      Addresses
      ---------
      
      As another part of coping with the possibility of 31-bit ints,
      the addr2Int# and int2Addr# primops are now thoroughly deprecated
      (and not even defined in the 31-bit case) and all uses
      of them have been removed except from the (deprecated) module
      hslibs/lang/Addr
      
      Addr# should now be treated as a proper abstract type, and has these suitable operators:
      
      nullAddr# : Int# -> Addr# (ignores its argument; nullary primops cause problems at various places)
      plusAddr# :  Addr# -> Int# -> Addr#
      minusAddr : Addr# -> Addr# -> Int#
      remAddr# : Addr# -> Int# -> Int#
      
      Obviously, these don't allow completely arbitrary offsets if 31-bit ints are
      in use, but they should do for all practical purposes.
      
      It is also still possible to generate an address constant, and there is a built-in rule
      that makes use of this to remove the nullAddr# calls.
      
      Misc
      ----
      There is a new compile flag -fno-code that causes GHC to quit after generating .hi files
      and .core files (if requested) but before generating STG.
      
      Z-encoded names for tuples have been rationalized; e.g.,
      Z3H now means an unboxed 3-tuple, rather than an unboxed
      tuple with 3 commas (i.e., a 4-tuple)!
      
      Removed misc. litlits in hslibs/lang
      
      Misc. small changes to external core format.  The external core description
      has also been substantially updated, and incorporates the automatically-generated
      primop documentation; its in the repository at /papers/ext-core/core.tex.
      
      A little make-system addition to allow passing CPP options to compiler and
      library builds.
      1dfaee31
    • sof's avatar
      [project @ 2001-08-17 16:06:30 by sof] · d30f8fc1
      sof authored
      - have SysTools.FileOption take a prefix that is not to be transformed
        (this is to accommodate MS-style cmd-line options of the kind: "/out=foo.obj")
      - have users of Finder.mkHomeModuleLocn catch up with recent change to its type.
      d30f8fc1
    • simonmar's avatar
      [project @ 2001-08-17 15:46:54 by simonmar] · 150d5559
      simonmar authored
      bugfix for -G1
      150d5559
    • simonmar's avatar
      [project @ 2001-08-17 14:44:54 by simonmar] · 25f71699
      simonmar authored
      fix a profiling bug: the cost centre stack in a raise_closure wasn't
      being initialised.
      25f71699
    • simonmar's avatar
      [project @ 2001-08-17 12:56:55 by simonmar] · 7f12c16a
      simonmar authored
      The .hi file wasn't tracking the module name (my fault).  Fix it.
      7f12c16a
    • sewardj's avatar
      [project @ 2001-08-17 12:43:24 by sewardj] · 0e3ae44d
      sewardj authored
      On 4.08.X compilers, just make rawSystem be System.system.  This is
      so we can still build stage1s with 4.08.X.  It won't work on Win32
      but the minimum compiler to build a stage1 for Win32 is 5.01 AFAICS.
      0e3ae44d
    • rrt's avatar
      [project @ 2001-08-17 11:20:00 by rrt] · 3439fb2c
      rrt authored
      Add rules for way "i" for maing libraries, so that a DLL rather than a .a
      gets built, and with al rather than ld.
      3439fb2c
    • rrt's avatar
      [project @ 2001-08-17 11:14:28 by rrt] · 85778bb4
      rrt authored
      std.dll now gets made by target.mk rules
      85778bb4
    • rrt's avatar
      [project @ 2001-08-17 11:13:04 by rrt] · e94a62fa
      rrt authored
      Add a dummy function _ErrorHdrHook to return the address of ErrorHdrHook.
      Dunno how this ever compiled before. Maybe this is just a special Friday
      effect. Maybe I shouldn't be committing stuff today. Maybe I should just
      give up now.
      e94a62fa
    • simonmar's avatar
      [project @ 2001-08-17 11:08:01 by simonmar] · 432ec49f
      simonmar authored
      don't include <string.h> here, HsStd.h is the right place.
      432ec49f
    • simonmar's avatar
      [project @ 2001-08-17 11:06:58 by simonmar] · 37f64a8a
      simonmar authored
      include <string.h>
      37f64a8a
    • rrt's avatar
      [project @ 2001-08-17 10:10:15 by rrt] · 25fda520
      rrt authored
      Use EXCLUDED_SRCS to handle ilxstubs.c
      25fda520
    • rrt's avatar
      [project @ 2001-08-17 08:35:24 by rrt] · 88f81848
      rrt authored
      Make sure std is compiled with -fvia-C (NCG can't cope)
      88f81848
    • sof's avatar
      [project @ 2001-08-17 00:17:55 by sof] · 805507b1
      sof authored
      SRC_CC_OPTS: add GHC_{INCLUDE,RUNTIME}_DIR to include path
      805507b1
    • sof's avatar
      [project @ 2001-08-17 00:14:49 by sof] · 7bca7846
      sof authored
      Get rid of (harmless) CPP warnings
      7bca7846
  3. 16 Aug, 2001 12 commits
    • sof's avatar
      [project @ 2001-08-16 22:54:24 by sof] · 48e7208b
      sof authored
      Death to GHC_INCLUDE_DIR (well, almost).
      
      - mk/target.mk: get rid off the abomination of having SRC_CC_OPTS include
        GHC_INCLUDE_DIR and GHC_RUNTIME_DIR for all fptools/ projects.
      - mk/suffix.mk: %.pp suffix rule no longer hardwires in the use of GHC_INCLUDE_DIR;
        just $(CPP_OPTS). ==> If you want GHC_INCLUDE_DIR on the include path, better
        add it to SRC_CPP_OPTS (say) at the point where you need it (ghc/compiler/Makefile
        and ghc/lib/std/Makefile do this now).
      - wipe out the use of -I$(GHC_INCLUDE_DIR) in HC_OPTS in hslibs/; not needed.
      - hslibs/mk/boilerplate.mk still define GHC_{IO_}INCLUDE_DIR for the purpose
        of using it when compiling .c files. It should be possible to get rid off it
        by having CC=$(HC), but I haven't imposed that change (yet).
      48e7208b
    • rrt's avatar
      [project @ 2001-08-16 15:24:05 by rrt] · 1951cb4f
      rrt authored
      Dunno how this got here
      1951cb4f
    • rrt's avatar
      [project @ 2001-08-16 14:43:59 by rrt] · 78441119
      rrt authored
      Update ILX tool functions to use Option and OptionFile
      78441119
    • rrt's avatar
      [project @ 2001-08-16 14:41:40 by rrt] · 8b1d1b8b
      rrt authored
      Remove spurious duplicate rule for PrelGHC.$(way)hi.
      
      Improve rule for std.vlb, thanks to a fix to mkvlb.
      
      Add -DILX to SRC_HC_OPTS (needed for PrelTopHandler).
      8b1d1b8b
    • rrt's avatar
      [project @ 2001-08-16 14:35:52 by rrt] · 5a71d8ef
      rrt authored
      Add -fruntime-types, which the ILX backend needs
      5a71d8ef
    • rrt's avatar
      [project @ 2001-08-16 11:16:27 by rrt] · fd9b0b3e
      rrt authored
      Remove WAY_i_* settings from user ways section
      fd9b0b3e
    • simonmar's avatar
      [project @ 2001-08-16 11:06:10 by simonmar] · 174e46d5
      simonmar authored
      add newline to "WARNING: error while reading directory" message.
      174e46d5
    • simonmar's avatar
      [project @ 2001-08-16 10:54:22 by simonmar] · 1965e001
      simonmar authored
      Include fixity info in the output from :info.
      1965e001
    • simonmar's avatar
      [project @ 2001-08-16 10:25:21 by simonmar] · a035c70f
      simonmar authored
      Prettier output for GHCi's :info
      
        - put parenthesis around operators in type signatures
          (both IfaceSig and ClassOpSig)
      
        - don't use the cryptic '= ::' notation for indicating that a
          class op has a default method, instead put the information in a
          comment after the type.
      a035c70f
    • simonmar's avatar
      [project @ 2001-08-16 09:59:38 by simonmar] · ef32ff0a
      simonmar authored
      Set the SrcLoc for expressions typed on the command line to
      <interactive>:1 rather than <no file>:0.
      ef32ff0a
    • chak's avatar
      [project @ 2001-08-16 05:30:27 by chak] · 1a4ea2e4
      chak authored
      * Use new `gen_no' member in `bdescr'
      * Track renaming of member `to_space' in `step' structure
      1a4ea2e4
    • chak's avatar
      [project @ 2001-08-16 05:06:44 by chak] · d1dcd244
      chak authored
      Compile `cmInfoThing' only for GHCI
      d1dcd244
  4. 15 Aug, 2001 10 commits