Commit 225b9cb9 by Richard Henderson Committed by Richard Henderson

dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper alignment for…

dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper alignment for assemble_integer for DW_EH_PE_aligned.

        * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
        alignment for assemble_integer for DW_EH_PE_aligned.
        * except.c (output_function_exception_table): Likewise.

From-SVN: r45198
parent 9f5cd0c5
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
* dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
alignment for assemble_integer for DW_EH_PE_aligned. alignment for assemble_integer for DW_EH_PE_aligned.
* except.c (output_function_exception_table): Likewise.
2001-08-26 Andreas Jaeger <aj@suse.de> 2001-08-26 Andreas Jaeger <aj@suse.de>
......
...@@ -3636,16 +3636,19 @@ output_function_exception_table () ...@@ -3636,16 +3636,19 @@ output_function_exception_table ()
while (i-- > 0) while (i-- > 0)
{ {
tree type = VARRAY_TREE (cfun->eh->ttype_data, i); tree type = VARRAY_TREE (cfun->eh->ttype_data, i);
rtx value;
if (type == NULL_TREE) if (type == NULL_TREE)
type = integer_zero_node; type = integer_zero_node;
else else
type = lookup_type_for_runtime (type); type = lookup_type_for_runtime (type);
dw2_asm_output_encoded_addr_rtx (tt_format, value = expand_expr (type, NULL_RTX, VOIDmode, EXPAND_INITIALIZER);
expand_expr (type, NULL_RTX, VOIDmode, if (tt_format == DW_EH_PE_absptr || tt_format == DW_EH_PE_aligned)
EXPAND_INITIALIZER), assemble_integer (value, tt_format_size,
NULL); tt_format_size * BITS_PER_UNIT, 1);
else
dw2_asm_output_encoded_addr_rtx (tt_format, value, NULL);
} }
#ifdef HAVE_AS_LEB128 #ifdef HAVE_AS_LEB128
......
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