diff options
author | Eric Christopher <echristo@apple.com> | 2006-09-08 00:22:49 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gcc.gnu.org> | 2006-09-08 00:22:49 +0000 |
commit | 2e71a7a31e0e19e69bd3a34dbfb549871d461cc9 (patch) | |
tree | c0cb35da23c871fdec4d9d729953daa9d02fb101 /gcc | |
parent | d96da27e3a619ddce96af6b396414629eb22f1f5 (diff) | |
download | gcc-2e71a7a31e0e19e69bd3a34dbfb549871d461cc9.zip gcc-2e71a7a31e0e19e69bd3a34dbfb549871d461cc9.tar.gz gcc-2e71a7a31e0e19e69bd3a34dbfb549871d461cc9.tar.bz2 |
darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update comment.
2006-09-07 Eric Christopher <echristo@apple.com>
* config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update
comment.
* config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE):
Redefine.
From-SVN: r116774
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/config/darwin.h | 4 | ||||
-rw-r--r-- | gcc/config/i386/darwin.h | 5 |
3 files changed, 15 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7723f1b..68c78ac 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2006-09-07 Eric Christopher <echristo@apple.com> + + * config/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Update + comment. + * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): + Redefine. + 2006-09-07 Geoffrey Keating <geoffk@apple.com> * dwarf2out.c: Remove strange characters from comment above diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index f2140da..75623bb 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 63e7bfd..df6a693 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) |