From owner-freebsd-hackers Mon Jul 3 02:46:17 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id CAA27333 for hackers-outgoing; Mon, 3 Jul 1995 02:46:17 -0700 Received: from dns.netvision.net.il (root@dns.NetVision.net.il [194.90.1.5]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id CAA27319 for ; Mon, 3 Jul 1995 02:46:02 -0700 Received: from Burka.NetVision.net.il (root@burka.NetVision.net.il [194.90.6.15]) by dns.netvision.net.il (8.6.12/8.6.9) with ESMTP id MAA27640 for ; Mon, 3 Jul 1995 12:46:05 +0300 Received: from gena@NetVision.net.il (burka.NetVision.net.il [194.90.6.15]) by Burka.NetVision.net.il (8.6.11/8.6.6) with SMTP id MAA24993 for hackers@FreeBSD.org; Mon, 3 Jul 1995 12:59:17 +0300 Date: Mon, 3 Jul 1995 12:59:17 +0300 Message-ID: X-Face: #v>4HN>#D_"[olq9y`HqTYkLVB89Xy|3')Vs9v58JQ*u-xEJVKY`xa.}E?z0RkLI/P&;BJmi0#u=W0).-Y'J4(dw{"54NhSG|YYZG@[)(`e! >jN#L!~qI5fE-JHS+< Organization: NetVision ltd. X-Mailer: XFMail 0.2-Beta on FreeBSD From: Gennady Sorokopud To: Subject: gcc-2.6.3 with bounds checking Sender: hackers-owner@FreeBSD.org Precedence: bulk Hello! In the last 2 days i experimented with bounds-checking gcc. I find that it's very usefull debugging tool but it also has it's drawbacks: 1) it's too strict :-( For example it reports "reference to undefined pointer" when you try something like: if (!ptr) ... and ptr was not initialized before (i know, it's a bad style, but not an error) 2) if it finds an error it aborts the program, and this really bothers if error is in some system library :-) (I modified libcheck.a to "recover" after such situation but it's still unstable) If you want to try it, you can ftp it from: ftp://Burka.NetVision.net.il/pub/bounds/cc_bounds.tar.gz It's modified gcc source tree for FreeBSD (it contains everything except sources for cc1plus since it shoul not be modifed) Original distribution is located in the same dir.... Best regards. -------- Gennady B. Sorokopud - System programmer at NetVision Israel. E-Mail: gena@NetVision.net.il Homepage: http://www.netvision.net.il/~gena This message was sent at 07/03/95 12:52:11 by XF-Mail