> >No you should not generate addresses for VCEs that contain a SSA_NAME. > > I think you should check if get_base_address is a > >is_gimple_addressable inside gather_memory_references_ref. > > There, TREE_CODE ( get_base_address (ref)) == SSA_NAME > > and get_base_address (ref) is is_gimple_addressable. > > However, address expression containing SSA_NAME is NOT considered > as a gimple address.
>You simply can't take an address of such thing. Look at IVOPTs, >it has measures to avoid this stuff. Thanks, Richard: I have a fix based on this suggestion: http://gcc.gnu.org/ml/gcc-patches/2010-08/msg01625.html Changpeng