From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14479 invoked by alias); 23 Nov 2016 22:18:41 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 14323 invoked by uid 89); 23 Nov 2016 22:18:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_05,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=baldwin, Baldwin, HX-PHP-Originating-Script:rcube.php, assigning X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Nov 2016 22:18:30 +0000 Received: by simark.ca (Postfix, from userid 33) id D0CB01E141; Wed, 23 Nov 2016 17:18:28 -0500 (EST) To: John Baldwin Subject: Re: [PATCH 0/3] Fix various C++ related clang warnings X-PHP-Originating-Script: 33:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 23 Nov 2016 22:18:00 -0000 From: Simon Marchi Cc: gdb-patches@sourceware.org In-Reply-To: <20161123200652.89209-1-jhb@FreeBSD.org> References: <20161123200652.89209-1-jhb@FreeBSD.org> Message-ID: <30005d3699beb3adc0f38d0499611e4d@polymtl.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.2.2 X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00724.txt.bz2 On 2016-11-23 15:06, John Baldwin wrote: > These patches fix various new C++ warnings reported by clang 3.8.0. > The last one regarding std::move is a bit surprising I think, but > there's a not-bad answer to a similar issue here: > > http://stackoverflow.com/questions/19267408/why-does-stdmove-prevent-rvo > > John Baldwin (3): > Fix mismatched struct vs class tags. > Add noexcept to custom non-throwing new operators. > Do not use std::move when assigning an anonymous object to a > unique_ptr. Hi John, When I tried to build gdb and gdbserver on Linux with clang, I got many more warnings/errors (often relevant). I assume you have many more fixups to do to actually get it building on FreeBSD with clang? Simon