This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]