Re: [PATCH/RFC] m68k: Add -ffreestanding to KBUILD_CFLAGS

Geert Uytterhoeven
2013-04-24T12:10:52Z

If you're replying to linux-m68k only, I don't think Michal will see
your reply...

On Wed, Apr 24, 2013 at 2:01 PM, Thorsten Glaser <tg@mirbsd.de> wrote:
> Michal Marek <mmarek <at> suse.cz> writes:
>
>> exported strcpy symbol. An I would naively assume, that if the compiler
>> sees a static inline definition of a function, then it will not generate
>> a function call. Although, the C standard does require the standard
>
> “If the compiler sees” but the thing is, the compiler does not see
> a call to strlen, but a call to strncat and replaces that in-tree.
>
>> library functions be available as external functions, so the compiler
>
> Only for hosted environments.
>
> Which is why -ffreestanding is the only correct thing to do.
>
> bye,
> //mirabilos
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html

--
Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds