From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57147 invoked by alias); 16 Dec 2018 16:22:38 -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 57126 invoked by uid 89); 16 Dec 2018 16:22:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=somehow, filed X-HELO: gateway30.websitewelcome.com Received: from gateway30.websitewelcome.com (HELO gateway30.websitewelcome.com) (192.185.168.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Dec 2018 16:22:34 +0000 Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway30.websitewelcome.com (Postfix) with ESMTP id AC9C9EC39 for ; Sun, 16 Dec 2018 10:22:32 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id YZBYgPR4v90onYZBYgy58M; Sun, 16 Dec 2018 10:22:32 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=dP1uSARAIc4G3ptesnRUKkzZrqOF5boQxZLkt4P6Zeg=; b=qUQkU7WMtuPn6I2vgre/AOo2pO AZcuTQGf9WhIFP73Ui+CRuB21x3M5XOIyUGlyTFLX5KlTPrIaZw38aflovndzgjgEDNt2H77oYTiY pcZ/lshszMdJC3/foTscCwjLB; Received: from 75-166-72-210.hlrn.qwest.net ([75.166.72.210]:46100 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gYZBX-000IP5-Uj; Sun, 16 Dec 2018 10:22:32 -0600 From: Tom Tromey To: Svante Signell Cc: Simon Marchi , Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH] Please define thread_info as struct thread_info (and other stuff) References: <87tvje5rvh.fsf@tromey.com> <07b12fd403ec2442d90ec3f73bb9a0b99a8899e3.camel@gmail.com> Date: Sun, 16 Dec 2018 16:22:00 -0000 In-Reply-To: <07b12fd403ec2442d90ec3f73bb9a0b99a8899e3.camel@gmail.com> (Svante Signell's message of "Sun, 16 Dec 2018 06:15:00 +0100") Message-ID: <8736qx5tmh.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2018-12/txt/msg00183.txt.bz2 >>>>> "Svante" =3D=3D Svante Signell writes: Svante> /home/srs/DEBs/gdb/gdb-8.2/gdb/regcache.h:35:46: warning: =E2=80=98= get_thread_regcache=E2=80=99 Svante> initialized and declared =E2=80=98extern=E2=80=99 Ok, I was able to reproduce this error with: int Foo; struct Foo { int a; }; extern int f(Foo x); I didn't see a definition of thread_info anywhere, but maybe somehow it comes from one of your system headers. You could compile with 'gcc -E' and search for it. clang will tell you where the conflicting definition appears; I've filed a gcc bug about this: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D88520 Tom