This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
[ECOS] g++ problem resolving '__builtin_delete' in cross compilation/linkage
- To: 'eCos Discussion' <ecos-discuss@sourceware.cygnus.com>
- Subject: [ECOS] g++ problem resolving '__builtin_delete' in cross compilation/linkage
- From: John Mills <Jmills@TGA.com>
- Date: Thu, 17 Jun 1999 17:40:34 -0400
- Cc: "'ale@ale.org'" <ale@ale.org>, John Mills <Jmills@TGA.com>, "'JasonMerrill<jason@yorick.cygnus.com>'" <jason@yorick.cygnus.com>
I built a partial set of ecosSWtools-990319 targeting the SH-2 from a
Linux/RH6.0 installation which appears to compile and link properly for
simple 'C' source. Moving to 'C++', I also get executables which map
properly to my target board, and better yet, produce debug data sufficient
for an Hitachi debugger to step through the code from source level.
When I link, I have an undefined reference to '__builtin_delete' at exit
where the C++ object is deleted. (I have no actual destructor nor
dynamically allocated storage for the simple example.) If I simply edit the
assembly language and remove the call to '__builtin_delete' the code links
and runs fine.
I looked through my provisional libs, and those for the established
mips-tx39-elf target, without finding where this might have arisen and
should be resolved. There is a remark in 'gcc/Changelog.egcs', on Nov 20,
1997, to the effect:
"* libgcc2.c: Remove __builtin_new, [...], __builtin_delete, and [...]."
Can anyone suggest what I need to provide here? Thanks.
John Mills, Sr. Software Engineer
TGA Technologies, Inc.
100 Pinnacle Way, Suite 140
e-mail: jmills@tga.com
Norcross, GA 30071-3633
Phone: 770-421-2100 ext.124 (voice)
770-449-7740 (FAX)