From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6311 invoked by alias); 25 Jul 2006 00:41:18 -0000 Received: (qmail 6303 invoked by uid 22791); 25 Jul 2006 00:41:17 -0000 X-Spam-Check-By: sourceware.org Received: from hq.tensilica.com (HELO mailapp.tensilica.com) (65.205.227.29) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Jul 2006 00:41:13 +0000 Received: from localhost ([127.0.0.1] ident=amavis) by mailapp.tensilica.com with esmtp (Exim 4.34) id 1G5Ayy-0003tp-E8 for gdb@sourceware.org; Mon, 24 Jul 2006 17:41:08 -0700 Received: from mailapp.tensilica.com ([127.0.0.1]) by localhost (mailapp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14832-02 for ; Mon, 24 Jul 2006 17:41:08 -0700 (PDT) Received: from maxim_fc3.hq.tensilica.com ([192.168.11.68]) by mailapp.tensilica.com with esmtp (Exim 4.34) id 1G5Ayy-0003tk-4J for gdb@sourceware.org; Mon, 24 Jul 2006 17:41:08 -0700 Message-ID: <44C568A4.1040700@hq.tensilica.com> Date: Tue, 25 Jul 2006 00:58:00 -0000 From: Maxim Grigoriev User-Agent: Thunderbird 1.5 (X11/20051201) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Some GDB files won't compile with GCC 4.1, when -Werror is used Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00165.txt.bz2 Hello everyone, My codeline is synchronized with the main GDB CVS sources. Am I the only individual who's unable to compile .../gdb/p-valprint.c and .../gdb/cp-valprint.c with GCC 4.1 ? Host is i686-pc-linux-gnu. >>>>> uname -a Linux .... 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686 i686 i386 GNU/Linux >>>>> gcc --version gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3) Copyright (C) 2006 Free Software Foundation, Inc. ............... Then, an extraction from the logfile : gcc -c -g -O2 -I. -I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb -I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/config -DLOCALEDIR="\"/home/maxim/W/GDBsubmit/share/locale\"" -DHAVE_CONFIG_H -I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/../include/opcode -I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/../readline/.. -I../bfd -I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/../bfd -I/home/maxim/G/BadgerPass/GDB/CVS/src/gdb/../include -DMI_OUT=1 -DTUI=1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral -Wunused-label -Wunused-function -Wno-pointer-sign -Wuninitialized -Werror /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c cc1: warnings being treated as errors /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c: In function 'pascal_object_print_value_field': /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.alloc_failed' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.maybe_empty_object' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.use_extra_arg' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.extra_arg' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.freefun' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.chunkfun' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.alignment_mask' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.temp' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.chunk_limit' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.next_free' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.object_base' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.chunk' may be used uninitialized in this function /home/maxim/G/BadgerPass/GDB/CVS/src/gdb/p-valprint.c:756: warning: 'tmp_obstack.chunk_size' may be used uninitialized in this function make[2]: *** [p-valprint.o] Error 1 make[2]: Leaving directory `.../gdb' make[1]: *** [all-gdb] Error 2 Thanks, -- Maxim