mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Roman Zippel <zippel@linux-m68k.org>
To: Adrian Bunk <bunk@kernel.org>
Cc: Al Viro <viro@ftp.linux.org.uk>,
	torvalds@linux-foundation.org, geert@linux-m68k.org,
	linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arch@vger.kernel.org
Subject: Re: -ffreestanding or not -ffreestanding
Date: Wed, 21 May 2008 13:44:06 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0805211326080.19545@localhost.localdomain> (raw)
In-Reply-To: <20080521075233.GA18352@cs181133002.pp.htv.fi>

Hi,

On Wed, 21 May 2008, Adrian Bunk wrote:

> Can we try to get this sorted out properly instead of constantly 
> fiddling with it?
> 
> Currently we use -ffreestanding on some architectures and fix breakages 
> on the other architectures when they arise.

This won't help completely unless you also clean up all archs to use the 
same mappings to the builtin functions.

The main problem I had with -ffreestanding is that it's awkward to map a 
library function to the builtin function and also provide the fallback 
from lib/string.c.
If you look at asm-m68k/string.h I once tried this with the mem* functions 
and I still have the duplicated memcmp in arch/m68k/lib/string.c.
(You could argue that it would be easier to just remove the define for 
memcmp in this specific case, but I'm interested in the general case.)

bye, Roman

      reply	other threads:[~2008-05-21 11:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-21  1:12 [PATCH] provide out-of-line strcat() for m68k Al Viro
2008-05-21  3:34 ` Roman Zippel
2008-05-21  5:30   ` Al Viro
2008-05-21 10:53     ` Roman Zippel
2008-05-21 11:09       ` Al Viro
2008-05-21  7:52 ` -ffreestanding or not -ffreestanding Adrian Bunk
2008-05-21 11:44   ` Roman Zippel [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=Pine.LNX.4.64.0805211326080.19545@localhost.localdomain \
    --to=zippel@linux-m68k.org \
    --cc=bunk@kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=viro@ftp.linux.org.uk \
    /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

all inboxes | Powered by JetHome®