2011/4/8 Steven Bosscher <stevenb....@gmail.com>: >> * stmt.c (label_rtx): Allocate RTX in permanent RTL memory. > > That looks strange, labels should be function specific, except > non-local labels. Maybe you can get away with allocating DECL_NONLOCAL > labels on the permanent rtl obstack?
That's a good idea, I will try it once things are stable on the branch. > Perhaps a third, per-translation-unit obstack is necessary? Perhaps. After I finish with permanent rtl obstack, I will measure how large it gets and if it's worthwhile to split out per-translation-obstack out of it. Thanks, -- Laurynas