[U-Boot-Users] New port Siemens SMN42 board
Gary Jennejohn
garyj at jennejohn.org
Mon Mar 26 22:34:31 CEST 2007
Wolfgang Denk writes:
> In message <200703261750.l2QHosEa002639 at peedub.jennejohn.org> you wrote:
> >
> > On a (ARM) related note - our customer reports that he cannot compile u-boot
> > because his tool-chain dumps its cookies on this union in include/ \
> > asm-arm/processor.h:
> >
> > union debug_insn {
> > u32 arm;
> > u16 thumb;
> > };
>
> "arm" is a perfectly legal name for a C variable.
>
> > His gcc defines arm as 1 which leads to big problems. He's unwilling to
> > move to a different tool-chain (what can one do?).
> >
> > AFAICT the union is not used anywhere in the C-sources, either directly or
> > indirectly. In fact most of this header file seems to be excess baggage
> > taken directly from the linux-tree. Any problem with renaming the arm entry
> > to e.g. _arm?
>
> I want to keep this file as close as possible to the original Linux
> header file. Even the current kernel.org tree has "u32 arm;" in
> "include/asm-arm/processor.h", so please don't change it.
>
OK, no problem for me.
---
Gary Jennejohn / garyjATjennejohnDOTorg gjATfreebsdDOTorg garyjATdenxDOTde
=====================================================================
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk
Office: Kirchenstr. 5, D-82194 Groebenzell, Germany
=====================================================================
More information about the U-Boot
mailing list