@@ -145,7 +145,7 @@ GibSym gib_read_gensym_counter(void)
145145#ifdef _GIBBON_POINTER
146146
147147#ifdef _GIBBON_BUMPALLOC_HEAP
148- #warning "Using bump allocator."
148+ #pragma message "Using bump allocator."
149149
150150static __thread char * gib_global_ptr_bumpalloc_heap_ptr = (char * ) NULL ;
151151static __thread char * gib_global_ptr_bumpalloc_heap_ptr_end = (char * ) NULL ;
@@ -706,7 +706,7 @@ double gib_sum_timing_array(GibVector *times)
706706
707707#ifdef _GIBBON_BUMPALLOC_LISTS
708708// #define _GIBBON_DEBUG
709- #warning "Using bump allocator."
709+ #pragma message "Using bump allocator."
710710
711711static __thread char * gib_global_list_bumpalloc_heap_ptr = (char * ) NULL ;
712712static __thread char * gib_global_list_bumpalloc_heap_ptr_end = (char * ) NULL ;
@@ -1036,26 +1036,26 @@ void gib_print_gc_config(void) {
10361036 printf ("C config\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n" );
10371037
10381038#if defined _GIBBON_GENGC && _GIBBON_GENGC == 0
1039- #warning "Generational GC is disabled."
1039+ #pragma message "Generational GC is disabled."
10401040 printf ("Generational GC is disabled.\n" );
10411041#else
1042- #warning "Generational GC is enabled."
1042+ #pragma message "Generational GC is enabled."
10431043 printf ("Generational GC is enabled.\n" );
10441044#endif
10451045
10461046#if defined _GIBBON_EAGER_PROMOTION && _GIBBON_EAGER_PROMOTION == 0
1047- #warning "Eager promotion is disabled."
1047+ #pragma message "Eager promotion is disabled."
10481048 printf ("Eager promotion is disabled.\n" );
10491049#else
1050- #warning "Eager promotion is enabled."
1050+ #pragma message "Eager promotion is enabled."
10511051 printf ("Eager promotion is enabled.\n" );
10521052#endif
10531053
10541054#if defined _GIBBON_SIMPLE_WRITE_BARRIER && _GIBBON_SIMPLE_WRITE_BARRIER == 0
1055- #warning "Simple write barrier is disabled."
1055+ #pragma message "Simple write barrier is disabled."
10561056 printf ("Simple write barrier is disabled.\n" );
10571057#else
1058- #warning "Simple write barrier is enabled."
1058+ #pragma message "Simple write barrier is enabled."
10591059 printf ("Simple write barrier is enabled.\n" );
10601060#endif
10611061
@@ -1316,8 +1316,8 @@ void gib_print_global_region_count(void)
13161316 */
13171317
13181318// Initialize nurseries, shadow stacks and generations.
1319- static void gib_storage_initialize (void );
1320- static void gib_storage_free (void );
1319+ UNUSED_IN_POINTER_BAK static void gib_storage_initialize (void );
1320+ UNUSED_IN_POINTER_BAK static void gib_storage_free (void );
13211321static void gib_nursery_initialize (GibNursery * nursery , size_t nsize );
13221322static void gib_nursery_free (GibNursery * nursery );
13231323static void gib_oldgen_initialize (GibOldgen * oldgen );
@@ -1328,7 +1328,7 @@ static void gib_gc_stats_initialize(GibGcStats *stats);
13281328static void gib_gc_stats_free (GibGcStats * stats );
13291329
13301330// Initialize nurseries, shadow stacks and generations.
1331- static void gib_storage_initialize (void )
1331+ UNUSED_IN_POINTER_BAK static void gib_storage_initialize (void )
13321332{
13331333 if (gib_storage_initialized ) {
13341334 return ;
@@ -1339,7 +1339,7 @@ static void gib_storage_initialize(void)
13391339 gib_gc_stats_initialize (gib_global_gc_stats );
13401340
13411341 // Initialize nurseries.
1342- int n ;
1342+ uint64_t n ;
13431343 gib_global_nurseries = (GibNursery * ) gib_alloc (gib_global_num_threads *
13441344 sizeof (GibNursery ));
13451345 for (n = 0 ; n < gib_global_num_threads ; n ++ ) {
@@ -1351,7 +1351,7 @@ static void gib_storage_initialize(void)
13511351 gib_oldgen_initialize (gib_global_oldgen );
13521352
13531353 // Initialize shadow stacks.
1354- int ss ;
1354+ uint64_t ss ;
13551355 gib_global_read_shadowstacks =
13561356 (GibShadowstack * ) gib_alloc (gib_global_num_threads *
13571357 sizeof (GibShadowstack ));
@@ -1368,14 +1368,14 @@ static void gib_storage_initialize(void)
13681368 return ;
13691369}
13701370
1371- static void gib_storage_free (void )
1371+ UNUSED_IN_POINTER_BAK static void gib_storage_free (void )
13721372{
13731373 if (!gib_storage_initialized ) {
13741374 return ;
13751375 }
13761376
13771377 // Free nurseries.
1378- int n ;
1378+ uint64_t n ;
13791379 for (n = 0 ; n < gib_global_num_threads ; n ++ ) {
13801380 gib_nursery_free (& (gib_global_nurseries [n ]));
13811381 }
@@ -1386,7 +1386,7 @@ static void gib_storage_free(void)
13861386 gib_free (gib_global_oldgen );
13871387
13881388 // Free shadow-stacks.
1389- int ss ;
1389+ uint64_t ss ;
13901390 for (ss = 0 ; ss < gib_global_num_threads ; ss ++ ) {
13911391 gib_shadowstack_free (& (gib_global_read_shadowstacks [ss ]));
13921392 gib_shadowstack_free (& (gib_global_write_shadowstacks [ss ]));
@@ -1599,6 +1599,7 @@ static void gib_gc_stats_free(GibGcStats *stats)
15991599 gib_free (stats );
16001600}
16011601
1602+ #ifdef _GIBBON_GCSTATS
16021603static void gib_gc_stats_print (GibGcStats * stats )
16031604{
16041605 printf ("\nGC statistics\n----------------------------------------\n" );
@@ -1652,6 +1653,7 @@ static void gib_gc_stats_print(GibGcStats *stats)
16521653 printf ("Skipover env inserts:\t\t %ld\n" , stats -> skipover_env_inserts );
16531654 printf ("Root set size:\t\t\t %ld\n" , stats -> rootset_size );
16541655}
1656+ #endif // ifdef _GIBBON_GCSTATS
16551657
16561658
16571659/*
@@ -1929,7 +1931,7 @@ int gib_init(int argc, char **argv)
19291931 }
19301932#endif
19311933
1932- int got_numargs = argc ; // How many numeric arguments have we got.
1934+ // int got_numargs = argc; // How many numeric arguments have we got.
19331935
19341936 int i ;
19351937 for (i = 1 ; i < argc ; ++ i )
0 commit comments