diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2018-08-22 11:42:53 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2018-08-22 11:42:53 +0000 |
commit | 36bd86fa510ec16c32d7d7134b5897787a3f54b2 (patch) | |
tree | 6f6a726ddc24075828175cdec30ae300aa6d9606 /gcc | |
parent | 333a29f9e88dbe5ed6fc0c9a1852c98b58831c77 (diff) | |
download | gcc-36bd86fa510ec16c32d7d7134b5897787a3f54b2.zip gcc-36bd86fa510ec16c32d7d7134b5897787a3f54b2.tar.gz gcc-36bd86fa510ec16c32d7d7134b5897787a3f54b2.tar.bz2 |
Allw for Darwin to operate with an assembler supporting gotoff in data.
gcc/
* config/i386/i386.c (ix86_output_addr_diff_elt): Move the MACH-O
specific test before the one for HAVE_AS_GOTOFF_IN_DATA.
From-SVN: r263764
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a0e321d..a3c6753 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2018-08-22 Iain Sandoe <iain@sandoe.co.uk> + * config/i386/i386.c (ix86_output_addr_diff_elt): Move the MACH-O + specific test before the one for HAVE_AS_GOTOFF_IN_DATA. + +2018-08-22 Iain Sandoe <iain@sandoe.co.uk> + PR bootstrap/81033 PR target/81733 PR target/52795 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 0b2b1b7..0311810 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -19768,8 +19768,6 @@ ix86_output_addr_diff_elt (FILE *file, int value, int rel) if (TARGET_64BIT || TARGET_VXWORKS_RTP) fprintf (file, "%s%s%d-%s%d\n", directive, LPREFIX, value, LPREFIX, rel); - else if (HAVE_AS_GOTOFF_IN_DATA) - fprintf (file, ASM_LONG "%s%d@GOTOFF\n", LPREFIX, value); #if TARGET_MACHO else if (TARGET_MACHO) { @@ -19778,6 +19776,8 @@ ix86_output_addr_diff_elt (FILE *file, int value, int rel) putc ('\n', file); } #endif + else if (HAVE_AS_GOTOFF_IN_DATA) + fprintf (file, ASM_LONG "%s%d@GOTOFF\n", LPREFIX, value); else asm_fprintf (file, ASM_LONG "%U%s+[.-%s%d]\n", GOT_SYMBOL_NAME, LPREFIX, value); |