From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 52218 invoked by alias); 1 Nov 2015 02:07:14 -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 51886 invoked by uid 89); 1 Nov 2015 02:07:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mail-io0-f178.google.com Received: from mail-io0-f178.google.com (HELO mail-io0-f178.google.com) (209.85.223.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Sun, 01 Nov 2015 02:07:09 +0000 Received: by iody8 with SMTP id y8so113995474iod.1 for ; Sat, 31 Oct 2015 19:07:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=WmYranzO5OAHgpGOQjDCPFJuz1/NboOj6w4aaUo7PNs=; b=MeWn3xOgZ+9xQTx9mNnfUl4JUL1BoXq8nQ2Je63V/kivnmZ2T7kvA5Hohy8LGS0blV guO9S3FpGI3T0sdB4838x+2LrGnIf544tQByCoxfA3hlkzNKxVYlI/6MancEtOlXUUyW wNuhcBGBHHHZAmDkTnoBfDUIwR1dhS0CUlVQ5rcAhQ3mks7UgXuz0JIGQKp3Zhv/qDbe KEMGeDV11oMXliJ0A4CeEccmm81ChP1cvxpxJAksDkEb0wdD2F2sc5mNuk7e0M07bY6V DL70Qu5ujb4+zuyq4mva/NEoOQZCCFeR0LWZ+CYYc8MGCu5kCb8N2vC85LL2M9F275Dp yoTg== X-Gm-Message-State: ALoCoQlJR1XEk0Og6j+mopfhUWjBD6tnCM6a+v8fyThhLc2DmeThB5dVEOuVdAOP0jH4lO1Gn0rM X-Received: by 10.107.166.20 with SMTP id p20mr17593588ioe.32.1446343627655; Sat, 31 Oct 2015 19:07:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.159.195 with HTTP; Sat, 31 Oct 2015 19:06:27 -0700 (PDT) In-Reply-To: <1446144341-21267-1-git-send-email-palves@redhat.com> References: <1446144341-21267-1-git-send-email-palves@redhat.com> From: Doug Evans Date: Sun, 01 Nov 2015 02:07:00 -0000 Message-ID: Subject: Re: [PATCH] Type-safe wrapper for enum flags To: Pedro Alves Cc: gdb-patches Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00001.txt.bz2 On Thu, Oct 29, 2015 at 11:45 AM, Pedro Alves wrote: > This patch fixes C++ build errors like this: > > /home/pedro/gdb/mygit/cxx-convertion/src/gdb/linux-tdep.c:1126:35: error:= invalid conversion from =E2=80=98int=E2=80=99 to =E2=80=98filterflags=E2= =80=99 [-fpermissive] > | COREFILTER_HUGETLB_PRIVATE); > ^ >... > --- > gdb/btrace.h | 10 +- > gdb/c-exp.y | 5 +- > gdb/common/enum_flags.h | 211 +++++++++++++++++++++++++++++++++++= ++++++ > gdb/compile/compile-c-types.c | 2 +- > gdb/compile/compile-internal.h | 4 + > gdb/completer.c | 5 +- > gdb/disasm.c | 4 +- > gdb/infrun.c | 14 +-- > gdb/linux-tdep.c | 19 ++-- > gdb/record-btrace.c | 22 +++-- > gdb/record.h | 2 + > gdb/source.c | 7 +- > gdb/symtab.h | 6 +- Nit. Introducing a foo_bar file when every other file in the patch uses foo-bar is a bit odd. enum-flags.h?