I'm catching a crash due to a library's use of a global string. The
library provides it, and I [indirectly] consume it. I understand why
the crash happens and that's not a problem.
What's giving me trouble is __attribute__(init_priority) . It does
not appear to be honored, and I'm not getting a warning about it (or a
failed compile like __attribute__(aligned)).
Is there anyway to force the construction of an object in Clang similar to GCC?
$ clang++ -v
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Thread model: posix
$ echo | clang++ -dM -E - | grep GNU
#define __GNUC_MINOR__ 2
#define __GNUC_PATCHLEVEL__ 1
#define __GNUC_STDC_INLINE__ 1
#define __GNUC__ 4