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] |
The ObjC frontend builds of list of fields for record types with repeated use of chainon:
list = chainon (list, decl); list = chainon (list, decl);
This scheme does rather more work than it needs to. The patch below
addresses this by keeping a pointer to the last TREE_CHAIN field of the
list so we can append in constant time. I took the liberty of cleaning
up array type building, too.
We address a PR with this patch, too. Hooray! It only took us five years... :)
Tested on x86_64-unknown-linux-gnu. OK to commit?
... and thanks! Iain
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |