1. 06 Jul, 2000 10 commits
    • keithw's avatar
      [project @ 2000-07-06 17:22:40 by keithw] · a75df25a
      keithw authored
      Fix obvious typo (pprStgARg for pprStgArg).  Clearly not a frequently-
      tickled part of the compiler!
      a75df25a
    • simonpj's avatar
      [project @ 2000-07-06 16:31:45 by simonpj] · 525898a9
      simonpj authored
      * Improve the warning "M is imported but nothing from it is used"
        In particular, don't warn if some instances from it are imported.
      
        It's pretty much impossible to do the Right Thing always.
        A comment in Rename.lhs says
      	-- NOTE: Consider
      	--	      module This
      	--		import M ()
      	--
      	--	 The import M() is not *necessarily* redundant, even if
      	-- 	 we suck in no instance decls from M (e.g. it contains
      	--	 no instance decls, or This contains no code).  It may be
      	--	 that we import M solely to ensure that M's orphan instance
      	--	 decls (or those in its imports) are visible to people who
      	--	 import This.  Sigh.
      	--	 There's really no good way to detect this, so the error message
      	--	 in RnEnv.warnUnusedModules is weakened instead
      
      * Minor comment changes to RnIfaces.lhs
      
      * Use NameEnv instead of UFM in TcEnv (tidy up only)
      525898a9
    • simonmar's avatar
      [project @ 2000-07-06 16:28:40 by simonmar] · 89cefac8
      simonmar authored
      Add Marcin Kowalczyk and Michael Weber to the "Additional
      Contributors" section.
      89cefac8
    • simonmar's avatar
      [project @ 2000-07-06 15:43:28 by simonmar] · df480464
      simonmar authored
      A string constant block can consist of multiple .string/.ascii
      directives.  The sparc-specific code in this file already handled this
      properly, but the x86 code was wrong.
      df480464
    • simonmar's avatar
      [project @ 2000-07-06 15:24:57 by simonmar] · 09c44c1e
      simonmar authored
      no need to set hsc_lang = HscC when -split-objs is on.
      09c44c1e
    • simonmar's avatar
      [project @ 2000-07-06 14:08:31 by simonmar] · 5d42ac16
      simonmar authored
      New form of literal: MachLabel, for addresses of labels.  Used by
      foreign label instead of MachLitLit now.
      
      Real lit-lits now cause the NCG to panic.
      
      Also: removed CLitLit from AbsCSyn; it was only used in one place for
      a purpose it shouldn't have been used for in the first place.
      5d42ac16
    • rrt's avatar
      [project @ 2000-07-06 13:42:35 by rrt] · f7e174ea
      rrt authored
      Corrected URLs.
      f7e174ea
    • simonmar's avatar
      [project @ 2000-07-06 13:32:35 by simonmar] · a058828d
      simonmar authored
      New section on Packages, collecting together the various
      package-related documentation and adding some new stuff about the package
      management features.
      a058828d
    • rrt's avatar
      [project @ 2000-07-06 11:43:24 by rrt] · 040b3640
      rrt authored
      Bump the version no.
      040b3640
    • simonmar's avatar
      [project @ 2000-07-06 09:35:37 by simonmar] · 07080fd8
      simonmar authored
      ghc 4.06 didn't have -package, so use it only for 4.07+.
      07080fd8
  2. 05 Jul, 2000 5 commits
    • simonmar's avatar
      [project @ 2000-07-05 17:16:02 by simonmar] · 5cbfe4e7
      simonmar authored
      bullet-proof the package code a bit more; check for write access to the
      configuration file before doing anything, check whether we're adding a
      package that's already there, etc.
      5cbfe4e7
    • simonmar's avatar
      [project @ 2000-07-05 17:01:59 by simonmar] · b2d52fc9
      simonmar authored
      Packages can now be added/removed from an installed GHC as follows:
      
          $ ./ghc-inplace --list-packages
          gmp, rts, std, lang, concurrent, data, net, posix, text, util,
          hssource, win32, com, std2
          $ ./ghc-inplace --add-package <newpkg
          Reading package info from stdin... done.
          Saving old package config file... done.
          Writing new package config file... done.
          $ ./ghc-inplace --list-packages
          gmp, rts, std, lang, concurrent, data, net, posix, text, util,
          hssource, win32, com, std2, mypkg
          $ ./ghc-inplace --delete-package mypkg
          Saving old package config file... done.
          Writing new package config file... done.
          $ ./ghc-inplace --list-packages
          gmp, rts, std, lang, concurrent, data, net, posix, text, util,
          hssource, win32, com, std2
      
      This is a first stab at the kind of functionality we need for
      installing Haskell libraries via RPMs: the RPM script would install
      the libraries, and then do a "ghc --add-package" passing the
      appropriate paths.  You'd then have "ghc -package" at your disposal to
      use the newly installed package.  Similarly on de-install, the RPM
      script would run "ghc --delete-package".
      
      Also in this commit: prettify the package dumping.
      b2d52fc9
    • keithw's avatar
      [project @ 2000-07-05 15:42:19 by keithw] · 8d5bf65c
      keithw authored
      Add -t flag to specify title of report.
      8d5bf65c
    • sewardj's avatar
      [project @ 2000-07-05 14:28:49 by sewardj] · dfedfb02
      sewardj authored
      Rename the marker used by Diff_Gcc_Nat.hs to ___ncg_debug_marker, to make
      it clear it has nothing to do with the usual object-splitting machinery.
      
      Improve Diff_Gcc_Nat:
      * Emit a warning, and stop, if there are no debug markers in the NCG code.
      * Handle .uahalf and .uaword, which appear in sparc assembly, but not x86.
      dfedfb02
    • sewardj's avatar
      [project @ 2000-07-05 09:46:35 by sewardj] · 558c0ec0
      sewardj authored
      Make -S work when going via the NCG.
      558c0ec0
  3. 04 Jul, 2000 3 commits
  4. 03 Jul, 2000 15 commits
  5. 02 Jul, 2000 3 commits
    • panne's avatar
      [project @ 2000-07-02 19:23:21 by panne] · 786b2e7b
      panne authored
      Removed -noC flag, which has vanished from the driver
      786b2e7b
    • panne's avatar
      [project @ 2000-07-02 18:59:10 by panne] · 2a0ffd1c
      panne authored
      Don't use addr2Integer for large integral literals anymore, use a
      Horner schema with numbers in the Int range instead. This improves
      constant folding, so e.g.  (0x87654321 :: Word32) is evaluated at
      compile time now. In theory we can completely say Good-bye to
      addr2Integer, but for the time being it's still there. Feel free to
      nuke it...  >:-)
      2a0ffd1c
    • panne's avatar
      [project @ 2000-07-02 18:50:24 by panne] · d781517f
      panne authored
      Don't warn the user about integer overflow during constant folding
      anymore. It's not done at runtime either, and compilation of
      completely harmless things like
      
         ((124076834 :: Word32) + (2147483647 :: Word32))
      
      yielded a warning.
      d781517f
  6. 30 Jun, 2000 4 commits
    • panne's avatar
      [project @ 2000-06-30 19:12:21 by panne] · ed481295
      panne authored
      Hackily quote -#include options before passing them to mkdependHS
      ed481295
    • panne's avatar
      [project @ 2000-06-30 18:38:03 by panne] · a4b4ad24
      panne authored
      Remove parentheses around C function/macros names. This is necessary
      because cpp does *not* replace e.g.
      
         (eqForeignObj)(f1,f2)
      
      with
      
        ((f1)==(f2))
      
      (see PrimOps.h), heaven (or K&R) knows why. OK foreign importing
      macros is a hack, but GHC seems to depend on it.
      a4b4ad24
    • simonmar's avatar
      [project @ 2000-06-30 13:39:35 by simonmar] · ce6e38dc
      simonmar authored
      - fix copyrights
      - remove some unused imports
      - comment formatting fixes
      ce6e38dc
    • simonpj's avatar
      [project @ 2000-06-30 13:11:07 by simonpj] · b0624daa
      simonpj authored
      In a CCall, a DynamicTarget has a unique that is
      used only to generate a uniquely-named typedef.
      It should not be used when comparing CCalls (e.g.
      when seeing if interface files have changed).
      So the main change in this commit is to fix the Eq
      instance for PrimOp.CCallTarget, but I took the
      opportunity to clean up the CCallTarget interface
      a little.
      b0624daa