Roland Mainz
2013-08-02 16:47:33 UTC
Hi!
----
Building ast-ksh.2013-07-27 on SuSE 12.3/AMD64/64bit triggers gcc's
-Wclobber warning in src/lib/libast/misc/spawnvex.c:
-- snip --
+ cc -D_BLD_DLL -fPIC -D_BLD_ast '-DSHOPT_CMDLIB_BLTIN=0'
'-DSH_CMDLIB_DIR="/usr/ast/bin"'
'-DSHOPT_CMDLIB_HDR="/home/test001/work/ast_ksh_20130727/build_astopen/tmp_gnulinux_buil
tin_header.h"' -DSHOPT_SYSRC '-D_map_libc=1' -fstrict-aliasing
-Wstrict-aliasing -Wsequence-point -Wno-parentheses -Wno-unused
-Wno-trigraphs -Wclobbered -Waddress -I. -I/home/tes
t001/work/ast_ksh_20130727/build_astopen/src/lib/libast -Icomp
-I/home/test001/work/ast_ksh_20130727/build_astopen/src/lib/libast/comp
-Iinclude -I/home/test001/work/ast_ksh_20130
727/build_astopen/src/lib/libast/include -Istd
-I/home/test001/work/ast_ksh_20130727/build_astopen/src/lib/libast/std
-D_PACKAGE_ast -c /home/test001/work/ast_ksh_20130727/build_a
stopen/src/lib/libast/misc/spawnvex.c
/home/test001/work/ast_ksh_20130727/build_astopen/src/lib/libast/misc/spawnvex.c:
In function 'spawnvex':
/home/test001/work/ast_ksh_20130727/build_astopen/src/lib/libast/misc/spawnvex.c:792:60:
warning: argument 'envv' might be clobbered by 'longjmp' or 'vfork'
[-Wclobbered]
-- snip --
I'm not sure whether this is an issue...
... and for completeness here are all other -Wclobber warnings from that build:
-- snip --
src/cmd/ie/emacs.c:181:10: warning: argument 'scend' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ie/vi.c:227:15: warning: variable 'term_char' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/misc.c:217:28: warning: variable 'argsave' might
be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:210:46: warning: argument 'names' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:210:74: warning: argument 'flags' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:210:88: warning: argument 'size' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:214:21: warning: variable 'np' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:215:18: warning: variable 'name' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:216:20: warning: variable 'iop' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:229:8: warning: variable 'delim' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/typeset.c:1171:56: warning: argument 'troot'
might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/edit/emacs.c:178:55: warning: argument 'scend' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/edit/emacs.c:178:66: warning: argument 'reedit' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/edit/emacs.c:185:20: warning: variable 'ep' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/edit/vi.c:212:75: warning: argument 'reedit' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/edit/vi.c:217:17: warning: variable 'vp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/fault.c:834:14: warning: variable 'savxit' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/io.c:1831:27: warning: variable 'newfd' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/macro.c:133:45: warning: argument 'string' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/main.c:129:8: warning: variable 'rshflag' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/main.c:386:60: warning: argument 'iop' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/main.c:386:77: warning: argument 'fno' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/parse.c:759:21: warning: variable 't' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/parse.c:769:6: warning: variable 'nargs' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:1594:8: warning: variable 'no_fork' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:1785:21: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:1910:10: warning: variable 'pid' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:1913:20: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:2274:20: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:2413:20: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3401:68: warning: argument 'argv' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3409:6: warning: variable 'n' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3429:19: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3615:18: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3616:7: warning: variable 'otype' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3931:16: warning: variable 'nsig' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3938:11: warning: variable 'savstak' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3939:18: warning: variable 'fp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3940:18: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:4094:61: warning: argument 'mode' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:4100:18: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:925:60: warning: argument 't' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:928:8: warning: variable 'unpipe' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:933:18: warning: variable 'com0' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:934:9: warning: variable 'errorflg' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:935:9: warning: variable 'execflg' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:945:18: warning: variable 'com' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:985:9: warning: variable 'command' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/mailx/cmd1.c:329:19: warning: argument 'msgvec' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/mailx/collect.c:339:42: warning: argument 'flags' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/mailx/collect.c:343:7: warning: variable 'ask' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/mailx/collect.c:346:7: warning: variable 'escape' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/mailx/collect.c:347:7: warning: variable 'headers' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/lib/libast/misc/spawnvex.c:792:60: warning: argument 'envv' might
be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
-- snip --
----
Bye,
Roland
----
Building ast-ksh.2013-07-27 on SuSE 12.3/AMD64/64bit triggers gcc's
-Wclobber warning in src/lib/libast/misc/spawnvex.c:
-- snip --
+ cc -D_BLD_DLL -fPIC -D_BLD_ast '-DSHOPT_CMDLIB_BLTIN=0'
'-DSH_CMDLIB_DIR="/usr/ast/bin"'
'-DSHOPT_CMDLIB_HDR="/home/test001/work/ast_ksh_20130727/build_astopen/tmp_gnulinux_buil
tin_header.h"' -DSHOPT_SYSRC '-D_map_libc=1' -fstrict-aliasing
-Wstrict-aliasing -Wsequence-point -Wno-parentheses -Wno-unused
-Wno-trigraphs -Wclobbered -Waddress -I. -I/home/tes
t001/work/ast_ksh_20130727/build_astopen/src/lib/libast -Icomp
-I/home/test001/work/ast_ksh_20130727/build_astopen/src/lib/libast/comp
-Iinclude -I/home/test001/work/ast_ksh_20130
727/build_astopen/src/lib/libast/include -Istd
-I/home/test001/work/ast_ksh_20130727/build_astopen/src/lib/libast/std
-D_PACKAGE_ast -c /home/test001/work/ast_ksh_20130727/build_a
stopen/src/lib/libast/misc/spawnvex.c
/home/test001/work/ast_ksh_20130727/build_astopen/src/lib/libast/misc/spawnvex.c:
In function 'spawnvex':
/home/test001/work/ast_ksh_20130727/build_astopen/src/lib/libast/misc/spawnvex.c:792:60:
warning: argument 'envv' might be clobbered by 'longjmp' or 'vfork'
[-Wclobbered]
-- snip --
I'm not sure whether this is an issue...
... and for completeness here are all other -Wclobber warnings from that build:
-- snip --
src/cmd/ie/emacs.c:181:10: warning: argument 'scend' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ie/vi.c:227:15: warning: variable 'term_char' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/misc.c:217:28: warning: variable 'argsave' might
be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:210:46: warning: argument 'names' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:210:74: warning: argument 'flags' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:210:88: warning: argument 'size' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:214:21: warning: variable 'np' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:215:18: warning: variable 'name' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:216:20: warning: variable 'iop' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/read.c:229:8: warning: variable 'delim' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/bltins/typeset.c:1171:56: warning: argument 'troot'
might be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/edit/emacs.c:178:55: warning: argument 'scend' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/edit/emacs.c:178:66: warning: argument 'reedit' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/edit/emacs.c:185:20: warning: variable 'ep' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/edit/vi.c:212:75: warning: argument 'reedit' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/edit/vi.c:217:17: warning: variable 'vp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/fault.c:834:14: warning: variable 'savxit' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/io.c:1831:27: warning: variable 'newfd' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/macro.c:133:45: warning: argument 'string' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/main.c:129:8: warning: variable 'rshflag' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/main.c:386:60: warning: argument 'iop' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/main.c:386:77: warning: argument 'fno' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/parse.c:759:21: warning: variable 't' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/parse.c:769:6: warning: variable 'nargs' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:1594:8: warning: variable 'no_fork' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:1785:21: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:1910:10: warning: variable 'pid' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:1913:20: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:2274:20: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:2413:20: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3401:68: warning: argument 'argv' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3409:6: warning: variable 'n' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3429:19: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3615:18: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3616:7: warning: variable 'otype' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3931:16: warning: variable 'nsig' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3938:11: warning: variable 'savstak' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3939:18: warning: variable 'fp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:3940:18: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:4094:61: warning: argument 'mode' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:4100:18: warning: variable 'buffp' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:925:60: warning: argument 't' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:928:8: warning: variable 'unpipe' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:933:18: warning: variable 'com0' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:934:9: warning: variable 'errorflg' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:935:9: warning: variable 'execflg' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:945:18: warning: variable 'com' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/ksh93/sh/xec.c:985:9: warning: variable 'command' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/mailx/cmd1.c:329:19: warning: argument 'msgvec' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/mailx/collect.c:339:42: warning: argument 'flags' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/mailx/collect.c:343:7: warning: variable 'ask' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/mailx/collect.c:346:7: warning: variable 'escape' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/cmd/mailx/collect.c:347:7: warning: variable 'headers' might be
clobbered by 'longjmp' or 'vfork' [-Wclobbered]
src/lib/libast/misc/spawnvex.c:792:60: warning: argument 'envv' might
be clobbered by 'longjmp' or 'vfork' [-Wclobbered]
-- snip --
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)
__ . . __
(o.\ \/ /.o) roland.mainz at nrubsig.org
\__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
/O /==\ O\ TEL +49 641 3992797
(;O/ \/ \O;)