Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jun 2005 09:25:38 +0200
From:      Stefan Farfeleder <stefanf@FreeBSD.org>
To:        Marcel Moolenaar <marcel@FreeBSD.org>
Cc:        cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/ata ata-raid.c
Message-ID:  <20050611072537.GB39090@wombat.fafoe.narf.at>
In-Reply-To: <200506110321.j5B3LKi2025443@repoman.freebsd.org>
References:  <200506110321.j5B3LKi2025443@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 11, 2005 at 03:21:20AM +0000, Marcel Moolenaar wrote:

>   Avoid GCC optimizations from injecting a call to memset(?) in order
>   to initialize the buffer array in ata_raid_attach() by removing the
>   initializer. There's no memset(?) in the kernel. Instead, assign
>   '\0' to the first element. The buffer array holds strings only, so
>   this is functionally equivalent.

Maybe GCC should be taught to generate a bzero call instead?

Stefan



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