From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1983 invoked by alias); 25 Mar 2008 21:31:39 -0000 Received: (qmail 1969 invoked by uid 22791); 25 Mar 2008 21:31:38 -0000 X-Spam-Check-By: sourceware.org Received: from cantor.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Mar 2008 21:31:11 +0000 Received: from Relay2.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 6B82338853; Tue, 25 Mar 2008 22:31:08 +0100 (CET) From: Andreas Schwab To: "Ulrich Weigand" Cc: cseo@linux.vnet.ibm.com (Carlos Eduardo Seo), gdb-patches@sourceware.org (GDB Patches Mailing List) Subject: Re: [RFC] Add support for PPC Altivec registers in gcore References: <200803252012.m2PKCm6i002176@d12av02.megacenter.de.ibm.com> X-Yow: Am I SHOPLIFTING? Date: Tue, 25 Mar 2008 21:31:00 -0000 In-Reply-To: <200803252012.m2PKCm6i002176@d12av02.megacenter.de.ibm.com> (Ulrich Weigand's message of "Tue\, 25 Mar 2008 21\:12\:48 +0100 \(CET\)") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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-03/txt/msg00388.txt.bz2 "Ulrich Weigand" writes: > What exactly seems to be the problem? The following > code should be valid C, and compiles fine with GCC: Your GCC is buggy. > struct core_regset_section; > extern struct core_regset_section default_regset_sections[]; The C standard does not allow this. An array declaration requires a complete element type. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."