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]

Re: [patch 10/10] debug-early merge: compiler proper


On 05/29/2015 03:33 PM, Jason Merrill wrote:
On 05/29/2015 03:26 PM, Richard Biener wrote:
ISTR I had to mark the gimple reg used for the bound as
non-DECL_IGNORED for the LTO stuff.

Let's go with that, then.

Well, I did play around with that option originally, but temporaries do not end up in the symbol table, so we won't see them to feed them to late_global_decl.

We'd have to save them on the side to make them survive until late and then feed them to late_global_decl separately (which I'm sure Richi will hate), or we could drill down through the array type/domain to find the gimple register (which now has an early DIE) and call late_global_decl on it. However, this last option sounds like a variant of my original idea-- fill the bound location later, with the unfortunate side-effect of having an additional DIE (the gimple register DIE).

I guess we could iterate through all the gimple registers late that have DECL_IGNORED_P == NULL and call late_global_decl on them, but I dislike this as well. Actually, all ideas involving generating DIEs for temporaries involve an additional DIE we wouldn't otherwise get.

Can I clean up my original idea instead?

Aldy


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]