------- Comment #32 from jakub at gcc dot gnu dot org 2007-11-22 15:52 ------- Or alternatively make sure to gimplify all inputs which allow reg or mem first, then gimplify those that don't allow either, which for -O0 should hopefully mean all such expressions stay in the same basic block as the asm and then if (!optimize) in expand_gimple_basic_block look at asm inputs and if some of them doesn't allow mem nor reg and is gimple register, walk back to find definitions within the bb and reconstruct the expression (kind of very lame TER alternative) and stop whenever some of the used gimple reg definitions can't be found, or once it is not TREE_CONSTANT.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23200