aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/libgcc/unwind-dw2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.7/libgcc/unwind-dw2.c')
-rw-r--r--gcc-4.7/libgcc/unwind-dw2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc-4.7/libgcc/unwind-dw2.c b/gcc-4.7/libgcc/unwind-dw2.c
index 475ad00bf..d1c62eef1 100644
--- a/gcc-4.7/libgcc/unwind-dw2.c
+++ b/gcc-4.7/libgcc/unwind-dw2.c
@@ -294,7 +294,8 @@ _Unwind_SetGRValue (struct _Unwind_Context *context, int index,
{
index = DWARF_REG_TO_UNWIND_COLUMN (index);
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->reg[index] = _Unwind_Get_Unwind_Context_Reg_Val (val);