This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] record extern weak decls in assemble_external
On Wed, Jul 30, 2008 at 9:40 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
> 2008/7/30 Rafael Espindola <espindola@google.com>:
>>> 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.
>>
>
>
> It won't compile:
>
> ../../src/gcc/final.c: In function 'call_from_call_insn':
> ../../src/gcc/final.c:1761: error: 'code' undeclared (first use in this function
> )
> ../../src/gcc/final.c:1761: error: (Each undeclared identifier is reported only
> once
> ../../src/gcc/final.c:1761: error: for each function it appears in.)
>
> Did you mean
This
Index: final.c
===================================================================
--- final.c (revision 138310)
+++ final.c (working copy)
@@ -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[GET_CODE (x)]);
gcc_unreachable ();
+ case COND_EXEC:
+ x = XEXP (x, 1);
+ break;
case PARALLEL:
x = XVECEXP (x, 0, 0);
--
H.J.