This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

-freestanding not honored


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;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]