VirtualBox

Changeset 1971 in kBuild


Ignore:
Timestamp:
Oct 26, 2008 10:26:12 PM (16 years ago)
Author:
bird
Message:

Some CONFIG_WITH_ALLOC_CACHE build fixes.

Location:
trunk/src/kmk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/make.h

    r1933 r1971  
    146146#endif
    147147
    148 #if defined(KMK) || defined(CONFIG_WITH_VALUE_LENGTH)
     148#if defined (KMK) || defined (CONFIG_WITH_VALUE_LENGTH) \
     149 || defined (CONFIG_WITH_ALLOC_CACHES)
    149150# ifdef _MSC_VER
    150151#  define MY_INLINE     _inline static
     152# elif defined(__GNUC__)
     153#  define MY_INLINE     static __inline__
     154# else
     155#  define MY_INLINE     static
     156# endif
     157
     158# ifdef __GNUC__
     159#  define MY_PREDICT_TRUE(expr)  __builtin_expect(!!(expr), 1)
     160#  define MY_PREDICT_FALSE(expr) __builtin_expect(!!(expr), 0)
     161# else
     162#  define MY_PREDICT_TRUE(expr)  (expr)
     163#  define MY_PREDICT_FALSE(expr) (expr)
     164# endif
     165#endif
     166
     167#if defined (KMK) || defined (CONFIG_WITH_VALUE_LENGTH)
     168# ifdef _MSC_VER
    151169#  define MY_DBGBREAK   __debugbreak()
    152170# elif defined(__GNUC__)
    153 #  define MY_INLINE     static __inline__
    154171#  if defined(__i386__) || defined(__x86_64__)
    155172#   define MY_DBGBREAK  __asm__ __volatile__ ("int3")
    156 #else
     173#  else
    157174#   define MY_DBGBREAK  assert(0)
    158175#  endif
    159176# else
    160 #  define MY_INLINE     static
    161 #  define MY_DBGBREAK  assert(0)
     177#  define MY_DBGBREAK   assert(0)
    162178# endif
    163179# ifndef NDEBUG
     
    166182# else
    167183#  define MY_ASSERT_MSG(expr, printfargs)   do { } while (0)
    168 # endif
    169 
    170 # ifdef __GNUC__
    171 #  define MY_PREDICT_TRUE(expr)  __builtin_expect(!!(expr), 1)
    172 #  define MY_PREDICT_FALSE(expr) __builtin_expect(!!(expr), 0)
    173 # else
    174 #  define MY_PREDICT_TRUE(expr)  (expr)
    175 #  define MY_PREDICT_FALSE(expr) (expr)
    176184# endif
    177185#endif
  • trunk/src/kmk/misc.c

    r1935 r1971  
    2020#include "dep.h"
    2121#include "debug.h"
    22 #ifdef CONFIG_WITH_VALUE_LENGTH
     22#if defined (CONFIG_WITH_VALUE_LENGTH) || defined (CONFIG_WITH_ALLOC_CACHES)
    2323# include <assert.h>
    2424#endif
  • trunk/src/kmk/remake.c

    r1862 r1971  
    240240
    241241              /* Free the storage.  */
    242 #ifndef KMK
     242#ifndef CONFIG_WITH_ALLOC_CACHES
    243243              free (g);
    244244#else
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette