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


> Hi Rafael,
>
> I believe your patch caused:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36974


Can you please test the attached patch? It should add a error message.

> Can you take a look at it?


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 :-(

> Thanks.
>
>
> --
> H.J.
>


Sorry about that,
-- 
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..57f771d 100644
--- a/gcc/final.c
+++ b/gcc/final.c
@@ -1757,6 +1757,8 @@ 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 PARALLEL:
 	  x = XVECEXP (x, 0, 0);

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