This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

m68k-elf libstdc++ compile errors




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

m68k_atomicity.patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]