Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:12.2:PowerPC
glibc
glibc-2.16-mcheck.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File glibc-2.16-mcheck.patch of Package glibc
Index: glibc-2.15/malloc/mcheck.c =================================================================== --- glibc-2.15.orig/malloc/mcheck.c +++ glibc-2.15/malloc/mcheck.c @@ -371,6 +371,12 @@ mabort (enum mcheck_status status) #endif } +#ifndef malloc_opt_barrier +#define malloc_opt_barrier(x) \ +({ __typeof (x) __x = x; __asm ("" : "+m" (__x)); __x; }) +#define malloc_force_eval(x) __asm __volatile ("" : : "m" (x)) +#endif + int mcheck (func) void (*func) (enum mcheck_status); @@ -382,6 +388,7 @@ mcheck (func) { /* We call malloc() once here to ensure it is initialized. */ void *p = malloc (0); + p = malloc_opt_barrier (p); free (p); old_free_hook = __free_hook;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor