* config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.

From-SVN: r71617
This commit is contained in:
Andrew Pinski 2003-09-21 00:27:37 +00:00 committed by Andrew Pinski
parent 5f0ccd0b63
commit 86b0a4f337
2 changed files with 5 additions and 1 deletions

View 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.

View 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))