aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000/rs6000.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2005-12-18 23:32:52 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2005-12-18 23:32:52 +0000
commit56c779bcc9047047c33a90d1994b94a7fb0df0d3 (patch)
treee556b486f30ee668856ec4ff63feda7d67af2942 /gcc/config/rs6000/rs6000.c
parent04743a370f720221d93f28807ec3349a6faf21ac (diff)
downloadgcc-56c779bcc9047047c33a90d1994b94a7fb0df0d3.zip
gcc-56c779bcc9047047c33a90d1994b94a7fb0df0d3.tar.gz
gcc-56c779bcc9047047c33a90d1994b94a7fb0df0d3.tar.bz2
darwin.h: Don't include darwin-sections.def to declare global variables...
* config/darwin.h: Don't include darwin-sections.def to declare global variables; instead create darwin_section_enum. (darwin_section_enum): New. (darwin_sections): New. * config/darwin.c: Don't include darwin-sections.def to define global variables. (darwin_sections): New. (output_objc_section_asm_op): Rewrite to take advantage of darwin_sections. (darwin_init_sections): Rewrite to use darwin_sections. (machopic_output_indirection): Update for darwin_sections array. (machopic_select_section): Likewise. (machopic_select_rtx_section): Likewise. (machopic_asm_out_constructor): Likewise. (machopic_asm_out_destructor): Likewise. (darwin_file_end): Likewise. * config/rs6000/rs6000.c (machopic_output_stub): Likewise. * config/i386/i386.c (machopic_output_stub): Likewise. From-SVN: r108765
Diffstat (limited to 'gcc/config/rs6000/rs6000.c')
-rw-r--r--gcc/config/rs6000/rs6000.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index e196279..e23e86b 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -17736,9 +17736,9 @@ machopic_output_stub (FILE *file, const char *symb, const char *stub)
GEN_LAZY_PTR_NAME_FOR_SYMBOL (lazy_ptr_name, symb, length);
if (flag_pic == 2)
- switch_to_section (machopic_picsymbol_stub1_section);
+ switch_to_section (darwin_sections[machopic_picsymbol_stub1_section]);
else
- switch_to_section (machopic_symbol_stub1_section);
+ switch_to_section (darwin_sections[machopic_symbol_stub1_section]);
if (flag_pic == 2)
{
@@ -17778,7 +17778,7 @@ machopic_output_stub (FILE *file, const char *symb, const char *stub)
fprintf (file, "\tbctr\n");
}
- switch_to_section (machopic_lazy_symbol_ptr_section);
+ switch_to_section (darwin_sections[machopic_lazy_symbol_ptr_section]);
fprintf (file, "%s:\n", lazy_ptr_name);
fprintf (file, "\t.indirect_symbol %s\n", symbol_name);
fprintf (file, "%sdyld_stub_binding_helper\n",