From 19ae544530188caba340362af6878f3224a83eab Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 18 Sep 2003 20:47:38 +0000 Subject: [PATCH] except.c (output_function_exception_table): Adjust last change to handle TYPE of INTEGER_CST. * except.c (output_function_exception_table): Adjust last change to handle TYPE of INTEGER_CST. From-SVN: r71540 --- gcc/ChangeLog | 5 +++++ gcc/except.c | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2634cbbcedd..b8d779dd9c1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-09-18 Richard Kenner + + * except.c (output_function_exception_table): Adjust last change + to handle TYPE of INTEGER_CST. + 2003-09-18 Mark Mitchell PR target/11184 diff --git a/gcc/except.c b/gcc/except.c index 6745dd1bd5e..220835e1475 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -3707,12 +3707,14 @@ output_function_exception_table (void) /* Let cgraph know that the rtti decl is used. Not all of the paths below go through assemble_integer, which would take care of this for us. */ - if (TREE_CODE (type) != ADDR_EXPR) + if (TREE_CODE (type) == ADDR_EXPR) + { + node = cgraph_varpool_node (type); + if (node) + cgraph_varpool_mark_needed_node (node); + } + else if (TREE_CODE (type) != INTEGER_CST) abort (); - type = TREE_OPERAND (type, 0); - node = cgraph_varpool_node (type); - if (node) - cgraph_varpool_mark_needed_node (node); } if (tt_format == DW_EH_PE_absptr || tt_format == DW_EH_PE_aligned) -- 2.30.2