GCC 4.8 RTEMS patch
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Apr 18 09:12:02 UTC 2013
On 04/17/2013 05:10 PM, Ralf Corsepius wrote:
> On 04/17/2013 01:25 PM, Sebastian Huber wrote:
>> Hello,
>>
>> in the current GCC 4.8 RTEMS patch
>>
>> http://git.rtems.org/rtems-crossrpms.git/tree/patches/gcc-4.8.0-rtems4.11-20130326.diff
>>
>>
>>
>> there are several
>>
>> +/* Use the defaults */
>> +#undef WCHAR_TYPE
>> +
>> +#undef WCHAR_TYPE_SIZE
>>
>> with a change log of
>>
>> +2009-11-04 Ralf Corsépius <ralf.corsepius at rtems.org>
>> +
>> + * config/m32c/rtems.h, config/m68k/rtemself.h,
>> + config/m68k/rtemself.h, config/sh/rtemself.h,
>> + config/sparc/rtemself.h: Undef WCHAR_TYPE_SIZE, WCHAR_TYPE.
>> + (Resets WCHAR_TYPE's to defaults. Prevents broken GCC tm_files
>> + to interfere and cause wchar_t/wint_t incompatibilities).
>>
>> What is the reason for these patches?
>
> These targets at least at some time in their history overrode WCHAR_TYPE and
> WCHAR_TYPE_SIZE to something which breaks GCC at other places (Whether they
> still do needs to be checked).
What do you mean with break? Does this result in a compile, link, or run-time
error?
I am able to build the sparc-rtems4.11-gcc with the latest GCC 4.8 branch
without patches. This WCHAR_TYPE_SIZE and WCHAR_TYPE patch seems be be
unnecessary at least on SPARC.
The RTEMS testsuite results on SIS show nothing suspicious with this GCC.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list