From: Andrew Cagney <ac131313@cygnus.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch] BIG_ENDIAN -> BFD_ENDIAN_BIG
Date: Sun, 16 Dec 2001 17:30:00 -0000 [thread overview]
Message-ID: <3C1D4AB9.5000700@cygnus.com> (raw)
In-Reply-To: <3C1B93A6.3020902@cygnus.com>
Just FYI,
> Hello,
>
> I'm curious. Why/how did BFD_ENDIAN_BIG come to be first in the enum:
>
> enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN };
>
> This has the (intended?) effect of memset(0) setting a value to BFD_ENDIAN_BIG where as code using the common host dependant BIG_ENDIAN / LITTLE_ENDIAN would have treated such a value as undefined.
>
> GDB, which is trying to eliminate its dependance on those host dependant macros is suffering minor heart burn as a result of the difference - it has been assuming that ZERO indicated an uninitialized (roughly BFD_ENDIAN_UNKNOWN) value.
>
> Andrew
>
prev parent reply other threads:[~2001-12-17 1:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-15 10:17 Andrew Cagney
2001-12-16 17:30 ` Andrew Cagney [this message]
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=3C1D4AB9.5000700@cygnus.com \
--to=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
/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