http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54457
--- Comment #9 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-01 22:37:20 UTC --- Like this: # Return 1 if -mx32 can compile, 0 otherwise. proc check_effective_target_maybe_x32 { } { return [check_no_compiler_messages maybe_x32 object { void foo (void) {} } {-mx32}] }