This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: test patch for computed gotos


FYI, this patch:
2003-02-15  Richard Henderson  <rth@redhat.com>

        * cfgcleanup.c: Include params.h.
        (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES.  Fix test for
        too many outgoing edges from a block.
        * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
        * params.def (max-crossjump-edges): New.
        * doc/invoke.texi: Document it.

also fixes PR 6798 (not surprisingly: this consists basically of a huge
switch statement with breaks in each case, so that the block after the
switch has some 2500 incoming edges).
(I confirmed this by backing out the part of the patch to cfgcleanup.c.)

IOW, this might be worth backporting to 3.2 (which doesn't even have the
"if (n > 100)"-test that you fixed) and 3.3.

Arend



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]