When tgamma of a negative argument very close to 0 overflows (the result is essentially 1/x), it should produce negative infinity but wrongly produces positive infinity. Example on x86_64: tgamma (-0x1p-1074). (Discovered while working on a fix for the various known bugs about large ulps from tgamma.)
Fixed for 2.18 by: commit d8cd06db62d92f86cc8cc3c0d6a489bd207bb834 Author: Joseph Myers <joseph@codesourcery.com> Date: Wed May 8 11:58:18 2013 +0000 Improve tgamma accuracy (bugs 2546, 2560, 5159, 15426).