From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29937 invoked by alias); 12 Dec 2007 12:25:13 -0000 Received: (qmail 29924 invoked by uid 22791); 12 Dec 2007 12:25:11 -0000 X-Spam-Check-By: sourceware.org Received: from rv-out-0910.google.com (HELO rv-out-0910.google.com) (209.85.198.184) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 12 Dec 2007 12:24:58 +0000 Received: by rv-out-0910.google.com with SMTP id f5so176272rvb.56 for ; Wed, 12 Dec 2007 04:24:56 -0800 (PST) Received: by 10.140.135.20 with SMTP id i20mr283629rvd.146.1197462296146; Wed, 12 Dec 2007 04:24:56 -0800 (PST) Received: by 10.140.204.10 with HTTP; Wed, 12 Dec 2007 04:24:56 -0800 (PST) Message-ID: <32caccbc0712120424xa8b63fcu8dd7205cf08fc328@mail.gmail.com> Date: Wed, 12 Dec 2007 12:25:00 -0000 From: "yang zhenyu" To: gcc-help@gcc.gnu.org Subject: How to turn off adress 0 on AIX? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg00239.txt.bz2 Dear all: I'm looking for an option on gcc that will allow me to turn off address 0 on AIX: i.e. get a memory fault if a null pointer is accessed. I want to do some run-time detections when a null pointer is accessed. Does anybody happen to know this option? Thank you very much, Best Regards, Jason