All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] u-boot and gcc 4.0
@ 2005-10-04  7:03 Dmytro Bablinyuk
  2005-10-04  8:17 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Dmytro Bablinyuk @ 2005-10-04  7:03 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot-Users] u-boot and gcc 4.0
  2005-10-04  7:03 [U-Boot-Users] u-boot and gcc 4.0 Dmytro Bablinyuk
@ 2005-10-04  8:17 ` Wolfgang Denk
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-10-04  8:17 UTC (permalink / raw)
  To: u-boot

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-04  8:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-04  7:03 [U-Boot-Users] u-boot and gcc 4.0 Dmytro Bablinyuk
2005-10-04  8:17 ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.