GCC 4.0.2 m68k - invalid lvalue

Joel Sherrill <joel@OARcorp.com> joel.sherrill@OARcorp.com
Sat Oct 29 21:19:00 GMT 2005


Lennert Buytenhek wrote:
> On Sat, Oct 29, 2005 at 12:59:14PM -0400, Brian Rose wrote:
> 
> 
>>How should I resolve this problem? What is the problem?
>>
>>[snip]
>>
>>    (rtems_event_set) the_thread->Wait.count = 0;
> 
> 
> gcc doesn't like this.  Write this instead:
> 
> 	the_thread->Wait.count = (rtems_event_set) 0;

I think it looks like Brian is using RTEMS 4.6 which is not clean 
against gcc 4.0.x.  gcc 3.4 and 4.x are stricter and do not allow 
constructs which gcc 3.2 and 3.3 accepted.  We made a number of small 
changes to get rid of warnings and compile errors after the 4.6 branch 
was made.

--joel sherrill


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