[U-Boot-Users] u-boot and gcc 4.0

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

In message dht9gi$cos$1@sea.gmane.org 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...
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
participants (2)
-
Dmytro Bablinyuk
-
Wolfgang Denk