diff options
| author | Geoffrey Keating <geoffk@apple.com> | 2005-12-18 23:32:52 +0000 |
|---|---|---|
| committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2005-12-18 23:32:52 +0000 |
| commit | 56c779bcc9047047c33a90d1994b94a7fb0df0d3 (patch) | |
| tree | e556b486f30ee668856ec4ff63feda7d67af2942 /gcc/config/darwin.h | |
| parent | 04743a370f720221d93f28807ec3349a6faf21ac (diff) | |
| download | gcc-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/darwin.h')
| -rw-r--r-- | gcc/config/darwin.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 343e4a2..757bedc 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -611,9 +611,13 @@ Boston, MA 02110-1301, USA. */ /* Declare the section variables. */ #ifndef USED_FOR_TARGET -#define DEF_SECTION(NAME, FLAGS, DIRECTIVE, OBJC) extern section *NAME; +enum darwin_section_enum { +#define DEF_SECTION(NAME, FLAGS, DIRECTIVE, OBJC) NAME, #include "darwin-sections.def" #undef DEF_SECTION + NUM_DARWIN_SECTIONS +}; +extern GTY(()) section * darwin_sections[NUM_DARWIN_SECTIONS]; #endif #undef TARGET_ASM_SELECT_SECTION |
