From: David Miller <davem@davemloft.net>
To: hpa@zytor.com
Cc: maks@sternwelten.at, linux-kernel@vger.kernel.org, klibc@zytor.com
Subject: Re: [PATCH] klibc
Date: Sat, 03 Jun 2006 23:30:34 -0700 (PDT) [thread overview]
Message-ID: <20060603.233034.59468148.davem@davemloft.net> (raw)
In-Reply-To: <44820C7D.6080501@zytor.com>
From: "H. Peter Anvin" <hpa@zytor.com>
Date: Sat, 03 Jun 2006 15:26:05 -0700
> __arch64__ is ugly; it doesn't say it's a sparc thing. I have added
> -D__sparc_v9__ to the sparc64 MCONFIG file, so I think that's fine.
>
> Perhaps the right thing to do is to make this an archconfig.h configurable.
Please don't do this, I'll explain why.
Using __sparc_v9__ is incorrect, here is the lowdown on these defines:
1) __sparc_v9__ means "-mcpu={ultrasparc*,niagara}" or "-mcpu=v9".
Although this is implied by "-m64" it can be used for 32-bit
code too.
__sparc_v9__ means "using v9 instructions" which does not
necessarily mean 64-bit
2) "__sparc__ && __arch64__" means 64-bit sparc
People often get this wrong, and it certainly is confusing.
Jakub Jelinek gives a good explanation on the gcc mailing
list here:
http://gcc.gnu.org/ml/gcc/2002-12/msg00108.html
Thanks.
next prev parent reply other threads:[~2006-06-04 6:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-01 19:47 Bob Picco
2006-06-01 20:06 ` Brian F. G. Bidulock
2006-06-01 20:23 ` H. Peter Anvin
2006-06-02 8:14 ` maximilian attems
2006-06-03 22:26 ` H. Peter Anvin
2006-06-04 6:30 ` David Miller [this message]
2006-06-04 17:42 ` H. Peter Anvin
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=20060603.233034.59468148.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=hpa@zytor.com \
--cc=klibc@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maks@sternwelten.at \
/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
Powered by JetHome