This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/15242] pessimization of "goto *"
- From: "zlomj9am at artax dot karlin dot mff dot cuni dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2004 04:49:02 -0000
- Subject: [Bug rtl-optimization/15242] pessimization of "goto *"
- References: <20040501142654.15242.anton@mips.complang.tuwien.ac.at>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From zlomj9am at artax dot karlin dot mff dot cuni dot cz 2004-07-07 04:49 -------
Subject: Re: pessimization of "goto *"
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-07-06 22:00 -------
> It looks like you can remove:
> + if (!cfun->computed_goto_common_label)
> + return;
>
> from the patch.
cfun->computed_goto_common_label can be replaced by cfun->has_computed_jump.
The test is there not to scan the function if the computed goto is not
used in the function.
Josef
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15242