From: Henry <leg...@ya...> - 2001-03-06 20:00:42
|
hey , in the gcc ,the file gcc/config/sh/sh.h have #define TARGET_DEFAULT (SH3_BIT|SH2_BIT|LITTLE_ENDIAN_BIT) i don't think it 's suitable . because when i use the gcc to compile the program for sh2 ( -m2 ) . in the code , it produce the instruction "shad" , it is a instruction for sh3 . so i change it to #define TARGET_DEFAULT (0) just as it is in the standard gcc-2.95.2. but the problem is when i use this gcc to compile the program , it has error (.text+0x694): undefined reference to `__ashiftrt_r4_8' (.text+0x774): undefined reference to `__ashiftrt_r4_8' anybody has the advice about it , i will appreciate in advance. Cheers Henry. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |