Tracker: Bugs

5 Error with gcc-4 - ID: 1273834
Last Update: Comment added ( asierllano )

I've been working with u-boot 1.1.3 and binutils gcc-3.4.4
(and also previous versions of both) and it works
perfectly.
I've not managed to make it working with gcc-4.0.0 nor
gcc-4.0.1.

I'm working with a lite5200 (also called icecube). It
has an mpc5200 (powerpc).

Initialially I had some compilation errors that I've
managed to solved.

I've developed several patches to solve the compilation
errors for gcc-4. They are all related to deprecated
gcc extensions for C (like postincrementing lvalues).
I've tested them to compile with gcc-4 and I tested
that they work properly with gcc-3.4.4 (so I am quite
sure that they work enough).

The problem is that with the patches applied it works
properly with gcc-3.4.4 and compiles properly with
gcc-4.0.0 but the image generated with gcc-3.4.4 works
properly, while the one generated with gcc-4.0.0 does
not boot at all (nothing comes out from the serial port).

I will upload the patches to improve the code of u-boot
reworking the C code to avoid using gcc extensions.

I'd like if anyone could:
- Review the patches and apply them
- Test a little more the boot process with gcc-4.0 with
the same hierarchy or any other hierarchy.


Nobody/Anonymous ( nobody ) - 2005-08-26 00:31:28 PDT

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 3 )

Date: 2005-08-26 00:48:27 PDT
Sender: asierllano

Logged In: YES
user_id=496447

I'll submit the patches to the "PATCHES" place in
sourceforge so if you want the go there and catch them.


Date: 2005-08-26 00:46:12 PDT
Sender: asierllano

Logged In: YES
user_id=496447

I want to add 2 more attachments, but I cannot add them (I
don't know why).

If anyone wants them, please drop me an e-mail and I will
add them.

Why does the form to attach files disapear after I loged in
(after attaching the first file)?


Date: 2005-08-26 00:41:00 PDT
Sender: asierllano

Logged In: YES
user_id=496447

I always forget to login:
I'm the submitter 'asier llano'


Attached File ( 1 )

Filename Description Download
gcc-4.0-1.patch Avoid lvalues postincrements in lib_ppc/board.c Download

Change ( 1 )

Field Old Value Date By
File Added 147042: gcc-4.0-1.patch 2005-08-26 00:31:42 PDT nobody