From: Geoffrey Keating Date: Fri, 12 Sep 2003 23:45:03 +0000 (+0000) Subject: darwin.c (machopic_select_rtx_section): Use const_data_section for things that might... X-Git-Tag: releases/gcc-3.4.0~3760 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e53734e19bedbe85a7438d59e5024815228065c;p=thirdparty%2Fgcc.git darwin.c (machopic_select_rtx_section): Use const_data_section for things that might require relocation. * config/darwin.c (machopic_select_rtx_section): Use const_data_section for things that might require relocation. From-SVN: r71345 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 29d7b164ec74..42753bb417f1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-09-12 Geoffrey Keating + + * config/darwin.c (machopic_select_rtx_section): Use + const_data_section for things that might require relocation. + 2003-09-12 H.J. Lu PR bootstrap/12264 diff --git a/gcc/config/darwin.c b/gcc/config/darwin.c index 4c019c7eef7b..695ec6929529 100644 --- a/gcc/config/darwin.c +++ b/gcc/config/darwin.c @@ -1242,6 +1242,11 @@ 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 + && (GET_CODE (x) == SYMBOL_REF + || GET_CODE (x) == CONST + || GET_CODE (x) == LABEL_REF)) + const_data_section (); else const_section (); }