From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12986 invoked by alias); 25 Mar 2008 21:54:03 -0000 Received: (qmail 12978 invoked by uid 22791); 25 Mar 2008 21:54:03 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate1.de.ibm.com (HELO mtagate1.de.ibm.com) (195.212.29.150) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 25 Mar 2008 21:53:27 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate1.de.ibm.com (8.13.8/8.13.8) with ESMTP id m2PLrOw5051830 for ; Tue, 25 Mar 2008 21:53:24 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m2PLrO7w2195614 for ; Tue, 25 Mar 2008 22:53:24 +0100 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m2PLrNIZ028153 for ; Tue, 25 Mar 2008 22:53:23 +0100 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id m2PLrN8e028150; Tue, 25 Mar 2008 22:53:23 +0100 Message-Id: <200803252153.m2PLrN8e028150@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Tue, 25 Mar 2008 22:53:23 +0100 Subject: Re: [RFC] Add support for PPC Altivec registers in gcore To: schwab@suse.de (Andreas Schwab) Date: Tue, 25 Mar 2008 21:54:00 -0000 From: "Ulrich Weigand" Cc: cseo@linux.vnet.ibm.com (Carlos Eduardo Seo), gdb-patches@sourceware.org (GDB Patches Mailing List) In-Reply-To: from "Andreas Schwab" at Mar 25, 2008 10:31:05 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00389.txt.bz2 Andreas Schwab wrote: > "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. Interesting. GCC 3.4.6 accepts it; GCC 4.1.1 does indeed reject it with: error: array type has incomplete element type > > 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. It looks like I was indeed misremembering this. I thought an extern declaration should be OK, as long as the declared identifier is only ever used in contexts where it decays to a pointer ... Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com