[Git][ghc/ghc][master] rts: fix missing function prototypes in ClosureMacros.h

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Thu May 30 06:57:38 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
3ca72ad9 by Cheng Shao at 2024-05-30T02:57:06-04:00
rts: fix missing function prototypes in ClosureMacros.h

- - - - -


1 changed file:

- rts/include/rts/storage/ClosureMacros.h


Changes:

=====================================
rts/include/rts/storage/ClosureMacros.h
=====================================
@@ -145,6 +145,18 @@ EXTERN_INLINE StgHalfWord GET_TAG(const StgClosure *con)
    -------------------------------------------------------------------------- */
 
 #if defined(PROFILING)
+
+/*
+  These prototypes are in RtsFlags.h. We can't include RtsFlags.h here
+  because that's a private header, but we do need these prototypes to
+  be duplicated here, otherwise there will be some
+  -Wimplicit-function-declaration compilation errors. Especially when
+  GHC compiles out-of-tree cbits that rely on SET_HDR in RTS API.
+*/
+bool doingLDVProfiling(void);
+bool doingRetainerProfiling(void);
+bool doingErasProfiling(void);
+
 /*
   The following macro works for both retainer profiling and LDV profiling. For
  retainer profiling, we set 'trav' to 0, which is an invalid



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3ca72ad974169aa39f391774875a9cc2a77ee967

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/3ca72ad974169aa39f391774875a9cc2a77ee967
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240530/5f4036c2/attachment-0001.html>


More information about the ghc-commits mailing list