aboutsummaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2012-05-03 22:12:59 +0200
committerAndreas Jaeger <aj@suse.de>2012-05-03 22:12:59 +0200
commitf0c1dedf0df71b4029d9b0ce8ba19d8af2a60af5 (patch)
tree059f1ba1edcd7ed788946cb33790a17e6c751f0a /nss
parenta65ef2aefa3167e531d1df0047df804069a8c36f (diff)
downloadglibc-f0c1dedf0df71b4029d9b0ce8ba19d8af2a60af5.tar
glibc-f0c1dedf0df71b4029d9b0ce8ba19d8af2a60af5.tar.gz
glibc-f0c1dedf0df71b4029d9b0ce8ba19d8af2a60af5.tar.bz2
glibc-f0c1dedf0df71b4029d9b0ce8ba19d8af2a60af5.zip
Fix tst-obprintf - and mcheck in general
tst-obprintf failed with GCC 4.7. It turned out that this is the fault of GCC optimizing away the following from malloc/mcheck.c: /* We call malloc() once here to ensure it is initialized. */ void *p = malloc (0); free (p); gcc sees the malloc(0);free pair and removes it completely. And now malloc is not properly initialized and we screw up if both mcheck is used (via tst-obprintf) and MALLOC_CHECK_ is set (as it is in my environment).
Diffstat (limited to 'nss')
0 files changed, 0 insertions, 0 deletions