This patch broke the ability to run the libstdc++ testsuite on AIX. I now see the following errors:
bad switch "-O": must be -all, -about, -indices, -inline, -expanded, -line, -lin estop, -lineanchor, -nocase, -start, or -- while executing "regexp "\-O" $cxxflags" (procedure "libstdc++_init" line 183) invoked from within "${tool}_init $test_file_name" invoked from within "if [info exists tool] { if { [info procs "${tool}_init"] != "" } { ${tool}_init $test_file_name } }" invoked from within "if [file exists $test_file_name] { set timestart [timestamp] if [info exists tool] { if { [info procs "${tool}_init"] != "" } { ${tool}_init..." (procedure "runtest" line 14) invoked from within "runtest $test_name" ("foreach" body line 42) invoked from within "foreach test_name [lsort [find ${dir} *.exp]] { if { ${test_name} == "" } { continue } # Ignore this one if asked to. if { ${ignore..." ("foreach" body line 54) invoked from within "foreach dir "${test_top_dirs}" { if { ${dir} != ${srcdir} } { # Ignore this directory if is a directory to be # ignored. if {[info..." ("foreach" body line 121) invoked from within "foreach pass $multipass { # multipass_name is set for `record_test' to use (see framework.exp). if { [lindex $pass 0] != "" } { set multipass_..." ("foreach" body line 51) invoked from within "foreach current_target $target_list { verbose "target is $current_target" set current_target_name $current_target set tlist [split $curren..." (file "/gsa/yktgsa/home/e/d/edelsohn/share/dejagnu/runtest.exp" line 1625)