On Fri, 30 May 2008, Cristian Ionescu-Idbohrn wrote:
> On Fri, 30 May 2008, Bernhard Fischer wrote:
> > >+#if ENABLE_ASH_BUILTIN_PRINTF
> > >+ { BUILTIN_REGULAR "[", printfcmd },
> > >+#endif
> >
> > are you sure that "[" is correct here?
>
> Of course it isn't. And that possibly has something to do with the
> odd behaviour I experienced:
>
> | On the negative side, the above command line outputs all 100000
> | lines to stdout, even if I redirect to /dev/null
Yes, that was the bug.
> gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) reposts this
> on one of my boxes:
>
> function old new delta
> .rodata 76384 76416 +32
> builtintab 336 344 +8
> collect_fork 112 119 +7
> make_device 1146 1152 +6
> send_tree 369 373 +4
> diffreg 1741 1743 +2
> count_lines 68 70 +2
> passwd_main 989 987 -2
> print_direc 456 443 -13
> diff_main 837 823 -14
> ------------------------------------------------------------------------------
> (add/remove: 0/0 grow/shrink: 7/3 up/down: 61/-29) Total: 32 bytes
> text data bss dec hex filename
> 342426 1977 17792 362195 586d3 busybox_old
> 342450 1977 17792 362219 586eb busybox_unstripped
>
> Another one reports +6 bytes (another gcc version).
Actually:
gcc (GCC) 4.2.4 (Debian 4.2.4-1)
function old new delta
builtintab 320 328 +8
.rodata 121897 121891 -6
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 8/-6) Total: 2 bytes
text data bss dec hex filename
520855 2091 22428 545374 8525e busybox_old
520849 2091 22428 545368 85258 busybox_unstripped
under similar premises. But _I_ possibly lost control :(
Cheers,
--
Cristian
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox