nios2.c: Include xregex.h.
authorSandra Loosemore <sandra@codesourcery.com>
Thu, 26 Oct 2017 20:49:48 +0000 (16:49 -0400)
committerSandra Loosemore <sandra@gcc.gnu.org>
Thu, 26 Oct 2017 20:49:48 +0000 (16:49 -0400)
commitde10fca02a806c8c323041c5e904abaaef510fc0
treef40537de19218fb2bcb55461d96038ae8d100d5d
parent31498bee1acc00d89ea82c9c8614aa65f1eff2e8
nios2.c: Include xregex.h.

2017-10-26  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/nios2/nios2.c: Include xregex.h.
(nios2_gprel_sec_regex): New.
(nios2_option_overide): Initialize it.  Don't allow GP-relative
addressing with PIC.
(nios2_small_section_name_p): Check for regex match.
* config/nios2/nios2.opt (mgprel-sec=): New option.
* doc/invoke.texi (Option Summary): Add -mgprel-sec.
(Nios II Options): Document -mgprel-sec.

gcc/testsuite/
* gcc.target/nios2/gpopt-gprel-sec.c: New.

From-SVN: r254123
gcc/ChangeLog
gcc/config/nios2/nios2.c
gcc/config/nios2/nios2.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/nios2/gpopt-gprel-sec.c [new file with mode: 0644]