From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joel Sherrill To: gas2@cygnus.com Subject: gas-980310: mips64orion-rtems failure Date: Wed, 11 Mar 1998 05:53:00 -0000 Message-id: X-SW-Source: 1998/msg00046.html It would not compile and failed with the following message: gcc -DHAVE_CONFIG_H -I. -I../../src/gas -I. -D_GNU_SOURCE -I. -I../../src/gas -I../bfd -I../../src/gas/config -I../../src/gas/../include -I../../src/gas/.. -I../../src/gas/../bfd -O2 -c ../../src/gas/config/tc-mips.c ../../src/gas/config/tc-mips.c: In function `md_begin': ../../src/gas/config/tc-mips.c:889: parse error before `if' ../../src/gas/config/tc-mips.c:1114: parse error before `void' I took a shot at patching this. This code is very different from what was in 2.8.1. It now compiles but I have very little confidence that I got it right. The code in question is setting the isa indicator. Anyway, the patch is below my signature: --joel Joel Sherrill Director of Research & Development joel@OARcorp.com On-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Support Available (205) 722-9985 Wed Mar 11 07:46:11 CST 1998 Joel Sherrill * config/tc-mips.c: (md_begin): Added missing brace and parenthesis so this would compile. *** tc-mips.c.orig Tue Mar 10 03:20:11 1998 --- tc-mips.c Wed Mar 11 07:45:04 1998 *************** *** 883,890 **** else if (mips_cpu == 4000 || mips_cpu == 4100 || mips_cpu == 4400 ! || mips_cpu == 4300 if (mips_3900 < 0) mips_3900 = (mips_cpu == 3900); --- 883,892 ---- else if (mips_cpu == 4000 || mips_cpu == 4100 || mips_cpu == 4400 ! || mips_cpu == 4300) + mips_opts.isa = 3; + } if (mips_3900 < 0) mips_3900 = (mips_cpu == 3900);