This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch to call assemble_external_libcall on personality function


This patch fixes some linker warnings on ia64-hpux which were noticed
in the course of fixing exception handling problems but which proved
irrelevant to those problems: the exception handling personality
function is used in unwind tables without being properly imported as a
function; assemble_external_libcall should be called as it already is
for sjlj exceptions.  (This does not fix any testsuite failures.)

Bootstrapped with no regressions on ia64-hp-hpux11.23.  OK to commit?

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)

2005-02-17  Joseph S. Myers  <joseph@codesourcery.com>

	* except.c (output_function_exception_table): Call
	assemble_external_libcall (eh_personality_libfunc).

diff -rupN GCC.orig/gcc/except.c GCC/gcc/except.c
--- GCC.orig/gcc/except.c	2005-02-01 22:41:04.000000000 +0000
+++ GCC/gcc/except.c	2005-02-15 23:24:39.000000000 +0000
@@ -3248,6 +3248,7 @@ output_function_exception_table (void)
 
 #ifdef TARGET_UNWIND_INFO
   /* TODO: Move this into target file.  */
+  assemble_external_libcall (eh_personality_libfunc);
   fputs ("\t.personality\t", asm_out_file);
   output_addr_const (asm_out_file, eh_personality_libfunc);
   fputs ("\n\t.handlerdata\n", asm_out_file);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]