This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: middle-end/9725: Invalid dependency determination


The following reply was made to PR middle-end/9725; it has been noted by GNATS.

From: Momchil Velikov <velco at fadata dot bg>
To: "Jan Beulich" <JBeulich at novell dot com>
Cc: <bangerth at ticam dot utexas dot edu>, <gcc-bugs at gcc dot gnu dot org>,
	<gcc-gnats at gcc dot gnu dot org>
Subject: Re: middle-end/9725: Invalid dependency determination
Date: 19 Feb 2003 23:10:36 +0200

 >>>>> "Jan" == Jan Beulich <JBeulich at novell dot com> writes:
 
     Jan> But why is the structure incompatible?
     Jan> "... an aggregate or union type that includes one of the aforementioned
     Jan> types among its
     Jan> members (including, recursively, a member of a subaggregate or
     Jan> contained union), ..."
 
 which means that you example should be coded as
 
 struct s
 {
   unsigned f1:16;
   unsigned f2:16;
 };
 
 void
 test (unsigned *pf, unsigned x, unsigned y)
 {
   union
   {
     unsigned f;
     struct s s;
   } u;
 
   u.s.f1 = x;
   u.s.f2 = y;
   
   *pf = u.f;
 }
 
 
 ~velco


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]