From: Andreas Schwab <schwab@suse.de>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Linux/m68k <linux-m68k@vger.kernel.org>,
Linux Kernel Development <linux-kernel@vger.kernel.org>
Subject: Re: m68k: main.c:(.init.text+0x730): undefined reference to `strlen'
Date: Wed, 14 May 2008 10:37:57 +0200 [thread overview]
Message-ID: <jeprrpth5m.fsf@sykes.suse.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0805140958400.5778@anakin> (Geert Uytterhoeven's message of "Wed, 14 May 2008 10:02:11 +0200 (CEST)")
Geert Uytterhoeven <geert@linux-m68k.org> writes:
> My first guess is gcc is turning sizeof() into strlen() again.
Definitely not. sizeof is a compile-time constant, strlen is not. More
likely the strlen call is embedded in the expansion of strncat.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2008-05-14 8:38 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-14 8:02 m68k: main.c:(.init.text+0x730): undefined reference to `strlen' Geert Uytterhoeven
2008-05-14 8:37 ` Andreas Schwab [this message]
2008-05-14 9:57 ` Cyrill Gorcunov
2008-05-14 10:48 ` Cyrill Gorcunov
2008-05-14 14:10 ` Adrian Bunk
2008-05-14 14:28 ` Andreas Schwab
2008-05-14 14:40 ` Cyrill Gorcunov
2008-05-14 14:55 ` Andreas Schwab
2008-05-14 14:58 ` Cyrill Gorcunov
2008-05-14 15:14 ` Cyrill Gorcunov
2008-05-14 15:27 ` Andreas Schwab
2008-05-14 15:31 ` Cyrill Gorcunov
2008-05-14 20:14 ` Geert Uytterhoeven
2008-05-14 14:51 ` Cyrill Gorcunov
2008-05-14 15:30 ` Adrian Bunk
2008-05-14 15:48 ` Cyrill Gorcunov
2008-05-14 15:56 ` Adrian Bunk
2008-05-14 16:03 ` Cyrill Gorcunov
2008-05-14 14:55 ` Roman Zippel
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=jeprrpth5m.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-m68k@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.