On 11/26/2015 07:34 AM, Pierre-Marie de Rodat wrote:
On 11/25/2015 07:35 PM, Jason Merrill wrote:
Actually, even though my patches introduce DWARF procedures for only
one
case (size functions from stor-layout.c), they don’t necessarily come
from code generation (GENERIC): they are just a way to factorize common
DWARF operations. Thinking more about it, it may be more sound to store
stack slot diffs instead of FUNCTION_DECL nodes in
dwarf_proc_decl_table.

Makes sense.

Done! (I repalced the dwarf_proc_decl_table hash table with a
dwarf_proc_stack_usage_map hash_map) Here's an update for the only
affected patch. Regtested again on x86_64-linux.

Hmm, can we generate the DWARF procedures during finalize_size_functions to avoid the need for preserve_body?

Jason

Reply via email to