From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9870 invoked by alias); 18 Feb 2015 23:58:01 -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 9299 invoked by uid 89); 18 Feb 2015 23:58:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 18 Feb 2015 23:57:59 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1INvpGv012352 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Feb 2015 18:57:52 -0500 Received: from localhost (dhcp-10-15-16-169.yyz.redhat.com [10.15.16.169]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t1INvpVX027680 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Wed, 18 Feb 2015 18:57:51 -0500 From: Sergio Durigan Junior To: "Steve Ellcey " Cc: , Subject: Re: Build failure with probe patch References: X-URL: http://blog.sergiodj.net Date: Wed, 18 Feb 2015 23:58:00 -0000 In-Reply-To: (Steve Ellcey's message of "Wed, 18 Feb 2015 09:51:36 -0800") Message-ID: <87wq3ercw0.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00506.txt.bz2 On Wednesday, February 18 2015, Steve Ellcey wrote: > Is anyone else seeing this error when building the top-of-tree gdb: > > > cc1: warnings being treated as errors > /scratch/sellcey/gdb-bug/src/gdb/gdb/dtrace-probe.c: In function 'dtrace_get_probes': > /scratch/sellcey/gdb-bug/src/gdb/gdb/dtrace-probe.c:624: warning: dereferencing type-punned pointer will break strict-aliasing rules > make[1]: *** [dtrace-probe.o] Error 1 Thanks for your report. I don't see anything like this in any of our builders here: > I get this when building gdb on a CentOS 5 system with GCC 4.1.2 but I do not > see it when building on a Ubuntu 12.04 system with GCC 4.6.3. I am not sure > if this is due to the old GCC or if it is a legitimate error. According to: This warning has been removed from GCC. And by looking at the code referenced by it, I don't see anything wrong there. So I'd say you can ignore this (and probably update your GCC). -- Sergio GPG key ID: 0x65FC5E36 Please send encrypted e-mail if possible http://sergiodj.net/