From: David Edelsohn <dje@watson.ibm.com>
To: Takashi Oe <toe@unlserve.unl.edu>
Cc: linuxppc-dev@lists.linuxppc.org
Subject: Re: a GCC question
Date: Sun, 06 Aug 2000 00:57:43 -0400 [thread overview]
Message-ID: <200008060457.AAA28180@mal-ach.watson.ibm.com> (raw)
In-Reply-To: Message from Takashi Oe <toe@unlserve.unl.edu> of "Sat, 05 Aug 2000 23:05:14 CDT." <Pine.LNX.3.96LJ1.1b7.1000805224207.649J-100000@ofey.earthlink.net>
>>>>> Takashi Oe writes:
>> Even if the default is to do nothing, one always should provide a
>> default action or just break so that the density / coverage of the switch
>> statement cases is apparent.
Takashi> I don't know what the density is, but, if having a default action for
Takashi> nothing is always prefered, I'll fix it (or rather I'll ask Ben to fix
Takashi> it.) Is it in gcc documentation or C standard somewhere?
It's not in the documentation or in the standard. It is good, but
not a requirements. It helps document that the programmer knows what is
expected and sometimes helps the compiler generate better code by knowing
what cases need be considered.
David
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-08-06 4:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-06 2:15 a GCC question Takashi Oe
2000-08-06 2:31 ` David Edelsohn
2000-08-06 3:20 ` Takashi Oe
2000-08-06 3:34 ` David Edelsohn
2000-08-06 4:05 ` Takashi Oe
2000-08-06 4:57 ` David Edelsohn [this message]
2000-08-06 6:01 ` Takashi Oe
2000-08-06 9:45 ` Timothy A. Seufert
2000-08-06 12:34 ` Takashi Oe
2000-08-06 13:06 ` Olaf Hering
2000-08-06 13:46 ` Takashi Oe
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=200008060457.AAA28180@mal-ach.watson.ibm.com \
--to=dje@watson.ibm.com \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=toe@unlserve.unl.edu \
/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;
as well as URLs for NNTP newsgroup(s).