This is the mail archive of the gcc-bugs@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: c/7344: performance regression on huge case statements


> Jan,
> 
> This hunk:
> 
> *** expr.c	7 Oct 2002 07:37:09 -0000	1.486
> --- expr.c	11 Oct 2002 14:49:57 -0000
> *************** do_tablejump (index, mode, range, table_
> *** 10941,10946 ****
> --- 10930,10938 ----
>        enum machine_mode mode;
>   {
>     rtx temp, vector;
> + 
> +   if (range > cfun->max_jumptable_ents)
> +     cfun->max_jumptable_ents = range;
> 
> can't be right, `range' is an rtx and ->max_jumptable_ents is an int.

I will fix that.  Thanks!

Honza
> 
> It causes a warning regression in gcc (and a hard error with irix6-cc.)
> 
> 		--Kaveh
> 
> PS: Geoff, an automated warning regression checker would have caught
> this... ;-)
> 
> --
> Kaveh R. Ghazi			ghazi@caip.rutgers.edu


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