From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joel Sherrill To: gas2@cygnus.com Subject: joel's tc-mips.c patch :( Date: Wed, 11 Mar 1998 07:06:00 -0000 Message-id: X-SW-Source: 1998/msg00047.html Well it must not be right. It did not complete the multilib build. I had ben using the gas-971208 snapshot internally and compared the tc-mips.c file against the version in that snapshot. It appears that a chunk of code disappeared. A new version of the patch is below my signature which should give a hint as to what got accidentally deleted. It is still not right though but it gets farther. Here is where it got to. /usr2/tools/build-mips64orion-tools/gcc/xgcc -B/usr2/tools/build-mips64orion-tools/gcc/ -O2 -DCROSS_COMPILE -DIN_GCC -O2 -I./include -G 0 -g1 -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fexceptions -Dinhibit_libc -I. -I../../src/gcc -I../../src/gcc/config -c -DL${name} \ ../../src/gcc/libgcc2.c -o ${name}.o; \ if [ $? -eq 0 ] ; then true; else exit 1; fi; \ /usr2/tools/build-mips64orion-tools/binutils/ar rc tmplibgcc2.a ${name}.o; \ rm -f ${name}.o; \ done _muldi3 _divdi3 /tmp/cca15880.s: Assembler messages: /tmp/cca15880.s:439: Internal error! Assertion failure in macro_build at ../../src/gas/config/tc-mips.c line 2351. Suggestions appreciated. I really do not know enough about the mips to fix this one right. --joel *** tc-mips.c.orig Tue Mar 10 03:20:11 1998 --- tc-mips.c Wed Mar 11 07:51:26 1998 *************** *** 884,890 **** --- 884,920 ---- || mips_cpu == 4100 || mips_cpu == 4400 || mips_cpu == 4300 + || mips_cpu == 4600 + || mips_cpu == 4650) + mips_opts.isa = 3; + + else if (mips_cpu == 5000 + || mips_cpu == 8000 + || mips_cpu == 10000) + mips_opts.isa = 4; + + else + mips_opts.isa = 1; + + } + + if (mips_opts.mips16 < 0) + { + if (strncmp (TARGET_CPU, "mips16", sizeof "mips16" - 1) == 0) + mips_opts.mips16 = 1; + else + mips_opts.mips16 = 0; + } + + if (mips_4650 < 0) + mips_4650 = (mips_cpu == 4650); + + if (mips_4010 < 0) + mips_4010 = (mips_cpu == 4010); + + if (mips_4100 < 0) + mips_4100 = (mips_cpu == 4100); if (mips_3900 < 0) mips_3900 = (mips_cpu == 3900);