1. 14 Jul, 2001 1 commit
    • sof's avatar
      [project @ 2001-07-14 00:06:13 by sof] · ba312921
      sof authored
      Heal HEID
      - eqForeignObjZh in include/PrimOps.h didn't have quite the right
        shape (the result is a macro arg). hslibs/lang/ForeignObj
        wasn't up on the change to eqForeignObj now being a primop.
      - recent ghc/compiler/deSugar/ changes broke the handling of
        CCall & FFI decls quite a bit. Backed out most the rewrites
        of Type.splitFoo to TcType.tcSplitFoo (i.e., now back to using
        The backed-out newtype-related changes were by no means accidental.
        But, I don't profess to understand their intention to make the
        proper fix, so my change is just a stop-gap measure to get HEAD
        back to the land of the living.
      - recent changes to the behaviour of 'hiding' & qualified names
        broke hslibs/lang/CString hslibs/data/edison/Seq/ListSeq,
        hslibs/data/edison/Coll/TestOrdBag, hslibs/data/edison/Coll/UnbalancedSet,
        hslibs/data/edison/Coll/TestOrdSet, hslibs/data/edison/Seq/TestSeq
      - rename 64-bit 'primop' funs that now live in lib/std/cbits/longlong.c
        back to what they used to be called (i.e., prefixed with "stg_").
           - less likely they'll clash with other (user supplied) entry points
             at link-time.
           - matches protos in ghc/includes/PrimOp.h
  2. 13 Jul, 2001 14 commits
  3. 12 Jul, 2001 9 commits
    • sof's avatar
      [project @ 2001-07-12 16:25:32 by sof] · 434ef2b1
      sof authored
      ppFilesFromSummaries: to cope with recent driver changes,
      only report a file as being preprocessed if it differs from
      the source file(name).
      Fixes awfully bad breakage when using --make (source files
      were being deleted).
    • simonpj's avatar
      [project @ 2001-07-12 16:24:49 by simonpj] · e569a71e
      simonpj authored
      Remove DsHsSyn; really part of my previous commit
    • simonpj's avatar
      [project @ 2001-07-12 16:21:22 by simonpj] · ab46fd8e
      simonpj authored
      	Fix another bug in the squash-newtypes story.
      [This one was spotted by Marcin, and is now enshrined in test tc130.]
      The desugarer straddles the boundary between the type checker and
      Core, so it sometimes needs to look through newtypes/implicit parameters
      and sometimes not.  This is really a bit painful, but I can't think of
      a better way to do it.
      The only simple way to fix things was to pass a bit more type
      information in the HsExpr type, from the type checker to the desugarer.
      That led to the non-local changes you can see.
      On the way I fixed one other thing.  In various HsSyn constructors
      there is a Type that is bogus (bottom) before the type checker, and
      filled in with a real type by the type checker.  In one place it was
      a (Maybe Type) which was Nothing before, and (Just ty) afterwards.
      I've defined a type synonym HsTypes.PostTcType for this, and a named
      bottom value HsTypes.placeHolderType to use when you want the bottom
    • simonpj's avatar
      [project @ 2001-07-12 14:51:28 by simonpj] · 6d1815b0
      simonpj authored
      Fix the module import story to match what the Revised
      Haskell Report says
      1. 	Don't import qualified names of things that aren't imported
      2.	Fix a bug that meant
      		import A hiding( D )
      	where D is a data constructor, didn't work.
      	[The fix is to use IEVar not IEThingAbs in the
      	want_hiding case of get_item in RnNames.filterImports
    • rrt's avatar
      [project @ 2001-07-12 13:32:25 by rrt] · 9f3b6ad3
      rrt authored
      Rewire so that hsc.c files get built as part of cbits library.
    • rrt's avatar
      [project @ 2001-07-12 12:59:48 by rrt] · 36d394f3
      rrt authored
      Fix spacing
    • rrt's avatar
      [project @ 2001-07-12 12:58:39 by rrt] · ce6b5c20
      rrt authored
      Two fixes:
      1. Don't emit "native" any more.
      2. Add import of mscorlib to the start of every output file.
    • rrt's avatar
      [project @ 2001-07-12 10:37:55 by rrt] · 43ad8a63
      rrt authored
      Change access to errorHdrHook back into a foreign label (this is now
      supported by the NCG, or should be, and in any case, we don't build
      HSstd with the NCG).
    • rrt's avatar
      [project @ 2001-07-12 10:34:54 by rrt] · 6cdbb12e
      rrt authored
      Remove addrOf_ErrorHdrHook, as the NCG now can (or should) cope with
      foreign labels, and in any case, we don't use the NCG to build the
      standard library.
      The motivation for this fix is preventing HSstd_cbits depending on the
      RTS, so that it can be built as a DLL (for .NET) without needing to
      get the RTS built as a DLL (that way lies madness).
  4. 11 Jul, 2001 11 commits
    • sof's avatar
      [project @ 2001-07-11 22:47:32 by sof] · fa22b47c
      sof authored
      Append final newline to _stub.{c,h} output
    • sof's avatar
      [project @ 2001-07-11 19:48:07 by sof] · 17629712
      sof authored
      Prev commit which tried to get rid of the 'ineffective CPP'
      stage broke an invariant/assumption made by DriverPipeline.genPipeline,
      I'm afraid.
      The invariant being that from the input filename to a compilation
      pipeline, the start stage/phase can be uniquely determined
      (via DriverPhases.startPhase). run_phase no longer guarantees
      this, its result filename may now be equal to the input filename.
      [This resulted in -M not working properly when -cpp wasn't also used].
      Patch this up by having the input filename to a compilation pipeline
      stage be tagged with the assumed suffix of the output. This is
      really just papering over the cracks, the proper way to tidy this
      up is to avoid having to do the two-stage compilation pipeline in
      Main.main.compileFile, i.e., reconsider how OPTIONS pragmas are
      handled. I decided not to try to do this now for fear of destabilising
      HEAD even further.
    • sof's avatar
      [project @ 2001-07-11 14:51:49 by sof] · b2c6dceb
      sof authored
      runSomething: don't export it
    • sof's avatar
      [project @ 2001-07-11 14:50:49 by sof] · 65dda595
      sof authored
      run_phase: added tysig
    • rrt's avatar
      [project @ 2001-07-11 13:24:24 by rrt] · ad428ac6
      rrt authored
      Replace GhcLibToolsHcOpts with FptoolsHcOpts, and make it apply to all
      programs in fptools, not just the hslibs tools. Now there's a way of
      controlling compiler flags to all programs in the tree, so
      a) by default all utilities should be optimised (before this was only done
      for one or two like hsc2hs)
      b) if you're doing development work, you can get everything built quicker by
      setting FptoolsHcOpts appropriately
    • rrt's avatar
      [project @ 2001-07-11 13:10:31 by rrt] · f206503f
      rrt authored
      Don't add -O here; should be up to the user
    • rrt's avatar
      [project @ 2001-07-11 11:01:59 by rrt] · 922de753
      rrt authored
      Make ghc-pkg find its path on Windows
    • rrt's avatar
      [project @ 2001-07-11 10:20:43 by rrt] · 4fcac006
      rrt authored
      Fix spacing bogon.
    • rrt's avatar
      [project @ 2001-07-11 10:17:51 by rrt] · e9622e23
      rrt authored
      Rewrite getExecDir to use GetModuleFileName on Windows (thanks, sof),
      and switch unDosifyPath's definitions between Windows and Unix so that
      it actually does something on Windows.
    • sof's avatar
      [project @ 2001-07-11 01:27:04 by sof] · 2c4b2be6
      sof authored
      Do away with that 'ineffective CPP' malarkey. run_phase now returns
      the FilePath of its output file; in the event CPP isn't required,
      we then just return the input file. (The extra LINE pragma that
      the 'ineffective CPP' inserted was a NOP).
      Appears to speed things up a bit; mingw/Win32 builds no longer need to
      do a slow copyFile operation - other plats are saved from doing a
      System.system call.
      BTW, there's an opportunity to shorten the critical path for .hs files
      some in the driver: at the moment 'unlit' is run over all input.
    • sof's avatar
      [project @ 2001-07-11 00:13:22 by sof] · d0dc1b03
      sof authored
      Avoid needless redefn of HAVE_ALLOCA
  5. 10 Jul, 2001 5 commits