RFA: Fix optab reinitialisation when $(CC) is GCC 4.0 or above

Jakub Jelinek jakub@redhat.com
Wed Dec 5 10:32:00 GMT 2007

On Wed, Dec 05, 2007 at 08:08:54AM +0000, Richard Sandiford wrote:
> OK, no-one spoke out in favour of the original patch, and looking back,
> my comments were just foolish, sorry.  So here's a patch to do what you
> suggest.  Bootstrapped & regression-tested on x86_64-linux-gnu ({,-m32}).
> Also regression-tested on mipsisa64-elfoabi.  The bootstrap compiler was
> GCC 3.4, so it can still build optabs.c.


> 	* optabs.c (clear_insn_codes): New function.
> 	(new_optab): Delete.
> 	(init_optab, init_optabv): Don't call new_optab.
> 	(init_convert_optab): Don't clear the insn codes.
> 	(init_optabs): Call clear_insn_codes.

Just a minor ChangeLog nit - the code uses init_insn_codes, but ChangeLog
uses clear_init_codes.


More information about the Gcc-patches mailing list