On 7/16/2026 11:41 AM, Brian Cain wrote:
> With --disable-hexagon-idef-parser, tcg_funcs_generated.c.inc fails
> to build under GCC 14 with:
> 
>   error: declaration of 'HALF' shadows a previous local
>   [-Werror=shadow=local]
> 
> This became a hard error with GCC ced651b7757e `c23: tag compatibility
> rules for enums`.
> 
> After that GCC change, DECL_FILE_SCOPE_P is false for all
> enumerators, so shadowing now falls under -Wshadow=local.
> 
> Rename the local variable to tmp_half to avoid the collision.
> 
> Signed-off-by: Brian Cain <[email protected]>
> ---
>  target/hexagon/gen_tcg.h | 4 ++--
>  target/hexagon/macros.h  | 4 ++--
>  2 files changed, 4 insertions(+), 4 deletions(-)
> 

Reviewed-by: Pierrick Bouvier <[email protected]>

Reply via email to