This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/23200] [4.0/4.1/4.2/4.3 regression] rejects "i"(&var + 1)



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]