* Re: c/8131: Union of struct of union of struct bit field
[not found] <20021003105049.844.qmail@sources.redhat.com>
@ 2002-10-03 6:17 ` Philippe Trottier
2002-10-03 12:59 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: Philippe Trottier @ 2002-10-03 6:17 UTC (permalink / raw)
To: gcc; +Cc: nathan
Hello,
I filed this bug, but seems the definition says it is not a bug.
Anyone here could tell me How to handle a case where 1 bit can decide
the format of a 32 bit word ?
Bit 0 type of data
If bit 0 = 0
Bit 1-15 Real
Bit 16 Timing mark
Bit 17-31 Imaginary
If bit 0 = 1
Bit 1-5 Real
Bit 16-31 Raw data
Thank you
Philippe
On Thursday, October 3, 2002, at 01:50 PM, nathan@gcc.gnu.org wrote:
> Synopsis: Union of struct of union of struct bit field
>
> State-Changed-From-To: open->closed
> State-Changed-By: nathan
> State-Changed-When: Thu Oct 3 03:50:48 2002
> State-Changed-Why:
> not a bug. This is how things are defined
>
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-
> trail&database=gcc&pr=8131
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c/8131: Union of struct of union of struct bit field
2002-10-03 6:17 ` c/8131: Union of struct of union of struct bit field Philippe Trottier
@ 2002-10-03 12:59 ` Richard Henderson
0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2002-10-03 12:59 UTC (permalink / raw)
To: Philippe Trottier; +Cc: gcc, nathan
On Thu, Oct 03, 2002 at 02:07:49PM +0300, Philippe Trottier wrote:
> I filed this bug, but seems the definition says it is not a bug.
> Anyone here could tell me How to handle a case where 1 bit can decide
> the format of a 32 bit word ?
Push the one bit down into each structure. If it's at
the same place in each structure, then it doesn't matter
which one you access to examine it.
r~
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-03 19:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20021003105049.844.qmail@sources.redhat.com>
2002-10-03 6:17 ` c/8131: Union of struct of union of struct bit field Philippe Trottier
2002-10-03 12:59 ` Richard Henderson
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 read-only IMAP folder(s) and NNTP newsgroup(s).