> I'm afraid the inliner would need to prove the to be inlined callee doesn't > modify its own copy of the variable too, because if it modifies it (at least > in C/C++ const can be cast away), then this introduces wrong-code, see > PR100994 for details.
Then please remove the TREE_READONLY marker in C/C++ if this is a lie. -- Eric Botcazou