]> granicus.if.org Git - gc/commitdiff
Suppress GCC warning in GC_get_main_stack_base (OpenBSD)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 20 Jul 2012 09:09:18 +0000 (13:09 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 20 Jul 2012 09:09:18 +0000 (13:09 +0400)
* include/private/gcconfig.h (STACKBOTTOM): Cast USRSTACK to ptr_t if
OPENBSD (to suppress GCC warning in GC_get_main_stack_base).

include/private/gcconfig.h

index aff7874076ffd3c5c6055d1474dcb852b2af8cf0..5a1453c58f985b554d7ffca1d8e4215d26d2b1fd 100644 (file)
 #     else
 #       include <sys/param.h>
 #       include <uvm/uvm_extern.h>
-#       define STACKBOTTOM USRSTACK
+#       define STACKBOTTOM ((ptr_t) USRSTACK)
 #     endif
       extern int __data_start[];
 #     define DATASTART ((ptr_t)__data_start)
 #     else
 #       include <sys/param.h>
 #       include <uvm/uvm_extern.h>
-#       define STACKBOTTOM USRSTACK
+#       define STACKBOTTOM ((ptr_t) USRSTACK)
 #     endif
       extern int __data_start[];
 #     define DATASTART ((ptr_t)__data_start)
 #       else
 #         include <sys/param.h>
 #         include <uvm/uvm_extern.h>
-#         define STACKBOTTOM USRSTACK
+#         define STACKBOTTOM ((ptr_t) USRSTACK)
 #       endif
         extern int __data_start[];
 #       define DATASTART ((ptr_t)__data_start)
 #    else
 #      include <sys/param.h>
 #      include <uvm/uvm_extern.h>
-#      define STACKBOTTOM USRSTACK
+#      define STACKBOTTOM ((ptr_t) USRSTACK)
 #    endif
      extern int _fdata[];
 #    define DATASTART ((ptr_t)_fdata)
 #     else
 #       include <sys/param.h>
 #       include <uvm/uvm_extern.h>
-#       define STACKBOTTOM USRSTACK
+#       define STACKBOTTOM ((ptr_t) USRSTACK)
 #     endif
       extern int __data_start[];
 #     define DATASTART ((ptr_t)__data_start)
 #       else
 #         include <sys/param.h>
 #         include <uvm/uvm_extern.h>
-#         define STACKBOTTOM USRSTACK
+#         define STACKBOTTOM ((ptr_t) USRSTACK)
 #       endif
         extern int __data_start[];
 #       define DATASTART ((ptr_t)__data_start)
 #     else
 #       include <sys/param.h>
 #       include <uvm/uvm_extern.h>
-#       define STACKBOTTOM USRSTACK
+#       define STACKBOTTOM ((ptr_t) USRSTACK)
 #     endif
       extern int __data_start[];
 #     define DATASTART ((ptr_t)__data_start)
 #      else
 #        include <sys/param.h>
 #        include <uvm/uvm_extern.h>
-#        define STACKBOTTOM USRSTACK
+#        define STACKBOTTOM ((ptr_t) USRSTACK)
 #      endif
        extern int __data_start[];
 #      define DATASTART ((ptr_t)__data_start)
 #       else
 #         include <sys/param.h>
 #         include <uvm/uvm_extern.h>
-#         define STACKBOTTOM USRSTACK
+#         define STACKBOTTOM ((ptr_t) USRSTACK)
 #       endif
         extern int __data_start[];
 #       define DATASTART ((ptr_t)__data_start)