[GENERIC] problem when adding 2 VAR_DEC in the main function
Philip Herron
redbrain@gcc.gnu.org
Wed Oct 20 17:52:00 GMT 2010
On 20 October 2010 15:12, Ian Lance Taylor <iant@google.com> wrote:
> On Wed, Oct 20, 2010 at 3:30 AM, charfi asma <charfiasma@yahoo.fr> 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
More information about the Gcc-help
mailing list