* config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
authorAndrew Pinski <apinski@apple.com>
Sun, 21 Sep 2003 00:27:37 +0000 (00:27 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Sun, 21 Sep 2003 00:27:37 +0000 (17:27 -0700)
From-SVN: r71617

gcc/ChangeLog
gcc/config/darwin.c

index 49c7e9242595e3c77abcf3de57ad0d9ab0ccabc9..934670180d054fa36933a961ff0e65319e788958 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-20  Andrew Pinski <apinski@apple.com>
+
+       * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
+
 2003-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * Makefile.in: Don't set (unused) DLLTOOL.
index 695ec6929529b9fc857ef9618a13478747314cfb..faa9739873fe8acb9685a88904d7469914beae63 100644 (file)
@@ -1242,7 +1242,7 @@ machopic_select_rtx_section (enum machine_mode mode, rtx x,
           && (GET_CODE (x) == CONST_INT
               || GET_CODE (x) == CONST_DOUBLE))
     literal4_section ();
-  else if (! MACHO_DYNAMIC_NO_PIC_P
+  else if (MACHOPIC_INDIRECT
           && (GET_CODE (x) == SYMBOL_REF
               || GET_CODE (x) == CONST
               || GET_CODE (x) == LABEL_REF))