hush/coreutils
Denis Vlasenko a7f4e4bbd8 expr: fix comparisons 'a < b' where we were overflowing a-b
(not to mention that we used int, not arith_t). closes bug 2744.
Also, shrink a bit and add testsuite entry

function                                             old     new   delta
nextarg                                               75      84      +9
tostring                                              38      35      -3
toarith                                               89      86      -3
str_value                                             35      32      -3
eval6                                                555     552      -3
int_value                                             29      23      -6
eval4                                                128     120      -8
eval3                                                112     104      -8
eval2                                                512     417     -95
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/8 up/down: 9/-129)           Total: -120 bytes
2008-04-02 20:24:09 +00:00
..
libcoreutils *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
basename.c basename: tiny shrink 2008-04-01 16:29:21 +00:00
cal.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
cat.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
catv.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
chgrp.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
chmod.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
chown.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
chroot.c lpd: spool mode added by Vladimir 2008-02-25 20:30:24 +00:00
cksum.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
comm.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
Config.in *: mode tcp/udpsvd to networking, delete ipsvd/* 2008-03-17 09:13:22 +00:00
cp.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
cut.c *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/ 2008-03-26 20:04:27 +00:00
date.c date: make help text more understandable; small shrink 2008-03-25 02:43:34 +00:00
dd.c libbb: introduse and use signal_[no_]SA_RESTART_empty_mask and sigaction_set 2008-03-12 23:19:35 +00:00
df.c df: add -a 2007-11-15 09:02:12 +00:00
dirname.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
dos2unix.c dos2unix: tiny shrink 2008-03-17 08:42:43 +00:00
du.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
echo.c shells: do not frocibly enable test, echo and kill _applets_, 2008-04-01 14:47:57 +00:00
env.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
expand.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
expr.c expr: fix comparisons 'a < b' where we were overflowing a-b 2008-04-02 20:24:09 +00:00
false.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
fold.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
head.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
hostid.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
id.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
install.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
Kbuild shells: do not frocibly enable test, echo and kill _applets_, 2008-04-01 14:47:57 +00:00
length.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
ln.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
logname.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
ls.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
md5_sha1_sum.c *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/ 2008-03-26 20:04:27 +00:00
mkdir.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
mkfifo.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
mknod.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
mv.c copy_file: handle "cp /dev/foo file" (almost) compatibly to coreutils. 2008-03-28 17:49:31 +00:00
nice.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
nohup.c nohup: compat patch by Christoph Gysin <mailinglist.cache at gmail.com> 2008-02-04 00:30:06 +00:00
od_bloaty.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
od.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
printenv.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
printf.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
pwd.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
readlink.c patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes) 2008-03-23 22:55:25 +00:00
realpath.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
rm.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
rmdir.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
seq.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
sleep.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
sort.c *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/ 2008-03-26 20:04:27 +00:00
split.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
stat.c *: fix fallout from -Wunused-parameter 2008-03-17 09:04:04 +00:00
stty.c stty: fix mishandling of 'control' keywords (Ralf Friedl <Ralf.Friedl@online.de>) 2008-01-27 23:24:31 +00:00
sum.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
sync.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
tac.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00
tail.c tail: fix fallout from tail -c optimization 2008-03-23 03:28:40 +00:00
tee.c libbb: introduce bb_signals and bb_signals_recursive, 2008-02-16 22:58:56 +00:00
test.c *: add optimization barrier to all "G trick" locations 2008-02-27 18:41:59 +00:00
touch.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
tr.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
true.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
tty.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
uname.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
uniq.c *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/ 2008-03-26 20:04:27 +00:00
usleep.c *: shrink: use Vladimir's "o+" specifier instead of xatou(opt_param) 2008-03-17 09:09:09 +00:00
uudecode.c *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/ 2008-03-26 20:04:27 +00:00
uuencode.c add -fvisibility=hidden to CC flags, mark XXX_main functions 2007-10-11 10:05:36 +00:00
wc.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
who.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
whoami.c *: add -Wunused-parameter; fix resulting breakage 2008-03-17 09:00:54 +00:00
yes.c *: shrink by using [f]open_or_warn_stdin where appropriate 2008-03-17 09:07:36 +00:00