[Git][ghc/ghc][wip/ghc-debug] Better function signatures & Remove debugging flags

Sven Tennie gitlab at gitlab.haskell.org
Sun Jun 21 16:36:58 UTC 2020



Sven Tennie pushed to branch wip/ghc-debug at Glasgow Haskell Compiler / GHC


Commits:
1c32346f by Sven Tennie at 2020-06-21T18:36:49+02:00
Better function signatures & Remove debugging flags

- - - - -


3 changed files:

- testsuite/tests/rts/ghc-debug/all.T
- testsuite/tests/rts/ghc-debug/pause_and_unpause_thread.c
- testsuite/tests/rts/ghc-debug/pause_and_unpause_thread.h


Changes:

=====================================
testsuite/tests/rts/ghc-debug/all.T
=====================================
@@ -3,4 +3,4 @@ test('pause_and_unpause',
       ignore_stdout,
       ignore_stderr
      ],
-     multi_compile_and_run, ['pause_and_unpause', [('pause_and_unpause_thread.c','-optc=-g3 -optc=-O0 -opta=-g')], '-threaded -debug -O0 -g'])
+     multi_compile_and_run, ['pause_and_unpause', [('pause_and_unpause_thread.c','')], '-threaded'])


=====================================
testsuite/tests/rts/ghc-debug/pause_and_unpause_thread.c
=====================================
@@ -27,14 +27,14 @@ void pauseAndUnpause(void){
     pthread_detach(threadId);
 }
 
-time_t getPauseBegin() {
+time_t getPauseBegin(void) {
     return timestamps.begin;
 }
 
-time_t getPauseEnd() {
+time_t getPauseEnd(void) {
     return timestamps.end;
 }
 
-time_t getUnixTime(){
+time_t getUnixTime(void){
     return time(NULL);
 }


=====================================
testsuite/tests/rts/ghc-debug/pause_and_unpause_thread.h
=====================================
@@ -6,6 +6,6 @@ struct PauseTimestamps{
 };
 
 void pauseAndUnpause(void);
-time_t getPauseBegin();
-time_t getPauseEnd();
-time_t getUnixTime();
+time_t getPauseBegin(void);
+time_t getPauseEnd(void);
+time_t getUnixTime(void);



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1c32346f66bbf75dfda5d526d4f40ead3bbeb33d

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1c32346f66bbf75dfda5d526d4f40ead3bbeb33d
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/20200621/1b360a71/attachment-0001.html>


More information about the ghc-commits mailing list