re PR target/59710 (Nios2: Missing gprel optimization)
authorSandra Loosemore <sandra@codesourcery.com>
Fri, 16 Jan 2015 00:43:24 +0000 (19:43 -0500)
committerSandra Loosemore <sandra@gcc.gnu.org>
Fri, 16 Jan 2015 00:43:24 +0000 (19:43 -0500)
commit56314783c33b58a03f7eee9d48b4a2628ee6e1f0
treeb1d96161869c324829935c3225c92cdf829068c9
parent23470a893c490e9bb8ed134d1c08102c8c1248c9
re PR target/59710 (Nios2: Missing gprel optimization)

2015-01-15  Sandra Loosemore  <sandra@codesourcery.com>

PR target/59710

gcc/
* doc/invoke.texi (Option Summary): Document new Nios II
-mgpopt= syntax.
(Nios II Options): Likewise.
* config/nios2/nios2.opt: Add -mgpopt= option support.
Modify existing -mgpopt and -mno-gpopt options to be aliases.
* config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
* config/nios2/nios2.c (nios2_option_override): Adjust
-mgpopt defaulting.
(nios2_in_small_data_p): Return true for explicit small data
sections even with -G0.
(nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
option choices.

gcc/testsuite/
* gcc.target/nios2/gpopt-all.c: New test case.
* gcc.target/nios2/gpopt-local.c: New test case.
* gcc.target/nios2/gpopt-global.c: New test case.
* gcc.target/nios2/gpopt-data.c: New test case.
* gcc.target/nios2/gpopt-none.c: New test case.

From-SVN: r219700
gcc/ChangeLog
gcc/config/nios2/nios2-opts.h
gcc/config/nios2/nios2.c
gcc/config/nios2/nios2.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/nios2/gpopt-all.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nios2/gpopt-data.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nios2/gpopt-global.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nios2/gpopt-local.c [new file with mode: 0644]
gcc/testsuite/gcc.target/nios2/gpopt-none.c [new file with mode: 0644]