This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49857] Put constant switch-tables into flash
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Jul 2017 12:22:05 +0000
- Subject: [Bug tree-optimization/49857] Put constant switch-tables into flash
- Auto-submitted: auto-generated
- References: <bug-49857-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49857
--- Comment #16 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
(In reply to Georg-Johann Lay from comment #15)
> pr49857-v2-all.diff: Proposed patch
Problems so far:
* ivopts may shred address-space which results in wrong code. This is is the
reason for why the patch doesn't -maddr-space-for-lookup=memx
$ make -k check-gcc RUNTESTFLAGS="--target_board=atmega128-sim
execute.exp='20120808-1.c pr35800.c' --tool_opts=-maddr-space-for-lookup=memx"
* tree-swich-conversion might bloat the code, cf. PR81540 so it may even
be better to disable tree-switch-conversion per default.