Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jul 2004 19:25:47 -0700
From:      David Schultz <das@FreeBSD.ORG>
To:        Dag-Erling Smorgrav <des@FreeBSD.ORG>
Cc:        cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libalias alias.c
Message-ID:  <20040707022547.GA52027@VARK.homeunix.com>
In-Reply-To: <200407060922.i669MJua014841@repoman.freebsd.org>
References:  <200407060922.i669MJua014841@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jul 06, 2004, Dag-Erling Smorgrav wrote:
>   Rewrite twowords() to access its argument through a char pointer and not
>   a short pointer.  The previous implementation seems to be in a gray zone
>   of the C standard, and GCC generates incorrect code for it at -O2 or
>   higher on some platforms.

I don't think this is even a gray zone---the C standard
specifically disallows aliasing of pointers to different types
unless one of the types is a 'char *'.



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