From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19836 invoked by alias); 16 Apr 2010 08:49:27 -0000 Received: (qmail 19823 invoked by uid 22791); 16 Apr 2010 08:49:26 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Apr 2010 08:49:14 +0000 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3G8nBIo003743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 16 Apr 2010 04:49:11 -0400 Received: from hase.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx05.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3G8n8Ic032519; Fri, 16 Apr 2010 04:49:10 -0400 From: Andreas Schwab To: "Pierre Muller" Cc: Subject: Re: Multi-gdb build failure References: <27531.5651590519$1271404881@news.gmane.org> X-Yow: Yow! Are we laid back yet? Date: Fri, 16 Apr 2010 08:49:00 -0000 In-Reply-To: <27531.5651590519$1271404881@news.gmane.org> (Pierre Muller's message of "Fri, 16 Apr 2010 10:01:15 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00049.txt.bz2 "Pierre Muller" writes: > ../../src/bfd/vms-alpha.c: In function `alpha_vms_link_add_object_symbols': > ../../src/bfd/vms-alpha.c:7997: warning: dereferencing type-punned pointer > will > break strict-aliasing rules > make[3]: *** [vms-alpha.lo] Error 1 > > Is there a fix to this? --- vms-alpha.c.~1.1.~ 2010-04-14 11:24:59.000000000 +0200 +++ vms-alpha.c 2010-04-16 10:46:19.000000000 +0200 @@ -7975,6 +7975,7 @@ alpha_vms_link_add_object_symbols (bfd * { struct vms_symbol_entry *e = PRIV (syms)[i]; struct alpha_vms_link_hash_entry *h; + struct bfd_link_hash_entry *h_root; asymbol sym; if (!alpha_vms_convert_symbol (abfd, e, &sym)) @@ -7992,10 +7993,12 @@ alpha_vms_link_add_object_symbols (bfd * else h = NULL; + h_root = (struct bfd_link_hash_entry *) h; if (_bfd_generic_link_add_one_symbol (info, abfd, sym.name, sym.flags, sym.section, sym.value, - NULL, FALSE, FALSE, (struct bfd_link_hash_entry **)&h) == FALSE) + NULL, FALSE, FALSE, &h_root) == FALSE) return FALSE; + h = (struct alpha_vms_link_hash_entry *) h_root; if ((e->flags & EGSY__V_DEF) && h->sym == NULL Andreas. -- Andreas Schwab, schwab@redhat.com GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E "And now for something completely different."