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]

Re: [patch] record extern weak decls in assemble_external


> Sure. I am leaving tomorrow in vacation, so if I can't find it right
> now I will have to revert it, but I will try :-(

The attached patch is completely untested, but should fix the problem
based on the dump.

Thanks,
-- 
Rafael Avila de Espindola

Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland

Registered in Dublin, Ireland
Registration Number: 368047
diff --git a/gcc/final.c b/gcc/final.c
index 2a9d40b..073ecc9 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -1757,7 +1757,12 @@ call_from_call_insn (rtx insn)
       switch (GET_CODE (x))
 	{
 	default:
+	  debug_rtx(insn);
+	  error ("Unexpected code: %s", tree_code_name[code]);
 	  gcc_unreachable ();
+	case COND_EXEC:
+	  x = XEXP (x, 1);
+	  break;
 	case PARALLEL:
 	  x = XVECEXP (x, 0, 0);
 	  break;

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