[NDS32] Implement TARGET_ENCODE_SECTION_INFO to store specific flag in symbol_ref...
authorChung-Ju Wu <jasonwucj@gmail.com>
Tue, 13 Jan 2015 05:59:03 +0000 (05:59 +0000)
committerChung-Ju Wu <jasonwucj@gcc.gnu.org>
Tue, 13 Jan 2015 05:59:03 +0000 (05:59 +0000)
commit511a41d799f2a3b9946d5176ff0f5404077d2bec
tree87e98cb1caaaa6089af45c21d8c509ed6d016192
parentda0675433410f073bb5dc199e6ef4e83e036e2c9
[NDS32] Implement TARGET_ENCODE_SECTION_INFO to store specific flag in symbol_ref rtx.

gcc/
* config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
target-specific symbol_ref flag.
(NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
resides in rodata section.
* config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
(nds32_encode_section_info): New function.

From-SVN: r219514
gcc/ChangeLog
gcc/config/nds32/nds32.c
gcc/config/nds32/nds32.h