Skip to contentSkip to conversation

u-boot and gcc 4.0

U-Boot-Users Dmytro Bablinyuk 2 participants 2 messages Oct 4, 2005

lore
Share & tools
lore
#0 lore raw

I have noticed today that u-boot uses some techniques that were deprecated in 3.4.x and now removed in 4.0 (so I cannot just get source and compile it under 4.0)

For example in u-boot/fs/jffs2/compr_rubin.c temp = *(++((u32 *) in));
compr_rubin.c:89: error: invalid lvalue in increment
...

According to the gcc 4.0.0 changelog:
--8<--
The cast-as-lvalue, conditional-expression-as-lvalue and compound-expression-as-lvalue extensions, which were deprecated in 3.3.4 and 3.4, have been removed.
--8<--

Is there are any plans to support 4.0 compiler or shall I downgrade my compiler to 3.4.x version. I may try to fix such places but since I have another task such as get our board running I am quite afraid to introduce a new problems.

Thank you

Dimitry

#1 lore raw
Quoted 5 lines · In message <[email protected]> you wrote:

I have noticed today that u-boot uses some techniques that were deprecated in 3.4.x and now removed in 4.0 (so I cannot just get source and compile it under 4.0)

For example in u-boot/fs/jffs2/compr_rubin.c

Yes - we inherited this with the JFFS2 code...

Quoted 4 lines

Is there are any plans to support 4.0 compiler or shall I downgrade my compiler to 3.4.x version. I may try to fix such places but since I have another task such as get our board running I am quite afraid to introduce a new problems.

It would be most helpful if you submitted a patch.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Memories of you remind me of you.                   - Karl Lehenbauer