From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41259 invoked by alias); 25 Apr 2017 08:24:49 -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 26552 invoked by uid 89); 25 Apr 2017 08:24:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:1041, HCc:D*ca, HX-Received:Tue X-HELO: mail-wr0-f195.google.com Received: from mail-wr0-f195.google.com (HELO mail-wr0-f195.google.com) (209.85.128.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Apr 2017 08:24:20 +0000 Received: by mail-wr0-f195.google.com with SMTP id 6so9903688wrb.1 for ; Tue, 25 Apr 2017 01:24:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=vjzjqeApEQMOI9adYWHCnLl7727kDzzxvc5sm+x9Uoc=; b=hdjgL7KeOegtWWkkROry9gmDknAE1Qj6eRabsU1sFNwbLXIwGs/LMpr0DL8u023diD MPFqHtq1eUgAbIofyIlEV/gmTgUskaQ1S9JbPZC2hu2pDtKE4q9EsGzZNIhMnKe97iHL F2sXXJYvLTloZbAgm4cAvmsYj26a+mpuq80woo6gat7leW8S/z3ZIf1YzPYfiaVsjKT/ Xf6p+RmNO48PRxCIe6LjZC9Kun9qZu7zYygVLe7dC7tvnnVxHURQkXSijOVivs/L8eNL tiqxB7DqWJFz2haqF0oap8qJdtAd7eOcS4yzxl+xJatVXOPGxrq5bYZz9mYMijVlYh65 JA4Q== X-Gm-Message-State: AN3rC/6itOQ8zYY6NEWKokkgzgx3bCu8gC1P6TE1icCGpulrT2gTxRSk EFRSgHe/SIDkNg== X-Received: by 10.223.176.163 with SMTP id i32mr9875737wra.32.1493108648347; Tue, 25 Apr 2017 01:24:08 -0700 (PDT) Received: from E107787-LIN ([194.214.185.158]) by smtp.gmail.com with ESMTPSA id l132sm3071928wmd.10.2017.04.25.01.24.07 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 25 Apr 2017 01:24:07 -0700 (PDT) From: Yao Qi To: Pedro Alves Cc: Simon Marchi , gdb-patches@sourceware.org Subject: Re: [PATCH 1/5] Poison non-POD memset & non-trivially-copyable memcpy/memmove References: <1492050475-9238-1-git-send-email-palves@redhat.com> <1492050475-9238-2-git-send-email-palves@redhat.com> <44b612a2b2dadc142c054a1967dc2600@polymtl.ca> Date: Tue, 25 Apr 2017 08:24:00 -0000 In-Reply-To: (Pedro Alves's message of "Tue, 25 Apr 2017 02:14:31 +0100") Message-ID: <86d1c0sxnf.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00660.txt.bz2 Pedro Alves writes: Hi Pedro, > +/* True if "T *" is relocatable. I.e., copyable with memcpy/memmove. > + I.e., T is either trivially copyable, or void. */ > +template > +struct IsRelocatable > + : gdb::Or, > + std::is_trivially_copyable> > +{}; This breaks the build with gcc 4.8, In file included from ../../binutils-gdb/gdb/common/common-defs.h:85:0, from ../../binutils-gdb/gdb/defs.h:28, from ../../binutils-gdb/gdb/gdb.c:19: ../../binutils-gdb/gdb/common/poison.h:66:6: error: =E2=80=98is_trivially_c= opyable=E2=80=99 is not a member of =E2=80=98std=E2=80=99 std::is_trivially_copyable> ^ you probably have already received the buildbot fail message https://gdb-build.sergiodj.net/builders/Ubuntu-AArch64-m64/builds/1845 is_trivially_copyable is missing on 4.9 too, https://gcc.gnu.org/onlinedocs/gcc-4.9.4/libstdc++/manual/manual/status.htm= l#status.iso.2011 and it was added in gcc 5, as far as I know. --=20 Yao (=E9=BD=90=E5=B0=A7)