[commit: ghc] master: Fix windows validate (b769586)

git at git.haskell.org git at git.haskell.org
Thu Nov 17 00:47:05 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/b76958671cda1df9f6f0e1d54d681144d09cb06e/ghc

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

commit b76958671cda1df9f6f0e1d54d681144d09cb06e
Author: Tamar Christina <tamar at zhox.com>
Date:   Thu Nov 17 00:45:17 2016 +0000

    Fix windows validate
    
    Summary:
    mark myindex as inline only and hide it from profilers.
    Also prevent this function from being used any other way
    than just for inlining.
    
    Test Plan: ./validate
    
    Reviewers: austin, erikd, simonmar, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: thomie, #ghc_windows_task_force
    
    Differential Revision: https://phabricator.haskell.org/D2715


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

b76958671cda1df9f6f0e1d54d681144d09cb06e
 rts/LinkerInternals.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rts/LinkerInternals.h b/rts/LinkerInternals.h
index 4806d53..befd17b 100644
--- a/rts/LinkerInternals.h
+++ b/rts/LinkerInternals.h
@@ -281,7 +281,7 @@ int machoGetMisalignment( FILE * f );
    arising from using normal C indexing or pointer arithmetic
    are just plain wrong.  Sigh.
 */
-STATIC_INLINE unsigned char *
+INLINE_HEADER unsigned char *
 myindex ( int scale, void* base, int index )
 {
     return



More information about the ghc-commits mailing list