aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2020-10-07 10:52:47 +0200
committerJakub Jelinek <jakub@redhat.com>2020-10-07 10:52:47 +0200
commite91c34262d2dd06da4b9436744bff89007dee2c9 (patch)
tree2a68ec873f7362cad4d860c537f2ca7c2762e818 /gcc/gcc.c
parent83f565ed4f37e550e1d40f7b6cf0b5845f29a9c7 (diff)
downloadgcc-e91c34262d2dd06da4b9436744bff89007dee2c9.zip
gcc-e91c34262d2dd06da4b9436744bff89007dee2c9.tar.gz
gcc-e91c34262d2dd06da4b9436744bff89007dee2c9.tar.bz2
options: Avoid unused variable mask warning [PR97305]
> options-save.c: In function 'void cl_target_option_save(cl_target_option*, gcc_options*, gcc_options*)': > options-save.c:8526:26: error: unused variable 'mask' [-Werror=unused-variable] > 8526 | unsigned HOST_WIDE_INT mask = 0; > | ^~~~ > options-save.c: In function 'void cl_target_option_restore(gcc_options*, gcc_options*, cl_target_option*)': > options-save.c:8537:26: error: unused variable 'mask' [-Werror=unused-variable] > 8537 | unsigned HOST_WIDE_INT mask; > | ^~~~ Oops, missed that, sorry. The following patch should fix that, tested on x86_64-linux make options-save.c (same file as before) and -> ia64-linux cross make options-save.o (no warning anymore, just the unwanted declarations gone). 2020-10-07 Jakub Jelinek <jakub@redhat.com> PR bootstrap/97305 * optc-save-gen.awk: Don't declare mask variable if explicit_mask array is not present.
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions