* config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.

From-SVN: r108153
This commit is contained in:
Richard Sandiford 2005-12-07 09:17:01 +00:00 committed by Richard Sandiford
parent d6b5193bfc
commit fee67063c4
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-12-07 Richard Sandiford <richard@codesourcery.com>
* config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.
2005-12-07 Richard Sandiford <richard@codesourcery.com> 2005-12-07 Richard Sandiford <richard@codesourcery.com>
* config/alpha/alpha.c (alpha_start_function): Use switch_to_section. * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.

View File

@ -610,9 +610,11 @@ Boston, MA 02110-1301, USA. */
#define MAX_OFILE_ALIGNMENT 0x8000 #define MAX_OFILE_ALIGNMENT 0x8000
/* Declare the section variables. */ /* Declare the section variables. */
#ifndef IN_LIBGCC2
#define DEF_SECTION(NAME, FLAGS, DIRECTIVE, OBJC) extern section *NAME; #define DEF_SECTION(NAME, FLAGS, DIRECTIVE, OBJC) extern section *NAME;
#include "darwin-sections.def" #include "darwin-sections.def"
#undef DEF_SECTION #undef DEF_SECTION
#endif
#undef TARGET_ASM_SELECT_SECTION #undef TARGET_ASM_SELECT_SECTION
#define TARGET_ASM_SELECT_SECTION machopic_select_section #define TARGET_ASM_SELECT_SECTION machopic_select_section