aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <apinski@apple.com>2003-09-21 00:27:37 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2003-09-20 17:27:37 -0700
commit86b0a4f337873565e5b2b13c1ff5926aada3f9ae (patch)
tree47a51e759683a8c7c9a4e1dc3a4366097c8518cf /gcc
parent5f0ccd0b63aa465711eb5805196ae403f3a2b96c (diff)
downloadgcc-86b0a4f337873565e5b2b13c1ff5926aada3f9ae.zip
gcc-86b0a4f337873565e5b2b13c1ff5926aada3f9ae.tar.gz
gcc-86b0a4f337873565e5b2b13c1ff5926aada3f9ae.tar.bz2
* config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
From-SVN: r71617
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/darwin.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 49c7e92..9346701 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c
index 695ec69..faa9739 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))