Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 1995 15:43:15 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        freebsd-bugs@freebsd.org, steve2@genesis.nred.ma.us
Subject:   Re: off_t (long long) problem
Message-ID:  <199510220543.PAA21331@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>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 <stdio.h>

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199510220543.PAA21331>