public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [patch 0/2] PR49847: Add hook to place read-only lookup-tables in named address-space
@ 2017-07-27 12:29 Georg-Johann Lay
  2017-07-27 12:34 ` Richard Biener
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Georg-Johann Lay @ 2017-07-27 12:29 UTC (permalink / raw)
  To: gcc-patches; +Cc: Denis Chertykov

For some targets, the best place to put read-only lookup tables as
generated by -ftree-switch-conversion is not the generic address space
but some target specific address space.

This is the case for AVR, where for most devices .rodata must be
located in RAM.

Part #1 adds a new, optional target hook that queries the back-end
about the desired address space.  There is currently only one user:
tree-switch-conversion.c::build_one_array() which re-builds value_type
and array_type if the address space returned by the backend is not
the generic one.

Part #2 is the AVR part that implements the new hook and adds some
sugar around it.

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-08-18 14:36 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-27 12:29 [patch 0/2] PR49847: Add hook to place read-only lookup-tables in named address-space Georg-Johann Lay
2017-07-27 12:34 ` Richard Biener
2017-07-27 13:32   ` Georg-Johann Lay
2017-07-28  7:34     ` Richard Biener
2017-07-28 10:18       ` Georg-Johann Lay
2017-07-28 11:15         ` Richard Biener
2017-07-28 18:16           ` Georg-Johann Lay
2017-08-16 14:29       ` Georg-Johann Lay
2017-08-18 10:35         ` Richard Biener
2017-08-18 14:54           ` Georg-Johann Lay
2017-07-27 12:41 ` [patch 1/2] " Georg-Johann Lay
2017-07-27 12:50 ` [patch 2/2,avr] " Georg-Johann Lay
2017-07-27 15:48   ` Denis Chertykov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).