Early extinguishment of debt produces a gain or loss based on the difference between the carrying amount of the debt and the amount paid to extinguish it. Convertible bonds are treated as debt initially but any value attributable to the equity conversion feature is recognized separately. Bonds with detachable warrants are treated as straight debt with any proceeds allocated to the warrants recognized as paid-in capital. The accounting differs because convertible bonds contain a mandatory conversion feature while warrants are detachable rights that can expire unexercised.