From owner-cvs-src@FreeBSD.ORG Wed Jul 7 02:26:15 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8CD916A4CE; Wed, 7 Jul 2004 02:26:15 +0000 (GMT) Received: from VARK.homeunix.com (adsl-69-107-108-110.dsl.pltn13.pacbell.net [69.107.108.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 970A943D31; Wed, 7 Jul 2004 02:26:15 +0000 (GMT) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.11/8.12.10) with ESMTP id i672Pl2g052061; Tue, 6 Jul 2004 19:25:47 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.11/8.12.10/Submit) id i672Plkw052060; Tue, 6 Jul 2004 19:25:47 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Tue, 6 Jul 2004 19:25:47 -0700 From: David Schultz To: Dag-Erling Smorgrav Message-ID: <20040707022547.GA52027@VARK.homeunix.com> Mail-Followup-To: Dag-Erling Smorgrav , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200407060922.i669MJua014841@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407060922.i669MJua014841@repoman.freebsd.org> cc: cvs-src@FreeBSD.ORG cc: src-committers@FreeBSD.ORG cc: cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/lib/libalias alias.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2004 02:26:15 -0000 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 *'.