This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

GCC 4.0.2 m68k - invalid lvalue



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;
}


--


Brian

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


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