From 2e71a7a31e0e19e69bd3a34dbfb549871d461cc9 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Fri, 8 Sep 2006 00:22:49 +0000 Subject: [PATCH] darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update comment. 2006-09-07 Eric Christopher * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update comment. * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Redefine. From-SVN: r116774 --- gcc/ChangeLog | 7 +++++++ gcc/config/darwin.h | 4 +++- gcc/config/i386/darwin.h | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7723f1b93f81..68c78accc58e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2006-09-07 Eric Christopher + + * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update + comment. + * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): + Redefine. + 2006-09-07 Geoffrey Keating * dwarf2out.c: Remove strange characters from comment above diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index f2140da57785..75623bbe3f2d 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -698,7 +698,9 @@ extern GTY(()) section * darwin_sections[NUM_DARWIN_SECTIONS]; /* Set on a symbol with SYMBOL_FLAG_FUNCTION or MACHO_SYMBOL_FLAG_VARIABLE to indicate that the function or - variable has been defined in this translation unit. */ + variable has been defined in this translation unit. + When porting Mach-O to new architectures you need to make + sure these aren't clobbered by the backend. */ #define MACHO_SYMBOL_FLAG_VARIABLE (SYMBOL_FLAG_MACH_DEP) #define MACHO_SYMBOL_FLAG_DEFINED ((SYMBOL_FLAG_MACH_DEP) << 1) diff --git a/gcc/config/i386/darwin.h b/gcc/config/i386/darwin.h index 63e7bfde542d..df6a69359f13 100644 --- a/gcc/config/i386/darwin.h +++ b/gcc/config/i386/darwin.h @@ -223,3 +223,8 @@ __enable_execute_stack (void *addr) \ #undef TARGET_SET_DEFAULT_TYPE_ATTRIBUTES #define TARGET_SET_DEFAULT_TYPE_ATTRIBUTES darwin_set_default_type_attributes + +/* This needs to move since i386 uses the first flag and other flags are + used in Mach-O. */ +#undef MACHO_SYMBOL_FLAG_VARIABLE +#define MACHO_SYMBOL_FLAG_VARIABLE ((SYMBOL_FLAG_MACH_DEP) << 3) -- 2.47.2