Commit f155bc64 by H.J. Lu Committed by H.J. Lu

Assert DWARF register size <= saved reg size

2012-03-13  H.J. Lu  <hongjiu.lu@intel.com>

	* unwind-dw2.c (_Unwind_SetGRValue): Assert DWARF register size
	<= saved reg size.

From-SVN: r185346
parent ff71e554
2012-03-13 H.J. Lu <hongjiu.lu@intel.com>
* unwind-dw2.c (_Unwind_SetGRValue): Assert DWARF register size
<= saved reg size.
2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/arm/crtn.S: Fix typo. * config/arm/crtn.S: Fix typo.
......
...@@ -294,7 +294,8 @@ _Unwind_SetGRValue (struct _Unwind_Context *context, int index, ...@@ -294,7 +294,8 @@ _Unwind_SetGRValue (struct _Unwind_Context *context, int index,
{ {
index = DWARF_REG_TO_UNWIND_COLUMN (index); index = DWARF_REG_TO_UNWIND_COLUMN (index);
gcc_assert (index < (int) sizeof(dwarf_reg_size_table)); gcc_assert (index < (int) sizeof(dwarf_reg_size_table));
gcc_assert (dwarf_reg_size_table[index] == sizeof (_Unwind_Context_Reg_Val)); /* Return column size may be smaller than _Unwind_Context_Reg_Val. */
gcc_assert (dwarf_reg_size_table[index] <= sizeof (_Unwind_Context_Reg_Val));
context->by_value[index] = 1; context->by_value[index] = 1;
context->reg[index] = _Unwind_Get_Unwind_Context_Reg_Val (val); context->reg[index] = _Unwind_Get_Unwind_Context_Reg_Val (val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment