nios2-protos.h (nios2_symbol_ref_in_small_data_p): Delete extern declaration.
authorChung-Lin Tang <cltang@codesourcery.com>
Sun, 5 Jul 2015 21:49:08 +0000 (21:49 +0000)
committerSandra Loosemore <sandra@gcc.gnu.org>
Sun, 5 Jul 2015 21:49:08 +0000 (17:49 -0400)
commit7dcc7195959693f57a3df3ccc92854566b96b590
treeed87521b0f371de05b482aab31fb3b60a63fc020
parent291e91daa73361a1f4a426a879f89c1ea6cf0e9f
nios2-protos.h (nios2_symbol_ref_in_small_data_p): Delete extern declaration.

2015-07-05  Chung-Lin Tang  <cltang@codesourcery.com>
    Sandra Loosemore <sandra@codesourcery.com>

gcc/
* config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
Delete extern declaration.
(gprel_constant_p): Add extern declaration.
* config/nios2/constraints.md ("S"): Use gprel_constant_p
instead of nios2_symbol_ref_in_small_data_p.
* config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
(nios2_symbol_ref_in_small_data_p): Make static.
(gprel_constant_p): Make non-static.

gcc/testsuite/
* gcc.target/nios2/gprel-offset.c: New test.

Co-Authored-By: Sandra Loosemore <sandra@codesourcery.com>
From-SVN: r225437
gcc/ChangeLog
gcc/config/nios2/constraints.md
gcc/config/nios2/nios2-protos.h
gcc/config/nios2/nios2.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/nios2/gprel-offset.c [new file with mode: 0644]