summaryrefslogtreecommitdiff
path: root/gcc/except.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-20 03:16:25 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2007-03-20 03:16:25 +0000
commit9519f67b7354793ab2f76f4e10b48b258e5d6d63 (patch)
tree40e825630fc5f78fc3d9e6804e12801d9611ae27 /gcc/except.c
parent41e8f45642f58e4944eac8f3399986e8729969b0 (diff)
downloadgcc-9519f67b7354793ab2f76f4e10b48b258e5d6d63.tar.gz
* except.c (output_function_exception_table): Do not reference the
EH personality routine for functions that do not require an exception table. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@123082 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/except.c')
-rw-r--r--gcc/except.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/except.c b/gcc/except.c
index 915059c3971..e6c1b48f49a 100644
--- a/gcc/except.c
+++ b/gcc/except.c
@@ -3633,13 +3633,13 @@ output_function_exception_table (const char * ARG_UNUSED (fnname))
int have_tt_data;
int tt_format_size = 0;
- if (eh_personality_libfunc)
- assemble_external_libcall (eh_personality_libfunc);
-
/* Not all functions need anything. */
if (! cfun->uses_eh_lsda)
return;
+ if (eh_personality_libfunc)
+ assemble_external_libcall (eh_personality_libfunc);
+
#ifdef TARGET_UNWIND_INFO
/* TODO: Move this into target file. */
fputs ("\t.personality\t", asm_out_file);