This is GCC Bugzilla
This is GCC Bugzilla Version 2.20+
View Bug Activity | Format For Printing | Clone This Bug
-freestanding will, under some conditions, generate a call to memcpy behind the back of the user. This defeats the point of that flag Release: 3.0.1 Environment: Any IA32 target, from what I can tell. How-To-Repeat: typedef struct foo{ char blah[1024]; } foo_t; extern foo_t one, two; void foo(void) { one = two; } $ cc -ffreestanding -O3 -S -o - a.c | grep memcpy call memcpy
State-Changed-From-To: open->closed State-Changed-Why: We've documented which functions libc must provide, and memcpy is among them.