This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/84011] Optimize switch table with run-time relocation
- From: "hubicka at ucw dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 May 2018 13:54:39 +0000
- Subject: [Bug tree-optimization/84011] Optimize switch table with run-time relocation
- Auto-submitted: auto-generated
- References: <bug-84011-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84011
--- Comment #11 from Jan Hubicka <hubicka at ucw dot cz> ---
>
> ?? That is the task for the linker SHF_MERGE|SHF_STRINGS handling.
> Why should gcc duplicate that?
I suppose there would be small room for improvements where GCC could use the
fact that one string's address is actually address of another string + offset.
That may save some relocations.
Honza