1. 15 Jul, 2011 1 commit
    • Ian Lynagh's avatar
      More work towards cross-compilation · f07af788
      Ian Lynagh authored
      There's now a variant of the Outputable class that knows what
      platform we're targetting:
      
      class PlatformOutputable a where
          pprPlatform :: Platform -> a -> SDoc
          pprPlatformPrec :: Platform -> Rational -> a -> SDoc
      
      and various instances have had to be converted to use that class,
      and we pass Platform around accordingly.
      f07af788
  2. 14 Jul, 2011 6 commits
  3. 13 Jul, 2011 1 commit
  4. 12 Jul, 2011 15 commits
  5. 11 Jul, 2011 1 commit
  6. 08 Jul, 2011 4 commits
  7. 07 Jul, 2011 1 commit
  8. 06 Jul, 2011 3 commits
  9. 05 Jul, 2011 3 commits
    • batterseapower's avatar
      Don't export SRT labels · 2aa40627
      batterseapower authored
      2aa40627
    • batterseapower's avatar
    • batterseapower's avatar
      Refactoring: use a structured CmmStatics type rather than [CmmStatic] · 54843b5b
      batterseapower authored
      I observed that the [CmmStatics] within CmmData uses the list in a very stylised way.
      The first item in the list is almost invariably a CmmDataLabel. Many parts of the
      compiler pattern match on this list and fail if this is not true.
      
      This patch makes the invariant explicit by introducing a structured type CmmStatics
      that holds the label and the list of remaining [CmmStatic].
      
      There is one wrinkle: the x86 backend sometimes wants to output an alignment directive just
      before the label. However, this can be easily fixed up by parameterising the native codegen
      over the type of CmmStatics (though the GenCmmTop parameterisation) and using a pair
      (Alignment, CmmStatics) there instead.
      
      As a result, I think we will be able to remove CmmAlign and CmmDataLabel from the CmmStatic
      data type, thus nuking a lot of code and failing pattern matches. This change will come as part
      of my next patch.
      54843b5b
  10. 03 Jul, 2011 5 commits
    • Ian Lynagh's avatar
      Remove -fmethod-sharing · 2c9df426
      Ian Lynagh authored
      It was already deprecated, and marked for removal in 7.2.
      2c9df426
    • Ian Lynagh's avatar
      Remove the Opt_Generics constructor · b8f32576
      Ian Lynagh authored
      We no longer advertise that we support the Generics extension,
      although we still do accept -XGenerics and -XNoGenerics flags
      (but warn that we are ignoring them).
      
      I also remove the even older -fgenerics and -fno-generics flags.
      b8f32576
    • Ian Lynagh's avatar
      -optm is now deprecated · dfc32cd8
      Ian Lynagh authored
      dfc32cd8
    • Ian Lynagh's avatar
      defaultErrorHandler now only takes LogAction · e01fffc6
      Ian Lynagh authored
      It used to take a whole DynFlags, but that meant we had to
      create a DynFlags with (panic "No settings") for settings, as
      we didn't have any real settings.
      
      Now we just pass the LogAction, which is all that it actually needed.
      The default is exported from DynFlags as defaultLogAction.
      e01fffc6
    • Ian Lynagh's avatar
      Fix a copy-and-paste-o · 06922106
      Ian Lynagh authored
      06922106