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: Sun, 29 Jan 2012 14:55:48 +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/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49857
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |tree-optimization
--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-01-29 14:55:48 UTC ---
Changed component from "target" to "tree-optimization" because:
The code in tree-switch-conversion.c needs to be extended by, say, a target
hook that queries the backend for the right address space for the generated
lookup table, i.e. the CSWTCH.num objects.
This is needed for two reasons:
1) The data (CSWTCH.num) has to be located in the preferred section,
i.e. in Flash and not in RAM.
2) The accesses have to use the right instructions, i.e. instructions to read
from non-generic address space (Flash) and not instructions to access generic
address space (RAM).