Using the platform-native compilers on IRIX, bash-3.2 will build be be very broken(*) if built with -O2 or -O3. Therefore, the ebuild should contain along the lines of: case ${CHOST} in *-irix*) replace-flags -O? -O1 ;; esac ... within src_compile() (*) This mainly seems to affect the maths functions: working correctly, executing "echo $(( 3 + 4 ))" should print "7". With bash compiled at -O2, the same command returns "3: command not found" :(
I applied the filter-flags to all bash ebuilds, thanks.