This is the mail archive of the gcc@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]

Creation of SYMBOL_REFs by dwarf2out.c


In output_call_frame_info, we create new SYMBOL_REFs for functions, via:

if (TARGET_USES_WEAK_UNWIND_INFO
&& DECL_ONE_ONLY (fde->decl))
dw2_asm_output_encoded_addr_rtx (fde_encoding,
gen_rtx_SYMBOL_REF (Pmode, IDENTIFIER_POINTER
=> (DECL_ASSEMBLER_NAME (fde->de\cl))),
"FDE initial location");


Is this necessary?

It violates the claim in the internals manual that there is only one SYMBOL_REF per symbol, which is unfortunate.

Why can't we just use XEXP (DECL_RTL (fde->decl), 0) ?

Thanks,

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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