[ELDK] Compiler bug in eldk-4.2 for ppc_4xxFP-gcc

Wolfgang Denk wd at denx.de
Wed Jul 9 22:27:37 CEST 2008


Dear Steven,

in message <48750D2C.2080404 at harris.com> you wrote:
> I have found a bug in gcc as supplied in eldk-4.2 for ppc_4xxFP-gcc.  I noticed
> that the dumpe2fs program segfaulted on my sequoia board (running with nfs as
> the rootfs).  After a lot of detective work, I have produced a small program
> that illustrates the problem.

Thanks fir the report.

> I've attached the C code, a header file, the makefile, and a dump of

It would have been much better if you  had  attached  trhe  files  as
separate  attachments,  or as a tarball etc. Copy & paste from a text
message is a pain.

> the object code.  The bug is that the compiler collapses two "if" tests
> together, but in doing so, it tests a value before assigning to it.
...
> I'm reporting this on the eldk list.  If the bug should be posted
> elsewhere, please let me know.  Full source and dump follow.

I think you should send this to the GCC ML.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Sometimes, too long is too long.                          - Joe Crowe


More information about the eldk mailing list