From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21370 invoked by alias); 27 Mar 2009 11:56:21 -0000 Received: (qmail 21360 invoked by uid 22791); 27 Mar 2009 11:56:20 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 27 Mar 2009 11:56:14 +0000 Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 634BF1C0201A; Fri, 27 Mar 2009 12:56:09 +0100 (CET) Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id D9B949025B; Fri, 27 Mar 2009 12:56:11 +0100 (CET) Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.1.215]) (amavisd-new, port 10024) with ESMTP id 4AVkzr8HGEwB; Fri, 27 Mar 2009 12:56:10 +0100 (CET) Received: from igel.home (DSL01.83.171.182.64.ip-pool.NEFkom.net [83.171.182.64]) by mail.mnet-online.de (Postfix) with ESMTP; Fri, 27 Mar 2009 12:56:10 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 651C310DDDB; Fri, 27 Mar 2009 12:56:10 +0100 (CET) From: Andreas Schwab To: "Pierre Muller" Cc: "'Doug Evans'" , Subject: Re: [ob] inferior_thread: Remove "extern" in definition. References: <20090326213807.2D1771C74E3@localhost> <001001c9aeb2$e08b3140$a1a193c0$@u-strasbg.fr> X-Yow: ...A housewife is wearing a polypyrene jumpsuit!! Date: Fri, 27 Mar 2009 13:57:00 -0000 In-Reply-To: <001001c9aeb2$e08b3140$a1a193c0$@u-strasbg.fr> (Pierre Muller's message of "Fri, 27 Mar 2009 09:06:04 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-03/txt/msg00617.txt.bz2 "Pierre Muller" writes: > I am just very curious here: > why does GCC accept such non-sense? It's not nonsense, but strict C. > If it is the implementation, it can't be external at the same time... "extern" is only about linkage. In a definition if the linkage is not static then extern is implicit, but making it explicit is not an error. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."