Re: Use checking forms of DECL_FUNCTION_CODE (PR 91421)

2019-08-13 Thread Jeff Law
On 8/13/19 3:36 AM, Richard Sandiford wrote: > We were shoe-horning all built-in enumerations (including frontend > and target-specific ones) into a field of type built_in_function. This > was accessed as either an lvalue or an rvalue using DECL_FUNCTION_CODE. > > The obvious danger with this (as

Use checking forms of DECL_FUNCTION_CODE (PR 91421)

2019-08-13 Thread Richard Sandiford
We were shoe-horning all built-in enumerations (including frontend and target-specific ones) into a field of type built_in_function. This was accessed as either an lvalue or an rvalue using DECL_FUNCTION_CODE. The obvious danger with this (as was noted by several ??? comments) is that the ranges