This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
-freestanding not honored
- To: gcc-bugs at gcc dot gnu dot org
- Subject: -freestanding not honored
- From: Robert Lipe <robertlipe at usa dot net>
- Date: Tue, 4 Sep 2001 22:03:05 -0500
Compiled with 3.0.1 as of a few days ago for x86, the following program
generates a reference to 'memcpy' even when in freestanding mode. I'm
thinking it should do that only in hosted mode and generate an inlined
block copy for freestanding, shouldn't it?
$ cc -ffreestanding -O3 -S -o - a.c | grep memcpy
call memcpy
typedef struct foo{
char blah[1024];
} foo_t;
extern foo_t one, two;
void
foo(void)
{
one = two;
}