This is the mail archive of the gcc-patches@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] |
+ while (--ix) + { + prev = VEC_index (dw_attr_node, die->die_attr, ix - 1); + + if (prev->dw_attr == DW_AT_decl_line || prev->dw_attr == DW_AT_name) + { + VEC_replace (dw_attr_node, die->die_attr, ix, &linkage); + return; + } + else + VEC_replace (dw_attr_node, die->die_attr, ix, prev); + }
Mostly ok. But really I'd prefer to see this loop merely search, then use VEC_pop and VEC_quick_insert to move the entry.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |