[PATCH] Fix -Wenum-compare-switch warning in i386.c.

Jeff Law law@redhat.com
Mon Apr 29 21:22:00 GMT 2019


On 3/8/19 5:34 AM, Martin Liška wrote:
> A small patch that deals with:
> gcc/config/i386/i386.c:39427:11:Semantic Issue: comparison of two values with different enumeration types in switch statement ('enum built_in_function' and 'ix86_builtins'): -Wenum-compare-switch
> 
> Is it fine to install it?
> Thanks,
> Martin
> 
> gcc/ChangeLog:
> 
> 2019-03-08  Martin Liska  <mliska@suse.cz>
> 
> 	* config/i386/i386.c (ix86_builtin_reciprocal): Cast
> 	DECL_FUNCTION_CODE into ix86_builtins enum before
> 	the switch statement.
OK
jeff



More information about the Gcc-patches mailing list