│ gcc version 4.4.0 20090327 (experimental) [trunk revision 145121] (Ubuntu 20090327-0ubuntu1) └─┤ is indeed not affected by this bug.
To reproduce, I made a jaunty schroot and tried to build mksh 37.3-2 in it.
tglase@tglase:~/mksh-37.3/build/full$ cc -Wall -g -O2 -fno-strict-aliasing -fstack-protector-all -fwrapv -std=gnu99 -Wall -I. -I'../../mksh' -DMKSH_BINSHREDUCED -include /usr/include/bsd/bsd.h -D_GNU_SOURCE -DHAVE_ATTRIBUTE=1 -DHAVE_ATTRIBUTE_BOUNDED=0 -DHAVE_ATTRIBUTE_USED=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_MKDEV_H=0 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_SYSMACROS_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_LIBUTIL_H=1 -DHAVE_PATHS_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_GRP_H=1 -DHAVE_ULIMIT_H=1 -DHAVE_VALUES_H=1 -DHAVE_STDINT_H=1 -D_FILE_OFFSET_BITS=64 -DHAVE_RLIM_T=1 -DHAVE_SIG_T=1 -DHAVE_SYS_SIGNAME=0 -DHAVE_SYS_SIGLIST=1 -DHAVE_STRSIGNAL=0 -DHAVE_ARC4RANDOM=1 -DHAVE_ARC4RANDOM_PUSHB=0 -DHAVE_GETRUSAGE=1 -DHAVE_MKNOD=1 -DHAVE_MKSTEMP=1 -DHAVE_NICE=1 -DHAVE_REALPATH=1 -DHAVE_REVOKE=0 -DHAVE_SETLOCALE_CTYPE=1 -DHAVE_LANGINFO_CODESET=1 -DHAVE_SETMODE=1 -DHAVE_SETRESUGID=1 -DHAVE_SETGROUPS=1 -DHAVE_STRCASESTR=1 -DHAVE_STRLCPY=1 -DHAVE_ARC4RANDOM_DECL=1 -DHAVE_ARC4RANDOM_PUSHB_DECL=1 -DHAVE_FLOCK_DECL=0 -DHAVE_REVOKE_DECL=1 -DHAVE_SYS_SIGLIST_DECL=1 -DHAVE_PERSISTENT_HISTORY=1 -Wl,-Bsymbolic-functions -fwhole-program --combine -o mksh ../../mksh/lalloc.c ../../mksh/edit.c ../../mksh/eval.c ../../mksh/exec.c ../../mksh/expr.c ../../mksh/funcs.c ../../mksh/histrap.c ../../mksh/jobs.c ../../mksh/lex.c ../../mksh/main.c ../../mksh/misc.c ../../mksh/shf.c ../../mksh/syn.c ../../mksh/tree.c ../../mksh/var.c -lbsd ../../mksh/jobs.c: In function 'exchild': ../../mksh/jobs.c:438: warning: ignoring return value of 'nice', declared with attribute warn_unused_result ../../mksh/exec.c: In function 'execute': /usr/include/bits/string3.h:79: sorry, unimplemented: inlining failed in call to 'memset': redefined extern inline functions are not considered for inlining ../../mksh/exec.c:83: sorry, unimplemented: called from here /usr/include/bits/fcntl2.h:43: sorry, unimplemented: inlining failed in call to 'open': redefined extern inline functions are not considered for inlining ../../mksh/exec.c:1157: sorry, unimplemented: called from here /usr/include/bits/fcntl2.h:43: sorry, unimplemented: inlining failed in call to 'open': redefined extern inline functions are not considered for inlining ../../mksh/exec.c:699: sorry, unimplemented: called from here /usr/include/bits/unistd.h:36: sorry, unimplemented: inlining failed in call to 'read': redefined extern inline functions are not considered for inlining ../../mksh/exec.c:701: sorry, unimplemented: called from here tglase@tglase:~/mksh-37.3/build/full$ cc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.3.3-5ubuntu4' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
tglase@tglase:~/mksh-37.3/build/full$ /usr/lib/gcc-snapshot/bin/gcc -Wall -g -O2 -fno-strict-aliasing -fstack-protector-all -fwrapv -std=gnu99 -Wall -I. -I'../../mksh' -DMKSH_BINSHREDUCED -include /usr/include/bsd/bsd.h -D_GNU_SOURCE -DHAVE_ATTRIBUTE=1 -DHAVE_ATTRIBUTE_BOUNDED=0 -DHAVE_ATTRIBUTE_USED=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_MKDEV_H=0 -DHAVE_SYS_MMAN_H=1 -DHAVE_SYS_SYSMACROS_H=1 -DHAVE_LIBGEN_H=1 -DHAVE_LIBUTIL_H=1 -DHAVE_PATHS_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_GRP_H=1 -DHAVE_ULIMIT_H=1 -DHAVE_VALUES_H=1 -DHAVE_STDINT_H=1 -D_FILE_OFFSET_BITS=64 -DHAVE_RLIM_T=1 -DHAVE_SIG_T=1 -DHAVE_SYS_SIGNAME=0 -DHAVE_SYS_SIGLIST=1 -DHAVE_STRSIGNAL=0 -DHAVE_ARC4RANDOM=1 -DHAVE_ARC4RANDOM_PUSHB=0 -DHAVE_GETRUSAGE=1 -DHAVE_MKNOD=1 -DHAVE_MKSTEMP=1 -DHAVE_NICE=1 -DHAVE_REALPATH=1 -DHAVE_REVOKE=0 -DHAVE_SETLOCALE_CTYPE=1 -DHAVE_LANGINFO_CODESET=1 -DHAVE_SETMODE=1 -DHAVE_SETRESUGID=1 -DHAVE_SETGROUPS=1 -DHAVE_STRCASESTR=1 -DHAVE_STRLCPY=1 -DHAVE_ARC4RANDOM_DECL=1 -DHAVE_ARC4RANDOM_PUSHB_DECL=1 -DHAVE_FLOCK_DECL=0 -DHAVE_REVOKE_DECL=1 -DHAVE_SYS_SIGLIST_DECL=1 -DHAVE_PERSISTENT_HISTORY=1 -Wl,-Bsymbolic-functions -fwhole-program --combine -o mksh ../../mksh/lalloc.c ../../mksh/edit.c ../../mksh/eval.c ../../mksh/exec.c ../../mksh/expr.c ../../mksh/funcs.c ../../mksh/histrap.c ../../mksh/jobs.c ../../mksh/lex.c ../../mksh/main.c ../../mksh/misc.c ../../mksh/shf.c ../../mksh/syn.c ../../mksh/tree.c ../../mksh/var.c -lbsd ../../mksh/funcs.c: In function 'c_test': ../../mksh/funcs.c:2452: warning: offset '3' outside bounds of constant string ../../mksh/funcs.c:2453: warning: offset '3' outside bounds of constant string tglase@tglase:~/mksh-37.3/build/full$ /usr/lib/gcc-snapshot/bin/gcc -v Using built-in specs. Target: i486-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 20090327-0ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-snapshot/README.Bugs --enable-languages=c,c++,java,fortran,objc,obj-c++,ada --prefix=/usr/lib/gcc-snapshot --enable-shared --enable-multiarch --with-system-zlib --disable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-java-awt=gtk --enable-gtk-cairo --disable-plugin --with-java-home=/usr/lib/gcc-snapshot/java-1.5.0-gcj-4.4-1.5.0.0/jre --enable-java-home --with-jvm-root-dir=/usr/lib/gcc-snapshot/jvm --with-jvm-jar-dir=/usr/lib/gcc-snapshot/jvm-exports --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-mpfr --enable-targets=all --disable-werror --with-tune=generic --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu Thread model: posix gcc version 4.4.0 20090327 (experimental) [trunk revision 145121] (Ubuntu 20090327-0ubuntu1)
│ gcc version 4.4.0 20090327 (experimental) [trunk revision 145121] (Ubuntu 20090327-0ubuntu1)
└─┤ is indeed not affected by this bug.
To reproduce, I made a jaunty schroot and tried to build mksh 37.3-2 in it.
tglase@ tglase: ~/mksh- 37.3/build/ full$ cc -Wall -g -O2 -fno-strict- aliasing -fstack- protector- all -fwrapv -std=gnu99 -Wall -I. -I'../../mksh' -DMKSH_BINSHREDUCED -include /usr/include/ bsd/bsd. h -D_GNU_SOURCE -DHAVE_ATTRIBUTE=1 -DHAVE_ ATTRIBUTE_ BOUNDED= 0 -DHAVE_ ATTRIBUTE_ USED=1 -DHAVE_ SYS_PARAM_ H=1 -DHAVE_ SYS_MKDEV_ H=0 -DHAVE_SYS_MMAN_H=1 -DHAVE_ SYS_SYSMACROS_ H=1 -DHAVE_LIBGEN_H=1 -DHAVE_LIBUTIL_H=1 -DHAVE_PATHS_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_GRP_H=1 -DHAVE_ULIMIT_H=1 -DHAVE_VALUES_H=1 -DHAVE_STDINT_H=1 -D_FILE_ OFFSET_ BITS=64 -DHAVE_RLIM_T=1 -DHAVE_SIG_T=1 -DHAVE_ SYS_SIGNAME= 0 -DHAVE_ SYS_SIGLIST= 1 -DHAVE_STRSIGNAL=0 -DHAVE_ARC4RANDOM=1 -DHAVE_ ARC4RANDOM_ PUSHB=0 -DHAVE_GETRUSAGE=1 -DHAVE_MKNOD=1 -DHAVE_MKSTEMP=1 -DHAVE_NICE=1 -DHAVE_REALPATH=1 -DHAVE_REVOKE=0 -DHAVE_ SETLOCALE_ CTYPE=1 -DHAVE_ LANGINFO_ CODESET= 1 -DHAVE_SETMODE=1 -DHAVE_SETRESUGID=1 -DHAVE_SETGROUPS=1 -DHAVE_STRCASESTR=1 -DHAVE_STRLCPY=1 -DHAVE_ ARC4RANDOM_ DECL=1 -DHAVE_ ARC4RANDOM_ PUSHB_DECL= 1 -DHAVE_FLOCK_DECL=0 -DHAVE_ REVOKE_ DECL=1 -DHAVE_ SYS_SIGLIST_ DECL=1 -DHAVE_ PERSISTENT_ HISTORY= 1 -Wl,-Bsymbolic- functions -fwhole-program --combine -o mksh ../../mksh/lalloc.c ../../mksh/edit.c ../../mksh/eval.c ../../mksh/exec.c ../../mksh/expr.c ../../mksh/funcs.c ../../mksh/ histrap. c ../../mksh/jobs.c ../../mksh/lex.c ../../mksh/main.c ../../mksh/misc.c ../../mksh/shf.c ../../mksh/syn.c ../../mksh/tree.c ../../mksh/var.c -lbsd jobs.c: 438: warning: ignoring return value of 'nice', declared with attribute warn_unused_result bits/string3. h:79: sorry, unimplemented: inlining failed in call to 'memset': redefined extern inline functions are not considered for inlining exec.c: 83: sorry, unimplemented: called from here bits/fcntl2. h:43: sorry, unimplemented: inlining failed in call to 'open': redefined extern inline functions are not considered for inlining exec.c: 1157: sorry, unimplemented: called from here bits/fcntl2. h:43: sorry, unimplemented: inlining failed in call to 'open': redefined extern inline functions are not considered for inlining exec.c: 699: sorry, unimplemented: called from here bits/unistd. h:36: sorry, unimplemented: inlining failed in call to 'read': redefined extern inline functions are not considered for inlining exec.c: 701: sorry, unimplemented: called from here tglase: ~/mksh- 37.3/build/ full$ cc -v pkgversion= 'Ubuntu 4.3.3-5ubuntu4' --with- bugurl= file:// /usr/share/ doc/gcc- 4.3/README. Bugs --enable- languages= c,c++,fortran, objc,obj- c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir= /usr/lib --without- included- gettext --enable- threads= posix --enable-nls --with- gxx-include- dir=/usr/ include/ c++/4.3 --program- suffix= -4.3 --enable- clocale= gnu --enable- libstdcxx- debug --enable-objc-gc --enable-mpfr --enable- targets= all --with-tune=generic --enable- checking= release --build= i486-linux- gnu --host= i486-linux- gnu --target= i486-linux- gnu
../../mksh/jobs.c: In function 'exchild':
../../mksh/
../../mksh/exec.c: In function 'execute':
/usr/include/
../../mksh/
/usr/include/
../../mksh/
/usr/include/
../../mksh/
/usr/include/
../../mksh/
tglase@
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-
Thread model: posix
gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)
tglase@ tglase: ~/mksh- 37.3/build/ full$ /usr/lib/ gcc-snapshot/ bin/gcc -Wall -g -O2 -fno-strict- aliasing -fstack- protector- all -fwrapv -std=gnu99 -Wall -I. -I'../../mksh' -DMKSH_BINSHREDUCED -include /usr/include/ bsd/bsd. h -D_GNU_SOURCE -DHAVE_ATTRIBUTE=1 -DHAVE_ ATTRIBUTE_ BOUNDED= 0 -DHAVE_ ATTRIBUTE_ USED=1 -DHAVE_ SYS_PARAM_ H=1 -DHAVE_ SYS_MKDEV_ H=0 -DHAVE_SYS_MMAN_H=1 -DHAVE_ SYS_SYSMACROS_ H=1 -DHAVE_LIBGEN_H=1 -DHAVE_LIBUTIL_H=1 -DHAVE_PATHS_H=1 -DHAVE_STDBOOL_H=1 -DHAVE_STRINGS_H=1 -DHAVE_GRP_H=1 -DHAVE_ULIMIT_H=1 -DHAVE_VALUES_H=1 -DHAVE_STDINT_H=1 -D_FILE_ OFFSET_ BITS=64 -DHAVE_RLIM_T=1 -DHAVE_SIG_T=1 -DHAVE_ SYS_SIGNAME= 0 -DHAVE_ SYS_SIGLIST= 1 -DHAVE_STRSIGNAL=0 -DHAVE_ARC4RANDOM=1 -DHAVE_ ARC4RANDOM_ PUSHB=0 -DHAVE_GETRUSAGE=1 -DHAVE_MKNOD=1 -DHAVE_MKSTEMP=1 -DHAVE_NICE=1 -DHAVE_REALPATH=1 -DHAVE_REVOKE=0 -DHAVE_ SETLOCALE_ CTYPE=1 -DHAVE_ LANGINFO_ CODESET= 1 -DHAVE_SETMODE=1 -DHAVE_SETRESUGID=1 -DHAVE_SETGROUPS=1 -DHAVE_STRCASESTR=1 -DHAVE_STRLCPY=1 -DHAVE_ ARC4RANDOM_ DECL=1 -DHAVE_ ARC4RANDOM_ PUSHB_DECL= 1 -DHAVE_FLOCK_DECL=0 -DHAVE_ REVOKE_ DECL=1 -DHAVE_ SYS_SIGLIST_ DECL=1 -DHAVE_ PERSISTENT_ HISTORY= 1 -Wl,-Bsymbolic- functions -fwhole-program --combine -o mksh ../../mksh/lalloc.c ../../mksh/edit.c ../../mksh/eval.c ../../mksh/exec.c ../../mksh/expr.c ../../mksh/funcs.c ../../mksh/ histrap. c ../../mksh/jobs.c ../../mksh/lex.c ../../mksh/main.c ../../mksh/misc.c ../../mksh/shf.c ../../mksh/syn.c ../../mksh/tree.c ../../mksh/var.c -lbsd funcs.c: 2452: warning: offset '3' outside bounds of constant string funcs.c: 2453: warning: offset '3' outside bounds of constant string tglase: ~/mksh- 37.3/build/ full$ /usr/lib/ gcc-snapshot/ bin/gcc -v pkgversion= 'Ubuntu 20090327-0ubuntu1' --with- bugurl= file:// /usr/share/ doc/gcc- snapshot/ README. Bugs --enable- languages= c,c++,java, fortran, objc,obj- c++,ada --prefix= /usr/lib/ gcc-snapshot --enable-shared --enable-multiarch --with-system-zlib --disable-nls --enable- clocale= gnu --enable- libstdcxx- debug --enable- java-awt= gtk --enable-gtk-cairo --disable-plugin --with- java-home= /usr/lib/ gcc-snapshot/ java-1. 5.0-gcj- 4.4-1.5. 0.0/jre --enable-java-home --with- jvm-root- dir=/usr/ lib/gcc- snapshot/ jvm --with- jvm-jar- dir=/usr/ lib/gcc- snapshot/ jvm-exports --with- ecj-jar= /usr/share/ java/eclipse- ecj.jar --enable-objc-gc --enable-mpfr --enable- targets= all --disable-werror --with-tune=generic --build= i486-linux- gnu --host= i486-linux- gnu --target= i486-linux- gnu
../../mksh/funcs.c: In function 'c_test':
../../mksh/
../../mksh/
tglase@
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-
Thread model: posix
gcc version 4.4.0 20090327 (experimental) [trunk revision 145121] (Ubuntu 20090327-0ubuntu1)