From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 651433857013; Tue, 6 Oct 2020 12:30:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 651433857013 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/97305] New: options-save.c:8526:26: error: unused variable 'mask' Date: Tue, 06 Oct 2020 12:30:25 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone cf_gcchost cf_gcctarget cf_gccbuild Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Oct 2020 12:30:25 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97305 Bug ID: 97305 Summary: options-save.c:8526:26: error: unused variable 'mask' Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: danglin at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- Host: hppa*-*-* Target: hppa*-*-* Build: hppa*-*-* options-save.c: In function 'void cl_target_option_save(cl_target_option*, gcc_o ptions*, gcc_options*)': options-save.c:8526:26: error: unused variable 'mask' [-Werror=3Dunused-var= iable] 8526 | unsigned HOST_WIDE_INT mask =3D 0; | ^~~~ options-save.c: In function 'void cl_target_option_restore(gcc_options*, gcc_opt ions*, cl_target_option*)': options-save.c:8537:26: error: unused variable 'mask' [-Werror=3Dunused-var= iable] 8537 | unsigned HOST_WIDE_INT mask; | ^~~~ /* Save selected option variables into a structure. */ void cl_target_option_save (struct cl_target_option *ptr, struct gcc_options *op= ts, struct gcc_options *opts_set) { if (targetm.target_option.save) targetm.target_option.save (ptr, opts, opts_set); ptr->x_target_flags =3D opts->x_target_flags; unsigned HOST_WIDE_INT mask =3D 0; ptr->explicit_mask_target_flags =3D opts_set->x_target_flags; }=