From: David McCullough <davidm@snapgear.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: Re: [uClinux-dev] uboot compilation error when using the toolchain arm-elf-tools from uClinux.org
Date: Tue, 10 Aug 2004 13:22:17 +1000 [thread overview]
Message-ID: <20040810032217.GA31588@beast> (raw)
In-Reply-To: <c3d0340b040809184118fe47cf@mail.gmail.com>
Jivin Shawn Jin lays it down ...
> Dear David,
>
> > > The code is extracted from the header file processor.h.
> > >
> > > 51> union debug_insn {
> > > 52> u32 arm;
> > > 53> u16 thumb;
> > > 54> };
> > > 55>
> > > 56> struct debug_entry {
> > > 57> u32 address;
> > > 58> union debug_insn insn;
> > > 59> };
> > >
> > > However I really don't think there is any syntax error. It might be a
> > > toolchain problem?
> >
> > I think, at least for that version of the toolchain, it implicitly
> > defines "arm", and I suspect it defines it to be "1", thus the errors
> > you are seeing. You may be able to add a -Uarm to eth build line,
>
> It did solve the problem. Thank you!
>
> Would you please explain a little bit more why the toolchain
> implicitly defines "arm"? Should or should not for a toolchain to
> define this? Or we can simply re-name "arm" in struct debug_insn to
> another name?
Most compilers predefine a number of things to help coders port/identify
what the code is being built for. For example, on a coldfire target
__mcf5200 may be defined. Have a look at:
http://www.ucdot.org/article.pl?sid=02/10/02/035241
I don't think the newer gcc's define "arm" and I cannot recall why the
current 2.95.3 compiler does, but if you can easily change the name of
that field in the structure it would be the safest option IMO,
Cheers,
Davidm
--
David McCullough, davidm at snapgear.com Ph:+61 7 34352815 http://www.SnapGear.com
Custom Embedded Solutions + Security Fx:+61 7 38913630 http://www.uCdot.org
next prev parent reply other threads:[~2004-08-10 3:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-10 0:01 [U-Boot-Users] uboot compilation error when using the toolchain arm-elf-tools from uClinux.org Shawn Jin
2004-08-10 0:14 ` [U-Boot-Users] Re: [uClinux-dev] " David McCullough
2004-08-10 1:41 ` [U-Boot-Users] " Shawn Jin
2004-08-10 3:22 ` David McCullough [this message]
2004-08-10 6:43 ` [U-Boot-Users] " Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040810032217.GA31588@beast \
--to=davidm@snapgear.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox