Fix: c99: use __asm__ __volatile__
[lttng-ust.git] / src / lib / lttng-ust-libc-wrapper / lttng-ust-malloc.c
index e3513db47b2cf1b585e7f6313e26528696cc0269..479040d2097df9e8e064992174cecd7bd94e9694 100644 (file)
@@ -355,7 +355,7 @@ void *realloc(void *ptr, size_t size)
                        memcpy(retval, ptr, *old_size);
                }
                /*
-                * Mimick that a NULL pointer has been received, so
+                * Mimic that a NULL pointer has been received, so
                 * memory allocation analysis based on the trace don't
                 * get confused by the address from the static
                 * allocator.
@@ -426,9 +426,9 @@ int posix_memalign(void **memptr, size_t alignment, size_t size)
 }
 
 static
-void lttng_ust_fixup_malloc_nesting_tls(void)
+void lttng_ust_malloc_nesting_alloc_tls(void)
 {
-       asm volatile ("" : : "m" (URCU_TLS(malloc_nesting)));
+       __asm__ __volatile__ ("" : : "m" (URCU_TLS(malloc_nesting)));
 }
 
 void lttng_ust_libc_wrapper_malloc_ctor(void)
@@ -437,7 +437,7 @@ void lttng_ust_libc_wrapper_malloc_ctor(void)
        if (cur_alloc.calloc) {
                return;
        }
-       lttng_ust_fixup_malloc_nesting_tls();
+       lttng_ust_malloc_nesting_alloc_tls();
        /*
         * Ensure the allocator is in place before the process becomes
         * multithreaded.
This page took 0.027889 seconds and 4 git commands to generate.