diff mbox

[gccgo] Update personality language hook

Message ID mcrsjzwsqgc.fsf@google.com
State New
Headers show

Commit Message

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

Ian
diff mbox

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;