On 07/07/2013 11:54 AM, Marc Glisse wrote:
it turns out there wasn't much missing here. I got side-tracked because fold_unary_loc doesn't call fold_indirect_ref_1, and fold_indirect_ref_1 has a too strict comparison type == TREE_TYPE (optype) (should compare TYPE_MAIN_VARIANT instead?), but none of that was necessary so I'll leave it for another time.
I think there should be a middle end type comparison function that allows a few differences, but that is definitely something for another time.
Jason