diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2017-10-26 16:49:48 -0400 |
---|---|---|
committer | Sandra Loosemore <sandra@gcc.gnu.org> | 2017-10-26 16:49:48 -0400 |
commit | de10fca02a806c8c323041c5e904abaaef510fc0 (patch) | |
tree | f40537de19218fb2bcb55461d96038ae8d100d5d /gcc/config/nios2/nios2.opt | |
parent | 31498bee1acc00d89ea82c9c8614aa65f1eff2e8 (diff) | |
download | gcc-de10fca02a806c8c323041c5e904abaaef510fc0.zip gcc-de10fca02a806c8c323041c5e904abaaef510fc0.tar.gz gcc-de10fca02a806c8c323041c5e904abaaef510fc0.tar.bz2 |
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
Diffstat (limited to 'gcc/config/nios2/nios2.opt')
-rw-r--r-- | gcc/config/nios2/nios2.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/nios2/nios2.opt b/gcc/config/nios2/nios2.opt index 08cb935..d08405e 100644 --- a/gcc/config/nios2/nios2.opt +++ b/gcc/config/nios2/nios2.opt @@ -586,3 +586,7 @@ Enable generation of R2 BMX instructions. mcdx Target Report Mask(HAS_CDX) Enable generation of R2 CDX instructions. + +mgprel-sec= +Target RejectNegative Joined Var(nios2_gprel_sec) Init(NULL) +Regular expression matching additional GP-addressible small-data section names. |