GCC 4.0.2 m68k - invalid lvalue

Brian Rose lists@brianrose.net
Sat Oct 29 16:59:00 GMT 2005

I have built gcc-4.0.2 that has m68k as the target and runs on Cygwin.

I am having trouble building RTEMS and the error I am getting is a bit 
strange. The code I attached below gives me an "invalid lvalue in 
assignment" error. I can build the code using gcc-3.4.4 (target 
i686-cygwin) with no problems.

How should I resolve this problem? What is the problem?

typedef unsigned int   unsigned32;     /* unsigned 32-bit integer */
typedef unsigned32 rtems_event_set;

typedef struct {
   unsigned32            count;           /* "generic" fields to be used */
}   Thread_Wait_information;

struct Thread_Control_struct {
   Thread_Wait_information               Wait;

typedef struct Thread_Control_struct Thread_Control;

int main( int argc, char * argv[] )
     Thread_Control * the_thread = (Thread_Control * )0x12345678;

     (rtems_event_set) the_thread->Wait.count = 0;

     return 0;



Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com

More information about the crossgcc mailing list