From owner-freebsd-bugs Sat Oct 21 22:48:15 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id WAA25966 for bugs-outgoing; Sat, 21 Oct 1995 22:48:15 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id WAA25961 for ; Sat, 21 Oct 1995 22:48:09 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id PAA21331; Sun, 22 Oct 1995 15:43:15 +1000 Date: Sun, 22 Oct 1995 15:43:15 +1000 From: Bruce Evans Message-Id: <199510220543.PAA21331@godzilla.zeta.org.au> To: freebsd-bugs@freebsd.org, steve2@genesis.nred.ma.us Subject: Re: off_t (long long) problem Sender: owner-bugs@freebsd.org Precedence: bulk >I was wondering if anyone had taken care of this problem since >release 2.0.5. When I run the following test program under 2.0.5 >it prints '2'. >The problem only seems to occur when the off_t is referenced through >a pointer. >Thanks, >Steve >steve2@genesis.tiac.net >----- snip snip snip ----- >#include >struct foo { > off_t o; >} x; >main() >{ > struct foo *f = &x; > f->o = 0; > f->o += 1; > printf("o = %qd\n", f->o); > exit(0); >} >----- EOF EOF EOF ---- This seems to be fixed in gcc-2.7.0. There seems to be no problem if -O is used. Bruce