From owner-freebsd-ports@FreeBSD.ORG Sun Sep 4 10:22:38 2011 Return-Path: Delivered-To: freebsd-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D54F106566B for ; Sun, 4 Sep 2011 10:22:38 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from unimail.uni-dortmund.de (mx1.HRZ.Uni-Dortmund.DE [129.217.128.51]) by mx1.freebsd.org (Postfix) with ESMTP id DA4C28FC0A for ; Sun, 4 Sep 2011 10:22:37 +0000 (UTC) Received: from [192.168.0.3] (p4FE33D45.dip.t-dialin.net [79.227.61.69]) (authenticated bits=0) by unimail.uni-dortmund.de (8.14.5/8.14.5) with ESMTP id p84AMZui025837 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NOT); Sun, 4 Sep 2011 12:22:36 +0200 (CEST) Message-ID: <4E63516B.7000805@FreeBSD.org> Date: Sun, 04 Sep 2011 12:22:35 +0200 From: Matthias Andree Organization: FreeBSD User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.13 MIME-Version: 1.0 To: Ivan Klymenko References: <20110725155920.GA83490@freebsd.org> <4E631DBF.9000106@yandex.ru> <20110904101252.526de5ef@nonamehost.> <4E632A09.8060904@FreeBSD.org> <20110904114550.71c63078@nonamehost.> In-Reply-To: <20110904114550.71c63078@nonamehost.> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-ports@FreeBSD.org Subject: Re: [ANNOUNCE]: clang compiling ports, take 2 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2011 10:22:38 -0000 Am 04.09.2011 10:45, schrieb Ivan Klymenko: > В Sun, 04 Sep 2011 09:34:33 +0200 > Matthias Andree пишет: > >> Am 04.09.2011 09:12, schrieb Ivan Klymenko: >> >>> Maybe this will help: >>> *rdup_entry = *rdup_entry; >> >> This is just guessing and probably triggers the same warning unless >> it's volatile. >> >> Have the original author look at it. > > This is not guesswork. It is DANGEROUS guesswork. Assigning stuff to itself is pointless, so this is a code bug. The only valid exception I know is if you're writing back data to a command register in a peripheral device, which isn't the case here. Fix the bug, not the symptom!