Repository : ssh://darcs.haskell.org//srv/darcs/ghc

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/e3619c9439ce1d79719285c6c1006a5ac1ff0b14

>---------------------------------------------------------------

commit e3619c9439ce1d79719285c6c1006a5ac1ff0b14
Author: David Terei <[email protected]>
Date:   Fri Nov 18 19:47:24 2011 -0800

    Remove some old comments about the mangler

>---------------------------------------------------------------

 compiler/nativeGen/PIC.hs         |    5 -----
 includes/rts/storage/InfoTables.h |    5 -----
 rts/StgMiscClosures.cmm           |    2 --
 3 files changed, 0 insertions(+), 12 deletions(-)

diff --git a/compiler/nativeGen/PIC.hs b/compiler/nativeGen/PIC.hs
index aca320e..e81ebfb 100644
--- a/compiler/nativeGen/PIC.hs
+++ b/compiler/nativeGen/PIC.hs
@@ -31,11 +31,6 @@
       the PIC base register when needed.
     - MachCodeGen calls cmmMakeDynamicReference whenever it uses a CLabel
       that wasn't in the original Cmm code (e.g. floating point literals).
-  + The Mangler
-    - The mangler converts absolure refs to relative refs in info tables
-    - Symbol pointers, stub code and PIC calculations that are generated
-      by GCC are left intact by the mangler (so far only on ppc-darwin
-      and ppc-linux).
 -}
 
 {-# OPTIONS -fno-warn-tabs #-}
diff --git a/includes/rts/storage/InfoTables.h 
b/includes/rts/storage/InfoTables.h
index 4b0c40b..b34b255 100644
--- a/includes/rts/storage/InfoTables.h
+++ b/includes/rts/storage/InfoTables.h
@@ -23,11 +23,6 @@
    have values in the lower 2Gb of the address space, so offsets all
    fit in 32 bits.  Hence we can use 32-bit offset fields.
 
-   When going via-C, the mangler arranges that we only generate
-   relative relocations between symbols in the same segment (the text
-   segment).  The NCG, however, puts things in the right sections and
-   uses 32-bit relative offsets instead.
-
    Somewhere between binutils-2.16.1 and binutils-2.16.91.0.6,
    support for 64-bit PC-relative relocations was added, so maybe this
    hackery can go away sometime.
diff --git a/rts/StgMiscClosures.cmm b/rts/StgMiscClosures.cmm
index 26f24f6..70c77e5 100644
--- a/rts/StgMiscClosures.cmm
+++ b/rts/StgMiscClosures.cmm
@@ -601,8 +601,6 @@ 
INFO_TABLE_CONSTR(stg_MVAR_TSO_QUEUE,2,0,0,PRIM,"MVAR_TSO_QUEUE","MVAR_TSO_QUEUE
  * on the fact that static closures live in the data section.
  */
 
-/* end the name with _closure, to convince the mangler this is a closure */
-
 #if !(defined(__PIC__) && defined(mingw32_HOST_OS))
 section "data" {
  stg_CHARLIKE_closure:



_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc

Reply via email to