From: Fabio Giovagnini <fabio.giovagnini@aurion-tech.com>
To: linux-sh@vger.kernel.org
Subject: Re: Complining with codesurgery 4.4.-43 sh2a
Date: Fri, 19 Mar 2010 11:47:45 +0000 [thread overview]
Message-ID: <201003191247.45349.fabio.giovagnini@aurion-tech.com> (raw)
In-Reply-To: <201003191201.24090.fabio.giovagnini@aurion-tech.com>
In fact I used the toolchain for building the binary file including the
bootstrap code and the zImage of the kernel;and this told me the prolem
beacuse in my own makefile I had -m2a only option set.
Do I have to skip the fpu when I'll build the usersapce application?
Thanks a lot Paul
In data venerdì 19 marzo 2010 12:27:35, Paul Mundt ha scritto:
: > On Fri, Mar 19, 2010 at 12:01:23PM +0100, Fabio Giovagnini wrote:
> > Hi all, why I need to compile my code with -m2a -m2a-nofpu aven if sh2a
> > 76203 has an fpu?
> > If I do not use -m2a-nofpu I have error
> > undefined reference to `__fpscr_values'
> > at linking time
>
> You should never be touching any of the Makefile build flags, they are
> delicate, have rigid ordering requirements, and are mapped out the way
> they are intentionally. Any time you are forced to hack up build flags
> you are almost guaranteed to be doing something wrong.
>
> Whether the CPU has an FPU or not is completely irrelevant from the
> context of the kernel. The kernel does not have its own FP state, and so
> can't handle having FP instructions generated by the compiler, this is
> what the -nofpu inhibiting is for. Even in situations where the kernel
> may wish to hand craft FP context and open code a few instructions, the
> kernel is never built without -nofpu.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
Fabio Giovagnini
Aurion s.r.l.
P.I e C.F.
00885711200
Tel. +39.051.594.78.24
Cell. +39.335.83.50.919
prev parent reply other threads:[~2010-03-19 11:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-19 11:01 Complining with codesurgery 4.4.-43 sh2a Fabio Giovagnini
2010-03-19 11:27 ` Paul Mundt
2010-03-19 11:47 ` Fabio Giovagnini [this message]
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=201003191247.45349.fabio.giovagnini@aurion-tech.com \
--to=fabio.giovagnini@aurion-tech.com \
--cc=linux-sh@vger.kernel.org \
/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