Patch to allow strlen expander to fail
Clinton Popetz
cpopetz@cygnus.com
Tue Mar 7 14:28:00 GMT 2000
On Tue, Mar 07, 2000 at 05:20:51PM -0500, Phil Edwards wrote:
> # `-fhosted'
> # Assert that compilation takes place in a hosted environment. This
> # implies `-fbuiltin'. A hosted environment is one in which the
> # entire standard library is available, and in which `main' has a
> # return type of `int'. Examples are nearly everything except a
> # kernel. This is equivalent to `-fno-freestanding'.
> #
> # `-ffreestanding'
> # Assert that compilation takes place in a freestanding environment.
> # This implies `-fno-builtin'. A freestanding environment is one
> # in which the standard library may not exist, and program startup
> # may not necessarily be at `main'. The most obvious example is an
> # OS kernel. This is equivalent to `-fno-hosted'.
>
> I couldn't tell you how those switches get used in the source, or what
> they currently affect.
Except for setting -fbuiltin appropriately, they have no effect currently.
(They set flag_hosted in c-decl.c, but nothing uses that flag.)
They were added here:
Sun Jan 19 15:05:42 1997 Peter Seebach <seebs@solon.com>
* c-decl.c (start_decl): Add code for -Wmain.
(c_decode_option): Add -fhosted, -ffreestanding, and -Wmain.
* toplev.c (lang_options): Likewise.
* c-tree.h (warn_main, flag_hosted): New variables.
but never touched afterward.
-Clint
More information about the Gcc
mailing list