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: v9:Update DWARF2


On Tue, Jul 8, 2008 at 8:52 AM, Jason Merrill <jason@redhat.com> wrote:
> Guo, Xuepeng wrote:
>>
>> Thanks for Jason's review. This is a refined and further simplified
>> version based on v8. The differences are:
>> 1) Removed code we added to function add_cfi and keep it as it was.
>
> Last night H.J. was testing a patch to put a call to gcc_unreachable() there
> instead of return.  How did that work?
>

Hi Jason,

It worked fine. I left it there so that we won't redefine CFA with DRAP
by accident in the future. Here is the updated DWARF patch. Can you
take a look?

Thanks.


-- 
H.J.
----
2008-07-08  Xuepeng Guo  <xuepeng.guo@intel.com>
	    H.J. Lu  <hongjiu.lu@intel.com>

	* dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
	vdrap_reg, stack_realign and drap_reg_saved.
	(add_cfi): Don't allow redefining CFA when DRAP is used.
	(reg_save): Handle stack alignment.
	(dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
	alignment.  Don't generate DWARF information for (set fp sp)
	when DRAP is used.
	(dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
	to INVALID_REGNUM.
	(int_loc_descriptor): Move prototype forward.  Also define if
	DWARF2_UNWIND_INFO is true.
	(output_cfa_loc): Handle DW_CFA_expression.
	(build_cfa_aligned_loc): New.
	(based_loc_descr): Update assert for stack realign.  For local
	variables, use sp+offset when stack is aligned without drap and
	fp+offset when stack is aligned with drap.  For arguments, use
	cfa+offset when drap is used to align stack.

Attachment: gcc-stack-v10-4.txt
Description: Text document


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