From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10865 invoked by alias); 24 Apr 2014 22:39:06 -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 10848 invoked by uid 89); 24 Apr 2014 22:39:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS 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 ESMTP; Thu, 24 Apr 2014 22:39:04 +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 s3OMd2bb014777 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 24 Apr 2014 18:39:02 -0400 Received: from psique ([10.3.113.6]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s3OMcxaM003311 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 24 Apr 2014 18:39:01 -0400 From: Sergio Durigan Junior To: Joel Brobecker Cc: GDB Patches Subject: [7.7.1] Blocker patch (GCC 4.9 compat) X-URL: http://www.redhat.com Date: Thu, 24 Apr 2014 22:39:00 -0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00518.txt.bz2 Hi Joel, I tested the GDB 7.7 branch using GCC 4.9 to build it, and found some errors. In file included from ../../gdb/defs.h:104:0, from ../../gdb/cli/cli-dump.c:22: ../../gdb/cli/cli-dump.c: In function 'dump_bfd_file': ../bfd/bfd.h:302:108: error: right-hand operand of comma expression has no effect [-Werror=unused-value] #define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE) ^ ../../gdb/cli/cli-dump.c:197:3: note: in expansion of macro 'bfd_set_section_vma' bfd_set_section_vma (obfd, osection, vaddr); ^ ../bfd/bfd.h:303:83: error: right-hand operand of comma expression has no effect [-Werror=unused-value] #define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE) ^ ../../gdb/cli/cli-dump.c:198:3: note: in expansion of macro 'bfd_set_section_alignment' bfd_set_section_alignment (obfd, osection, 0); They have been fixed by the following commit: commit 27b829ee701e29804216b3803fbaeb629be27491 Author: Nick Clifton Date: Wed Jan 29 13:46:39 2014 +0000 So I am proposing that we backport this commit to the 7.7 branch. I can do that if it is OK. WDYT? Thanks, -- Sergio