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

2005-03-12 Thread Adrian Bunk
Package: gcc-3.4 Version: 3.4.3-11 Severity: normal The info file says: -- snip -- With the `-fno-builtin-FUNCTION' option only the built-in function FUNCTION is disabled. FUNCTION must not begin with `__builtin_'. If a function is named this is not built-in in this version

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