|
|
Log in / Subscribe / Register

Division by zero

Division by zero

Posted Jan 7, 2025 11:01 UTC (Tue) by paulj (subscriber, #341)
In reply to: Division by zero by farnz
Parent article: Preventing data races with Pony

Hmm, ouch.

GCC seems to have some useful options to help catch int-div-0 in testing, including for its analyzer and sanitizer, and also a -mcheck-zero-division - which is enabled by default for -O0 and -Og.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds