From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] compile errors with gcc-4.5.1 on OXC and RMU boards
Date: Tue, 14 Dec 2010 12:14:10 +0100 [thread overview]
Message-ID: <20101214111410.EE020BB0BA@gemini.denx.de> (raw)
In-Reply-To: <4D0718D5.2050307@codesourcery.com>
Dear Nathan Sidwell,
In message <4D0718D5.2050307@codesourcery.com> you wrote:
>
> >> It is required by the C and C++ standards.
> >
> > Could you please provide a link? Not that I don't believe you, but
> > I'd like to understand the rationale, if there is any.
>
> C std 6.10.1 para 2
Hm... which exact part requires this behaviour? Please quote, to make
sure we're accessing the same text.
I'm asking because the "Rationale" has the following part
(see http://www.lysator.liu.se/c/rat/c8.html#3-8-1) :
... "
Processing of skipped material is defined such that an
implementation need only examine a logical line for the # and
then for a directive name. Thus, assuming that xxx is undefined,
in this example:
# ifndef xxx
# define xxx "abc"
# elif xxx > 0
/* ... */
# endif
an implementation is not required to diagnose an error for the
elif statement, even though if it were processed, a syntactic
error would be detected.
" ...
To me this looks like the situation we have here?
I understand that "is not required" still permits such behaviour,
but you say it is _required_ which is yet another thing.
Thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Either one of us, by himself, is expendable. Both of us are not.
-- Kirk, "The Devil in the Dark", stardate 3196.1
next prev parent reply other threads:[~2010-12-14 11:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-10 18:14 [U-Boot] compile errors with gcc-4.5.1 Kumar Gala
2010-12-10 18:27 ` [U-Boot] compile errors with gcc-4.5.1 on OXC and RMU boards Scott Wood
2010-12-12 21:49 ` Wolfgang Denk
2010-12-13 14:51 ` Kumar Gala
2010-12-13 16:15 ` Wolfgang Denk
2010-12-13 18:47 ` Kumar Gala
2010-12-13 19:03 ` Nathan Sidwell
2010-12-13 21:26 ` Wolfgang Denk
2010-12-14 7:12 ` Nathan Sidwell
2010-12-14 11:14 ` Wolfgang Denk [this message]
2010-12-12 21:20 ` [U-Boot] compile errors with gcc-4.5.1 Wolfgang Denk
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=20101214111410.EE020BB0BA@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/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