From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27230 invoked by alias); 14 Feb 2008 07:37:49 -0000 Received: (qmail 27220 invoked by uid 22791); 14 Feb 2008 07:37:48 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.235) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Feb 2008 07:37:30 +0000 Received: by wr-out-0506.google.com with SMTP id 37so482687wra.12 for ; Wed, 13 Feb 2008 23:37:28 -0800 (PST) Received: by 10.142.52.9 with SMTP id z9mr830413wfz.134.1202974646825; Wed, 13 Feb 2008 23:37:26 -0800 (PST) Received: by 10.143.125.5 with HTTP; Wed, 13 Feb 2008 23:37:26 -0800 (PST) Message-ID: Date: Thu, 14 Feb 2008 07:37:00 -0000 From: "Yakov Lerner" To: gdb-patches@sourceware.org Subject: fix compilation error under gcc 3.2.3 (warning treated as error) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes 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 X-SW-Source: 2008-02/txt/msg00226.txt.bz2 Fix "duplicate const" compilation error (warning treated as error) under gcc 3.2.3 (AS3 Linux, gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-20)). Typedef for reloc_howto_type already has const, remove unnecessary const at line 1174 bfd/elf32-i386.c *** ./bfd/elf32-i386.c Thu Feb 14 10:07:44 2008 --- ./bfd/elf32-i386.c.000 Thu Feb 14 10:07:34 2008 *************** *** 1171,1177 **** symtab_hdr, sym_hashes, from_type, rel, relend)) { ! reloc_howto_type *from, *to; from = elf_i386_rtype_to_howto (abfd, from_type); to = elf_i386_rtype_to_howto (abfd, to_type); --- 1171,1177 ---- symtab_hdr, sym_hashes, from_type, rel, relend)) { ! const reloc_howto_type *from, *to; from = elf_i386_rtype_to_howto (abfd, from_type); to = elf_i386_rtype_to_howto (abfd, to_type); [1] /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -DTRAD_CORE -I. -I.././bfd -I.././bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c -o elf32-i386.lo elf32-i386.c libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.././bfd -I. -DTRAD_CORE -I. -I.././bfd -I.././bfd/../include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c elf32-i386.c -o elf32-i386.o cc1: warnings being treated as errors elf32-i386.c: In function `elf_i386_tls_transition': elf32-i386.c:1174: warning: duplicate `const' elf32-i386.c:1174: warning: duplicate `const' make[4]: *** [elf32-i386.lo] Error 1