mawk-1.3.3-4 compiled by gcc-2.96-52 dumps core: # mawk -f firstversions.awk mm libc { GLIBC_2.0 GLIBC_2.1 GLIBC_2.1.1 zsh: 5431 segmentation fault mawk -f firstversions.awk mm firstversions.awk and mm can be found at: http://ftp.valinux.com/pub/support/hjl/bugs/mawk
array.c in mawk 1.3.3-4 is miscompiled by -O2. -O seems ok.
Using -O2 -fno-strength-reduce on array.c generates a working mawk. BTW, gcc 2.96 20000819 still miscompiles mawk.
Jakub is fixing this problem in gcc. Thanks for your report.
a workaround was made in mawk as well.