[Bug target/71151] [avr] -fmerge-constants and -fdata-sections/-ffunction-sections results in string constants in .progmem.gcc_sw section
senthil.thecoder at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jun 1 13:04:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151
--- Comment #9 from Senthil Kumar Selvaraj <senthil.thecoder at gmail dot com> ---
For both kinds of invocation (mergeable constants and jump tables), the decl
passed is current_function_decl. And that looks right from the documentation
for the target hook.
I'll submit another patch for trunk that adds a new SECCAT_RODATA_JUMPTABLE to
enum section_category, and then passes the section_category down to the target
hook. avr_asm_function_rodata_section can then choose to return the correct
section based on the category.
What do you think?
More information about the Gcc-bugs
mailing list