From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8940 invoked by alias); 9 Feb 2002 20:18:56 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8853 invoked from network); 9 Feb 2002 20:18:55 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 9 Feb 2002 20:18:55 -0000 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id 9FDFB1E8F4; Sat, 9 Feb 2002 21:18:54 +0100 (MET) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f To: Joe Buck Cc: ac131313@cygnus.com (Andrew Cagney), kettenis@chello.nl, gcc@gcc.gnu.org, gdb-patches@sources.redhat.com Subject: Re: [PATCH] Fix PR gdb/290 References: <200202091936.LAA24545@atrus.synopsys.com> X-Yow: I think I'll make SCRAMBLED EGGS!! They're each in LITTLE SHELLS.. From: Andreas Schwab Date: Sat, 09 Feb 2002 12:18:00 -0000 In-Reply-To: <200202091936.LAA24545@atrus.synopsys.com> (Joe Buck's message of "Sat, 9 Feb 2002 11:36:53 -0800 (PST)") Message-ID: User-Agent: Gnus/5.090005 (Oort Gnus v0.05) Emacs/21.2.50 (ia64-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2002-02/txt/msg00286.txt.bz2 Joe Buck writes: |> For C89, I don't think it's legal though it may be reasonable to accept |> as an extension; I don't know about C99. The C99 standard is quite clear about this: 6.8.6.4[#1] A return statement with an expression shall not appear in a function whose return type is void. A return statement without an expression shall only appear in a function whose return type is void. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE GmbH, Deutschherrnstr. 15-19, D-90429 N=FCrnberg Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."