This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Help Required on Missing GOTO statements in Gimple/SSA/CFG Pass ...
- From: Mohsin Khan <mohsin1510 at gmail dot com>
- To: Basile Starynkevitch <basile at starynkevitch dot net>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 5 Mar 2014 21:57:15 +0530
- Subject: Re: Help Required on Missing GOTO statements in Gimple/SSA/CFG Pass ...
- Authentication-results: sourceware.org; auth=none
- References: <CAHzm3F8ax2LvgMXAqJS5CSXv98yAW96NRp7kVTfXGMTusvkvNw at mail dot gmail dot com> <1392704268 dot 2171 dot 2 dot camel at glinka dot lesours>
Hi,
I am extremely sorry as I couldn't reply from many days. Actually I
was busy with some personal work so I didn't work for many days.
I didn't use MELT because, I didn't want learn a new language and
also my professor wanted me to code the plugin in C/C++ .
On 2/18/14, Basile Starynkevitch <basile@starynkevitch.net> wrote:
> On Tue, 2014-02-18 at 11:17 +0530, Mohsin Khan wrote:
>> Hi,
>>
>> I am developing plugins for the GCC-4.8.2. I am a newbie in plugins.
>> I wrote a plugin and tried to count and see the Goto Statements using
>> the gimple_stmt_iterator. I get gimple statements printed on my
>> stdout, but I am not able to find the line which has goto statements.
>
> I guess that most GOTOs are just becoming implicit as the link to the
> next basic block.
>
> Probably
>
> if (!cond) goto end;
> something;
> end:;
>
> has nearly the same Gimple representation than
> while (cond) {
> something;
> }
>
> BTW, did you consider using MELT http://gcc-melt.org/ to code your GCC
> extension?
>
> --
> Basile STARYNKEVITCH http://starynkevitch.net/Basile/
> email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
> 8, rue de la Faiencerie, 92340 Bourg La Reine, France
> *** opinions {are only mine, sont seulement les miennes} ***
>
>
>