[U-Boot-Users] Patch: Changes to support GCC 3.3.x

GCC 3.3.x changed handling of global variables explicitly initialised to zero. It puts them to .bss section and not .data as it was in older GCC versions. This change breaks environment redundancy feature. Attached patch fixes the problem.

Am Donnerstag, 4. März 2004 15:00 schrieb Yuli Barcohen:
GCC 3.3.x changed handling of global variables explicitly initialised to zero. It puts them to .bss section and not .data as it was in older GCC versions. This change breaks environment redundancy feature. Attached patch fixes the problem.
short comment/question: Is the result backward compatible to older pre 3.x gcc ? There are some targets (ex. Nios) with gcc 2.95 support only.
Best Regards, Stephan Linz

In message 04030416143003.12732@pcj86 you wrote:
Am Donnerstag, 4. März 2004 15:00 schrieb Yuli Barcohen:
GCC 3.3.x changed handling of global variables explicitly initialised to zero. It puts them to .bss section and not .data as it was in older GCC versions. This change breaks environment redundancy feature. Attached patch fixes the problem.
short comment/question: Is the result backward compatible to older pre 3.x gcc ? There are some targets (ex. Nios) with gcc 2.95 support only.
AFAICT it is.
Best regards,
Wolfgang Denk

Stephan Linz writes:
Stephan> Am Donnerstag, 4. März 2004 15:00 schrieb Yuli Barcohen:
Yuli> GCC 3.3.x changed handling of global variables explicitly Yuli> initialised to zero. It puts them to .bss section and not Yuli> .data as it was in older GCC versions. This change breaks Yuli> environment redundancy feature. Attached patch fixes the Yuli> problem.
Stephan> short comment/question: Is the result backward compatible Stephan> to older pre 3.x gcc ? There are some targets (ex. Nios) Stephan> with gcc 2.95 support only.
Yes, the patch just makes the code to behave the same way with any version of the compiler.

In message 16455.13925.369050.724478@gargle.gargle.HOWL you wrote:
GCC 3.3.x changed handling of global variables explicitly initialised to zero. It puts them to .bss section and not .data as it was in older GCC versions. This change breaks environment redundancy feature. Attached patch fixes the problem.
Added.
CHANGELOG entry missing!!!!
Best regards,
Wolfgang Denk
participants (3)
-
Stephan Linz
-
Wolfgang Denk
-
Yuli Barcohen