M68K (mcpu=cpu32)issues with latest tool chain
Kirspel, Kevin
kevin.kirspel at optimedical.com
Fri Apr 1 21:15:37 UTC 2011
The statement below if true will try and do 32-bit compares/copies (fast). If false, it will compare/copy byte by byte (slow).
if (!UNALIGNED (s1, s2))
The first instance of my crash is on a strcmp() call in find_handler() (mount-mgr.c). I have not tracked down why its failing. I will probably have to take a look at the disassembly to do so. I think you may be right about GCC. In my system, I don't need my m68k processor to run on RTEMS version 4.10. I'll probably revert back to 4.9 for that processor.
-----Original Message-----
From: Joel Sherrill [mailto:joel.sherrill at oarcorp.com]
Sent: Friday, April 01, 2011 5:00 PM
To: Kirspel, Kevin
Cc: rtems-users at rtems.org
Subject: Re: M68K (mcpu=cpu32)issues with latest tool chain
On 04/01/2011 02:32 PM, Kirspel, Kevin wrote:
>
> I downloaded the latest tool chains (binutils-2.21, gcc-4.5.2,
> newlib-1.19.0) and compiled RTEMS successfully. When running the
> application I get failures in most newlib string functions (strcmp,
> strncpy, etc.). My previous tool chain running 4.9 is: binutils-2.18,
> gcc-4.3.2, newlib-1.18.0 (which has no problems). There is not a lot
> of differences between newlib-1.18.0 and newlib-1.19.0 other than
> references to intptr_t instead of long. I replaced intptr_t with
> long to see if it made any difference and it does not. I forced the
> code to take the non optimized path (the slow method) and everything
> works OK. Does anyone know what might be causing the issue?
>
Can you clarify what you mean by fast and slow path?
Which file are you compiling? How is it failing?
The file strcmp.c in newlib hasn't changed since its initial import
so I am concerned this might be a gcc issue. :(
>
> Kevin Kirspel
>
> Senior Electrical Engineer
>
> Opti Medical
>
> 235 Hembree Park Drive
>
> Roswell GA 30076
>
> Tel: (770)-510-4444 ext. 81642
>
> Direct: (770)-688-1642
>
> Fax: (770)-510-4445
>
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list