From: Andrew Pinski Date: Sun, 21 Sep 2003 00:27:37 +0000 (+0000) Subject: * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code. X-Git-Tag: releases/gcc-3.4.0~3612 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86b0a4f337873565e5b2b13c1ff5926aada3f9ae;p=thirdparty%2Fgcc.git * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code. From-SVN: r71617 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 49c7e9242595..934670180d05 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-09-20 Andrew Pinski + + * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code. + 2003-09-20 Nathanael Nerode * Makefile.in: Don't set (unused) DLLTOOL. diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 695ec6929529..faa9739873fe 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -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))