aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2024-01-18 08:45:09 +0100
committerJakub Jelinek <jakub@redhat.com>2024-01-18 08:45:09 +0100
commit1203fc2e6a40c65896763554f62cacfb4bd6a836 (patch)
tree09076590438bd7c89baa4f608542421fe8817f58
parentb981d5c60b8ef78e2adecd6b5d7e36f9e5e61c54 (diff)
downloadgcc-1203fc2e6a40c65896763554f62cacfb4bd6a836.zip
gcc-1203fc2e6a40c65896763554f62cacfb4bd6a836.tar.gz
gcc-1203fc2e6a40c65896763554f62cacfb4bd6a836.tar.bz2
opts: Fix up -ffold-mem-offsets option keywords
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.
-rw-r--r--gcc/common.opt2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index 5f0a101..7dc380c 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -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