Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Joe Buck <jbuck@synopsys.COM>
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
Date: Sat, 09 Feb 2002 12:18:00 -0000	[thread overview]
Message-ID: <jelme2pfxc.fsf@suse.de> (raw)
In-Reply-To: <200202091936.LAA24545@atrus.synopsys.com> (Joe Buck's message of "Sat, 9 Feb 2002 11:36:53 -0800 (PST)")

Joe Buck <jbuck@synopsys.COM> 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.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE GmbH, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


  parent reply	other threads:[~2002-02-09 20:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-09  9:27 kettenis
2002-02-09 11:19 ` Andrew Cagney
2002-02-09 11:37   ` Joe Buck
2002-02-09 11:51     ` Andrew Cagney
2002-02-09 12:18     ` Andreas Schwab [this message]
2002-02-09 17:39       ` Joe Buck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jelme2pfxc.fsf@suse.de \
    --to=schwab@suse.de \
    --cc=ac131313@cygnus.com \
    --cc=gcc@gcc.gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jbuck@synopsys.COM \
    --cc=kettenis@chello.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox