Patchwork [gccgo] Update personality language hook

login
register
mail settings
Submitter Ian Taylor
Date Oct. 23, 2010, 6:40 p.m.
Message ID <mcrsjzwsqgc.fsf@google.com>
Download mbox | patch
Permalink /patch/69008/
State New
Headers show

Comments

Ian Taylor - Oct. 23, 2010, 6:40 p.m.
This patch updates the personality hook in the gccgo frontend for RTH's
recent changes.  Committed to gccgo branch.

Ian

Patch

diff -r 11f82bc24788 go/go-lang.c
--- a/go/go-lang.c	Fri Oct 22 15:48:09 2010 -0700
+++ b/go/go-lang.c	Sat Oct 23 11:38:20 2010 -0700
@@ -292,10 +292,7 @@ 
   static tree personality_decl;
   if (personality_decl == NULL_TREE)
     {
-      const char* name = (targetm.except_unwind_info () == UI_SJLJ
-			  ? "__gccgo_personality_sj0"
-			  : "__gccgo_personality_v0");
-      personality_decl = build_personality_function (name);
+      personality_decl = build_personality_function ("gccgo");
       go_preserve_from_gc (personality_decl);
     }
   return personality_decl;