From owner-freebsd-alpha Wed May 24 5:55:38 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from gw.one.com.au (gw.one.com.au [203.18.85.1]) by hub.freebsd.org (Postfix) with ESMTP id 152AA37BCA7 for ; Wed, 24 May 2000 05:55:33 -0700 (PDT) (envelope-from raymond@one.com.au) Received: from one.com.au (pmo.local [10.18.85.2]) by gw.one.com.au (8.9.2/8.9.2) with SMTP id WAA39656 for freebsd-alpha@FreeBSD.ORG; Wed, 24 May 2000 22:55:16 +1000 (EST) (envelope-from raymond@one.com.au) Date: Wed, 24 May 2000 22:55:16 +1000 (EST) From: User Raymond Message-Id: <200005241255.WAA39656@gw.one.com.au> Subject: gcc on the alpha Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org To: freebsd-alpha@FreeBSD.ORG Consider the following code: systab->lockstart = (void *)((void *)systab->jobtab + (sizeof(jobtab)*jobs)); //locktab systab->locksize = locksize; // the size systab->lockhead = NULL; // no locks currently systab->lockfree = (locktab *) systab->lockstart; // free space systab->lockfree->fwd_link = NULL; // only one systab->lockfree->size = locksize; // the whole space and on the last instruction I get a Program terminated with signal 10, Bus error. If I swap it with the one following (which references the same structure), I still get the signal 10. I am currently compiling this with: -Wall -g -O0 -fvolatile -fvolatile-global -fvolatile-static What switches do I need to convince gcc version 2.95.2 to evaluate the pointer (in this case systab->lockfree) before it gets used? Ray Newman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message