This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [arm] Use atexit by default
Richard Earnshaw wrote:
PS. I notice that symbianelf is including arm/unknown-elf.h. I'm not
entirely convinced that is a good idea.
I looked into this. In unknown-elf.h we define the following macros:
TARGET_VERSION
TARGET_DEFAULT
STARTFILE_SPEC
ENDFILE_SPEC
SUBTARGET_CPP_SPEC
PREFERRED_DEBUGGING_TYPE
IN_NAMED_SECTION
ASM_OUTPUT_ALIGNED_BSS
ASM_OUTPUT_ALIGNED_DECL_LOCAL
SUBTARGET_CPU_DEFAULT
None are overridden in bpabi.h. In symbian.h, we override:
STARTFILE_SPEC
SUBTARGET_CPU_DEFAULT
It looks like we should probably also override TARGET_VERSION.
But, I think that including unknown-elf.h to get the other definitions
probably makes sense, except that they should maybe move into just
config/arm/elf.h.
Thoughts?
--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com