i386: Resolve variable shadowing in i386-options.c [PR98671]
authorUros Bizjak <ubizjak@gmail.com>
Thu, 14 Jan 2021 15:28:27 +0000 (16:28 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Thu, 14 Jan 2021 15:29:21 +0000 (16:29 +0100)
commit5ebdd53534db25401473db5f6a0ad30f41410241
tree35af51262f90052e3c7ac686f555466162cdd577
parent2182274f510c180ea92a4f826a0f6cf5f1f55b66
i386: Resolve variable shadowing in i386-options.c [PR98671]

Also change global variable pta_size to unsigned.

2021-01-14  Uroš Bizjak  <ubizjak@gmail.com>

gcc/
PR target/98671
* config/i386/i386-options.c (ix86_valid_target_attribute_inner_p):
Remove declaration and initialization of shadow variable "ret".
(ix86_option_override_internal): Remove delcaration of
shadow variable "i".  Redeclare shadowed variable to unsigned.
* common/config/i386/i386-common.c (pta_size): Redeclare to unsigned.
* config/i386/i386-builtins.c (get_builtin_code_for_version):
Update for redeclaration.
* config/i386/i386.h (pta_size): Ditto.
gcc/common/config/i386/i386-common.c
gcc/config/i386/i386-builtins.c
gcc/config/i386/i386-options.c
gcc/config/i386/i386.h