This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Can we speed up the gcc_target structure?
> > What is preventing us from declaring the structure as constant so we
> > should get propagation even with current design?
>
> Targets that modify the structure at startup.
Maybe I'm misremembering, but wasn't one of the goals of using the
target structure to be able to switch them at runtime? If so, a
command line argument could change the pointer to point to a different
structure, which completely invalidates all such optimizations.