http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49191
--- Comment #12 from Steve Ellcey <sje at cup dot hp.com> 2011-06-08 20:07:04 UTC --- Checking for a warning using check_no_compiler_messages seems as easy or easier then checking the return code so I did that. I have submitted a patch to gcc-patches. http://gcc.gnu.org/ml/gcc-patches/2011-06/msg00673.html