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
This commit is contained in:
Richard Henderson 2001-08-27 10:25:36 -07:00 committed by Richard Henderson
parent 9f5cd0c518
commit 225b9cb9f7
2 changed files with 8 additions and 4 deletions

View File

@ -2,6 +2,7 @@
* 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.
2001-08-26 Andreas Jaeger <aj@suse.de>

View File

@ -3636,16 +3636,19 @@ output_function_exception_table ()
while (i-- > 0)
{
tree type = VARRAY_TREE (cfun->eh->ttype_data, i);
rtx value;
if (type == NULL_TREE)
type = integer_zero_node;
else
type = lookup_type_for_runtime (type);
dw2_asm_output_encoded_addr_rtx (tt_format,
expand_expr (type, NULL_RTX, VOIDmode,
EXPAND_INITIALIZER),
NULL);
value = expand_expr (type, NULL_RTX, VOIDmode, EXPAND_INITIALIZER);
if (tt_format == DW_EH_PE_absptr || tt_format == DW_EH_PE_aligned)
assemble_integer (value, tt_format_size,
tt_format_size * BITS_PER_UNIT, 1);
else
dw2_asm_output_encoded_addr_rtx (tt_format, value, NULL);
}
#ifdef HAVE_AS_LEB128