m68k-elf libstdc++ compile errors

Wade Jensen Wade_Jensen@inter-tel.com
Fri Oct 12 17:07:00 GMT 2001


Hello,

Compilation for the following configuration (m68k-elf) fails do to the changes
introduced in this patch:
http://gcc.gnu.org/ml/gcc-patches/2001-08/msg00906.html

Configured with: ../../source/gcc/configure --target=m68k-elf
--prefix=/crossgnu/m68k-elf --program-prefix=m68k-elf- --with-gnu-as
--with-gnu-ld --with-newlib --enable-languages=c,c++ --verbose
Thread model: single
gcc version 3.1 20011008 (experimental)

As previously mentioned, the 68000 libraries fail because of the cas
instruction.  Also, the 5200 libraries fail because of the cas instruction and
the add.l (immediate to memory) instruction.

For anyone that may be using this, the following patch removes this compilation
error but also removes the atomic property from the routines.  There is probably
a better way to selectively make the routines atomic depending on the target,
but I'm not sure how.  Any suggestions on a better way to fix this would be
appreciated.

Thanks,
Wade

(See attached file: m68k_atomicity.patch)


Inter-Tel -- Your Connection to the Future
http://www.inter-tel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: m68k_atomicity.patch
Type: text/x-diff
Size: 1247 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20011012/d5322453/attachment.bin>


More information about the Gcc-patches mailing list