]> git.ipfire.org Git - thirdparty/gcc.git/commit
Properly use opts in finish_options
authorRichard Biener <rguenther@suse.de>
Tue, 10 May 2022 07:47:06 +0000 (09:47 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 10 May 2022 09:40:50 +0000 (11:40 +0200)
commitd4694846102a9589558dd509ef70b7960063935d
tree0391f149be47e79a1216fafac117599bb06ba6ef
parent5b7a9751f55bcdb7d9a69345e02f62aaa7035d6b
Properly use opts in finish_options

When code was moved from process_options to finish_options it
was not properly adjusted to look at and alter the opts set
passed to the function but continued to modify the global options
set.  The following rectifies this and makes sure the same
mistake isn't repeated by poisoning global_options{,_set}.

2022-05-10  Richard Biener  <rguenther@suse.de>

* flags.h (dwarf_debuginfo_p): Add opts argument, guard
API with !GENERATOR_FILE.
* opts.cc (global_options): Poison.
(global_options_set): Likewise.
(finish_options): Refer to options via opts.
gcc/flags.h
gcc/opts.cc