diff options
author | Alexandre Oliva <oliva@adacore.com> | 2018-08-22 03:48:00 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2018-08-22 03:48:00 +0000 |
commit | 30379cbf93b793ecce02968a8db989e8c2b627b3 (patch) | |
tree | 29cbe8aec31d2c3252db4e00ffd18ef2f70c954b /gcc/config | |
parent | 141f2b50ce9e2a4f9b969bb011c1f61126d86017 (diff) | |
download | gcc-30379cbf93b793ecce02968a8db989e8c2b627b3.zip gcc-30379cbf93b793ecce02968a8db989e8c2b627b3.tar.gz gcc-30379cbf93b793ecce02968a8db989e8c2b627b3.tar.bz2 |
rs6000 small data: add note on sdata2/r2
for gcc/ChangeLog
* config/rs6000/rs6000.c (SMALL_DATA_RELOC, SMALL_DATA_REG): Add
a comment about how uses of r2 for .sdata2 come about.
From-SVN: r263760
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index 97b922f..252d197 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -20349,6 +20349,9 @@ rs6000_output_function_entry (FILE *file, const char *fname) /* Print an operand. Recognize special options, documented below. */ #if TARGET_ELF +/* Access to .sdata2 through r2 (see -msdata=eabi in invoke.texi) is + only introduced by the linker, when applying the sda21 + relocation. */ #define SMALL_DATA_RELOC ((rs6000_sdata == SDATA_EABI) ? "sda21" : "sdarel") #define SMALL_DATA_REG ((rs6000_sdata == SDATA_EABI) ? 0 : 13) #else |