From owner-freebsd-arm@FreeBSD.ORG Tue Sep 9 13:51:55 2014 Return-Path: Delivered-To: freebsd-arm@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 ESMTPS id 5DBCDCED for ; Tue, 9 Sep 2014 13:51:55 +0000 (UTC) Received: from mho-02-ewr.mailhop.org (mho-02-ewr.mailhop.org [204.13.248.72]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 312F2DB4 for ; Tue, 9 Sep 2014 13:51:55 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-02-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XRLpp-000EOZ-Fi; Tue, 09 Sep 2014 13:51:53 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id s89Dpq0H024067; Tue, 9 Sep 2014 07:51:52 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/T1ATAscuRhhR1JIWK3jZF X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: compile error in atomic.h when compiling c++ From: Ian Lepore To: Bernd Walter In-Reply-To: <20140909040224.GA26202@cicely7.cicely.de> References: <20140909040224.GA26202@cicely7.cicely.de> Content-Type: text/plain; charset="us-ascii" Date: Tue, 09 Sep 2014 07:51:51 -0600 Message-ID: <1410270711.1150.409.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2014 13:51:55 -0000 On Tue, 2014-09-09 at 06:02 +0200, Bernd Walter wrote: > System is r271289M with clang. > > [114]wandboard# cat test.cc > #include > #include > > int > main(int argc, char *argv[]) > { > return 0; > } > > [115]wandboard# c++ -Wall test.cc > In file included from test.cc:2: > /usr/include/machine/atomic.h:286:8: error: expected identifier > [new] "r" (newval) > ^ > /usr/include/machine/atomic.h:286:11: error: expected expression > [new] "r" (newval) > ^ > 2 errors generated. > Exit 1 > > I assume it has problems with "new" used here, which is a special > keyword in C++. > My bad, fixed in r271310. Jeez, I used to be able to call myself "mostly a C++ programmer" and would automatically not make such a mistake. For the past couple years it seems all I've written is C. -- Ian