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]

Re: GCC 4.0.2 m68k - invalid lvalue


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


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