[Bug tree-optimization/49857] Put constant switch-tables into flash

gjl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 25 12:22:00 GMT 2017


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.


More information about the Gcc-bugs mailing list