From owner-freebsd-questions@FreeBSD.ORG Wed Oct 30 16:21:22 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id F086F818 for ; Wed, 30 Oct 2013 16:21:22 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B19AB2E88 for ; Wed, 30 Oct 2013 16:21:22 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 11697E6E3B; Wed, 30 Oct 2013 16:21:21 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cran.org.uk; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=mail; bh=fZxNYNOxhtJL n5X6iJKzHp1Ayys=; b=PrN5VcaUJrK4liaLalejoZi69kJzKVf+MMg6/UHA9Js4 /wNplMtLC0xa7871MZNlrcOz/nYJumqSTsbe9eNSqG6qrSTj82C9eP8ZTqyul6xc 8U1V1p3MkJ9N1UX554WuKfQVuEn683LyE+TkUxwNiL35sbabSs+RH19ooqzbvl8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=cran.org.uk; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; q=dns; s=mail; b=VtBvEd Mmv5P65df39ThR41JzQH37m4tIt2E6HUxZ6RDBQ4fUV22gY1hjCAOzJ4lPlYZv+i MRrEMbGsruVgl88sD5UNVUNAtHGm0eClQUd7ggSN6Bqgks8kNH6nf2v430GErIft kmR9d8sPTZk/WfBc+ZvIJENi6pd7pBnyjEzUY= Received: from [192.168.2.50] (unknown [93.89.81.205]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id D9F7AE6E36; Wed, 30 Oct 2013 16:21:20 +0000 (GMT) Message-ID: <52713200.3000005@cran.org.uk> Date: Wed, 30 Oct 2013 16:21:20 +0000 From: Bruce Cran User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Tijl Coosemans Subject: Re: Code segfaults with clang -O1, works with gcc49 and clang -O2 References: <5270D99C.6070901@cran.org.uk> <20131030143301.623be910@kalimero.tijl.coosemans.org> In-Reply-To: <20131030143301.623be910@kalimero.tijl.coosemans.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 16:21:23 -0000 On 10/30/2013 1:33 PM, Tijl Coosemans wrote: > Should be: "=c" (*ecx) > > But you can also use the '+' modifier and remove the input operands: > > : "+a" (*eax), "=b" (*ebx), "+c" (*ecx), "=d" (*edx) > : > : "memory" That fixed it - thanks! -- Bruce Cran