summaryrefslogtreecommitdiff
path: root/libm/s_tanh.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2011-09-15 16:59:21 +0200
committerDenys Vlasenko <dvlasenk@redhat.com>2011-09-15 16:59:21 +0200
commit82f8d0bce10403deab704871e638edc24e7933ee (patch)
tree1afb443b538e0dcdaed4908dac4872a73366f3bb /libm/s_tanh.c
parent200895dab88678b5b4e7d1dac9172be23e92eb31 (diff)
Defeat compiler optimization which assumes function addresses are never NULL
From email: A warning for people who can be hit by the same or similar issue: gcc 4.1.2 with -march=i486 here with -Os and even with -O2 or -O is "optimizing away" the check if (_stdio_term) in libc/stdlib/_atexit.c which results in a "call 0" and a segfault at exit if you do not happen to link in stdio. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'libm/s_tanh.c')
0 files changed, 0 insertions, 0 deletions