Messages in this thread | | | From | Duncan Sands <> | Subject | Re: BUGed to death | Date | Tue, 15 Apr 2003 13:57:32 +0200 |
| |
> Right, BUG_ON was added later (possibly for the purpose of > marking unlikely branches). I see your point now about gcc > not recognising branches which are going to be unlikely, but > whether or not it should is questionable IMO.
It is questionable. Since even in core kernel code there are many places with if (cond) BUG(); rather than BUG_ON(cond); it may be worth seeing if converting them makes a difference (increases code size though).
Ciao,
Duncan. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |