]> gcc.gnu.org Git - gcc.git/commitdiff
Allw for Darwin to operate with an assembler supporting gotoff in data.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 22 Aug 2018 11:42:53 +0000 (11:42 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 22 Aug 2018 11:42:53 +0000 (11:42 +0000)
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

gcc/ChangeLog
gcc/config/i386/i386.c

index a0e321d874d6c49814f43d62f3995fba2eb55153..a3c675352dd96a3990f42b66f50fe7469e62879a 100644 (file)
@@ -1,3 +1,8 @@
+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
index 0b2b1b796d6e083ad38561e857bf0792f8d9ddf2..03118102319b4c243b5cc920f3a73d2805b9ad0c 100644 (file)
@@ -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);
This page took 0.153703 seconds and 5 git commands to generate.