]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
opts: Fix up -ffold-mem-offsets option keywords
authorJakub Jelinek <jakub@redhat.com>
Thu, 18 Jan 2024 07:45:09 +0000 (08:45 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 18 Jan 2024 07:45:09 +0000 (08:45 +0100)
While the option was originally meant to be a Target option for a single
target, it is an option for all targets, so should be Common rather than
Target, and because it is an optimization option which could be different
in between different LTO TUs, I've added Optimization keyword too.
From what I can see, Bool is a non-documented non-existing keyword (at
least, grep Bool *.awk shows nothing, so I've dropped that too.  Seems
that the option parsing simply parses and ignores any non-existing keywords.

Guess we should drop the Bool keywords from the gcc/config/riscv/riscv.opt
file eventually, so that people don't copy this around.

2024-01-18  Jakub Jelinek  <jakub@redhat.com>

PR other/113399
* common.opt (ffold-mem-offsets): Remove Target and Bool keywords, add
Common and Optimization.

gcc/common.opt

index 5f0a101bccbaac4ec780a628371ec23077cfdcb9..7dc380cc153d45d905b113a21198e0dd6a1539e3 100644 (file)
@@ -1262,7 +1262,7 @@ Common Var(flag_cprop_registers) Optimization
 Perform a register copy-propagation optimization pass.
 
 ffold-mem-offsets
-Target Bool Var(flag_fold_mem_offsets) Init(1)
+Common Var(flag_fold_mem_offsets) Init(1) Optimization
 Fold instructions calculating memory offsets to the memory access instruction if possible.
 
 fcrossjumping