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: Basile Starynkevitch <basile at starynkevitch dot net>
- To: Mohsin Khan <mohsin1510 at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 18 Feb 2014 07:17:48 +0100
- 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>
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} ***