<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Multilib version 5208 sounds right.   It should have the same CPU32 core as the 5282, or a least pretty close.  For sure the 5208 won't have DBCC, either.<div><br></div><div>I tried the following little C program:</div><div><div>#include <string.h></div><div>char *cp;</div><div>main()</div><div>{</div><div>    memset (cp, 5, 100);</div><div>    return 0;</div><div>}</div><div><br></div><div><br></div><div>And compiled it with:  m68k-rtems4.10-gcc -mcpu=5282 -v -O4  m.c</div><div>The link edit stage was:</div><div><div>/usr/local/rtems/rtems-4.10/libexec/gcc/m68k-rtems4.10/4.4.2/collect2 /usr/local/rtems/rtems-4.10/lib/gcc/m68k-rtems4.10/4.4.2/../../../../m68k-rtems4.10/lib/m5208/crt0.o -L/usr/local/rtems/rtems-4.10/lib/gcc/m68k-rtems4.10/4.4.2/m5208 -L/usr/local/rtems/rtems-4.10/lib/gcc/m68k-rtems4.10/4.4.2/../../../../m68k-rtems4.10/lib/m5208 -L/usr/local/rtems/rtems-4.10/lib/gcc/m68k-rtems4.10/4.4.2 -L/usr/local/rtems/rtems-4.10/lib/gcc/m68k-rtems4.10/4.4.2/../../../../m68k-rtems4.10/lib /var/folders/B3/B3Xa8pTJEEm4plqQBpCki++++TU/-Tmp-//ccqTTObt.o -lgcc -lc -lgcc</div><div><br></div></div><div><br></div><div>A gdb disassem reveals:</div><div><div>(gdb) disassem memset</div><div>Dump of assembler code for function memset:</div><div>0x80000490 <memset+0>:<span class="Apple-tab-span" style="white-space:pre">      </span>moveal %sp@(4),%a0</div><div>0x80000494 <memset+4>:<span class="Apple-tab-span" style="white-space:pre">       </span>movel %sp@(8),%d0</div><div>0x80000498 <memset+8>:<span class="Apple-tab-span" style="white-space:pre">        </span>movel %sp@(12),%d1</div><div>0x8000049c <memset+12>:<span class="Apple-tab-span" style="white-space:pre">      </span>cmpil #16,%d1</div><div>0x800004a2 <memset+18>:<span class="Apple-tab-span" style="white-space:pre">   </span>bcsw 0x800004f0 <memset+96></div><div>0x800004a6 <memset+22>:<span class="Apple-tab-span" style="white-space:pre">       </span>movel %d2,%sp@-</div><div>0x800004a8 <memset+24>:<span class="Apple-tab-span" style="white-space:pre"> </span>moveb %d0,%d2</div><div>0x800004aa <memset+26>:<span class="Apple-tab-span" style="white-space:pre">   </span>lsll #8,%d0</div><div>0x800004ac <memset+28>:<span class="Apple-tab-span" style="white-space:pre">     </span>moveb %d2,%d0</div><div>0x800004ae <memset+30>:<span class="Apple-tab-span" style="white-space:pre">   </span>movew %d0,%d2</div><div>0x800004b0 <memset+32>:<span class="Apple-tab-span" style="white-space:pre">   </span>swap %d0</div><div>0x800004b2 <memset+34>:<span class="Apple-tab-span" style="white-space:pre">        </span>movew %d2,%d0</div><div>0x800004b4 <memset+36>:<span class="Apple-tab-span" style="white-space:pre">   </span>movel %a0,%d2</div><div>0x800004b6 <memset+38>:<span class="Apple-tab-span" style="white-space:pre">   </span>negl %d2</div><div>0x800004b8 <memset+40>:<span class="Apple-tab-span" style="white-space:pre">        </span>andil #3,%d2</div><div>0x800004be <memset+46>:<span class="Apple-tab-span" style="white-space:pre">    </span>beqw 0x800004d4 <memset+68></div><div>0x800004c2 <memset+50>:<span class="Apple-tab-span" style="white-space:pre">       </span>subl %d2,%d1</div><div>0x800004c4 <memset+52>:<span class="Apple-tab-span" style="white-space:pre">    </span>lsrl #1,%d2</div><div>0x800004c6 <memset+54>:<span class="Apple-tab-span" style="white-space:pre">     </span>bccw 0x800004cc <memset+60></div><div>0x800004ca <memset+58>:<span class="Apple-tab-span" style="white-space:pre">       </span>moveb %d0,%a0@+</div><div>0x800004cc <memset+60>:<span class="Apple-tab-span" style="white-space:pre"> </span>lsrl #1,%d2</div><div>0x800004ce <memset+62>:<span class="Apple-tab-span" style="white-space:pre">     </span>bccw 0x800004d4 <memset+68></div><div>0x800004d2 <memset+66>:<span class="Apple-tab-span" style="white-space:pre">       </span>movew %d0,%a0@+</div><div>0x800004d4 <memset+68>:<span class="Apple-tab-span" style="white-space:pre"> </span>movel %d1,%d2</div><div>0x800004d6 <memset+70>:<span class="Apple-tab-span" style="white-space:pre">   </span>lsrl #2,%d2</div><div>0x800004d8 <memset+72>:<span class="Apple-tab-span" style="white-space:pre">     </span>subql #1,%d2</div><div>0x800004da <memset+74>:<span class="Apple-tab-span" style="white-space:pre">    </span>movel %d0,%a0@+</div><div>0x800004dc <memset+76>:<span class="Apple-tab-span" style="white-space:pre"> </span>subql #1,%d2</div><div>0x800004de <memset+78>:<span class="Apple-tab-span" style="white-space:pre">    </span>bplw 0x800004da <memset+74></div><div>0x800004e2 <memset+82>:<span class="Apple-tab-span" style="white-space:pre">       </span>andil #3,%d1</div><div>0x800004e8 <memset+88>:<span class="Apple-tab-span" style="white-space:pre">    </span>movel %sp@+,%d2</div><div>0x800004ea <memset+90>:<span class="Apple-tab-span" style="white-space:pre"> </span>braw 0x800004f0 <memset+96></div><div>0x800004ee <memset+94>:<span class="Apple-tab-span" style="white-space:pre">       </span>moveb %d0,%a0@+</div><div>0x800004f0 <memset+96>:<span class="Apple-tab-span" style="white-space:pre"> </span>subql #1,%d1</div><div>0x800004f2 <memset+98>:<span class="Apple-tab-span" style="white-space:pre">    </span>bplw 0x800004ee <memset+94></div><div>0x800004f6 <memset+102>:<span class="Apple-tab-span" style="white-space:pre">      </span>movel %sp@(4),%d0</div><div>0x800004fa <memset+106>:<span class="Apple-tab-span" style="white-space:pre">      </span>rts</div><div>End of assembler dump.</div><div><br></div><div><br></div><div>No DBCC there.</div><div><br></div><div>FWIW, I repeated the test with: m68k-rtems4.10-gcc -mcpu=68020 -v -O4  m.c</div><div><br></div><div>And, I did in fact get a dbf:</div><div><div>(gdb) disassem memset</div><div>Dump of assembler code for function memset:</div><div>0x80000490 <memset+0>:<span class="Apple-tab-span" style="white-space:pre">        </span>moveal %sp@(4),%a0</div><div>0x80000494 <memset+4>:<span class="Apple-tab-span" style="white-space:pre">       </span>movel %sp@(8),%d0</div><div>0x80000498 <memset+8>:<span class="Apple-tab-span" style="white-space:pre">        </span>movel %sp@(12),%d1</div><div>0x8000049c <memset+12>:<span class="Apple-tab-span" style="white-space:pre">      </span>cmpil #16,%d1</div><div>0x800004a2 <memset+18>:<span class="Apple-tab-span" style="white-space:pre">   </span>bcsw 0x800004f8 <memset+104></div><div>0x800004a6 <memset+22>:<span class="Apple-tab-span" style="white-space:pre">      </span>movel %d2,%sp@-</div><div>0x800004a8 <memset+24>:<span class="Apple-tab-span" style="white-space:pre"> </span>moveb %d0,%d2</div><div>0x800004aa <memset+26>:<span class="Apple-tab-span" style="white-space:pre">   </span>lsll #8,%d0</div><div>0x800004ac <memset+28>:<span class="Apple-tab-span" style="white-space:pre">     </span>moveb %d2,%d0</div><div>0x800004ae <memset+30>:<span class="Apple-tab-span" style="white-space:pre">   </span>movew %d0,%d2</div><div>0x800004b0 <memset+32>:<span class="Apple-tab-span" style="white-space:pre">   </span>swap %d0</div><div>0x800004b2 <memset+34>:<span class="Apple-tab-span" style="white-space:pre">        </span>movew %d2,%d0</div><div>0x800004b4 <memset+36>:<span class="Apple-tab-span" style="white-space:pre">   </span>movel %a0,%d2</div><div>0x800004b6 <memset+38>:<span class="Apple-tab-span" style="white-space:pre">   </span>negl %d2</div><div>0x800004b8 <memset+40>:<span class="Apple-tab-span" style="white-space:pre">        </span>andil #3,%d2</div><div>0x800004be <memset+46>:<span class="Apple-tab-span" style="white-space:pre">    </span>beqw 0x800004d4 <memset+68></div><div>0x800004c2 <memset+50>:<span class="Apple-tab-span" style="white-space:pre">       </span>subl %d2,%d1</div><div>0x800004c4 <memset+52>:<span class="Apple-tab-span" style="white-space:pre">    </span>lsrl #1,%d2</div><div>0x800004c6 <memset+54>:<span class="Apple-tab-span" style="white-space:pre">     </span>bccw 0x800004cc <memset+60></div><div>0x800004ca <memset+58>:<span class="Apple-tab-span" style="white-space:pre">       </span>moveb %d0,%a0@+</div><div>0x800004cc <memset+60>:<span class="Apple-tab-span" style="white-space:pre"> </span>lsrl #1,%d2</div><div>0x800004ce <memset+62>:<span class="Apple-tab-span" style="white-space:pre">     </span>bccw 0x800004d4 <memset+68></div><div>0x800004d2 <memset+66>:<span class="Apple-tab-span" style="white-space:pre">       </span>movew %d0,%a0@+</div><div>0x800004d4 <memset+68>:<span class="Apple-tab-span" style="white-space:pre"> </span>movel %d1,%d2</div><div>0x800004d6 <memset+70>:<span class="Apple-tab-span" style="white-space:pre">   </span>lsrl #2,%d2</div><div>0x800004d8 <memset+72>:<span class="Apple-tab-span" style="white-space:pre">     </span>subql #1,%d2</div><div>0x800004da <memset+74>:<span class="Apple-tab-span" style="white-space:pre">    </span>movel %d0,%a0@+</div><div>0x800004dc <memset+76>:<span class="Apple-tab-span" style="white-space:pre"> </span>dbf %d2,0x800004da <memset+74></div><div>0x800004e0 <memset+80>:<span class="Apple-tab-span" style="white-space:pre">    </span>subil #65536,%d2</div><div>0x800004e6 <memset+86>:<span class="Apple-tab-span" style="white-space:pre">        </span>bplw 0x800004da <memset+74></div><div>0x800004ea <memset+90>:<span class="Apple-tab-span" style="white-space:pre">       </span>andil #3,%d1</div><div>0x800004f0 <memset+96>:<span class="Apple-tab-span" style="white-space:pre">    </span>movel %sp@+,%d2</div><div>0x800004f2 <memset+98>:<span class="Apple-tab-span" style="white-space:pre"> </span>braw 0x800004f8 <memset+104></div><div>0x800004f6 <memset+102>:<span class="Apple-tab-span" style="white-space:pre">     </span>moveb %d0,%a0@+</div><div>0x800004f8 <memset+104>:<span class="Apple-tab-span" style="white-space:pre">        </span>dbf %d1,0x800004f6 <memset+102></div><div>0x800004fc <memset+108>:<span class="Apple-tab-span" style="white-space:pre">  </span>movel %sp@(4),%d0</div><div>0x80000500 <memset+112>:<span class="Apple-tab-span" style="white-space:pre">      </span>rts</div><div>0x80000502 <memset+114>:<span class="Apple-tab-span" style="white-space:pre">    </span>nop</div><div>End of assembler dump.</div><div><br></div></div></div><div><div>On Mar 30, 2010, at 3:26 PM, Joel Sherrill wrote:</div><blockquote type="cite"><div><blockquote type="cite"><font class="Apple-style-span" color="#000000"><br></font></blockquote><br>Thanks for all the help.  I have tracked it down to memset()<br>which is definitely in assembly in newlib 1.18.0. Hmmm...<br>This output from the -v on the link doesn't look like it used<br>the right multilib:<br><br>/users/joel/test-gcc/b-gcc1-m68k/gcc/testsuite/gcc/' '-v'<br>/users/joel/test-gcc/b-gcc1-m68k/gcc/collect-ld -dc -dp -N -o /users/joel/test-gcc/b-gcc1-m68k/gcc/testsuite/gcc/zero-struct-2.x7 /users/joel/test-gcc/install-svn/m68k-rtems4.10/uC5282/lib/start.o /users/joel/test-gcc/b-gcc1-m68k/gcc/m5208/crti.o /users/joel/test-gcc/b-gcc1-m68k/gcc/m5208/crtbegin.o -e start -L/users/joel/test-gcc/b-gcc1-m68k/m68k-rtems4.10/./newlib -L/users/joel/test-gcc/b-gcc1-m68k/gcc/m5208 -L/users/joel/test-gcc/b-gcc1-m68k/gcc -L/users/joel/test-gcc/install-svn/m68k-rtems4.10/uC5282/lib -L/users/joel/test-gcc/b-gcc1-m68k/m68k-rtems4.10/./newlib /tmp/ccBTk1gL.wpa.ltrans.o gcc_tg.o /users/joel/test-gcc/b-gcc1-m68k/rtems_gcc_main.o -wrap exit -wrap _exit -wrap main -wrap abort -lm -lgcc --start-group -lrtemsbsp -lrtemscpu -lc -lgcc --end-group -T /users/joel/test-gcc/install-svn/m68k-rtems4.10/uC5282/lib/linkcmds -lgcc /users/joel/test-gcc/b-gcc1-m68k/gcc/m5208/crtend.o /users/joel/test-gcc/b-gcc1-m68k/gcc/m5208/crtn.o<br><br>-mcpu=5282<br><br>I don't see any explicit matches on 5282 in t-mlibs.  Suggestions<br>on how to fix this appreciated.  This is an ugly file. :(<br><br>--joel<br><br></div></blockquote></div><br><div>
-- <br>Eric Norum<br><a href="mailto:wenorum@lbl.gov">wenorum@lbl.gov</a><br><br><br>
</div>
<br></div></body></html>