Re: [GENERIC] problem when adding 2 VAR_DEC in the main function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20 October 2010 15:12, Ian Lance Taylor <iant@xxxxxxxxxx> wrote:
> On Wed, Oct 20, 2010 at 3:30 AM, charfi asma <charfiasma@xxxxxxxx> wrote:
>
>> it seems that  the function gimplify_var_or_parm_decl consider that I have a
>> duplicate declaration.
>
> The error means specifically that the variable was not seen in a
> BIND_EXPR.  Did you add the second variable to the BIND_EXPR like the
> first?  Was the BIND_EXPR passed to the gimplifier?
>
> Put a breakpoint on gimplify_bind_expr and make sure that the variable
> is seen there.
>
> Ian
>

one thing i found very useful in learning to code gcc front-ends is
added debug_tree (tree) in your gimplify expression lang_hook this
will print debug info about the tree's which get gimplified.

--Phil



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux