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
+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
/* 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)
#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)