Bug#299188: gcc: -ffreestanding and builtins don't work as expected

2005-03-12 Thread Thiemo Seufer
Adrian Bunk wrote: [snip] #define sprintf __builtin_sprintf int main() { char str[] = abc; char buf[10]; sprintf(buf,%s,str); return 0; } [snip] callstrcpy [snip] As far as I understand the documentation, the call to strcpy shouldn't be emitted since this

Bug#299188: gcc: -ffreestanding and builtins don't work as expected

2005-03-12 Thread Adrian Bunk
On Sat, Mar 12, 2005 at 04:48:46PM +0100, Thiemo Seufer wrote: Adrian Bunk wrote: [snip] #define sprintf __builtin_sprintf int main() { char str[] = abc; char buf[10]; sprintf(buf,%s,str); return 0; } [snip] callstrcpy [snip] As far as I